@hanzo/team 0.1.13 → 0.1.14

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 (172) hide show
  1. package/README.md +1 -0
  2. package/dist/404.html +3 -1
  3. package/dist/admin/index.html +3 -1
  4. package/dist/agents/algo/index.html +3 -1
  5. package/dist/agents/art/index.html +3 -1
  6. package/dist/agents/biz/index.html +3 -1
  7. package/dist/agents/cal/index.html +3 -1
  8. package/dist/agents/core/index.html +3 -1
  9. package/dist/agents/cyber/index.html +3 -1
  10. package/dist/agents/data/index.html +3 -1
  11. package/dist/agents/db/index.html +3 -1
  12. package/dist/agents/des/index.html +3 -1
  13. package/dist/agents/dev/index.html +3 -1
  14. package/dist/agents/doc/index.html +3 -1
  15. package/dist/agents/ed/index.html +3 -1
  16. package/dist/agents/fin/index.html +3 -1
  17. package/dist/agents/gov/index.html +3 -1
  18. package/dist/agents/huma/index.html +3 -1
  19. package/dist/agents/index.html +3 -1
  20. package/dist/agents/lang/index.html +3 -1
  21. package/dist/agents/law/index.html +3 -1
  22. package/dist/agents/mana/index.html +3 -1
  23. package/dist/agents/mark/index.html +3 -1
  24. package/dist/agents/mo/index.html +3 -1
  25. package/dist/agents/mu/index.html +3 -1
  26. package/dist/agents/opera/index.html +3 -1
  27. package/dist/agents/rev/index.html +3 -1
  28. package/dist/agents/sal/index.html +3 -1
  29. package/dist/agents/sci/index.html +3 -1
  30. package/dist/agents/sec/index.html +3 -1
  31. package/dist/agents/su/index.html +3 -1
  32. package/dist/agents/vi/index.html +3 -1
  33. package/dist/apps/ads/index.html +3 -1
  34. package/dist/apps/ai-chat/index.html +3 -1
  35. package/dist/apps/analytics/index.html +3 -1
  36. package/dist/apps/billing/index.html +3 -1
  37. package/dist/apps/bots/index.html +3 -1
  38. package/dist/apps/cal/index.html +3 -1
  39. package/dist/apps/chat/index.html +3 -1
  40. package/dist/apps/cms/index.html +3 -1
  41. package/dist/apps/commerce/index.html +3 -1
  42. package/dist/apps/console/index.html +3 -1
  43. package/dist/apps/crm/index.html +3 -1
  44. package/dist/apps/dataroom/index.html +3 -1
  45. package/dist/apps/dev/index.html +3 -1
  46. package/dist/apps/email/index.html +3 -1
  47. package/dist/apps/index.html +3 -1
  48. package/dist/apps/meet/index.html +3 -1
  49. package/dist/apps/platform/index.html +3 -1
  50. package/dist/apps/sign/index.html +3 -1
  51. package/dist/apps/social/index.html +3 -1
  52. package/dist/apps/tracker/index.html +3 -1
  53. package/dist/assets/Bots-DU1hNVB7.js +174 -0
  54. package/dist/assets/Bots-DU1hNVB7.js.map +1 -0
  55. package/dist/assets/ThemeToggleNext-D0-PyTrG.js +2 -0
  56. package/dist/assets/{ThemeToggleNext-Dl_lG82A.js.map → ThemeToggleNext-D0-PyTrG.js.map} +1 -1
  57. package/dist/assets/index-C6xlLqXz.js +186 -0
  58. package/dist/assets/index-C6xlLqXz.js.map +1 -0
  59. package/dist/assets/instrument-D2ByLhpL.js +42 -0
  60. package/dist/assets/instrument-D2ByLhpL.js.map +1 -0
  61. package/dist/assets/rolldown-runtime-B0Z9INg1.js +1 -0
  62. package/dist/assets/sha3-DDKddPFc.js +2 -0
  63. package/dist/assets/sha3-DDKddPFc.js.map +1 -0
  64. package/dist/auth/callback/index.html +3 -1
  65. package/dist/auth/index.html +3 -1
  66. package/dist/bots/index.html +3 -1
  67. package/dist/cal/index.html +3 -1
  68. package/dist/calendar/index.html +3 -1
  69. package/dist/chat/c-design/index.html +3 -1
  70. package/dist/chat/c-general/index.html +3 -1
  71. package/dist/chat/c-lux-bank/index.html +3 -1
  72. package/dist/chat/c-lux-bridge/index.html +3 -1
  73. package/dist/chat/c-revenue/index.html +3 -1
  74. package/dist/chat/c-support/index.html +3 -1
  75. package/dist/chat/c-tracker/index.html +3 -1
  76. package/dist/chat/c-ui/index.html +3 -1
  77. package/dist/chat/c-video/index.html +3 -1
  78. package/dist/chat/dm-algo/index.html +3 -1
  79. package/dist/chat/dm-art/index.html +3 -1
  80. package/dist/chat/dm-biz/index.html +3 -1
  81. package/dist/chat/dm-cal/index.html +3 -1
  82. package/dist/chat/dm-core/index.html +3 -1
  83. package/dist/chat/dm-cyber/index.html +3 -1
  84. package/dist/chat/dm-data/index.html +3 -1
  85. package/dist/chat/dm-db/index.html +3 -1
  86. package/dist/chat/dm-des/index.html +3 -1
  87. package/dist/chat/dm-dev/index.html +3 -1
  88. package/dist/chat/dm-doc/index.html +3 -1
  89. package/dist/chat/dm-ed/index.html +3 -1
  90. package/dist/chat/dm-fin/index.html +3 -1
  91. package/dist/chat/dm-gov/index.html +3 -1
  92. package/dist/chat/dm-huma/index.html +3 -1
  93. package/dist/chat/dm-lang/index.html +3 -1
  94. package/dist/chat/dm-law/index.html +3 -1
  95. package/dist/chat/dm-mana/index.html +3 -1
  96. package/dist/chat/dm-mark/index.html +3 -1
  97. package/dist/chat/dm-mo/index.html +3 -1
  98. package/dist/chat/dm-mu/index.html +3 -1
  99. package/dist/chat/dm-opera/index.html +3 -1
  100. package/dist/chat/dm-rev/index.html +3 -1
  101. package/dist/chat/dm-sal/index.html +3 -1
  102. package/dist/chat/dm-sci/index.html +3 -1
  103. package/dist/chat/dm-sec/index.html +3 -1
  104. package/dist/chat/dm-su/index.html +3 -1
  105. package/dist/chat/dm-vi/index.html +3 -1
  106. package/dist/chat/index.html +3 -1
  107. package/dist/crm/analytics/index.html +3 -1
  108. package/dist/crm/automations/index.html +3 -1
  109. package/dist/crm/campaigns/index.html +3 -1
  110. package/dist/crm/companies/index.html +3 -1
  111. package/dist/crm/contacts/index.html +3 -1
  112. package/dist/crm/customers/index.html +3 -1
  113. package/dist/crm/deliverability/index.html +3 -1
  114. package/dist/crm/forms/index.html +3 -1
  115. package/dist/crm/funds/index.html +3 -1
  116. package/dist/crm/index.html +3 -1
  117. package/dist/crm/investors/index.html +3 -1
  118. package/dist/crm/journeys/index.html +3 -1
  119. package/dist/crm/leads/index.html +3 -1
  120. package/dist/crm/lists/index.html +3 -1
  121. package/dist/crm/opportunities/index.html +3 -1
  122. package/dist/crm/segments/index.html +3 -1
  123. package/dist/crm/settings/index.html +3 -1
  124. package/dist/crm/templates/index.html +3 -1
  125. package/dist/crm/webhooks/index.html +3 -1
  126. package/dist/docs/index.html +3 -1
  127. package/dist/files/index.html +3 -1
  128. package/dist/inbox/index.html +3 -1
  129. package/dist/index.html +3 -1
  130. package/dist/issues/index.html +3 -1
  131. package/dist/issues/kanban/index.html +3 -1
  132. package/dist/issues/list/index.html +3 -1
  133. package/dist/login/index.html +3 -1
  134. package/dist/mail/index.html +3 -1
  135. package/dist/meet/index.html +3 -1
  136. package/dist/mine/index.html +3 -1
  137. package/dist/people/index.html +3 -1
  138. package/dist/projects/index.html +3 -1
  139. package/dist/projects/proj-crm/components/index.html +3 -1
  140. package/dist/projects/proj-crm/index.html +3 -1
  141. package/dist/projects/proj-crm/issues/index.html +3 -1
  142. package/dist/projects/proj-crm/issues/kanban/index.html +3 -1
  143. package/dist/projects/proj-crm/issues/list/index.html +3 -1
  144. package/dist/projects/proj-crm/milestones/index.html +3 -1
  145. package/dist/projects/proj-crm/templates/index.html +3 -1
  146. package/dist/projects/proj-dev/components/index.html +3 -1
  147. package/dist/projects/proj-dev/index.html +3 -1
  148. package/dist/projects/proj-dev/issues/index.html +3 -1
  149. package/dist/projects/proj-dev/issues/kanban/index.html +3 -1
  150. package/dist/projects/proj-dev/issues/list/index.html +3 -1
  151. package/dist/projects/proj-dev/milestones/index.html +3 -1
  152. package/dist/projects/proj-dev/templates/index.html +3 -1
  153. package/dist/projects/proj-mkt/components/index.html +3 -1
  154. package/dist/projects/proj-mkt/index.html +3 -1
  155. package/dist/projects/proj-mkt/issues/index.html +3 -1
  156. package/dist/projects/proj-mkt/issues/kanban/index.html +3 -1
  157. package/dist/projects/proj-mkt/issues/list/index.html +3 -1
  158. package/dist/projects/proj-mkt/milestones/index.html +3 -1
  159. package/dist/projects/proj-mkt/templates/index.html +3 -1
  160. package/dist/projects/proj-next/components/index.html +3 -1
  161. package/dist/projects/proj-next/index.html +3 -1
  162. package/dist/projects/proj-next/issues/index.html +3 -1
  163. package/dist/projects/proj-next/issues/kanban/index.html +3 -1
  164. package/dist/projects/proj-next/issues/list/index.html +3 -1
  165. package/dist/projects/proj-next/milestones/index.html +3 -1
  166. package/dist/projects/proj-next/templates/index.html +3 -1
  167. package/dist/settings/index.html +3 -1
  168. package/dist/time/index.html +3 -1
  169. package/package.json +9 -2
  170. package/dist/assets/ThemeToggleNext-Dl_lG82A.js +0 -2
  171. package/dist/assets/index-B-xfsR5K.js +0 -221
  172. package/dist/assets/index-B-xfsR5K.js.map +0 -1
@@ -1,221 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ee(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,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(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 te(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N=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)},P={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=P,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,N)}catch(e){N(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&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}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var ee=Symbol.for(`react.client.reference`);function te(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?te(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var ne=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ie=[],ae=-1;function oe(e){return{current:e}}function se(e){0>ae||(e.current=ie[ae],ie[ae]=null,ae--)}function ce(e,t){ae++,ie[ae]=e.current,e.current=t}var le=oe(null),ue=oe(null),de=oe(null),fe=oe(null);function pe(e,t){switch(ce(de,t),ce(ue,e),ce(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nf(t),e=rf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}se(le),ce(le,e)}function me(){se(le),se(ue),se(de)}function he(e){e.memoizedState!==null&&ce(fe,e);var t=le.current,n=rf(t,e.type);t!==n&&(ce(ue,e),ce(le,n))}function ge(e){ue.current===e&&(se(le),se(ue)),fe.current===e&&(se(fe),pp._currentValue=re)}var F,_e;function I(e){if(F===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||``,_e=-1<e.stack.indexOf(`
2
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
- `+F+e+_e}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
- `),l=s.split(`
5
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?I(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return I(e.type);case 16:return I(`Lazy`);case 13:return e.child!==t&&t!==null?I(`Suspense Fallback`):I(`Suspense`);case 19:return I(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return I(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
- Error generating stack: `+e.message+`
8
- `+e.stack}}var L=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(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=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(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 qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(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 Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(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-Re(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&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Re(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Re(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(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 rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=P.p;return e===0?(e=window.event,e===void 0?32:kp(e.type)):e}function at(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var ot=Math.random().toString(36).slice(2),st=`__reactFiber$`+ot,ct=`__reactProps$`+ot,lt=`__reactContainer$`+ot,ut=`__reactEvents$`+ot,dt=`__reactListeners$`+ot,ft=`__reactHandles$`+ot,pt=`__reactResources$`+ot,mt=`__reactMarker$`+ot;function ht(e){delete e[st],delete e[ct],delete e[ut],delete e[dt],delete e[ft]}function gt(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ef(e);e!==null;){if(n=e[st])return n;e=Ef(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[st]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[pt];return t||=e[pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=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]*$`),Et={},Dt={};function Ot(e){return L.call(Dt,e)?!0:L.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(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 At(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 jt(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 Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(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 Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(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=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(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=``+Mt(s):e.removeAttribute(`name`)}function Vt(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)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(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),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(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=``+Mt(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 Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ne(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=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 Jt(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||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(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 Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\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 $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(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="`+zt(``+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));Bt(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&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(Mu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(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 un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.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 hn=i.slice(e,1<r?1-r:void 0)}function _n(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 vn(){return!0}function yn(){return!1}function bn(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)?vn:yn,this.isPropagationStopped=yn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=f({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=f({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,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!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(f({},On,{dataTransfer:0})),jn=bn(f({},Cn,{relatedTarget:0})),Mn=bn(f({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(f({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(f({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={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`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(f({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(f({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(f({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(f({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(f({},On,{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})),Gn=bn(f({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!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 Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Bd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){Md(e,0)}function ur(e){if(It(vt(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!L.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(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=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(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=Lt(e.document)}return t}function kr(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 Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(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}),Nr&&wr(Nr,r)||(Nr=r,r=Bd(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=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)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[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&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(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-Re(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<Cu)throw Cu=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(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 li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function fi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=ip(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=li(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return mi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=li(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function mi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function hi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function gi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function _i(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vi=new WeakMap;function yi(e,t){if(typeof e==`object`&&e){var n=vi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},vi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var bi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,Oi=``;function ki(e,t){bi[xi++]=Ci,bi[xi++]=Si,Si=e,Ci=t}function Ai(e,t,n){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Ei=e;var r=Di;e=Oi;var i=32-Re(r)-1;r&=~(1<<i),n+=1;var a=32-Re(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-Re(t)+i|n<<i|r,Oi=a+e}else Di=1<<a|n<<i|r,Oi=e}function ji(e){e.return!==null&&(ki(e,1),Ai(e,1,0))}function Mi(e){for(;e===Si;)Si=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,Oi=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Ni(e,t){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Di=t.id,Oi=t.overflow,Ei=e}var Pi=null,Fi=null,Ii=!1,Li=null,Ri=!1,zi=Error(i(519));function Bi(e){throw Ki(yi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[st]=e,t[ct]=r,n){case`dialog`:Nd(`cancel`,t),Nd(`close`,t);break;case`iframe`:case`object`:case`embed`:Nd(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ad.length;n++)Nd(Ad[n],t);break;case`source`:Nd(`error`,t);break;case`img`:case`image`:case`link`:Nd(`error`,t),Nd(`load`,t);break;case`details`:Nd(`toggle`,t);break;case`input`:Nd(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Nd(`invalid`,t);break;case`textarea`:Nd(`invalid`,t),Gt(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||Kd(t.textContent,n)?(r.popover!=null&&(Nd(`beforetoggle`,t),Nd(`toggle`,t)),r.onScroll!=null&&Nd(`scroll`,t),r.onScrollEnd!=null&&Nd(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(Pi=e.return;Pi;)switch(Pi.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:Pi=Pi.return}}function Ui(e){if(e!==Pi)return!1;if(!Ii)return Hi(e),Ii=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||af(e.type,e.memoizedProps)),n=!n),n&&Fi&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Fi=Tf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Fi=Tf(e)}else t===27?(t=Fi,pf(e.type)?(e=wf,wf=null,Fi=e):Fi=t):Fi=Pi?Cf(e.stateNode.nextSibling):null;return!0}function Wi(){Fi=Pi=null,Ii=!1}function Gi(){var e=Li;return e!==null&&(lu===null?lu=e:lu.push.apply(lu,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=oe(null),Ji=null,Yi=null;function Xi(e,t,n){ce(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,se(qi)}function Qi(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 $i(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),Qi(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),Qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ea(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;Cr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[pp]:e.push(pp))}a=a.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return aa(Ji,e)}function ia(e,t){return Ji===null&&na(e),aa(e,t)}function aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(i(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var oa=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()})}},sa=t.unstable_scheduleCallback,ca=t.unstable_NormalPriority,la={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ua(){return{controller:new oa,data:new Map,refCount:0}}function da(e){e.refCount--,e.refCount===0&&sa(ca,function(){e.controller.abort()})}var fa=null,pa=0,ma=0,ha=null;function ga(e,t){if(fa===null){var n=fa=[];pa=0,ma=wd(),ha={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return pa++,t.then(_a,_a),t}function _a(){if(--pa===0&&fa!==null){ha!==null&&(ha.status=`fulfilled`);var e=fa;fa=null,ma=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function va(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 ya=N.S;N.S=function(e,t){fu=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&ga(e,t),ya!==null&&ya(e,t)};var ba=oe(null);function xa(){var e=ba.current;return e===null?ql.pooledCache:e}function Sa(e,t){t===null?ce(ba,ba.current):ce(ba,t.pool)}function Ca(){var e=xa();return e===null?null:{parent:la._currentValue,pool:e}}var wa=Error(i(460)),Ta=Error(i(474)),Ea=Error(i(542)),Da={then:function(){}};function Oa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ka(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Na(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=ql,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,Na(e),e}throw ja=t,wa}}function Aa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ja=e,wa):e}}var ja=null;function Ma(){if(ja===null)throw Error(i(459));var e=ja;return ja=null,e}function Na(e){if(e===wa||e===Ea)throw Error(i(483))}var Pa=null,Fa=0;function Ia(e){var t=Fa;return Fa+=1,Pa===null&&(Pa=[]),ka(Pa,e,t)}function La(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ra(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function za(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Aa(i)===t.type)?(t=a(t,n.props),La(t,n),t.return=e,t):(t=pi(n.type,n.key,n.props,null,e.mode,r),La(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_i(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=mi(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=hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=pi(t.type,t.key,t.props,null,e.mode,n),La(n,t),n.return=e,n;case v:return t=_i(t,e.mode,n),t.return=e,t;case O:return t=Aa(t),f(e,t,n)}if(ne(t)||M(t))return t=mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ia(t),n);if(t.$$typeof===C)return f(e,ia(e,t),n);Ra(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Aa(n),p(e,t,n,r)}if(ne(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ia(n),r);if(n.$$typeof===C)return p(e,t,ia(e,n),r);Ra(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Aa(r),m(e,t,n,r,i)}if(ne(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ia(r),i);if(r.$$typeof===C)return m(e,t,n,ia(t,r),i);Ra(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),Ii&&ki(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 Ii&&ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ii&&ki(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ii&&ki(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 Ii&&ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ii&&ki(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Aa(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=pi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Aa(o),b(e,r,o,c)}if(ne(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ia(o),c);if(o.$$typeof===C)return b(e,r,ia(e,o),c);Ra(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return Pa=null,i}catch(t){if(t===wa||t===Ea)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Kl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ya=!1;function Xa(){if(Ya){var e=ha;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Yl&p)===p:(r&p)===p){p!==0&&p===ma&&(Ya=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ha=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ru|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Qa(n[e],t)}var eo=oe(null),to=oe(0);function no(e,t){e=tu,ce(to,e),ce(eo,t),tu=e|t.baseLanes}function ro(){ce(to,tu),ce(eo,eo.current)}function io(){tu=to.current,se(eo),se(to)}var ao=oe(null),oo=null;function so(e){var t=e.alternate;ce(po,po.current&1),ce(ao,e),oo===null&&(t===null||eo.current!==null||t.memoizedState!==null)&&(oo=e)}function co(e){ce(po,po.current),ce(ao,e),oo===null&&(oo=e)}function lo(e){e.tag===22?(ce(po,po.current),ce(ao,e),oo===null&&(oo=e)):uo(e)}function uo(){ce(po,po.current),ce(ao,ao.current)}function fo(e){se(ao),oo===e&&(oo=null),se(po)}var po=oe(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||bf(n)||xf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ho=0,go=null,_o=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(i(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return ho=a,go=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Ws:Gs,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){N.H=Us;var t=_o!==null&&_o.next!==null;if(ho=0,vo=_o=go=null,yo=!1,Co=0,wo=null,t)throw Error(i(300));e===null||cc||(e=e.dependencies,e!==null&&ta(e)&&(cc=!0))}function Ao(e,t,n,r){go=e;var a=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=a)throw Error(i(301));if(a+=1,vo=_o=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=Ks,o=t(n,r)}while(bo);return o}function jo(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Lo(t):t,e=e.useState()[0],(_o===null?null:_o.memoizedState)!==e&&(go.flags|=1024),t}function R(){var e=So!==0;return So=0,e}function Mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function No(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}ho=0,vo=_o=go=null,bo=!1,Co=So=0,wo=null}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?go.memoizedState=vo=e:vo=vo.next=e,vo}function Fo(){if(_o===null){var e=go.alternate;e=e===null?null:e.memoizedState}else e=_o.next;var t=vo===null?go.memoizedState:vo.next;if(t!==null)vo=t,_o=e;else{if(e===null)throw go.alternate===null?Error(i(467)):Error(i(310));_o=e,e={memoizedState:_o.memoizedState,baseState:_o.baseState,baseQueue:_o.baseQueue,queue:_o.queue,next:null},vo===null?go.memoizedState=vo=e:vo=vo.next=e}return vo}function Io(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lo(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=ka(wo,e,t),t=go,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Ws:Gs),e}function Ro(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Lo(e);if(e.$$typeof===C)return ra(e)}throw Error(i(438,String(e)))}function zo(e){var t=null,n=go.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=go.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Io(),go.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]=A;return t.index++,n}function Bo(e,t){return typeof t==`function`?t(e):t}function Vo(e){return Ho(Fo(),_o,e)}function Ho(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ho&f)===f:(Yl&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===ma&&(d=!0);else if((ho&p)===p){u=u.next,p===ma&&(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,go.lanes|=p,ru|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,go.lanes|=f,ru|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Cr(o,e.memoizedState)&&(cc=!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 Uo(e){var t=Fo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Cr(o,t.memoizedState)||(cc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Wo(e,t,n){var r=go,a=Fo(),o=Ii;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Cr((_o||a).memoizedState,n);if(s&&(a.memoizedState=n,cc=!0),a=a.queue,hs(qo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,a,n,t),null),ql===null)throw Error(i(349));o||ho&127||Go(r,t,n)}return n}function Go(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=go.updateQueue,t===null?(t=Io(),go.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ko(e,t,n,r){t.value=n,t.getSnapshot=r,Jo(t)&&Yo(e)}function qo(e,t,n){return n(function(){Jo(t)&&Yo(e)})}function Jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Yo(e){var t=ii(e,2);t!==null&&Du(t,e,2)}function Xo(e){var t=Po();if(typeof e==`function`){var n=e;if(e=n(),xo){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function Zo(e,t,n,r){return e.baseState=n,Ho(e,_o,typeof r==`function`?r:Bo)}function Qo(e,t,n,r,a){if(Bs(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)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,$o(t,o)):(o.next=n.next,t.pending=n.next=o)}}function $o(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),es(e,t,s)}catch(n){ns(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),es(e,t,a)}catch(n){ns(e,t,n)}}function es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ts(e,t,n)},function(n){return ns(e,t,n)}):ts(e,t,n)}function ts(e,t,n){t.status=`fulfilled`,t.value=n,rs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,$o(e,n)))}function ns(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,rs(t),t=t.next;while(t!==r)}e.action=null}function rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function is(e,t){return t}function as(e,t){if(Ii){var n=ql.formState;if(n!==null){a:{var r=go;if(Ii){if(Fi){b:{for(var i=Fi,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=Cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Fi=Cf(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Po(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:t},n.queue=r,n=Ls.bind(null,go,r),r.dispatch=n,r=Xo(!1),a=zs.bind(null,go,!1,r.queue),r=Po(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Qo.bind(null,go,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function os(e){return ss(Fo(),_o,e)}function ss(e,t,n){if(t=Ho(e,t,is)[0],e=Vo(Bo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Lo(t)}catch(e){throw e===wa?Ea:e}else r=t;t=Fo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(go.flags|=2048,us(9,{destroy:void 0},cs.bind(null,i,n),null)),[r,a,e]}function cs(e,t){e.action=t}function ls(e){var t=Fo(),n=_o;if(n!==null)return ss(t,n,e);Fo(),t=t.memoizedState,n=Fo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function us(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=go.updateQueue,t===null&&(t=Io(),go.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 ds(){return Fo().memoizedState}function fs(e,t,n,r){var i=Po();go.flags|=e,i.memoizedState=us(1|t,{destroy:void 0},n,r===void 0?null:r)}function ps(e,t,n,r){var i=Fo();r=r===void 0?null:r;var a=i.memoizedState.inst;_o!==null&&r!==null&&Do(r,_o.memoizedState.deps)?i.memoizedState=us(t,a,n,r):(go.flags|=e,i.memoizedState=us(1|t,a,n,r))}function ms(e,t){fs(8390656,8,e,t)}function hs(e,t){ps(2048,8,e,t)}function gs(e){go.flags|=4;var t=go.updateQueue;if(t===null)t=Io(),go.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _s(e){var t=Fo().memoizedState;return gs({ref:t,nextImpl:e}),function(){if(Kl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function vs(e,t){return ps(4,2,e,t)}function ys(e,t){return ps(4,4,e,t)}function bs(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 xs(e,t,n){n=n==null?null:n.concat([e]),ps(4,4,bs.bind(null,t,e),n)}function Ss(){}function Cs(e,t){var n=Fo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ws(e,t){var n=Fo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function Ts(e,t,n){return n===void 0||ho&1073741824&&!(Yl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Eu(),go.lanes|=e,ru|=e,n)}function Es(e,t,n,r){return Cr(n,t)?n:eo.current===null?!(ho&42)||ho&1073741824&&!(Yl&261930)?(cc=!0,e.memoizedState=n):(e=Eu(),go.lanes|=e,ru|=e,t):(e=Ts(e,n,r),Cr(e,t)||(cc=!0),e)}function Ds(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,zs(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,va(c,r),Tu(e)):Rs(e,t,r,Tu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},Tu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=As(e).queue;Ds(e,a,t,re,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},Tu())}function Ms(){return ra(pp)}function Ns(){return Fo().memoizedState}function Ps(){return Fo().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(Du(r,t,n),qa(r,t,n)),t={cache:ua()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=Tu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=ri(e,t,n,r),n!==null&&(Du(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,Tu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(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,Cr(s,o))return ni(e,t,i,0),ql===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return Du(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:wd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&Du(t,e,2)}function Bs(e){var t=e.alternate;return e===go||t!==null&&t===go}function Vs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Us={readContext:ra,use:Ro,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Us.useEffectEvent=Eo;var Ws={readContext:ra,use:Ro,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(xo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(xo){Le(!0);try{n(t)}finally{Le(!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=Is.bind(null,go,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,go,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Po(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,go,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=go,a=Po();if(Ii){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ql===null)throw Error(i(349));Yl&127||Go(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ms(qo.bind(null,r,o,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=ql.identifierPrefix;if(Ii){var n=Oi,r=Di;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ms,useFormState:as,useActionState:as,useOptimistic:function(e){var t=Po();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=zs.bind(null,go,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Po().memoizedState=Fs.bind(null,go)},useEffectEvent:function(e){var t=Po(),n={impl:e};return t.memoizedState=n,function(){if(Kl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Gs={readContext:ra,use:Ro,useCallback:Cs,useContext:ra,useEffect:hs,useImperativeHandle:xs,useInsertionEffect:vs,useLayoutEffect:ys,useMemo:ws,useReducer:Vo,useRef:ds,useState:function(){return Vo(Bo)},useDebugValue:Ss,useDeferredValue:function(e,t){return Es(Fo(),_o.memoizedState,e,t)},useTransition:function(){var e=Vo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:Ns,useHostTransitionStatus:Ms,useFormState:os,useActionState:os,useOptimistic:function(e,t){return Zo(Fo(),_o,e,t)},useMemoCache:zo,useCacheRefresh:Ps};Gs.useEffectEvent=_s;var Ks={readContext:ra,use:Ro,useCallback:Cs,useContext:ra,useEffect:hs,useImperativeHandle:xs,useInsertionEffect:vs,useLayoutEffect:ys,useMemo:ws,useReducer:Uo,useRef:ds,useState:function(){return Uo(Bo)},useDebugValue:Ss,useDeferredValue:function(e,t){var n=Fo();return _o===null?Ts(n,e,t):Es(n,_o.memoizedState,e,t)},useTransition:function(){var e=Uo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:Ns,useHostTransitionStatus:Ms,useFormState:ls,useActionState:ls,useOptimistic:function(e,t){var n=Fo();return _o===null?(n.baseState=e,[e,n.queue.dispatch]):Zo(n,_o,e,t)},useMemoCache:zo,useCacheRefresh:Ps};Ks.useEffectEvent=_s;function qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Js={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=Ga(r);i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(Du(t,e,r),qa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=Ga(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(Du(t,e,r),qa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tu(),r=Ga(n);r.tag=2,t!=null&&(r.callback=t),t=Ka(e,r,n),t!==null&&(Du(t,e,n),qa(t,e,n))}};function Ys(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?!wr(n,r)||!wr(i,a):!0}function Xs(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&&Js.enqueueReplaceState(t,t.state,null)}function Zs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Qs(e){Zr(e)}function $s(e){console.error(e)}function ec(e){Zr(e)}function tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function nc(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 rc(e,t,n){return n=Ga(n),n.tag=3,n.payload={element:null},n.callback=function(){tc(e,t)},n}function ic(e){return e=Ga(e),e.tag=3,e}function ac(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(){nc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){nc(t,n,r),typeof i!=`function`&&(hu===null?hu=new Set([this]):hu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function oc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,a,!0),n=ao.current,n!==null){switch(n.tag){case 31:case 13:return oo===null?zu():n.alternate===null&&nu===0&&(nu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Da?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),id(e,r,a)),!1;case 22:return n.flags|=65536,r===Da?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)),id(e,r,a)),!1}throw Error(i(435,n.tag))}return id(e,r,a),zu(),!1}if(Ii)return t=ao.current,t===null?(r!==zi&&(t=Error(i(423),{cause:r}),Ki(yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=yi(r,n),a=rc(e.stateNode,r,a),Ja(e,a),nu!==4&&(nu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==zi&&(e=Error(i(422),{cause:r}),Ki(yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=yi(o,n),cu===null?cu=[o]:cu.push(o),nu!==4&&(nu=2),t===null)return!0;r=yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=rc(n.stateNode,r,e),Ja(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(hu===null||!hu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ic(a),ac(a,e,n,r),Ja(n,a),!1}n=n.return}while(n!==null);return!1}var sc=Error(i(461)),cc=!1;function lc(e,t,n,r){t.child=e===null?Va(t,null,n,r):Ba(t,e.child,n,r)}function uc(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 na(t),r=Oo(e,t,n,o,a,i),s=R(),e!==null&&!cc?(Mo(e,t,i),Pc(e,t,i)):(Ii&&s&&ji(t),t.flags|=1,lc(e,t,r,i),t.child)}function dc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,fc(e,t,a,r,i)):(e=pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Fc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return Pc(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref){if(cc=!1,t.pendingProps=r=a,Fc(e,i))e.flags&131072&&(cc=!0);else return t.lanes=e.lanes,Pc(e,t,i)}}return bc(e,t,n,r,i)}function pc(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 hc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sa(t,a===null?null:a.cachePool),a===null?ro():no(t,a),lo(t);else return r=t.lanes=536870912,hc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Sa(t,null),ro(),uo(t)):(Sa(t,a.cachePool),no(t,a),uo(t),t.memoizedState=null);return lc(e,t,i,n),t.child}function mc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hc(e,t,n,r,i){var a=xa();return a=a===null?null:{parent:la._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Sa(t,null),ro(),lo(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function gc(e,t){return t=kc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _c(e,t,n){return Ba(t,e.child,null,n),e=gc(t,t.pendingProps),e.flags|=2,fo(t),t.memoizedState=null,e}function vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Ii){if(r.mode===`hidden`)return e=gc(t,r),t.lanes=536870912,mc(null,e);if(co(t),(e=Fi)?(e=yf(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Pi=t,Fi=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return gc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(co(t),a){if(t.flags&256)t.flags&=-257,t=_c(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(cc||ea(e,t,n,!1),a=(n&e.childLanes)!==0,cc||a){if(r=ql,r!==null&&(s=tt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),Du(r,e,s),sc;zu(),t=_c(e,t,n)}else e=o.treeContext,Fi=Cf(s.nextSibling),Pi=t,Ii=!0,Li=null,Ri=!1,e!==null&&Ni(t,e),t=gc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yc(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 bc(e,t,n,r,i){return na(t),n=Oo(e,t,n,r,void 0,i),r=R(),e!==null&&!cc?(Mo(e,t,i),Pc(e,t,i)):(Ii&&r&&ji(t),t.flags|=1,lc(e,t,n,i),t.child)}function xc(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=R(),e!==null&&!cc?(Mo(e,t,a),Pc(e,t,a)):(Ii&&r&&ji(t),t.flags|=1,lc(e,t,n,a),t.child)}function Sc(e,t,n,r,i){if(na(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=ra(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Js,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ua(t),o=n.contextType,a.context=typeof o==`object`&&o?ra(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(qs(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&&Js.enqueueReplaceState(a,a.state,null),Za(t,r,a,i),Xa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Zs(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=ra(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)&&Xs(t,a,r,o),Ha=!1;var f=t.memoizedState;a.state=f,Za(t,r,a,i),Xa(),l=t.memoizedState,s||f!==l||Ha?(typeof d==`function`&&(qs(t,n,d,r),l=t.memoizedState),(c=Ha||Ys(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Wa(e,t),o=t.memoizedProps,u=Zs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=ra(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)&&Xs(t,a,r,c),Ha=!1,f=t.memoizedState,a.state=f,Za(t,r,a,i),Xa();var p=t.memoizedState;o!==d||f!==p||Ha||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(qs(t,n,s,r),p=t.memoizedState),(u=Ha||Ys(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,yc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ba(t,e.child,null,i),t.child=Ba(t,null,n,i)):lc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Pc(e,t,i),e}function Cc(e,t,n,r){return Wi(),t.flags|=256,lc(e,t,n,r),t.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Ca()}}function Ec(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ou),e}function Dc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(po.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Ii){if(a?so(t):uo(t),(e=Fi)?(e=yf(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Pi=t,Fi=null)):e=null,e===null)throw Bi(t);return xf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(uo(t),a=t.mode,c=kc({mode:`hidden`,children:c},a),r=mi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Tc(n),r.childLanes=Ec(e,s,n),t.memoizedState=wc,mc(null,r)):(so(t),Oc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(so(t),t.flags&=-257,t=Ac(e,t,n)):t.memoizedState===null?(uo(t),c=r.fallback,a=t.mode,r=kc({mode:`visible`,children:r.children},a),c=mi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ba(t,e.child,null,n),r=t.child,r.memoizedState=Tc(n),r.childLanes=Ec(e,s,n),t.memoizedState=wc,t=mc(null,r)):(uo(t),t.child=e.child,t.flags|=128,t=null);else if(so(t),xf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Ac(e,t,n)}else if(cc||ea(e,t,n,!1),s=(n&e.childLanes)!==0,cc||s){if(s=ql,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),Du(s,e,r),sc;bf(c)||zu(),t=Ac(e,t,n)}else bf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Fi=Cf(c.nextSibling),Pi=t,Ii=!0,Li=null,Ri=!1,e!==null&&Ni(t,e),t=Oc(t,r.children),t.flags|=4096);return t}return a?(uo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=mi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,mc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Tc(n):(a=c.cachePool,a===null?a=Ca():(l=la._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Ec(e,s,n),t.memoizedState=wc,mc(e.child,r)):(so(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Oc(e,t){return t=kc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function kc(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return Ba(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function Mc(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 Nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=po.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,ce(po,o),lc(e,t,r,n),r=Ii?Ci:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jc(e,n,t);else if(e.tag===19)jc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&mo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Mc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Mc(t,!0,n,null,a,r);break;case`together`:Mc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Pc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ru|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ea(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=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ta(e)))}function Ic(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Xi(t,la,e.memoizedState.cache),Wi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,co(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(so(t),e=Pc(e,t,n),e===null?null:e.sibling):Dc(e,t,n):(so(t),t.flags|=128,null);so(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(po,po.current),r)break;return null;case 22:return t.lanes=0,pc(e,t,n,t.pendingProps);case 24:Xi(t,la,e.memoizedState.cache)}return Pc(e,t,n)}function Lc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)cc=!0;else{if(!Fc(e,n)&&!(t.flags&128))return cc=!1,Ic(e,t,n);cc=!!(e.flags&131072)}}else cc=!1,Ii&&t.flags&1048576&&Ai(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Aa(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=Zs(e,r),t.tag=1,t=Sc(null,t,e,r,n)):(t.tag=0,t=bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=uc(null,t,e,r,n);break a}if(a===D){t.tag=14,t=dc(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Zs(r,t.pendingProps),Sc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Wa(e,t),Za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,la,r),r!==o.cache&&$i(t,[la],n,!0),Xa(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Cc(e,t,r,n);break a}if(r!==a){a=yi(Error(i(424)),t),Ki(a),t=Cc(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(Fi=Cf(e.firstChild),Pi=t,Ii=!0,Li=null,Ri=!0,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===a){t=Pc(e,t,n);break a}lc(e,t,r,n)}t=t.child}return t;case 26:return yc(e,t),e===null?(n=Wf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ii||(n=t.type,e=t.pendingProps,r=tf(de.current).createElement(n),r[st]=t,r[ct]=e,Yd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=Wf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&Ii&&(r=t.stateNode=Df(t.type,t.pendingProps,de.current),Pi=t,Ri=!0,a=Fi,pf(t.type)?(wf=a,Fi=Cf(r.firstChild)):Fi=a),lc(e,t,t.pendingProps.children,n),yc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ii&&((a=r=Fi)&&(r=_f(r,t.type,t.pendingProps,Ri),r===null?a=!1:(t.stateNode=r,Pi=t,Fi=Cf(r.firstChild),Ri=!1,a=!0)),a||Bi(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,af(a,o)?r=null:s!==null&&af(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Oo(e,t,jo,null,null,n),pp._currentValue=a),yc(e,t),lc(e,t,r,n),t.child;case 6:return e===null&&Ii&&((e=n=Fi)&&(n=vf(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,Pi=t,Fi=null,e=!0)),e||Bi(t)),null;case 13:return Dc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):lc(e,t,r,n),t.child;case 11:return uc(e,t,t.type,t.pendingProps,n);case 7:return lc(e,t,t.pendingProps,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 r=t.pendingProps,Xi(t,t.type,r.value),lc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,na(t),a=ra(a),r=r(a),t.flags|=1,lc(e,t,r,n),t.child;case 14:return dc(e,t,t.type,t.pendingProps,n);case 15:return fc(e,t,t.type,t.pendingProps,n);case 19:return Nc(e,t,n);case 31:return vc(e,t,n);case 22:return pc(e,t,n,t.pendingProps);case 24:return na(t),r=ra(la),e===null?(a=xa(),a===null&&(a=ql,o=ua(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ua(t),Xi(t,la,a)):((e.lanes&n)!==0&&(Wa(e,t),Za(t,null,null,n),Xa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Xi(t,la,r),r!==a.cache&&$i(t,[la],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Xi(t,la,r))),lc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Rc(e){e.flags|=4}function zc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Iu())e.flags|=8192;else throw ja=Da,Ta}}else e.flags&=-16777217}function Bc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t)){if(Iu())e.flags|=8192;else throw ja=Da,Ta}}function Vc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,su|=t)}function Hc(e,t){if(!Ii)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Uc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wc(e,t,n){var r=t.pendingProps;switch(Mi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Uc(t),null;case 1:return Uc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(la),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Rc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),Uc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Rc(t),o===null?(Uc(t),zc(t,a,null,r,n)):(Uc(t),Bc(t,o))):o?o===e.memoizedState?(Uc(t),t.flags&=-16777217):(Rc(t),Uc(t),Bc(t,o)):(e=e.memoizedProps,e!==r&&Rc(t),Uc(t),zc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Uc(t),null}e=le.current,Ui(t)?Vi(t,e):(e=Df(a,r,n),t.stateNode=e,Rc(t))}return Uc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Uc(t),null}if(o=le.current,Ui(t))Vi(t,o);else{var s=tf(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[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(Yd(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&&Rc(t)}}return Uc(t),zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Pi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Kd(e.nodeValue,n)),e||Bi(t,!0)}else e=tf(e).createTextNode(r),e[st]=t,t.stateNode=e}return Uc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(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 Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return Uc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ui(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 Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),a=!1}else a=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vc(t,t.updateQueue),Uc(t),null);case 4:return me(),e===null&&Id(t.stateNode.containerInfo),Uc(t),null;case 10:return Zi(t.type),Uc(t),null;case 19:if(se(po),r=t.memoizedState,r===null)return Uc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Hc(r,!1);else{if(nu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(e),o!==null){for(t.flags|=128,Hc(r,!1),e=o.updateQueue,t.updateQueue=e,Vc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return ce(po,po.current&1|2),Ii&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>pu&&(t.flags|=128,a=!0,Hc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Vc(t,e),Hc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ii)return Uc(t),null}else 2*Ee()-r.renderingStartTime>pu&&n!==536870912&&(t.flags|=128,a=!0,Hc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Uc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=po.current,ce(po,a?n&1|2:n&1),Ii&&ki(t,r.treeForkCount),e);case 22:case 23:return fo(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Uc(t),t.subtreeFlags&6&&(t.flags|=8192)):Uc(t),n=t.updateQueue,n!==null&&Vc(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&&se(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(la),Uc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Gc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(la),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(po),null;case 4:return me(),null;case 10:return Zi(t.type),null;case 22:case 23:return fo(t),io(),e!==null&&se(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(la),null;case 25:return null;default:return null}}function Kc(e,t){switch(Mi(t),t.tag){case 3:Zi(la),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:se(po);break;case 10:Zi(t.type);break;case 22:case 23:fo(t),io(),e!==null&&se(ba);break;case 24:Zi(la)}}function qc(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){rd(t,t.return,e)}}function Jc(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){rd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){rd(t,t.return,e)}}function Yc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){rd(e,e.return,t)}}}function Xc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){rd(e,t,n)}}function Zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){rd(e,t,n)}}function Qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){rd(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){rd(e,t,n)}else n.current=null}}function $c(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){rd(e,e.return,t)}}function el(e,t,n){try{var r=e.stateNode;Xd(r,e.type,n,t),r[ct]=t}catch(t){rd(e,e.return,t)}}function tl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pf(e.type)||e.tag===4}function nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||tl(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&&pf(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 rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&pf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&pf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function al(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Yd(t,r,n),t[st]=e,t[ct]=n}catch(t){rd(e,e.return,t)}}var ol=!1,sl=!1,cl=!1,ll=typeof WeakSet==`function`?WeakSet:Set,ul=null;function dl(e,t){if(e=e.containerInfo,$d=Sp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},Sp=!1,ul=t;ul!==null;)if(t=ul,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ul=e;else for(;ul!==null;){switch(t=ul,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Zs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){rd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)gf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:gf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ul=e;break}ul=t.return}}function fl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Dl(e,n),r&4&&qc(5,n);break;case 1:if(Dl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){rd(n,n.return,e)}else{var i=Zs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){rd(n,n.return,e)}}}r&64&&Yc(n),r&512&&Zc(n,n.return);break;case 3:if(Dl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{$a(e,t)}catch(e){rd(n,n.return,e)}}break;case 27:t===null&&r&4&&al(n);case 26:case 5:Dl(e,n),t===null&&r&4&&$c(n),r&512&&Zc(n,n.return);break;case 12:Dl(e,n);break;case 31:Dl(e,n),r&4&&vl(e,n);break;case 13:Dl(e,n),r&4&&yl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sd.bind(null,n),Sf(e,n))));break;case 22:if(r=n.memoizedState!==null||ol,!r){t=t!==null&&t.memoizedState!==null||sl,i=ol;var a=sl;ol=r,(sl=t)&&!a?kl(e,n,!!(n.subtreeFlags&8772)):Dl(e,n),ol=i,sl=a}break;case 30:break;default:Dl(e,n)}}function pl(e){var t=e.alternate;t!==null&&(e.alternate=null,pl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(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 ml=null,hl=!1;function gl(e,t,n){for(n=n.child;n!==null;)_l(e,t,n),n=n.sibling}function _l(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:sl||Qc(n,t),gl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sl||Qc(n,t);var r=ml,i=hl;pf(n.type)&&(ml=n.stateNode,hl=!1),gl(e,t,n),Of(n.stateNode),ml=r,hl=i;break;case 5:sl||Qc(n,t);case 6:if(r=ml,i=hl,ml=null,gl(e,t,n),ml=r,hl=i,ml!==null){if(hl)try{(ml.nodeType===9?ml.body:ml.nodeName===`HTML`?ml.ownerDocument.body:ml).removeChild(n.stateNode)}catch(e){rd(n,t,e)}else try{ml.removeChild(n.stateNode)}catch(e){rd(n,t,e)}}break;case 18:ml!==null&&(hl?(e=ml,mf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),qp(e)):mf(ml,n.stateNode));break;case 4:r=ml,i=hl,ml=n.stateNode.containerInfo,hl=!0,gl(e,t,n),ml=r,hl=i;break;case 0:case 11:case 14:case 15:Jc(2,n,t),sl||Jc(4,n,t),gl(e,t,n);break;case 1:sl||(Qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Xc(n,t,r)),gl(e,t,n);break;case 21:gl(e,t,n);break;case 22:sl=(r=sl)||n.memoizedState!==null,gl(e,t,n),sl=r;break;default:gl(e,t,n)}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qp(e)}catch(e){rd(t,t.return,e)}}}function yl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qp(e)}catch(e){rd(t,t.return,e)}}function bl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ll),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ll),t;default:throw Error(i(435,e.tag))}}function xl(e,t){var n=bl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=cd.bind(null,e,t);t.then(r,r)}})}function Sl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(pf(c.type)){ml=c.stateNode,hl=!1;break a}break;case 5:ml=c.stateNode,hl=!1;break a;case 3:case 4:ml=c.stateNode.containerInfo,hl=!0;break a}c=c.return}if(ml===null)throw Error(i(160));_l(o,s,a),ml=null,hl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wl(t,e),t=t.sibling}var Cl=null;function wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Sl(t,e),Tl(e),r&4&&(Jc(3,e,e.return),qc(3,e),Jc(5,e,e.return));break;case 1:Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),r&64&&ol&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Cl;if(Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[mt]||o[st]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Yd(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=np(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Yd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=np(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Yd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[st]=e,bt(o),r=o}e.stateNode=r}else rp(a,e.type,e.stateNode)}else e.stateNode=Zf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&el(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?rp(a,e.type,e.stateNode):Zf(a,r,e.memoizedProps))}break;case 27:Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),n!==null&&r&4&&el(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){rd(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,el(e,a,n===null?a:n.memoizedProps)),r&1024&&(cl=!0);break;case 6:if(Sl(t,e),Tl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){rd(e,e.return,t)}}break;case 3:if(tp=null,a=Cl,Cl=jf(t.containerInfo),Sl(t,e),Cl=a,Tl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qp(t.containerInfo)}catch(t){rd(e,e.return,t)}cl&&(cl=!1,El(e));break;case 4:r=Cl,Cl=jf(e.stateNode.containerInfo),Sl(t,e),Tl(e),Cl=r;break;case 12:Sl(t,e),Tl(e);break;case 31:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 13:Sl(t,e),Tl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(du=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=ol,d=sl;if(ol=u||a,sl=d||l,Sl(t,e),sl=d,ol=u,Tl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||ol||sl||Ol(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){rd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){rd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?hf(m,!0):hf(l.stateNode,!1)}catch(e){rd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,xl(e,n))));break;case 19:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 30:break;case 21:break;default:Sl(t,e),Tl(e)}}function Tl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(tl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;il(e,nl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),il(e,nl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;rl(e,nl(e),s);break;default:throw Error(i(161))}}catch(t){rd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function El(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;El(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fl(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jc(4,t,t.return),Ol(t);break;case 1:Qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Xc(t,t.return,n),Ol(t);break;case 27:Of(t.stateNode);case 26:case 5:Qc(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function kl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:kl(i,a,n),qc(4,a);break;case 1:if(kl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){rd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Qa(c[i],s)}catch(e){rd(r,r.return,e)}}n&&o&64&&Yc(a),Zc(a,a.return);break;case 27:al(a);case 26:case 5:kl(i,a,n),n&&r===null&&o&4&&$c(a),Zc(a,a.return);break;case 12:kl(i,a,n);break;case 31:kl(i,a,n),n&&o&4&&vl(i,a);break;case 13:kl(i,a,n),n&&o&4&&yl(i,a);break;case 22:a.memoizedState===null&&kl(i,a,n),Zc(a,a.return);break;case 30:break;default:kl(i,a,n)}t=t.sibling}}function Al(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&&da(n))}function jl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e))}function Ml(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nl(e,t,n,r),t=t.sibling}function Nl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ml(e,t,n,r),i&2048&&qc(9,t);break;case 1:Ml(e,t,n,r);break;case 3:Ml(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e)));break;case 12:if(i&2048){Ml(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){rd(t,t.return,e)}}else Ml(e,t,n,r);break;case 31:Ml(e,t,n,r);break;case 13:Ml(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ml(e,t,n,r):(a._visibility|=2,Pl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Ml(e,t,n,r):Fl(e,t),i&2048&&Al(o,t);break;case 24:Ml(e,t,n,r),i&2048&&jl(t.alternate,t);break;default:Ml(e,t,n,r)}}function Pl(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:Pl(a,o,s,c,i),qc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Pl(a,o,s,c,i)):u._visibility&2?Pl(a,o,s,c,i):Fl(a,o),i&&l&2048&&Al(o.alternate,o);break;case 24:Pl(a,o,s,c,i),i&&l&2048&&jl(o.alternate,o);break;default:Pl(a,o,s,c,i)}t=t.sibling}}function Fl(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:Fl(n,r),i&2048&&Al(r.alternate,r);break;case 24:Fl(n,r),i&2048&&jl(r.alternate,r);break;default:Fl(n,r)}t=t.sibling}}var Il=8192;function Ll(e,t,n){if(e.subtreeFlags&Il)for(e=e.child;e!==null;)Rl(e,t,n),e=e.sibling}function Rl(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Il&&e.memoizedState!==null&&op(n,Cl,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=Cl;Cl=jf(e.stateNode.containerInfo),Ll(e,t,n),Cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Il,Il=16777216,Ll(e,t,n),Il=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function zl(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 Bl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Ul(r,e)}zl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vl(e),e=e.sibling}function Vl(e){switch(e.tag){case 0:case 11:case 15:Bl(e),e.flags&2048&&Jc(9,e,e.return);break;case 3:Bl(e);break;case 12:Bl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hl(e)):Bl(e);break;default:Bl(e)}}function Hl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Ul(r,e)}zl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jc(8,t,t.return),Hl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hl(t));break;default:Hl(t)}e=e.sibling}}function Ul(e,t){for(;ul!==null;){var n=ul;switch(n.tag){case 0:case 11:case 15:Jc(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:da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ul=r;else a:for(n=e;ul!==null;){r=ul;var i=r.sibling,a=r.return;if(pl(r),r===n){ul=null;break a}if(i!==null){i.return=a,ul=i;break a}ul=a}}}var Wl={getCacheForType:function(e){var t=ra(la),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ra(la).controller.signal}},Gl=typeof WeakMap==`function`?WeakMap:Map,Kl=0,ql=null,Jl=null,Yl=0,Xl=0,Zl=null,Ql=!1,$l=!1,eu=!1,tu=0,nu=0,ru=0,iu=0,au=0,ou=0,su=0,cu=null,lu=null,uu=!1,du=0,fu=0,pu=1/0,mu=null,hu=null,gu=0,_u=null,vu=null,yu=0,bu=0,xu=null,Su=null,Cu=0,wu=null;function Tu(){return Kl&2&&Yl!==0?Yl&-Yl:N.T===null?it():wd()}function Eu(){if(ou===0){if(!(Yl&536870912)||Ii){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),ou=e}else ou=536870912}return e=ao.current,e!==null&&(e.flags|=32),ou}function Du(e,t,n){(e===ql&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)&&(Pu(e,0),ju(e,Yl,ou,!1)),Ze(e,n),(!(Kl&2)||e!==ql)&&(e===ql&&(!(Kl&2)&&(iu|=n),nu===4&&ju(e,Yl,ou,!1)),gd(e))}function Ou(e,t,n){if(Kl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||qe(e,t),a=r?Hu(e,t):Bu(e,t,!0),o=r;do{if(a===0){$l&&!r&&ju(e,t,0,!1);break}if(n=e.current.alternate,o&&!Au(n)){a=Bu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=cu;var l=c.current.memoizedState.isDehydrated;if(l&&(Pu(c,s).flags|=256),s=Bu(c,s,!1),s!==2){if(eu&&!l){c.errorRecoveryDisabledLanes|=o,iu|=o,a=4;break a}o=lu,lu=a,o!==null&&(lu===null?lu=o:lu.push.apply(lu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Pu(e,0),ju(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ju(r,t,ou,!Ql);break a;case 2:lu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=du+300-Ee(),10<a)){if(ju(r,t,ou,!Ql),Ke(r,0,!0)!==0)break a;yu=t,r.timeoutHandle=cf(ku.bind(null,r,n,lu,mu,uu,t,ou,iu,su,Ql,o,`Throttled`,-0,0),a);break a}ku(r,n,lu,mu,uu,t,ou,iu,su,Ql,o,null,-0,0)}break}while(1);gd(e)}function ku(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Rl(t,a,d);var m=(a&62914560)===a?du-Ee():(a&4194048)===a?fu-Ee():0;if(m=cp(d,m),m!==null){yu=a,e.cancelPendingCommit=m(Yu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),ju(e,a,o,!l);return}}Yu(e,t,a,n,r,i,o,s,c)}function Au(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(!Cr(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 ju(e,t,n,r){t&=~au,t&=~iu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Re(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function Mu(){return Kl&6?!0:(_d(0,!1),!1)}function Nu(){if(Jl!==null){if(Xl===0)var e=Jl.return;else e=Jl,Yi=Ji=null,No(e),Pa=null,Fa=0,e=Jl;for(;e!==null;)Kc(e.alternate,e),e=e.return;Jl=null}}function Pu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,lf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yu=0,Nu(),ql=e,Jl=n=di(e.current,null),Yl=t,Xl=0,Zl=null,Ql=!1,$l=qe(e,t),eu=!1,su=ou=au=iu=ru=nu=0,lu=cu=null,uu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Re(r),a=1<<i;t|=e[i],r&=~a}return tu=t,ti(),n}function Fu(e,t){go=null,N.H=Us,t===wa||t===Ea?(t=Ma(),Xl=3):t===Ta?(t=Ma(),Xl=4):Xl=t===sc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Zl=t,Jl===null&&(nu=1,tc(e,yi(t,e.current)))}function Iu(){var e=ao.current;return e===null?!0:(Yl&4194048)===Yl?oo===null:(Yl&62914560)===Yl||Yl&536870912?e===oo:!1}function Lu(){var e=N.H;return N.H=Us,e===null?Us:e}function Ru(){var e=N.A;return N.A=Wl,e}function zu(){nu=4,Ql||(Yl&4194048)!==Yl&&ao.current!==null||($l=!0),!(ru&134217727)&&!(iu&134217727)||ql===null||ju(ql,Yl,ou,!1)}function Bu(e,t,n){var r=Kl;Kl|=2;var i=Lu(),a=Ru();(ql!==e||Yl!==t)&&(mu=null,Pu(e,t)),t=!1;var o=nu;a:do try{if(Xl!==0&&Jl!==null){var s=Jl,c=Zl;switch(Xl){case 8:Nu(),o=6;break a;case 3:case 2:case 9:case 6:ao.current===null&&(t=!0);var l=Xl;if(Xl=0,Zl=null,Ku(e,s,c,l),n&&$l){o=0;break a}break;default:l=Xl,Xl=0,Zl=null,Ku(e,s,c,l)}}Vu(),o=nu;break}catch(t){Fu(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,Kl=r,N.H=i,N.A=a,Jl===null&&(ql=null,Yl=0,ti()),o}function Vu(){for(;Jl!==null;)Wu(Jl)}function Hu(e,t){var n=Kl;Kl|=2;var r=Lu(),a=Ru();ql!==e||Yl!==t?(mu=null,pu=Ee()+500,Pu(e,t)):$l=qe(e,t);a:do try{if(Xl!==0&&Jl!==null){t=Jl;var o=Zl;b:switch(Xl){case 1:Xl=0,Zl=null,Ku(e,t,o,1);break;case 2:case 9:if(Oa(o)){Xl=0,Zl=null,Gu(t);break}t=function(){Xl!==2&&Xl!==9||ql!==e||(Xl=7),gd(e)},o.then(t,t);break a;case 3:Xl=7;break a;case 4:Xl=5;break a;case 7:Oa(o)?(Xl=0,Zl=null,Gu(t)):(Xl=0,Zl=null,Ku(e,t,o,7));break;case 5:var s=null;switch(Jl.tag){case 26:s=Jl.memoizedState;case 5:case 27:var c=Jl;if(s?ap(s):c.stateNode.complete){Xl=0,Zl=null;var l=c.sibling;if(l!==null)Jl=l;else{var u=c.return;u===null?Jl=null:(Jl=u,qu(u))}break b}}Xl=0,Zl=null,Ku(e,t,o,5);break;case 6:Xl=0,Zl=null,Ku(e,t,o,6);break;case 8:Nu(),nu=6;break a;default:throw Error(i(462))}}Uu();break}catch(t){Fu(e,t)}while(1);return Yi=Ji=null,N.H=r,N.A=a,Kl=n,Jl===null?(ql=null,Yl=0,ti(),nu):0}function Uu(){for(;Jl!==null&&!we();)Wu(Jl)}function Wu(e){var t=Lc(e.alternate,e,tu);e.memoizedProps=e.pendingProps,t===null?qu(e):Jl=t}function Gu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xc(n,t,t.pendingProps,t.type,void 0,Yl);break;case 11:t=xc(n,t,t.pendingProps,t.type.render,t.ref,Yl);break;case 5:No(t);default:Kc(n,t),t=Jl=fi(t,tu),t=Lc(n,t,tu)}e.memoizedProps=e.pendingProps,t===null?qu(e):Jl=t}function Ku(e,t,n,r){Yi=Ji=null,No(t),Pa=null,Fa=0;var i=t.return;try{if(oc(e,i,t,n,Yl)){nu=1,tc(e,yi(n,e.current)),Jl=null;return}}catch(t){if(i!==null)throw Jl=i,t;nu=1,tc(e,yi(n,e.current)),Jl=null;return}t.flags&32768?(Ii||r===1?e=!0:$l||Yl&536870912?e=!1:(Ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=ao.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ju(t,e)):qu(t)}function qu(e){var t=e;do{if(t.flags&32768){Ju(t,Ql);return}e=t.return;var n=Wc(t.alternate,t,tu);if(n!==null){Jl=n;return}if(t=t.sibling,t!==null){Jl=t;return}Jl=t=e}while(t!==null);nu===0&&(nu=5)}function Ju(e,t){do{var n=Gc(e.alternate,e);if(n!==null){n.flags&=32767,Jl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Jl=e;return}Jl=e=n}while(e!==null);nu=6,Jl=null}function Yu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do ed();while(gu!==0);if(Kl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,Qe(e,n,o,s,c,l),e===ql&&(Jl=ql=null,Yl=0),vu=t,_u=e,yu=n,bu=o,xu=a,Su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ld(Ae,function(){return td(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=N.T,N.T=null,a=P.p,P.p=2,s=Kl,Kl|=4;try{dl(e,t,n)}finally{Kl=s,P.p=a,N.T=r}}gu=1,Xu(),Zu(),Qu()}}function Xu(){if(gu===1){gu=0;var e=_u,t=vu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Kl;Kl|=4;try{wl(t,e);var a=ef,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(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 _=Er(s,h),v=Er(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}}Sp=!!$d,ef=$d=null}finally{Kl=i,P.p=r,N.T=n}}e.current=t,gu=2}}function Zu(){if(gu===2){gu=0;var e=_u,t=vu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Kl;Kl|=4;try{fl(e,t.alternate,t)}finally{Kl=i,P.p=r,N.T=n}}gu=3}}function Qu(){if(gu===4||gu===3){gu=0,Te();var e=_u,t=vu,n=yu,r=Su;t.subtreeFlags&10256||t.flags&10256?gu=5:(gu=0,vu=_u=null,$u(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(hu=null),rt(n),t=t.stateNode,Ie&&typeof Ie.onCommitFiberRoot==`function`)try{Ie.onCommitFiberRoot(Fe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}yu&3&&ed(),gd(e),i=e.pendingLanes,n&261930&&i&42?e===wu?Cu++:(Cu=0,wu=e):Cu=0,_d(0,!1)}}function $u(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,da(t)))}function ed(){return Xu(),Zu(),Qu(),td()}function td(){if(gu!==5)return!1;var e=_u,t=bu;bu=0;var n=rt(yu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=xu,xu=null;var o=_u,s=yu;if(gu=0,vu=_u=null,yu=0,Kl&6)throw Error(i(331));var c=Kl;if(Kl|=4,Vl(o.current),Nl(o,o.current,s,n),Kl=c,_d(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{P.p=a,N.T=r,$u(e,t)}}function nd(e,t,n){t=yi(n,t),t=rc(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(Ze(e,2),gd(e))}function rd(e,t,n){if(e.tag===3)nd(e,e,n);else for(;t!==null;){if(t.tag===3){nd(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hu===null||!hu.has(r))){e=yi(n,e),n=ic(2),r=Ka(t,n,2),r!==null&&(ac(n,r,t,e),Ze(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gl;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)||(eu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ql===e&&(Yl&n)===n&&(nu===4||nu===3&&(Yl&62914560)===Yl&&300>Ee()-du?!(Kl&2)&&Pu(e,0):au|=n,su===Yl&&(su=0)),gd(e)}function od(e,t){t===0&&(t=Ye()),e=ii(e,t),e!==null&&(Ze(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(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),od(e,n)}function ld(e,t){return Se(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Cd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;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-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Sd(r,a))}else a=Yl,a=Ke(r,r===ql?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,Sd(r,a))}r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&sf()&&(e=hd);for(var t=Ee(),n=null,r=ud;r!==null;){var i=r.next,a=bd(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}gu!==0&&gu!==5||_d(e,!1),hd!==0&&(hd=0)}function bd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Re(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ql,n=Yl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),rt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=Me;break;default:n=Ae}return r=xd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function xd(e,t){if(gu!==0&&gu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ed()&&e.callbackNode!==n)return null;var r=Yl;return r=Ke(e,e===ql?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ou(e,r,t),bd(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?xd.bind(null,e):null)}function Sd(e,t){if(ed())return null;Ou(e,t,!0)}function Cd(){df(function(){Kl&6?Se(Oe,vd):yd()})}function wd(){if(hd===0){var e=ma;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),hd=e}return hd}function Td(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function Ed(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Td((i[ct]||null).action),o=r.submitter;o&&(t=(t=o[ct]||null)?Td(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(hd!==0){var e=o?Ed(i,o):new FormData(i);ks(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Ed(i,o):new FormData(i),ks(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Od=0;Od<Yr.length;Od++){var kd=Yr[Od];Xr(kd.toLowerCase(),`on`+(kd[0].toUpperCase()+kd.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ad=`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(` `),jd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ad));function Md(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){Zr(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){Zr(e)}i.currentTarget=null,a=c}}}}function Nd(e,t){var n=t[ut];n===void 0&&(n=t[ut]=new Set);var r=e+`__bubble`;n.has(r)||(Ld(t,e,2,!1),n.add(r))}function Pd(e,t,n){var r=0;t&&(r|=4),Ld(n,e,r,t)}var Fd=`_reactListening`+Math.random().toString(36).slice(2);function Id(e){if(!e[Fd]){e[Fd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(jd.has(t)||Pd(t,!1,e),Pd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fd]||(t[Fd]=!0,Pd(`selectionchange`,!1,t))}}function Ld(e,t,n,r){switch(kp(t)){case 2:var i=Cp;break;case 8:i=wp;break;default:i=Tp}n=i.bind(null,t,n,e),i=void 0,!dn||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 Rd(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=gt(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}cn(function(){var r=a,i=nn(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;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=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}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=ln(m,p),g!=null&&d.push(zd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[lt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?gt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,gt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Vd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Hd(s,c,l,d,!1),u!==null&&f!==null&&Hd(s,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=dr;else if(ar(c)){if(fr)v=xr;else{v=yr;var y=vr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(s,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Bd(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Bd(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Dd(s,e,r,n,i)}Md(s,t)})}function zd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bd(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=ln(e,n),i!=null&&r.unshift(zd(e,i,a)),i=ln(e,t),i!=null&&r.push(zd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Vd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hd(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=ln(n,a),l!=null&&o.unshift(zd(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(zd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ud=/\r\n?/g,Wd=/\u0000|\uFFFD/g;function Gd(e){return(typeof e==`string`?e:``+e).replace(Ud,`
9
- `).replace(Wd,``)}function Kd(e,t){return t=Gd(t),Gd(e)===t}function qd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+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`&&qd(e,t,`name`,a.name,a,null),qd(e,t,`formEncType`,a.formEncType,a,null),qd(e,t,`formMethod`,a.formMethod,a,null),qd(e,t,`formTarget`,a.formTarget,a,null)):(qd(e,t,`encType`,a.encType,a,null),qd(e,t,`method`,a.method,a,null),qd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Nd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Nd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Nd(`beforetoggle`,e),Nd(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Jd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Nd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Nd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ct]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Yd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Nd(`error`,e),Nd(`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:qd(e,t,o,s,n,null)}}a&&qd(e,t,`srcSet`,n.srcSet,n,null),r&&qd(e,t,`src`,n.src,n,null);return;case`input`:Nd(`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:qd(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Nd(`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:qd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Nd(`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:qd(e,t,s,c,n,null)}Gt(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:qd(e,t,l,r,n,null)}return;case`dialog`:Nd(`beforetoggle`,e),Nd(`toggle`,e),Nd(`cancel`,e),Nd(`close`,e);break;case`iframe`:case`object`:Nd(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ad.length;r++)Nd(Ad[r],e);break;case`image`:Nd(`error`,e),Nd(`load`,e);break;case`details`:Nd(`toggle`,e);break;case`embed`:case`source`:case`link`:Nd(`error`,e),Nd(`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:qd(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Jd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&qd(e,t,c,r,n,null))}function Xd(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)||qd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&qd(e,t,p,m,r,f)}}Bt(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)||qd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&qd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(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:qd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&qd(e,t,s,a,r,o)}Wt(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:qd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:qd(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)&&qd(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:qd(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Jd(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||Jd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&qd(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||qd(e,t,f,p,r,m)}function Zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Qd(){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&&Zd(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&&Zd(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 $d=null,ef=null;function tf(e){return e.nodeType===9?e:e.ownerDocument}function nf(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 rf(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 af(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 of=null;function sf(){var e=window.event;return e&&e.type===`popstate`?e!==of&&(of=e,!0):(of=null,!1)}var cf=typeof setTimeout==`function`?setTimeout:void 0,lf=typeof clearTimeout==`function`?clearTimeout:void 0,uf=typeof Promise==`function`?Promise:void 0,df=typeof queueMicrotask==`function`?queueMicrotask:uf===void 0?cf:function(e){return uf.resolve(null).then(e).catch(ff)};function ff(e){setTimeout(function(){throw e})}function pf(e){return e===`head`}function mf(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),qp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Of(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Of(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Of(e.ownerDocument.body)}n=i}while(n);qp(t)}function hf(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 gf(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`:gf(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function _f(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[mt])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=Cf(e.nextSibling),e===null)break}return null}function vf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Cf(e.nextSibling),e===null))return null;return e}function yf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Cf(e.nextSibling),e===null))return null;return e}function bf(e){return e.data===`$?`||e.data===`$~`}function xf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Sf(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 Cf(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 wf=null;function Tf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Ef(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 Df(e,t,n){switch(t=tf(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 Of(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var kf=new Map,Af=new Set;function jf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mf=P.d;P.d={f:Nf,r:Pf,D:Lf,C:Rf,L:zf,m:Bf,X:Hf,S:Vf,M:Uf};function Nf(){var e=Mf.f(),t=Mu();return e||t}function Pf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?js(t):Mf.r(e)}var Ff=typeof document>`u`?null:document;function If(e,t,n){var r=Ff;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Af.has(i)||(Af.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Yd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Lf(e){Mf.D(e),If(`dns-prefetch`,e,null)}function Rf(e,t){Mf.C(e,t),If(`preconnect`,e,t)}function zf(e,t,n){Mf.L(e,t,n);var r=Ff;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Gf(e);break;case`script`:a=Yf(e)}kf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),kf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Kf(a))||t===`script`&&r.querySelector(Xf(a))||(t=r.createElement(`link`),Yd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Bf(e,t){Mf.m(e,t);var n=Ff;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Yf(e)}if(!kf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),kf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Xf(a)))return}r=n.createElement(`link`),Yd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Vf(e,t,n){Mf.S(e,t,n);var r=Ff;if(r&&e){var i=yt(r).hoistableStyles,a=Gf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Kf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=kf.get(a))&&$f(e,n);var c=o=r.createElement(`link`);bt(c),Yd(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,Qf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Hf(e,t){Mf.X(e,t);var n=Ff;if(n&&e){var r=yt(n).hoistableScripts,i=Yf(e),a=r.get(i);a||(a=n.querySelector(Xf(i)),a||(e=f({src:e,async:!0},t),(t=kf.get(i))&&ep(e,t),a=n.createElement(`script`),bt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Uf(e,t){Mf.M(e,t);var n=Ff;if(n&&e){var r=yt(n).hoistableScripts,i=Yf(e),a=r.get(i);a||(a=n.querySelector(Xf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=kf.get(i))&&ep(e,t),a=n.createElement(`script`),bt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Wf(e,t,n,r){var a=(a=de.current)?jf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Gf(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Gf(n.href);var o=yt(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(Kf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),kf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kf.set(e,n),o||Jf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Yf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Gf(e){return`href="`+zt(e)+`"`}function Kf(e){return`link[rel="stylesheet"][`+e+`]`}function qf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Jf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Yd(t,`link`,n),bt(t),e.head.appendChild(t))}function Yf(e){return`[src="`+zt(e)+`"]`}function Xf(e){return`script[async]`+e}function Zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Yd(r,`style`,a),Qf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Gf(n.href);var o=e.querySelector(Kf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=qf(n),(a=kf.get(a))&&$f(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Yd(o,`link`,r),t.state.loading|=4,Qf(o,n.precedence,e),t.instance=o;case`script`:return o=Yf(n.src),(a=e.querySelector(Xf(o)))?(t.instance=a,bt(a),a):(r=n,(a=kf.get(o))&&(r=f({},n),ep(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Yd(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,Qf(r,n.precedence,e));return t.instance}function Qf(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 $f(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function ep(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var tp=null;function np(e,t,n){if(tp===null){var r=new Map,i=tp=new Map;i.set(n,r)}else i=tp,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[mt]||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 rp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function ip(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 ap(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function op(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=Gf(r.href),a=t.querySelector(Kf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=lp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=qf(r),(i=kf.get(i))&&$f(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Yd(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=lp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sp=0;function cp(e,t){return e.stylesheets&&e.count===0&&dp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&dp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sp===0&&(sp=62500*Qd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&dp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var up=null;function dp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,up=new Map,t.forEach(fp,e),up=null,lp.call(e))}function fp(e,t){if(!(t.state.loading&4)){var n=up.get(e);if(n)var r=n.get(null);else{n=new Map,up.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=lp.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 pp={$$typeof:C,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function mp(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=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function hp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new mp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=ua(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ua(a),e}function gp(e){return e?(e=si,e):si}function _p(e,t,n,r,i,a){i=gp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ga(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ka(e,r,t),n!==null&&(Du(n,e,t),qa(n,e,t))}function vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yp(e,t){vp(e,t),(e=e.alternate)&&vp(e,t)}function bp(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&Du(t,e,67108864),yp(e,67108864)}}function xp(e){if(e.tag===13||e.tag===31){var t=Tu();t=nt(t);var n=ii(e,t);n!==null&&Du(n,e,t),yp(e,t)}}var Sp=!0;function Cp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,Tp(e,t,n,r)}finally{P.p=a,N.T=i}}function wp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,Tp(e,t,n,r)}finally{P.p=a,N.T=i}}function Tp(e,t,n,r){if(Sp){var i=Ep(r);if(i===null)Rd(e,t,r,Dp,n),Lp(e,r);else if(zp(i,e,t,n,r))r.stopPropagation();else if(Lp(e,r),t&4&&-1<Ip.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Re(o);s.entanglements[1]|=c,o&=~c}gd(a),!(Kl&6)&&(pu=Ee()+500,_d(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&Du(s,a,2),Mu(),yp(a,2)}if(a=Ep(r),a===null&&Rd(e,t,r,Dp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Rd(e,t,r,null,n)}}function Ep(e){return e=nn(e),Op(e)}var Dp=null;function Op(e){if(Dp=null,e=gt(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 Dp=e,null}function kp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(De()){case Oe:return 2;case ke:return 8;case Ae:case je:return 32;case Me:return 268435456;default:return 32}default:return 32}}var z=!1,Ap=null,jp=null,Mp=null,Np=new Map,Pp=new Map,Fp=[],Ip=`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 Lp(e,t){switch(e){case`focusin`:case`focusout`:Ap=null;break;case`dragenter`:case`dragleave`:jp=null;break;case`mouseover`:case`mouseout`:Mp=null;break;case`pointerover`:case`pointerout`:Np.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Pp.delete(t.pointerId)}}function Rp(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=_t(t),t!==null&&bp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zp(e,t,n,r,i){switch(t){case`focusin`:return Ap=Rp(Ap,e,t,n,r,i),!0;case`dragenter`:return jp=Rp(jp,e,t,n,r,i),!0;case`mouseover`:return Mp=Rp(Mp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Np.set(a,Rp(Np.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Pp.set(a,Rp(Pp.get(a)||null,e,t,n,r,i)),!0}return!1}function Bp(e){var t=gt(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,at(e.priority,function(){xp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,at(e.priority,function(){xp(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 Vp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ep(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&bp(t),e.blockedOn=n,!1;t.shift()}return!0}function Hp(e,t,n){Vp(e)&&n.delete(t)}function Up(){z=!1,Ap!==null&&Vp(Ap)&&(Ap=null),jp!==null&&Vp(jp)&&(jp=null),Mp!==null&&Vp(Mp)&&(Mp=null),Np.forEach(Hp),Pp.forEach(Hp)}function Wp(e,n){e.blockedOn===n&&(e.blockedOn=null,z||(z=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Up)))}var Gp=null;function Kp(e){Gp!==e&&(Gp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gp===e&&(Gp=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(Op(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qp(e){function t(t){return Wp(t,e)}Ap!==null&&Wp(Ap,e),jp!==null&&Wp(jp,e),Mp!==null&&Wp(Mp,e),Np.forEach(t),Pp.forEach(t);for(var n=0;n<Fp.length;n++){var r=Fp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Fp.length&&(n=Fp[0],n.blockedOn===null);)Bp(n),n.blockedOn===null&&Fp.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||Kp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ct]||null)s=o.formAction;else if(Op(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Kp(n)}}}function Jp(){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 Yp(e){this._internalRoot=e}Xp.prototype.render=Yp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;_p(n,Tu(),e,t,null,null)},Xp.prototype.unmount=Yp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_p(e.current,2,null,e,null,null),Mu(),t[lt]=null}};function Xp(e){this._internalRoot=e}Xp.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fp.length&&t!==0&&t<Fp[n].priority;n++);Fp.splice(n,0,e),n===0&&Bp(e)}};var Zp=n.version;if(Zp!==`19.2.8`)throw Error(i(527,Zp,`19.2.8`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{Fe=$p.inject(Qp),Ie=$p}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Qs,s=$s,c=ec;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=hp(e,1,!1,null,null,n,r,null,o,s,c,Jp),e[lt]=t.current,Id(e),new Yp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=u(p(),1),x=y(),S={SIGNUP_VIEWED:`signup_viewed`,SIGNUP_SUBMITTED:`signup_submitted`,SIGNUP_VERIFIED:`signup_verified`,SIGNUP_COMPLETED:`signup_completed`,LOGIN_COMPLETED:`login_completed`,LOGOUT_COMPLETED:`logout_completed`,FIRST_ACTION:`first_action`,WAITLIST_JOINED:`waitlist_joined`,WAITLIST_SHARED:`waitlist_shared`,REFERRAL_USED:`referral_used`,REFERRAL_CLAIMED:`referral_claimed`,PRICING_VIEWED:`pricing_viewed`,PLAN_CLICKED:`plan_clicked`,PLAN_SELECTED:`plan_selected`,PLAN_SKIPPED:`plan_skipped`,PLAN_CHANGED:`plan_changed`,UPGRADE_CLICKED:`upgrade_clicked`,CHECKOUT_STARTED:`checkout_started`,PAYMENT_INFO_ADDED:`payment_info_added`,CHECKOUT_FAILED:`checkout_failed`,ORDER_COMPLETED:`order_completed`,SUBSCRIPTION_CHANGED:`subscription_changed`,SUBSCRIPTION_CANCELED:`subscription_canceled`,ORDER_REFUNDED:`order_refunded`,SALES_CONTACTED:`sales_contacted`,PRODUCT_VIEWED:`product_viewed`,SEARCH_PERFORMED:`search_performed`,CTA_CLICKED:`cta_clicked`,NEWSLETTER_SUBSCRIBED:`newsletter_subscribed`,BETA_SUBMITTED:`beta_submitted`,RESEARCH_ACCESS_APPLIED:`research_access_applied`,USAGE_SELECTED:`usage_selected`,TEAM_CREATED:`team_created`,FIRST_CHAT_NOTICE_ACCEPTED:`first_chat_notice_accepted`,NAME_SET:`name_set`,ROLE_SELECTED:`role_selected`,STARTER_PROMPT_USED:`starter_prompt_used`,OWN_TOPIC_CHOSEN:`own_topic_chosen`,FEATURE_USED:`feature_used`,API_KEY_CREATED:`api_key_created`,APP_CREATED:`app_created`,PROJECT_CREATED:`project_created`,AGENT_CREATED:`agent_created`,CHAT_STARTED:`chat_started`,CHAT_MESSAGE_SENT:`chat_message_sent`,MODEL_SWITCHED:`model_switched`,TASK_STARTED:`task_started`,TASK_COMPLETED:`task_completed`,BUILD_STARTED:`build_started`,GENERATION_COMPLETED:`generation_completed`,GENERATION_FAILED:`generation_failed`,DEPLOY_STARTED:`deploy_started`,DEPLOY_SUCCEEDED:`deploy_succeeded`,DEPLOY_FAILED:`deploy_failed`},C=`$pageview`,w=`$exception`,T=(e,t,n)=>({event:e,label:t,...n??{}}),E={signup:{label:`Signup`,products:[`site`,`id`],join:`aggregate`,steps:[T(C,`Landed`,{product:`site`}),T(S.SIGNUP_VIEWED,`Opened signup`,{product:`site`}),T(S.SIGNUP_SUBMITTED,`Redirected to Hanzo ID`,{product:`site`}),T(S.SIGNUP_VIEWED,`Saw the form`,{product:`id`}),T(S.SIGNUP_SUBMITTED,`Submitted the form`,{product:`id`}),T(S.SIGNUP_COMPLETED,`Account created`,{product:`site`})]},journey:{label:`Hanzo journey`,products:[`site`,`app`,`chat`,`pay`,`commerce`],join:`person`,steps:[T(C,`Landed`),T(S.SIGNUP_VIEWED,`Saw sign-up`),T(S.SIGNUP_SUBMITTED,`Asked for an account`),T(S.SIGNUP_COMPLETED,`Account created`),T(S.USAGE_SELECTED,`Said how they will use Hanzo`),T(S.PRICING_VIEWED,`Saw plans`),T(S.PLAN_CLICKED,`Pressed a plan`),T(S.PLAN_SELECTED,`Opened checkout on a plan`),T(S.CHECKOUT_STARTED,`Saw the billing form`),T(S.PAYMENT_INFO_ADDED,`Card tokenized`),T(S.ORDER_COMPLETED,`Paid`),T(S.FIRST_ACTION,`First action`)]},apiActivation:{label:`API activation`,products:[`site`,`cloud`],join:`person`,steps:[T(S.SIGNUP_COMPLETED,`Account created`),T(S.API_KEY_CREATED,`Key minted`),T(S.FIRST_ACTION,`First successful API call`,{where:{property:`action`,equals:`api_call`}})]},upgrade:{label:`Upgrade`,products:[`site`,`app`,`console`,`billing`,`pay`],join:`person`,steps:[T(S.PRICING_VIEWED,`Viewed pricing`),T(S.PLAN_CLICKED,`Chose a plan`),T(S.CHECKOUT_STARTED,`Left for checkout`,{product:`billing`}),T(S.CHECKOUT_STARTED,`Reached the card form`,{product:`pay`}),T(S.ORDER_COMPLETED,`Paid`)]},appShip:{label:`Describe → ship`,products:[`app`],join:`person`,steps:[T(C,`Landed`),T(S.BUILD_STARTED,`Described an app`),T(S.GENERATION_COMPLETED,`Got a working build`),T(S.DEPLOY_STARTED,`Hit publish`),T(S.DEPLOY_SUCCEEDED,`Live URL`)]},chatEngage:{label:`Chat engagement`,products:[`chat`],join:`person`,steps:[T(C,`Landed`),T(S.CHAT_STARTED,`Started a conversation`),T(S.CHAT_MESSAGE_SENT,`Sent a message`),T(S.GENERATION_COMPLETED,`Got an answer`)]},siteToChat:{label:`Site → Chat handoff`,products:[`site`,`chat`],join:`aggregate`,steps:[T(S.CHAT_STARTED,`Submitted the hanzo.ai composer`,{product:`site`,where:{property:`source`,equals:`composer`}}),T(S.CHAT_STARTED,`Landed in hanzo.chat`,{product:`chat`,where:{property:`referrerProduct`,equals:`site`}}),T(S.GENERATION_COMPLETED,`Got an answer`)]}};function D(e){return E[e].steps.map(e=>e.event)}Object.freeze(Object.values(S)),Object.freeze([C,w]);var O=[`facebook.`,`instagram.`,`twitter.`,`x.com`,`t.co`,`linkedin.`,`reddit.`,`youtube.`,`tiktok.`,`pinterest.`,`news.ycombinator.com`],k=[`google.`,`bing.`,`duckduckgo.`,`yahoo.`,`baidu.`,`ecosia.`];function A(e,t){let n=new URLSearchParams(e||``),r=e=>{let t=n.get(e);return t?t.trim():void 0},i={utm:{source:r(`utm_source`),medium:r(`utm_medium`),campaign:r(`utm_campaign`),term:r(`utm_term`),content:r(`utm_content`)},referrer:t?t.trim():void 0,refCode:r(`ref`)||r(`refCode`)||r(`ref_code`)||void 0};return i.channel=j(i),i}function j(e){let t=(e.utm.medium||``).toLowerCase();if(/(cpc|ppc|paid|paidsearch|display|cpm)/.test(t))return`paid`;if(e.utm.source||e.utm.campaign)return`campaign`;if(e.refCode)return`referral`;let n=M(e.referrer);return n?O.some(e=>n.includes(e))?`social`:k.some(e=>n.includes(e))?`organic`:`referral`:`direct`}function M(e){if(!e)return``;let t=e.trim(),n=t.indexOf(`://`);n>=0&&(t=t.slice(n+3));let r=t.search(/[/?#]/);r>=0&&(t=t.slice(0,r));let i=t.indexOf(`@`);i>=0&&(t=t.slice(i+1));let a=t.indexOf(`:`);return a>=0&&(t=t.slice(0,a)),t.toLowerCase().trim()}function ee(e){return!!(e.utm.source||e.utm.medium||e.utm.campaign||e.utm.term||e.utm.content||e.refCode||e.referrer&&M(e.referrer))}var te=Object.freeze({hanzo:Object.freeze([`hanzo.ai`,`hanzo.agency`,`hanzo.app`,`hanzo.bot`,`hanzo.chat`,`hanzo.codes`,`hanzo.community`,`hanzo.computer`,`hanzo.help`,`hanzo.id`,`hanzo.industries`,`hanzo.market`,`hanzo.network`,`hanzo.sh`,`hanzo.team`,`hanzo.ventures`,`hanzo.works`,`hanzoskills.com`]),lux:Object.freeze([`lux.network`,`lux.exchange`,`lux.market`,`lux.finance`,`lux.financial`,`lux.credit`,`lux.fund`,`lux.id`]),zoo:Object.freeze([`zoo.ngo`,`zoo.network`,`zoolabs.id`,`zoolabs.io`])}),ne=Object.freeze({hanzo:`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,lux:`pk-gUZp6ZVfhJzSwK-rb4oLbVkpCnMBx5uSCpxf_5yEhQk`,zoo:`pk-3TKpKnERV9AQSsBUERWkZejC1O1mUxc1jRzsP3MPbs4`}),N=Object.freeze({"hanzo.ai":`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,"www.hanzo.ai":`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,"hanzo.app":`pk-wlnXN2a9_vmCm60yTFtQ629Q8TyuaxBNZbY1RWT72gQ`,"hanzo.team":`pk-NCzD2FiHpZv8KUpkCX4olT1LJOJsMxBC_Z8NkiQsOFQ`,"pay.hanzo.ai":`pk-eX6kv7JZNoiYn1WkeJH3tT_8OvkVYScmCXnLMwxTKf8`,"platform.hanzo.ai":`pk-My1RpZLEUnTj8vAdPbWKYdDUuhxZJ4dVjHcwjZN4rZ8`,"docs.hanzo.ai":`pk-jukhtjMT2ymoeBDAeFjINQWlBv-v9sNn1TPztiCrrwk`,"hanzo.bot":`pk-W5d7Mn7ZukT7igyscIy6Pqe8JpA0Ge604Yn4xNR4JCU`,"hanzo.chat":`pk-ATxWeB2jNyRSxDgqnkGoDj3CCbzrmTxSktUh9zlrO-E`,"hanzo.id":`pk-_GVF3KlaqprlPHDumBMRFeFU1lIGOaarQfgimNVDIo8`,"hanzo.industries":`pk-Vh1wvL2HqIAv9qpVvmrznTI9uMHrTD-jyIC-vnlBsgY`,"hanzo.market":`pk-DN3xQFa0H61epUVg9OkiOYLzCdteNt9hE6f-S-ednjQ`,"hanzo.network":`pk-YJ2eiA_7ckLStMPte8Ar8FsmRp_ycmeIeRbpGprZYmM`,"hanzo.agency":`pk-26a2clOaJFe24aKJZ0PkI-GWR9F4EEa8rthHzgy_Efw`,"console.hanzo.ai":`pk-oFNXoiO1wOD8PqGdHYyiSq6jaNCdrd7TpztGpwM2ZiQ`,"admin.hanzo.ai":`pk-RYZwxkomW-tlAnEu2DKo_kAzcxFbSF2YiYcsUY48QL0`,"bot.hanzo.ai":`pk-W5d7Mn7ZukT7igyscIy6Pqe8JpA0Ge604Yn4xNR4JCU`,"cloud.hanzo.ai":`pk-RAfEGHPoNdCEU9fnA_cPd_Xo9Tci44rlYQV9xuJ1Ob0`});function P(e){let t=ie(e).replace(/^www\./,``);return N[t]??(t.endsWith(`.hanzo.app`)?N[`hanzo.app`]:void 0)}var re=`pk-`,ie=e=>e.trim().toLowerCase().replace(/\.$/,``).split(`:`)[0]??``;function ae(e){let t=ie(e);if(!t)return;let n,r=0;for(let[e,i]of Object.entries(te))for(let a of i)(t===a||t.endsWith(`.${a}`))&&a.length>r&&(n=e,r=a.length);return n}function oe(e,t=ne){if(t===ne){let t=P(e);if(t)return t}let n=ae(e);if(!n)return;let r=t[n];if(typeof r!=`string`)return;let i=r.trim();return i.startsWith(re)?i:void 0}function se(e=ne){if(!(typeof location>`u`))return oe(location.hostname,e)}var ce=`[redacted]`,le=`[email]`,ue=`[ip]`,de=[/-----BEGIN[ A-Z]*PRIVATE KEY-----[\s\S]*?-----END[ A-Z]*PRIVATE KEY-----/g,/eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}/g,/\bbearer\s+[A-Za-z0-9._~+/-]{12,}=*/gi,/\b(?:sk|pk|rk)-[A-Za-z0-9]{2,}-?[A-Za-z0-9]{12,}/g,/\b(?:sk|pk)_(?:live|test)_[A-Za-z0-9]{16,}/g,/\bhk-[A-Za-z0-9]{16,}/g,/\bAKIA[0-9A-Z]{16}\b/g,/\bASIA[0-9A-Z]{16}\b/g,/\bAIza[0-9A-Za-z_-]{20,}/g,/\bgh[posru]_[A-Za-z0-9]{20,}/g,/\bxox[baprs]-[A-Za-z0-9-]{10,}/g,/[a-zA-Z][a-zA-Z0-9+.-]{0,32}:\/\/[^\s:@/]{1,256}:[^\s@/]{1,256}@/g],fe=/\b(?:\d[ -]?){13,19}\b/g;function pe(e){let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=e.charCodeAt(r)-48;n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10==0}function me(e){return e.replace(fe,e=>{let t=e.replace(/[ -]/g,``);return t.length<13||t.length>19?e:pe(t)?ce:e})}var he=/[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{1,255}\.[A-Za-z]{2,24}/g,ge=/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,F=/\b(?:[0-9A-Fa-f]{1,4}:){2,7}[0-9A-Fa-f]{1,4}\b/g,_e=RegExp(`([?&#;](?:`+`code.state.token.access_token.id_token.refresh_token.auth.authorization.secret.client_secret.password.passwd.pwd.api_key.apikey.key.session.session_id.sid.sig.signature.nonce.otp.invite.invitation.reset_token.confirmation_token.magic.ticket.assertion`.split(`.`).join(`|`)+`)=)[^&#;\\s]{1,4096}`,`gi`);function I(e){return e.replace(_e,(e,t)=>t+ce)}var ve=/(^|[^A-Za-z0-9_-]|%[0-9A-Fa-f]{2})((?=[A-Za-z0-9_-]{0,42}[a-z])(?=[A-Za-z0-9_-]{0,42}[A-Z])[A-Za-z0-9_-]{43})(?![A-Za-z0-9_-])/g;function ye(e){e=I(e);for(let t of de)e=e.replace(t,ce);return e=e.replace(ve,(e,t)=>t+ce),me(e)}function be(e){let t=e.indexOf(`#`);return t<0?e:e.slice(0,t)}function xe(e){return e=e.replace(he,le),e=e.replace(F,ue),e=e.replace(ge,ue),e}var L=8192;function Se(e,t=L){return e.length>t?e.slice(0,t)+`… [truncated]`:e}function Ce(e,t=!1){return e?(e=Se(e),e=ye(e),t||(e=xe(e)),e):e??``}var we=50,Te=500,Ee=2048,De=/^\s*at\s+(?:(.+?)\s+\()?(?:(.+?):(\d+):(\d+)|([^)]+))\)?\s*$/,Oe=/^\s*(?:(.*?)@)?(.+?):(\d+):(\d+)\s*$/;function ke(e){return e?!(e.includes(`node_modules`)||e.startsWith(`webpack-internal`)||e.startsWith(`webpack://`)||e.startsWith(`chrome-extension://`)||e.startsWith(`moz-extension://`)):!1}function Ae(e){if(!e)return[];let t=e.split(`
10
- `,Te),n=[];for(let e of t){if(e.length>Ee)continue;let t=e.trimEnd();if(!t)continue;let r,i=``,a=0,o=0,s=De.exec(t);if(s)r=s[1],s[2]?(i=s[2],a=Number(s[3])||0,o=Number(s[4])||0):i=(s[5]||``).trim();else{let e=Oe.exec(t);if(!e)continue;r=e[1],i=e[2],a=Number(e[3])||0,o=Number(e[4])||0}(i||r)&&n.push({function:r||`<anonymous>`,filename:i,abs_path:i,lineno:a,colno:o,in_app:ke(i)})}return n.reverse(),n.length>we?n.slice(n.length-we):n}function je(e){if(e instanceof Error){let t=Me(e,`name`),n=Me(e,`message`),r=Me(e,`stack`);return{name:typeof t==`string`&&t?t:`Error`,message:typeof n==`string`&&n?n:Ne(e),stack:typeof r==`string`?r:void 0}}if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)??Ne(e)}}catch{return{name:`Error`,message:Ne(e)}}}function Me(e,t){try{return e[t]}catch{return}}function Ne(e){try{return String(e)}catch{return`[unstringifiable]`}}var Pe=`iam-anon-id`,Fe=[`hz_anon_id`,`hz_id`],Ie=`hanzo.ai`,Le=63072e3,Re;function ze(e){var t=new Uint8Array(16),n,r=typeof crypto<`u`?crypto:void 0;if(r&&typeof r.getRandomValues==`function`)r.getRandomValues(t);else for(n=0;n<16;n++)t[n]=Math.random()*256|0;var i=Math.floor(e===void 0?Date.now():e);for(n=5;n>=0;n--)t[n]=i%256,i=Math.floor(i/256);t[6]=112|t[6]&15,t[8]=128|t[8]&63;var a=``;for(n=0;n<16;n++)a+=(t[n]+256).toString(16).slice(1),(n===3||n===5||n===7||n===9)&&(a+=`-`);return a}function Be(){try{return typeof document>`u`||typeof document.cookie!=`string`?null:document}catch{return null}}function Ve(){try{return typeof window>`u`||!window.localStorage?null:window.localStorage}catch{return null}}function He(e,t){try{return e&&e.getItem(t)||``}catch{return``}}function Ue(e){var t=Be();if(!t)return``;for(var n=t.cookie.split(`;`),r=0;r<n.length;r++){var i=n[r].indexOf(`=`);if(!(i<0||n[r].slice(0,i).trim()!==e)){var a=n[r].slice(i+1).trim();if(a)try{return decodeURIComponent(a)}catch{return a}}}return``}function We(e,t){var n=Be();if(n){var r=``,i=!1;try{typeof window<`u`&&window.location&&(r=window.location.hostname||``,i=window.location.protocol===`https:`)}catch{}var a=e+`=`+encodeURIComponent(t);a+=`; Path=/; Max-Age=`+Le+`; SameSite=Lax`,(`.`+r).slice(-(Ie.length+1))===`.`+Ie&&(a+=`; Domain=`+Ie),i&&(a+=`; Secure`);try{n.cookie=a}catch{}}}function Ge(e){for(var t=0;t<Fe.length;t++){var n=Ue(Fe[t])||He(e,Fe[t]);if(n)return n}return``}function Ke(){if(typeof window>`u`)return``;var e=Ve(),t=Ue(Pe)||He(e,Pe)||Ge(e)||Re||ze();Re=t,We(Pe,t);try{e&&e.getItem(Pe)!==t&&e.setItem(Pe,t)}catch{}return t}function qe(e){Re=e,We(Pe,e);try{var t=Ve();t&&t.setItem(Pe,e)}catch{}}var Je={session:`hz_session`,firstTouch:`hz_first_touch`,lastTouch:`hz_last_touch`,cohort:`hz_cohort`},Ye=7776e6,Xe=18e5;function Ze(){try{return typeof window>`u`||!window.localStorage?void 0:window.localStorage}catch{return}}function Qe(){return Ke()||void 0}function $e(e=Date.now()){let t=Ze();if(!t)return;let n=null;try{n=JSON.parse(t.getItem(Je.session)||`null`)}catch{n=null}return!n||e-n.last>Xe?n={id:ze(e),last:e}:n.last=e,t.setItem(Je.session,JSON.stringify(n)),n.id}function et(e,t=Date.now()){let n=Ze();n&&n.setItem(Je.session,JSON.stringify({id:e,last:t}))}function tt(e){qe(e)}function nt(){let e=Ze();if(e)try{let t=e.getItem(Je.firstTouch);return t?JSON.parse(t):void 0}catch{return}}function rt(e){let t=Ze();return nt()||(t&&t.setItem(Je.firstTouch,JSON.stringify(e)),e)}function it(e=Date.now()){let t=Ze();if(t)try{let n=JSON.parse(t.getItem(Je.lastTouch)||`null`);return!n?.utm||typeof n.at!=`number`||e-n.at>Ye?void 0:n.utm}catch{return}}function at(e,t=Date.now()){let n=Ze();n&&n.setItem(Je.lastTouch,JSON.stringify({utm:e,at:t}))}function ot(){let e=Ze();if(e)try{let t=e.getItem(Je.cohort);return t?JSON.parse(t):void 0}catch{return}}function st(e){let t=Ze(),n=ot()||{},r={signupWeek:n.signupWeek||e.signupWeek,channel:e.channel||n.channel,refCode:n.refCode||e.refCode};return t&&t.setItem(Je.cohort,JSON.stringify(r)),r}var ct=86400,lt=new Set([`hanzo.app`]);function ut(e){for(let t of Object.values(te))for(let n of t)if(!lt.has(n)&&(e===n||e.endsWith(`.${n}`)))return n;return``}function dt(){let e=ut(window.location.hostname.toLowerCase());return e?`; Domain=.${e}`:``}function ft(e){if(typeof document>`u`||typeof document.cookie!=`string`)return;let t=document.cookie.split(`; `).find(t=>t.startsWith(`${e}=`));return t?decodeURIComponent(t.slice(e.length+1)):void 0}function pt(e,t,n){if(typeof document>`u`)return;let r=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${e}=${encodeURIComponent(t)}; Max-Age=${n*ct}; Path=/; SameSite=Lax${dt()}${r}`}function mt(e){return typeof window<`u`&&window.location?.protocol===`https:`?`__Host-${e}`:e}function ht(e,t,n){if(typeof document>`u`)return;let r=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${mt(e)}=${encodeURIComponent(t)}; Max-Age=${n*ct}; Path=/; SameSite=Lax${r}`}function gt(e,t=[]){if(typeof document>`u`||typeof document.cookie!=`string`)return;let n=document.cookie.split(`; `).map(e=>e.slice(0,e.indexOf(`=`))),r=new Set([...e,...n.filter(e=>t.some(t=>t.test(e)))]),i=window.location.hostname.split(`.`),a=new Set([``,dt(),...i.slice(0,-1).map((e,t)=>`; Domain=.${i.slice(t).join(`.`)}`)]);for(let e of r)for(let t of a)document.cookie=`${e}=; Max-Age=0; Path=/${t}`}var _t=()=>typeof navigator<`u`&&navigator.webdriver===!0,vt=`hz_internal`;function yt(){if(_t())return!0;if(typeof window>`u`||typeof document>`u`||typeof document.cookie!=`string`)return!1;let e=new URLSearchParams(window.location?.search??``).get(vt);return e===`1`&&pt(vt,`1`,365),e===`0`?(pt(vt,``,0),!1):e===`1`||ft(vt)===`1`}function bt(){typeof document>`u`||typeof document.cookie!=`string`||pt(vt,`1`,365)}var xt={anon:`hz_aid`,session:`hz_sid`,firstTouch:`hz_ft`},St=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ct=e=>!!e&&St.test(e);function wt(e){return JSON.stringify([e.utm.source,e.utm.medium,e.utm.campaign,e.utm.term,e.utm.content,e.refCode,e.referrer,e.channel].map(e=>e??``))}function Tt(e){if(!(!e||e.length>1024))try{let t=JSON.parse(e);if(!Array.isArray(t)||t.length!==8||t.some(e=>typeof e!=`string`))return;let[n,r,i,a,o,s,c,l]=t,u=e=>e||void 0;return{utm:{source:u(n),medium:u(r),campaign:u(i),term:u(a),content:u(o)},refCode:u(s),referrer:u(c),channel:u(l)}}catch{return}}function Et(e,t,n,r){let i;try{i=new URL(e,r)}catch{return e}if(i.protocol!==`https:`&&i.protocol!==`http:`||!ae(i.hostname)||i.hostname===n)return e;let a=(e,t)=>t&&i.searchParams.set(e,t);return Ct(t.anonId)&&a(xt.anon,t.anonId),Ct(t.sessionId)&&a(xt.session,t.sessionId),t.firstTouch&&a(xt.firstTouch,wt(t.firstTouch)),i.toString()}function Dt(e){let t=new URLSearchParams(e||``),n=t.get(xt.anon),r=t.get(xt.session);return{anonId:Ct(n)?n:void 0,sessionId:Ct(r)?r:void 0,firstTouch:Tt(t.get(xt.firstTouch))}}function Ot(e){let t=new URL(e),n=!1;for(let e of Object.values(xt))t.searchParams.has(e)&&(t.searchParams.delete(e),n=!0);return n?t.pathname+t.search+t.hash:void 0}var kt=`hz_consent`,At=`hz_consent_v`,jt=`hz_consent_rule`,Mt=`hz_consent_notice`,Nt=`hzpolicy`,Pt=`hzconsent`,Ft={analytics:!1,marketing:!1,ads:!1},It={analytics:!0,marketing:!0,ads:!0},Lt=[`eu`,`us_privacy`,`global`],Rt=`hz_consent_policy`,zt=Symbol.for(`hanzo.event.consent`);function Bt(){let e=globalThis;return e[zt]??(e[zt]={})}function Vt(e){if(typeof e!=`object`||!e)return;let t=e;if(typeof t.version==`number`||typeof t.mode==`string`)return{mode:Lt.includes(t.mode)?t.mode:`eu`,refused:t.refused===!0,version:Number(t.version)||0,region:String(t.region??``),floor:Number(t.floor)||2}}function Ht(){try{return typeof window>`u`?void 0:window.sessionStorage}catch{return}}function Ut(e){let t=Vt(e);Bt().served=t;try{t&&Ht()?.setItem(Rt,JSON.stringify(t))}catch{}t&&(en(),typeof window<`u`&&window.dispatchEvent(new Event(Nt)))}function Wt(){let e=Bt().served;if(e)return e;try{let e=Vt(JSON.parse(Ht()?.getItem(Rt)??`null`));if(e)return e}catch{}return{mode:`eu`,refused:!1,version:3,region:``,floor:2}}function Gt(){let e=Wt();return{mode:e.mode,refused:e.refused||qt(),version:Jt(),region:e.region}}function Kt(){return typeof navigator>`u`?!1:navigator.globalPrivacyControl===!0}function qt(){if(typeof window>`u`)return!1;let e=typeof navigator>`u`?{}:navigator,t=e.doNotTrack??window.doNotTrack??e.msDoNotTrack;return Kt()||t===`1`||t===`yes`}var Jt=()=>Math.max(Bt().served?.version??0,3),Yt=()=>Gt().refused;function Xt(){let e=ft(mt(kt));if(e===void 0)return;let t=Number(ft(mt(At))),n=ft(mt(jt));if(Gt().mode===`eu`&&!(n===`eu`||n===void 0&&t===2))return;let r=e.split(`,`);return{held:{analytics:r.includes(`analytics`),marketing:r.includes(`marketing`),ads:r.includes(`ads`)},current:t>=Wt().floor&&t<=Jt()}}var Zt=e=>e.analytics||e.marketing||e.ads;function Qt(){let e=Xt();return e!==void 0&&(e.current||!Zt(e.held))}function $t(){let e=Gt();if(e.refused)return{...Ft};let t=e.mode===`eu`?Ft:It,n=Xt();return n?n.current?{...n.held}:{analytics:t.analytics&&n.held.analytics,marketing:t.marketing&&n.held.marketing,ads:t.ads&&n.held.ads}:{...t}}function en(){let e=Xt();Yt()&&e&&Zt(e.held)&&cn({...Ft})}function tn(){if(typeof document>`u`)return!1;let e=Gt();return e.mode===`eu`&&!e.refused&&!Qt()}function nn(e){Bt().sheet=e,!e&&typeof window<`u`&&window.dispatchEvent(new Event(Pt))}var rn=()=>Bt().sheet===!0;function an(){ht(Mt,`1`,395),typeof window<`u`&&window.dispatchEvent(new Event(Pt))}var on=()=>ft(mt(Mt))===`1`;function sn(e){return[`analytics`,`marketing`,`ads`].filter(t=>e[t]).join(`,`)}function cn(e){let t=Gt(),n=t.refused?{...Ft}:{analytics:e.analytics,marketing:e.marketing,ads:e.ads};ht(kt,sn(n),395),ht(At,String(Jt()),395),ht(jt,t.mode,395),n.analytics||fn(ln),n.marketing||fn(un),n.ads||fn(dn),typeof window<`u`&&window.dispatchEvent(new Event(Pt))}var ln={cookies:[`_ga`,`_gid`,`_gat`,`hz_cid`],patterns:[/^_ga_[A-Z0-9]+$/,/^_gat_[\w-]+$/],storage:[]},un={cookies:[`hz_touch`,`_fbp`,`_fbc`,`_ttp`,`_tt_enable_cookie`,`ttcsid`,`_twclid`,`li_fat_id`,`li_giant`,`_uetsid`,`_uetvid`,`_pin_unauth`,`_epik`,`_derived_epik`,`_rdt_uuid`,`_rdt_cid`],patterns:[/^ttcsid_[A-Z0-9]+$/],storage:[]},dn={cookies:[],patterns:[/^_gcl_[a-z]+$/,/^_gac_[\w-]+$/],storage:[]};function fn(e){if(gt(e.cookies,e.patterns),!(typeof window>`u`))try{for(let t of e.storage)window.localStorage?.removeItem(t)}catch{}}var pn=()=>cn({...It}),mn=()=>cn({...Ft}),hn=`0.3.66`,gn=`/v1/event`,_n=`https://api.hanzo.ai`,vn=`text/plain`;function yn(e){try{if(typeof process<`u`)return{}[e]||void 0}catch{}}function bn(e,t,n){return e+(e.includes(`?`)?`&`:`?`)+t+`=`+encodeURIComponent(n)}function xn(e){let t=je(e),n=Ae(t.stack).slice(-50).map(e=>({function:e.function,file:e.filename,line:e.lineno,column:e.colno}));return{type:t.name,message:t.message,stack:t.stack,frames:n}}var Sn=()=>Cn()?{screen:`${window.screen?.width??0}x${window.screen?.height??0}`,language:navigator.language||``}:{},Cn=()=>typeof window<`u`&&typeof document<`u`;function wn(e){if(!Cn())return e;let t=new Set(sn($t()).split(`,`).filter(Boolean)),n=String(e.properties?.consent??``).split(`,`).filter(e=>t.has(e)).join(`,`);return{...e,properties:{...e.properties,consent:n}}}function Tn(e){try{return JSON.stringify({batch:e})}catch{}let t=[];for(let n of e)try{t.push(JSON.stringify(n))}catch{try{t.push(JSON.stringify({...n,properties:{$unserializable:!0}}))}catch{}}return t.length>0?`{"batch":[`+t.join(`,`)+`]}`:null}var En=class{send(e,t,n){if(n.beacon&&Cn()&&typeof navigator.sendBeacon==`function`){let r=n.ingestKey?bn(e,`ingest_key`,n.ingestKey):e;try{if(navigator.sendBeacon(r,new Blob([t],{type:vn})))return;n.debug&&console.warn(`[event] beacon refused, falling back to fetch`)}catch{}}if(typeof fetch!=`function`)return;let r=n.ingestKey!==void 0&&n.token===void 0&&n.contentType===void 0,i={"Content-Type":r?vn:n.contentType??`application/json`},a=r?void 0:n.token??n.ingestKey;a&&(i.Authorization=`Bearer ${a}`),fetch(n.ingestKey?bn(e,`ingest_key`,n.ingestKey):e,{method:`POST`,headers:i,body:t,keepalive:!0,credentials:r?`omit`:`include`}).then(t=>{!t.ok&&n.debug&&console.warn(`[event] ingest rejected`,t.status,e.split(`?`)[0])}).catch(t=>{n.debug&&console.warn(`[event] ingest failed`,e.split(`?`)[0],t)})}},Dn=class{constructor(e){this.queue=[],this.timer=null,this.attribution={utm:{}},this.cohort={},this.started=!1,this.reentrant=!1,this.cfg={host:_n,batchSize:20,flushIntervalMs:5e3,enabled:!0,captureErrors:!0,...e,ingestKey:e.ingestKey??yn(`NEXT_PUBLIC_PUBLISHABLE_KEY`)??se()},this.transport=e.transport??new En}adopt(e){e.ingestKey&&!this.cfg.ingestKey&&(this.cfg.ingestKey=e.ingestKey),e.getToken&&!this.cfg.getToken&&(this.cfg.getToken=e.getToken)}init(){if(this.started||!this.cfg.enabled||(this.started=!0,!Cn()))return;let e=Dt(window.location.search),t=Ot(window.location.href);if(t!==void 0)try{window.history.replaceState(window.history.state,``,t)}catch{}this.settle(e,A(window.location.search,document.referrer)),en(),window.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&this.flush(!0)}),window.addEventListener(`pagehide`,()=>this.flush(!0)),this.cfg.captureErrors&&(window.addEventListener(`error`,e=>{this.captureError(e.error??e.message,{handled:!1})}),window.addEventListener(`unhandledrejection`,e=>{this.captureError(e.reason,{handled:!1})}))}settle(e,t){e.anonId&&tt(e.anonId),e.sessionId&&et(e.sessionId);let n=e.firstTouch&&!nt()?rt(e.firstTouch):void 0;this.attribution=n??(ee(t)?rt(t):nt()??t),(t.utm.source||t.utm.campaign)&&at(t.utm),this.lastUtm=it(),this.cohort=st({channel:this.attribution.channel??j(this.attribution),refCode:this.attribution.refCode})}link(e){return Cn()?(this.started||this.init(),Et(e,{anonId:Qe(),sessionId:$e(),firstTouch:this.attribution},window.location.hostname,window.location.href)):e}authorize(e){let t=this.link(e);return this.flush(!0),t}identify(e,t){this.personId=e,this.enqueue(`identify`,void 0,{properties:t})}group(e,t){this.enqueue(`group`,void 0,{groupId:e,properties:t})}pageview(e,t){let n=e??(Cn()?window.location.pathname:void 0),r=(n??``)+`\0`+(Cn()?window.location.href:``);r!==this.counted&&(this.counted=r,this.enqueue(`pageview`,C,{path:n,properties:{...Sn(),...t}}))}capture(e,t,n){this.enqueue(`event`,e,{properties:t,...n})}captureError(e,t){if(!this.reentrant){this.reentrant=!0;try{let n=t?.handled??!0,r=xn(e);r.handled=n,this.enqueue(`error`,void 0,{error:r,level:t?.level??(n?`error`:`fatal`),release:this.cfg.release??yn(`NEXT_PUBLIC_HANZO_RELEASE`),environment:this.cfg.environment??yn(`NODE_ENV`),site:Cn()?window.location.hostname:void 0,properties:t?.properties}),this.flush()}catch{}finally{this.reentrant=!1}}}setCohort(e){this.cohort=st(e)}flush(e=!1){if(!this.cfg.enabled||this.queue.length===0)return;let t=this.queue.map(wn);if(this.queue=[],this.clearTimer(),t.length===0)return;let n=this.cfg.getToken?.()??void 0,r=this.cfg.ingestKey?.trim()||void 0,i=e&&!n,a=Tn(t);if(a===null){this.cfg.debug&&console.debug(`[event] flush → dropped, batch unserializable`);return}this.cfg.debug&&console.debug(`[event] flush →`,gn,t.length),this.transport.send(this.cfg.host+gn,a,{beacon:i,token:n,ingestKey:r,debug:this.cfg.debug})}enqueue(e,t,n){this.cfg.enabled&&(this.started||this.init(),this.queue.push(this.build(e,t,n)),this.queue.length>=this.cfg.batchSize?this.flush():this.schedule())}build(e,t,n){let r=Qe(),i={messageId:ze(),type:e,event:t,timestamp:new Date().toISOString(),distinctId:this.personId??r,anonymousId:r,personId:this.personId,sessionId:$e(),product:this.cfg.product,referrer:this.attribution.referrer,utm:this.attribution.utm,lastUtm:this.lastUtm,refCode:this.cohort.refCode??this.attribution.refCode,channel:this.cohort.channel??this.attribution.channel,signupWeek:this.cohort.signupWeek,url:Cn()?window.location.href:void 0,path:Cn()?window.location.pathname:void 0,library:`@hanzo/event`,libraryVersion:hn,...n},a=this.cfg.capturePII??!1;return i.url&&=Ce(be(i.url),a),i.path&&=Ce(be(i.path),a),i.referrer&&=Ce(be(i.referrer),a),yt()&&(i.properties={...i.properties,internal:!0}),Cn()&&(i.properties={...i.properties,consent:sn($t())}),i}schedule(){!this.timer&&this.cfg.enabled&&(this.timer=setTimeout(()=>{this.timer=null,this.flush()},this.cfg.flushIntervalMs))}clearTimer(){this.timer&&=(clearTimeout(this.timer),null)}},On=Symbol.for(`hanzo.event.clients.optin`);function kn(){let e=globalThis,t=e[On];if(t)return t;let n=new Map;return e[On]=n,n}function An(e){if(!Cn()||e.enabled===!1)return new Dn(e);let t=(e.host??_n)+`\0`+e.product,n=kn(),r=n.get(t);if(r)return r.adopt(e),r;let i=new Dn(e);return n.set(t,i),i}var jn=[`gclid`,`gbraid`,`wbraid`,`fbclid`,`li_fat_id`,`twclid`,`ttclid`],Mn=90,Nn=()=>Math.floor(Date.now()/1e3),Pn=()=>Math.floor(Math.random()*2**31);function Fn(e){if(!(typeof window>`u`)){if(e.marketing){let e=new URLSearchParams(window.location.search),t={};for(let n of jn){let r=e.get(n)?.trim();r&&(t[n]=r)}Object.keys(t).length&&(t.clicked=Nn(),pt(`hz_touch`,JSON.stringify(t),Mn),t.fbclid&&pt(`_fbc`,`fb.1.${Date.now()}.${t.fbclid}`,Mn)),ft(`_fbp`)||pt(`_fbp`,`fb.1.${Date.now()}.${Pn()}`,Mn)}e.analytics&&!ft(`_ga`)&&!ft(`hz_cid`)&&pt(`hz_cid`,`${Pn()}.${Nn()}`,730)}}var In=()=>window,Ln=[],Rn=`person`,zn=!1,Bn=``,Vn={},Hn=new Set,Un=`idle`,Wn=!1,Gn=[],Kn=!1;function qn(){return Wn&&Un!==`wait`}function Jn(){return qn()&&!tn()}function Yn(){(Jn()||Kn)&&Gn.splice(0).forEach(e=>e())}function Xn(e,t,n){let r=document.createElement(`script`);r.async=!0,r.src=e,t&&(r.onload=t),n&&(r.onerror=n),document.head.appendChild(r)}var Zn=()=>Rn===`bot`||_t(),Qn=()=>Rn===`internal`||yt();function $n(){let e=In();return e.dataLayer=e.dataLayer||[],e.gtag||=function(){e.dataLayer.push(arguments)},e.gtag}var er=e=>e?`granted`:`denied`,tr=()=>Gt().mode===`eu`;function nr(e,t){let n=$n();if(t){let e=er(!tr());n(`consent`,`default`,{analytics_storage:e,ad_storage:e,ad_user_data:e,ad_personalization:e,...tr()?{wait_for_update:500}:{}})}let r={ad_storage:er(e.ads),ad_user_data:er(e.ads),ad_personalization:er(e.ads)};n(`consent`,`update`,tr()?{analytics_storage:er(e.analytics),...r}:r)}function rr(e){let t=$n(),n=e.filter(e=>!Hn.has(e));if(n.length){if(Un===`idle`){Un=`wait`,t(`js`,new Date);let e=e=>()=>{Un===`wait`&&(Un=e,Yn())};Xn(`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(n[0])}`,e(`loaded`),e(`failed`)),setTimeout(e(`failed`),8e3)}for(let e of n)Hn.add(e),t(`config`,e,{...Vn.domains?{linker:{domains:Vn.domains}}:{},...Qn()?{traffic_type:`internal`}:{}})}}function ir(e){let t=In();e.ads?t.fbq(`dataProcessingOptions`,[]):t.fbq(`dataProcessingOptions`,[`LDU`],0,0)}var ar=!1,or={revoked:!1,fetched:!1,viewed:!1};function sr(e,t){let n=e.filter(e=>!Hn.has(`meta:${e}`)),r=In();if(n.length){if(!r.fbq){let e=r.fbq=function(...t){e.callMethod?e.callMethod(...t):e.queue.push(t)};r._fbq||=e,e.push=e,e.loaded=!0,e.version=`2.0`,e.queue=[]}Hn.has(`meta`)||(Hn.add(`meta`),t.marketing||(r.fbq(`consent`,`revoke`),or.revoked=!0),t.ads||ir(t));for(let e of n)r.fbq(`init`,e),Hn.add(`meta:${e}`)}Hn.has(`meta`)&&t.marketing&&cr()}function cr(){let e=In();or.revoked&&=(or.fetched?e.fbq(`consent`,`grant`):e.fbq?.queue&&(e.fbq.queue=e.fbq.queue.filter(e=>e[0]!==`consent`||e[1]!==`revoke`)),!1),or.fetched||(or.fetched=!0,Xn(`https://connect.facebook.net/en_US/fbevents.js`)),or.viewed||(or.viewed=!0,e.fbq(`track`,`PageView`))}function lr(e){let t=In();if(t._linkedin_data_partner_ids=t._linkedin_data_partner_ids||[],t._linkedin_data_partner_ids.push(e),!t.lintrk){let e=t.lintrk=function(...t){e.q.push(t)};e.q=[]}Xn(`https://snap.licdn.com/li.lms-analytics/insight.min.js`)}function ur(e){let t=In();if(!t.twq){let e=t.twq=function(...t){e.exe?e.exe(...t):e.queue.push(t)};e.version=`1.1`,e.queue=[],Xn(`https://static.ads-twitter.com/uwt.js`)}t.twq(`config`,e)}var dr=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`];function fr(e){let t=In();t.TiktokAnalyticsObject=`ttq`;let n=t.ttq=t.ttq||[];if(!n._i){n.methods=dr;for(let e of dr)n[e]=(...t)=>n.push([e,...t]);n._i={},n._t={},n._o={},n.load=e=>{n._i[e]=[],n._t[e]=Date.now(),Xn(`https://analytics.tiktok.com/i18n/pixel/events.js?sdkid=${encodeURIComponent(e)}&lib=ttq`)}}n.load(e),n.page()}var pr={ga:`analytics`,gads:`marketing`,meta:`marketing`,linkedin:`marketing`,x:`marketing`,tiktok:`marketing`},mr=(e,t)=>!Gt().refused&&(e.type===`meta`||e.type===`ga`&&tr()||!!(pr[e.type]&&t[pr[e.type]]));function hr(){if(typeof window>`u`||!zn)return;let e=$t(),t=Bn;if(Bn=sn(e),_r(e,t))return;Fn(e);let n=Zn()?[]:Ln.filter(t=>mr(t,e)&&(t.type===`ga`||!Qn())),r=n.filter(e=>e.type===`ga`||e.type===`gads`).map(e=>e.id);r.length&&(Hn.has(`consent`)||nr(e,!0),Hn.add(`consent`),rr(r)),sr(n.filter(e=>e.type===`meta`).map(e=>e.id),e);for(let e of n){let t=`${e.type}:${e.id}`;if(!(Hn.has(t)||e.type===`meta`)){if(e.type===`linkedin`)lr(e.id);else if(e.type===`x`)ur(e.id);else if(e.type===`tiktok`)fr(e.id);else continue;Hn.add(t)}}Yn()}var gr=e=>Hn.has(e.type===`ga`||e.type===`gads`?e.id:`${e.type}:${e.id}`);function _r(e,t){let n=In(),r=t.split(`,`);sn(e)!==t&&Hn.has(`consent`)&&nr(e,!1),Hn.has(`meta`)&&(e.ads!==r.includes(`ads`)&&ir(e),!e.marketing&&!or.revoked&&(n.fbq(`consent`,`revoke`),or.revoked=!0));let i=Ln.filter(t=>t.type!==`meta`&&gr(t)&&!mr(t,e));if(!i.length)return!1;for(let e of i)(e.type===`ga`||e.type===`gads`)&&(window[`ga-disable-${e.id}`]=!0);return!rn()&&!ar&&(ar=!0,setTimeout(()=>window.location.reload(),0)),!0}function vr(e={}){if(typeof window>`u`)return()=>void 0;Vn=e,addEventListener(Pt,hr);let t=()=>{document.visibilityState!==`hidden`&&sn($t())!==Bn&&hr()};if(addEventListener(`pageshow`,t),addEventListener(`visibilitychange`,t),addEventListener(`pagehide`,br),!zn){zn=!0;let t=(e.base??`https://api.hanzo.ai`).replace(/\/$/,``),n=new URLSearchParams,r=e.host??window.location.hostname,i=e.key??P(r);i&&n.set(`key`,i),n.set(`host`,r);let a=e=>{Ln=e,Wn=!0,hr()},o=`${t}/v1/project/tags?${n}`,s=yr(e),c=e=>fetch(o,e?{headers:{Authorization:`Bearer ${e}`}}:void 0),l=setTimeout(()=>a([]),3e3);c(s).catch(e=>s?c():Promise.reject(e)).then(e=>e.ok?e.json():{tags:[]}).then(e=>{clearTimeout(l),Ut(e.consent),(e.audience===`bot`||e.audience===`internal`)&&(Rn=e.audience),Rn===`internal`&&$t().analytics&&bt(),a(Array.isArray(e.tags)?e.tags:[])}).catch(()=>{clearTimeout(l),a([])})}return()=>{removeEventListener(Pt,hr),removeEventListener(`pagehide`,br)}}function yr(e){try{return e.token?.()||void 0}catch{return}}function br(){Kn=!0,Yn()}S.SIGNUP_COMPLETED,D(`signup`),S.ORDER_COMPLETED,D(`upgrade`),S.PLAN_CLICKED,D(`upgrade`),S.FIRST_ACTION,D(`apiActivation`);var xr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Sr=/^[\\/]{2}/;function Cr(e,t){return t+e.replace(/\\/g,`/`)}var wr=`popstate`;function Tr(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Er(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return jr(``,{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:Mr(t)}return Pr(t,n,null,e)}function Dr(e,t){if(e===!1||e==null)throw Error(t)}function Or(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function kr(){return Math.random().toString(36).substring(2,10)}function Ar(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 jr(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Nr(t):t,state:n,key:t&&t.key||r||kr(),mask:i}}function Mr({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 Nr(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 Pr(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=Tr(e)?e:jr(h.location,e,t);n&&n(r,e),l=u()+1;let d=Ar(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=Tr(e)?e:jr(h.location,e,t);n&&n(r,e),l=u();let i=Ar(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 Fr(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(wr,d),c=e,()=>{i.removeEventListener(wr,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 Fr(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Dr(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Mr(t);return i=i.replace(/ $/,`%20`),!n&&Sr.test(i)&&(i=r+i),new URL(i,r)}function Ir(e,t,n=`/`){return Lr(e,t,n,!1)}function Lr(e,t,n,r,i){let a=ii((typeof t==`string`?Nr(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Rr(e),s=null,c=ri(a);for(let e=0;s==null&&e<o.length;++e)s=$r(o[e],c,r);return s}function Rr(e){let t=zr(e);return Vr(t),t}function zr(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;Dr(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=fi([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Dr(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),zr(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Zr(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=ni(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 Br(e.path))a(e,t,!0,n)}),t}function Br(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=Br(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 Vr(e){e.sort((e,t)=>e.score===t.score?Qr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Hr=/^:[\w-]+$/,Ur=/^:[\w-]+/,Wr=3.5,Gr=3,Kr=2,qr=1,Jr=10,Yr=-2,Xr=e=>e===`*`;function Zr(e,t){let n=e.split(`/`),r=n.length;return n.some(Xr)&&(r+=Yr),t&&(r+=Kr),n.filter(e=>!Xr(e)).reduce((e,t)=>e+(Hr.test(t)?Gr:Ur.test(t)?Wr:t===``?qr:Jr),r)}function Qr(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 $r(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?ti(u,l,s.matcher,s.compiledParams):ei(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=ei({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:fi([a,d.pathname]),pathnameBase:mi(fi([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=fi([a,d.pathnameBase]))}return o}function ei(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ni(e.path,e.caseSensitive,e.end);return ti(e,t,n,r)}function ti(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=pi(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=pi(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 ni(e,t=!1,n=!0){Or(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ri(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Or(!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 ii(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 ai(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Nr(e):e,a;return n?(n=di(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?oi(n.substring(1),`/`):oi(n,t)):a=t,{pathname:a,search:hi(r),hash:gi(i)}}function oi(e,t){let n=pi(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function si(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 ci(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function li(e){let t=ci(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ui(e,t,n,r=!1){let i;typeof e==`string`?i=Nr(e):(i={...e},Dr(!i.pathname||!i.pathname.includes(`?`),si(`?`,`pathname`,`search`,i)),Dr(!i.pathname||!i.pathname.includes(`#`),si(`#`,`pathname`,`hash`,i)),Dr(!i.search||!i.search.includes(`#`),si(`#`,`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=ai(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var di=e=>e.replace(/[\\/]{2,}/g,`/`),fi=e=>di(e.join(`/`));function pi(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 mi=e=>pi(e).replace(/^\/*/,`/`),hi=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,gi=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,_i=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 vi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function yi(e){return fi(e.map(e=>e.route.path).filter(Boolean))||`/`}var bi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function xi(e,t){let n=e;if(typeof n!=`string`||!xr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(bi)try{let e=new URL(window.location.href),r=Sr.test(n)?new URL(Cr(n,e.protocol)):new URL(n),a=ii(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Or(!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 Si=new URL(`http://localhost`);function Ci(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Si)}catch{return Si}}function wi(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ti(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 Ei(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&&!wi(i,n),s=!wi(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ti(e,i)||!wi(i,a)))throw Error(`External navigation is not allowed`)}var Di=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Di);var Oi=[`GET`,...Di];new Set(Oi);var ki=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ai(e){try{return ki.includes(new URL(e).protocol)}catch{return!1}}var ji=b.createContext(null);ji.displayName=`DataRouter`;var Mi=b.createContext(null);Mi.displayName=`DataRouterState`;var Ni=b.createContext(!1);function Pi(){return b.useContext(Ni)}var Fi=b.createContext({isTransitioning:!1});Fi.displayName=`ViewTransition`;var Ii=b.createContext(new Map);Ii.displayName=`Fetchers`;var Li=b.createContext(null);Li.displayName=`Await`;var Ri=b.createContext(null);Ri.displayName=`Navigation`;var zi=b.createContext(null);zi.displayName=`Location`;var Bi=b.createContext({outlet:null,matches:[],isDataRoute:!1});Bi.displayName=`Route`;var Vi=b.createContext(null);Vi.displayName=`RouteError`;var Hi=`REACT_ROUTER_ERROR`,Ui=`REDIRECT`,Wi=`ROUTE_ERROR_RESPONSE`;function Gi(e){if(e.startsWith(`${Hi}:${Ui}:{`))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 Ki(e){if(e.startsWith(`${Hi}:${Wi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new _i(t.status,t.statusText,t.data)}catch{}}function qi(e,{relative:t}={}){Dr(Ji(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=b.useContext(Ri),{hash:i,pathname:a,search:o}=ea(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:fi([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Ji(){return b.useContext(zi)!=null}function Yi(){return Dr(Ji(),`useLocation() may be used only in the context of a <Router> component.`),b.useContext(zi).location}var Xi=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Zi(){let{isDataRoute:e}=b.useContext(Bi);return e?_a():Qi()}function Qi(){Dr(Ji(),`useNavigate() may be used only in the context of a <Router> component.`);let e=b.useContext(ji),{basename:t,navigator:n}=b.useContext(Ri),{matches:r}=b.useContext(Bi),{pathname:i}=Yi(),a=JSON.stringify(li(r)),o=b.useRef(!1);return b.useLayoutEffect(()=>{o.current=!0}),b.useCallback((r,s={})=>{if(Or(o.current,Xi),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ui(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:fi([t,c.pathname])),Ei(typeof r==`string`?r:Mr(r),n.createHref(c),Ci(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}b.createContext(null);function $i(){let{matches:e}=b.useContext(Bi);return e[e.length-1]?.params??{}}function ea(e,{relative:t}={}){let{matches:n}=b.useContext(Bi),{pathname:r}=Yi(),i=JSON.stringify(li(n));return b.useMemo(()=>ui(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ta(e,t){return na(e,t)}function na(e,t,n){Dr(Ji(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=b.useContext(Ri),{matches:i}=b.useContext(Bi),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Yi(),l;if(t){let e=typeof t==`string`?Nr(t):t;Dr(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=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Ir(e,{pathname:d}),p=la(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:fi([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:fi([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?b.createElement(zi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function ra(){let e=ga(),t=vi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return b.createElement(b.Fragment,null,b.createElement(`h2`,null,`Unexpected Application Error!`),b.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?b.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ia=b.createElement(ra,null),aa=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Ni;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=Ki(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:b.createElement(Bi.Provider,{value:this.props.routeContext},b.createElement(Vi.Provider,{value:e,children:this.props.component}));return this.context?b.createElement(sa,{error:e},t):t}},oa=new WeakMap;function sa({children:e,error:t}){let{basename:n,navigator:r}=b.useContext(Ri);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Gi(t.digest);if(e){let i=oa.get(t);if(i)throw i;let a=xi(e.location,n),o=a.absoluteURL||a.to;if(Ei(e.location,o,Ci(r),`allow-explicit`),Ai(o))throw Error(`Invalid redirect location`);if(bi&&!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 b.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function ca({routeContext:e,match:t,children:n}){let r=b.useContext(ji);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Bi.Provider,{value:e},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);Dr(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:yi(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?(ya(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?b.createElement(n.route.Component,null):n.route.element?n.route.element:e,b.createElement(ca,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?b.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=b.useContext(ji);return Dr(t,ua(e)),t}function fa(e){let t=b.useContext(Mi);return Dr(t,ua(e)),t}function pa(e){let t=b.useContext(Bi);return Dr(t,ua(e)),t}function ma(e){let t=pa(e),n=t.matches[t.matches.length-1];return Dr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ha(){return ma(`useRouteId`)}function ga(){let e=b.useContext(Vi),t=fa(`useRouteError`),n=ma(`useRouteError`);return e===void 0?t.errors?.[n]:e}function _a(){let{router:e}=da(`useNavigate`),t=ma(`useNavigate`),n=b.useRef(!1);return b.useLayoutEffect(()=>{n.current=!0}),b.useCallback(async(r,i={})=>{Or(n.current,Xi),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var va={};function ya(e,t,n){!t&&!va[e]&&(va[e]=!0,Or(!1,n))}b.memo(ba);function ba({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return na(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function xa({to:e,replace:t,state:n,relative:r}){Dr(Ji(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=b.useContext(Ri);Or(!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}=b.useContext(Bi),{pathname:s}=Yi(),c=Zi(),l=ui(e,li(o),s,r===`path`);Ei(typeof e==`string`?e:Mr(e),a.createHref(l),Ci(a),`reject`);let u=JSON.stringify(l);return b.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Sa({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Dr(!Ji(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=b.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Nr(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=b.useMemo(()=>{let e=ii(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 Or(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:b.createElement(Ri.Provider,{value:c},b.createElement(zi.Provider,{children:t,value:h}))}b.Component;var Ca=`application/x-www-form-urlencoded`;function wa(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ta(e){return wa(e)&&e.tagName.toLowerCase()===`button`}function Ea(e){return wa(e)&&e.tagName.toLowerCase()===`form`}function Da(e){return wa(e)&&e.tagName.toLowerCase()===`input`}function Oa(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ka(e,t){return e.button===0&&(!t||t===`_self`)&&!Oa(e)}var Aa=null;function ja(){if(Aa===null)try{new FormData(document.createElement(`form`),0),Aa=!1}catch{Aa=!0}return Aa}var Ma=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Na(e){return e!=null&&!Ma.has(e)?(Or(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ca}"`),null):e}function Pa(e,t){let n,r,i,a,o;if(Ea(e)){let o=e.getAttribute(`action`);r=o?ii(o,t):null,n=e.getAttribute(`method`)||`get`,i=Na(e.getAttribute(`enctype`))||Ca,a=new FormData(e)}else if(Ta(e)||Da(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?ii(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Na(e.getAttribute(`formenctype`))||Na(o.getAttribute(`enctype`))||Ca,a=new FormData(o,e),!ja()){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(wa(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=Ca,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Fa(e,t){if(e===!1||e==null)throw Error(t)}function Ia(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}var La=`modulepreload`,Ra=function(e){return`/`+e},za={},Ba=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ra(t,n),t=s(t),t in za)return;za[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:La,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function Va(e,t){if(e.id in t)return t[e.id];try{let n=await Ba(()=>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 Ha(e){return e!=null&&typeof e.page==`string`}function Ua(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 Wa(e,t,n){return Ya((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Va(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ua).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ga(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 Ka(e,t,{includeHydrateFallback:n}={}){return qa(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 qa(e){return[...new Set(e)]}function Ja(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ya(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ha(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ja(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Xa(){let e=b.useContext(ji);return Fa(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Za(){let e=b.useContext(Mi);return Fa(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Qa=b.createContext(void 0);Qa.displayName=`FrameworkContext`;function $a(){let e=b.useContext(Qa);return Fa(e,`You must render this element inside a <HydratedRouter> element`),e}function eo(e,t){let n=b.useContext(Qa),[r,i]=b.useState(!1),[a,o]=b.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=b.useRef(null);b.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),b.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:to(s,p),onBlur:to(c,m),onMouseEnter:to(l,p),onMouseLeave:to(u,m),onTouchStart:to(d,p)}]:[a,f,{}]:[!1,f,{}]}function to(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function no({page:e,...t}){let n=Pi(),{nonce:r}=$a(),{router:i}=Xa(),a=b.useMemo(()=>Ir(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?b.createElement(io,{page:e,matches:a,...t}):b.createElement(ao,{page:e,matches:a,...t})):null}function ro(e){let{manifest:t,routeModules:n}=$a(),[r,i]=b.useState([]);return b.useEffect(()=>{let r=!1;return Wa(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function io({page:e,matches:t,...n}){let r=Yi(),i=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ia(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return b.createElement(b.Fragment,null,i.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ao({page:e,matches:t,...n}){let r=Yi(),{manifest:i,routeModules:a}=$a(),{loaderData:o,matches:s}=Za(),c=b.useMemo(()=>Ga(e,t,s,i,r,`data`),[e,t,s,i,r]),l=b.useMemo(()=>Ga(e,t,s,i,r,`assets`),[e,t,s,i,r]),u=b.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&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in o&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let l=Ia(e,`data`);return s&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,r,i,c,t,e,a]),d=b.useMemo(()=>Ka(l,i),[l,i]),f=ro(l);return b.createElement(b.Fragment,null,u.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>b.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>b.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function oo(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var so=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{so&&(window.__reactRouterVersion=`8`)}catch{}function co({basename:e,children:t,useTransitions:n,window:r}){let i=b.useRef(null);i.current??=Er({window:r,v5Compat:!0});let a=i.current,[o,s]=b.useState({action:a.action,location:a.location}),c=b.useCallback(e=>{n===!1?s(e):b.startTransition(()=>s(e))},[n]);return b.useLayoutEffect(()=>a.listen(c),[a,c]),b.createElement(Sa,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var lo=b.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=b.useContext(Ri),v=typeof l==`string`&&xr.test(l),y=xi(l,h);l=y.to;let x=qi(l,{relative:r}),S=Yi(),C=null;if(o){let e=ui(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:fi([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=eo(n,p),D=ho(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=b.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||x,onClick:k?O:e,ref:oo(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?b.createElement(b.Fragment,null,A,b.createElement(no,{page:x})):A});lo.displayName=`Link`;var uo=b.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ea(a,{relative:c.relative}),d=Yi(),f=b.useContext(Mi),{navigator:p,basename:m}=b.useContext(Ri),h=f!=null&&bo(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=ii(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return b.createElement(lo,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});uo.displayName=`NavLink`;var fo=b.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}=b.useContext(Ri),g=vo(),_=yo(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&xr.test(s);return b.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?b.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});fo.displayName=`Form`;function po(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mo(e){let t=b.useContext(ji);return Dr(t,po(e)),t}function ho(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Zi(),d=Yi(),f=ea(e,{relative:o});return b.useCallback(p=>{if(ka(p,t)){p.preventDefault();let t=n===void 0?Mr(d)===Mr(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?b.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var go=0,_o=()=>`__${String(++go)}__`;function vo(){let{router:e}=mo(`useSubmit`),{basename:t}=b.useContext(Ri),n=ha(),r=e.fetch,i=e.navigate;return b.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Pa(e,t);a.navigate===!1?await r(a.fetcherKey||_o(),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 yo(e,{relative:t}={}){let{basename:n}=b.useContext(Ri),r=b.useContext(Bi);Dr(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ea(e||`.`,{relative:t})},o=Yi();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:fi([n,a.pathname])),Mr(a)}function bo(e,{relative:t}={}){let n=b.useContext(Fi);Dr(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mo(`useViewTransitionState`),i=ea(e,{relative:t});if(!n.isTransitioning)return!1;let a=ii(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ii(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ei(i.pathname,o)!=null||ei(i.pathname,a)!=null}var xo=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),So=s(((e,t)=>{t.exports=xo()}));globalThis.__DEV__===void 0&&(globalThis.__DEV__=!1);var Co={hoverStyle:{name:`hover`,priority:2},pressStyle:{name:`active`,stateKey:`press`,priority:3},focusVisibleStyle:{name:`focus-visible`,priority:4,stateKey:`focusVisible`},focusStyle:{name:`focus`,priority:4},focusWithinStyle:{name:`focus-within`,priority:4,stateKey:`focusWithin`},disabledStyle:{name:`disabled`,priority:5,stateKey:`disabled`}},wo={hover:Co.hoverStyle.priority,press:Co.pressStyle.priority,focus:Co.focusStyle.priority,focusVisible:Co.focusVisibleStyle.priority,focusWithin:Co.focusWithinStyle.priority,disabled:Co.disabledStyle.priority},To={...Co,enterStyle:{name:`enter`,selector:`.t_unmounted`,priority:4},exitStyle:{name:`exit`,priority:5}},Eo=Object.keys(To).length,Do=(e,t)=>{let n={};for(let r in e)r in t||(n[r]=e[r]);for(let r in t)ko(n,e,t,r);return n},Oo=(e,t,n)=>{let r=null;if(!e&&!t)return[n,r];if(e&&!t)return[Do(e,n),r];let i={};for(let t in e)t in n||(i[t]=e[t]);for(let e in t){if(e in n)continue;let r=t[e];r!==void 0&&(i[e]=r)}for(let a in n)ko(i,e,n,a),t&&a in t&&(r||={},r[a]=n[a]);return[i,r]};function ko(e,t,n,r){let i=n[r];if(t&&r in t&&(r in To||r[0]===`$`)&&i&&typeof i==`object`){let e=t[r];e&&typeof e==`object`&&(i=Do(e,i))}e[r]=i}function Ao(e){let t=``;for(let n in e){t+=n;let r=e[n],i=typeof r;if(!r||i!==`object`&&i!==`function`)t+=i+r;else if(jo.has(r))t+=jo.get(r);else{let e=Math.random();jo.set(r,e),t+=e}}return t}var jo=new WeakMap,R=So(),Mo=(e,t=``)=>{"use no memo";let n=b.default.createContext,r=b.default.useMemo,i=b.default.useContext,a=n(e),o=a.Provider,s=a,c=new Map,l=n(t);function u(t){let r=c.get(t);return r||(r=n(e),c.set(t,r)),r}let d=e=>t?`${t}--${e}`:e;return s.Provider=({children:t,scope:n,__disableMergeDefaultValues:i,...a})=>{let s=d(n),c=r(()=>i?a:Do(e,a),[Ao(a)]),f=o;return s&&(f=u(s).Provider),(0,R.jsx)(l.Provider,{value:s,children:(0,R.jsx)(f,{value:c,children:t})})},s.props=e,s.context=a,s.useStyledContext=(e=``)=>{let n=i(l),r=t?e?d(e):n:e,o=r?u(r):a;return i(o)},s},No=Mo({disableSSR:void 0,inText:!1,language:null,animationDriver:null,setParentFocusState:null,insets:null}),Po=()=>(0,b.useContext)(No),Fo=(0,b.createContext)(null);function Io(e,t){return(0,b.useCallback)(t=>{e(e=>Lo(e,typeof t==`function`?t(e):t))},[e,t])}function Lo(e,t){return!e||!t||Ro(e,t)?e||t:{...e,...t}}function Ro(e,t){for(let n in t)if(e[n]!==t[n])return!1;return!0}var zo=typeof navigator<`u`&&typeof location<`u`,Bo=!zo,Vo=zo,Ho=Bo?b.useEffect:b.useLayoutEffect;typeof navigator<`u`&&/Chrome/.test(navigator.userAgent||``);var Uo=Vo&&(`ontouchstart`in window||navigator.maxTouchPoints>0),Wo={}.TEST_NATIVE_PLATFORM===`android`||{}.TEST_NATIVE_PLATFORM===`androidtv`,Go={}.TEST_NATIVE_PLATFORM===`ios`||{}.TEST_NATIVE_PLATFORM===`tvos`;Go||{}.GUI_DYNAMIC_COLOR_IOS;var Ko={}.TEST_NATIVE_PLATFORM===`androidtv`||{}.TEST_NATIVE_PLATFORM===`tvos`,qo=null;function Jo(){return qo}var Yo=`Missing theme.`,Xo,Zo=()=>Xo||(globalThis.__hanzoguiConfig?globalThis.__hanzoguiConfig:null),Qo=e=>{let t=Zo();return t.settings[e]??t[e]};function $o(){let e=Zo();return(e?.settings.styleCompat??e?.styleCompat)||`web`}var es=e=>{Xo=e,globalThis.__hanzoguiConfig=e},ts=()=>{let e=Zo();if(!e)throw Error(`Err0`);return e},ns=()=>Zo(),rs;function is(e){rs=e}var as=({prefixed:e}={})=>{let{tokens:t,tokensParsed:n}=Zo();return e===!1?t:e===!0?n:rs},os=(e,t)=>Zo().specificTokens[e]??(t?rs[t]?.[e]:rs[Object.keys(rs).find(t=>rs[t][e])||``]?.[e]),ss=(e,t,n=!0)=>{let r=os(e,t);return n?r?.variable:r?.val},cs=(e,t)=>{if(e!==`unset`&&e!==`auto`)return ss(e,t,!1)};function ls(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase()}var us=new WeakMap;function ds(e){if(typeof e==`string`)return e;if(us.has(e))return us.get(e);let t=Object.entries(e).map(([e,t])=>(e=ls(e),typeof t==`string`||typeof t==`number`&&/[height|width]$/.test(e)&&(t=`${t}px`),`(${e}: ${t})`)).join(` and `);return us.set(e,t),t}var fs={},ps=e=>{fs=e},ms={},hs=()=>fs,gs=new Set;function _s(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function vs(e){return e?_s(e)in wo:!1}function ys(e){let t=hs(),[n,r,i,a,o]=e.split(`-`),s=i&&a?`${i}-${a}`:``,c=s&&s in t&&s||i&&i in t&&i||void 0,l=c?c===s?o:a?`${a}${o?`-${o}`:``}`:void 0:i?`${i}${a?`-${a}`:``}${o?`-${o}`:``}`:void 0;return l&&!vs(l)&&(l=void 0),{name:r,pseudo:l,media:c}}var bs=null,xs=null;function Ss(){bs=null,xs=null}var Cs={press:`active`,focusVisible:`focus-visible`,focusWithin:`focus-within`},ws=Array(12).fill(0).map((e,t)=>Array(t).fill(`:root`).join(``));function Ts(e,t,n,r,i=!1,a=``){let o=t.lastIndexOf(`:root`)+5,s=t.lastIndexOf(`{`),c=t.slice(o,s),l=Qo(`addThemeClassName`)!==!1&&i?``:` `,u=r.pseudo?Cs[r.pseudo]||r.pseudo:void 0,d=u?`:${u}`:``;return[c,`${`:root${a}${l}`}${`.t_${n?`group_`:``}${e}${d}`} ${c.replaceAll(`:root`,``)}`]}var Es=(e,t,n,r,i,a)=>{let[o,,s,c,l]=e,u=r===`theme`,d=r===`platform`,f=r===`group`,p=u||d||f,m=i?`0`:``,h=s.slice(0,s.indexOf(`-`)+1),g=`${h}_${t.replace(`-`,``)}${m}_`,_=``,v,y,b=s.replace(h,g),x=l.map(e=>e.replaceAll(s,b)).join(`;`),S=!1;if(p){let e=(a||0)+(f||d?1:0);if(u||f){let n=ys(u?`theme-`+t:t),{name:r,media:i,pseudo:a}=n;v=i,f&&(y=r),(a===`press`||c===`active`)&&(e+=2),a===`hover`&&(S=!0);let[o,s]=Ts(r,x,f,n,u,ws[e]);_=x.replace(o,s)}else{let t=ws[e];_=t&&x[0]===`@`?x.replace(`{`,`{${t}`):`${t}${x}`}}if(!p||v){if(!xs){let e=Object.keys(n);xs=Object.fromEntries(e.map(e=>[e,ds(n[e])])),bs=Object.fromEntries(e.map((e,t)=>[e,Array(t+1).fill(`:root`).join(``)]))}let e=v||t,r=xs[e],a=`${i?`not all and `:``}${r}`,o=v?``:bs[e],s=v?`@container ${y}`:`@media`;v&&(x=_),_=x.includes(s)?x.replace(`{`,` and ${a} {`).replace(`and screen and`,`and`):`${s} ${a}{${o}${x}}`,v&&(_=`@supports (contain: ${Qo(`webContainerType`)||`inline-size`}) {${_}}`)}return S&&(_=`@media (hover:hover){${_}}`),[o,void 0,b,void 0,[_]]},Ds=typeof window<`u`&&window.matchMedia||Os;function Os(e){return{match:(e,t)=>!1,addListener(){},removeListener(){},matches:!1}}var ks=/\$(platform|theme|group)-/,As=e=>e[0]===`$`&&!!(gs.has(e)||ks.test(e)),js=e=>{if(e[0]!==`$`)return!1;if(gs.has(e))return!0;let t=e.match(ks);return t?t[1]:!1},Ms,Ns,Ps=e=>Ns.indexOf(e)+100,Fs=new Set,Is=0,Ls=e=>{let{media:t}=e,n=Qo(`mediaQueryDefaultActive`);if(t){Is++,Ss(),Js();for(let e in t)hs()[e]=n?.[e]||!1,gs.add(`$${e}`);Object.assign(ms,t),Ms={...hs()},Ns=Object.keys(t),Bs()}};function Rs(){Fs.forEach(e=>e()),Fs.clear()}var zs=-1;function Bs(){if(!Bo&&!{}.IS_STATIC&&zs!==Is){zs=Is,Rs();for(let e in ms){let t=ds(ms[e]),n=()=>Ds(t),r=n();if(!r)throw Error(`⚠️ No match`);r.addListener(i),Fs.add(()=>{r.removeListener(i)});function i(){let t=!!n().matches;t!==hs()[e]&&(ps({...hs(),[e]:t}),Hs())}i()}}}var Vs=new Set;function Hs(){Vs.forEach(e=>e(hs()))}var Us=new WeakMap,Ws=null,Gs=Symbol(`mediaRefSlot`);function Ks(){let e={};for(let t of gs){let n=t[0]===`$`?t.slice(1):t;e[n]={enumerable:!0,configurable:!0,get(){let e=this[Gs];return $s||e.keys.add(n),e.proxyTarget[n]}}}return Object.create(null,e)}function qs(){return Ws||=Ks(),Ws}function Js(){Ws=null}function Ys(e,t,n){let r=Us.get(e);(!r||r.enabled!==t||n)&&Us.set(e,{...r,enabled:t,keys:n})}function Xs(e){return Vs.add(e),()=>{Vs.delete(e)}}function Zs(e,t){"use no memo";let n=(0,b.useRef)(null);if(n.current)n.current.componentContext=e,n.current.debug=t;else{let r=hs(),i={keys:new Set,lastState:r,renderVersion:0,proxyTarget:r,proxy:void 0,getSnapshot:void 0,componentContext:e,debug:t},a=Object.create(qs());a[Gs]={proxyTarget:r,keys:i.keys},i.proxy=a,i.getSnapshot=()=>{let e=i.componentContext&&Us.get(i.componentContext)?.keys||i.keys,{lastState:t,pendingState:n}=i;if(!e.size)return t;let r=hs();for(let a of e)if(r[a]!==(n||t)[a])return i.componentContext?.mediaEmit?(i.componentContext.mediaEmit(r),i.pendingState=r,t):(i.lastState=r,r);return t},n.current=i}let r=n.current;r.renderVersion++,r.pendingState&&=(r.lastState=r.pendingState,void 0),r.keys.size&&r.keys.clear();let[,i]=(0,b.useReducer)(Qs,0),a=Bo?Ms:r.getSnapshot();return r.proxyTarget=a,r.proxy[Gs].proxyTarget=a,(0,b.useEffect)(()=>{let e=r.renderVersion;return!r.componentContext||Us.get(r.componentContext)?.enabled?r.unsubscribe||=Xs(()=>{let e=r.getSnapshot();e!==r.proxyTarget&&(r.proxyTarget=e,r.proxy[Gs].proxyTarget=e,i())}):r.unsubscribe&&=(r.unsubscribe(),void 0),()=>{r.renderVersion===e&&(r.unsubscribe?.(),r.unsubscribe=void 0)}}),r.proxy}var Qs=e=>e+1,$s=!1;function ec(e,t){$s=!0;let n;try{n=Object.fromEntries([...e].map(e=>[e,nc(e,t)]))}finally{$s=!1}return n}var tc=(e,t,n,r)=>{let i=r?Ps(e):Eo,a=n.usedKeys;return!a[t]||i>a[t]?i:null};function nc(e,t){let n=ms[e];return Object.keys(n).every(e=>{let r=+n[e],i=e.startsWith(`max`),a=t[e.endsWith(`Width`)?`width`:`height`];return i?a<r:a>r})}var rc=new Map,ic=0,ac=(e,t=10)=>{if(rc.has(e))return rc.get(e);let n=e;n[0]===`v`&&n.startsWith(`var(`)&&(n=n.slice(6,n.length-1));let r=0,i=``,a=0,o=n.length;for(let e=0;e<o;e++){if(t!==`strict`&&a<=t){let t=n.charCodeAt(e);if(t===46){i+=`--`;continue}if(sc(t)){a++,i+=n[e];continue}}r=oc(r,n[e])}let s=i+(r?Math.abs(r):``);return ic>1e4&&(rc.clear(),ic=0),rc.set(e,s),ic++,s},oc=(e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0;function sc(e){return e>=65&&e<=90||e>=97&&e<=122||e===95||e===45||e>=48&&e<=57}function cc(e,t,{checkDefaultPrevented:n=!0}={}){return!e||!t?t||e||void 0:r=>{if(e?.(r),!r||!(n&&typeof r==`object`&&`defaultPrevented`in r)||`defaultPrevented`in r&&!r.defaultPrevented)return t?.(r)}}var lc=[`web`,`android`,`ios`];function uc(e){if(!e)return null;let t=dc(e);for(let e of lc)if(e===`web`&&t.has(e))return e;return null}function dc(e){let t=new Set(e===!0?lc:e===!1?[]:Array.isArray(e)?e:[e]);return t.has(`mobile`)&&(t.add(`android`),t.add(`ios`),t.delete(`mobile`)),t}var fc={gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0},pc={grid:!0,gridArea:!0,gridAutoFlow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,gridTemplate:!0,gridTemplateAreas:!0,justifyItems:!0,justifySelf:!0,placeContent:!0,placeItems:!0,placeSelf:!0},mc={...fc,...pc},hc={backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:!0,backgroundOrigin:!0,backgroundRepeat:!0,borderBottomStyle:!0,borderLeftStyle:!0,borderRightStyle:!0,borderTopStyle:!0,contain:!0,containerType:!0,content:!0,float:!0,maskBorderMode:!0,maskBorderRepeat:!0,maskClip:!0,maskComposite:!0,maskMode:!0,maskOrigin:!0,maskRepeat:!0,maskType:!0,objectFit:!0,overflowBlock:!0,overflowInline:!0,overflowX:!0,overflowY:!0,pointerEvents:!0,scrollbarWidth:!0,textWrap:!0,touchAction:!0,transformStyle:!0,willChange:!0},gc={whiteSpace:!0,wordWrap:!0,textOverflow:!0,WebkitBoxOrient:!0},_c={...hc,transition:!0,backdropFilter:!0,WebkitBackdropFilter:!0,background:!0,borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,backgroundPosition:!0,backgroundSize:!0,borderImage:!0,caretColor:!0,clipPath:!0,mask:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:!0,maskImage:!0,maskPosition:!0,maskSize:!0,objectPosition:!0,textEmphasis:!0,userSelect:!0},vc={...gc,textDecorationDistance:!0,WebkitLineClamp:!0},yc={borderWidth:!0,borderStyle:!0,borderColor:!0,borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0,borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0,borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0,borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0,outlineWidth:!0,outlineStyle:!0,outlineColor:!0,outlineOffset:!0},bc={color:!0,textDecorationColor:!0,textShadowColor:!0},xc={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...bc,outlineColor:!0,caretColor:!0}},Sc={...mc,alignContent:!0,alignItems:!0,alignSelf:!0,backfaceVisibility:!0,borderCurve:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,boxSizing:!0,cursor:!0,direction:!0,display:!0,flexDirection:!0,flexWrap:!0,isolation:!0,justifyContent:!0,mixBlendMode:!0,outlineStyle:!0,overflow:!0,position:!0},Cc={fontFamily:!0,fontStyle:!0,fontVariant:!0,textTransform:!0},wc={textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,userSelect:!0},Tc={WebkitLineClamp:!0,lineClamp:!0},Ec={...Sc,...Cc,...wc,...Tc,...hc,...gc},Dc={...Tc,...pc,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Oc={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},kc={...Sc,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,end:!0,flexBasis:!0,gap:!0,columnGap:!0,rowGap:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,shadowOffset:!0,shadowRadius:!0,...xc.color,...xc.radius,...xc.size,...Oc,...Dc,...Wo?{elevationAndroid:!0}:{},boxShadow:!0,border:!0,filter:!0,backgroundImage:!0,experimental_backgroundImage:!0,outline:!0,outlineColor:!0,outlineOffset:!0,outlineWidth:!0,..._c},Ac={...Cc,fontSize:!0,fontWeight:!0,letterSpacing:!0,lineHeight:!0,...wc,...bc,textShadow:!0,textShadowOffset:!0,textShadowRadius:!0,verticalAlign:!0,...vc},jc={...kc,...Ac},Mc=jc,Nc={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusWithinStyle:!0,focusVisibleStyle:!0},Pc=kc,Fc=Symbol(),Ic=(e,t)=>(Object.assign(e,t),e[Fc]=!0,e);function Lc(e){return`var(--${{}.GUI_CSS_VARIABLE_PREFIX||``}${e})`}var Rc=(e,t=!1)=>{if(!t&&Bc(e))return e;let{key:n,name:r,val:i}=e;return{isVar:!0,key:n,name:t?r:ac(r,40),val:i,variable:t?Lc(r):qc(r)}};function zc(e,t=!1){return Bc(e)?!t&&e.variable?e.variable:`${e.val}`:`${e||``}`}function Bc(e){return e&&typeof e==`object`&&`isVar`in e}function Vc(e,t=`size`){if(e?.dynamic)return e;if(Uc(!0),Bc(e))return zc(e);let n=ts().tokensParsed;return zc(n[t]?.[e]??e)}var Hc=!1,Uc=e=>Hc=e,Wc=()=>Hc;function Gc(e,t){if(Bc(e))return Uc(!0),e.val;if(t){let n=ts().tokensParsed[t]?.[e];if(n)return Uc(!0),n.val}return e}function Kc(e){return Bc(e)?e.variable:e}var qc=(e,t=!0)=>{let n=ac(e,60);return t?Lc(n):n},Jc=new Map,Yc,Xc,Zc,Qc={};function $c(e,t,n,r){if(!t?.theme)return Qc;if(Yc=n,Xc=r,Zc=t,Jc.has(Zc.theme))return Jc.get(Zc.theme);ts();function i(e,t=!1){Yc&&(Yc.current||(Yc.current=new Set),Yc.current.add(e),t&&Xc&&(Xc.current||(Xc.current=new Set),Xc.current.add(e)))}let a=Object.fromEntries(Object.entries(t.theme).flatMap(([e,t])=>{let n={...t,get val(){return globalThis.hanzoguiAvoidTracking||i(e,!1),t.val},get(e){if(!Zc)return;let n=Vc(t),{name:r,scheme:i}=Zc;return n}};return[[e,n],[`$${e}`,n]]}));return Jc.set(t.theme,a),a}var el=(0,b.createContext)(``),tl=new Map,nl={},rl=new WeakMap,il=new WeakMap,al=new Map,ol=new Map,sl=new Map,cl=e=>ol.get(e),ll=0,ul=new Map,dl=-1,fl=null,pl=null,ml=e=>e+1,hl=(e,t=!1,n,r,i=!1)=>{"use no memo";let{disable:a}=e,o=(0,b.useContext)(el);if(!o&&!t)throw Error(Yo);if(a)return ol.get(o)||{id:``,name:`light`,theme:ts().themes.light};let s=(0,b.useId)(),c=Tl(e),l=(0,b.useRef)(null);l.current?(l.current.props=e,l.current.propsKey=c,l.current.isRoot=t,l.current.keys=n,l.current.schemeKeys=r,l.current.parentId=o):l.current={id:s,parentId:o,props:e,propsKey:c,isRoot:t,keys:n,schemeKeys:r,renderVersion:0},l.current.renderVersion++;let[,u]=(0,b.useReducer)(ml,0),d=yl(l.current);return l.current.lastSnap=d,(0,b.useEffect)(()=>{let e=l.current,t=e.renderVersion;if(e.lastSnap&&!ol.has(e.id)&&(ol.set(e.id,e.lastSnap),sl.set(e.id,e.lastSnap)),e.unsubscribe&&e.subscribedParentId!==e.parentId&&_l(e),gl(e,i)){if(!e.unsubscribe){let t=e.parentId,n=e.id,r=()=>{let t=yl(e);t!==e.lastSnap&&(e.lastSnap=t,u())};nl[t]=nl[t]||new Set,nl[t].add(n),tl.set(n,()=>{al.set(n,!0),r()}),e.subscribedParentId=t,e.unsubscribe=()=>{tl.delete(n),nl[t]?.delete(n),sl.delete(n),ol.delete(n),al.delete(n),e.unsubscribe=void 0,e.subscribedParentId=void 0}}}else e.unsubscribe&&_l(e);return()=>{e.renderVersion===t&&vl(e)}}),i&&Ho(()=>{if(!rl.get(n)){rl.set(n,!0);return}if(!c){il.get(n)&&xl(s),il.set(n,!1);return}xl(s),il.set(n,!0)},[n,c]),d},gl=(e,t)=>e.isRoot||t||El(e.props)||!!e.keys.current?.size||!!e.props.needsUpdate?.();function _l(e){e.unsubscribe?.()}function vl(e){e.unsubscribe?_l(e):(sl.delete(e.id),ol.delete(e.id),al.delete(e.id))}var yl=e=>{let{id:t,parentId:n,props:r,propsKey:i,isRoot:a,keys:o,schemeKeys:s}=e,c=sl.get(t),l=ol.get(n);if(c&&!al.has(t)&&l&&c._parentName===l.name&&c._propsKey===i)return c;o?.current?.size,s?.current?.size;let u=r.passThrough?!1:a||r.name===`light`||r.name===`dark`||r.name===null?!0:rl.get(o)?o?.current?.size?!0:r.needsUpdate?.():!0,[d,f]=bl(c,r,i,a,t,n,u,al.get(t));return al.delete(t),(!c||d)&&(c={...f},sl.set(t,c)),f!==c&&(Object.assign(c,f),c.id=t),c._parentName=l?.name,c._propsKey=i,ol.set(t,f),c},bl=(e,t,n,r=!1,i,a,o,s)=>{let{debug:c}=t,l=ol.get(a);if(t.passThrough)return[!1,e||l||{name:``}];fl||=ts().themes;let u=!n&&(!e||!e?.isNew)?null:wl(l?.name,t,s===`force`||!!o),d=l&&(!u||u===l.name),f=!!(s===`force`||o&&(s||e?.name!==l?.name));if(d)return!f&&e&&e.name===l.name?[!1,e]:[f,{...l,isNew:!1}];if(!u){let t=e??l??pl??{id:i,name:`light`,theme:ts().themes.light};return f?[!0,{...l||e||t}]:[!1,t]}let p=Cl(u),m=l?.inverses??0,h=l&&p!==l.scheme,g=m+ +!!h,_={id:i,name:u,theme:fl[u],scheme:p,parentId:a,parentName:l?.name,inverses:g,isInverse:h,isNew:!0};return r&&(pl=_),s!==`force`&&e&&e.name===u||s!==`force`&&e&&!o&&_.name===e.name?[!1,_]:[!0,_]};function xl(e){let t=[e],n=new Set;for(;t.length;){let e=nl[t.shift()];if(e)for(let r of e)n.has(r)||(n.add(r),t.push(r))}n.forEach(e=>{tl.get(e)?.()})}var Sl={light:`light`,dark:`dark`};function Cl(e){return Sl[e.split(`_`)[0]]}function wl(e=``,t,n=!1){let{name:r,reset:i}=t,a=t.unstyled?void 0:t.componentName;if(r&&i)throw Error(`❌004`);let o=`${e}|${r||``}|${a||``}|${+!!i}|${+!!n}`;if(dl!==ll)ul.clear(),dl=ll;else{let e=ul.get(o);if(e!==void 0)return e}let{themes:s}=ts();if(i){if(e===`light`||e===`dark`){let t=e===`light`?`dark`:`light`;return ul.set(o,t),t}let t=e.lastIndexOf(`_`),n=t<=0?e:e.slice(t),r=e.slice(0,t),i=s[n]?n:r;return ul.set(o,i),i}let c=e.split(`_`),l=c[c.length-1];l&&l[0].toLowerCase()!==l[0]&&c.pop();let u=[r&&a?`${r}_${a}`:void 0,r,a].filter(Boolean),d=null;if(r){let t=Cl(r);if(t){for(let e of u)if(e in s){d=e;break}}if(!d&&!t&&Cl(e)){let e=[];for(let t=c.length;t>=1;t--)e.push(c.slice(0,t).join(`_`));outer:for(let t of e){let e=[a?`${t}_${r}_${a}`:void 0,`${t}_${r}`].filter(Boolean);for(let t of e)if(t in s){d=t;break outer}}}}if(!d){if(!r&&a){let e=`${c.join(`_`)}_${a}`;e in s&&(d=e)}else{let e=c.length;for(let t=0;t<=e;t++){let e=(t===0?c:c.slice(0,-t)).join(`_`);for(let t of u){let n=e?`${e}_${t}`:t;if(n in s){d=n;break}}if(d)break}}}return!n&&d===e&&!Sl[d]?(ul.set(o,null),null):(ul.set(o,d),d)}var Tl=({name:e,reset:t,forceClassName:n,componentName:r})=>`${e||``}${t||``}${n||``}${r||``}`,El=e=>`name`in e||`reset`in e||`forceClassName`in e,Dl={},Ol=()=>{"use no memo";let[e]=kl(Dl);return e},kl=(e,t=!1,n=!1)=>{"use no memo";let r=(0,b.useRef)(null);r.current||={keys:{current:null},schemeKeys:{current:null}};let{keys:i,schemeKeys:a}=r.current,o=hl(e,t,i,a,n);return[e.passThrough?{}:$c(e,o,i,a),o]};function Al(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function jl(...e){return t=>e.forEach(e=>Al(e,t))}function Ml(...e){return b.useCallback(jl(...e),e)}function Nl(e,t){let n=`__hanzogui_${e}__`;function r(){let e=globalThis;return e[n]||(e[n]=t),e[n]}function i(e){globalThis[n]=e}return{get:r,set:i}}var Pl=Nl(`portal`,{enabled:!1,type:null});function Fl(){return{get isEnabled(){return Pl.get().enabled},get state(){return Pl.get()},set(e){Pl.set(e)}}}var Il;Nl(`gesture`,{enabled:!1,Gesture:null,GestureDetector:null,ScrollView:null,RootView:null});var Ll=`__hanzogui_press_state__`;(Il=globalThis)[Ll]??(Il[Ll]={owner:null,ownerId:null,ownerSource:null,ownerPointerId:null,timestamp:0}),Nl(`zeego`,{enabled:!1,DropdownMenu:null,ContextMenu:null}),(0,b.createContext)(!1);function Rl({children:e}){if(Fl().state.type!==`teleport`)return(0,R.jsx)(R.Fragment,{children:e});let t=globalThis.__hanzogui_teleport;if(!t?.PortalProvider)return(0,R.jsx)(R.Fragment,{children:e});let{PortalProvider:n}=t;return(0,R.jsx)(n,{children:e})}var zl={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,focusWithin:!1,unmounted:!0,disabled:!1},Bl={...zl,unmounted:!1},Vl={...zl,unmounted:`should-enter`};function Hl(e,t=!0){return{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,[t?`onClick`:`onPress`]:e.onPress,onMouseDown:e.onPressIn,onMouseUp:e.onPressOut,onTouchStart:e.onPressIn,onTouchEnd:e.onPressOut,onFocus:e.onFocus,onBlur:e.onBlur}}var Ul=(e,t)=>{let n=e?.defaultProps,r=ts(),i=t||e?.componentName||(e.isText?`Text`:`View`),a=r?.defaultProps?.[i];return a&&(n=n?{...a,...n}:a),n};function Wl(e){return e?typeof e.useAnimations==`function`?e:`default`in e&&typeof e.default?.useAnimations==`function`?e.default:null:null}var Gl={height:0,width:0};function Kl({shadowColor:e,shadowOffset:t,shadowOpacity:n,shadowRadius:r}){let{height:i,width:a}=t||Gl;return{shadowOffset:{width:a||0,height:i||0},shadowRadius:r||0,shadowColor:e,shadowOpacity:n??1}}function ql(e){var t;Jl(e),(e.shadowRadius!=null||e.shadowColor||e.shadowOpacity!=null||e.shadowOffset)&&Object.assign(e,Kl(e));for(let n in Xl)n in e&&(e[t=Xl[n]]||(e[t]=`solid`))}function Jl(e){(e.display===`grid`||e.display===`inline-grid`)&&(e.flexDirection===`row`||e.flexDirection===`row-reverse`)&&e.flexWrap!==`wrap`&&e.flexWrap!==`wrap-reverse`&&e.gridAutoFlow==null&&e.grid==null&&e.gridTemplate==null&&e.gridTemplateAreas==null&&e.gridTemplateColumns==null&&e.gridTemplateRows==null&&(e.gridAutoFlow=`column`)}var Yl=null,Xl={borderWidth:`borderStyle`,borderBottomWidth:Yl||`borderBottomStyle`,borderTopWidth:Yl||`borderTopStyle`,borderLeftWidth:Yl||`borderLeftStyle`,borderRightWidth:Yl||`borderRightStyle`},Zl=(e,t)=>{if(e)return typeof e==`string`?e===`transparent`?`rgba(0, 0, 0, 0)`:typeof t==`number`&&t<1?`color-mix(in srgb, ${e} ${Math.round(t*100)}%, transparent)`:e:e},Ql={...Mc,translateX:!0,translateY:!0};function $l(e,t=``){if(Dc[t]||t&&!Ql[t]||typeof e==`boolean`)return e;if(e&&typeof e==`object`){if(typeof e.__getValue==`function`)e=e.__getValue();else return e}let n=e;return typeof e==`number`?n=`${e}px`:t&&(n=`${n}`),n}function eu(e){return e.map(e=>{let t=Object.keys(e)[0],n=e[t];return t===`matrix`||t===`matrix3d`?`${t}(${n.join(`,`)})`:`${t}(${$l(n,t)})`}).join(` `)}function tu(e){au(e);let t=[];for(let n in e){if(n===`$$css`)continue;let r=e[n];if(n in To)r&&t.push(...nu(r,To[n]));else if(As(n))for(let e in r){let i=iu(r,e);i&&(i[0]=n,t.push(i))}else{let r=iu(e,n);r&&t.push(r)}}return t}var nu=(e,t)=>{au(e);let n=[];for(let r in e){let i=iu(e,r,t);i&&n.push(i)}return n},ru=null,iu=(e,t,n)=>{let r=e[t];if(r==null)return;t===`transform`&&Array.isArray(e.transform)&&(r=eu(r));let i=$l(r,t),a=ac(typeof i==`string`?i:`${i}`),o=n?`0${n.name}-`:``;ru||=ns();let s=`_${ru?.inverseShorthands[t]||t}-${o}${a}`;t===`pointerEvents`&&!n&&(i===`box-none`?s=`_pe-boxnone`:i===`box-only`&&(s=`_pe-boxonly`));let c=du(s,t,i,n);return[t,i,s,n?.name,c]};function au(e){let{shadowOffset:t,shadowRadius:n,shadowColor:r,shadowOpacity:i}=e;if(n!=null||r||t!=null||i!=null){let a=t||Gl,o=$l(a.width),s=$l(a.height),c=$l(n),l=Zl(r,i);if(l){let t=`${o} ${s} ${c} ${l}`;e.boxShadow=e.boxShadow?`${e.boxShadow}, ${t}`:t}delete e.shadowOffset,delete e.shadowRadius,delete e.shadowColor,delete e.shadowOpacity}let{textShadowColor:a,textShadowOffset:o,textShadowRadius:s}=e;if(a||o||s){let{height:t,width:n}=o||Gl,r=s||0,i=$l(a,`textShadowColor`);if(i&&(t!==0||n!==0||r!==0)){let a=$l(r);e.textShadow=`${$l(n)} ${$l(t)} ${a} ${i}`}delete e.textShadowColor,delete e.textShadowOffset,delete e.textShadowRadius}}function ou(e,t=!1){let n=``;for(let[r,i]of e)n+=`${lu(r)}:${i}${t?` !important`:``};`;return`{${n}}`}var su={},cu=e=>`-${e.toLowerCase()}`,lu=e=>{if(e in su)return su[e];let t=e.replace(/[A-Z]/g,cu);return su[e]=t,t},uu=(()=>{let e={};for(let t in To){let n=To[t];e[n.name]=`${[...Array(n.priority)].map(()=>`:root`).join(``)} `}return e})();function du(e,t,n,r){let i=r?r.name===`disabled`?`[aria-disabled]`:`:${r.name}`:``,a=r?.selector,o=t in yc?`.${e}.${e}`:`.${e}`,s=r?a?`${a} ${o}`:`${uu[r.name]} ${o}${i}`:`:root ${o}`;a===To.enterStyle.selector&&(s=`${s}, .${e}${a}`);let c=!!r,l=[];switch(t){case`placeholderTextColor`:{let e=ou([[`color`,n],[`opacity`,1]],c);l.push(`${s}::placeholder${e}`);break}case`backgroundClip`:case`userSelect`:{let e=`Webkit${`${t[0].toUpperCase()}${t.slice(1)}`}`,r=ou([[t,n],[e,n]],c);l.push(`${s}${r}`);break}case`pointerEvents`:{let e=n;n===`auto`||n===`box-only`?e=`auto`:(n===`none`||n===`box-none`)&&(e=`none`);let t=ou([[`pointerEvents`,e]],!0);l.push(`${s}${t}`);break}default:{let e=ou([[t,n]],c);l.push(`${s}${e}`);break}}return r?.name===`hover`&&(l=l.map(e=>`@media (hover) {${e}}`)),l}var fu=new WeakMap,pu=new Map,mu={},hu={},gu=()=>({}).GUI_DID_OUTPUT_CSS?[]:Object.keys(hu).sort().map(e=>hu[e]),_u=null;function vu(e=!1,t){if(!{}.GUI_DID_OUTPUT_CSS){let n,r=document.styleSheets||[],i=_u,a=new Set(r);for(let r of a)if(r){let i=Su(r,!1,e,t);i&&(n=i)}if(_u=a,i)for(let e of i)e&&!a.has(e)&&Su(e,!0);return n}}function yu(e){let t=(pu.get(e)||0)+1;return pu.set(e,t),t}var bu={}.GUI_BAIL_AFTER_SCANNING_X_CSS_RULES,xu=bu?+bu:8e3;function Su(e,t=!1,n=!1,r){let i;try{if(i=e.cssRules,!i)return}catch{return}let a=Du(i[0],n)?.[0],o=Du(i[i.length-1],n)?.[0],s=`${i.length}${a}${o}`,c=fu.get(e);if(!t&&c===s)return;let l=i.length,u=0,d,f={};for(let e=0;e<l;e++){let t=i[e];if(!(t instanceof CSSStyleRule))continue;let a=Du(t,n);if(a)u=0;else{if(u++,u>xu)return;continue}let[o,s,c]=a;if(c){let e=Tu(s,r);if(e){for(let t of e.names)f[t]?(Object.apply(f[t],e.theme),e.names=e.names.filter(e=>e!==t)):f[t]=e.theme;d||=[],d.push(e)}continue}}return fu.set(e,s),d}var Cu,wu=null;function Tu(e,t){let n=e.selectorText.split(`,`);if(!n.length)return;if(t?.color&&!Cu){Cu={};for(let e in t.color){let n=t.color[e];n&&(Cu[n.name]=n.val)}}let r=(e.cssText||``).slice(e.selectorText.length+2,-1).split(`;`),i={};for(let e of r){let t=e.indexOf(`:`);if(t===-1)continue;let n=e.indexOf(`--`),r=e.slice(n===-1?0:n+2,t);({}).GUI_CSS_VARIABLE_PREFIX&&(r=r.replace({}.GUI_CSS_VARIABLE_PREFIX,``));let a=e.slice(t+2),o;if(a[0]===`v`&&a.startsWith(`var(`)){let e=a.slice(6,-1),t=Cu?.[e];t?o=t:(wu||=getComputedStyle(document.body),o=wu.getPropertyValue(`--`+e))}else o=a;i[r]=Rc({key:r,name:r,val:o},!0)}let a=new Set;for(let e of n){if(e===` .tm_xxt`)continue;let t=e.lastIndexOf(`.t_`),n=e.slice(t).slice(3),[r]=e[t-5],i=r===`d`?`dark`:r===`i`?`light`:``,o=i&&i!==n?`${i}_${n}`:n;o&&o!==`light_dark`&&o!==`dark_light`&&a.add(o)}return{names:[...a],theme:i}}var Eu=/\.tm_xxt/;function Du(e,t=!1){if(e instanceof CSSStyleRule){let n=e.selectorText;if(n[0]===`:`&&n[1]===`r`&&Eu.test(n)){let r=Ou(n.replace(Eu,``));return t?[r,e,!0]:[r,e]}}else if(e instanceof CSSMediaRule)return e.cssRules.length>1?void 0:Du(e.cssRules[0])}var Ou=e=>{let t=e.indexOf(`:`);return t>-1?e.slice(7,t):e.slice(7)},ku=null,Au=!0;function ju(){Au=!1}function Mu(e,t){return Au&&(hu[e]=t.join(` `)),!0}function Nu(e){if(!ku&&document.head){let e=document.createElement(`style`);e.id=`_hanzogui-styles`,ku=document.head.appendChild(e).sheet}if(ku)for(let t in e){let n=e[t],r=n[2];if(!Fu(r))continue;let i=n[4];mu[r]=i.join(`
11
- `),yu(r),Mu(r,i);try{for(let e of i)ku.insertRule(e,ku.cssRules.length)}catch{console.error(`Error inserting style rule`,i)}}}var Pu={}.GUI_INSERT_SELECTOR_TRIES?+{}.GUI_INSERT_SELECTOR_TRIES:1;function Fu(e){return{}.IS_STATIC===`is_static`||(pu.get(e)||0)<Pu}function Iu(e){return e===`platform-androidtv`||e===`platform-tvos`?3:e===`platform-tv`?2:+(e===`platform-android`||e===`platform-ios`)}function Lu(e){if(!e.startsWith(`$platform`))return!0;let t=e.slice(10);return t===`web`||t===`web`||t===`tv`&&Ko||t===`androidtv`&&Wo&&Ko||t===`tvos`&&Go&&Ko}function Ru(e,t){if(e.startsWith(`$theme-`))return e.slice(7).startsWith(t)}var zu=[[`flexGrow`,0],[`flexShrink`,1],[`flexBasis`,`auto`]];function Bu(e,t){if(typeof e==`string`)return[[`flex`,e]];if(typeof e==`number`){if(e===-1)return zu;switch(t){case`legacy`:return[[`flexGrow`,e],[`flexShrink`,1],[`flexBasis`,`auto`]];case`react-native`:return e>0?[[`flexGrow`,e],[`flexShrink`,0],[`flexBasis`,0]]:e===0?[[`flexGrow`,0],[`flexShrink`,0],[`flexBasis`,`auto`]]:[[`flexGrow`,0],[`flexShrink`,-e],[`flexBasis`,`auto`]];case`web`:return e<0?[[`flex`,e]]:[[`flexGrow`,e],[`flexShrink`,1],[`flexBasis`,0]]}}}function Vu(e,t,n=$o()){if(e===`flex`)return Bu(t,n);switch(e){case`writingDirection`:return[[`direction`,t]];case`backdropFilter`:return[[`backdropFilter`,t],[`WebkitBackdropFilter`,t]]}if(e in qu)return qu[e].map(e=>[e,t]);if(e in Ku)return Ku[e].map(e=>[e,t])}var Hu=[`Top`,`Right`,`Bottom`,`Left`],Uu=[`Right`,`Left`],Wu=[`Top`,`Bottom`],Gu=[`X`,`Y`],Ku={borderColor:[`TopColor`,`RightColor`,`BottomColor`,`LeftColor`],borderRadius:[`TopLeftRadius`,`TopRightRadius`,`BottomRightRadius`,`BottomLeftRadius`],borderWidth:[`TopWidth`,`RightWidth`,`BottomWidth`,`LeftWidth`],margin:Hu,marginHorizontal:Uu,marginVertical:Wu,padding:Hu,paddingHorizontal:Uu,paddingVertical:Wu,borderStyle:[`TopStyle`,`RightStyle`,`BottomStyle`,`LeftStyle`],overflow:Gu,overscrollBehavior:Gu};for(let e in Ku){let t=e.slice(0,/[A-Z]/.exec(e)?.index??e.length);Ku[e]=Ku[e].map(e=>`${t}${e}`)}var qu={inset:[`top`,`right`,`bottom`,`left`],insetBlock:[`top`,`bottom`],insetBlockStart:[`top`],insetBlockEnd:[`bottom`],marginBlock:[`marginTop`,`marginBottom`],marginBlockStart:[`marginTop`],marginBlockEnd:[`marginBottom`],paddingBlock:[`paddingTop`,`paddingBottom`],paddingBlockStart:[`paddingTop`],paddingBlockEnd:[`paddingBottom`],borderBlockColor:[`borderTopColor`,`borderBottomColor`],borderBlockWidth:[`borderTopWidth`,`borderBottomWidth`],borderBlockStyle:[`borderTopStyle`,`borderBottomStyle`],borderBlockStartColor:[`borderTopColor`],borderBlockEndColor:[`borderBottomColor`],borderBlockStartWidth:[`borderTopWidth`],borderBlockEndWidth:[`borderBottomWidth`],borderBlockStartStyle:[`borderTopStyle`],borderBlockEndStyle:[`borderBottomStyle`],minBlockSize:[`minHeight`],maxBlockSize:[`maxHeight`],minInlineSize:[`minWidth`],maxInlineSize:[`maxWidth`],blockSize:[`height`],inlineSize:[`width`]},Ju=new WeakMap,Yu=e=>{let t=Ju.get(e);if(t?.props===e.props)return t.value;let{props:n,conf:r,context:i,theme:a,styleProps:o}=e,s=o.styledContext,c=r.fontsParsed;i?.language&&(c=Zu(r.fontsParsed,i.language));let l={fonts:c,tokens:r.tokensParsed,theme:a,context:s,get fontFamily(){return Gc(e.fontFamily||e.props.fontFamily)||n.fontFamily||Gc(Qo(`defaultFont`))},get font(){return c[this.fontFamily]||(!n.fontFamily||n.fontFamily[0]===`$`?c[Qo(`defaultFont`)||``]:void 0)},props:n};return Ju.set(e,{props:n,value:l}),l},Xu=new WeakMap;function Zu(e,t){if(Xu.has(t))return Xu.get(t);let n={...e,...Object.fromEntries(Object.entries(t).flatMap(([t,n])=>{if(n==="default")return[];let r=`$${t}_${n}`;return[[`$${t}`,e[r]]]}))};return Xu.set(t,n),n}var Qu={fontSize:`size`,fontWeight:`weight`},$u=xc.color,ed={};for(let e in xc)for(let t in xc[e])ed[t]=e;var td=null;function nd(){return td}function rd(e){td=e}var id=(e,t,n,r)=>{let i=n.resolveValues||`none`;if(i===`none`)return t;let a;if(e in $u){let e=t.indexOf(`/`);if(e>0){let n=t.slice(e+1);if(n.length>0){let r=Number(n);Number.isNaN(r)||(a=Math.max(0,Math.min(1,r/100)),t=t.slice(0,e))}}}let{theme:o,conf:s=ts(),context:c,fontFamily:l,staticConfig:u}=r,d=o?o[t]||o[t.slice(1)]:void 0,f=s.tokensParsed,p,m=!1,h=u?.accept?.[e];if(h){let e=d??f[h]?.[t];e!=null&&(i=`value`,p=e,m=!0)}if(d){if(i===`except-theme`)return t;p=d,m=!0}else{if(t in s.specificTokens)m=!0,p=s.specificTokens[t];else{switch(e){case`fontFamily`:p=(c?.language?Zu(s.fontsParsed,c.language):s.fontsParsed)[t]?.family||t,rd(t),m=!0;break;case`fontSize`:case`lineHeight`:case`letterSpacing`:case`fontWeight`:{let n=l||s.defaultFontToken;if(n){let r=c?.language?Zu(s.fontsParsed,c.language):s.fontsParsed;p=(r[n]||r[s.defaultFontToken])?.[Qu[e]||e]?.[t]||t,m=!0}break}}let n=ed[e];if(n!==void 0){let e=f[n]?.[t];e!=null&&(p=e,m=!0)}}if(!m){let e=f.space[t];e!=null&&(p=e,m=!0)}}if(m){let t=ad(e,p,i);return a!==void 0&&a<1&&(t=Zl(String(t),a)??t),t}};function ad(e,t,n){if(n===`none`)return t;if(Bc(t)){if(n===`value`)return t.val;let e=t?.get;return typeof e==`function`?e(n===`web`?`web`:void 0):t.variable}return t}var od=e=>e&&!Array.isArray(e)&&typeof e==`object`,sd=new WeakMap;function cd(e,t=!1){let n={},r=sd.get(e),i;for(let a in e){let o=e[a];if(o==null)continue;let s=r?.[a];if(a in To||a[0]===`$`&&od(o)){n[a]=cd(o,t),s!==void 0&&(i||={},i[a]=s);continue}let c=t?o:$l(o,a),l=Vu(a,c);if(l)for(let[e,t]of l)n[e]=t,s!==void 0&&(i||={},i[e]=s);else n[a]=c,s!==void 0&&(i||={},i[a]=s)}return ql(n),i&&sd.set(n,i),n}var ld=/(\$[\w.-]+(?:\/[\d.]+)?)/g;function ud(e,t,n,r){return t.replace(ld,e=>{let t=id(`size`,e,n,r);return t??=id(`color`,e,n,r),t==null?e:String(t)})}var dd={boxShadow:!0,textShadow:!0,filter:!0,backgroundImage:!0,border:!0,outline:!0};function fd(e,t,n,r){return!t.includes(`$`)||!dd[e]?t:ud(e,t,n,r)}function pd(e){return e}function md(e){return typeof e==`string`&&e.includes(`rem`)}var hd={accessibilityElementsHidden:1,accessibilityIgnoresInvertColors:1,accessibilityLanguage:1,adjustsFontSizeToFit:1,allowFontScaling:1,android_hyphenationFrequency:1,dataDetectorType:1,dynamicTypeRamp:1,elevationAndroid:1,ellipsizeMode:1,hapticFeedback:1,hapticStyle:1,hitSlop:1,importantForAccessibility:1,lineBreakStrategyIOS:1,maxFontSizeMultiplier:1,minimumFontScale:1,needsOffscreenAlphaCompositing:1,nextFocusDown:1,nextFocusForward:1,nextFocusLeft:1,nextFocusRight:1,nextFocusUp:1,onAccessibilityAction:1,onAccessibilityEscape:1,onAccessibilityTap:1,onMagicTap:1,onTextLayout:1,pressRetentionOffset:1,selectionColor:1,shouldRasterizeIOS:1,suppressHighlighting:1,textBreakStrategy:1},gd={untilMeasured:1,transition:1,space:1,animateOnly:1,animatedBy:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,render:1,style:1,group:1,animatePresence:1};Object.assign(gd,hd);var _d=(e,t,n,r,i)=>{if(r)return i(e,t);if(rd(null),e===`elevationAndroid`)return;let{conf:a,styleProps:o,staticConfig:s}=n,{variants:c}=s;if(!o.noExpand&&c&&e in c){let r=vd(e,t,o,n,``);if(r){r.forEach(([e,t,n])=>{i(e,t,n)});return}}o.disableExpandShorthands||e in a.shorthands&&(e=a.shorthands[e]);let l=t;if(t!=null){if(typeof t==`string`){if(t[0]===`$`)t=id(e,t,o,n);else{let r=fd(e,t,o,n);t=r===t?md(t)?pd(t):t:r}}else Bc(t)?t=ad(e,t,o.resolveValues):md(t)&&(t=pd(t))}if(t!=null){let r=nd();e===`fontFamily`&&r&&(n.fontFamily=r);let s=o.noExpand?null:Vu(e,t,a.settings.styleCompat||`web`);if(s){let e=s.length;for(let t=0;t<e;t++){let[e,n,r]=s[t];i(e,n,r??l)}}else i(e,t,l)}},vd=(e,t,n,r,i)=>{let{staticConfig:a,conf:o,debug:s}=r,{variants:c}=a;if(!c)return;let l=Cd(c[e],t,o,r);if(!l){if({}.GUI_WARN_ON_MISSING_VARIANT===`1`&&typeof t!=`boolean`){let n=a.componentName||`[UnnamedComponent]`;console.warn(`No variant found: ${n} has variant "${e}", but no matching value "${t}"`)}return}typeof l==`function`&&(l=l(t,Yu(r)));let u;if(od(l)){let t=l.fontFamily||l[o.inverseShorthands.fontFamily];t&&(u=yd(t,o),r.fontFamily=u),l=xd(e,l,n,r,i)}if(l){let e=cd(l,!!n.noNormalize),t=Object.entries(e),r=sd.get(e);return u&&u[0]===`$`&&rd(Gc(u)),t.map(([e,t])=>[e,t,r?.[e]])}};function yd(e,t){if(Bc(e)){let n=bd.get(e);if(n)return n;for(let n in t.fontsParsed){let r=t.fontsParsed[n].family;if(Bc(r)&&(bd.set(r,n),r===e))return n}}else if(typeof e==`string`&&e[0]===`$`)return e}var bd=new WeakMap,xd=(e,t,n,r,i)=>{let{conf:a,staticConfig:o,debug:s,theme:c}=r,{variants:l}=o,u={},d;for(let s in t){let c=a.shorthands[s]||s,f=t[s];if(!(!n.noSkip&&c in gd)){if(d||={},d[c]=f,o){let e=o.context?.props||o.parentStaticConfig?.context?.props;e&&c in e&&(r.overriddenContextProps||={},r.overriddenContextProps[c]=f,r.originalContextPropValues||={},r.originalContextPropValues[c]=f)}if(n.noExpand)u[c]=f;else if(l&&c in l){if(i&&i===e)u[c]=f[0]===`$`?id(c,f,n,r):f;else{let t=vd(c,f,n,r,e);if(t){for(let[e,n,r]of t)if(n!=null){if(e in To){u[e]??(u[e]={}),Object.assign(u[e],n);let t=sd.get(n);t&&sd.set(u[e],{...sd.get(u[e]),...t})}else u[e]=n,r!==void 0&&(d||={},d[e]=r)}}}continue}if(Bc(f)){u[c]=ad(c,f,n.resolveValues);continue}if(typeof f==`string`){let e=f[0]===`$`?id(c,f,n,r):fd(c,f,n,r);u[c]=e===f&&md(f)?pd(f):e;continue}if(od(f)){let t=xd(c,f,n,r,e);u[c]??(u[c]={}),Object.assign(u[c],t);let i=sd.get(t);i&&sd.set(u[c],{...sd.get(u[c]),...i})}else u[c]=f}}return d&&sd.set(u,d),u},Sd=[`size`,`color`,`radius`,`space`,`zIndex`].map(e=>({name:e,spreadName:`...${e}`}));function Cd(e,t,n,{theme:r}){if(!e)return;if(typeof e==`function`)return e;let i=e[t];if(i)return i;if(t!=null){let{tokensParsed:i}=n;for(let{name:n,spreadName:a}of Sd)if(a in e&&(n in i&&t in i[n]||n===`color`&&r&&typeof t==`string`&&t[0]===`$`&&t.slice(1)in r))return e[a];let a=e[`...fontSize`];if(a&&n.fontSizeTokens.has(t))return a}return e[`:${typeof t}`]||e[`...`]}var wd=(e,t)=>e<t?-1:+(e>t),Td;function Ed(e,t){let n=e.split(`-`),r=n.length;if(r===2||r===3&&wo[n[n.length-1]]){let r=n[1];if(r!==`true`&&t&&!t[r])return e.replace(`$group-`,`$group-true-`)}return e}function Dd(e,t,n){return e in t||n&&e in n}function Od(e,t){return!1}var kd=(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{Td||=ts();let p=f||s?.animationDriver||Td.animations;if(e.passThrough)return null;a.isAnimated&&p?.isReactNative&&!a.noNormalize&&(a.noNormalize=`values`);let{shorthands:m}=Td,{isHOC:h,isText:g,isInput:_,variants:v,isReactNative:y,inlineProps:b,inlineWhenUnflattened:x,parentStaticConfig:S,acceptsClassName:C}=t,w={},T=a.mediaState||fs,E=C&&!a.noClass,D={},O={};e.space;let k=null,A=!1,j,M,ee;e.className;let te=0,ne=t.validStyles||(t.isText||t.isInput?jc:Pc),N={classNames:O,conf:Td,props:e,styleProps:a,componentState:i,staticConfig:t,style:null,theme:n,usedKeys:{},viewProps:w,context:s,debug:d,animationDriver:p};if({}.IS_STATIC===`is_static`){let{fallbackProps:t}=a;t&&(N.props=new Proxy(e,{get(n,r,i){return Reflect.has(e,r)?Reflect.get(e,r):Reflect.get(t,r)}}))}let{asChild:P}=e,{accept:re}=t,{noSkip:ie,disableExpandShorthands:ae,noExpand:oe,styledContext:se}=a,{webContainerType:ce}=Td.settings,le=S?.variants;for(let n in e){let o=n,s=e[o];if(o===`children`){w[o]=s;continue}if(re){let e=re[o];if((e===`style`||e===`textStyle`)&&s&&typeof s==`object`){w[o]=Md(N,o,s,a.noClass);continue}}if(ae||o in m&&(o=m[o]),o===`className`)continue;if(P){let e=Ul(t);if(e){let t=e[n]??e[o];if(t!==void 0&&s===t)continue}}if(o in gd&&!ie&&!h){if(o===`group`){let e=`t_group_${s}`;Fd(D,[`container`,void 0,e,void 0,[`.${e} { container-name: ${s}; container-type: ${ce||`inline-size`}; }`]])}if(o===`transition`&&typeof s==`string`){let e=p?.animations?.[s];if(e&&p?.outputStyle===`css`&&{}.IS_STATIC===`is_static`)s=`all ${e}`;else if(e)continue}else continue}let u=Dd(o,ne,re);if(t.isReactNative&&o.startsWith(`data-`)){o=o.replace(`data-`,``),w.dataSet||={},w.dataSet[o]=s;continue}if(!oe){if(o===`disabled`&&s===!0&&(w[`aria-disabled`]=!0,(_||l===`button`||l===`form`||l===`input`||l===`select`||l===`textarea`)&&(w.disabled=!0),!v?.disabled))continue;if(o===`testID`){y?w.testID=s:(w[`data-testid`]=s,a.isAnimated&&p?.isReactNative&&(w.testID=s));continue}if(o===`id`){w.id=s;continue}}let f=!u&&v&&o in v,C=u||f,ue=o in Nc,de=!C&&!ue&&js(o),fe=!!(de||ue);fe&&de===`group`&&(o=Ed(o,c));let pe=u||fe||f&&!oe;if(Od(o,de)||pe&&(P===`except-style`||P===`except-style-web`))continue;let me=!pe&&h||h&&le&&o in le||b?.has(o),he=le?.[o],ge=!!(h&&(u||fe||he||o in gd));if((me||ge)&&(Bd(w,o,s,fe),!f)||!ie&&o in gd&&(o!==`transition`||typeof s!=`string`||p?.animations?.[s]))continue;(g||_)&&s&&(o===`fontFamily`||o===m.fontFamily)&&s in Td.fontsParsed&&(N.fontFamily=s);let F=fe||!C;_d(o,s,N,F,(t,n,s)=>{let l=se&&t in se;if(!h&&F&&!l&&!fe){w[t]=n;return}if(n!=null){if(!h&&Dd(t,ne,re)){jd(N,t,n,1,!1,s);return}if(ue=t in Nc,de=!ue&&js(t),fe=!!(de||ue),f=v&&t in v,de===`group`&&(t=Ed(t,c)),!Od(t,de)){if((b?.has(t)||{}.IS_STATIC===`is_static`&&x?.has(t))&&(w[t]=e[t]??n),a.noExpand&&ue||h&&(fe||S?.variants?.[o])){Bd(w,t,n,fe);return}if(ue){if(!n)return;let e=Md(N,t,n,a.noClass&&{}.IS_STATIC!==`is_static`);if((!E||{}.IS_STATIC===`is_static`)&&(k||={},k[t]||(k[t]={}),{}.IS_STATIC===`is_static`)){Object.assign(k[t],e);return}let r=To[t],o=t===`enterStyle`,s=t===`exitStyle`;if(!r)return;if(E&&!s){let t=nu(e,r);for(let e of t){let t=`${e[0]}-${r.name}`;Fd(D,e),O[t]=e[2]}}if(!E||s||o){let c=i[r.stateKey||r.name]===!1;s&&(c=!a.isExiting),o&&i.unmounted===!1&&(c=!0);let l=r.priority,u=sd.get(e);for(let n in e){let r=e[n];c?Ud(n,N):l>=(N.usedKeys[n]||0)&&({}.IS_STATIC===`is_static`&&(k||={},k[t]||(k[t]={}),k[t][n]=r),jd(N,n,r,l,!1,u?.[n]))}if(!c)for(let e in n){let t=m[e]||e;N.usedKeys[t]=Math.max(l,N.usedKeys[t]||0)}}return}if(de){if(!n)return;let e=t.slice(de==`theme`?7:1);if(A||=!0,(n.space||!E||a.willBeAnimated)&&((!A||typeof A==`boolean`)&&(A=new Set),A.add(e)),de===`platform`&&!Lu(t))return;let o=te;if(te+=1,E){let r=tu(Md(N,t,n,!1));for(let t of r){let n=t[0],r=n[0]===`$`;if(r&&!Lu(n))continue;let i=Es(t,e,ms,de,!1,o),a=r?t[2]:``,s=`${t[0]}${a}-${e}${t[3]||``}`;Fd(D,i),O[s]=i[2]}}else{let a=de===`theme`,o=de===`group`,s=de===`platform`;if(!a&&!s&&!o&&!T[e])return;let l=Md(N,t,n,!0),u=0;if(a){if(j=!0,!(r===e||r.startsWith(e)))return}else if(o){let t=ys(e),n=t.name,r=c?.[n]?.state,a=t.pseudo,o=t.media;if(!r){M||=new Set;return}let s=i.group?.[n];if(o){ee||=new Set,ee.add(o);let e=s?.media,t=e?.[o];if(!e&&r.layout&&(t=nc(o,r.layout)),!t){for(let e in l)Ud(e,N);return}u=2}if(a){M||=new Set,M.add(n);let e=(s||c?.[n].state)?.pseudo?.[a],t=wo[a];if(!e){for(let e in l)Ud(e,N);return}u=t}}else s&&(u=Iu(e));let f=sd.get(l);o&&l.transition&&(N.pseudoTransitions||={},N.pseudoTransitions[`$${e}`]=l.transition);function p(t,n,r){N.style||={},Vd(N,e,t,n,T[e],u,d,r)&&t===`fontFamily`&&(N.fontFamily=l.fontFamily)}for(let t in l)if(t!==`space`){if(t[0]===`$`){let n=js(t);if(n===`platform`){if(!Lu(t))continue}else if(n===`theme`){if(!Ru(t,r))continue}else if(n===!0){let e=t.slice(1);if(!T[e])continue}let i=l[t],a=sd.get(i),o=T[e]?Ps(e):Eo,s;s=n===`platform`?Eo+Iu(t.slice(1)):n===!0?Ps(t.slice(1)):Eo;let c=o+u+s+1;for(let e in i){let t=m[e]||e,{usedKeys:n}=N;n[t]&&n[t]>c||(N.style||={},jd(N,t,i[e],c,!1,a?.[e]),t===`fontFamily`&&(N.fontFamily=i[e]))}}else p(t,l[t],f?.[t])}}return}if(!f){if(l)return;w[t]=n}}}})}if(a.noNormalize!==!1&&(N.style&&(ql(N.style),!a.noExpand&&!a.noMergeStyle&&(!y||p?.inputStyle!==`css`)&&au(N.style)),N.flatTransforms&&(N.style||={},Ad(N.style,N.flatTransforms)),o)){if(E)for(let e in o.classNames){let t=o.classNames[e];N.style&&e in N.style||e in O||(O[e]=t)}if(!E)for(let e in o.style)e in O||N.style&&e in N.style||(N.style||={},N.style[e]=o.style[e])}if(!a.noNormalize&&!t.isReactNative&&!t.isHOC&&(!a.isAnimated||p?.inputStyle===`css`)&&Array.isArray(N.style?.transform)&&(N.style.transform=eu(N.style.transform)),!a.noMergeStyle&&N.style&&E){let t,n=!1;if(!N.style.$$css){let r=tu(N.style);for(let i of r){let[r,o,s]=i,c=a.isAnimated&&a.noClass&&e.animateOnly?.includes(r),l=!c&&!a.isAnimated&&Vo&&p?.outputStyle===`css`&&e.animateOnly?.includes(r);c?(t||={},t[r]=N.style[r]):l?(t||={},t[r]=o,n=!0):(Fd(D,i),O[r]=s)}(n||{}.IS_STATIC!==`is_static`)&&(N.style=t||{})}}if(!a.noMergeStyle&&N.style&&!E&&a.isAnimated&&!p?.isReactNative&&!N.style.$$css){let t={},n=!1;e.animateOnly;for(let e in N.style)e in Ec&&(t[e]=N.style[e],delete N.style[e],n=!0);if(n){let e=tu(t);for(let t of e)Fd(D,t),O[t[0]]=t[2]}}let ue=e.style;if(!a.noMergeStyle&&ue){if(h)w.style=Hd(ue);else{let e=Array.isArray(ue),t=e?ue.length:1;for(let n=0;n<t;n++){let t=e?ue[n]:ue;if(t){if(t.$$css)Object.assign(N.classNames,t);else{N.style||={};let e=Hd(t);Object.assign(N.style,e)}}}}}let de={hasMedia:A,fontFamily:N.fontFamily,viewProps:w,style:N.style,pseudos:k,classNames:O,rulesToInsert:D,dynamicThemeAccess:j,pseudoGroups:M,mediaGroups:ee,overriddenContextProps:N.overriddenContextProps,pseudoTransitions:N.pseudoTransitions},fe=P===`except-style`||P===`except-style-web`;if(!a.noMergeStyle&&!fe){let n=N.style;{let r=g||_?N.fontFamily:null;r&&r[0]===`$`&&(r=r.slice(1));let i=r?`font_${r}`:``,o=e.group?`t_group_${e.group}`:``,s=e.componentName||t.componentName,c=e.asChild||!s||s===`Text`?``:`is_${s}`,l=[];c&&l.push(c),g?l.push(`is_Text`):l.push(`is_View`),i&&l.push(i),O&&l.push(Object.values(O).join(` `)),o&&l.push(o),e.className&&l.push(e.className);let u=l.join(` `),d=y||a.isAnimated&&p?.isReactNative;if(a.isAnimated&&p?.inputStyle===`css`)w.className=u,n&&(w.style=n);else if(d){let e;for(let t of u.split(` `))e||={$$css:!0},e[t]=t;w.style=e?[...Array.isArray(n)?n:[n],e]:[n]}else u&&(w.className=u),n&&(w.style=n)}}return de};function Ad(e,t){Object.entries(t).sort(([e],[t])=>wd(e,t)).forEach(([t,n])=>{Rd(e,t,n,!0)})}function jd(e,t,n,r,i=!1,a){let{viewProps:o,styleProps:s,staticConfig:c,usedKeys:l}=e;if((l[t]||0)>r)return;let u=c.context?.props||c.parentStaticConfig?.context?.props;if(u&&t in u){e.overriddenContextProps||={};let r=e.originalContextPropValues?.[t];e.overriddenContextProps[t]=a??r??n}if(t in Oc)e.flatTransforms||={},l[t]=r,e.flatTransforms[t]=n;else{let a=!i&&!s.noNormalize?$l(n,t):n;c.accept&&t in c.accept?o[t]=a:(e.style||={},l[t]=r,e.style[t]=t===`transform`&&Array.isArray(a)?[...a]:a)}}var Md=(e,t,n,r)=>{let{staticConfig:i,conf:a,styleProps:o}=e,s={},c,l=sd.get(n),u=e.props;e.props={...u,...n};try{for(let u in n){let d=n[u];if(u=a.shorthands[u]||u,u===`transition`){e.pseudoTransitions||={},e.pseudoTransitions[t]=d;let n=e.animationDriver;if(n?.outputStyle===`css`){let e=n.animations?.[d];e&&(s.transition=`all ${e}${t[0]===`$`?` !important`:``}`)}!s.transition&&typeof d==`string`&&!n?.animations?.[d]&&(s.transition=d);continue}!i.isHOC&&u in gd&&!o.noSkip||_d(u,d,e,!1,(t,n,i)=>{let a=l?.[t]??i;a!==void 0&&(c||={},c[t]=a),t in Nc&&(n=Md(e,t,n,r)),!r&&t in Oc?Rd(s,t,n):s[t]=o.noNormalize?n:$l(n,u)})}}finally{e.props=u}if(!r){let t=e.style?.transform,n=e.flatTransforms,r=s.transform;if(Array.isArray(r)&&r.length){let e=r.length;if(Array.isArray(t)){let n=[];outer:for(let i=0;i<t.length;i++){let a=t[i];for(let t in a){for(let n=0;n<e;n++)for(let e in r[n]){if(t===e)continue outer;break}n.push(a);break}}for(let t=0;t<e;t++)n.push(r[t]);s.transform=n}if(n)outer:for(let t in n){let i=t===`x`?`translateX`:t===`y`?`translateY`:t;for(let t=0;t<e;t++)for(let e in r[t]){if(i===e)continue outer;break}Rd(s,t,n[t])}}else n&&Ad(s,n)}return o.noNormalize||ql(s),c&&Object.keys(c).length&&sd.set(s,c),s},Nd=b.useInsertionEffect||Ho,Pd=(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{"use no memo";let p=kd(e,t,n,r,i,a,o,s,c,l,u,d,f);return Nd(()=>{p&&Nu(p.rulesToInsert)},[p?.rulesToInsert]),p};function Fd(e,t){{let n=t[2];Fu(n)&&(Mu(n,t[4]),e[n]=t)}}var Id={}.GUI_DEFAULT_COLOR||`rgba(0,0,0,0)`,Ld={...Object.fromEntries(Object.entries(xc.color).map(([e,t])=>[e,Id])),opacity:1,scale:1,scaleX:1,scaleY:1,rotate:`0deg`,rotateX:`0deg`,rotateY:`0deg`,rotateZ:`0deg`,skewX:`0deg`,skewY:`0deg`,x:0,y:0,borderRadius:0},Rd=(e,t,n,r=!1)=>{typeof e.transform!=`string`&&(e.transform||=[],e.transform[r?`unshift`:`push`]({[zd[t]||t]:n}))},zd={x:`translateX`,y:`translateY`};function Bd(e,t,n,r=!1){if(r){let r={...e[t],...n};delete e[t],e[t]=r}else e[t]=n}function Vd(e,t,n,r,i,a,o,s){let c=e.usedKeys,l=tc(t,n,e,i);if(a){let e=Eo+a;l=!c[n]||e>c[n]?e:null}if(l===null)return!1;if(n in To){let t=To[n],i=t.stateKey||t.name;if(e.componentState[i]===!1)return!1;let a=sd.get(r);for(let t in r)jd(e,t,r[t],l,!1,a?.[t])}else jd(e,n,r,l,!1,s);return!0}function Hd(e){let t={};for(let n in e){let r=e[n];n in Oc?Rd(t,n,r):t[n]=$l(r,n)}return Array.isArray(t.transform)&&(t.transform=eu(t.transform)),ql(t),t}function Ud(e,t){let n=Ld[e];n!=null&&!(e in t.usedKeys)&&(!t.style||!(e in t.style))&&jd(t,e,n,1)}var Wd=/^on[A-Z]/;function Gd(e,t){for(let n in t){let r=e[n],i=t[n];i!==void 0&&(n===`style`?e.style=r&&i?{...r,...i}:i||r:n===`className`?e.className=r&&i?`${r} ${i}`:i||r:n===`ref`?e.ref=r&&i?jl(r,i):i||r:e[n]=Wd.test(n)&&typeof r==`function`&&typeof i==`function`?cc(r,i):i)}return e}function Kd(e,t,n){let r=Gd({...e},t);return r.children=n,r}function qd(e,t,n,r){if(!n)return r;let i=e||{hover:!1,press:!1,focus:!1,groups:{}};if(t.press&&!i.press&&n.pressStyle)return n.pressStyle;if(t.hover&&!i.hover&&n.hoverStyle)return n.hoverStyle;if(t.focus&&!i.focus&&n.focusStyle)return n.focusStyle;for(let e in n)if(e.startsWith(`$group-`)){let r=e.match(/^\$group-(.+)-(hover|press|focus)$/);if(!r)continue;let a=r[1],o=r[2],s=t.group?.[a]?.pseudo,c=i.groups?.[a];if(s?.[o]&&!c?.[o])return n[e]}return r}function Jd(e){let t={};if(e.group)for(let n in e.group){let r=e.group[n]?.pseudo;r&&(t[n]={hover:r.hover,press:r.press,focus:r.focus})}return{hover:e.hover,press:e.press,focus:e.focus,groups:t}}var Yd={};function Xd(e){Object.assign(Yd,e)}var Zd=e=>{Yd.setElementProps?.(e)},Qd=e=>{let{pseudoGroups:t,mediaGroups:n,groupContext:r}=e;if(t||n){let r=new Set;if(t)for(let n of t)r.add($d(n,e));if(n)for(let t of n)r.add($d(t,e));return()=>{r.forEach(e=>e())}}},$d=(e,{setStateShallow:t,pseudoGroups:n,mediaGroups:r,groupContext:i})=>{let a=i?.[e];if(!a)return()=>{};let o=a.subscribe(({layout:i,pseudo:a})=>{t(t=>{let o=!1,s=t.group?.[e]||{pseudo:{},media:{}};if(a&&n?.has(e))s.pseudo||={},Lo(s.pseudo,a)!==s.pseudo&&(Object.assign(s.pseudo,a),o=!0);else if(i&&r){s.media||={};let e=ec(r,i),t=Lo(s.media,e);t!==s.media&&(Object.assign(s.media,t),o=!0)}return o?{group:{...t.group,[e]:s}}:t})});return()=>{o(),t({group:{}})}},ef=(0,b.createContext)(!1),tf=({children:e,enabled:t})=>{let n=(0,b.useContext)(ef);return(0,R.jsx)(ef.Provider,{value:t??n,children:e})},nf=()=>b.useContext(ef);function rf(){return b.useContext(ef)?!0:b.useSyncExternalStore(af,()=>!0,()=>!1)}var af=()=>()=>{},of=(0,b.forwardRef)(function(e,t){"use no memo";if(e.disable)return e.children;let{passThrough:n}=e,r=!!e._isRoot,[i,a]=kl(e,r,!0),o=e[`disable-child-theme`]?b.Children.map(e.children,e=>n||!(0,b.isValidElement)(e)?e:(0,b.cloneElement)(e,{"data-disable-theme":!0})):e.children;if(t)try{b.Children.only(o),o=(0,b.cloneElement)(o,{ref:t})}catch{}let s=(0,b.useRef)({hasEverThemed:!1});return sf(a,o,e,r,s,n)});of.avoidForwardRef=!0;function sf(e,t,n,r=!1,i,a=!1){let{shallow:o,forceClassName:s}=n,c=i.current;if(!(c.hasEverThemed||e.isNew||r||El(n)))return t;t=(0,R.jsx)(el.Provider,{value:e.id,children:t});let{isInverse:l,name:u}=e,d=l||s;if(c.hasEverThemed||=!0,(d||e.name===`dark`||e.name===`light`)&&(c.hasEverThemed=`wrapped`),o&&e.parentId){let n=cl(e.isNew?e.id:e.parentId);if(!n)throw Error(`‼️010`);t=b.Children.toArray(t).map(e=>(0,b.isValidElement)(e)?a?e:(0,b.cloneElement)(e,void 0,(0,R.jsx)(of,{name:n.name,children:e.props.children})):e)}if(s===!1)return t;{let i=n.contain?lf:cf,{className:o=``,color:s}=a?{}:df(e,n,r);if(t=(0,R.jsx)(`span`,{className:`${o} is_Theme`,style:a?i:{color:s,...i},children:t}),c.hasEverThemed===`wrapped`){let e=d?`${u.startsWith(`light`)?`t_light`:u.startsWith(`dark`)?`t_dark`:``} _dsp_contents`:`_dsp_contents`;t=(0,R.jsx)(`span`,{className:e,children:t})}return t}}var cf={display:`contents`},lf={display:`contents`,contain:`strict`},uf={className:``,color:void 0};function df(e,t,n=!1){if(!e.isNew&&!t.forceClassName)return uf;let r=e?.theme&&e.isNew?zc(e.theme.color):``,i=e.name.replace(ff,``),a=i.split(`_`),o=`t_${i}`;if(a.length>1){let e=[];for(let t=1;t<=a.length;t++)e.push(`t_${a.slice(0,t).join(`_`)}`);o=e.join(` `)}return{color:r,className:`${n?``:`t_sub_theme`} ${o}`}}var ff=/^(dark|light)_/;function pf(e,t,n=!1){let r=b.forwardRef(function(r,i){"use no memo";let a=Ul(t,r.componentName),o=a?.theme,s=a?.themeReset,{theme:c,componentName:l,themeReset:u,...d}=r,f,p=t?.context;if(p)for(let e in p.props){let t=r[e];t!==void 0&&(f||={},f[e]=t)}let m=(0,R.jsx)(e,{ref:i,...d,"data-disable-theme":!0}),h=null,g=l||t?.componentName;if(g&&(h||={},h.componentName=g),`debug`in r&&(h||={},h.debug=r.debug),(`theme`in r||o)&&(h||={},h.name=`theme`in r?r.theme:o),(`themeReset`in r||s)&&(h||={},h.reset=`themeReset`in r?u:s),n&&!h)return m;let _=(0,R.jsx)(of,{"disable-child-theme":!0,...h,children:m});if(p){let e=p.Provider,t=b.useContext(p);_=(0,R.jsx)(e,{...t,...f,children:_})}return _});return r.displayName=`Themed(${e?.displayName||e?.name||`Anonymous`})`,r}var mf=new Map,hf=!1;function gf(){hf||(hf=!0,queueMicrotask(()=>{mf.clear(),hf=!1}))}function _f(e){let t=e[2],n=e[4],r=mf.get(t);if(r&&r.len===n.length&&r.first===n[0]&&r.last===n[n.length-1])return r.element;let i=(0,R.jsx)(`style`,{href:`t_${t}`,precedence:`default`,suppressHydrationWarning:!0,children:n.join(`
12
- `)},t);return mf.set(t,{element:i,len:n.length,first:n[0],last:n[n.length-1]}),i}function vf(e){if(e.length)return gf(),(0,R.jsx)(R.Fragment,{children:e.map(_f)})}var yf=(e,t,n,r)=>{"use no memo";let i=rf(),a=!nf(),o=t?.isStub?void 0:t?.useAnimations,{isHOC:s}=n,c=(0,b.useRef)(void 0);c.current||={startedUnhydrated:a&&!i};let l=!!(!s&&`transition`in e||e.style&&bf(e.style)),u=t?.inputStyle??`css`,d=t?.outputStyle??`css`,f=c.current;!a&&l&&(f.hasAnimated=!0);let p=!!(!s&&o&&t?.avoidReRenders&&Jo()?.pseudo&&(`hoverStyle`in e||`pressStyle`in e||`focusStyle`in e)),m=!!((l||p)&&!s&&o||f.hasAnimated),h=!Bo&&m;h&&!f.hasAnimated&&(f.hasAnimated=!0);let{disableClassName:g}=e,_=!s&&h&&e.animatePresence!==!1&&t?.usePresence?.()||null,v=_?.[2],y=v?.isPresent===!1,x=v?.isPresent===!0&&v.initial!==!1,S=!!e.enterStyle,C=l&&!i&&(t?.isReactNative||u!==`css`),w=!s&&(S||x||C||g)?S||x?Vl:zl:Bl,T=xf(e);T!=null&&(w.disabled=T);let E=(0,b.useState)(w),D=e.forceStyle?{...E[0],[e.forceStyle]:!0}:E[0],O=E[1],k=h;C&&!n.isHOC&&!i&&(k=!1,f.willHydrate=!0),T!==D.disabled&&(T&&Object.assign(D,Bl),D.disabled=T,O(e=>({...D})));let A=e.group;if(!c.current.baseSetStateShallow){let e=c.current;e.baseSetStateShallow=e=>{O(t=>Lo(t,typeof e==`function`?e(t):e))}}let j=c.current.baseSetStateShallow;if(v&&k&&i&&n.variants){let{enterVariant:t,exitVariant:r,enterExitVariant:i,custom:a}=v;od(a)&&Object.assign(e,a);let o=r??i,s=t??i;D.unmounted&&s&&n.variants[s]?e[s]=!0:y&&o&&(e[o]=r!==i)}let M=!!e.forceStyle;if(!i)M=!1;else if(i){let e=k&&i,t=!n.acceptsClassName&&(Qo(`disableSSR`)||!D.unmounted),r=g&&!D.unmounted;(e&&d!==`css`||r||t)&&(M=!0)}return{startedUnhydrated:f.startedUnhydrated,curStateRef:f,disabled:T,groupName:A,hasAnimationProp:l,hasEnterStyle:S,isAnimated:k,isExiting:y,isHydrated:i,presence:_,presenceState:v,setState:O,setStateShallow:j,noClass:M,state:D,stateRef:c,inputStyle:u,outputStyle:d,willBeAnimated:h,willBeAnimatedClient:m,platformPseudo:p}};function bf(e){return Object.keys(e).some(t=>{let n=e[t];return n&&typeof n==`object`&&`_animation`in n})}var xf=e=>e.disabled||e.passThrough||e.accessibilityState?.disabled||e[`aria-disabled`]||e.accessibilityDisabled||!1,Sf=(0,b.memo)((0,b.forwardRef)(function(e,t){let{children:n,...r}=e;if((0,b.isValidElement)(n)){let e=wf(n,r);return(0,b.cloneElement)(n,n.type.avoidForwardRef?e:{...e,ref:jl(t,n.props.ref)})}return b.Children.count(n)>1?b.Children.only(null):null})),Cf={onPress:`onClick`,onPressOut:`onMouseUp`,onPressIn:`onMouseDown`};function wf(e,t){let n=e.props,r=typeof e.type==`string`;if(r)for(let e in Cf)e in t&&(t[Cf[e]]=t[e],delete t[e]);let i=Gd(t,n);if(r)for(let e in Cf)e in i&&(i[Cf[e]]=i[e],delete i[e]);return i}var Tf=new Map,Ef=e=>{let t=Tf.get(e);return t===void 0&&(t=e.replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Tf.set(e,t)),t},Df=new Set,Of=new Set([`hover`,`press`,`pressIn`,`group`,`focus`,`focusWithin`,`media`,`group`]),kf=[`disabled`,`hover`,`press`,`pressIn`,`focus`,`focusVisible`,`focusWithin`];if(typeof window<`u`){let e=()=>{Df.forEach(e=>e(e=>e.press||e.pressIn?{...e,press:!1,pressIn:!1}:e)),Df.clear()},t=()=>{Df.forEach(e=>e(e=>e.press||e.pressIn||e.hover?{...e,press:!1,pressIn:!1,hover:!1}:e)),Df.clear()};addEventListener(`mouseup`,e),addEventListener(`touchend`,t),addEventListener(`touchcancel`,t)}var Af={value:!1},jf={value:!1};typeof document<`u`&&(document.addEventListener(`keydown`,()=>{Af.value||=!0}),document.addEventListener(`mousedown`,()=>{Af.value&&=!1}),document.addEventListener(`mousemove`,()=>{Af.value&&=!1,jf.value=!1}),document.addEventListener(`touchstart`,()=>{jf.value=!0}));function Mf(e){let t=null,{Component:n,isText:r,isHOC:i}=e,a=b.forwardRef((a,s)=>{"use no memo";t||=ts();let{context:c,isReactNative:l}=e,u=a.debug,d=c?b.useContext(c):void 0,f=null,p=b.useContext(No),m=!!(r&&p.inText);({}).GUI_IS_CORE_NODE;let h=a,g=h.componentName||e.componentName,[_,v]=Oo(Ul(e,h.componentName),d,a);h=_,f=v;let y=b.useContext(Fo),x=h.animatedBy&&t?t.animationDrivers?t.animationDrivers[h.animatedBy]??t.animations:h.animatedBy==="default"?t.animations:null:Wl(p.animationDriver)??Wl(t?.animations)??null,S=x?.useAnimations,C=yf(h,x?.isStub?null:x,e,t),{disabled:w,groupName:T,hasAnimationProp:E,hasEnterStyle:D,isAnimated:O,isExiting:k,isHydrated:A,presence:j,presenceState:M,setState:ee,noClass:te,state:ne,stateRef:N,inputStyle:P,outputStyle:re,willBeAnimated:ie,willBeAnimatedClient:ae,platformPseudo:oe,startedUnhydrated:se}=C;x?.avoidReRenders&&Ho(()=>{let e=N.current.prevPseudoState;e&&(e.hover||e.press||e.focus)&&N.current.updateStyleListener?.();let t=N.current.nextState;t&&(N.current.nextState=void 0,Ro(ne,t)||C.setStateShallow(t))}),Ho(()=>{if(!oe||h.disabled)return;let e=Jo()?.pseudo,t=N.current.host;if(e&&t)return e.subscribe(t,({hovered:e})=>{N.current.setStateShallow?.({hover:e})})},[oe,h.disabled]);let ce=(0,b.useMemo)(()=>{if(!T||h.passThrough)return y;let e=new Set;return N.current.group?.listeners?.clear(),N.current.group={listeners:e,emit(t){e.forEach(e=>e(t))},subscribe(t){return e.add(t),e.size===1&&le({hasDynGroupChildren:!0}),()=>{e.delete(t),e.size===0&&le({hasDynGroupChildren:!1})}}},{...y,[T]:{state:{pseudo:Bl},subscribe:e=>{let t=N.current.group?.subscribe(e);return()=>{t?.()}}}}},[N,T,y]),le=C.setStateShallow,ue=h.render,de=(!n||typeof n==`string`)&&ue||n,fe=r?de||`span`:de||(m?`span`:`div`),pe=fe;x&&O&&x.needsCustomComponent&&(pe=x[r?`Text`:`View`]||pe);let me=h[`data-disable-theme`]||i,he={componentName:g,disable:me,shallow:h.themeShallow,debug:u,unstyled:h.unstyled};`theme`in h&&(he.name=h.theme),he.needsUpdate=()=>!!N.current.isListeningToTheme;let[ge,F]=kl(he);pe=de||pe;let _e=Zs(p,u);Uc(!1);let I={mediaState:_e,noClass:te,resolveValues:O&&P!==`css`||i&&ne.unmounted==0&&E?`value`:`auto`,isExiting:k,isAnimated:O,willBeAnimated:ie,styledContext:d},ve=F?.name||``,ye=Pd(h,e,ge,ve,ne,I,null,p,ce,pe,se,u,x),be=!ye,xe=e.context;if(ye?.overriddenContextProps){let t=e.context||e.parentStaticConfig?.context;if(t){for(let e in ye.overriddenContextProps)f||={},f[e]=ye.overriddenContextProps[e];e.context||(xe=t)}}let L=T&&ce?.[T]||null;if(!be&&L&&h.containerType!==`normal`){let e=L?.state;e&&e.layout===void 0&&(ye.style?.width||ye.style?.height)&&(e.layout={width:Nf(ye.style.width),height:Nf(ye.style.height)})}let Se=h.transition&&typeof h.transition==`object`&&!Array.isArray(h.transition)&&(`enter`in h.transition||`exit`in h.transition);if(!be&&(E||T||oe)&&x?.avoidReRenders&&!Se){let t=le;N.current.updateStyleListener=()=>{let n=N.current.useStyleListener;if(!n){let e=N.current.nextState;e&&t(e);return}let r=N.current.nextState||ne,i=N.current.nextMedia,a=kd(h,e,ge,ve,r,i?{...I,mediaState:i}:I,null,p,ce,pe,se,u,x),o=qd(N.current.prevPseudoState,r,a?.pseudoTransitions,h.transition??(oe?`0ms`:void 0));N.current.prevPseudoState=Jd(r);let s=!!(r.hover||r.press||r.pressIn||r.focus||r.focusWithin);n(a?.style||{},o,s)};function n(){let e=N.current.nextState;if(L){let{group:t,hasDynGroupChildren:n,unmounted:r,transition:i,...a}=e;o(L,N.current.group||null,a)}}if(p.mediaEmitListeners=p.mediaEmitListeners||new Set,!N.current.mediaEmitCleanup){let e=e=>{N.current.nextMedia=e,N.current.updateStyleListener?.()};p.mediaEmitListeners.add(e),N.current.mediaEmitCleanup=()=>{p.mediaEmitListeners?.delete(e)}}p.mediaEmit=p.mediaEmit||(e=>{for(let t of p.mediaEmitListeners)t(e)}),N.current.setStateShallow=e=>{let r=N.current.nextState||ne,i=typeof e==`function`?e(r):e;if(i===r||Ro(r,i))return;let a=Object.keys(i).every(e=>Of.has(e)),o={...r,...i};N.current.nextState=o,a?(n(),N.current.updateStyleListener?.()):t(i)},le=e=>{N.current.setStateShallow?.(e)}}ye&&(h.group&&h.untilMeasured===`hide`&&!N.current.hasMeasured&&(ye.style=ye.style||{},ye.style.opacity=0),ye.dynamicThemeAccess!=null&&(N.current.isListeningToTheme=ye.dynamicThemeAccess));let Ce=ye?.hasMedia&&ye.hasMedia!==!0;Ys(p,Wc()||Ce||te&&ye?.hasMedia===!0,Ce?ye.hasMedia:null);let{viewProps:we,pseudos:Te,style:Ee,classNames:De,pseudoGroups:Oe,mediaGroups:ke}=ye||{},Ae=h,{asChild:je,children:Me,themeShallow:Ne,spaceDirection:Pe,onPress:Fe,onLongPress:Ie,onPressIn:Le,onPressOut:Re,onHoverIn:ze,onHoverOut:Be,onMouseUp:Ve,onMouseDown:He,onMouseEnter:Ue,onMouseLeave:We,onFocus:Ge,onBlur:Ke,onDidAnimate:qe,separator:Je,passThrough:Ye,forceStyle:Xe,onClick:Ze,theme:Qe,...$e}=we||{},et=$e;h.forceStyle&&(et.forceStyle=h.forceStyle),i&&(Qe!==void 0&&(et.theme=Qe),Ye!==void 0&&(et.passThrough=Ye));let tt,nt=(P===`css`?ae:ie)&&S&&!i,rt;if(nt){let t=x?.avoidReRenders?e=>{N.current.useStyleListener=e}:void 0,n=qd(N.current.prevPseudoState,ne,ye?.pseudoTransitions,h.transition??(oe?`0ms`:void 0));ye&&(ye.effectiveTransition=n),N.current.prevPseudoState=Jd(ne);let r=S({props:Ae,style:A?Ee||{}:{...Ee},styleState:ye,useStyleEmitter:t,presence:j,componentState:ne,styleProps:I,theme:ge,themeName:ve,pseudos:Te||null,staticConfig:e,stateRef:N,onDidAnimate:qe});r&&(r.ref&&(rt=r.ref),A&&r&&(tt=r.style,et.style=tt,r.className&&(et.className=`${ne.unmounted===`should-enter`?`t_unmounted `:``}${et.className||``} ${r.className}`)))}!be&&L&&h.containerType!==`normal`&&($e.onLayout=cc($e.onLayout,e=>{let t=e.nativeEvent.layout;L.state.layout=t,N.current.group?.emit({layout:t}),!N.current.hasMeasured&&h.untilMeasured===`hide`&&ee(e=>({...e})),N.current.hasMeasured=!0})),et=Yd.usePropsTransform?.(pe,$e,N,N.current.willHydrate)||$e,N.current.composedRef||(N.current.composedRef=jl(e=>N.current.host=e,s,Zd,rt)),et.ref=N.current.composedRef;let it=()=>{le({press:!1,pressIn:!1})};Ho(()=>{if(ne.unmounted===!0&&D){le({unmounted:`should-enter`});return}if(ne.unmounted){if(P===`css`){let e=!1;return requestAnimationFrame(()=>{e||requestAnimationFrame(()=>{e||le({unmounted:!1})})}),()=>{e=!0}}le({unmounted:!1})}return()=>{Df.delete(ee),N.current.mediaEmitCleanup?.()}},[ne.unmounted,P]),Ho(()=>{if(!w&&(Oe||ke)&&ce)return Qd({groupContext:ce,setStateShallow:le,mediaGroups:ke,pseudoGroups:Oe})},[ce,w,Oe?Ao(Oe):0,ke?Ao(ke):0]);let at=N.current.group;Ho(()=>{L&&at&&o(L,at,ne)},[L,at,ne]);let ot=!w&&te&&Te?.pressStyle,st=!w&&te&&Te?.focusStyle,ct=!w&&te&&Te?.focusVisibleStyle,lt=!!(ot||st||ct||Ge||Ke||p.setParentFocusState),ut=!!(T&&ne.hasDynGroupChildren),dt=!!(ut||ot||Fe||Re||Le||He||Ve||Ie||Ze||Te?.focusVisibleStyle),ft=!w&&te&&Te?.hoverStyle,pt=!!(ut||ft&&!oe),mt=!!(ut||pt||Ue||We),ht=!w&&!h.asChild&&!!(lt||dt||mt||ot||ft||st),gt=!!(ut||ot),_t=ht?{onPressOut:dt?e=>{it(),Re?.(e),Ve?.(e)}:void 0,...(mt||dt)&&{onMouseEnter:e=>{let t={};pt&&!jf.value&&(t.hover=!0),gt&&ne.pressIn&&(t.press=!0),le(t),ze?.(e),Ue?.(e)},onMouseLeave:e=>{let t={};pt&&(t.hover=!1),gt&&(t.press=!1,t.pressIn=!1),le(t),Be?.(e),We?.(e)}},onPressIn:dt?e=>{gt&&le({press:!0,pressIn:!0}),Le?.(e),He?.(e),Df.add(ee)}:void 0,onPress:dt?e=>{it(),Ze?.(e),(Fe||Ze)&&e.stopPropagation(),Fe?.(e),Ie?.(e)}:void 0,...lt&&{onFocus:e=>{let t={};p.setParentFocusState&&(p.setParentFocusState({focusWithin:!0}),t.focusWithin=!0),Te?.focusVisibleStyle&&Af.value?t.focusVisible=!0:t.focus=!0,le(t),Ge?.(e)},onBlur:e=>{p.setParentFocusState&&p.setParentFocusState({focusWithin:!1}),le({focus:!1,focusVisible:!1,focusWithin:!1}),Ke?.(e)}}}:null;_t&&!l&&Object.assign(et,Hl(_t));let vt=h,yt=a;if([g,h.testID??a.testID??h.accessibilityLabel??a.accessibilityLabel??(typeof vt.href==`string`?vt.href:null)??(typeof yt.href==`string`?yt.href:null)].filter(Boolean).join(`:`),je){pe=Sf;{let e=Hl({onPress:Fe,onLongPress:Ie,onPressIn:Le,onPressOut:Re,onMouseUp:Ve,onMouseDown:He,onMouseEnter:Ue,onMouseLeave:We},je===`web`||je===`except-style-web`);Object.assign(et,e)}}g&&!(`data-slot`in et)&&(et[`data-slot`]=Ef(g));let bt;if(be)bt=b.createElement(fe,{style:{display:`contents`}},a.children);else{Yd.useChildren&&(bt=Yd.useChildren(pe,bt||Me,et));let e=typeof ue==`string`;if(ue&&!e){let e=Pf(ue,bt||Me,et,C);e&&(et=e.viewProps,pe=e.elementType)}bt||=(e&&et.render,b.createElement(pe,et,bt||Me))}let xt=x?.ResetPresence,St=!!(!je&&ye&&!i&&xt&&ie&&(D||M)),Ct=N.current.hasEverResetPresence;if(St&&!Ct&&(N.current.hasEverResetPresence=!0),(St||Ct)&&xt&&(bt=(0,R.jsx)(xt,{disabled:!St,children:bt})),(`focusWithinStyle`in a||Te?.focusWithinStyle)&&(bt=(0,R.jsx)(No.Provider,{...p,setParentFocusState:le,children:bt})),`group`in h&&(bt=(0,R.jsx)(Fo.Provider,{value:ce,children:bt})),!je&&r&&!m&&(bt=(0,R.jsx)(No.Provider,{...p,inText:!0,children:bt})),bt=me||!ye?bt:sf(F,bt,he,!1,N),l&&!je&&(bt=(0,R.jsx)(`span`,{className:`_dsp_contents`,...!be&&A&&_t&&Hl(_t),children:bt})),f&&xe){let e=xe.Provider;for(let e in d)e in f||(f[e]=d[e]);bt=(0,R.jsx)(e,{__disableMergeDefaultValues:!0,...f,children:bt})}return se&&ye&&(bt=(0,R.jsxs)(R.Fragment,{children:[bt,A?null:vf(Object.values(ye.rulesToInsert))]})),bt});function o(e,t,n){if(!e||!t)return;let r=e.state.pseudo,i=!r||`unmounted`in r||`group`in r||`hasDynGroupChildren`in r||`transition`in r,a=i?{}:r,o=i;for(let e=0;e<kf.length;e++){let t=kf[e],r=n[t];a[t]===r?o&&(a[t]=r):(a[t]=r,o=!0)}o&&(e.state.pseudo=a,t.emit(e.state))}e.componentName&&(a.displayName=e.componentName);let s=a;s=b.memo(s),s.staticConfig=e;function c(t){return{...e,...t,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function l(e,t){let n=typeof e==`function`&&e.length===1?e:b.forwardRef(e),r=c(t?.staticConfig);return n=t?.disableTheme?n:pf(n,r,!0),(r.memo||{}.GUI_MEMOIZE_STYLEABLE)&&(n=b.memo(n)),n.staticConfig=r,n.styleable=l,n}return s.styleable=l,s}var Nf=e=>typeof e==`number`?e:typeof e==`string`?+e.replace(`px`,``):0,Pf=(e,t,n,r)=>{if(typeof e==`function`&&(e=Ff(e(n,r))),e&&typeof e==`object`&&b.isValidElement(e)&&Ff(e)){let r=e.props,i=r?Kd(r,n,t):n;return{elementType:e.type,viewProps:i}}};function Ff(e){return e}function If(e,t){let n=ts().inverseShorthands;return t[e]??t[n[e]]}var Lf=e=>{({}).GUI_DID_OUTPUT_CSS||zf.set(Gc(e),e)},Rf=(e,t=!1)=>({}).GUI_DID_OUTPUT_CSS?``:`--${{}.GUI_CSS_VARIABLE_PREFIX||``}${qc(e.name,!1)}:${!t&&typeof e.val==`number`?`${e.val}px`:e.val}`,zf=new Map,Bf=0,Vf=[],Hf=e=>{if(zf.has(e))return zf.get(e);let t=`t${Bf++}`,n={val:e,name:t,variable:`var(--${t})`};return zf.set(e,n),Vf.push(n),n},Uf=1e4,Wf=[],Gf=new Map,Kf=e=>{if(Gf.has(e))return Gf.get(e);let t=`t${Uf++}`,n={val:e,name:t,variable:`var(--${t})`};return Gf.set(e,n),Wf.push(n),n},qf=[`dark`,`light`],Jf=[`light`,`dark`];function Yf(e){if(!{}.GUI_DID_OUTPUT_CSS&&(!{}.GUI_DOES_SSR_CSS||{}.GUI_DOES_SSR_CSS===`mutates-themes`||{}.GUI_DOES_SSR_CSS===`false`)){let t=[],{config:n,themeName:r,theme:i,names:a}=e,o=e.hasDarkLight??(n.themes&&(`light`in n.themes||`dark`in n.themes)),s=``,c=e.useMutatedVariables?Kf:Hf;for(let e in i){let t=i[e],n=c(t.val).variable;s+=`--${{}.GUI_CSS_VARIABLE_PREFIX||``}${ac(e,40)}:${n};`}let l=r===`dark`,u=r===`light`,d=a.map(e=>`.t_${e}`),f=new Set(l||u?d:[]);if(o)for(let e of a){let t=l||e.startsWith(`dark_`),n=!t&&(u||e.startsWith(`light_`));if(!(t||n)){f.add(`.t_${e}`);continue}let r=`.t_${e.replace(/^(dark|light)_/,``)}`,[i,a]=t?qf:Jf;for(let e=0;e<3;e++){let t=e%2==1;if(t&&e<3)continue;let n=Array(e+1).fill(0).map((e,t)=>`.t_${t%2==0?i:a}`),o=n.length>1?n.slice(1):n;if(t){let[e,t,...n]=o;o=[t,...n,t]}let s=r===o[o.length-1]?``:r,c=o.join(` `);f.add(`${c} ${s}`)}}let p=[...f].sort(wd),m=`${p.map(e=>{let t=Qo(`addThemeClassName`);return!Qf(e)||t!==`html`&&t!==`body`?`:root ${e}`:`${t===`body`?`body`:`:root`}${e}`}).join(`, `)+`, .tm_xxt`} {${s}}`;if(t.push(m),Qo(`shouldAddPrefersColorThemes`)){let e=r.startsWith(`dark`),n=e?`dark`:`light`,a=p.map(t=>{if(t==Xf||t===Zf)return`:root`;if(!(e&&t.startsWith(Zf)||!e&&t.startsWith(Xf)))return t.replace(/^\.t_(dark|light) /,``).trim()}).filter(Boolean).join(`, `),o=!r.includes(`_`),c=``;if(o){let e=i.background?`background:${zc(i.background)};`:``,t=i.color?`color:${zc(i.color)}`:``;c=e||t?`body{${e}${t}}\n `:``}let l=`${a} {${s}}`,u=`@media(prefers-color-scheme:${n}){
13
- ${c}${l}
14
- }`;t.push(u)}let h=Qo(`selectionStyles`);if(h){let e=h(i);if(e){let n=d.map(e=>`${e} ::selection`).join(`, `),r=Object.entries(e).flatMap(([e,t])=>t?`${e===`backgroundColor`?`background`:e}:${zc(t)}`:[]).join(`;`);if(r){let e=`${n}{${r}}`;t.push(e)}}}return t}return[]}var Xf=`.t_dark`,Zf=`.t_light`,Qf=e=>e===Xf||e===Zf||e.startsWith(`.t_dark `)||e.startsWith(`.t_light `),$f={};function ep(e){for(let{names:t,theme:n}of e)for(let e of t)$f[e]=n;let t={};for(let{names:n,theme:r}of e)for(let e of n)t[e]=tp(e,r);return t}function tp(e,t){let n={},r=[],i=e.split(`_`).slice(0,-1).map(e=>(r.push(e),r.join(`_`)));for(let e of i)Object.assign(n,$f[e]);return Object.assign(n,t),n}function np(e,t){let n=e[t];Bc(n)?n.name!==t&&(e[t]=Rc({key:n.name,name:t,val:n.val})):e[t]=Rc({key:t,name:t,val:n})}var rp=[`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`],ip=(e,t,n)=>{if(typeof e==`string`)return e;let r=Object.keys(e),i=e[r[0]];return Object.fromEntries([...new Set([...t,...r])].map(t=>{let r=e[t]??n??i;return i=r,n=r,[t,r]}))},ap=e=>{let t=Object.keys(e.size||{}),n=Object.fromEntries(Object.entries(e).map(([n,r])=>[n,ip(r,n===`face`?rp:t,n===`face`?{normal:e.family}:void 0)]));return Object.freeze(n)},op=new WeakMap,sp=(e,t=``,n=!1)=>{if(op.has(e))return e;let r={},i=0;for(let n in e){i++;let a=e[n],o=n[0]===`$`,s=o?n:`$${n}`,c=o?s.slice(1):n;if(Bc(a)){r[c]=a;continue}let l=ac(c,1e3),u=t&&t!==`t-color`?`${t}-${l}`:`c-${l}`;if(a&&typeof a==`object`&&`needsPx`in a&&`val`in a){let e=Rc({val:a.val,name:u,key:s});e.needsPx=a.needsPx,r[c]=e;continue}if(a&&typeof a==`object`){r[c]=sp(e[c],u,!1);continue}r[c]=Bc(a)?a:Rc({val:a,name:u,key:s})}return op.set(r,!0),r},cp=e=>{console.warn(`No animation driver configured. To use ${e}, you must pass \`animations\` to createGui. See: https://hanzogui.dev/docs/core/animations`)},lp={isReactNative:!1,inputStyle:`css`,outputStyle:`css`,isStub:!0,animations:{},useAnimations:()=>cp(`animations`),usePresence:()=>cp(`usePresence`),ResetPresence:()=>cp(`ResetPresence`),useAnimatedNumber:()=>cp(`useAnimatedNumber`),useAnimatedNumberStyle:()=>cp(`useAnimatedNumberStyle`),useAnimatedNumbersStyle:()=>cp(`useAnimatedNumbersStyle`),useAnimatedNumberReaction:()=>cp(`useAnimatedNumberReaction`)};function up(e,t=`$true`){let n=[`font-family: var(--f-family)`],r=e=>{let n=e?.[t];if(Bc(n))return Kc(n)},i=r(e.letterSpacing);i&&n.push(`letter-spacing: ${i}`);let a=r(e.lineHeight);a&&n.push(`line-height: ${a}`);let o=r(e.style);o&&n.push(`font-style: ${o}`);let s=r(e.weight);return s&&n.push(`font-weight: ${s}`),n}function dp(e,t){if(!{}.GUI_DID_OUTPUT_CSS){let n=[],r=Object.keys(e).sort();for(let i of r){let r=Object.keys(e[i]).sort();for(let a of r){let r=e[i][a];{Lf(r);let e=r.needsPx===!0,a=t(i),o=!(e||a);n.push(Rf(r,o))}}}return n}return[]}function fp(e,t){if(!{}.GUI_DID_OUTPUT_CSS){let n={};if(!e)return n;let r=Object.keys(e).sort();for(let i of r){let r=e[i],[a,o]=i.includes(`_`)?i.split(`_`):[i],s=t(r);n[i]={name:a.slice(1),declarations:s,language:o,fontParsed:r}}return n}return{}}function pp(e,t,n=`$true`){if(!{}.GUI_DID_OUTPUT_CSS){let r=[];function i(e,t=``){return`:root${t} { ${[...e].join(`; `)}\n}`}e.length&&r.push(i(e));let a=[],o=Object.keys(t).sort();for(let e of o){let{name:n,declarations:o,language:s=`default`}=t[e],c=`.font_${n}`;a.push(c);let l=`:root .t_lang-${n}-${s} ${c}`,u=i(o,s==="default"?` ${c}, ${l}`:l);r.push(u)}if(a.length){let e=t[o[0]];if(e?.fontParsed){let t=up(e.fontParsed,n),i=[...a,`.is_View`].join(`, `);r.push(`${i} {${t.join(`; `)}}`)}}return r}return[]}function mp(e,t){if(!{}.GUI_DID_OUTPUT_CSS){let n=[];for(let{names:r,theme:i}of e){let e=Yf({config:t,themeName:r[0],names:r,theme:i});n=[...n,...e]}return n}return[]}function hp(e,t={},n){if(!{}.GUI_DID_OUTPUT_CSS){let{separator:r=`
15
- `,sinceLastCall:i,exclude:a}=t;if(i&&n.value>=0){let e=gu(),t=e.slice(n.value);return n.value=e.length,t.join(r)}n.value=0;let o=gu().join(r);if(a===`design-system`)return o;let s=a?``:e.getThemeRulesSets().join(r);return`${`._ovs-contain {overscroll-behavior:contain;}
16
- .t_unmounted .is_View, .t_unmounted .is_Text { transition: none !important; }
17
- .is_View { display: flex; align-items: stretch; flex-direction: column; flex-basis: auto; box-sizing: border-box; min-height: 0; min-width: 0; flex-shrink: 0; }
18
- .is_Text { display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0; }
19
- @scope (.is_Text) to (.is_View) { .is_Text { white-space: inherit; word-wrap: inherit; } }
20
- ._dsp_contents {display:contents;}
21
- ._no_backdrop::backdrop {display: none;}
22
- .is_Input::selection, .is_TextArea::selection {background-color: var(--t_selectionColor);}
23
- .is_Input::placeholder, .is_TextArea::placeholder {color: var(--t_placeholderColor);}
24
- :root ._pe-boxonly>* {pointer-events:none;}
25
- :root ._pe-boxnone>* {pointer-events:auto;}
26
- ._hsb-x::-webkit-scrollbar:horizontal { display: none !important; }
27
- ._hsb-y::-webkit-scrollbar:vertical { display: none !important; }
28
- ._hsb-x { scrollbar-width: none !important; }
29
- ._hsb-y { scrollbar-width: none !important; }
30
- ${Vf.length?`:root{${Vf.map(e=>`--${e.name}:${e.val}`).join(`;`)}}`:``}
31
- ${e.cssRuleSets.join(r)}`}
32
- ${s}
33
- ${o}`}return``}function gp(e){let t={};for(let n in e){let r=e[n];if(n===`family`||n===`face`)t[n]=r;else{t[n]={};for(let e in r){let i=r[e];i.val?.[0]===`$`&&(i=i.val),t[n][`$${e}`]=i}}}return t}function _p(e){if(!{}.GUI_DID_OUTPUT_CSS){let t=[];for(let n in e)if(n!==`face`){if(n===`family`){let r=e[n];Lf(r),t.push(Rf(r))}else for(let r in e[n])if(typeof e[n][r]!=`string`){let i=e[n][r];Lf(i),t.push(Rf(i))}}return t}return[]}function vp(e){return new Set([`size`,`space`,`radius`]).has(e)}function yp(e){es(e),Ls(e)}function bp(e){let t=ns();t&&(e={...t,...e});let n={},r=sp(e.tokens||{});if(e.tokens){let e={};for(let t in r){n[t]={},e[t]={};let i=r[t];for(let r in i){let a=i[r],o=`$${r}`;n[t][o]=a,e[t][o]=a,e[t][r]=a}}is(e)}let i;if(e.themes){let t=Object.keys(e.themes).length===0;t&&!{}.GUI_DID_OUTPUT_CSS&&(i=vu(t,n))}let a=null,o;if(e.fonts){let t=Object.fromEntries(Object.entries(e.fonts).map(([e,t])=>[e,sp(t,`f`,!0)]));o=(()=>{let e={};for(let n in t){let r=t[n],i=gp(r);e[`$${n}`]=i,!a&&i.size&&(a=new Set(Object.keys(i.size)))}return e})()}let s={},c=(()=>{let t=Object.keys(r).sort();for(let e of t){let t=Object.keys(r[e]).sort();for(let n of t){let t=r[e][n];s[`$${e}.${n}`]=t}}let n=pp(dp(r,vp),fp(o,_p)),a=e.themes,c=i??xp(a,r.color);return{themes:ep(c),cssRuleSets:n,getThemeRulesSets(){return mp(c,e)}}})(),l=e.shorthands||{},u={...Sp,...l},d={value:-1},f=(e={})=>hp(c,e,d),p=e=>f({...e,sinceLastCall:!0}),m=e.settings?.defaultFont,h=(()=>{let e=m;return e?.[0]===`$`&&(e=e.slice(1)),e})(),g=e.settings?.defaultPosition||`static`,_=e.defaultProps||{};g!==`static`&&(_.View={..._.View,position:g});let v=h?`$${h}`:``,y=e.animations,b=Wl(y),x=b!==null&&b!==y,S=b??y,C=x?y:void 0,w={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],media:{},...e,animations:S??lp,animationDrivers:C,defaultProps:_,settings:{webContainerType:`inline-size`,...e.settings},tokens:r,shorthands:u,userShorthands:l,inverseShorthands:u?Object.fromEntries(Object.entries(u).map(([e,t])=>[t,e])):{},themes:c.themes,fontsParsed:o||{},themeConfig:c,tokensParsed:n,parsed:!0,getNewCSS:p,getCSS:f,defaultFont:h,fontSizeTokens:a||new Set,specificTokens:s,defaultFontToken:v};return yp(w),w}function xp(e,t){let n=[],r=new Map,i=Object.keys(e).sort();for(let a of i){let i=a.startsWith(`dark`)?`dark`:a.startsWith(`light`)?`light`:``,o=e[a],s=i+JSON.stringify(o);if(r.has(s)){r.get(s).names.push(a);continue}let c={...t,...o};for(let e in c)np(c,e);let l={names:[a],theme:c};n.push(l),r.set(s,l)}return n}var Sp={bblr:`borderBottomLeftRadius`,bbrr:`borderBottomRightRadius`,bbs:`borderBottomStyle`,bls:`borderLeftStyle`,brc:`borderRightColor`,brs:`borderRightStyle`,brw:`borderRightWidth`,bs:`borderStyle`,btc:`borderTopColor`,btlr:`borderTopLeftRadius`,btrr:`borderTopRightRadius`,bts:`borderTopStyle`,btw:`borderTopWidth`,bw:`borderWidth`,bxs:`boxSizing`,bxsh:`boxShadow`,col:`color`,cur:`cursor`,dsp:`display`,fb:`flexBasis`,fd:`flexDirection`,ff:`fontFamily`,fs:`fontSize`,fst:`fontStyle`,fw:`fontWeight`,fwr:`flexWrap`,lh:`lineHeight`,ls:`letterSpacing`,o:`opacity`,ov:`overflow`,ox:`overflowX`,oy:`overflowY`,pe:`pointerEvents`,pos:`position`,td:`textDecorationLine`,tr:`transform`,tt:`textTransform`,va:`verticalAlign`,wb:`wordBreak`,ws:`whiteSpace`,ww:`wordWrap`},Cp=new WeakMap;function wp(e){if(e)return e.getSize&&e.prefetch?Tp.Image:e.displayName===`Text`&&e.render?Tp.Text:e.render&&(e.displayName===`ScrollView`||e.displayName===`View`)?Tp.default:e.State?.blurTextInput?Tp.TextInput:Cp.get(e)}var Tp={Image:{isReactNative:!0,inlineProps:new Set([`src`,`width`,`height`])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}},Ep=(e,t,n=0)=>{let r={};for(let i in t){let a=e?.[i],o=t[i];r[i]=!a||typeof o==`function`?o:a&&!o?a[i]:n===0?Ep(a,o,n+1):{...a,...o}}return{...e,...r}},Dp=new Set(`a.abbr.b.bdi.bdo.cite.code.data.del.dfn.em.i.ins.kbd.label.mark.q.s.samp.small.span.strong.sub.sup.time.u.var`.split(`.`));function Op(e,t){let n=Dp.has(e),{variants:r,name:i,defaultVariants:a,context:o,...s}=t||{},c={Component:e,variants:r,defaultProps:s,defaultVariants:a,componentName:i,isReactNative:!1,isText:n,acceptsClassName:!0,context:o};return(s.children||o)&&(c.neverFlatten=!0),Mf(c)}function kp(e,t,n){let r=e.staticConfig,i=!!r&&!(r.isReactNative||r.isHOC),a=r?.isHOC&&!r?.isStyledHOC||i?e:r?.Component||e,o=r?void 0:wp(a),s=!!(o||n?.isReactNative||r?.isReactNative),c=Mf((()=>{let{variants:e,name:c,defaultVariants:l,context:u,...d}=t||{},f,p;if(r&&(!r.isHOC||r.isStyledHOC)){let t=r.defaultProps;for(let e in t){let n=t[e];r.defaultVariants&&e in r.defaultVariants&&(!l||!(e in l))&&(f||={},f[e]=n),!(e in d)&&(!l||!(e in l))&&(p||={},p[e]=t[e])}r.variants&&(e=Ep(r.variants,e))}(p||l||f)&&(d={...p,...f,...d,...l}),r?.isHOC&&c&&(d.componentName=c);let m=!!(n?.isText||r?.isText),h=n?.acceptsClassName??(i||s||r?.isHOC&&r?.acceptsClassName),g={...r,...n,...!i&&{Component:a},variants:e,defaultProps:d,defaultVariants:l,componentName:c||r?.componentName,isReactNative:s,isText:m,acceptsClassName:h,context:u,...o,isStyledHOC:!!r?.isHOC,parentStaticConfig:r};return(d.children||!h||u)&&(g.neverFlatten=!0),g})()||{});for(let t in e)t!==`propTypes`&&(t in c||(c[t]=e[t]));return c}var z=new Proxy(kp,{get(e,t){return t in e?e[t]:e=>Op(t,e)}}),Ap=()=>rf()?Uo:!1,jp=Mf({acceptsClassName:!0,validStyles:Pc});function Mp(e,t){let[n,r]=Np(e,{...t,noExpand:!0,noNormalize:!0,resolveValues:`none`});return{...n,...r}}function Np(e,t){let n=t?.forComponent?.staticConfig??jp.staticConfig,[r,i]=kl({componentName:n.componentName,name:`theme`in e?e.theme:void 0,needsUpdate(){return!0}}),a=b.useContext(No),o=b.useContext(Fo),{state:s,disabled:c,setStateShallow:l}=yf(e,a.animationDriver,n,ts()),u=t?.noMedia?fs:Zs(),d=Pd(e,n,r,i?.name||``,s,{isAnimated:!1,mediaState:u,noSkip:!0,noMergeStyle:!0,noClass:!0,resolveValues:`auto`,...t},null,a,o),{mediaGroups:f,pseudoGroups:p}=d||{};return Ho(()=>{if(!c){if(s.unmounted){l({unmounted:!1});return}if(o)return Qd({groupContext:o,setStateShallow:l,mediaGroups:f,pseudoGroups:p})}},[c,o,p?Object.keys([...p]).join(``):0,f?Object.keys([...f]).join(``):0]),[d?.viewProps||{},d?.style||{},r,fs]}var Pp={forceClassName:!0,deopt:!0,needsUpdate:()=>!0},Fp={current:new Set([``])};function Ip(){return hl(Pp,!1,Fp)?.name||``}var Lp=``;function Rp({children:e,theme:t,isRootRoot:n,passThrough:r,style:i}){let[a,o]=b.useState(!n);if(b.useEffect(()=>{a||o(!0)},[]),!Lp){let e=ts().defaultFont;e&&(Lp=`font_${e}`)}let s=(0,R.jsx)(`span`,{style:i,className:`_dsp_contents ${a?``:`t_unmounted`} ${Lp}`,children:e});return n?s:(0,R.jsx)(of,{passThrough:r,contain:!0,forceClassName:!0,name:t,children:s})}var zp=e=>{"use no memo";let t=Qo(`addThemeClassName`);Ho(()=>{if(t===!1)return;let n=`t_${e.defaultTheme}`,r=Qo(`addThemeClassName`)===`html`?document.documentElement:document.body;return r.classList.add(n),()=>{r.classList.remove(n)}},[e.defaultTheme,t]);let n=t===void 0;return(0,R.jsx)(of,{className:e.className,name:e.defaultTheme,forceClassName:n,_isRoot:b.useId,children:e.children})},Bp,Vp;function Hp(e){return e!==Vp&&(Vp=e,Bp=e?.themes?Object.keys(e.themes)[0]:void 0),Bp}function Up({children:e,disableInjectCSS:t,config:n,className:r,defaultTheme:i,reset:a,insets:o}){let s=i||Hp(n)||`light`;Ho(()=>{ju(),Hs()},[]);let c=b.useMemo(()=>o,[o?.top,o?.right,o?.bottom,o?.left]),l=b.useMemo(()=>Wl(n?.animations),[n?.animations]);(0,b.useEffect)(()=>{l?.onMount?.()},[]);let u=(0,R.jsx)(No.Provider,{animationDriver:l,insets:c,children:(0,R.jsx)(zp,{defaultTheme:s,reset:a,className:r,children:(0,R.jsx)(Rp,{theme:s,isRootRoot:!0,children:e})})});return Qo(`disableSSR`)&&(u=(0,R.jsx)(tf,{enabled:!0,children:u})),(0,R.jsxs)(R.Fragment,{children:[u,n&&!t&&(0,R.jsx)(`style`,{precedence:`default`,href:`hanzogui-css`,children:n.getCSS()},`hanzogui-css`)]})}var Wp={maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},Gp=Mf({componentName:`Text`,acceptsClassName:!0,isText:!0,defaultProps:void 0,inlineWhenUnflattened:new Set([`fontFamily`]),inlineProps:new Set([`maxFontSizeMultiplier`]),variants:{numberOfLines:{1:Wp,":number":e=>e>=1?{maxWidth:`100%`,WebkitLineClamp:e,WebkitBoxOrient:`vertical`,display:`-webkit-box`,overflow:`hidden`}:null},ellipsis:{true:Wp}},validStyles:{...Pc,...Ac}}),Kp=b.useInsertionEffect||b.useLayoutEffect;function qp(e,t,n){let r=b.useRef(t??e);return Kp(()=>{r.current=e}),b.useCallback(n?(...e)=>r.current?.apply(null,e):()=>r.current,[])}function Jp(e){return qp(e,Yp,!0)}var Yp=()=>{throw Error(`Cannot call an event handler while rendering.`)};function Xp(e){if(typeof document>`u`)return b.useMemo(()=>e(),[]);let t=b.useRef(void 0);return t.current||={v:e()},t.current.v}var Zp=typeof window>`u`,Qp=()=>{};function $p(){return Zp?Qp:b.useReducer(e=>Math.random(),0)[1]}var eee=b.createContext({}),em=b.createContext(null),tm=e=>{let t=b.useContext(em);return(0,R.jsx)(em.Provider,{value:e.disable?t:null,children:e.children})};function nm(){let e=b.useContext(em);if(!e)return[!0,null,e];let{id:t,isPresent:n,onExitComplete:r,register:i}=e;return b.useEffect(()=>i(t),[]),!n&&r?[!1,()=>r?.(t),e]:[!0,void 0,e]}var rm=b.memo(({children:e,initial:t,isPresent:n,onExitComplete:r,exitVariant:i,enterVariant:a,enterExitVariant:o,presenceAffectsLayout:s,custom:c})=>{let l=Xp(im),u=(0,b.useId)()||``,d=b.useMemo(()=>({id:u,initial:t,isPresent:n,custom:c,exitVariant:i,enterVariant:a,enterExitVariant:o,onExitComplete:()=>{l.set(u,!0);for(let e of l.values())if(!e)return;r?.()},register:()=>(l.set(u,!1),()=>l.delete(u))}),s?void 0:[n,i,a]);return b.useMemo(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),b.useEffect(()=>{!n&&!l.size&&r?.()},[n]),(0,R.jsx)(em.Provider,{value:d,children:e})});function im(){return new Map}var am=e=>e.key||(()=>{let t=e.type,n=t.displayName||t.name||``;return t&&typeof t==`object`&&`staticConfig`in t&&t.staticConfig.componentName||n})();function om(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}var sm=({children:e,enterVariant:t,exitVariant:n,enterExitVariant:r,initial:i=!0,onExitComplete:a,exitBeforeEnter:o,mode:s,presenceAffectsLayout:c=!0,custom:l,passThrough:u})=>{let d=s??(o?`wait`:`sync`),f=(0,b.useMemo)(()=>om(e),[e]),p=f.map(am),m=(0,b.useRef)(!0),h=(0,b.useRef)(new Map),g=(0,b.useRef)(f),_=Xp(()=>new Map),[v,y]=(0,b.useState)(f),[x,S]=(0,b.useState)(f),C=(0,b.useContext)(eee).forceRender??$p();if(u)return(0,R.jsx)(R.Fragment,{children:e});if((0,b.useInsertionEffect)(()=>{m.current=!1,g.current=f;for(let e=0;e<x.length;e++){let t=am(x[e]);p.includes(t)?(_.delete(t),h.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,p.length,p.join(`-`)]),f!==v){let e=[...f];for(let t=0;t<x.length;t++){let n=x[t],r=am(n);p.includes(r)||(e.splice(t,0,n),h.current.has(r)||h.current.set(r,l))}let t=x.filter(e=>!p.includes(am(e)));return d===`wait`&&t.length&&(e=t),S(om(e)),y(f),null}return(0,R.jsx)(R.Fragment,{children:x.map(e=>{let o=am(e),s=f===x||p.includes(o);return(0,R.jsx)(rm,{isPresent:s,initial:!m.current||i?void 0:!1,custom:s?l:h.current.get(o)??l,presenceAffectsLayout:c,enterExitVariant:r,enterVariant:t,exitVariant:n,onExitComplete:s?void 0:()=>{if(_.has(o))_.set(o,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(C?.(),S(g.current),a?.())},children:e},o)})})};sm.displayName=`AnimatePresence`;var cm=e=>{(0,b.startTransition)(e)},lm=e=>e();function um({prop:e,defaultProp:t,onChange:n,strategy:r=`prop-wins`,preventUpdate:i,transition:a}){let[o,s]=b.useState(e??t),c=b.useRef(o),l=r===`prop-wins`&&e!==void 0,u=l?e:o,d=Jp(n||dm),f=a?cm:lm;return b.useEffect(()=>{e!==void 0&&(c.current=e,f(()=>{s(e)}))},[e]),b.useEffect(()=>{l||o!==c.current&&(c.current=o,d(o))},[d,o,l]),[u,Jp(e=>{if(!i){if(l){let t=typeof e==`function`?e(c.current):e;d(t)}else f(()=>{s(e)})}})]}var dm=()=>{};globalThis.matchMedia;var fm=new WeakMap,pm=new WeakMap,mm=new Set,hm=new WeakMap,gm=()=>globalThis.__GUI_ONLAYOUT_PRETRANSFORM===!0||{}.GUI_ONLAYOUT_PRETRANSFORM===`1`,_m={},vm=(0,b.createContext)(``),ym=typeof IntersectionObserver<`u`,bm=({disable:e,children:t})=>{let n=(0,b.useId)();return Ho(()=>{_m[n]=e},[e,n]),(0,R.jsx)(vm.Provider,{value:n,children:t})},xm=null,Sm=`async`,Cm=new WeakMap,wm=!0,Tm=new Map;function tee(){wm&&(wm=!1,Tm&&(Tm.forEach(e=>e()),Tm.clear()))}function nee(){ym&&!xm&&(xm=new IntersectionObserver(e=>{for(let t=0;t<e.length;t++){let n=e[t],r=n.target;hm.get(r)!==n.isIntersecting&&hm.set(r,n.isIntersecting)}},{threshold:0}))}function Em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}if(ym){let e=new WeakMap,t=null,n=null,r=0,i=0;function a(){return t||(t=new IntersectionObserver(t=>{i=Math.round(performance.now()-r);for(let n=0;n<t.length;n++)e.set(t[n].target,t[n].boundingClientRect);n&&=(n(!0),null)},{threshold:0}),t)}async function o(t){if(typeof fm.get(t)!=`function`)return;let n=t.parentElement;if(!n)return;let r,i;if(Sm===`async`){if(r=e.get(t),i=e.get(n),!r||!i)return}else r=t.getBoundingClientRect(),i=n.getBoundingClientRect();iee(t,n,r,i)}let s=typeof requestAnimationFrame<`u`?requestAnimationFrame:void 0,c={}.GUI_LAYOUT_FRAME_SKIP,l=c?+c:10,u=l,d=0;async function f(){if(d++%u!==0){s?s(f):setTimeout(f,16);return}if(d>=2**53-1&&(d=0),Sm!==`off`){let e=[],t=new Set;for(let n of mm){let r=n.parentElement;if(!(r instanceof HTMLElement)){Am(n);continue}let i=pm.get(n);i&&_m[i]===!0||hm.get(n)!==!1&&(e.push(n),t.add(r))}if(e.length>0){let s=a();r=performance.now();for(let t=0;t<e.length;t++)s.observe(e[t]);for(let e of t)s.observe(e);await new Promise(e=>{n=e});for(let t=0;t<e.length;t++)s.unobserve(e[t]);for(let e of t)s.unobserve(e);i>50?u=Math.min(u+2,20):i<20&&(u=Math.max(u-1,l));for(let t=0;t<e.length;t++)o(e[t])}}s?s(f):setTimeout(f,16)}f()}var Dm=(e,t,n)=>({nativeEvent:{layout:Om(e,t,n),target:e},timeStamp:Date.now()}),ree=e=>({width:e.offsetWidth,height:e.offsetHeight}),Om=(e,t,n)=>{let{left:r,top:i}=e,a=r-t.left,o=i-t.top,{width:s,height:c}=gm()&&n?ree(n):{width:e.width,height:e.height};return{x:a,y:o,width:s,height:c,pageX:e.left,pageY:e.top}};function iee(e,t,n,r){let i=fm.get(e);if(typeof i!=`function`)return;let a=Cm.get(e),o=Cm.get(t),s=!a||!Em(a,n),c=!o||!Em(o,r);if(!s&&!c)return;Cm.set(e,n),Cm.set(t,r);let l=Dm(n,r,e);wm?Tm.set(e,()=>i(l)):i(l)}function km(e,t){mm.add(e),t?pm.set(e,t):pm.delete(e),nee(),xm&&(xm.observe(e),hm.set(e,!0))}function aee(e,t,n){return fm.set(e,t),km(e,n),()=>Am(e)}function Am(e){mm.delete(e),fm.delete(e),pm.delete(e),Cm.delete(e),hm.delete(e),xm&&xm.unobserve(e)}var jm=new WeakMap;function Mm(e){let t=fm.get(e);if(typeof t!=`function`)return;let n=e.parentElement;if(!n)return;let r=e.getBoundingClientRect(),i=n.getBoundingClientRect();Cm.set(e,r),Cm.set(n,i),t(Dm(r,i,e))}function oee(e,t){let n=(0,b.useContext)(vm),r=Nm(e.current?.host);r&&t&&(fm.set(r,t),pm.set(r,n)),Ho(()=>{if(!t)return;let r=Nm(e.current?.host),i=jm.get(e);r!==i&&(i&&Am(i),jm.set(e,r),r&&(fm.set(r,t),km(r,n),Mm(r)))}),Ho(()=>{if(!t)return;let r=e.current?.host;if(r)return fm.set(r,t),km(r,n),()=>{Am(r);let t=jm.get(e);t&&t!==r&&Am(t),jm.delete(e)}},[e,!!t])}function Nm(e){if(!(typeof HTMLElement>`u`))return e instanceof HTMLElement?e:void 0}var Pm=e=>new Promise(t=>{if(!e||e.nodeType!==1)return t(!1);let n=new IntersectionObserver(e=>(n.disconnect(),t(e[0].boundingClientRect)),{threshold:0});n.observe(e)}),Fm=async(e,t)=>{let n=t||e?.parentElement;if(n instanceof HTMLElement){let[t,r]=await Promise.all([Pm(e),Pm(n)]);if(r&&t)return Om(t,r,e)}return null},Im=async(e,t)=>{let n=await Fm(e,e.parentNode instanceof HTMLElement?e.parentNode:null);return n&&t?.(n.x,n.y,n.width,n.height,n.pageX,n.pageY),n};function see(e){return t=>Im(e,t)}var cee=async(e,t)=>{let n=await Fm(e,null);return n&&t?.(n.pageX,n.pageY,n.width,n.height),n},lee=e=>t=>cee(e,t),uee=async(e,t,n)=>{let r=await Fm(e,t);return r&&n?.(r.x,r.y,r.width,r.height,r.pageX,r.pageY),r};function dee(e){return(t,n)=>uee(e,t,n)}function fee(){return null}var pee=e=>(Ho(()=>{tee()},[]),(0,R.jsx)(Up,{...e})),mee=e=>bp(e);Xd({getBaseViews:fee,setElementProps:e=>{e&&!e.measure&&(e.measure||=see(e),e.measureInWindow||=lee(e),e.measureLayout||=dee(e))},usePropsTransform(e,t,n,r){{let i=typeof e==`string`,{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:o,onResponderEnd:s,onResponderGrant:c,onResponderMove:l,onResponderReject:u,onResponderRelease:d,onResponderStart:f,onResponderTerminate:p,onResponderTerminationRequest:m,onScrollShouldSetResponder:h,onScrollShouldSetResponderCapture:g,onSelectionChangeShouldSetResponder:_,onSelectionChangeShouldSetResponderCapture:v,onStartShouldSetResponder:y,onStartShouldSetResponderCapture:b,collapsable:x,focusable:S,accessible:C,accessibilityDisabled:w,onLayout:T,hrefAttrs:E,...D}=t;if((r||i)&&oee(n,i?T:void 0),i){if(D.href&&E){let{download:e,rel:t,target:n}=E;e!=null&&(D.download=e),t&&(D.rel=t),typeof n==`string`&&(D.target=n.charAt(0)===`_`?n:`_${n}`)}return D}}}});var Lm=jp,Rm=Gp;function zm(e){let{Provider:t,useStyledContext:n}=Mo({collectionRef:{current:void 0},itemMap:new Map},`Toast`),r=e=>{let{scope:n,children:r}=e,i=b.useRef(void 0),a=b.useRef(new Map).current;return(0,R.jsx)(t,{scope:n,itemMap:a,collectionRef:i,children:r})};r.displayName=`CollectionProvider`;let i=e+`CollectionSlot`,a=b.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=Ml(t,n(r).collectionRef);return(0,R.jsx)(Sf,{ref:a,children:i})});a.displayName=i;let o=e+`CollectionItemSlot`,s=`data-collection-item`,c=b.forwardRef((e,t)=>{let{scope:r,children:i,...a}=e,o=b.useRef(void 0),c=Ml(t,o),l=n(r);return b.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,R.jsx)(Sf,{[s]:``,ref:c,children:i})});c.displayName=o;function l(e){let t=n(e);return b.useCallback(()=>{let e=t.collectionRef.current;if(!e)return[];let n=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(t.itemMap.values()).sort((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current))},[t.collectionRef,t.itemMap])}return[{Provider:r,Slot:a,ItemSlot:c},l]}var Bm=(e,t)=>{if(!e)return;let{tokens:n}=t,r=n.size[e];return Vm(Bc(r)?+r.val:e,t)},Vm=(e,{theme:t,tokens:n})=>{let r=0;if(e===!0){let e=Gc(n.size.true);r=typeof e==`number`?e:10}else r=+e;if(r===0)return;let[i,a]=[Math.round(r/4+1),Math.round(r/2+2)];return{shadowColor:t.shadowColor,shadowRadius:a,shadowOffset:{height:i,width:0},...Wo?{elevationAndroid:2*i}:{}}},Hm={position:`absolute`,inset:0},Um={fullscreen:{true:Hm},elevation:{"...size":Bm,":number":Bm}},B=z(Lm,{flexDirection:`column`,variants:Um});B.displayName=`YStack`;var V=z(Lm,{flexDirection:`row`,variants:Um});V.displayName=`XStack`;var Wm=z(B,{position:`relative`},{neverFlatten:!0,isZStack:!0});Wm.displayName=`ZStack`;var Gm={true:(e,t)=>Bm(t.props.size,t)},Km=(e,{props:t})=>({borderWidth:typeof e==`number`?e:1,borderColor:`$borderColor`}),qm={borderRadius:1e5,padding:0},Jm={true:(e,{props:t,tokens:n})=>{if(!(`size`in t))return qm;let r=typeof t.size==`number`?t.size:n.size[t.size];return{...qm,width:r,height:r,maxWidth:r,maxHeight:r,minWidth:r,minHeight:r}}},Ym={backgroundColor:`transparent`,borderColor:`transparent`,shadowColor:`transparent`,hoverStyle:{borderColor:`transparent`}},Xm={circular:Jm,elevate:Gm,bordered:{true:Km},transparent:{true:{backgroundColor:`transparent`}},chromeless:{true:Ym,all:{...Ym,hoverStyle:Ym,pressStyle:Ym,focusStyle:Ym}}},Zm=z(B,{variants:Xm}),Qm={shift:0,bounds:[0]},$m=(e,t)=>ah(`size`,e,t),eh=(e,t)=>ah(`space`,e,t),th={},nh={},rh={},ih={},ah=(e,t,n=Qm)=>{let r=as({prefixed:!0})[e];if(!(e in th)){rh[e]=[],th[e]=[],ih[e]=[],nh[e]=[];let t=Object.keys(r).map(e=>r[e]).sort((e,t)=>e.val-t.val);for(let n of t)rh[e].push(n.key),th[e].push(n);let n=t.filter(e=>!e.key.endsWith(`.5`));for(let t of n)ih[e].push(t.key),nh[e].push(t)}let i=typeof t==`string`,a=(n.excludeHalfSteps?i?ih:nh:i?rh:th)[e],o=n.bounds?.[0]??0,s=n.bounds?.[1]??a.length-1,c=a.indexOf(t),l=n.shift||0;l&&(t===`$true`||Bc(t)&&t.name===`true`)&&(l+=l>0?1:-1);let u=a[Math.min(s,Math.max(o,c+l))];return(typeof u==`string`?r[u]:u)||r.$true},oh=(e,{tokens:t,props:n})=>{if(!e||n.circular)return;if(typeof e==`number`)return{paddingHorizontal:e*.25,height:e,borderRadius:n.circular?1e5:e*.2};let r=eh(e),i=t.radius[e]??t.radius.$true;return{paddingHorizontal:r,height:e,borderRadius:n.circular?1e5:i}},sh=z(Zm,{name:`SizableStack`,variants:{unstyled:{true:{elevate:!1,bordered:!1}},circular:Jm,elevate:Gm,bordered:{true:Km},size:{"...size":(e,t)=>oh(e,t)}}}),ch=b.createContext(!1),lh=(e=`$true`,{font:t,fontFamily:n,props:r})=>{if(!t)return{fontSize:e};let i=e===`$true`?hee(t):e,a={};if(typeof i==`number`)return a.fontSize=i,n&&(a.fontFamily=n),r.fontStyle&&(a.fontStyle=r.fontStyle),r.color&&(a.color=r.color),a;let o=t.size[i],s=t.lineHeight?.[i],c=t.weight?.[i],l=t.letterSpacing?.[i],u=t.transform?.[i],d=r.fontStyle??t.style?.[i],f=r.color??t.color?.[i];return d&&(a.fontStyle=d),u&&(a.textTransform=u),n&&(a.fontFamily=n),c&&(a.fontWeight=c),l&&(a.letterSpacing=l),o&&(a.fontSize=o),s&&(a.lineHeight=s),f&&(a.color=f),a};z(Gp,{name:`SizableText`,fontFamily:`$body`,variants:{size:{"...fontSize":lh}},defaultVariants:{size:`$true`}});var uh=new WeakMap;function hee(e){if(typeof e==`object`&&uh.has(e))return uh.get(e);let t=as(),n=`$true`in e.size?e.size:t?.size;if(!n)return Object.keys(e.size)[3];let r=n.$true,i=r?Object.keys(n).find(e=>e!==`$true`&&n[e].val===r.val):null;return!r||!i?Object.keys(e.size)[3]:(uh.set(e,i),i)}var H=z(Gp,{name:`SizableText`,fontFamily:`$body`,variants:{unstyled:{false:{size:`$true`,color:`$color`}},size:lh},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});H.staticConfig.inlineProps=new Set([...H.staticConfig.inlineProps||[],`maxFontSizeMultiplier`]),H.staticConfig.variants.fontFamily={"...":(e,t)=>{if(e===`inherit`)return{fontFamily:`inherit`};let n=t.props.size,r=t.props.fontSize;return lh(n===`$true`&&r?r:t.props.size||`$true`,t)}};var dh=z(H,{name:`Paragraph`,render:`p`,userSelect:`auto`,color:`$color`,size:`$true`,whiteSpace:`normal`}),fh=z(dh,{render:`span`,name:`Heading`,role:`heading`,fontFamily:`$heading`,size:`$8`,margin:0});z(fh,{name:`H1`,render:`h1`,variants:{unstyled:{false:{size:`$10`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});var gee=z(fh,{name:`H2`,render:`h2`,variants:{unstyled:{false:{size:`$9`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});z(fh,{name:`H3`,render:`h3`,variants:{unstyled:{false:{size:`$8`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),z(fh,{name:`H4`,render:`h4`,variants:{unstyled:{false:{size:`$7`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),z(fh,{name:`H5`,render:`h5`,variants:{unstyled:{false:{size:`$6`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),z(fh,{name:`H6`,render:`h6`,variants:{unstyled:{false:{size:`$5`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});function ph(e,t,n){let{children:r,textProps:i,size:a,noTextWrap:o,color:s,fontFamily:c,fontSize:l,fontWeight:u,letterSpacing:d,textAlign:f,fontStyle:p,ellipsis:m,maxFontSizeMultiplier:h}=t;if(o||!r)return[r];let g={...n};return s&&(g.color=s),c&&(g.fontFamily=c),l&&(g.fontSize=l),u&&(g.fontWeight=u),d&&(g.letterSpacing=d),f&&(g.textAlign=f),a&&(g.size=a),p&&(g.fontStyle=p),m!==void 0&&(g.ellipsis=m),h!=null&&(g.maxFontSizeMultiplier=h),b.Children.toArray(r).map((t,n)=>typeof t==`string`?(0,R.jsx)(e,{...g,...i,children:t},n):t)}var _ee=b.createContext(void 0);function mh(e){let t=b.useContext(_ee);return e||t||`ltr`}var hh=(0,b.createContext)(1),gh=(0,b.createContext)(void 0),_h={},vh={},vee=e=>{if({}.GUI_STACK_Z_INDEX_GLOBAL){let{stackZIndex:t,zIndex:n}=e,r=(0,b.useId)(),i=(0,b.useMemo)(()=>{if(t&&t!==`global`&&n===void 0){let e=Object.values(vh).reduce((e,t)=>Math.max(e,t),0);return Math.max(t===!0?1:t,e+1)}return n??1e3},[t]);return(0,b.useEffect)(()=>{if(typeof t==`number`)return vh[r]=t,()=>{delete vh[r]}},[t]),i}{let{stackZIndex:t,zIndex:n}=e,r=(0,b.useId)(),i=(0,b.useContext)(hh),a=t===`global`?0:i,o=(0,b.useContext)(gh);_h[a]||(_h[a]={});let s=_h[a],c=(0,b.useMemo)(()=>{if(typeof n==`number`)return n;if(t){if(o)return o+1;let e=Object.values(s),n=a*5e3,r=(a+1)*5e3,i=e.filter(e=>e<r),c=i.length>0?Math.max(...i):n,l=c===n?n+1:c+1;return typeof t==`number`?t+l:l}return 1},[a,n,t]);return(0,b.useEffect)(()=>{if(t)return s[r]=c,()=>{delete s[r]}},[c]),c}},yh=({children:e,zIndex:t})=>{let n=(0,b.useContext)(hh),r=(0,R.jsx)(hh.Provider,{value:n+1,children:e});return t!==void 0&&(r=(0,R.jsx)(gh.Provider,{value:t,children:r})),r},yee=e=>({stackZIndex:e.stackZIndex,zIndex:bh(e.zIndex)}),bh=e=>e===void 0?void 0:typeof e==`number`?e:cs(e,`zIndex`),xh=u(_(),1),Sh=b.memo(e=>{let{children:t,passThrough:n,style:r,open:i}=e,a=Ip(),o=rf(),s=vee(yee(e));return n?t:o?(0,xh.createPortal)((0,R.jsx)(Rp,{theme:a,style:{zIndex:s,position:`fixed`,inset:0,contain:`strict`,pointerEvents:i?`auto`:`none`,touchAction:`none`,display:`flex`,...r},children:(0,R.jsx)(gh.Provider,{value:s,children:t})}),globalThis.document?.body):null}),Ch=()=>!1,wh=new Map,Th={},Eh;(function(e){e[e.REGISTER_HOST=0]=`REGISTER_HOST`,e[e.DEREGISTER_HOST=1]=`DEREGISTER_HOST`,e[e.ADD_UPDATE_PORTAL=2]=`ADD_UPDATE_PORTAL`,e[e.REMOVE_PORTAL=3]=`REMOVE_PORTAL`})(Eh||={});var Dh={},Oh=(e,t)=>(t in e||(e[t]=[]),e),kh=(e,t)=>(delete e[t],e),Ah=(e,t,n,r)=>{t in e||(e=Oh(e,t));let i=e[t].findIndex(e=>e.name===n);return i===-1?e[t].push({name:n,node:r}):e[t][i].node=r,e},jh=(e,t,n)=>{if(!(t in e))return e;let r=e[t].findIndex(e=>e.name===n);return r!==-1&&e[t].splice(r,1),e},Mh=(e,t)=>{let{type:n}=t;switch(n){case Eh.REGISTER_HOST:return Oh({...e},t.hostName);case Eh.DEREGISTER_HOST:return kh({...e},t.hostName);case Eh.ADD_UPDATE_PORTAL:return Ah({...e},t.hostName,t.portalName,t.node);case Eh.REMOVE_PORTAL:return jh({...e},t.hostName,t.portalName);default:return e}},Nh=(0,b.createContext)(null),Ph=(0,b.createContext)(null),Fh=(0,b.createContext)(!1),Ih=(0,b.memo)(({rootHostName:e=`root`,shouldAddRootHost:t=!0,children:n})=>{(0,b.useContext)(Fh);let[r,i]=(0,b.useReducer)(Mh,Dh),a=(0,b.useMemo)(()=>e=>{cm(()=>{i(e)})},[i]),o=Fl().state,s=(0,R.jsx)(Fh.Provider,{value:!0,children:(0,R.jsx)(Ph.Provider,{value:a,children:(0,R.jsxs)(Nh.Provider,{value:r,children:[n,t&&(0,R.jsx)(Lh,{name:e})]})})});return o.type===`teleport`?(0,R.jsx)(Rl,{children:s}):s});Ih.displayName=`PortalProvider`;var Lh=(0,b.memo)(function(e){return(0,R.jsx)(Rh,{...e})});function Rh(e){return Ho(()=>()=>{wh.delete(e.name)},[e.name]),(0,R.jsx)(`div`,{style:{display:`contents`},ref:t=>{t&&(wh.set(e.name,t),Th[e.name]?.forEach(e=>e(t)))}})}var zh=e=>{let t=Ip(),n=wh.get(e.hostName||``),[r,i]=(0,b.useState)(n);if(Ho(()=>{var t;if(!e.hostName)return;let n=e=>{i(e)};Th[t=e.hostName]||(Th[t]=new Set),Th[e.hostName].add(n);let a=wh.get(e.hostName);return a&&a!==r&&i(a),()=>{Th[e.hostName]?.delete(n)}},[e.hostName]),Ho(()=>{n&&n!==r&&i(n)},[n,r]),e.passThrough)return e.children;let a=r?.isConnected?r:null;return a?(0,xh.createPortal)((0,R.jsx)(Rp,{theme:t,children:e.children}),a):null};function Bh(){let e=null,t=new Set;return{set(n){e=n;for(let e of t)e()},get:()=>e,subscribe(e){return t.add(e),()=>t.delete(e)}}}var Vh=(0,b.createContext)(null),Hh=Mo({Contents:null,scopeName:``,portalName:``,platform:null,setPlatform:e=>{},when:null,setWhen:()=>{}}),Uh=(0,b.createContext)(``),Wh=({children:e,...t})=>{let n=t.scopeName||``,r=(0,b.useContext)(Uh);return(0,R.jsx)(Uh.Provider,{value:r||t.lastScope||``,children:(0,R.jsx)(Hh.Provider,{scope:n,lastScope:r||t.lastScope,...t,children:e})})},Gh=e=>{let t=(0,b.useContext)(Uh),n=e??t;return Hh.useStyledContext(n)},Kh=new Map,qh=({children:e,Contents:t,scope:n,portal:r})=>{let i=(0,b.useId)(),a=`AdaptPortal${n}${i}`,o=b.useRef(null);o.current||=Bh();let s=(0,b.useMemo)(()=>{if(t)return t;if(Kh.has(a))return Kh.get(a);let e=()=>(0,R.jsx)(Lh,{name:a,forwardProps:typeof r==`boolean`?void 0:r?.forwardProps},i);return Kh.set(a,e),e},[a,t,!1]);Ho(()=>(Kh.set(a,s),()=>{Kh.delete(a)}),[a,!1]);let[c,l]=b.useState(null),[u,d]=b.useState(null);return(0,R.jsx)(Vh.Provider,{value:o.current,children:(0,R.jsx)(Uh.Provider,{value:n,children:(0,R.jsx)(Wh,{Contents:s,when:c,platform:u,setPlatform:d,setWhen:l,portalName:a,scopeName:n,children:e})})})},Jh=({scope:e,...t})=>{let n=Gh(e);if(!n?.Contents)throw Error(`hanzogui.dev/docs/intro/errors#warning-002`);return b.createElement(n.Contents,{...t,key:`stable`})};Jh.shouldForwardSpace=!0;var Yh=Ic(function(e){let{platform:t,when:n,children:r,scope:i}=e,a=Gh(i),o=Zh(e);Ho(()=>{a?.setWhen?.(n||o),a?.setPlatform?.(t||null)},[n,t,o,a.setWhen,a.setPlatform]),Ho(()=>()=>{a?.setWhen?.(null),a?.setPlatform?.(null)},[]);let s;if(typeof r==`function`){let e=a?.Contents;s=r(e?(0,R.jsx)(e,{}):null)}else s=r;return(0,R.jsx)(yh,{children:o?s:null})},{Contents:Jh}),Xh=e=>{let t=Qh(e.scope),{portalName:n}=Gh(e.scope);return(0,b.useContext)(Vh),(0,R.jsx)(zh,{passThrough:!t,hostName:n,children:e.children})},Zh=({when:e,platform:t})=>{let n=Zs();if(e==null&&t==null)return!1;if(e===!0)return!0;let r=!1;return t===`touch`?r=Uo:t===`native`?r=!1:t===`web`?r=!0:t===`ios`?r=Go:t===`android`&&(r=Wo),t&&r==0?!1:(e&&typeof e==`string`&&(r=n[e]),r)},Qh=e=>Zh(Gh(e));function $h({children:e,lazyMount:t,type:n,present:r,passThrough:i,...a}){let[o,s]=(0,b.useState)(!t&&r);(0,b.useEffect)(()=>{i||t&&r&&(0,b.startTransition)(()=>{s(r)})},[t,r]);let c=r?t?o:r:!1;return n===`presence`?a.keepChildrenMounted?(0,R.jsx)(rm,{isPresent:!0,...!i&&{initial:a.initial?void 0:!1,onExitComplete:a.onExitComplete,enterVariant:a.enterVariant,exitVariant:a.exitVariant,enterExitVariant:a.enterExitVariant,presenceAffectsLayout:!1,isPresent:r,custom:a.custom},children:e}):(0,R.jsx)(sm,{passThrough:i,...a,children:c||i?e:null}):(0,R.jsx)(R.Fragment,{children:e})}function eg(e,t){let n=b.createContext(t);function r(e){let{children:t,...r}=e,i=b.useMemo(()=>r,Object.values(r));return(0,R.jsx)(n.Provider,{value:i,children:t})}function i(r){let i=b.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function tg(e,t=[]){let n=[];function r(t,r){let i=b.createContext(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=b.useMemo(()=>o,Object.values(o));return(0,R.jsx)(s.Provider,{value:c,children:r})}function s(n,o,s){let c=o?.[e]?.[a]||i,l=b.useContext(c);if(l)return l;if(r!==void 0)return r;let u=`\`${n}\` must be used within \`${t}\``;if(s?.fallback)return s?.warn!==!1&&console.warn(u),s.fallback;throw Error(u)}return[o,s]}let i=()=>{let t=n.map(e=>b.createContext(e));return function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,ng(i,...t)]}function ng(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function rg(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>((...e)=>t.current?.(...e)),[])}function ig(e,t=globalThis?.document){let n=rg(e);b.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[n,t])}function ag(e,t){e&&xh.flushSync(()=>e.dispatchEvent(t))}var og=`Dismissable`,sg=`dismissable.update`,cg=`dismissable.pointerDownOutside`,lg=`dismissable.focusOutside`,ug,dg=new Set,fg=new Set,pg=0;function mg(){for(let e of fg)e()}var hg=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gg=b.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,forceUnmount:r,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,asChild:l,children:u,branches:d,...f}=e,p=l?Sf:Lm,m=b.useContext(hg),[h,g]=b.useState(null),[,_]=b.useState({}),v=Ml(t,e=>g(e)),y=Array.from(m.layers),[x]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=y.indexOf(x),C=h?y.indexOf(h):-1,w=m.layersWithOutsidePointerEventsDisabled.size>0,T=C>=S,E=yg(e=>{let t=e.target,n=[...d||m.branches].some(e=>e.contains(t));T&&!n&&(a?.(e),s?.(e),e.defaultPrevented||c?.())}),D=bg(e=>{let t=e.target;[...d||m.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())}),O=b.useRef(r);return b.useEffect(()=>{O.current=r},[r]),ig(e=>{if(O.current)return;let t=Array.from(m.layers);(h?t.indexOf(h):-1)===t.length-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),b.useEffect(()=>{if(h&&!r)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(ug=document.body.style.pointerEvents,document.body.style.pointerEvents=`none`),m.layersWithOutsidePointerEventsDisabled.add(h),pg++),m.layers.add(h),dg.add(h),(n||pg>0)&&xg(),mg(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=ug)}},[h,n,r,m]),b.useEffect(()=>{if(!r)return()=>{if(!h)return;let e=m.layersWithOutsidePointerEventsDisabled.has(h);m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),dg.delete(h),pg>0&&xg(),mg(),e&&pg--}},[h,m,r]),b.useEffect(()=>{let e=()=>{pg>0&&_({})};return document.addEventListener(sg,e),()=>document.removeEventListener(sg,e)},[]),(0,R.jsx)(p,{...f,ref:v,...!l&&{display:`contents`},pointerEvents:w?T?`auto`:`none`:void 0,onFocusCapture:cc(e.onFocusCapture,D.onFocusCapture),onBlurCapture:cc(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:cc(e.onPointerDownCapture,E.onPointerDownCapture),children:u})});gg.displayName=og;var _g=`DismissableBranch`,vg=b.forwardRef((e,t)=>{let{branches:n,...r}=e,i=b.useContext(hg),a=b.useRef(null),o=Ml(t,a);return b.useEffect(()=>{let e=a.current;if(!(e instanceof HTMLElement))return;let t=n||i.branches;if(e&&t)return t.add(e),()=>{t.delete(e)}},[n,i.branches]),(0,R.jsx)(Lm,{asChild:`except-style`,...r,ref:o})});vg.displayName=_g;function yg(e){let t=Jp(e),n=b.useRef(!1),r=b.useRef(()=>{});return b.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){Sg(cg,t,n,{discrete:!0})}e.pointerType===`touch`?(document.removeEventListener(`click`,r.current),r.current=i,document.addEventListener(`click`,r.current,{once:!0})):i()}n.current=!1},i=setTimeout(()=>{document.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(i),document.removeEventListener(`pointerdown`,e),document.removeEventListener(`click`,r.current)}},[t]),{onPointerDownCapture:()=>{n.current=!0}}}function bg(e){let t=Jp(e),n=b.useRef(!1);return b.useEffect(()=>{let e=e=>{e.target&&!n.current&&Sg(lg,t,{originalEvent:e},{discrete:!1})};return document.addEventListener(`focusin`,e),()=>document.removeEventListener(`focusin`,e)},[t]),{onFocusCapture:()=>{n.current=!0},onBlurCapture:()=>{n.current=!1}}}function xg(){let e=new CustomEvent(sg);document.dispatchEvent(e)}function Sg(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ag(i,a):i.dispatchEvent(a)}var Cg=class extends Error{constructor(e=``){super(e),this.name=`AbortError`}};function wg(e,t=[]){Tg(b.useEffect,e,t)}function Tg(e,t,n=[]){e(()=>{let e=new AbortController,r=e.signal;try{let e=t(r,...n);Promise.resolve(e).then(async e=>{if(e&&typeof e==`function`){if(r.aborted)return e();r.addEventListener(`abort`,e)}}).catch(i)}catch(e){i(e)}function i(e){if(e instanceof Cg||typeof e==`object`&&e.name===`AbortError`)return null;throw e}return()=>{r.aborted||e.abort()}},n)}var Eg=async(e,t)=>{if(await new Promise(t=>setTimeout(t,e)),t?.aborted)throw new Cg},Dg=typeof requestIdleCallback>`u`?e=>setTimeout(e,1):requestIdleCallback,Og=()=>new Promise(e=>{Dg(e)}),kg=async(e,t)=>{let{max:n,min:r,fully:i}=t||{},a=i?Ag:Og;if(n&&r&&r<n?await Promise.race([Promise.all([a(),Eg(r)]),Eg(n)]):n?await Promise.race([a(),Eg(n)]):r?await Promise.all([a(),Eg(r)]):await a(),e?.aborted)throw new Cg},Ag=async e=>{for(;;){let t=Date.now();if(await kg(e),Date.now()-t<15)break;if(e?.aborted)throw new Cg}},jg=`FocusScopeController`,[Mg,bee]=tg(jg),[Ng,Pg]=Mg(jg);function Fg(e){let{__scopeFocusScope:t,children:n,enabled:r,loop:i,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,forceUnmount:c,focusOnIdle:l}=e,u=Jp(o),d=Jp(s),f=b.useMemo(()=>({enabled:r,loop:i,trapped:a,onMountAutoFocus:u,onUnmountAutoFocus:d,forceUnmount:c,focusOnIdle:l}),[r,i,a,u,d,c,l]);return(0,R.jsx)(Ng,{scope:t,...f,children:n})}var Ig=Fg,Lg=`focusScope.autoFocusOnMount`,Rg=`focusScope.autoFocusOnUnmount`,zg={bubbles:!1,cancelable:!0},Bg=b.forwardRef(function({__scopeFocusScope:e,...t},n){let r=Pg(`FocusScope`,e,{warn:!1,fallback:{}}),i={...t,enabled:r.enabled??t.enabled,loop:r.loop??t.loop,trapped:r.trapped??t.trapped,onMountAutoFocus:r.onMountAutoFocus??t.onMountAutoFocus,onUnmountAutoFocus:r.onUnmountAutoFocus??t.onUnmountAutoFocus,forceUnmount:r.forceUnmount??t.forceUnmount,focusOnIdle:r.focusOnIdle??t.focusOnIdle},a=Hg(i,n);return typeof i.children==`function`?(0,R.jsx)(R.Fragment,{children:i.children(a)}):b.cloneElement(b.Children.only(i.children),a)});function Vg(e,t,n){let r=new AbortController,i=null;function a(){if(i)return;let r=t.current;i=requestAnimationFrame(()=>{i=null,!n.paused&&(n.stopped||e.isConnected&&(e.contains(document.activeElement)||Yg(r)))})}function o(i){if(n.paused)return;let o=i.target;e.contains(o)?(o?.addEventListener(`blur`,c,{signal:r.signal}),t.current=o):o?.contains(e)||a()}function s(t){if(r.abort(),n.paused)return;let i=t.relatedTarget;i!==null&&(i.contains(e)||e.contains(i)||a())}function c(){}return document.addEventListener(`focusin`,o),document.addEventListener(`focusout`,s),()=>{i&&=(cancelAnimationFrame(i),null),r.abort(),document.removeEventListener(`focusin`,o),document.removeEventListener(`focusout`,s)}}function Hg(e,t){let{loop:n=!1,enabled:r=!0,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,forceUnmount:s,focusOnIdle:c=!0,children:l,...u}=e,[d,f]=b.useState(null),p=b.useRef(null),m=Jp(a),h=Jp(o),g=b.useRef(null),_=b.useRef({paused:!1,stopped:!1,pause(){this.paused=!0},resume(){this.paused=!1},stop(){this.stopped=!0}}),v=_.current,y=b.useRef(null),x=Ml(t,b.useCallback(e=>{y.current&&=(y.current(),null),p.current=e,e&&r&&i&&(y.current=Vg(e,g,_.current)),f(e)},[r,i]));Ho(()=>(i||(v.stopped=!0,y.current&&=(y.current(),null)),()=>{y.current&&=(y.current(),null)}),[i,v]),wg(async e=>{if(!r||!d||s)return;i&&(v.stopped=!1),Xg.add(v);let t=document.activeElement;if(!d.contains(t)||t===null||qg(t,{upTo:d})){let n=new CustomEvent(Lg,zg);if(d.addEventListener(Lg,m),d.dispatchEvent(n),!n.defaultPrevented){c&&await kg(e,typeof c==`object`?c:{max:200,min:typeof c==`number`?c:16});let n=$g(Gg(d)).filter(e=>!qg(e,{upTo:d}));Ug(n,{select:!0}),n.length>0?g.current=n[0]:g.current=d,document.activeElement===t&&n.length===0&&Yg(d)}}return()=>{v.stop(),d.removeEventListener(Lg,m);let e=new CustomEvent(Rg,zg);if(d.addEventListener(Rg,h),d.dispatchEvent(e),!e.defaultPrevented){let e=document.activeElement;(!e||e===document.body||e===d||d.contains(e))&&Yg(t??document.body,{select:!0})}d.removeEventListener(Rg,h),Xg.remove(v)}},[r,d,s,m,h,v,c]);let S=b.useCallback(e=>{if(!i||!n||v.paused||!r||!d)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){let[t,r]=Wg(d);t&&r?!e.shiftKey&&a===r?(e.preventDefault(),n&&Yg(t,{select:!0})):e.shiftKey&&a===t&&(e.preventDefault(),n&&Yg(r,{select:!0})):a===d&&e.preventDefault()}},[n,i,v.paused,r,d]);b.useEffect(()=>{if(!d||!i||!n||!r)return;let e=e=>{e.key===`Tab`&&S(e)};return d.addEventListener(`keydown`,e,!0),()=>{d.removeEventListener(`keydown`,e,!0)}},[d,i,n,r,S]);let C=u.onKeyDown,w=b.useCallback(e=>{C?.(e)},[C]);return{...u,ref:x,onKeyDown:w}}function Ug(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yg(r,{select:t}),document.activeElement!==n)return}function Wg(e){let t=Gg(e);return[Kg(t,e),Kg(t.reverse(),e)]}function Gg(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kg(e,t){for(let n of e)if(!qg(n,{upTo:t}))return n}function qg(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Jg(e){return e instanceof HTMLInputElement&&`select`in e}function Yg(e,{select:t=!1}={}){if(e?.focus){let n=document.activeElement;try{e.focus({preventScroll:!0}),e!==n&&Jg(e)&&t&&e.select()}catch{}}}var Xg=Zg();function Zg(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Qg(e,t),e.unshift(t)},remove(t){e=Qg(e,t),e[0]?.resume()}}}function Qg(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $g(e){return e.filter(e=>e.tagName!==`A`)}var e_=()=>typeof window<`u`&&!!window.document&&!!window.document.createElement,t_=0,n_=0,r_=null;function i_(){if(typeof navigator>`u`)return!1;let e=navigator.userAgent,t=/iPad|iPhone|iPod/.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1,n=/^((?!chrome|android).)*safari/i.test(e);return t&&n}var xee=e=>{let t=(0,b.useRef)(!1);(0,b.useEffect)(()=>{if(e_()){if(e&&!t.current){if(t.current=!0,++t_===1){let e=document.documentElement,t=document.body;n_=window.scrollY,r_={htmlOverflow:e.style.overflow,htmlScrollbarGutter:e.style.scrollbarGutter,bodyPosition:t.style.position,bodyTop:t.style.top,bodyWidth:t.style.width,bodyOverflow:t.style.overflow,bodyOverscrollBehavior:t.style.overscrollBehavior},e.style.scrollbarGutter=`stable`,e.style.overflow=`hidden`,t.style.overscrollBehavior=`none`,i_()&&(t.style.position=`fixed`,t.style.top=`-${n_}px`,t.style.width=`100%`,t.style.overflow=`hidden`)}}else if(!e&&t.current&&(t.current=!1,--t_===0&&r_)){let e=document.documentElement,t=document.body;e.style.overflow=r_.htmlOverflow,e.style.scrollbarGutter=r_.htmlScrollbarGutter,t.style.position=r_.bodyPosition,t.style.top=r_.bodyTop,t.style.width=r_.bodyWidth,t.style.overflow=r_.bodyOverflow,t.style.overscrollBehavior=r_.bodyOverscrollBehavior,n_>0&&window.scrollTo(0,n_),r_=null,n_=0}}},[e]),(0,b.useEffect)(()=>()=>{if(t.current&&(t.current=!1,--t_===0&&r_)){let e=document.documentElement,t=document.body;e.style.overflow=r_.htmlOverflow,e.style.scrollbarGutter=r_.htmlScrollbarGutter,t.style.position=r_.bodyPosition,t.style.top=r_.bodyTop,t.style.width=r_.bodyWidth,t.style.overflow=r_.bodyOverflow,t.style.overscrollBehavior=r_.bodyOverscrollBehavior,n_>0&&window.scrollTo(0,n_),r_=null,n_=0}},[])},a_=e=>(xee(!!e.enabled),e.children),See=b.createContext(null),o_=({children:e,onOpenChange:t,onAnimationComplete:n,open:r,hidden:i,disableDrag:a})=>{let o=Jp(t),s=Jp(n),c=(0,b.useId)(),l=(0,b.useRef)(i),u=!1;l.current&&!i&&r&&(u=!0),l.current=i;let d=b.useMemo(()=>({id:c,open:r,hidden:i,disableDrag:a,onOpenChange:o,onAnimationComplete:s,skipNextAnimation:u}),[c,o,s,r,i,a,u]);return(0,R.jsx)(See.Provider,{value:d,children:e})},{useStyledContext:s_,Provider:c_}=Mo({},`Dialog__`),l_=b.createContext(!0),u_=z(Lm,{name:`DialogTrigger`}),Cee=u_.styleable(function(e,t){let{scope:n,...r}=e,i=b.useContext(ch),a=s_(n),o=Ml(t,a.triggerRef);return(0,R.jsx)(ch.Provider,{value:!0,children:(0,R.jsx)(u_,{render:i?`span`:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":v_(a.open),...r,ref:o,onPress:cc(e.onPress,a.onOpenToggle)})})}),wee=z(B,{pointerEvents:`none`,render:`dialog`,variants:{unstyled:{false:{alignItems:`center`,justifyContent:`center`,fullscreen:!0,"$platform-web":{borderWidth:0,backgroundColor:`transparent`,color:`inherit`,maxInlineSize:`none`,margin:0,width:`auto`,height:`auto`,maxHeight:`100vh`,position:`fixed`,zIndex:1}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),Tee=Ch(),Eee=({context:e,children:t})=>{let n=Ip(),r=Qh(e.adaptScope),i=Gh(e.adaptScope),a=(0,R.jsx)(of,{name:n,children:t});return Tee&&(a=(0,R.jsx)(Wh,{...i,children:(0,R.jsx)(c_,{...e,children:a})})),r?(0,R.jsx)(Xh,{scope:e.adaptScope,children:a}):e.modal?(0,R.jsx)(zh,{hostName:e.modal?`root`:e.adaptScope,children:a}):a},Dee=b.forwardRef((e,t)=>{let{scope:n,forceMount:r,children:i,...a}=e,o=b.useRef(null),s=jl(o,t),c=s_(n),l=r||c.keepChildrenMounted,u=Qh(c.adaptScope),[d,f]=b.useState(!c.open);c.open&&d&&f(!1);let p=c.open?!0:!d;Ho(()=>{let e=o.current;e instanceof HTMLDialogElement&&(p?e.show?.():e.close?.())},[p]);let m=b.useRef(c.onAnimationComplete);m.current=c.onAnimationComplete;let h=b.useCallback(()=>{f(!0),m.current?.({open:!1})},[]);b.useEffect(()=>{if(c.open&&!u&&m.current){let e=setTimeout(()=>{m.current?.({open:!0})},350);return()=>clearTimeout(e)}},[c.open,u]);let g=If(`zIndex`,e),_=(0,R.jsx)(yh,{zIndex:bh(g),children:(0,R.jsx)($h,{type:`presence`,present:!!c.open,keepChildrenMounted:!!l,onExitComplete:h,passThrough:u,children:i})}),v=d&&!l&&!u?null:(0,R.jsx)(bm,{disable:!c.open,children:(0,R.jsx)(wee,{ref:s,...c.open&&{"aria-modal":!0},pointerEvents:c.open?`auto`:`none`,...a,className:`_no_backdrop `+(a.className||``),children:_})});return(0,R.jsx)(Sh,{zIndex:g,stackZIndex:1e5,passThrough:u,children:(0,R.jsx)(Oee,{passThrough:u,children:v})})}),Oee=({children:e,passThrough:t})=>{let n=Ip();return(0,R.jsx)(of,{passThrough:t,name:n,forceClassName:!0,children:e})},d_=z(B,{name:`DialogOverlay`,zIndex:1,variants:{open:{true:{pointerEvents:`auto`},false:{pointerEvents:`none`}},unstyled:{false:{fullscreen:!0,position:`absolute`,backgroundColor:`$background`,pointerEvents:`auto`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),kee=d_.styleable(function({scope:e,...t},n){let r=s_(e),{forceMount:i=r.forceMount,...a}=t,o=Qh(r.adaptScope);return!i&&(!r.modal||o)?null:(0,R.jsx)(d_,{"data-state":v_(r.open),pointerEvents:r.open?`auto`:`none`,...a,ref:n})}),f_=`DialogContent`,p_=z(Zm,{name:f_,zIndex:2,variants:{size:{"...size":(e,t)=>({})},unstyled:{false:{position:`relative`,backgroundColor:`$background`,borderWidth:1,borderColor:`$borderColor`,padding:`$true`,borderRadius:`$true`,elevate:!0,pointerEvents:`auto`}}},defaultVariants:{size:`$true`,unstyled:{}.GUI_HEADLESS===`1`}}),Aee=p_.styleable(function({scope:e,...t},n){let r=s_(e),i=(0,R.jsx)(R.Fragment,{children:r.modal?(0,R.jsx)(jee,{context:r,...t,ref:n}):(0,R.jsx)(Mee,{context:r,...t,ref:n})});return r.disableRemoveScroll?i:(0,R.jsx)(a_,{enabled:r.open,children:(0,R.jsx)(`div`,{"data-remove-scroll-container":!0,className:`_dsp_contents`,children:i})})}),jee=b.forwardRef(({children:e,context:t,...n},r)=>{let i=b.useRef(null),a=Ml(r,t.contentRef,i);return(0,R.jsx)(m_,{...n,context:t,ref:a,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cc(n.onCloseAutoFocus,e=>{e.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:cc(n.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:cc(n.onFocusOutside,e=>e.preventDefault()),...!n.unstyled&&{outlineStyle:`none`},children:e})}),Mee=b.forwardRef((e,t)=>{let n=b.useRef(!1);return(0,R.jsx)(m_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||e.context.triggerRef.current?.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0);let r=t.target,i=e.context.triggerRef.current;i instanceof HTMLElement&&i.contains(r)&&t.preventDefault()}})}),m_=b.forwardRef((e,t)=>{let{trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,context:u,...d}=e,f=Ml(t,b.useRef(null)),p=Qh(u.adaptScope),m=b.useContext(l_);if(p)return!u.open&&!u.keepChildrenMounted&&m?null:(0,R.jsx)(Eee,{context:u,children:d.children});let h=(0,R.jsx)(p_,{ref:f,id:u.contentId,role:`dialog`,"aria-modal":u.modal,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":v_(u.open),pointerEvents:u.open?`auto`:`none`,...d});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(gg,{disableOutsidePointerEvents:u.open&&a,forceUnmount:!u.open,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:()=>u?.onOpenChange?.(!1),children:(0,R.jsx)(Bg,{loop:!0,enabled:u.open,trapped:n,onMountAutoFocus:r,forceUnmount:!u.open,onUnmountAutoFocus:i,children:h})}),!1]})}),h_=z(gee,{name:`DialogTitle`}),Nee=h_.styleable(function(e,t){let{scope:n,...r}=e,i=s_(n);return(0,R.jsx)(h_,{id:i.titleId,...r,ref:t})}),g_=z(dh,{name:`DialogDescription`}),Pee=g_.styleable(function(e,t){let{scope:n,...r}=e,i=s_(n);return(0,R.jsx)(g_,{id:i.descriptionId,...r,ref:t})}),__=z(Lm,{name:`DialogClose`,render:`button`}),Fee=__.styleable((e,t)=>{let{scope:n,displayWhenAdapted:r,...i}=e,a=s_(n),o=Qh(a.adaptScope),s=b.useContext(ch);return o&&!r?null:(0,R.jsx)(__,{"aria-label":`Dialog Close`,render:s?`span`:`button`,...i,ref:t,onPress:cc(e.onPress,()=>{a.onOpenChange(!1)})})});function v_(e){return e?`open`:`closed`}var[Iee,Lee]=eg(`DialogTitleWarning`,{contentName:f_,titleName:`DialogTitle`,docsSlug:`dialog`}),y_=Ic(b.forwardRef(function(e,t){let{scope:n=``,children:r,open:i,defaultOpen:a=!1,onOpenChange:o,modal:s=!0,keepChildrenMounted:c,disableRemoveScroll:l=!1,onAnimationComplete:u}=e,d=`Dialog-${n}-${b.useId()}`,f=`${d}-content`,p=`${d}-title`,m=`${d}-description`,h=b.useRef(null),g=b.useRef(null),[_,v]=um({prop:i,defaultProp:a,onChange:o}),y=b.useCallback(()=>{v(e=>!e)},[v]),x=`DialogAdapt${n}`,S={dialogScope:n,adaptScope:x,triggerRef:h,contentRef:g,contentId:f,titleId:p,descriptionId:m,open:_,onOpenChange:v,onOpenToggle:y,modal:s,keepChildrenMounted:c,disableRemoveScroll:l,onAnimationComplete:u};return b.useImperativeHandle(t,()=>({open:v}),[v]),(0,R.jsx)(qh,{scope:x,portal:{forwardProps:e},children:(0,R.jsx)(c_,{scope:n,...S,children:(0,R.jsx)(Ree,{onOpenChange:v,scope:n,children:r})})})}),{Trigger:Cee,Portal:Dee,Overlay:kee,Content:Aee,Title:Nee,Description:Pee,Close:Fee,FocusScope:Ig,Adapt:Yh}),Ree=e=>{let t=s_(e.scope),n=Qh(t.adaptScope),[r,i]=b.useState(!t.open);t.open&&r&&i(!1);let a=b.useCallback(({open:e})=>{e||i(!0)},[]);return(0,R.jsx)(o_,{onOpenChange:t=>{n&&e.onOpenChange?.(t)},onAnimationComplete:a,open:t.open,hidden:!n,children:(0,R.jsx)(l_.Provider,{value:r,children:e.children})})},zee=e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf(`disabled`)>-1,Bee={adjustable:`slider`,button:`button`,header:`heading`,image:`img`,imagebutton:null,keyboardkey:null,label:null,link:`link`,none:`presentation`,search:`search`,summary:`region`,text:null},b_=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var r=Bee[n];if(r!==null)return r||n}},Vee={article:`article`,banner:`header`,blockquote:`blockquote`,button:`button`,code:`code`,complementary:`aside`,contentinfo:`footer`,deletion:`del`,emphasis:`em`,figure:`figure`,insertion:`ins`,form:`form`,list:`ul`,listitem:`li`,main:`main`,navigation:`nav`,paragraph:`p`,region:`section`,strong:`strong`},Hee={},x_={isDisabled:zee,propsToAccessibilityComponent:function(e){if(e===void 0&&(e=Hee),(e.role||e.accessibilityRole)===`label`)return`label`;var t=b_(e);if(t){if(t===`heading`){var n=e.accessibilityLevel||e[`aria-level`];return n==null?`h1`:`h`+n}return Vee[t]}},propsToAriaRole:b_};function S_(e){"@babel/helpers - typeof";return S_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},S_(e)}function Uee(e,t){if(S_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(S_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wee(e){var t=Uee(e,`string`);return S_(t)==`symbol`?t:t+``}function Gee(e,t,n){return(t=Wee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?C_(Object(n),!0).forEach(function(t){Gee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var E_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Kee=[`ms`,`Moz`,`O`,`Webkit`],qee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(E_).forEach(e=>{Kee.forEach(t=>{E_[qee(t,e)]=E_[e]})});var Jee=e=>e===`currentcolor`||e===`currentColor`||e===`inherit`||e.indexOf(`var(`)===0,D_=u(s(((e,t)=>{function n(e){if(typeof e==`number`)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if(typeof e!=`string`)return null;let t=f(),n;return(n=t.hex6.exec(e))?parseInt(n[1]+`ff`,16)>>>0:_(e)??((n=t.rgb.exec(e))?(p(n[1])<<24|p(n[2])<<16|p(n[3])<<8|255)>>>0:(n=t.rgba.exec(e))?n[6]===void 0?(p(n[2])<<24|p(n[3])<<16|p(n[4])<<8|h(n[5]))>>>0:(p(n[6])<<24|p(n[7])<<16|p(n[8])<<8|h(n[9]))>>>0:(n=t.hex3.exec(e))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+`ff`,16)>>>0:(n=t.hex8.exec(e))?parseInt(n[1],16)>>>0:(n=t.hex4.exec(e))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=t.hsl.exec(e))?(i(m(n[1]),g(n[2]),g(n[3]))|255)>>>0:(n=t.hsla.exec(e))?n[6]===void 0?(i(m(n[2]),g(n[3]),g(n[4]))|h(n[5]))>>>0:(i(m(n[6]),g(n[7]),g(n[8]))|h(n[9]))>>>0:(n=t.hwb.exec(e))?(a(m(n[1]),g(n[2]),g(n[3]))|255)>>>0:null)}function r(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i(e,t,n){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i,o=r(a,i,e+1/3),s=r(a,i,e),c=r(a,i,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function a(e,t,n){if(t+n>=1){let e=Math.round(t*255/(t+n));return e<<24|e<<16|e<<8}let i=r(0,1,e+1/3)*(1-t-n)+t,a=r(0,1,e)*(1-t-n)+t,o=r(0,1,e-1/3)*(1-t-n)+t;return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(o*255)<<8}var o=`[-+]?\\d*\\.?\\d+`,s=o+`%`;function c(...e){return`\\(\\s*(`+e.join(`)\\s*,?\\s*(`)+`)\\s*\\)`}function l(...e){return`\\(\\s*(`+e.slice(0,e.length-1).join(`)\\s*,?\\s*(`)+`)\\s*/\\s*(`+e[e.length-1]+`)\\s*\\)`}function u(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var d;function f(){return d===void 0&&(d={rgb:RegExp(`rgb`+c(o,o,o)),rgba:RegExp(`rgba(`+u(o,o,o,o)+`|`+l(o,o,o,o)+`)`),hsl:RegExp(`hsl`+c(o,s,s)),hsla:RegExp(`hsla(`+u(o,s,s,o)+`|`+l(o,s,s,o)+`)`),hwb:RegExp(`hwb`+c(o,s,s)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),d}function p(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function m(e){return(parseFloat(e)%360+360)%360/360}function h(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function g(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function _(e){switch(e){case`transparent`:return 0;case`aliceblue`:return 4042850303;case`antiquewhite`:return 4209760255;case`aqua`:return 16777215;case`aquamarine`:return 2147472639;case`azure`:return 4043309055;case`beige`:return 4126530815;case`bisque`:return 4293182719;case`black`:return 255;case`blanchedalmond`:return 4293643775;case`blue`:return 65535;case`blueviolet`:return 2318131967;case`brown`:return 2771004159;case`burlywood`:return 3736635391;case`burntsienna`:return 3934150143;case`cadetblue`:return 1604231423;case`chartreuse`:return 2147418367;case`chocolate`:return 3530104575;case`coral`:return 4286533887;case`cornflowerblue`:return 1687547391;case`cornsilk`:return 4294499583;case`crimson`:return 3692313855;case`cyan`:return 16777215;case`darkblue`:return 35839;case`darkcyan`:return 9145343;case`darkgoldenrod`:return 3095792639;case`darkgray`:return 2846468607;case`darkgreen`:return 6553855;case`darkgrey`:return 2846468607;case`darkkhaki`:return 3182914559;case`darkmagenta`:return 2332068863;case`darkolivegreen`:return 1433087999;case`darkorange`:return 4287365375;case`darkorchid`:return 2570243327;case`darkred`:return 2332033279;case`darksalmon`:return 3918953215;case`darkseagreen`:return 2411499519;case`darkslateblue`:return 1211993087;case`darkslategray`:return 793726975;case`darkslategrey`:return 793726975;case`darkturquoise`:return 13554175;case`darkviolet`:return 2483082239;case`deeppink`:return 4279538687;case`deepskyblue`:return 12582911;case`dimgray`:return 1768516095;case`dimgrey`:return 1768516095;case`dodgerblue`:return 512819199;case`firebrick`:return 2988581631;case`floralwhite`:return 4294635775;case`forestgreen`:return 579543807;case`fuchsia`:return 4278255615;case`gainsboro`:return 3705462015;case`ghostwhite`:return 4177068031;case`gold`:return 4292280575;case`goldenrod`:return 3668254975;case`gray`:return 2155905279;case`green`:return 8388863;case`greenyellow`:return 2919182335;case`grey`:return 2155905279;case`honeydew`:return 4043305215;case`hotpink`:return 4285117695;case`indianred`:return 3445382399;case`indigo`:return 1258324735;case`ivory`:return 4294963455;case`khaki`:return 4041641215;case`lavender`:return 3873897215;case`lavenderblush`:return 4293981695;case`lawngreen`:return 2096890111;case`lemonchiffon`:return 4294626815;case`lightblue`:return 2916673279;case`lightcoral`:return 4034953471;case`lightcyan`:return 3774873599;case`lightgoldenrodyellow`:return 4210742015;case`lightgray`:return 3553874943;case`lightgreen`:return 2431553791;case`lightgrey`:return 3553874943;case`lightpink`:return 4290167295;case`lightsalmon`:return 4288707327;case`lightseagreen`:return 548580095;case`lightskyblue`:return 2278488831;case`lightslategray`:return 2005441023;case`lightslategrey`:return 2005441023;case`lightsteelblue`:return 2965692159;case`lightyellow`:return 4294959359;case`lime`:return 16711935;case`limegreen`:return 852308735;case`linen`:return 4210091775;case`magenta`:return 4278255615;case`maroon`:return 2147483903;case`mediumaquamarine`:return 1724754687;case`mediumblue`:return 52735;case`mediumorchid`:return 3126187007;case`mediumpurple`:return 2473647103;case`mediumseagreen`:return 1018393087;case`mediumslateblue`:return 2070474495;case`mediumspringgreen`:return 16423679;case`mediumturquoise`:return 1221709055;case`mediumvioletred`:return 3340076543;case`midnightblue`:return 421097727;case`mintcream`:return 4127193855;case`mistyrose`:return 4293190143;case`moccasin`:return 4293178879;case`navajowhite`:return 4292783615;case`navy`:return 33023;case`oldlace`:return 4260751103;case`olive`:return 2155872511;case`olivedrab`:return 1804477439;case`orange`:return 4289003775;case`orangered`:return 4282712319;case`orchid`:return 3664828159;case`palegoldenrod`:return 4008225535;case`palegreen`:return 2566625535;case`paleturquoise`:return 2951671551;case`palevioletred`:return 3681588223;case`papayawhip`:return 4293907967;case`peachpuff`:return 4292524543;case`peru`:return 3448061951;case`pink`:return 4290825215;case`plum`:return 3718307327;case`powderblue`:return 2967529215;case`purple`:return 2147516671;case`rebeccapurple`:return 1714657791;case`red`:return 4278190335;case`rosybrown`:return 3163525119;case`royalblue`:return 1097458175;case`saddlebrown`:return 2336560127;case`salmon`:return 4202722047;case`sandybrown`:return 4104413439;case`seagreen`:return 780883967;case`seashell`:return 4294307583;case`sienna`:return 2689740287;case`silver`:return 3233857791;case`skyblue`:return 2278484991;case`slateblue`:return 1784335871;case`slategray`:return 1887473919;case`slategrey`:return 1887473919;case`snow`:return 4294638335;case`springgreen`:return 16744447;case`steelblue`:return 1182971135;case`tan`:return 3535047935;case`teal`:return 8421631;case`thistle`:return 3636451583;case`tomato`:return 4284696575;case`turquoise`:return 1088475391;case`violet`:return 4001558271;case`wheat`:return 4125012991;case`white`:return 4294967295;case`whitesmoke`:return 4126537215;case`yellow`:return 4294902015;case`yellowgreen`:return 2597139199}return null}t.exports=n}))()),Yee=e=>{if(e==null)return e;var t=(0,D_.default)(e);if(t!=null)return t=(t<<24|t>>>8)>>>0,t},O_=function(e,t){if(t===void 0&&(t=1),e!=null){if(typeof e==`string`&&Jee(e))return e;var n=Yee(e);if(n!=null){var r=n>>16&255,i=n>>8&255,a=n&255,o=((n>>24&255)/255*t).toFixed(2);return`rgba(`+r+`,`+i+`,`+a+`,`+o+`)`}}},k_={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function A_(e,t){var n=e;return(t==null||!E_[t])&&typeof e==`number`?n=e+`px`:t!=null&&k_[t]&&(n=O_(e)),n}var j_=!!(typeof window<`u`&&window.document&&window.document.createElement),M_={},N_=!j_||window.CSS!=null&&window.CSS.supports!=null&&(window.CSS.supports(`text-decoration-line`,`none`)||window.CSS.supports(`-webkit-text-decoration-line`,`none`)),P_=`monospace,monospace`,F_=`-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif`,I_={borderColor:[`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`],borderBlockColor:[`borderTopColor`,`borderBottomColor`],borderInlineColor:[`borderRightColor`,`borderLeftColor`],borderRadius:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],borderStyle:[`borderTopStyle`,`borderRightStyle`,`borderBottomStyle`,`borderLeftStyle`],borderBlockStyle:[`borderTopStyle`,`borderBottomStyle`],borderInlineStyle:[`borderRightStyle`,`borderLeftStyle`],borderWidth:[`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`],borderBlockWidth:[`borderTopWidth`,`borderBottomWidth`],borderInlineWidth:[`borderRightWidth`,`borderLeftWidth`],insetBlock:[`top`,`bottom`],insetInline:[`left`,`right`],marginBlock:[`marginTop`,`marginBottom`],marginInline:[`marginRight`,`marginLeft`],paddingBlock:[`paddingTop`,`paddingBottom`],paddingInline:[`paddingRight`,`paddingLeft`],overflow:[`overflowX`,`overflowY`],overscrollBehavior:[`overscrollBehaviorX`,`overscrollBehaviorY`],borderBlockStartColor:[`borderTopColor`],borderBlockStartStyle:[`borderTopStyle`],borderBlockStartWidth:[`borderTopWidth`],borderBlockEndColor:[`borderBottomColor`],borderBlockEndStyle:[`borderBottomStyle`],borderBlockEndWidth:[`borderBottomWidth`],borderEndStartRadius:[`borderBottomLeftRadius`],borderEndEndRadius:[`borderBottomRightRadius`],borderStartStartRadius:[`borderTopLeftRadius`],borderStartEndRadius:[`borderTopRightRadius`],insetBlockEnd:[`bottom`],insetBlockStart:[`top`],marginBlockStart:[`marginTop`],marginBlockEnd:[`marginBottom`],paddingBlockStart:[`paddingTop`],paddingBlockEnd:[`paddingBottom`]},L_=(e,t)=>{if(!e)return M_;var n={},r=function(){var r=e[i];if(r==null)return`continue`;if(i===`backgroundClip`)r===`text`&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if(i===`flex`)r===-1?(n.flexGrow=0,n.flexShrink=1,n.flexBasis=`auto`):n.flex=r;else if(i===`font`)n[i]=r.replace(`System`,F_);else if(i===`fontFamily`){if(r.indexOf(`System`)>-1){var a=r.split(/,\s*/);a[a.indexOf(`System`)]=F_,n[i]=a.join(`,`)}else n[i]=r===`monospace`?P_:r}else if(i===`textDecorationLine`)N_?n.textDecorationLine=r:n.textDecoration=r;else if(i===`writingDirection`)n.direction=r;else{var o=A_(e[i],i),s=I_[i];t&&i===`inset`?(e.insetInline??(n.left=o,n.right=o),e.insetBlock??(n.top=o,n.bottom=o)):t&&i===`margin`?(e.marginInline??(n.marginLeft=o,n.marginRight=o),e.marginBlock??(n.marginTop=o,n.marginBottom=o)):t&&i===`padding`?(e.paddingInline??(n.paddingLeft=o,n.paddingRight=o),e.paddingBlock??(n.paddingTop=o,n.paddingBottom=o)):s?s.forEach((t,r)=>{e[t]??(n[t]=o)}):n[i]=o}};for(var i in e)if(r()===`continue`)continue;return n};function R_(e,t){for(var n=e.length,r=t^n,i=0,a;n>=4;)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),a^=a>>>24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16)^a,n-=4,++i;switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16)}return r^=r>>>13,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16),r^=r>>>15,r>>>0}var z_=e=>R_(e,1).toString(36),B_=/[A-Z]/g,V_=/^ms-/,H_={};function Xee(e){return`-`+e.toLowerCase()}function Zee(e){if(e in H_)return H_[e];var t=e.replace(B_,Xee);return H_[e]=V_.test(t)?`-`+t:t}var U_=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e.charAt(0).toUpperCase()+e.slice(1)}})),Qee=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=n(U_());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n,r){var i=e[n];if(i&&r.hasOwnProperty(n))for(var a=(0,t.default)(n),o=0;o<i.length;++o){var s=i[o]+a;r[s]||(r[s]=r[n])}return r}})),$ee=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t,n,r,i){for(var a=0,o=e.length;a<o;++a){var s=e[a](t,n,r,i);if(s)return s}}})),ete=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function t(e,t){e.indexOf(t)===-1&&e.push(t)}function n(e,n){if(Array.isArray(n))for(var r=0,i=n.length;r<i;++r)t(e,n[r]);else t(e,n)}})),tte=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e instanceof Object&&!Array.isArray(e)}})),W_=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=a(Qee()),n=a($ee()),r=a(ete()),i=a(tte());function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var a=e.prefixMap,o=e.plugins;return function e(s){for(var c in s){var l=s[c];if((0,i.default)(l))s[c]=e(l);else if(Array.isArray(l)){for(var u=[],d=0,f=l.length;d<f;++d){var p=(0,n.default)(o,c,l[d],s,a);(0,r.default)(u,p||l[d])}u.length>0&&(s[c]=u)}else{var m=(0,n.default)(o,c,l,s,a);m&&(s[c]=m),s=(0,t.default)(a,c,s)}}return s}}}));function G_(e){"@babel/helpers - typeof";return G_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G_(e)}function K_(e){return X_(e)||Y_(e)||J_(e)||q_()}function q_(){throw TypeError(`Invalid attempt to spread non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J_(e,t){if(e){if(typeof e==`string`)return Z_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(e,t)}}function Y_(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function X_(e){if(Array.isArray(e))return Z_(e)}function Z_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q_(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function $_(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var i in r){var a=r[i],o=e[i];if(o&&a){if(Array.isArray(o)){e[i]=Q_(o.concat(a));continue}if(Array.isArray(a)){e[i]=Q_([o].concat(K_(a)));continue}if(G_(a)===`object`){e[i]=$_({},o,a);continue}}e[i]=a}}return e}var ev=o((()=>{}));function tv(e){return e[1].toUpperCase()}function nv(e){if(av.hasOwnProperty(e))return av[e];var t=e.replace(rv,tv).replace(iv,`ms`);return av[e]=t,t}var rv,iv,av,ov=o((()=>{rv=/-([a-z])/g,iv=/^Ms/g,av={}})),sv=c({default:()=>cv});function nte(e){return`-`+e.toLowerCase()}function cv(e){if(dv.hasOwnProperty(e))return dv[e];var t=e.replace(lv,nte);return dv[e]=uv.test(t)?`-`+t:t}var lv,uv,dv,fv=o((()=>{lv=/[A-Z]/g,uv=/^ms-/,dv={}}));function pv(e){return cv(e)}var mv=o((()=>{fv()}));function hv(e,t){return pv(e)+`:`+t}var gv=o((()=>{mv()}));function rte(e){var t=``;for(var n in e){var r=e[n];(typeof r==`string`||typeof r==`number`)&&(t&&(t+=`;`),t+=hv(n,r))}return t}var ite=o((()=>{gv()}));function ate(e){return _v.test(e)}var _v,ote=o((()=>{_v=/^(Webkit|Moz|O|ms)/}));function ste(e){return typeof e==`string`&&vv.test(e)}var vv,cte=o((()=>{vv=/-webkit-|-moz-|-ms-/}));function lte(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}function ute(e){return yv.hasOwnProperty(e)}var yv,bv,xv,Sv,Cv,wv,Tv,Ev,dte=o((()=>{for(mv(),yv={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bv=[`animationIterationCount`,`boxFlex`,`boxFlexGroup`,`boxOrdinalGroup`,`columnCount`,`flex`,`flexGrow`,`flexPositive`,`flexShrink`,`flexNegative`,`flexOrder`,`gridColumn`,`gridColumnEnd`,`gridColumnStart`,`gridRow`,`gridRowEnd`,`gridRowStart`,`lineClamp`,`order`],xv=[`Webkit`,`ms`,`Moz`,`O`],Sv=0,Cv=bv.length;Sv<Cv;++Sv)for(wv=bv[Sv],yv[wv]=!0,Tv=0,Ev=xv.length;Tv<Ev;++Tv)yv[lte(xv[Tv],wv)]=!0;for(var e in yv)yv[pv(e)]=!0}));function Dv(e){var t=e.replace(Ov,``);return t.charAt(0).toLowerCase()+t.slice(1)}var Ov,kv=o((()=>{Ov=/^(ms|Webkit|Moz|O)/}));function fte(e){return Dv(nv(e))}var pte=o((()=>{ov(),kv()}));function mte(e,t){return t.join(`;`+pv(e)+`:`)}var hte=o((()=>{mv()}));function gte(e){return typeof e==`string`?e.replace(Av,``):e}var Av,_te=o((()=>{Av=/(-ms-|-webkit-|-moz-|-o-)/g})),vte=c({assignStyle:()=>$_,camelCaseProperty:()=>nv,cssifyDeclaration:()=>hv,cssifyObject:()=>rte,hyphenateProperty:()=>pv,isPrefixedProperty:()=>ate,isPrefixedValue:()=>ste,isUnitlessProperty:()=>ute,normalizeProperty:()=>fte,resolveArrayValue:()=>mte,unprefixProperty:()=>Dv,unprefixValue:()=>gte}),jv=o((()=>{ev(),ov(),gv(),ite(),mv(),ote(),cte(),dte(),pte(),hte(),kv(),_te()})),Mv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(jv(),d(vte)),n=/cross-fade\(/g,r=[`-webkit-`,``];function i(e,i){if(typeof i==`string`&&!(0,t.isPrefixedValue)(i)&&i.indexOf(`cross-fade(`)!==-1)return r.map(function(e){return i.replace(n,e+`cross-fade(`)})}})),Nv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=/-webkit-|-moz-|-ms-/;function n(e){return typeof e==`string`&&t.test(e)}})),Pv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=n(Nv());function n(e){return e&&e.__esModule?e:{default:e}}var r=[`-webkit-`,``];function i(e,n){if(typeof n==`string`&&!(0,t.default)(n)&&n.indexOf(`image-set(`)>-1)return r.map(function(e){return n.replace(/image-set\(/g,e+`image-set(`)})}})),Fv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t={marginBlockStart:[`WebkitMarginBefore`],marginBlockEnd:[`WebkitMarginAfter`],marginInlineStart:[`WebkitMarginStart`,`MozMarginStart`],marginInlineEnd:[`WebkitMarginEnd`,`MozMarginEnd`],paddingBlockStart:[`WebkitPaddingBefore`],paddingBlockEnd:[`WebkitPaddingAfter`],paddingInlineStart:[`WebkitPaddingStart`,`MozPaddingStart`],paddingInlineEnd:[`WebkitPaddingEnd`,`MozPaddingEnd`],borderBlockStart:[`WebkitBorderBefore`],borderBlockStartColor:[`WebkitBorderBeforeColor`],borderBlockStartStyle:[`WebkitBorderBeforeStyle`],borderBlockStartWidth:[`WebkitBorderBeforeWidth`],borderBlockEnd:[`WebkitBorderAfter`],borderBlockEndColor:[`WebkitBorderAfterColor`],borderBlockEndStyle:[`WebkitBorderAfterStyle`],borderBlockEndWidth:[`WebkitBorderAfterWidth`],borderInlineStart:[`WebkitBorderStart`,`MozBorderStart`],borderInlineStartColor:[`WebkitBorderStartColor`,`MozBorderStartColor`],borderInlineStartStyle:[`WebkitBorderStartStyle`,`MozBorderStartStyle`],borderInlineStartWidth:[`WebkitBorderStartWidth`,`MozBorderStartWidth`],borderInlineEnd:[`WebkitBorderEnd`,`MozBorderEnd`],borderInlineEndColor:[`WebkitBorderEndColor`,`MozBorderEndColor`],borderInlineEndStyle:[`WebkitBorderEndStyle`,`MozBorderEndStyle`],borderInlineEndWidth:[`WebkitBorderEndWidth`,`MozBorderEndWidth`]};function n(e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))for(var i=t[e],a=0,o=i.length;a<o;++a)r[i[a]]=n}})),Iv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t){if(e===`position`&&t===`sticky`)return[`-webkit-sticky`,`sticky`]}})),Lv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=[`-webkit-`,`-moz-`,``],n={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},r={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function i(e,i){if(n.hasOwnProperty(e)&&r.hasOwnProperty(i))return t.map(function(e){return e+i})}})),Rv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=n((fv(),d(sv)));function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,t.default)(e)}})),zv=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=i(Rv()),n=i(Nv()),r=i(U_());function i(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},o={Webkit:`-webkit-`,Moz:`-moz-`,ms:`-ms-`};function s(e,r){if((0,n.default)(e))return e;for(var i=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),a=0,s=i.length;a<s;++a){var c=i[a],l=[c];for(var u in r){var d=(0,t.default)(u);if(c.indexOf(d)>-1&&d!==`order`)for(var f=r[u],p=0,m=f.length;p<m;++p)l.unshift(c.replace(d,o[f[p]]+d))}i[a]=l.join(`,`)}return i.join(`,`)}function c(e,t,n,i){if(typeof t==`string`&&a.hasOwnProperty(e)){var o=s(t,i),c=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(`,`);if(e.indexOf(`Webkit`)>-1)return c;var l=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(`,`);return e.indexOf(`Moz`)>-1?l:(n[`Webkit`+(0,r.default)(e)]=c,n[`Moz`+(0,r.default)(e)]=l,o)}}})),Bv=u(Mv()),Vv=u(Pv()),Hv=u(Fv()),Uv=u(Iv()),Wv=u(Lv()),Gv=u(zv()),Kv=[`Webkit`],qv=[`Moz`],Jv=[`Webkit`,`Moz`],Yv=[`Webkit`,`ms`],Xv={plugins:[Bv.default,Vv.default,Hv.default,Uv.default,Wv.default,Gv.default],prefixMap:{appearance:[`Webkit`,`Moz`,`ms`],userSelect:Jv,textEmphasisPosition:Yv,textEmphasis:Yv,textEmphasisStyle:Yv,textEmphasisColor:Yv,boxDecorationBreak:Yv,clipPath:Kv,maskImage:Yv,maskMode:Yv,maskRepeat:Yv,maskPosition:Yv,maskClip:Yv,maskOrigin:Yv,maskSize:Yv,maskComposite:Yv,mask:Yv,maskBorderSource:Yv,maskBorderMode:Yv,maskBorderSlice:Yv,maskBorderWidth:Yv,maskBorderOutset:Yv,maskBorderRepeat:Yv,maskBorder:Yv,maskType:Yv,textDecorationStyle:Kv,textDecorationSkip:Kv,textDecorationLine:Kv,textDecorationColor:Kv,filter:Kv,breakAfter:Kv,breakBefore:Kv,breakInside:Kv,columnCount:Kv,columnFill:Kv,columnGap:Kv,columnRule:Kv,columnRuleColor:Kv,columnRuleStyle:Kv,columnRuleWidth:Kv,columns:Kv,columnSpan:Kv,columnWidth:Kv,backdropFilter:Kv,hyphens:Kv,flowInto:Kv,flowFrom:Kv,regionFragment:Kv,textOrientation:Kv,tabSize:qv,fontKerning:Kv,textSizeAdjust:Kv}},Zv=(0,u(W_()).default)(Xv),Qv=[`animationKeyframes`],$v=new Map,ey={},ty=1,ny=3,ry={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},iy=`borderTopLeftRadius`,ay=`borderTopRightRadius`,oy=`borderBottomLeftRadius`,sy=`borderBottomRightRadius`,cy=`borderLeftColor`,ly=`borderLeftStyle`,uy=`borderLeftWidth`,dy=`borderRightColor`,fy=`borderRightStyle`,py=`borderRightWidth`,my=`right`,hy=`marginLeft`,gy=`marginRight`,_y=`paddingLeft`,vy=`paddingRight`,yy=`left`,by={[iy]:ay,[ay]:iy,[oy]:sy,[sy]:oy,[cy]:dy,[ly]:fy,[uy]:py,[dy]:cy,[fy]:ly,[py]:uy,[yy]:my,[hy]:gy,[gy]:hy,[_y]:vy,[vy]:_y,[my]:yy},xy={borderStartStartRadius:iy,borderStartEndRadius:ay,borderEndStartRadius:oy,borderEndEndRadius:sy,borderInlineStartColor:cy,borderInlineStartStyle:ly,borderInlineStartWidth:uy,borderInlineEndColor:dy,borderInlineEndStyle:fy,borderInlineEndWidth:py,insetInlineEnd:my,insetInlineStart:yy,marginInlineStart:hy,marginInlineEnd:gy,paddingInlineStart:_y,paddingInlineEnd:vy},Sy=[`clear`,`float`,`textAlign`];function Cy(e){var t={$$css:!0},n=[];function r(e,t,r){var i=Ey(r,t),a=t+i,o=$v.get(a),s;if(o!=null)s=o[0],n.push(o[1]);else{s=ky(`r`,e,e===t?i:a);var c=ry[e]||ny,l=[Dy(s,t,r),c];n.push(l),$v.set(a,[s,l])}return s}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(i!=null){var a;if(Sy.indexOf(n)>-1){var o=r(n,n,`left`),s=r(n,n,`right`);i===`start`?a=[o,s]:i===`end`&&(a=[s,o])}var c=xy[n];if(c!=null&&(a=[r(n,c,i),r(n,by[c],i)]),n===`transitionProperty`){for(var l=Array.isArray(i)?i:[i],u=[],d=0;d<l.length;d++){var f=l[d];typeof f==`string`&&xy[f]!=null&&u.push(d)}if(u.length>0){var p=[...l],m=[...l];u.forEach(e=>{var t=p[e];if(typeof t==`string`){var i=xy[t],o=by[i];p[e]=i,m[e]=o,a=[r(n,n,p),r(n,n,m)]}})}}a==null?a=r(n,n,i):t.$$css$localize=!0,t[n]=a}}),[t,n]}function wy(e,t){var n={$$css:!0},r=[],i=e.animationKeyframes,a=T_(e,Qv),o=ky(`css`,t,JSON.stringify(e)),s=`.`+o,c;if(i!=null){var l=jy(i),u=l[0],d=l[1];c=u.join(`,`),r.push(...d)}var f=Oy(w_(w_({},a),{},{animationName:c}));return r.push(``+s+f),n[o]=o,[n,[[r,ty]]]}function Ty(e,t){var n=e||ey,r={},i={},a=function(){var e=n[o],a=o,s=e;if(!Object.prototype.hasOwnProperty.call(n,o)||e==null)return`continue`;Sy.indexOf(o)>-1&&(e===`start`?s=t?`right`:`left`:e===`end`&&(s=t?`left`:`right`));var c=xy[o];if(c!=null&&(a=t?by[c]:c),o===`transitionProperty`){var l=Array.isArray(e)?e:[e];l.forEach((e,n)=>{if(typeof e==`string`){var r=xy[e];r!=null&&(l[n]=t?by[r]:r,s=l.join(` `))}})}r[a]||(i[a]=s),a===o&&(r[a]=!0)};for(var o in n)if(a()===`continue`)continue;return L_(i,!0)}function Ey(e,t){var n=A_(e,t);return typeof n==`string`?n:JSON.stringify(n||``)}function Dy(e,t,n){var r=[],i=`.`+e;switch(t){case`animationKeyframes`:var a=jy(n),o=a[0],s=a[1],c=Oy({animationName:o.join(`,`)});r.push(``+i+c,...s);break;case`placeholderTextColor`:var l=Oy({color:n,opacity:1});r.push(i+`::-webkit-input-placeholder`+l,i+`::-moz-placeholder`+l,i+`:-ms-input-placeholder`+l,i+`::placeholder`+l);break;case`pointerEvents`:var u=n;if(n===`auto`)u=`auto!important`;else if(n===`none`){u=`none!important`;var d=Oy({pointerEvents:`none`});r.push(i+`>* `+d)}else if(n===`box-none`){u=`none!important`;var f=Oy({pointerEvents:`auto`});r.push(i+`>* `+f)}else if(n===`box-only`){u=`auto!important`;var p=Oy({pointerEvents:`none`});r.push(i+`>* `+p)}var m=Oy({pointerEvents:u});r.push(``+i+m);break;case`scrollbarWidth`:n===`none`&&r.push(i+`::-webkit-scrollbar{display:none}`);var h=Oy({scrollbarWidth:n});r.push(``+i+h);break;default:var g=Oy({[t]:n});r.push(``+i+g)}return r}function Oy(e){var t=Zv(L_(e));return`{`+Object.keys(t).map(e=>{var n=t[e],r=Zee(e);return Array.isArray(n)?n.map(e=>r+`:`+e).join(`;`):r+`:`+n}).sort().join(`;`)+`;}`}function ky(e,t,n){var r=z_(t+n);return e+`-`+r}function Ay(e){var t=[`-webkit-`,``],n=ky(`r`,`animation`,JSON.stringify(e)),r=`{`+Object.keys(e).map(t=>{var n=e[t],r=Oy(n);return``+t+r}).join(``)+`}`;return[n,t.map(e=>`@`+e+`keyframes `+n+r)]}function jy(e){if(typeof e==`number`)throw Error(`Invalid CSS keyframes type: `+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if(typeof e==`string`)t.push(e);else{var r=Ay(e),i=r[0],a=r[1];t.push(i),n.push(...a)}}),[t,n]}function My(e,t,n){if(j_){var r=t??document,i=r.getElementById(e);if(i==null){if(i=document.createElement(`style`),i.setAttribute(`id`,e),typeof n==`string`&&i.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(i,r.firstChild);else{var a=r.head;a&&a.insertBefore(i,a.firstChild)}}return i.sheet}return null}var Ny=Array.prototype.slice;function Py(e){var t={},n={};if(e!=null){var r;Ny.call(e.cssRules).forEach((e,i)=>{var a=e.cssText;if(a.indexOf(`stylesheet-group`)>-1)r=Ly(e),t[r]={start:i,rules:[a]};else{var o=By(a);o!=null&&(n[o]=!0,t[r].rules.push(a))}})}function i(e,n,r){var i=Ry(t),a=i.indexOf(n)+1,o=i[a],s=o!=null&&t[o].start!=null?t[o].start:e.cssRules.length,c=Vy(e,r,s);if(c){t[n].start??(t[n].start=s);for(var l=a;l<i.length;l+=1){var u=i[l],d=t[u].start||0;t[u].start=d+1}}return c}return{getTextContent(){return Ry(t).map(e=>{var n=t[e].rules,r=n.shift();return n.sort(),n.unshift(r),n.join(`
35
- `)}).join(`
36
- `)},insert(r,a){var o=Number(a);if(t[o]==null){var s=Fy(o);t[o]={start:null,rules:[s]},e!=null&&i(e,o,s)}var c=By(r);c!=null&&n[c]==null&&(n[c]=!0,t[o].rules.push(r),e!=null&&(i(e,o,r)||t[o].rules.pop()))}}}function Fy(e){return`[stylesheet-group="`+e+`"]{}`}var Iy=/["']/g;function Ly(e){return Number(e.selectorText.split(Iy)[1])}function Ry(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var zy=/\s*([,])\s*/g;function By(e){var t=e.split(`{`)[0].trim();return t===``?null:t.replace(zy,`$1`)}function Vy(e,t,n){try{return e.insertRule(t,n),!0}catch{return!1}}var Hy=`react-native-stylesheet`,Uy=new WeakMap,Wy=[],Gy=[`html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}`,`body{margin:0;}`,`button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}`,`input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}`];function Ky(e,t){t===void 0&&(t=Hy);var n;if(j_){var r=e==null?document:e.getRootNode();if(Wy.length===0)n=Py(My(t)),Gy.forEach(e=>{n.insert(e,0)}),Uy.set(r,Wy.length),Wy.push(n);else{var i=Uy.get(r);if(i==null){var a=Wy[0],o=a==null?``:a.getTextContent();n=Py(My(t,r,o)),Uy.set(r,Wy.length),Wy.push(n)}else n=Wy[i]}}else Wy.length===0?(n=Py(My(t)),Gy.forEach(e=>{n.insert(e,0)}),Wy.push(n)):n=Wy[0];return{getTextContent(){return n.getTextContent()},id:t,insert(e,t){Wy.forEach(n=>{n.insert(e,t)})}}}var qy=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.localizeStyle=i;var t=new WeakMap,n=`$$css$localize`;function r(e,t){var r={};for(var i in e)if(i!==n){var a=e[i];r[i]=Array.isArray(a)?t?a[1]:a[0]:a}return r}function i(e,i){if(e[n]!=null){var a=+!!i;if(t.has(e)){var o=t.get(e),s=o[a];return s??(s=r(e,i),o[a]=s,t.set(e,o)),s}var c=r(e,i),l=[,,];return l[a]=c,t.set(e,l),c}return e}})),Jy=s(((e,t)=>{t.exports=qy()})),Yy={},Xy={height:0,width:0},Zy=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,i=e.shadowRadius,a=n||Xy,o=a.height,s=a.width,c=A_(s),l=A_(o),u=A_(i||0),d=O_(t||`black`,r);if(d!=null&&c!=null&&l!=null&&u!=null)return c+` `+l+` `+u+` `+d},Qy=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,i=n||Xy,a=i.height,o=i.width,s=r||0,c=A_(o),l=A_(a),u=A_(s),d=A_(t,`textShadowColor`);if(d&&(a!==0||o!==0||s!==0)&&c!=null&&l!=null&&u!=null)return c+` `+l+` `+u+` `+d},$y=e=>{if(typeof e==`string`)return e;var t=A_(e.offsetX)||0,n=A_(e.offsetY)||0,r=A_(e.blurRadius)||0,i=A_(e.spreadDistance)||0,a=O_(e.color)||`black`;return(e.inset?`inset `:``)+t+` `+n+` `+r+` `+i+` `+a},eb=e=>e.map($y).join(`, `),tb=e=>{var t=Object.keys(e)[0],n=e[t];if(t===`matrix`||t===`matrix3d`)return t+`(`+n.join(`,`)+`)`;var r=A_(n,t);return t+`(`+r+`)`},nb=e=>e.map(tb).join(` `),rb=e=>e.map(e=>A_(e)).join(` `),ib={borderBottomEndRadius:`borderEndEndRadius`,borderBottomStartRadius:`borderEndStartRadius`,borderTopEndRadius:`borderStartEndRadius`,borderTopStartRadius:`borderStartStartRadius`,borderEndColor:`borderInlineEndColor`,borderEndStyle:`borderInlineEndStyle`,borderEndWidth:`borderInlineEndWidth`,borderStartColor:`borderInlineStartColor`,borderStartStyle:`borderInlineStartStyle`,borderStartWidth:`borderInlineStartWidth`,end:`insetInlineEnd`,marginEnd:`marginInlineEnd`,marginHorizontal:`marginInline`,marginStart:`marginInlineStart`,marginVertical:`marginBlock`,paddingEnd:`paddingInlineEnd`,paddingHorizontal:`paddingInline`,paddingStart:`paddingInlineStart`,paddingVertical:`paddingBlock`,start:`insetInlineStart`},ab={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},ob=function(e,t){t===void 0&&(t={});var n=e||Yy,r={};if(t.shadow,n.shadowColor!=null||n.shadowOffset!=null||n.shadowOpacity!=null||n.shadowRadius!=null){var i=Zy(n);i!=null&&(r.boxShadow=i)}if(t.textShadow,n.textShadowColor!=null||n.textShadowOffset!=null||n.textShadowRadius!=null){var a=Qy(n);if(a!=null&&r.textShadow==null){var o=n.textShadow;r.textShadow=o?o+`, `+a:a}}for(var s in n)if(ab[s]==null&&s!==`shadowColor`&&s!==`shadowOffset`&&s!==`shadowOpacity`&&s!==`shadowRadius`&&s!==`textShadowColor`&&s!==`textShadowOffset`&&s!==`textShadowRadius`){var c=n[s],l=ib[s]||s,u=c;if(!(!Object.prototype.hasOwnProperty.call(n,s)||l!==s&&n[l]!=null)){if(l===`aspectRatio`&&typeof u==`number`)r[l]=u.toString();else if(l===`boxShadow`){Array.isArray(u)&&(u=eb(u));var d=r.boxShadow;r.boxShadow=d?u+`, `+d:u}else l===`fontVariant`?(Array.isArray(u)&&u.length>0&&(u=u.join(` `)),r[l]=u):l===`textAlignVertical`?n.verticalAlign??(r.verticalAlign=u===`center`?`middle`:u):l===`transform`?(Array.isArray(u)&&(u=nb(u)),r.transform=u):l===`transformOrigin`?(Array.isArray(u)&&(u=rb(u)),r.transformOrigin=u):r[l]=u}}return r},sb=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.styleq=void 0;var t=new WeakMap,n=`$$css`;function r(e){var r,i,a;return e!=null&&(r=e.disableCache===!0,i=e.disableMix===!0,a=e.transform),function(){for(var e=[],o=``,s=null,c=r?null:t,l=Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var d=l.pop();if(d!=null&&d!==!1){if(Array.isArray(d)){for(var f=0;f<d.length;f++)l.push(d[f]);continue}var p=a==null?d:a(d);if(p.$$css){var m=``;if(c!=null&&c.has(p)){var h=c.get(p);h!=null&&(m=h[0],e.push.apply(e,h[1]),c=h[2])}else{var g=[];for(var _ in p){var v=p[_];_!==n&&(typeof v==`string`||v===null?e.includes(_)||(e.push(_),c!=null&&g.push(_),typeof v==`string`&&(m+=m?` `+v:v)):console.error(`styleq: ${_} typeof ${String(v)} is not "string" or "null".`))}if(c!=null){var y=new WeakMap;c.set(p,[m,g,y]),c=y}}m&&(o=o?m+` `+o:m)}else if(i)s??={},s=Object.assign({},p,s);else{var b=null;for(var x in p){var S=p[x];S!==void 0&&(e.includes(x)||(S!=null&&(s??={},b??={},b[x]=S),e.push(x),c=null))}b!=null&&(s=Object.assign(b,s))}}}return[o,s]}}var i=r();e.styleq=i,i.factory=r})),cb=Jy(),lb=sb(),ub=[`writingDirection`],db=new WeakMap,fb=Ky(),pb={shadow:!0,textShadow:!0};function mb(e,t){t===void 0&&(t={});var n=t,r=n.writingDirection,i=T_(n,ub),a=r===`rtl`;return lb.styleq.factory({transform(e){var t=db.get(e);return t==null?ob(e,w_(w_({},pb),i)):(0,cb.localizeStyle)(t,a)}})(e)}function hb(e){e.forEach(e=>{var t=e[0],n=e[1];fb!=null&&t.forEach(e=>{fb.insert(e,n)})})}function gb(e){var t=Cy(ob(e,pb)),n=t[0],r=t[1];return hb(r),n}function _b(e,t){var n=wy(e,t),r=n[0],i=n[1];return hb(i),r}var vb={position:`absolute`,left:0,right:0,top:0,bottom:0},yb=bb({x:w_({},vb)}).x;function bb(e){return Object.keys(e).forEach(t=>{var n=e[t];if(n!=null&&n.$$css!==!0){var r=t.indexOf(`$raw`)>-1?_b(n,t.split(`$raw`)[0]):gb(n);db.set(n,r)}}),e}function yte(e,t){return[e,t]}function bte(){for(var e=[...arguments].flat(1/0),t={},n=0;n<e.length;n++){var r=e[n];typeof r==`object`&&r&&Object.assign(t,r)}return t}function xte(){return{id:fb.id,textContent:fb.getTextContent()}}function xb(e,t){t===void 0&&(t={});var n=t.writingDirection===`rtl`,r=mb(e,t);return Array.isArray(r)&&r[1]!=null&&(r[1]=Ty(r[1],n)),r}xb.absoluteFill=yb,xb.absoluteFillObject=vb,xb.create=bb,xb.compose=yte,xb.flatten=bte,xb.getSheet=xte,xb.hairlineWidth=1,j_&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=xb.flatten);var Sb=xb,Ste=`aria-activedescendant.accessibilityActiveDescendant.aria-atomic.accessibilityAtomic.aria-autocomplete.accessibilityAutoComplete.aria-busy.accessibilityBusy.aria-checked.accessibilityChecked.aria-colcount.accessibilityColumnCount.aria-colindex.accessibilityColumnIndex.aria-colspan.accessibilityColumnSpan.aria-controls.accessibilityControls.aria-current.accessibilityCurrent.aria-describedby.accessibilityDescribedBy.aria-details.accessibilityDetails.aria-disabled.accessibilityDisabled.aria-errormessage.accessibilityErrorMessage.aria-expanded.accessibilityExpanded.aria-flowto.accessibilityFlowTo.aria-haspopup.accessibilityHasPopup.aria-hidden.accessibilityHidden.aria-invalid.accessibilityInvalid.aria-keyshortcuts.accessibilityKeyShortcuts.aria-label.accessibilityLabel.aria-labelledby.accessibilityLabelledBy.aria-level.accessibilityLevel.aria-live.accessibilityLiveRegion.aria-modal.accessibilityModal.aria-multiline.accessibilityMultiline.aria-multiselectable.accessibilityMultiSelectable.aria-orientation.accessibilityOrientation.aria-owns.accessibilityOwns.aria-placeholder.accessibilityPlaceholder.aria-posinset.accessibilityPosInSet.aria-pressed.accessibilityPressed.aria-readonly.accessibilityReadOnly.aria-required.accessibilityRequired.role.accessibilityRole.aria-roledescription.accessibilityRoleDescription.aria-rowcount.accessibilityRowCount.aria-rowindex.accessibilityRowIndex.aria-rowspan.accessibilityRowSpan.aria-selected.accessibilitySelected.aria-setsize.accessibilitySetSize.aria-sort.accessibilitySort.aria-valuemax.accessibilityValueMax.aria-valuemin.accessibilityValueMin.aria-valuenow.accessibilityValueNow.aria-valuetext.accessibilityValueText.dataSet.focusable.id.nativeID.pointerEvents.style.tabIndex.testID`.split(`.`),Cte={},wte=Object.prototype.hasOwnProperty,Tte=Array.isArray,Ete=/[A-Z]/g;function Dte(e){return`-`+e.toLowerCase()}function Ote(e){return e.replace(Ete,Dte)}function Cb(e){return Tte(e)?e.join(` `):e}var kte=Sb.create({auto:{pointerEvents:`auto`},"box-none":{pointerEvents:`box-none`},"box-only":{pointerEvents:`box-only`},none:{pointerEvents:`none`}}),Ate=(e,t,n)=>{t||=Cte;var r=t,i=r[`aria-activedescendant`],a=r.accessibilityActiveDescendant,o=r[`aria-atomic`],s=r.accessibilityAtomic,c=r[`aria-autocomplete`],l=r.accessibilityAutoComplete,u=r[`aria-busy`],d=r.accessibilityBusy,f=r[`aria-checked`],p=r.accessibilityChecked,m=r[`aria-colcount`],h=r.accessibilityColumnCount,g=r[`aria-colindex`],_=r.accessibilityColumnIndex,v=r[`aria-colspan`],y=r.accessibilityColumnSpan,b=r[`aria-controls`],x=r.accessibilityControls,S=r[`aria-current`],C=r.accessibilityCurrent,w=r[`aria-describedby`],T=r.accessibilityDescribedBy,E=r[`aria-details`],D=r.accessibilityDetails,O=r[`aria-disabled`],k=r.accessibilityDisabled,A=r[`aria-errormessage`],j=r.accessibilityErrorMessage,M=r[`aria-expanded`],ee=r.accessibilityExpanded,te=r[`aria-flowto`],ne=r.accessibilityFlowTo,N=r[`aria-haspopup`],P=r.accessibilityHasPopup,re=r[`aria-hidden`],ie=r.accessibilityHidden,ae=r[`aria-invalid`],oe=r.accessibilityInvalid,se=r[`aria-keyshortcuts`],ce=r.accessibilityKeyShortcuts,le=r[`aria-label`],ue=r.accessibilityLabel,de=r[`aria-labelledby`],fe=r.accessibilityLabelledBy,pe=r[`aria-level`],me=r.accessibilityLevel,he=r[`aria-live`],ge=r.accessibilityLiveRegion,F=r[`aria-modal`],_e=r.accessibilityModal,I=r[`aria-multiline`],ve=r.accessibilityMultiline,ye=r[`aria-multiselectable`],be=r.accessibilityMultiSelectable,xe=r[`aria-orientation`],L=r.accessibilityOrientation,Se=r[`aria-owns`],Ce=r.accessibilityOwns,we=r[`aria-placeholder`],Te=r.accessibilityPlaceholder,Ee=r[`aria-posinset`],De=r.accessibilityPosInSet,Oe=r[`aria-pressed`],ke=r.accessibilityPressed,Ae=r[`aria-readonly`],je=r.accessibilityReadOnly,Me=r[`aria-required`],Ne=r.accessibilityRequired;r.role,r.accessibilityRole;var Pe=r[`aria-roledescription`],Fe=r.accessibilityRoleDescription,Ie=r[`aria-rowcount`],Le=r.accessibilityRowCount,Re=r[`aria-rowindex`],ze=r.accessibilityRowIndex,Be=r[`aria-rowspan`],Ve=r.accessibilityRowSpan,He=r[`aria-selected`],Ue=r.accessibilitySelected,We=r[`aria-setsize`],Ge=r.accessibilitySetSize,Ke=r[`aria-sort`],qe=r.accessibilitySort,Je=r[`aria-valuemax`],Ye=r.accessibilityValueMax,Xe=r[`aria-valuemin`],Ze=r.accessibilityValueMin,Qe=r[`aria-valuenow`],$e=r.accessibilityValueNow,et=r[`aria-valuetext`],tt=r.accessibilityValueText,nt=r.dataSet,rt=r.focusable,it=r.id,at=r.nativeID,ot=r.pointerEvents,st=r.style,ct=r.tabIndex,lt=r.testID,ut=T_(r,Ste),dt=O||k,ft=x_.propsToAriaRole(t),pt=i??a;pt!=null&&(ut[`aria-activedescendant`]=pt);var mt=o==null?s:i;mt!=null&&(ut[`aria-atomic`]=mt);var ht=c??l;ht!=null&&(ut[`aria-autocomplete`]=ht);var gt=u??d;gt!=null&&(ut[`aria-busy`]=gt);var _t=f??p;_t!=null&&(ut[`aria-checked`]=_t);var vt=m??h;vt!=null&&(ut[`aria-colcount`]=vt);var yt=g??_;yt!=null&&(ut[`aria-colindex`]=yt);var bt=v??y;bt!=null&&(ut[`aria-colspan`]=bt);var xt=b??x;xt!=null&&(ut[`aria-controls`]=Cb(xt));var St=S??C;St!=null&&(ut[`aria-current`]=St);var Ct=w??T;Ct!=null&&(ut[`aria-describedby`]=Cb(Ct));var wt=E??D;wt!=null&&(ut[`aria-details`]=wt),dt===!0&&(ut[`aria-disabled`]=!0,(e===`button`||e===`form`||e===`input`||e===`select`||e===`textarea`)&&(ut.disabled=!0));var Tt=A??j;Tt!=null&&(ut[`aria-errormessage`]=Tt);var Et=M??ee;Et!=null&&(ut[`aria-expanded`]=Et);var Dt=te??ne;Dt!=null&&(ut[`aria-flowto`]=Cb(Dt));var Ot=N??P;Ot!=null&&(ut[`aria-haspopup`]=Ot);var kt=re??ie;kt===!0&&(ut[`aria-hidden`]=kt);var At=ae??oe;At!=null&&(ut[`aria-invalid`]=At);var jt=se??ce;jt!=null&&(ut[`aria-keyshortcuts`]=Cb(jt));var Mt=le??ue;Mt!=null&&(ut[`aria-label`]=Mt);var Nt=de??fe;Nt!=null&&(ut[`aria-labelledby`]=Cb(Nt));var Pt=pe??me;Pt!=null&&(ut[`aria-level`]=Pt);var Ft=he??ge;Ft!=null&&(ut[`aria-live`]=Ft===`none`?`off`:Ft);var It=F??_e;It!=null&&(ut[`aria-modal`]=It);var Lt=I??ve;Lt!=null&&(ut[`aria-multiline`]=Lt);var Rt=ye??be;Rt!=null&&(ut[`aria-multiselectable`]=Rt);var zt=xe??L;zt!=null&&(ut[`aria-orientation`]=zt);var Bt=Se??Ce;Bt!=null&&(ut[`aria-owns`]=Cb(Bt));var Vt=we??Te;Vt!=null&&(ut[`aria-placeholder`]=Vt);var Ht=Ee??De;Ht!=null&&(ut[`aria-posinset`]=Ht);var Ut=Oe??ke;Ut!=null&&(ut[`aria-pressed`]=Ut);var Wt=Ae??je;Wt!=null&&(ut[`aria-readonly`]=Wt,(e===`input`||e===`select`||e===`textarea`)&&(ut.readOnly=!0));var Gt=Me??Ne;Gt!=null&&(ut[`aria-required`]=Gt,(e===`input`||e===`select`||e===`textarea`)&&(ut.required=Ne)),ft!=null&&(ut.role=ft===`none`?`presentation`:ft);var Kt=Pe??Fe;Kt!=null&&(ut[`aria-roledescription`]=Kt);var qt=Ie??Le;qt!=null&&(ut[`aria-rowcount`]=qt);var Jt=Re??ze;Jt!=null&&(ut[`aria-rowindex`]=Jt);var Yt=Be??Ve;Yt!=null&&(ut[`aria-rowspan`]=Yt);var Xt=He??Ue;Xt!=null&&(ut[`aria-selected`]=Xt);var Zt=We??Ge;Zt!=null&&(ut[`aria-setsize`]=Zt);var Qt=Ke??qe;Qt!=null&&(ut[`aria-sort`]=Qt);var $t=Je??Ye;$t!=null&&(ut[`aria-valuemax`]=$t);var en=Xe??Ze;en!=null&&(ut[`aria-valuemin`]=en);var tn=Qe??$e;tn!=null&&(ut[`aria-valuenow`]=tn);var nn=et??tt;if(nn!=null&&(ut[`aria-valuetext`]=nn),nt!=null){for(var rn in nt)if(wte.call(nt,rn)){var an=Ote(rn),on=nt[rn];on!=null&&(ut[`data-`+an]=on)}}ct===0||ct===`0`||ct===-1||ct===`-1`?ut.tabIndex=ct:(rt===!1&&(ut.tabIndex=`-1`),e===`a`||e===`button`||e===`input`||e===`select`||e===`textarea`?(rt===!1||k===!0)&&(ut.tabIndex=`-1`):ft===`button`||ft===`checkbox`||ft===`link`||ft===`radio`||ft===`textbox`||ft===`switch`?rt!==!1&&(ut.tabIndex=`0`):rt===!0&&(ut.tabIndex=`0`));var sn=Sb([st,ot&&kte[ot]],w_({writingDirection:`ltr`},n)),cn=sn[0],ln=sn[1];cn&&(ut.className=cn),ln&&(ut.style=ln);var un=it??at;return un!=null&&(ut.id=un),lt!=null&&(ut[`data-testid`]=lt),ut.type==null&&e===`button`&&(ut.type=`button`),ut},jte=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),wb=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`far`,`glk`,`he`,`iw`,`khw`,`ks`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),Tb=new Map;function Mte(e){var t=Tb.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=jte.has(r)}catch{var i=e.split(`-`)[0];n=wb.has(i)}else{var a=e.split(`-`)[0];n=wb.has(a)}return Tb.set(e,n),n}var Eb=(0,b.createContext)({direction:`ltr`,locale:`en-US`});function Db(e){return Mte(e)?`rtl`:`ltr`}function Nte(e){var t=e.direction,n=e.locale,r=e.children;return t||n?b.createElement(Eb.Provider,{children:r,value:{direction:n?Db(n):t,locale:n}}):r}function Pte(){return(0,b.useContext)(Eb)}var Ob=(e,t,n)=>{var r;e&&e.constructor===String&&(r=x_.propsToAccessibilityComponent(t));var i=r||e,a=Ate(i,t,n),o=b.createElement(i,a);return a.dir?b.createElement(Nte,{children:o,direction:a.dir,locale:a.lang}):o},kb=e=>{if(e!=null&&e.nodeType===1&&typeof e.getBoundingClientRect==`function`)return e.getBoundingClientRect()},Ab={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Fte=[`ms`,`Moz`,`O`,`Webkit`],Ite=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(Ab).forEach(e=>{Fte.forEach(t=>{Ab[Ite(t,e)]=Ab[e]})});function Lte(e,t,n){return t==null||typeof t==`boolean`||t===``?``:!n&&typeof t==`number`&&t!==0&&!(Ab.hasOwnProperty(e)&&Ab[e])?t+`px`:(``+t).trim()}function Rte(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf(`--`)===0,a=Lte(r,t[r],i);r===`float`&&(r=`cssFloat`),i?n.setProperty(r,a):n[r]=a}}var jb=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&e.nodeType===1;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return i-=window.scrollY,r-=window.scrollX,{width:n,height:t,top:i,left:r}},Mb=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=jb(r),i=jb(e),a=i.height,o=i.left,s=i.top,c=i.width;n(o-t.left,s-t.top,c,a,o,s)}},0)},zte={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},Nb={blur(e){try{e.blur()}catch{}},focus(e){try{var t=e.nodeName;e.getAttribute(`tabIndex`)==null&&e.isContentEditable!==!0&&zte[t]==null&&e.setAttribute(`tabIndex`,`-1`),e.focus()}catch{}},measure(e,t){Mb(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=kb(e),r=n.height,i=n.left,a=n.top,o=n.width;t(i,a,o,r)},0)},measureLayout(e,t,n,r){Mb(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case`style`:Rte(e,r);break;case`class`:case`className`:e.setAttribute(`class`,r);break;case`text`:case`value`:e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}},Bte={OS:`web`,select:e=>`web`in e?e.web:e.default,get isTesting(){return!1},get Version(){return`0.0.0`}};function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pb.apply(null,arguments)}var Vte={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},Hte={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,inert:!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},Ute={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},Wte={onBlur:!0,onFocus:!0},Gte={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},Kte={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},qte={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},Jte={style:!0};function Yte(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&t[r]===!0&&(n[r]=e[r]);return n}var Fb=j_?b.useLayoutEffect:b.useEffect,Ib=`__reactLayoutHandler`,Lb=null;function Xte(){return j_&&window.ResizeObserver!==void 0&&(Lb??=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[Ib];typeof n==`function`&&Nb.measure(t,(t,r,i,a,o,s)=>{var c={nativeEvent:{layout:{x:t,y:r,width:i,height:a,left:o,top:s}},timeStamp:Date.now()};Object.defineProperty(c.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(c)})})})),Lb}function Zte(e,t){var n=Xte();Fb(()=>{var n=e.current;n!=null&&(n[Ib]=t)},[e,t]),Fb(()=>{var t=e.current;return t!=null&&n!=null&&(typeof t[Ib]==`function`?n.observe(t):n.unobserve(t)),()=>{t!=null&&n!=null&&n.unobserve(t)}},[e,n])}function Rb(){var e=[...arguments];return function(t){e.forEach(e=>{if(e!=null){if(typeof e==`function`){e(t);return}if(typeof e==`object`){e.current=t;return}console.error(`mergeRefs cannot handle Refs of type boolean, number or string, received ref `+String(e))}})}}function zb(){var e=[...arguments];return b.useMemo(()=>Rb(...e),[...e])}var Bb=typeof Symbol==`function`&&typeof Symbol()==`symbol`?Symbol():Object.freeze({});function Qte(e){var t=b.useRef(Bb);return t.current===Bb&&(t.current=e()),t.current}function $te(e){return e.pointerEvents,e.style,Qte(()=>e=>{e!=null&&(e.measure=t=>Nb.measure(e,t),e.measureLayout=(t,n,r)=>Nb.measureLayout(e,t,r,n),e.measureInWindow=t=>Nb.measureInWindow(e,t))})}var Vb=()=>{},ene={},tne=[];function Hb(e){return e>20?e%20:e}function Ub(e,t){var n,r=!1,i,a,o=e.changedTouches,s=e.type,c=e.metaKey===!0,l=e.shiftKey===!0,u=o&&o[0].force||0,d=Hb(o&&o[0].identifier||0),f=o&&o[0].clientX||e.clientX,p=o&&o[0].clientY||e.clientY,m=o&&o[0].pageX||e.pageX,h=o&&o[0].pageY||e.pageY,g=typeof e.preventDefault==`function`?e.preventDefault.bind(e):Vb,_=e.timeStamp;function v(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:Hb(e.identifier),get locationX(){return x(e.clientX)},get locationY(){return S(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:_}))}if(o!=null)i=v(o),a=v(e.touches);else{var y=[{force:u,identifier:d,get locationX(){return x(f)},get locationY(){return S(p)},pageX:m,pageY:h,target:e.target,timestamp:_}];i=y,a=s===`mouseup`||s===`dragstart`?tne:y}var b={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:ene,eventPhase:e.eventPhase,isDefaultPrevented(){return e.defaultPrevented},isPropagationStopped(){return r},isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:c,shiftKey:l,changedTouches:i,force:u,identifier:d,get locationX(){return x(f)},get locationY(){return S(p)},pageX:m,pageY:h,target:e.target,timestamp:_,touches:a,type:s},persist:Vb,preventDefault:g,stopPropagation(){r=!0},target:e.target,timeStamp:_,touchHistory:t.touchHistory};function x(e){if(n||=kb(b.currentTarget),n)return e-n.left}function S(e){if(n||=kb(b.currentTarget),n)return e-n.top}return b}var nne=`scroll`;function Wb(e){return e===`touchstart`||e===`mousedown`}function Gb(e){return e===`touchmove`||e===`mousemove`}function Kb(e){return e===`touchend`||e===`mouseup`||qb(e)}function qb(e){return e===`touchcancel`||e===`dragstart`}function rne(e){return e===nne}function ine(e){return e===`select`||e===`selectionchange`}function ane(){var e=window.getSelection(),t=e.toString(),n=e.anchorNode,r=e.focusNode,i=n&&n.nodeType===window.Node.TEXT_NODE||r&&r.nodeType===window.Node.TEXT_NODE;return t.length>=1&&t!==`
37
- `&&i}var Jb=`__reactResponderId`;function one(e){if(e.type===`selectionchange`){var t=window.getSelection().anchorNode;return Yb(t)}return e.composedPath==null?Yb(e.target):e.composedPath()}function Yb(e){for(var t=[];e!=null&&e!==document.body;)t.push(e),e=e.parentNode;return t}function sne(e){return e==null?null:e[Jb]}function cne(e,t){e!=null&&(e[Jb]=t)}function lne(e){for(var t=[],n=[],r=one(e),i=0;i<r.length;i++){var a=r[i],o=sne(a);o!=null&&(t.push(o),n.push(a))}return{idPath:t,nodePath:n}}function une(e,t){var n=e.length,r=t.length;if(n===0||r===0||e[n-1]!==t[r-1])return null;var i=e[0],a=0,o=t[0],s=0;n-r>0&&(a=n-r,i=e[a],n=r),r-n>0&&(s=r-n,o=t[s],r=n);for(var c=n;c--;){if(i===o)return i;i=e[a++],o=t[s++]}return null}function dne(e,t){if(!t||t.length===0)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(r!=null&&e.contains(r))return!0}return!1}function fne(e){return e.type===`selectionchange`?ane():e.type===`select`}function pne(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,a=e.type,o=a===`touchstart`||a===`touchmove`,s=a===`mousedown`&&(n===0||r===1),c=a===`mousemove`&&r===1,l=t===!1&&i===!1;return!!(o||s&&l||c&&l)}var Xb=20;function Zb(e){return e.timeStamp||e.timestamp}function mne(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Zb(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Zb(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Zb(e)}}function hne(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=Zb(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=Zb(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=Zb(t)}function Qb(e){var t=e.identifier;return t??console.error(`Touch object is missing identifier.`),t}function gne(e,t){var n=Qb(e),r=t.touchBank[n];r?hne(r,e):t.touchBank[n]=mne(e),t.mostRecentTimeStamp=Zb(e)}function _ne(e,t){var n=t.touchBank[Qb(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Zb(e),t.mostRecentTimeStamp=Zb(e)):console.warn(`Cannot record touch move without a touch start.
38
- `,`Touch Move: `+$b(e)+`
39
- `,`Touch Bank: `+ex(t))}function vne(e,t){var n=t.touchBank[Qb(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Zb(e),t.mostRecentTimeStamp=Zb(e)):console.warn(`Cannot record touch end without a touch start.
40
- `,`Touch End: `+$b(e)+`
41
- `,`Touch Bank: `+ex(t))}function $b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:Zb(e)})}function ex(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,Xb));return t.length>Xb&&(n+=` (original size: `+t.length+`)`),n}var yne=class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(Gb(e))t.changedTouches.forEach(e=>_ne(e,n));else if(Wb(e))t.changedTouches.forEach(e=>gne(e,n)),n.numberActiveTouches=t.touches.length,n.numberActiveTouches===1&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(Kb(e)&&(t.changedTouches.forEach(e=>vne(e,n)),n.numberActiveTouches=t.touches.length,n.numberActiveTouches===1))for(var r=n.touchBank,i=0;i<r.length;i++){var a=r[i];if(a!=null&&a.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}},bne={},tx=[`onStartShouldSetResponderCapture`,`onStartShouldSetResponder`,{bubbles:!0}],nx=[`onMoveShouldSetResponderCapture`,`onMoveShouldSetResponder`,{bubbles:!0}],xne={touchstart:tx,mousedown:tx,touchmove:nx,mousemove:nx,scroll:[`onScrollShouldSetResponderCapture`,`onScrollShouldSetResponder`,{bubbles:!1}]},rx={id:null,idPath:null,node:null},ix=new Map,ax=!1,ox=0,sx={id:null,node:null,idPath:null},cx=new yne;function lx(e){sx=e}function ux(e){return ix.get(e)??bne}function dx(e){var t=e.type,n=e.target;if(t===`touchstart`&&(ax=!0),(t===`touchmove`||ox>1)&&(ax=!1),!(t===`mousedown`&&ax||t===`mousemove`&&ax||t===`mousemove`&&ox<1)){if(ax&&t===`mouseup`){ox===0&&(ax=!1);return}var r=Wb(t)&&pne(e),i=Gb(t),a=Kb(t),o=rne(t),s=ine(t),c=Ub(e,cx);(r||i||a)&&(e.touches?ox=e.touches.length:r?ox=1:a&&(ox=0),cx.recordTouchTrack(t,c.nativeEvent));var l=lne(e),u=!1,d;if(r||i||o&&ox>0){var f=sx.idPath,p=l.idPath;if(f!=null&&p!=null){var m=une(f,p);if(m!=null){var h=p.indexOf(m)+ +(m===sx.id);l={idPath:p.slice(h),nodePath:l.nodePath.slice(h)}}else l=null}l!=null&&(d=Sne(l,e,c),d!=null&&(Cne(c,d),u=!0))}if(sx.id!=null&&sx.node!=null){var g=sx,_=g.id,v=g.node,y=ux(_),b=y.onResponderStart,x=y.onResponderMove,S=y.onResponderEnd,C=y.onResponderRelease,w=y.onResponderTerminate,T=y.onResponderTerminationRequest;if(c.bubbles=!1,c.cancelable=!1,c.currentTarget=v,r)b!=null&&(c.dispatchConfig.registrationName=`onResponderStart`,b(c));else if(i)x!=null&&(c.dispatchConfig.registrationName=`onResponderMove`,x(c));else{var E=qb(t)||t===`contextmenu`||t===`blur`&&n===window||t===`blur`&&n.contains(v)&&e.relatedTarget!==v||o&&ox===0||o&&n.contains(v)&&n!==v||s&&fne(e),D=a&&!E&&!dne(v,e.touches);if(a&&S!=null&&(c.dispatchConfig.registrationName=`onResponderEnd`,S(c)),D&&(C!=null&&(c.dispatchConfig.registrationName=`onResponderRelease`,C(c)),lx(rx)),E){var O=!0;(t===`contextmenu`||t===`scroll`||t===`selectionchange`)&&(u?O=!1:T!=null&&(c.dispatchConfig.registrationName=`onResponderTerminationRequest`,T(c)===!1&&(O=!1))),O&&(w!=null&&(c.dispatchConfig.registrationName=`onResponderTerminate`,w(c)),lx(rx),ax=!1,ox=0)}}}}}function Sne(e,t,n){var r=xne[t.type];if(r!=null){for(var i=e.idPath,a=e.nodePath,o=r[0],s=r[1],c=r[2].bubbles,l=function(e,t,r){var a=ux(e)[r];if(a!=null&&(n.currentTarget=t,a(n)===!0))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},u=i.length-1;u>=0;u--){var d=i[u],f=a[u],p=l(d,f,o);if(p!=null)return p;if(n.isPropagationStopped()===!0)return}if(c)for(var m=0;m<i.length;m++){var h=i[m],g=a[m],_=l(h,g,s);if(_!=null)return _;if(n.isPropagationStopped()===!0)return}else{var v=i[0],y=a[0];if(t.target===y)return l(v,y,s)}}}function Cne(e,t){var n=sx,r=n.id,i=n.node,a=t.id,o=t.node,s=ux(a),c=s.onResponderGrant,l=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=o,r==null)c!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderGrant`,c(e)),lx(t);else{var u=ux(r),d=u.onResponderTerminate,f=u.onResponderTerminationRequest,p=!0;f!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName=`onResponderTerminationRequest`,f(e)===!1&&(p=!1)),p?(d!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName=`onResponderTerminate`,d(e)),c!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderGrant`,c(e)),lx(t)):l!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderReject`,l(e))}}var wne=[`blur`,`scroll`],Tne=[`mousedown`,`mousemove`,`mouseup`,`dragstart`,`touchstart`,`touchmove`,`touchend`,`touchcancel`,`contextmenu`,`select`,`selectionchange`];function Ene(){j_&&window.__reactResponderSystemActive==null&&(window.addEventListener(`blur`,dx),Tne.forEach(e=>{document.addEventListener(e,dx)}),wne.forEach(e=>{document.addEventListener(e,dx,!0)}),window.__reactResponderSystemActive=!0)}function Dne(e,t,n){cne(t,e),ix.set(e,n)}function fx(e){sx.id===e&&One(),ix.has(e)&&ix.delete(e)}function One(){var e=sx,t=e.id,n=e.node;if(t!=null&&n!=null){var r=ux(t).onResponderTerminate;if(r!=null){var i=Ub({},cx);i.currentTarget=n,r(i)}lx(rx)}ax=!1,ox=0}function kne(){return sx.node}var Ane={},jne=0;function Mne(e){var t=b.useRef(null);return t.current??=e(),t.current}function Nne(e,t){t===void 0&&(t=Ane);var n=Mne(()=>jne++),r=b.useRef(!1);b.useEffect(()=>(Ene(),()=>{fx(n)}),[n]),b.useEffect(()=>{var i=t,a=i.onMoveShouldSetResponder,o=i.onMoveShouldSetResponderCapture,s=i.onScrollShouldSetResponder,c=i.onScrollShouldSetResponderCapture,l=i.onSelectionChangeShouldSetResponder,u=i.onSelectionChangeShouldSetResponderCapture,d=i.onStartShouldSetResponder,f=i.onStartShouldSetResponderCapture,p=a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f!=null,m=e.current;p?(Dne(n,m,t),r.current=!0):r.current&&=(fx(n),!1)},[t,e,n]),b.useDebugValue({isResponder:e.current===kne()}),b.useDebugValue(t)}var Pne=(0,b.createContext)(!1),Fne=[`hrefAttrs`,`onLayout`,`onMoveShouldSetResponder`,`onMoveShouldSetResponderCapture`,`onResponderEnd`,`onResponderGrant`,`onResponderMove`,`onResponderReject`,`onResponderRelease`,`onResponderStart`,`onResponderTerminate`,`onResponderTerminationRequest`,`onScrollShouldSetResponder`,`onScrollShouldSetResponderCapture`,`onSelectionChangeShouldSetResponder`,`onSelectionChangeShouldSetResponderCapture`,`onStartShouldSetResponder`,`onStartShouldSetResponderCapture`],Ine=Object.assign({},Vte,Hte,Ute,Wte,Gte,Kte,qte,Jte,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),Lne=e=>Yte(e,Ine),px=b.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.onLayout,i=e.onMoveShouldSetResponder,a=e.onMoveShouldSetResponderCapture,o=e.onResponderEnd,s=e.onResponderGrant,c=e.onResponderMove,l=e.onResponderReject,u=e.onResponderRelease,d=e.onResponderStart,f=e.onResponderTerminate,p=e.onResponderTerminationRequest,m=e.onScrollShouldSetResponder,h=e.onScrollShouldSetResponderCapture,g=e.onSelectionChangeShouldSetResponder,_=e.onSelectionChangeShouldSetResponderCapture,v=e.onStartShouldSetResponder,y=e.onStartShouldSetResponderCapture,x=T_(e,Fne),S=b.useContext(Pne),C=b.useRef(null),w=Pte().direction;Zte(C,r),Nne(C,{onMoveShouldSetResponder:i,onMoveShouldSetResponderCapture:a,onResponderEnd:o,onResponderGrant:s,onResponderMove:c,onResponderReject:l,onResponderRelease:u,onResponderStart:d,onResponderTerminate:f,onResponderTerminationRequest:p,onScrollShouldSetResponder:m,onScrollShouldSetResponderCapture:h,onSelectionChangeShouldSetResponder:g,onSelectionChangeShouldSetResponderCapture:_,onStartShouldSetResponder:v,onStartShouldSetResponderCapture:y});var T=`div`,E=e.lang==null?null:Db(e.lang),D=e.dir||E,O=D||w,k=Lne(x);if(k.dir=D,k.style=[mx.view$raw,S&&mx.inline,e.style],e.href!=null&&(T=`a`,n!=null)){var A=n.download,j=n.rel,M=n.target;A!=null&&(k.download=A),j!=null&&(k.rel=j),typeof M==`string`&&(k.target=M.charAt(0)===`_`?M:`_`+M)}return k.ref=zb(C,$te(k),t),Ob(T,k,{writingDirection:O})});px.displayName=`View`;var mx=Sb.create({view$raw:{alignContent:`flex-start`,alignItems:`stretch`,backgroundColor:`transparent`,border:`0 solid black`,boxSizing:`border-box`,display:`flex`,flexBasis:`auto`,flexDirection:`column`,flexShrink:0,listStyle:`none`,margin:0,minHeight:0,minWidth:0,padding:0,position:`relative`,textDecoration:`none`,zIndex:0},inline:{display:`inline-flex`}}),hx=u(s(((e,t)=>{function n(e,t){var n=[...arguments].slice(2);if(!e){var r;if(t===void 0)r=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var i=0;r=Error(t.replace(/%s/g,function(){return String(n[i++])})),r.name=`Invariant Violation`}throw r.framesToPop=1,r}}t.exports=n}))()),gx={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},_x={},vx=j_;function yx(){if(j_){var e=window,t,n;if(e.visualViewport){var r=e.visualViewport;t=Math.round(r.height*r.scale),n=Math.round(r.width*r.scale)}else{var i=e.document.documentElement;t=i.clientHeight,n=i.clientWidth}gx.window={fontScale:1,height:t,scale:e.devicePixelRatio||1,width:n},gx.screen={fontScale:1,height:e.screen.height,scale:e.devicePixelRatio||1,width:e.screen.width}}}function bx(){yx(),Array.isArray(_x.change)&&_x.change.forEach(e=>e(gx))}var xx=class{static get(e){return vx&&(vx=!1,yx()),(0,hx.default)(gx[e],`No dimension set for key `+e),gx[e]}static set(e){e&&(j_?(0,hx.default)(!1,`Dimensions cannot be set in the browser`):(e.screen!=null&&(gx.screen=e.screen),e.window!=null&&(gx.window=e.window)))}static addEventListener(e,t){return _x[e]=_x[e]||[],_x[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(_x[e])&&(_x[e]=_x[e].filter(e=>e!==t))}};j_&&(window.visualViewport?window.visualViewport.addEventListener(`resize`,bx,!1):window.addEventListener(`resize`,bx,!1));var Sx={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){e!==null&&(this._currentlyFocusedNode=e,document.activeElement!==e&&Nb.focus(e))},blurTextInput(e){e!==null&&(this._currentlyFocusedNode=null,document.activeElement===e&&Nb.blur(e))}},Cx=()=>{Sx.blurTextInput(Sx.currentlyFocusedField())},wx=[`onScroll`,`onTouchMove`,`onWheel`,`scrollEnabled`,`scrollEventThrottle`,`showsHorizontalScrollIndicator`,`showsVerticalScrollIndicator`,`style`];function Tx(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}function Ex(e,t){var n=Date.now()-e;return t>0&&n>=t}var Dx=b.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,i=e.onWheel,a=e.scrollEnabled,o=a===void 0||a,s=e.scrollEventThrottle,c=s===void 0?0:s,l=e.showsHorizontalScrollIndicator,u=e.showsVerticalScrollIndicator,d=e.style,f=T_(e,wx),p=b.useRef({isScrolling:!1,scrollLastTick:0}),m=b.useRef(null),h=b.useRef(null);function g(e){return t=>{o&&e&&e(t)}}function _(e){e.stopPropagation(),e.target===h.current&&(e.persist(),m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{x(e)},100),p.current.isScrolling?Ex(p.current.scrollLastTick,c)&&y(e):v(e))}function v(e){p.current.isScrolling=!0,y(e)}function y(e){p.current.scrollLastTick=Date.now(),n&&n(Tx(e))}function x(e){p.current.isScrolling=!1,n&&n(Tx(e))}var S=l===!1||u===!1;return b.createElement(px,Pb({},f,{onScroll:_,onTouchMove:g(r),onWheel:g(i),ref:zb(h,t),style:[d,!o&&Ox.scrollDisabled,S&&Ox.hideScrollbar]}))}),Ox=Sb.create({scrollDisabled:{overflowX:`hidden`,overflowY:`hidden`,touchAction:`none`},hideScrollbar:{scrollbarWidth:`none`}}),kx=s(((e,t)=>{function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},t.exports=r})),Ax=u(s(((e,t)=>{t.exports=kx()}))()),jx=[`contentContainerStyle`,`horizontal`,`onContentSizeChange`,`refreshControl`,`stickyHeaderIndices`,`pagingEnabled`,`forwardedRef`,`keyboardDismissMode`,`onScroll`,`centerContent`],Mx={},Nx=16,Px=class extends b.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=t.touches.length!==0,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=Sx.currentlyFocusedField();!this.props.keyboardShouldPersistTaps&&t!=null&&e.target!==t&&!this.observedScrollSinceBecomingResponder&&!this.becameResponderWhileAnimating&&(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),Sx.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<Nx||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if(typeof e==`number`)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Mx;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),a=e||0,o=t||0;i!=null&&(typeof i.scroll==`function`?i.scroll({top:o,left:a,behavior:n?`smooth`:`auto`}):(i.scrollLeft=a,i.scrollTop=o))},this.scrollResponderZoomTo=(e,t)=>{Bte.OS!==`ios`&&(0,hx.default)(`zoomToRect is not implemented`)},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,Nb.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=xx.get(`window`).height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var a=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(a=Math.max(0,a)),this.scrollResponderScrollTo({x:0,y:a,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if(typeof e==`number`)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Mx;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:n!==!1})},this.scrollToEnd=e=>{var t=(e&&e.animated)!==!1,n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,a=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:a,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{this.props.keyboardDismissMode===`on-drag`&&Cx(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,e!=null&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),Rb(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){(0,Ax.default)(!1,`ScrollView doesn't take rejection well - scrolls anyway`)}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error(`Error measuring text field: `,e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,r=e.onContentSizeChange,i=e.refreshControl,a=e.stickyHeaderIndices,o=e.pagingEnabled;e.forwardedRef,e.keyboardDismissMode,e.onScroll;var s=e.centerContent,c=T_(e,jx),l={};r&&(l={onLayout:this._handleContentOnLayout});var u=!n&&Array.isArray(a),d=u||o?b.Children.map(this.props.children,(e,t)=>{var n=u&&a.indexOf(t)>-1;return e!=null&&(n||o)?b.createElement(px,{style:[n&&Ix.stickyHeader,o&&Ix.pagingEnabledChild]},e):e}):this.props.children,f=b.createElement(px,Pb({},l,{children:d,collapsable:!1,ref:this._setInnerViewRef,style:[n&&Ix.contentContainerHorizontal,s&&Ix.contentContainerCenterContent,t]})),p=n?Ix.baseHorizontal:Ix.baseVertical,m=n?Ix.pagingEnabledHorizontal:Ix.pagingEnabledVertical,h=w_(w_({},c),{},{style:[p,o&&m,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),g=Dx;(0,hx.default)(g!==void 0,`ScrollViewClass must not be undefined`);var _=b.createElement(g,Pb({},h,{ref:this._setScrollNodeRef}),f);return i?b.cloneElement(i,{style:h.style},_):_}},Fx={flexGrow:1,flexShrink:1,transform:`translateZ(0)`,WebkitOverflowScrolling:`touch`},Ix=Sb.create({baseVertical:w_(w_({},Fx),{},{flexDirection:`column`,overflowX:`hidden`,overflowY:`auto`}),baseHorizontal:w_(w_({},Fx),{},{flexDirection:`row`,overflowX:`auto`,overflowY:`hidden`}),contentContainerHorizontal:{flexDirection:`row`},contentContainerCenterContent:{justifyContent:`center`,flexGrow:1},stickyHeader:{position:`sticky`,top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:`x mandatory`},pagingEnabledVertical:{scrollSnapType:`y mandatory`},pagingEnabledChild:{scrollSnapAlign:`start`}}),Lx=b.forwardRef((e,t)=>b.createElement(Px,Pb({},e,{forwardedRef:t})));Lx.displayName=`ScrollView`;var Rx=[];function zx(e){return Rx[e-1]}var Bx=class e{static get(){return xx.get(`window`).scale}static getFontScale(){return xx.get(`window`).fontScale||e.get()}static getPixelSizeForLayoutSize(t){return Math.round(t*e.get())}static roundToNearestPixel(t){var n=e.get();return Math.round(t*n)/n}},Vx=[`animating`,`color`,`hidesWhenStopped`,`size`,`style`],Hx=e=>b.createElement(`circle`,{cx:`16`,cy:`16`,fill:`none`,r:`14`,strokeWidth:`4`,style:e}),Ux=b.forwardRef((e,t)=>{var n=e.animating,r=n===void 0||n,i=e.color,a=i===void 0?`#1976D2`:i,o=e.hidesWhenStopped,s=o===void 0||o,c=e.size,l=c===void 0?`small`:c,u=e.style,d=T_(e,Vx),f=b.createElement(`svg`,{height:`100%`,viewBox:`0 0 32 32`,width:`100%`},Hx({stroke:a,opacity:.2}),Hx({stroke:a,strokeDasharray:80,strokeDashoffset:60}));return b.createElement(px,Pb({},d,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:`progressbar`,style:[Wx.container,u]}),b.createElement(px,{children:f,style:[typeof l==`number`?{height:l,width:l}:Gx[l],Wx.animation,!r&&Wx.animationPause,!r&&s&&Wx.hidesWhenStopped]}))});Ux.displayName=`ActivityIndicator`;var Wx=Sb.create({container:{alignItems:`center`,justifyContent:`center`},hidesWhenStopped:{visibility:`hidden`},animation:{animationDuration:`0.75s`,animationKeyframes:[{"0%":{transform:`rotate(0deg)`},"100%":{transform:`rotate(360deg)`}}],animationTimingFunction:`linear`,animationIterationCount:`infinite`},animationPause:{animationPlayState:`paused`}}),Gx=Sb.create({small:{width:20,height:20},large:{width:36,height:36}}),Kx=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},qx=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},Jx=10,Yx=Kx,Xx={addPoolingTo:function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||Yx,n.poolSize||=Jx,n.release=qx,n},twoArgumentPooler:Kx},Zx=Xx.twoArgumentPooler;function Qx(e,t){this.width=e,this.height=t}Qx.prototype.destructor=function(){this.width=null,this.height=null},Qx.getPooledFromElement=function(e){return Qx.getPooled(e.offsetWidth,e.offsetHeight)},Xx.addPoolingTo(Qx,Zx);var $x=Xx.twoArgumentPooler;function eS(e,t){this.left=e,this.top=t}eS.prototype.destructor=function(){this.left=null,this.top=null},Xx.addPoolingTo(eS,$x);var tS=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},nS={NOT_RESPONDER:`NOT_RESPONDER`,RESPONDER_INACTIVE_PRESS_IN:`RESPONDER_INACTIVE_PRESS_IN`,RESPONDER_INACTIVE_PRESS_OUT:`RESPONDER_INACTIVE_PRESS_OUT`,RESPONDER_ACTIVE_PRESS_IN:`RESPONDER_ACTIVE_PRESS_IN`,RESPONDER_ACTIVE_PRESS_OUT:`RESPONDER_ACTIVE_PRESS_OUT`,RESPONDER_ACTIVE_LONG_PRESS_IN:`RESPONDER_ACTIVE_LONG_PRESS_IN`,RESPONDER_ACTIVE_LONG_PRESS_OUT:`RESPONDER_ACTIVE_LONG_PRESS_OUT`,ERROR:`ERROR`},rS={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},iS=w_(w_({},rS),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),aS=w_(w_({},rS),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),oS=w_(w_({},rS),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),sS={DELAY:`DELAY`,RESPONDER_GRANT:`RESPONDER_GRANT`,RESPONDER_RELEASE:`RESPONDER_RELEASE`,RESPONDER_TERMINATED:`RESPONDER_TERMINATED`,ENTER_PRESS_RECT:`ENTER_PRESS_RECT`,LEAVE_PRESS_RECT:`LEAVE_PRESS_RECT`,LONG_PRESS_DETECTED:`LONG_PRESS_DETECTED`},cS={NOT_RESPONDER:{DELAY:nS.ERROR,RESPONDER_GRANT:nS.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:nS.ERROR,RESPONDER_TERMINATED:nS.ERROR,ENTER_PRESS_RECT:nS.ERROR,LEAVE_PRESS_RECT:nS.ERROR,LONG_PRESS_DETECTED:nS.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:nS.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:nS.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:nS.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:nS.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:nS.ERROR,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:nS.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:nS.ERROR,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:nS.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:nS.ERROR,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:nS.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:nS.ERROR,RESPONDER_GRANT:nS.ERROR,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:nS.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:nS.ERROR},error:{DELAY:nS.NOT_RESPONDER,RESPONDER_GRANT:nS.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:nS.NOT_RESPONDER,RESPONDER_TERMINATED:nS.NOT_RESPONDER,ENTER_PRESS_RECT:nS.NOT_RESPONDER,LEAVE_PRESS_RECT:nS.NOT_RESPONDER,LONG_PRESS_DETECTED:nS.NOT_RESPONDER}},lS=130,uS=20,dS=500-lS,fS=10,pS={componentDidMount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&=(this.state.touchable.touchState&&this.state.touchable.touchState!==nS.NOT_RESPONDER&&this.touchableHandleResponderTerminate({nativeEvent:e}),!1)},e.addEventListener(`blur`,this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener(`blur`,this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=nS.NOT_RESPONDER,this.state.touchable.responderID=t,this._receiveSignal(sS.RESPONDER_GRANT,e);var n=this.touchableGetHighlightDelayMS===void 0?lS:Math.max(this.touchableGetHighlightDelayMS(),0);n=isNaN(n)?lS:n,n===0?this._handleDelay(e):this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n);var r=this.touchableGetLongPressDelayMS===void 0?dS:Math.max(this.touchableGetLongPressDelayMS(),10);r=isNaN(r)?dS:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(sS.RESPONDER_RELEASE,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(sS.RESPONDER_TERMINATED,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:uS,right:uS,top:uS,bottom:uS},i=r.left,a=r.top,o=r.right,s=r.bottom,c=this.touchableGetHitSlop?this.touchableGetHitSlop():null;c&&(i+=c.left||0,a+=c.top||0,o+=c.right||0,s+=c.bottom||0);var l=tS(e.nativeEvent),u=l&&l.pageX,d=l&&l.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(u,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>fS&&this._cancelLongPressDelayTimeout(),u>t.left-i&&d>t.top-a&&u<t.left+n.width+o&&d<t.top+n.height+s){var f=this.state.touchable.touchState;this._receiveSignal(sS.ENTER_PRESS_RECT,e),this.state.touchable.touchState===nS.RESPONDER_INACTIVE_PRESS_IN&&f!==nS.RESPONDER_INACTIVE_PRESS_IN&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(sS.LEAVE_PRESS_RECT,e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;e!=null&&Nb.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,a){(e||t||n||r||i||a)&&(this.state.touchable.positionOnActivate&&eS.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Qx.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=eS.getPooled(i,a),this.state.touchable.dimensionsOnActivate=Qx.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal(sS.DELAY,e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==nS.RESPONDER_ACTIVE_PRESS_IN&&t!==nS.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+t+"` to `"+nS.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(sS.LONG_PRESS_DETECTED,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=cS[r]&&cS[r][e];if(n||e!==sS.RESPONDER_RELEASE){if(!i)throw Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===nS.ERROR)throw Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===nS.RESPONDER_ACTIVE_PRESS_IN||e===nS.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(e){var t=tS(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,a=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:a}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),a=this._isHighlight(t);(n===sS.RESPONDER_TERMINATED||n===sS.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout();var o=e===nS.NOT_RESPONDER&&t===nS.RESPONDER_INACTIVE_PRESS_IN,s=!iS[e]&&iS[t];if((o||s)&&this._remeasureMetricsOnActivation(),aS[e]&&n===sS.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),a&&!i?this._startHighlight(r):!a&&i&&this._endHighlight(r),aS[e]&&n===sS.RESPONDER_RELEASE){var c=!!this.props.onLongPress,l=oS[e]&&(!c||!this.touchableLongPressCancelsPress());(!oS[e]||l)&&this.touchableHandlePress&&(!a&&!i&&(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){Nb.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;(n===`Enter`||n===` `)&&(t===`keydown`?this._isTouchableKeyboardActive||(!this.state.touchable.touchState||this.state.touchable.touchState===nS.NOT_RESPONDER)&&(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):t===`keyup`&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==nS.NOT_RESPONDER&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),(n!==`Enter`||x_.propsToAriaRole(this.props)!==`link`)&&e.preventDefault())},withoutDefaultFocusAndBlur:{}};pS.touchableHandleFocus,pS.touchableHandleBlur,pS.withoutDefaultFocusAndBlur=T_(pS,[`touchableHandleFocus`,`touchableHandleBlur`]);var mS={Mixin:pS,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!mS.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n||={top:0,bottom:0,left:0,right:0},n)r[i]=-n[i];var a=(0,D_.default)(t);if(typeof a!=`number`)return null;var o=`#`+(`00000000`+a.toString(16)).substr(-8);return b.createElement(px,{pointerEvents:`none`,style:w_({position:`absolute`,borderColor:o.slice(0,-2)+`55`,borderWidth:1,borderStyle:`dashed`,backgroundColor:o.slice(0,-2)+`0F`},r)})}},hS=z(jp,{name:`Image`,render:`img`}),gS=hS.styleable((e,t)=>{let{blurRadius:n,capInsets:r,defaultSource:i,fadeDuration:a,loadingIndicatorSource:o,onLoadEnd:s,onPartialLoad:c,progressiveRenderingEnabled:l,resizeMethod:u,tintColor:d,...f}=e;return(0,R.jsx)(hS,{ref:t,...f})},{staticConfig:{memo:!0}}),_S=(()=>{});gS.getSize=_S,gS.getSizeWithHeaders=_S,gS.prefetch=_S,gS.prefetchWithMetadata=_S,gS.abortPrefetch=_S,gS.queryCache=_S;var vS=(e,{tokens:t})=>{let n=t.size[e]??e,r=t.size[e]??e;return{width:n,height:r,minWidth:n,maxWidth:n,maxHeight:r,minHeight:r}},yS=z(Zm,{name:`Square`,alignItems:`center`,justifyContent:`center`,variants:{size:{"...size":vS,":number":vS}}},{memo:!0}),bS=`Avatar`,[xS,Rne]=tg(bS),[SS,CS]=xS(bS),wS=`AvatarImage`,TS=b.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,source:i,onLoadingStatusChange:a=()=>{},...o}=e,s=CS(wS,n),[c,l]=b.useState(`idle`),u=r||(i&&typeof i==`object`&&`uri`in i?i.uri:i);return b.useEffect(()=>{l(u?`idle`:`error`)},[u]),b.useEffect(()=>{a(c),s.onImageLoadingStatusChange(c)},[c]),u?(0,R.jsx)(B,{fullscreen:!0,zIndex:1,children:(0,R.jsx)(gS,{position:`absolute`,top:0,left:0,right:0,bottom:0,objectFit:`cover`,width:`100%`,height:`100%`,...o,ref:t,src:u,onError:()=>{l(`error`)},onLoad:()=>{l(`loaded`)}})}):null});TS.displayName=wS;var ES=`AvatarFallback`,DS=z(B,{name:ES,position:`absolute`,fullscreen:!0,zIndex:0}),OS=DS.styleable((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=CS(ES,n),[o,s]=b.useState(r===void 0);return b.useEffect(()=>{if(r!==void 0){let e=setTimeout(()=>s(!0),r);return()=>clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,R.jsx)(DS,{...i,ref:t}):null});OS.displayName=ES;var kS=z(yS,{name:bS,position:`relative`,overflow:`hidden`}),AS=Ic(b.forwardRef((e,t)=>{let{__scopeAvatar:n,size:r=`$true`,...i}=e,[a,o]=b.useState(`idle`);return(0,R.jsx)(SS,{size:r,scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:(0,R.jsx)(kS,{size:r,...i,ref:t})})}),{Image:TS,Fallback:OS});AS.displayName=bS;var jS=(e,t)=>{let n=NS(e,t);return MS(Bc(n)?n.val:n)??16},MS=e=>{let t=typeof e==`number`?e:Number.parseFloat(String(e).match(/(\d*\.?\d+)px/)?.[1]??String(e));return Number.isFinite(t)?t:void 0},NS=(e,t)=>{let n=PS(e,t);if(!n)return e;let r=ts();return r.fontsParsed[t?.font||r.defaultFontToken]?.size[n]},PS=(e,t)=>{if(typeof e==`number`)return null;let n=t?.relativeSize||0,r=ts(),i=r.fontsParsed[t?.font||r.defaultFontToken]?.size||r.tokensParsed.size,a=(e===`$true`&&!(`$true`in i)?`$4`:e)??(`$true`in i?`$true`:`$4`),o=Object.keys(i),s=o.indexOf(a);return s===-1&&a.endsWith(`.5`)&&(s=o.indexOf(a.replace(`.5`,``))),o[Math.min(Math.max(0,s+n),o.length-1)]??a},FS=e=>{let t=Ol();return e?Vc(e):t[e]?.get()||t.color?.get()},IS=e=>{let t=FS(e.color);return n=>n&&(b.isValidElement(n)?b.cloneElement(n,{...e,color:t,...n.props}):b.createElement(n,e))},LS=(e,t)=>e&&(b.isValidElement(e)?b.cloneElement(e,{...t,...e.props}):b.createElement(e,t)),RS=Mo({size:void 0,variant:void 0,color:void 0,elevation:void 0,ellipsis:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,textAlign:void 0}),zS=z(jp,{context:RS,name:`Button`,role:`button`,render:(0,R.jsx)(`button`,{type:`button`}),tabIndex:0,variants:{unstyled:{true:{outlineWidth:0,borderWidth:0,backgroundColor:`transparent`},false:{size:`$true`,justifyContent:`center`,alignItems:`center`,flexWrap:`nowrap`,flexDirection:`row`,backgroundColor:`$background`,borderWidth:1,borderColor:`transparent`,"$platform-web":{cursor:`pointer`},hoverStyle:{backgroundColor:`$backgroundHover`,borderColor:`$borderColorHover`},pressStyle:{backgroundColor:`$backgroundPress`,borderColor:`$borderColorHover`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineStyle:`solid`,outlineWidth:2}}},variant:{outlined:{}.GUI_HEADLESS===`1`?{}:{backgroundColor:`transparent`,borderWidth:1,borderColor:`$borderColor`,hoverStyle:{backgroundColor:`transparent`,borderColor:`$borderColorHover`},pressStyle:{backgroundColor:`transparent`,borderColor:`$borderColorPress`}}},circular:Xm.circular,chromeless:Xm.chromeless,size:{"...size":(e,t)=>{let n=oh(e,t),r=cs(e);return{...n,gap:r}},":number":(e,t)=>{let n=oh(e,t),r=e*.4;return{...n,gap:r}}},elevation:{"...size":Bm,":number":Bm},disabled:{true:{pointerEvents:`none`,"aria-disabled":!0}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),BS=z(H,{context:RS,variants:{unstyled:{false:{userSelect:`none`,flexGrow:0,flexShrink:1,ellipsis:!0,color:`$color`,"$platform-web":{cursor:`pointer`}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),VS=e=>{let{children:t,scaleIcon:n=1,size:r}=e,i=RS.useStyledContext();if(!i)throw Error(`Button.Icon must be used within a Button`);let a=r??i.size,o=FS(i.color===`unset`||typeof i.color==`number`?void 0:i.color);return LS(t,{size:(typeof a==`number`?a*.5:jS(a))*n,color:o})};Mo({size:void 0,variant:void 0,color:void 0});var HS=Ic(zS.styleable((e,t)=>{let n=(0,b.useContext)(ch),{children:r,iconSize:i,icon:a,iconAfter:o,scaleIcon:s=1,noTextWrap:c,textProps:l,color:u,ellipsis:d,fontFamily:f,fontSize:p,fontStyle:m,fontWeight:h,letterSpacing:g,maxFontSizeMultiplier:_,textAlign:v,...y}=Mp(e,{noNormalize:!0,noExpand:!0}),x=e.size||(e.unstyled?void 0:`$true`),S=RS.useStyledContext(),C=u??e.color??S?.color,w=FS(C===`unset`||typeof C==`number`?void 0:C),T=i??x??S?.size,E=(typeof T==`number`?T*.5:jS(T))*s,[D,O]=[a,o].map(e=>e?LS(e,{size:E,color:w}):null),k=ph(BS,{children:r,color:C,ellipsis:d??e.ellipsis??S?.ellipsis,fontFamily:f??e.fontFamily??S?.fontFamily,fontSize:p??e.fontSize??S?.fontSize,fontStyle:m??e.fontStyle??S?.fontStyle,fontWeight:h??e.fontWeight??S?.fontWeight,letterSpacing:g??e.letterSpacing??S?.letterSpacing,maxFontSizeMultiplier:_??e.maxFontSizeMultiplier??S?.maxFontSizeMultiplier,noTextWrap:c??e.noTextWrap,textAlign:v??e.textAlign??S?.textAlign,textProps:l??e.textProps},{unstyled:{}.GUI_HEADLESS===`1`,size:T??S?.size}),A={color:C,ellipsis:d??e.ellipsis??S?.ellipsis,fontFamily:f??e.fontFamily??S?.fontFamily,fontSize:p??e.fontSize??S?.fontSize,fontStyle:m??e.fontStyle??S?.fontStyle,fontWeight:h??e.fontWeight??S?.fontWeight,letterSpacing:g??e.letterSpacing??S?.letterSpacing,maxFontSizeMultiplier:_??e.maxFontSizeMultiplier??S?.maxFontSizeMultiplier,textAlign:v??e.textAlign??S?.textAlign},j={...S,...A,size:y.size??e.size??S?.size,variant:y.variant??e.variant??S?.variant,elevation:y.elevation??e.elevation??S?.elevation};return(0,R.jsx)(ch.Provider,{value:!0,children:(0,R.jsx)(RS.Provider,{...j,children:(0,R.jsxs)(zS,{ref:t,...y,...n&&{render:`span`},...y.circular&&!e.size&&{size:x},tabIndex:0,children:[D,k,O]})})})}),{Apply:RS.Provider,Frame:zS,Text:BS,Icon:VS}),US=Mo({size:`$true`,scaleIcon:1,unstyled:{}.GUI_HEADLESS===`1`,active:!1,disabled:!1}),WS=z(B,{name:`CheckboxIndicator`,context:US,variants:{unstyled:{false:{}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{accept:{activeStyle:`style`}}),GS=z(B,{name:`Checkbox`,render:`button`,context:US,variants:{unstyled:{false:{size:`$true`,backgroundColor:`$background`,alignItems:`center`,justifyContent:`center`,borderWidth:1,borderColor:`$borderColor`,hoverStyle:{borderColor:`$borderColorHover`},pressStyle:{backgroundColor:`$backgroundPress`,borderColor:`$borderColorPress`},focusStyle:{borderColor:`$borderColorFocus`},focusVisibleStyle:{outlineStyle:`solid`,outlineWidth:2,outlineColor:`$outlineColor`}}},disabled:{true:{pointerEvents:`none`,userSelect:`none`,cursor:`not-allowed`,hoverStyle:{borderColor:`$borderColor`,backgroundColor:`$background`},pressStyle:{borderColor:`$borderColor`,backgroundColor:`$background`},focusStyle:{outlineWidth:0}}},size:{"...size":e=>({borderRadius:Gc($m(e))/8})}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{accept:{activeStyle:`style`}}),KS=(e,t)=>()=>{},[qS,JS]=eg(`Label`,{id:void 0,controlRef:{current:null}}),YS=z(H,{name:`Label`,render:`label`,variants:{unstyled:{false:{size:`$true`,color:`$color`,backgroundColor:`transparent`,display:`flex`,alignItems:`center`,userSelect:`none`,cursor:`default`,pressStyle:{color:`$colorPress`}}},size:{"...size":(e,t)=>{let n=oh(e,t)?.height;return{...lh(e,t),lineHeight:n?t.tokens.size[n]:void 0}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});YS.styleable(function(e,t){let{htmlFor:n,id:r,...i}=e,a=b.useRef(null),o=b.useRef(null),s=Ml(t,o),c=b.useId(),l=r??c;return Ho(()=>{if(n){let e=document.getElementById(n);if(o.current&&e){let t=()=>e.getAttribute(`aria-labelledby`),n=[l,t()].filter(Boolean).join(` `);return e.setAttribute(`aria-labelledby`,n),a.current=e,()=>{if(!l)return;let n=t()?.replace(l,``);n===``?e.removeAttribute(`aria-labelledby`):n&&e.setAttribute(`aria-labelledby`,n)}}}},[l,n]),(0,R.jsx)(qS,{id:l,controlRef:a,children:(0,R.jsx)(YS,{id:l,htmlFor:n,...i,ref:s,onMouseDown:t=>{e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onPress:t=>{e.onPress?.(t);{if(n||!a.current||t.defaultPrevented)return;let e=a.current.contains(t.target),r=t.isTrusted===!0;!e&&r&&(a.current.click(),a.current.focus())}}})})});var XS=e=>{let t=JS(`LabelConsumer`),{controlRef:n}=t;return b.useEffect(()=>{e&&(n.current=e)},[e,n]),t.id};function ZS(e){let t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function QS(e){return e===`indeterminate`}function $S(e){return QS(e)?`indeterminate`:e?`checked`:`unchecked`}var eC=e=>{let{checked:t,bubbles:n=!0,control:r,isHidden:i,...a}=e,o=b.useRef(null),s=ZS(t);return b.useEffect(()=>{let e=o.current,r=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(r,`checked`).set;if(s!==t&&i){let r=new Event(`click`,{bubbles:n});e.indeterminate=QS(t),i.call(e,!QS(t)&&t),e.dispatchEvent(r)}},[s,t,n]),(0,R.jsx)(`input`,{type:`checkbox`,defaultChecked:!QS(t)&&t,...a,tabIndex:-1,ref:o,"aria-hidden":i,style:{...i?{position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}:{appearance:`auto`,accentColor:`var(--color6)`},...e.style}})};function tC(e,[t,n],r){let{labelledBy:i,name:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,...u}=e,[d,f]=b.useState(null),p=Ml(r,f),m=b.useRef(!1),h=!d||!!d.closest(`form`),g=XS(d),_=i||g,v=e.onKeyDown,y=(0,b.useMemo)(()=>cc(v,e=>{e.key===`Enter`&&e.preventDefault()}),[v]),x=(0,b.useMemo)(()=>cc(e.onPress,e=>{n(e=>QS(e)?!0:!e),h&&`isPropagationStopped`in e&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}),[h]);return{bubbleInput:h?(0,R.jsx)(eC,{isHidden:!0,control:d,bubbles:!m.current,name:a,value:c,checked:t,required:o,disabled:s}):null,checkboxRef:p,checkboxProps:{role:`checkbox`,"aria-labelledby":_,"aria-checked":QS(t)?`mixed`:t,...u,type:`button`,value:c,"data-state":$S(t),"data-disabled":s?``:void 0,disabled:s,onKeyDown:s?void 0:y,onPress:s?void 0:x}}}var nC=b.createContext({checked:!1,disabled:!1}),rC=e=>{e.context||=nC};function iC(e){let{Frame:t=GS,Indicator:n=WS}=e;return rC(t),rC(n),Ic(t.styleable(function(e,n){let{scaleSize:r=.45,sizeAdjust:i=0,scaleIcon:a,checked:o,defaultChecked:s,onCheckedChange:c,native:l,unstyled:u=!1,activeStyle:d,activeTheme:f,...p}=e,m=Mp(p),h=b.useContext(US.context),g=0,_=0;u||(g=Gc($m(m.size??h?.size??`$true`,{shift:i})),_=r?Math.round(g*r):g);let[v=!1,y]=um({prop:o,defaultProp:s,onChange:c}),{checkboxProps:x,checkboxRef:S,bubbleInput:C}=tC(m,[v,y],n);if(uc(l)===`web`)return(0,R.jsx)(`input`,{type:`checkbox`,defaultChecked:!QS(v)&&v,tabIndex:-1,ref:S,disabled:x.disabled,style:{appearance:`auto`,accentColor:`var(--color6)`,...x.style}});let w=(0,b.useMemo)(()=>({checked:v,disabled:x.disabled}),[v,x.disabled]),T=!!v,E=x.disabled;return(0,R.jsx)(nC.Provider,{value:w,children:(0,R.jsxs)(US.Provider,{size:m.size??h?.size??`$true`,scaleIcon:a??h?.scaleIcon??1,unstyled:u,active:T,disabled:E,children:[(0,R.jsx)(t,{render:`button`,ref:S,unstyled:u,theme:f??null,type:`button`,...!u&&{width:_,height:_,size:_},checked:v,disabled:E,...x,...p,...T&&{...!u&&!d&&{backgroundColor:`$backgroundActive`},...d},children:m.children}),C]})})}),{Indicator:n.styleable((e,t)=>{let{children:r,forceMount:i,disablePassStyles:a,unstyled:o=!1,activeStyle:s,...c}=e,l=US.useStyledContext(),{active:u}=l,d=r;if(!o){let e=IS({size:(typeof l.size==`number`?l.size*.65:jS(l.size))*l.scaleIcon,color:Ol().color});d=b.Children.toArray(r).map(t=>a||!b.isValidElement(t)?t:e(t))}let f=b.useContext(nC);return i||QS(f.checked)||f.checked===!0?(0,R.jsx)(n,{pointerEvents:`none`,...c,...u&&s,ref:t,children:d}):null})})}var aC=iC({Frame:GS,Indicator:WS}),oC=b.createContext([]),sC=b.createContext(null);function cC(){let e=b.useContext(oC),t=b.useContext(sC);return b.useMemo(()=>{if(t===null)return null;let n=uC(t),r=e[e.length-1],i=n[n.length-1];return{maxIndex:r,maxIndexPath:e,index:i,indexPath:n,indexPathString:t,isFirst:i===0,isLast:i===r,isEven:i%2==0,isOdd:Math.abs(i%2)===1}},[e,t])}function lC(e){let t=b.useContext(oC),n=b.useContext(sC),r=b.Children.count(e),i=b.useMemo(()=>t.concat(r-1),[r]);return(0,R.jsx)(oC.Provider,{value:i,children:b.Children.map(e,(e,t)=>b.isValidElement(e)?(0,R.jsx)(sC.Provider,{value:n?`${n}.${t.toString()}`:t.toString(),children:e},e.key):e)})}function uC(e){return e.split(`.`).map(e=>Number.parseInt(e,10))}var dC=`Group`,[fC,zne]=tg(dC),[pC,mC]=fC(dC),hC=z(B,{name:`GroupFrame`,variants:{unstyled:{false:{size:`$true`}},size:(e,{tokens:t})=>({borderRadius:t.radius[e]??e??t.radius.$true})},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}});function gC(e){return Ic(hC.styleable((t,n)=>{let{__scopeGroup:r,children:i,orientation:a=e?`vertical`:`horizontal`,disabled:o,...s}=t,c=a===`vertical`,l=lC(b.Children.toArray(i));return(0,R.jsx)(pC,{vertical:c,disabled:o,scope:r,children:(0,R.jsx)(hC,{ref:n,flexDirection:c?`column`:`row`,...s,children:l})})}),{Item:_C})}function _C(e){let{__scopeGroup:t,children:n,forcePlacement:r,...i}=e,a=mC(`GroupItem`,t),o=cC();if(!o)throw Error(`<Group.Item/> should only be used within a <Group/>`);if(!b.isValidElement(n))return n;let s=xC(r===`first`||r!==`last`&&o.index===0,r===`last`||r!==`first`&&o.index===o.maxIndex,a.vertical),c={...i,...s};a.disabled!=null&&(c.disabled=n.props.disabled??a.disabled);let l=Gd(c,n.props);return b.cloneElement(n,l)}var vC=(e,t,n)=>{let r=cC(),i=mC(`GroupItem`,n);if(!r)throw Error(`useGroupItem should only be used within a <Group/>`);let a=xC(t===`first`||t!==`last`&&r.index===0,t===`last`||t!==`first`&&r.index===r.maxIndex,i.vertical);return{disabled:e.disabled??i.disabled,...a}},yC=gC(!0),bC=gC(!1);function xC(e,t,n){return n?{...e?null:{borderTopLeftRadius:0,borderTopRightRadius:0},...t?null:{borderBottomLeftRadius:0,borderBottomRightRadius:0}}:{...e?null:{borderTopLeftRadius:0,borderBottomLeftRadius:0},...t?null:{borderTopRightRadius:0,borderBottomRightRadius:0}}}var SC=`ListItem`,CC=Mo({size:void 0,variant:void 0,color:void 0}),wC=z(jp,{context:CC,name:SC,render:`li`,role:`listitem`,variants:{unstyled:{false:{size:`$true`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`nowrap`,borderColor:`$borderColor`,width:`100%`,maxWidth:`100%`,overflow:`hidden`,flexDirection:`row`,backgroundColor:`$background`,cursor:`default`,hoverStyle:{backgroundColor:`$backgroundHover`,borderColor:`$borderColorHover`},pressStyle:{backgroundColor:`$backgroundPress`,borderColor:`$borderColorPress`}}},variant:{outlined:{}.GUI_HEADLESS===`1`?{}:{backgroundColor:`transparent`,borderWidth:1,borderColor:`$borderColor`,hoverStyle:{backgroundColor:`transparent`,borderColor:`$borderColorHover`},pressStyle:{backgroundColor:`transparent`,borderColor:`$borderColorPress`}}},size:{"...size":(e,{tokens:t})=>({minHeight:t.size[e],paddingHorizontal:t.space[e],paddingVertical:eh(t.space[e],{shift:-4})})},active:{true:{hoverStyle:{backgroundColor:`$background`}}},disabled:{true:{opacity:.5,pointerEvents:`none`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),TC=z(H,{context:CC,name:`ListItemText`,variants:{unstyled:{false:{color:`$color`,size:`$true`,flexGrow:1,flexShrink:1,ellipsis:!0,cursor:`inherit`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),EC=z(TC,{name:`ListItemSubtitle`,context:CC,variants:{unstyled:{false:{opacity:.6,maxWidth:`100%`,color:`$color`}},size:{"...size":(e,t)=>lh($m(e,{shift:-1,excludeHalfSteps:!0}).key,t)}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),DC=z(TC,{name:`ListItemTitle`,context:CC,variants:{unstyled:{false:{}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),OC=Ic(wC.styleable(function(e,t){let{children:n,icon:r,iconAfter:i,scaleIcon:a=1,unstyled:o=!1,subTitle:s,title:c,iconSize:l,...u}=e,d=e.size||`$true`,f=FS(CC.useStyledContext()?.color),p=jS(l||d)*a,m=p*.4,h=r?(0,R.jsx)(jp,{marginRight:m,children:LS(r,{size:p,color:f})}):null,g=i?(0,R.jsx)(jp,{marginLeft:m,children:LS(i,{size:p,color:f})}):null,_=ph(TC,{children:n},e.unstyled===!0?void 0:{unstyled:{}.GUI_HEADLESS===`1`,fontSize:e.size});return(0,R.jsxs)(wC,{ref:t,...u,children:[h,c||s?(0,R.jsxs)(B,{flex:1,children:[c?typeof c==`string`?(0,R.jsx)(DC,{unstyled:o,size:d,children:c}):c:null,s?(0,R.jsx)(R.Fragment,{children:typeof s==`string`?(0,R.jsx)(EC,{unstyled:o,size:d,children:s}):s}):null,_]}):_,g]})}),{Apply:CC.Provider,Frame:wC,Text:TC,Subtitle:EC,Icon:e=>{let{children:t,size:n,scaleIcon:r=1}=e,i=CC.useStyledContext();if(!i)throw Error(`ListItem.Icon must be used within a ListItem`);let a=n??i.size??`$true`,o=FS(i.color);return LS(t,{size:jS(a)*r,color:o})},Title:DC}),kC=0;function AC(){b.useEffect(()=>{let e=document.querySelectorAll(`[data-hanzogui-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??jC()),document.body.insertAdjacentElement(`beforeend`,e[1]??jC()),kC++,()=>{kC===1&&document.querySelectorAll(`[data-hanzogui-focus-guard]`).forEach(e=>e.remove()),kC--}},[])}function jC(){let e=document.createElement(`span`);return e.setAttribute(`data-hanzogui-focus-guard`,``),e.tabIndex=0,e.style.cssText=`outline: none; opacity: 0; position: fixed; pointer-events: none`,e}var MC=Math.min,NC=Math.max,PC=Math.round,FC=Math.floor,IC=e=>({x:e,y:e}),LC={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function RC(e,t,n){return NC(e,MC(t,n))}function zC(e,t){return typeof e==`function`?e(t):e}function BC(e){return e.split(`-`)[0]}function VC(e){return e.split(`-`)[1]}function HC(e){return e===`x`?`y`:`x`}function UC(e){return e===`y`?`height`:`width`}function WC(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function GC(e){return HC(WC(e))}function KC(e,t,n){n===void 0&&(n=!1);let r=VC(e),i=GC(e),a=UC(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=tw(o)),[o,tw(o)]}function qC(e){let t=tw(e);return[JC(e),t,JC(t)]}function JC(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var YC=[`left`,`right`],XC=[`right`,`left`],ZC=[`top`,`bottom`],QC=[`bottom`,`top`];function $C(e,t,n){switch(e){case`top`:case`bottom`:return n?t?XC:YC:t?YC:XC;case`left`:case`right`:return t?ZC:QC;default:return[]}}function ew(e,t,n,r){let i=VC(e),a=$C(BC(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(JC)))),a}function tw(e){let t=BC(e);return LC[t]+e.slice(t.length)}function nw(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function rw(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:nw(e)}function iw(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function aw(e,t,n){let{reference:r,floating:i}=e,a=WC(t),o=GC(t),s=UC(o),c=BC(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=VC(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ow(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=zC(t,e),p=rw(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=iw(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=iw(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var sw=50,cw=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ow},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=aw(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<sw&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=aw(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},lw=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=zC(e,t)||{};if(l==null)return{};let d=rw(u),f={x:n,y:r},p=GC(i),m=UC(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=MC(d[_],T),D=MC(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=RC(E,k,O),j=!c.arrow&&VC(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),uw=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=zC(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=BC(r),_=WC(o),v=BC(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[tw(o)]:qC(o)),x=p!==`none`;!d&&x&&b.push(...ew(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=KC(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===WC(t)||T.every(e=>WC(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=WC(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},dw=new Set([`left`,`top`]);async function fw(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=BC(n),s=VC(n),c=WC(n)===`y`,l=dw.has(o)?-1:1,u=a&&c?-1:1,d=zC(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var pw=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await fw(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},mw=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=zC(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=WC(i),p=HC(f),m=u[p],h=u[f],g=(e,t)=>RC(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},hw=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=zC(e,t),c=await i.detectOverflow(t,s),l=BC(n),u=VC(n),d=WC(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=MC(p-c[m],g),y=MC(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*NC(c.left,c.right):S=p-2*NC(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function gw(){return typeof window<`u`}function _w(e){return bw(e)?(e.nodeName||``).toLowerCase():`#document`}function vw(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yw(e){return((bw(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function bw(e){return gw()?e instanceof Node||e instanceof vw(e).Node:!1}function xw(e){return gw()?e instanceof Element||e instanceof vw(e).Element:!1}function Sw(e){return gw()?e instanceof HTMLElement||e instanceof vw(e).HTMLElement:!1}function Cw(e){return!gw()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof vw(e).ShadowRoot}function ww(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Fw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Tw(e){return/^(table|td|th)$/.test(_w(e))}function Ew(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Dw=/transform|translate|scale|rotate|perspective|filter/,Ow=/paint|layout|strict|content/,kw=e=>!!e&&e!==`none`,Aw;function jw(e){let t=xw(e)?Fw(e):e;return kw(t.transform)||kw(t.translate)||kw(t.scale)||kw(t.rotate)||kw(t.perspective)||!Nw()&&(kw(t.backdropFilter)||kw(t.filter))||Dw.test(t.willChange||``)||Ow.test(t.contain||``)}function Mw(e){let t=Lw(e);for(;Sw(t)&&!Pw(t);){if(jw(t))return t;if(Ew(t))return null;t=Lw(t)}return null}function Nw(){return Aw??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Aw}function Pw(e){return/^(html|body|#document)$/.test(_w(e))}function Fw(e){return vw(e).getComputedStyle(e)}function Iw(e){return xw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lw(e){if(_w(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Cw(e)&&e.host||yw(e);return Cw(t)?t.host:t}function Rw(e){let t=Lw(e);return Pw(t)?(e.ownerDocument||e).body:Sw(t)&&ww(t)?t:Rw(t)}function zw(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Rw(e),i=r===e.ownerDocument?.body,a=vw(r);if(i){let e=Bw(a);return t.concat(a,a.visualViewport||[],ww(r)?r:[],e&&n?zw(e):[])}return t.concat(r,zw(r,[],n))}function Bw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vw(e){let t=Fw(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Sw(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=PC(n)!==a||PC(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Hw(e){return xw(e)?e:e.contextElement}function Uw(e){let t=Hw(e);if(!Sw(t))return IC(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Vw(t),o=(a?PC(n.width):n.width)/r,s=(a?PC(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ww=IC(0);function Gw(e){let t=vw(e);return!Nw()||!t.visualViewport?Ww:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kw(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===vw(e)}function qw(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Hw(e),o=IC(1);t&&(r?xw(r)&&(o=Uw(r)):o=Uw(e));let s=Kw(a,n,r)?Gw(a):IC(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=vw(a),t=xw(r)?vw(r):r,n=e,i=Bw(n);for(;i&&t!==n;){let e=Uw(i),t=i.getBoundingClientRect(),r=Fw(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=vw(i),i=Bw(n)}}return iw({width:u,height:d,x:c,y:l})}function Jw(e,t){let n=Iw(e).scrollLeft;return t?t.left+n:qw(yw(e)).left+n}function Yw(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jw(e,n),y:n.top+t.scrollTop}}function Xw(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=yw(r),s=t?Ew(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=IC(1),u=IC(0),d=Sw(r);if((d||!a)&&((_w(r)!==`body`||ww(o))&&(c=Iw(r)),d)){let e=qw(r);l=Uw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Yw(o,c):IC(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Zw(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Qw(e){let t=Iw(e),n=e.ownerDocument.body,r=NC(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=NC(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Jw(e),o=-t.scrollTop;return Fw(n).direction===`rtl`&&(a+=NC(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var $w=25;function eT(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=vw(e),a=yw(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Nw()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Jw(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=$w&&(s-=o)}return{width:s,height:c,x:l,y:u}}function tT(e,t){let n=qw(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Uw(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function nT(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=eT(e,n,t);else if(t===`document`)r=Qw(yw(e));else if(xw(t))r=tT(t,n);else{let n=Gw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return iw(r)}function rT(e,t){let n=t.get(e);if(n)return n;let r=zw(e,[],!1).filter(e=>xw(e)&&_w(e)!==`body`),i=null,a=Fw(e).position===`fixed`,o=a?Lw(e):e;for(;xw(o)&&!Pw(o);){let e=Fw(o),t=jw(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Lw(o)}return t.set(e,r),r}function iT(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ew(t)?[]:rT(t,this._c):[].concat(n),r],o=nT(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=nT(t,a[e],i);s=NC(n.top,s),c=MC(n.right,c),l=MC(n.bottom,l),u=NC(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function aT(e){let{width:t,height:n}=Vw(e);return{width:t,height:n}}function oT(e,t,n){let r=Sw(t),i=yw(t),a=n===`fixed`,o=qw(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=IC(0);if((r||!a)&&((_w(t)!==`body`||ww(i))&&(s=Iw(t)),r)){let e=qw(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Jw(i));let l=i&&!r&&!a?Yw(i,s):IC(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function sT(e){return Fw(e).position===`static`}function cT(e,t){if(!Sw(e)||Fw(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return yw(e)===n&&(n=n.ownerDocument.body),n}function lT(e,t){let n=vw(e);if(Ew(e))return n;if(!Sw(e)){let t=Lw(e);for(;t&&!Pw(t);){if(xw(t)&&!sT(t))return t;t=Lw(t)}return n}let r=cT(e,t);for(;r&&Tw(r)&&sT(r);)r=cT(r,t);return r&&Pw(r)&&sT(r)&&!jw(r)?n:r||Mw(e)||n}var uT=async function(e){let t=this.getOffsetParent||lT,n=this.getDimensions,r=await n(e.floating);return{reference:oT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dT(e){return Fw(e).direction===`rtl`}var fT={convertOffsetParentRelativeRectToViewportRelativeRect:Xw,getDocumentElement:yw,getClippingRect:iT,getOffsetParent:lT,getElementRects:uT,getClientRects:Zw,getDimensions:aT,getScale:Uw,isElement:xw,isRTL:dT};function pT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mT(e,t,n){let r=null,i,a=yw(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=FC(d),h=FC(a.clientWidth-(u+f)),g=FC(a.clientHeight-(d+p)),_=FC(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:NC(0,MC(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!pT(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=vw(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function hT(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Hw(e),u=i||a?[...l?zw(l):[],...t?zw(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?mT(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?qw(e):null;c&&g();function g(){let t=qw(e);h&&!pT(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var gT=ow,_T=pw,vT=mw,yT=uw,bT=hw,xT=lw,ST=(e,t,n)=>{let r=new Map,i=n??{},a={...fT,...i.platform,_c:r};return cw(e,t,{...i,platform:a})},CT=typeof document<`u`?b.useLayoutEffect:function(){};function wT(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wT(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!wT(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function TT(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ET(e,t){let n=TT(e);return Math.round(t*n)/n}function DT(e){let t=b.useRef(e);return CT(()=>{t.current=e}),t}function OT(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);wT(f,r)||p(r);let[m,h]=b.useState(null),[g,_]=b.useState(null),v=b.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),y=b.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=b.useRef(null),w=b.useRef(null),T=b.useRef(u),E=c!=null,D=DT(c),O=DT(i),k=DT(l),A=b.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),ST(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!wT(T.current,t)&&(T.current=t,xh.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);CT(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=b.useRef(!1);CT(()=>(j.current=!0,()=>{j.current=!1}),[]),CT(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=b.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:y}),[v,y]),ee=b.useMemo(()=>({reference:x,floating:S}),[x,S]),te=b.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=ET(ee.floating,u.x),r=ET(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...TT(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:A,refs:M,elements:ee,floatingStyles:te}),[u,A,M,ee,te])}var kT=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:xT({element:r.current,padding:i}).fn(n):r?xT({element:r,padding:i}).fn(n):{}}}},AT=(e,t)=>{let n=_T(e);return{name:n.name,fn:n.fn,options:[e,t]}},jT=(e,t)=>{let n=vT(e);return{name:n.name,fn:n.fn,options:[e,t]}},MT=(e,t)=>{let n=yT(e);return{name:n.name,fn:n.fn,options:[e,t]}},NT=(e,t)=>{let n=bT(e);return{name:n.name,fn:n.fn,options:[e,t]}},PT=(e,t)=>{let n=kT(e);return{name:n.name,fn:n.fn,options:[e,t]}},FT=b.createContext(null),IT=e=>{"use no memo";return(b.useContext(FT)||OT)?.({...e,middleware:[...e.middleware,{name:`rounded`,fn({x:e,y:t}){return{x:Math.round(e),y:Math.round(t)}}}]})};function LT(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)},off(t,n){let r=e.get(t);r&&(r.delete(n),r.size===0&&e.delete(t))}}}var RT=class{constructor(){this.map=new Map,this.elements=new Set}add(e,t){let n=this.map.get(e);n&&this.elements.delete(n),this.map.set(e,t),this.elements.add(t)}delete(e){let t=this.map.get(e);t&&(this.elements.delete(t),this.map.delete(e))}hasElement(e){return this.elements.has(e)}};function zT(e){let t=e.filter(Boolean),n=new Map,r=new Map,i=new Map,a={},o={};for(let e of t)e.reference&&BT(e.reference,n,a),e.floating&&BT(e.floating,r,o),e.item&&typeof e.item==`object`&&BT(e.item,i,{});return{getReferenceProps(e){return VT(n,a,e)},getFloatingProps(e){return VT(r,o,e)},getItemProps(e){return VT(i,{},e)}}}function BT(e,t,n){for(let r of Object.keys(e))if(typeof e[r]==`function`){let n=t.get(r);n||(n=[],t.set(r,n)),n.push(e[r])}else n[r]=e[r]}function VT(e,t,n){let r={...t};for(let[t,n]of e)r[t]=(...e)=>{for(let t of n){let n=t(...e);if(n!==void 0)return n}};if(n)for(let e of Object.keys(n))if(e===`style`)r.style={...r.style,...n.style};else if(typeof n[e]==`function`&&r[e]){let t=r[e],i=n[e];r[e]=(...e)=>{i(...e),t(...e)}}else r[e]=n[e];return r}function HT(e){return e?.ownerDocument||document}function UT(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&WT(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function WT(e){return e instanceof ShadowRoot}function GT(e){return`composedPath`in e?e.composedPath()[0]:e.target}function KT(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function qT(e){return e instanceof HTMLElement}function JT(e){return e instanceof Element}var YT=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function XT(e){return qT(e)&&e.matches(YT)}function ZT(e){return e?e.getAttribute(`role`)===`combobox`&&XT(e):!1}function QT(){let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform}function $T(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function eE(){return/apple/i.test(navigator.vendor)}function tE(){return QT().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function nE(){return $T().includes(`jsdom/`)}function Bne(e){if(!e||nE())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function rE(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function iE(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function aE(e){e.preventDefault(),e.stopPropagation()}function Vne(e){return e.mozInputSource===0&&e.isTrusted?!0:oE()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Hne(e){return nE()?!1:!oE()&&e.width===0&&e.height===0||oE()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function oE(){let e=/android/i;return e.test(QT())||e.test($T())}var sE=0;function Une(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(sE);let a=()=>e?.focus({preventScroll:n});i?a():sE=requestAnimationFrame(a)}function Wne(e,t,n){if(typeof n==`function`)return n(t);if(n)return n.includes(t);let r=e.current[t];return r==null||r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`}function cE(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.current.length-1&&Wne(e,a,r));return a}function lE(e,t){return cE(e,{disabledIndices:t})}function uE(e,t){return cE(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function dE(e,t){return t<0||t>=e.current.length}var fE=`data-floating-ui-safe-polygon`;function pE(e,t,n){return n&&!rE(n)?0:typeof e==`number`?e:e?.[t]}function mE(e,t={}){let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=b.useRef(l);p.current=l;let m=b.useRef(c);m.current=c;let h=b.useRef(n);h.current=n;let g=b.useRef(d);g.current=d;let _=Jp(r),v=b.useRef(void 0),y=b.useRef(-1),x=b.useRef(void 0),S=b.useRef(-1),C=b.useRef(!0),w=b.useRef(!1),T=b.useRef(()=>{}),E=b.useRef(!1),D=Jp(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});b.useEffect(()=>{if(!s||!a)return;function e({open:e}){e||(iE(y),iE(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]);let O=Jp((e,t=!0,n=`hover`)=>{let r=pE(m.current,`close`,v.current);r&&!x.current?(iE(y),y.current=window.setTimeout(()=>_(!1,e,n),r)):t&&(iE(y),_(!1,e,n))}),k=Jp(()=>{T.current(),x.current=void 0,e.handleCloseActiveRef&&(e.handleCloseActiveRef.current=!1)}),A=Jp(()=>{if(w.current){let e=HT(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(fE),w.current=!1}}),j=Jp(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);b.useEffect(()=>{if(!s)return;function t(e){if(iE(y),C.current=!1,u&&!rE(v.current)||g.current>0&&!pE(m.current,`open`))return;let t=pE(m.current,`open`,v.current);t?y.current=window.setTimeout(()=>{h.current||_(!0,e,`hover`)},t):n||_(!0,e,`hover`)}function r(t){if(j()){A();return}if(e.triggerElements?.hasElement(t.relatedTarget))return;T.current();let r=HT(o.floating);if(iE(S),E.current=!1,p.current){n||iE(y);let a=i.current.placement||`bottom`,s=o.domReference,c=o.floating;if(!s||!c)return;x.current=p.current({x:t.clientX,y:t.clientY,placement:a,elements:{reference:s,floating:c,domReference:s},onClose(){e.handleCloseActiveRef&&(e.handleCloseActiveRef.current=!1),A(),k(),j()||O(t,!0,`safe-polygon`)}}),e.handleCloseActiveRef&&(e.handleCloseActiveRef.current=!0);let l=x.current;r.addEventListener(`mousemove`,l),T.current=()=>{r.removeEventListener(`mousemove`,l)};return}(v.current!==`touch`||!UT(o.floating,t.relatedTarget))&&O(t)}function a(t){if(j()||e.triggerElements?.hasElement(t.relatedTarget))return;let n=i.current.placement||`bottom`,r=o.domReference,a=o.floating;r&&a&&p.current?.({x:t.clientX,y:t.clientY,placement:n,elements:{reference:r,floating:a,domReference:r},onClose(){A(),k(),j()||O(t)}})(t)}function c(){iE(y)}function l(t){j()||e.triggerElements?.hasElement(t.relatedTarget)||O(t,!1)}if(JT(o.domReference)){let e=o.domReference,i=o.floating;return n&&e.addEventListener(`mouseleave`,a),f&&e.addEventListener(`mousemove`,t,{once:!0}),e.addEventListener(`mouseenter`,t),e.addEventListener(`mouseleave`,r),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&e.removeEventListener(`mouseleave`,a),f&&e.removeEventListener(`mousemove`,t),e.removeEventListener(`mouseenter`,t),e.removeEventListener(`mouseleave`,r),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l)),k()}}},[o,s,e,u,f,n,i]),b.useLayoutEffect(()=>{if(s&&n&&p.current?.__options?.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(JT(o.domReference)&&e){let t=HT(o.floating).body;t.setAttribute(fE,``);let n=o.domReference;return t.style.pointerEvents=`none`,n.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{t.style.pointerEvents=``,n.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,o,D]),b.useLayoutEffect(()=>{n||(v.current=void 0,E.current=!1,k(),A())},[n]),b.useEffect(()=>()=>{k(),iE(y),iE(S),A()},[s,o.domReference]);let M=b.useMemo(()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function r(){!C.current&&!h.current&&_(!0,t,`hover`)}(!u||rE(v.current))&&(n||g.current===0||E.current&&e.movementX**2+e.movementY**2<2||(iE(S),v.current===`touch`?r():(E.current=!0,S.current=window.setTimeout(r,g.current))))}}},[u,n]);return b.useMemo(()=>s?{reference:M}:{},[s,M])}function hE(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Gne(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}var gE=null;function Kne(e,t,n,r){if(gE||(gE=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),gE.id=`__safe-polygon-debug`,Object.assign(gE.style,{position:`fixed`,inset:`0`,width:`100vw`,height:`100vh`,pointerEvents:`none`,zIndex:`999999`}),document.body.appendChild(gE)),gE.innerHTML=``,t.length){let e=document.createElementNS(`http://www.w3.org/2000/svg`,`polygon`);e.setAttribute(`points`,t.map(e=>e.join(`,`)).join(` `)),e.setAttribute(`fill`,`rgba(0,100,255,0.15)`),e.setAttribute(`stroke`,`rgba(0,100,255,0.6)`),e.setAttribute(`stroke-width`,`1`),gE.appendChild(e)}if(e.length){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`polygon`);t.setAttribute(`points`,e.map(e=>e.join(`,`)).join(` `)),t.setAttribute(`fill`,`rgba(255,50,50,0.2)`),t.setAttribute(`stroke`,`rgba(255,50,50,0.8)`),t.setAttribute(`stroke-width`,`1.5`),gE.appendChild(t)}let i=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`);i.setAttribute(`cx`,String(r[0])),i.setAttribute(`cy`,String(r[1])),i.setAttribute(`r`,`5`),i.setAttribute(`fill`,`lime`),i.setAttribute(`stroke`,`darkgreen`),i.setAttribute(`stroke-width`,`1.5`),gE.appendChild(i);let a=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`);a.setAttribute(`cx`,String(n[0])),a.setAttribute(`cy`,String(n[1])),a.setAttribute(`r`,`4`),a.setAttribute(`fill`,`yellow`),a.setAttribute(`stroke`,`orange`),a.setAttribute(`stroke-width`,`1.5`),gE.appendChild(a)}function _E(){gE&&=(gE.remove(),null)}function qne(e={}){let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0,__debug:i=!1}=e,a={current:-1},o=!1,s=null,c=null,l=typeof performance<`u`?performance.now():0;function u(e,t){let n=performance.now(),r=n-l;if(s===null||c===null||r===0)return s=e,c=t,l=n,null;let i=e-s,a=t-c,o=Math.sqrt(i*i+a*a)/r;return s=e,c=t,l=n,o}let d=({x:e,y:n,placement:l,elements:d,onClose:f})=>(o=!1,s=null,c=null,function(s){function c(){iE(a),f()}iE(a);let p=d.domReference??d.reference;if(!p||!d.floating||l==null||e==null||n==null)return;let{clientX:m,clientY:h}=s,g=[m,h],_=GT(s),v=s.type===`mouseleave`,y=UT(d.floating,_),b=UT(p,_),x=p.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),C=l.split(`-`)[0],w=e>S.right-S.width/2,T=n>S.bottom-S.height/2,E=Gne(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(o=!0,!v))return;if(b&&(o=!1),b&&!v){o=!0;return}if(!b&&E&&!v||v&&s.relatedTarget&&UT(d.floating,s.relatedTarget))return;if(C===`top`&&n>=x.bottom-1||C===`bottom`&&n<=x.top+1||C===`left`&&e>=x.right-1||C===`right`&&e<=x.left+1)return c();let ee=[];switch(C){case`top`:ee=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:ee=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:ee=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:ee=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function te([e,n]){switch(C){case`top`:return[[D?e+t/2:w?e+t*4:e-t*4,n+t+1],[D?e-t/2:w?e+t*4:e-t*4,n+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?e+t/2:w?e+t*4:e-t*4,n-t],[D?e-t/2:w?e+t*4:e-t*4,n-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let r=[e+t+1,O?n+t/2:T?n+t*4:n-t*4],i=[e+t+1,O?n-t/2:T?n+t*4:n-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],r,i]}case`right`:return[[e-t,O?n+t/2:T?n+t*4:n-t*4],[e-t,O?n-t/2:T?n+t*4:n-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}let ne=te([e,n]);if(i&&Kne(ne,ee,g,[e,n]),!hE([m,h],ee)){if(o&&!E)return i&&_E(),c();if(!hE([m,h],ne)){if(!v&&r){let e=u(m,h);if(e!==null&&e<.1)return i&&_E(),c()}i&&_E(),c()}}});return d.__options={blockPointerEvents:n},d}function vE(){return tE()&&eE()}function Jne(e,t={}){let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=(0,b.useRef)(!1),u=(0,b.useRef)(-1),d=(0,b.useRef)(!0);(0,b.useEffect)(()=>{if(!s)return;let e=HT(o.domReference).defaultView||window;function t(){!n&&qT(o.domReference)&&o.domReference===KT(HT(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),vE()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),vE()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),(0,b.useEffect)(()=>{if(!s||!i)return;function e({reason:e}){(e===`reference-press`||e===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),(0,b.useEffect)(()=>()=>{iE(u)},[]);let f=(0,b.useMemo)(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=GT(e.nativeEvent);if(c&&JT(t)){if(vE()&&!e.relatedTarget){if(!d.current&&!XT(t))return}else if(!Bne(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(t){l.current=!1;let n=t.relatedTarget,i=t.nativeEvent;u.current=window.setTimeout(()=>{let t=KT(o.domReference?o.domReference.ownerDocument:document);(n||t!==o.domReference)&&(UT(e.refs.floating.current,t)||UT(o.domReference,t)||r(!1,i,`focus`))})}}),[e.refs.floating,o.domReference,r,c]);return(0,b.useMemo)(()=>s?{reference:f}:{},[s,f])}var Yne=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]),Xne=0;function yE(e,t={}){let{open:n,elements:r}=e,{enabled:i=!0,role:a=`dialog`}=t,o=b.useId(),s=r.domReference?.id||o,c=b.useMemo(()=>`floating-${Xne++}`,[]),l=b.useMemo(()=>r.floating?.id||c,[r.floating,c]),u=Yne.get(a)??a,d=b.useMemo(()=>u===`tooltip`||a===`label`?{[`aria-${a===`label`?`labelledby`:`describedby`}`]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:s},...a===`select`&&{"aria-autocomplete":`none`},...a===`combobox`&&{"aria-autocomplete":`list`}},[u,l,n,s,a]),f=b.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||a===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":s}}},[u,l,s,a]),p=b.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${l}-fui-option`}};switch(a){case`select`:case`combobox`:return{...n,"aria-selected":t}}return{}},[l,a]);return b.useMemo(()=>i?{reference:d,floating:f,item:p}:{},[i,d,f,p])}function bE(e){return qT(e.target)&&e.target.tagName===`BUTTON`}function Zne(e){return qT(e.target)&&e.target.tagName===`A`}function xE(e){return XT(e)}function Qne(e,t={}){let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s=`click`,toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=(0,b.useRef)(void 0),p=(0,b.useRef)(!1),m=(0,b.useMemo)(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current;e.button===0&&s!==`click`&&(rE(t,!0)&&l||(n&&c&&(!(i.current.openEvent&&d)||i.current.openEvent.type===`mousedown`)?r(!1,e.nativeEvent||e,`click`):(e.preventDefault(),r(!0,e.nativeEvent||e,`click`))))},onClick(e){let t=f.current;if(s===`mousedown`&&f.current){f.current=void 0;return}rE(t,!0)&&l||(n&&c&&(!(i.current.openEvent&&d)||i.current.openEvent.type===`click`)?r(!1,e.nativeEvent||e,`click`):r(!0,e.nativeEvent||e,`click`))},onKeyDown(e){f.current=void 0,!(e.defaultPrevented||!u||bE(e))&&(e.key===` `&&!xE(a)&&(e.preventDefault(),p.current=!0),!Zne(e)&&e.key===`Enter`&&r(!(n&&c),e.nativeEvent||e,`click`))},onKeyUp(e){e.defaultPrevented||!u||bE(e)||xE(a)||e.key===` `&&p.current&&(p.current=!1,r(!(n&&c),e.nativeEvent||e,`click`))}}),[i,a,s,l,u,r,n,d,c]);return(0,b.useMemo)(()=>o?{reference:m}:{},[o,m])}var SE=`ArrowUp`,CE=`ArrowDown`,wE=`ArrowLeft`,TE=`ArrowRight`;function EE(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function DE(e,t){return EE(t,e===SE||e===CE,e===wE||e===TE)}function OE(e,t,n){return EE(t,e===CE,n?e===wE:e===TE)||e===`Enter`||e===` `||e===``}function $ne(e,t,n){return EE(t,n?e===wE:e===TE,e===CE)}function ere(e,t,n){return EE(t,n?e===TE:e===wE,e===SE)}function tre(e,t){let{open:n,onOpenChange:r,elements:i}=e,{listRef:a,activeIndex:o,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:l=null,allowEscape:u=!1,loop:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:h=`auto`,focusItemOnHover:g=!0,openOnArrowKeyDown:_=!0,disabledIndices:v=void 0,orientation:y=`vertical`,scrollItemIntoView:x=!0}=t,S=ZT(i.domReference),C=(0,b.useRef)(h),w=(0,b.useRef)(l??-1),T=(0,b.useRef)(null),E=(0,b.useRef)(!0),D=(0,b.useRef)(!!i.floating),O=(0,b.useRef)(n),k=(0,b.useRef)(!1),A=(0,b.useRef)(!1),j=(0,b.useRef)(v);j.current=v;let M=(0,b.useRef)(n);M.current=n;let ee=(0,b.useRef)(x);ee.current=x;let te=(0,b.useRef)(l);te.current=l;let ne=Jp(s),[N,P]=(0,b.useState)(),re=Jp(()=>{ne(w.current===-1?null:w.current)}),ie=(0,b.useRef)(re),ae=Jp(()=>{function e(e){m?P(e.id):Une(e,{sync:k.current,preventScroll:!0})}let t=a.current[w.current],n=A.current;t&&e(t),(k.current?e=>e():requestAnimationFrame)(()=>{let r=a.current[w.current]||t;if(!r)return;t||e(r);let i=ee.current;i&&r&&(n||!E.current)&&r.scrollIntoView?.(typeof i==`boolean`?{block:`nearest`,inline:`nearest`}:i)})});(0,b.useLayoutEffect)(()=>{c&&(n&&i.floating?C.current&&l!=null&&(A.current=!0,w.current=l,re()):D.current&&(w.current=-1,ie.current()))},[c,n,i.floating,l,re]),(0,b.useLayoutEffect)(()=>{if(c&&n&&i.floating){if(o==null){if(k.current=!1,te.current!=null)return;if(D.current&&(w.current=-1,ae()),(!O.current||!D.current)&&C.current&&(T.current!=null||C.current===!0&&T.current==null)){let e=0,t=()=>{a.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(w.current=T.current==null||OE(T.current,y,p)||f?lE(a,j.current):uE(a,j.current),T.current=null,re())};t()}}else dE(a,o)||(w.current=o,ae(),A.current=!1)}},[c,n,i.floating,o,te,f,a,y,p,re,ae,j]),(0,b.useLayoutEffect)(()=>{ie.current=re,O.current=n,D.current=!!i.floating}),(0,b.useLayoutEffect)(()=>{n||(T.current=null,C.current=h)},[n,h]);let oe=o!=null,se=Jp(e=>{if(E.current=!1,k.current=!0,e.which===229||!M.current&&e.currentTarget===i.floating)return;if(f&&ere(e.key,y,p)){aE(e),r(!1,e.nativeEvent,`list-navigation`),qT(i.domReference)&&i.domReference.focus();return}let t=w.current,o=lE(a,v),s=uE(a,v);if(S||(e.key===`Home`&&(aE(e),w.current=o,re()),e.key===`End`&&(aE(e),w.current=s,re())),DE(e.key,y)){if(aE(e),n&&!m&&KT(e.currentTarget.ownerDocument)===e.currentTarget){w.current=OE(e.key,y,p)?o:s,re();return}OE(e.key,y,p)?d?w.current=t>=s?u&&t!==a.current.length?-1:o:cE(a,{startingIndex:t,disabledIndices:v}):w.current=Math.min(s,cE(a,{startingIndex:t,disabledIndices:v})):d?w.current=t<=o?u&&t!==-1?a.current.length:s:cE(a,{startingIndex:t,decrement:!0,disabledIndices:v}):w.current=Math.max(o,cE(a,{startingIndex:t,decrement:!0,disabledIndices:v})),dE(a,w.current)&&(w.current=-1),re()}}),ce=(0,b.useMemo)(()=>m&&n&&oe&&{"aria-activedescendant":N},[m,n,oe,N]),le=(0,b.useMemo)(()=>({"aria-orientation":y===`both`?void 0:y,...S?{}:ce,onKeyDown:se,onPointerMove(){E.current=!0}}),[ce,se,y,S]),ue=(0,b.useMemo)(()=>{function e(e){h===`auto`&&Vne(e.nativeEvent)&&(C.current=!0)}function t(e){C.current=h,h===`auto`&&Hne(e.nativeEvent)&&(C.current=!0)}return{...ce,onKeyDown(e){E.current=!1;let t=e.key.startsWith(`Arrow`),i=$ne(e.key,y,p),o=DE(e.key,y),s=(f?i:o)||e.key===`Enter`||e.key.trim()===``;if(m&&n)return se(e);if(n||_||!t){if(s&&(T.current=e.key),f){i&&(aE(e),n?(w.current=lE(a,j.current),re()):r(!0,e.nativeEvent,`list-navigation`));return}o&&(l!=null&&(w.current=l),aE(e),!n&&_?r(!0,e.nativeEvent,`list-navigation`):se(e),n&&re())}},onFocus(){n&&!m&&(w.current=-1,re())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ce,se,j,h,a,f,re,r,n,_,y,p,l,m]),de=(0,b.useMemo)(()=>{function e(e){if(!M.current)return;let t=a.current.indexOf(e);t!==-1&&w.current!==t&&(w.current=t,re())}return{onFocus({currentTarget:t}){k.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove({currentTarget:t}){k.current=!0,A.current=!1,g&&e(t)},onPointerLeave({pointerType:e}){E.current&&e!==`touch`&&(k.current=!0,g&&(w.current=-1,re(),m||i.floating?.focus({preventScroll:!0})))}}},[M,g,a,re,m,i.floating]);return(0,b.useMemo)(()=>c?{reference:ue,floating:le,item:de}:{},[c,ue,le,de])}function nre(e,t){let{open:n,dataRef:r}=e,{listRef:i,activeIndex:a,onMatch:o,onTypingChange:s,enabled:c=!0,findMatch:l=null,resetMs:u=750,ignoreKeys:d=[],selectedIndex:f=null}=t,p=(0,b.useRef)(-1),m=(0,b.useRef)(``),h=(0,b.useRef)(f??a??-1),g=(0,b.useRef)(null),_=Jp(o||(()=>{})),v=Jp(s||(()=>{})),y=(0,b.useRef)(l);y.current=l;let x=(0,b.useRef)(d);x.current=d,(0,b.useLayoutEffect)(()=>{n&&(iE(p),g.current=null,m.current=``)},[n]),(0,b.useLayoutEffect)(()=>{n&&m.current===``&&(h.current=f??a??-1)},[n,f,a]);let S=e=>{e?r.current.typing||(r.current.typing=e,v(e)):r.current.typing&&(r.current.typing=e,v(e))},C=e=>{function t(e,t,n){let r=y.current?y.current(t,n):t.find(e=>e?.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())===0);return r?e.indexOf(r):-1}let r=i.current;if(m.current.length>0&&m.current[0]!==` `&&(t(r,r,m.current)===-1?S(!1):e.key===` `&&aE(e)),r==null||x.current.includes(e.key)||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;n&&e.key!==` `&&(aE(e),S(!0)),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,iE(p),p.current=window.setTimeout(()=>{m.current=``,h.current=g.current,S(!1)},u);let a=h.current,o=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],m.current);o===-1?e.key!==` `&&(m.current=``,S(!1)):(_(o),g.current=o)},w=(0,b.useMemo)(()=>({onKeyDown:C}),[n,c]),T=(0,b.useMemo)(()=>({onKeyDown:C,onKeyUp(e){e.key===` `&&S(!1)}}),[n,c]);return(0,b.useMemo)(()=>c?{reference:w,floating:T}:{},[c,w,T])}function rre(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:a,scrollRef:o,onChange:s}=t,c=Jp(s),l=b.useRef(!1),u=b.useRef(null),d=b.useRef(null);b.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||a.current==null)return;let n=e.deltaY,r=a.current.top>=-.5,i=a.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?`max`:`min`;t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),xh.flushSync(()=>{c(e=>e+Math[l](n,o*s))})):/firefox/i.test(navigator.userAgent)&&(t.scrollTop+=n))}let t=o?.current||r.floating;if(n&&t)return t.addEventListener(`wheel`,e),requestAnimationFrame(()=>{u.current=t.scrollTop,a.current!=null&&(d.current={...a.current})}),()=>{u.current=null,d.current=null,t.removeEventListener(`wheel`,e)}},[i,n,r.floating,a,o,c]);let f=b.useMemo(()=>({onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){let e=o?.current||r.floating;if(a.current&&e&&l.current){if(u.current!==null){let t=e.scrollTop-u.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&xh.flushSync(()=>c(e=>e+t))}requestAnimationFrame(()=>{u.current=e.scrollTop})}}}),[r.floating,c,a,o]);return b.useMemo(()=>i?{floating:f}:{},[i,f])}var kE=b.createContext({currentId:null,setCurrentId:()=>{},delay:0,timeoutMs:0,initialDelay:0});function ire(){return b.useContext(kE)}function are({children:e,delay:t,timeoutMs:n=0}){let[r,i]=b.useState(null),a=b.useRef(void 0),o=b.useCallback(e=>{clearTimeout(a.current),e==null&&n>0?a.current=setTimeout(()=>{i(null)},n):i(e)},[n]);b.useEffect(()=>()=>clearTimeout(a.current),[]);let s=b.useMemo(()=>({currentId:r,setCurrentId:o,delay:t,timeoutMs:n,initialDelay:t}),[r,o,t,n]);return b.createElement(kE.Provider,{value:s},e)}function ore(e,t={}){let{id:n}=t,r=b.useContext(kE);return b.useEffect(()=>{!e.open&&r.currentId===n&&r.setCurrentId(null)},[e.open,n]),b.useEffect(()=>{r.currentId!=null&&r.currentId!==n&&e.open&&e.onOpenChange(!1)},[r.currentId,n,e.open]),r.currentId==null?{delay:r.initialDelay,currentId:r.currentId}:{delay:{open:1,close:sre(r.initialDelay)},currentId:r.currentId}}function sre(e){return typeof e==`number`?e:e?.close??0}function AE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var cre=e=>({name:`inner`,options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:i,offset:a=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:c=0,scrollRef:l,padding:u=0}=e,{rects:d,elements:{floating:f}}=t,p=n.current?.[o??0],m=l?.current||f,h=f.clientTop||m.clientTop,g=f.clientTop!==0,_=m.clientTop!==0,v=f===m;if(!p||o==null)return i?.(!0),{};let y={...t,...await AT(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-a).fn(t)},b={padding:u},x=await gT(AE(y,m.scrollHeight+h+f.clientTop),b),S=await gT(y,{...b,elementContext:`reference`}),C=Math.max(0,x.top),w=y.y+C,T=(m.scrollHeight>m.clientHeight?e=>e:Math.round)(Math.max(0,m.scrollHeight+(g&&v||_?h*2:0)-C-Math.max(0,x.bottom)));if(m.style.maxHeight=`${T}px`,m.scrollTop=C,i){let e=m.offsetHeight<p.offsetHeight*Math.min(s,n.current?.length??0)-1||S.top>=-c||S.bottom>=-c;xh.flushSync(()=>i(e))}return r&&(r.current=await gT(AE({...y,y:w},m.offsetHeight+h+f.clientTop),b)),{y:w}}}),{useStyledContext:jE,Provider:lre}=Mo({},`Popper__`),{useStyledContext:ME,Provider:ure}=Mo({},`PopperSlow__`),NE=({scope:e,children:t,...n})=>{let r=b.useRef(n);r.current=n;let[i]=b.useState(()=>({refs:n.refs,triggerElements:n.triggerElements,update(...e){r.current.update(...e)},getReferenceProps(e){return r.current.getReferenceProps?.(e)},onHoverReference(e){r.current.onHoverReference?.(e)},onLeaveReference(){r.current.onLeaveReference?.()}}));return(0,R.jsx)(lre,{scope:e,...n,children:(0,R.jsx)(ure,{scope:e,...i,children:t})})},dre=void 0,fre={};function pre(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var mre=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=pre(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function hre(e,t,n){n();let r=requestAnimationFrame(()=>{n(),r=0}),i=[()=>{r&&cancelAnimationFrame(r)}];e instanceof HTMLElement&&i.push(aee(e,n));let a=[...e instanceof Element?zw(e):[],...zw(t)],o=[...new Set(a)];for(let e of o)e.addEventListener(`scroll`,n,{passive:!0});return window.addEventListener(`resize`,n),i.push(()=>{for(let e of o)e.removeEventListener(`scroll`,n);window.removeEventListener(`resize`,n)}),()=>i.forEach(e=>e())}function PE(e){let{children:t,size:n,strategy:r=`absolute`,placement:i=`bottom`,stayInFrame:a,allowFlip:o,offset:s,disableRTL:c,resize:l,passThrough:u,open:d,scope:f}=e,[p,m]=b.useState(null),[h,g]=b.useState(0),_=s??h,v=b.useRef({}),y=u?!1:d??!0,x=b.useRef([]);y&&(x.current=[_===void 0?null:AT(_),o?MT(typeof o==`boolean`?{}:o):null,a?jT({padding:10,mainAxis:!0,crossAxis:!1,...typeof a==`object`?a:null}):null,p?PT({element:p}):null,dre,l?NT({padding:typeof a==`object`?a.padding:10,apply({availableHeight:e,availableWidth:t}){if(u)return;Object.assign(v.current,{maxHeight:`${e}px`,maxWidth:`${t}px`});let n=S.refs.floating.current?.firstChild;n&&n instanceof HTMLElement&&Object.assign(n.style,v.current)},...typeof l==`object`&&l}):null,NT({apply({elements:e,rects:t,availableWidth:n,availableHeight:r}){let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--hanzogui-popper-available-width`,`${n}px`),o.setProperty(`--hanzogui-popper-available-height`,`${r}px`),o.setProperty(`--hanzogui-popper-anchor-width`,`${i}px`),o.setProperty(`--hanzogui-popper-anchor-height`,`${a}px`)}}),mre({arrowHeight:h,arrowWidth:h})].filter(Boolean));let S=IT({open:y,strategy:r,placement:i,sameScrollView:!1,whileElementsMounted:y?hre:void 0,platform:c??fre.disableRTL?{...fT,isRTL(e){return!1}}:fT,middleware:x.current});S=b.useMemo(()=>{let e=S.getFloatingProps;return l&&e&&(S.getFloatingProps=t=>e({...t,style:{...t.style,...v.current}})),S},[S,l?JSON.stringify(l):null]);let{middlewareData:C}=S,w=b.useMemo(()=>({size:n,arrowRef:m,arrowStyle:C.arrow,onArrowSize:g,hasFloating:C.checkFloating?.hasFloating,transformOrigin:C.transformOrigin,open:!!d,...S}),[d,n,S,JSON.stringify(C.arrow||null),JSON.stringify(C.transformOrigin||null)]);return(0,R.jsx)(NE,{scope:f,...w,children:(0,R.jsx)(FT.Provider,{value:null,children:t})})}var FE=B.styleable(function(e,t){let{virtualRef:n,scope:r,...i}=e,a=ME(r),{getReferenceProps:o,refs:s,update:c}=a,l=b.useRef(null),u=b.useId();b.useEffect(()=>{if(!r||!a.triggerElements||!l.current||!(l.current instanceof Element))return;let e=l.current;return a.triggerElements.add(u,e),()=>{a.triggerElements?.delete(u)}},[r,u,a.triggerElements]),b.useEffect(()=>{n&&(s.setReference(n.current),c())},[n]);let d=o?.({...i,ref:l})||null,f=b.useCallback(e=>{cm(()=>{s.setReference(e)})},[s]),p=r,m=Ml(t,l,p?void 0:f);return(0,R.jsx)(Lm,{...i,...d,ref:m,...p&&{onMouseEnter:e=>{let t=e.currentTarget??l.current;if(t instanceof HTMLElement){if((0,xh.flushSync)(()=>s.setReference(t)),c(),!d)return;d.onPointerEnter?.(e),a.onHoverReference?.(e.nativeEvent)}},onMouseLeave:e=>{a.onLeaveReference?.(),d?.onMouseLeave?.(e)}}})}),IE=z(B,{name:`PopperContent`,variants:{unstyled:{true:{}},size:{"...size":(e,{tokens:t})=>({padding:t.space[e],borderRadius:t.radius[e]})}}}),LE=b.forwardRef(function(e,t){let n=`animatePosition`in e||`enableAnimationForPositionChange`in e,{scope:r,animatePosition:i,enableAnimationForPositionChange:a,children:o,passThrough:s,unstyled:c,...l}=e,u=i??a,d=jE(r),{strategy:f,placement:p,refs:m,x:h,y:g,getFloatingProps:_,size:v,isPositioned:y,transformOrigin:x,update:S}=d,C=b.useRef(S);C.current=S;let w=b.useRef(null),T=b.useCallback(e=>{let t=e!==w.current;e&&(w.current=e,m.setFloating(e),t||C.current?.())},[m.setFloating]);b.useEffect(()=>()=>{let e=w.current;e&&m.floating.current===e&&m.setFloating(null),w.current=null},[]);let E=Ml(T,t),[D,O]=b.useState(u);Ho(()=>{D&&h&&g&&O(!1)},[D,u,h,g]);let k=b.useRef(!1),A=b.useRef({x:0,y:0});(h!==0||g!==0)&&(A.current={x:h,y:g},y&&(k.current=!0));let j=k.current&&h===0&&g===0,M=j?A.current.x:h,ee=j?A.current.y:g,te=!k.current&&M===0&&ee===0,ne=u===`even-when-repositioning`?D:!k.current&&!y||D,[N,P]=b.useState(ne);b.useEffect(()=>{P(ne)},[ne]);let re={ref:E,...te?{}:{x:M||0,y:ee||0},top:0,left:0,position:f,opacity:+!te,...n&&{transition:u?l.transition:void 0,animateOnly:u&&!N?l.animateOnly:[],animatePresence:!1}},{style:ie,...ae}=_?_(re):re,oe=x?{transformOrigin:`${x.x} ${x.y}`}:void 0;return(0,R.jsx)(bm,{disable:!d.open,children:(0,R.jsx)(Lm,{passThrough:s,ref:E,direction:l.direction,...s?null:ae,...!s&&u&&{"data-popper-animate-position":`true`},children:(0,R.jsx)(IE,{passThrough:s,unstyled:c,...!s&&{"data-placement":p,"data-strategy":f,size:v,...ie,...oe,...l},children:o},`popper-content-frame`)})})}),RE=z(B,{name:`PopperArrow`,variants:{unstyled:{false:{borderColor:`$borderColor`,backgroundColor:`$background`,position:`relative`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),gre=z(B,{name:`PopperArrowOuter`,variants:{unstyled:{false:{position:`absolute`,zIndex:1e6,pointerEvents:`none`,overflow:`hidden`,alignItems:`center`,justifyContent:`center`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),_re={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zE=b.forwardRef(function(e,t){let n=`animatePosition`in e,{scope:r,animatePosition:i,transition:a,...o}=e,{offset:s,size:c,borderWidth:l=0,...u}=o,d=jE(r),f=typeof c==`number`?c:Gc(eh(c??d.size,{shift:-2,bounds:[2]})),p=Math.max(0,+f),{placement:m}=d,h=Ml(d.arrowRef,t),g=d.arrowStyle?.x||0,_=d.arrowStyle?.y||0,v=d.arrowStyle!=null,y=m?m.split(`-`)[0]:`top`,b={x:g,y:_,width:p,height:p},x={},S=y===`bottom`||y===`top`;if(y){b[S?`width`:`height`]=p*2;let e=_re[y];e&&(b[e]=-p,x[e]=p/2),(e===`top`||e===`bottom`)&&(b.left=0),(e===`left`||e===`right`)&&(b.top=0),Ho(()=>{d.onArrowSize?.(p)},[p,d.onArrowSize])}return(0,R.jsx)(gre,{ref:h,...b,...!v&&{opacity:0},...n&&{transition:i?a:void 0,animateOnly:i?[`transform`]:[],animatePresence:!1},children:(0,R.jsx)(RE,{width:p,height:p,...u,...x,rotate:`45deg`,...y===`bottom`&&{borderLeftWidth:l,borderTopWidth:l},...y===`top`&&{borderBottomWidth:l,borderRightWidth:l},...y===`right`&&{borderLeftWidth:l,borderBottomWidth:l},...y===`left`&&{borderTopWidth:l,borderRightWidth:l}})})}),vre=`rovingFocusGroup.onEntryFocus`,yre={bubbles:!1,cancelable:!0},bre=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,asChild:u,...d}=e,f=Ml(t,b.useRef(null)),p=mh(a),[m=null,h]=um({prop:o,defaultProp:s??null,onChange:c}),[g,_]=b.useState(!1),v=Jp(l),y=UE(n||WE),x=b.useRef(!1),[S,C]=b.useState(0),w=u?Sf:Lm;return(0,R.jsx)(Sre,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:b.useCallback(e=>h(e),[h]),onItemShiftTab:b.useCallback(()=>_(!0),[]),onFocusableItemAdd:b.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:b.useCallback(()=>C(e=>e-1),[]),children:(0,R.jsx)(w,{tabIndex:g||S===0?-1:0,"data-orientation":r,...d,ref:f,outlineStyle:`none`,onMouseDown:cc(e.onMouseDown,()=>{x.current=!0}),onFocus:cc(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!g){let e=new CustomEvent(vre,yre);if(v(e),!e.defaultPrevented){let e=y().filter(e=>e.focusable);KE([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),{focusVisible:!1})}}x.current=!1}),onBlur:cc(e.onBlur,()=>_(!1))})})}),xre=`RovingFocusGroupItem`,BE=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=b.useId(),c=a||s,l=Cre(n);l.currentTabStopId;let u=UE(n||WE),{onFocusableItemAdd:d,onFocusableItemRemove:f}=l;return b.useEffect(()=>{if(r)return d(),()=>f()},[r,d,f]),(0,R.jsx)(HE.ItemSlot,{scope:n||WE,id:c,focusable:r,active:i,children:(0,R.jsx)(Lm,{tabIndex:r?0:-1,"data-orientation":l.orientation,...o,ref:t,onMouseDown:cc(e.onMouseDown,e=>{r?l.onItemFocus(c):e.preventDefault()}),onFocus:cc(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:cc(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){l.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Ere(e,l.orientation,l.dir);if(t!==void 0){e.preventDefault();let n=u().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=l.loop?Dre(n,r+1):n.slice(r+1)}setTimeout(()=>KE(n,{focusVisible:!0}))}})})})});BE.displayName=xre;var VE=`RovingFocusGroup`,[HE,UE]=zm(VE),{Provider:Sre,useStyledContext:Cre}=Mo(),WE=`RovingFocusGroupContext`,GE=Ic(b.forwardRef((e,t)=>(0,R.jsx)(HE.Provider,{scope:e.__scopeRovingFocusGroup||WE,children:(0,R.jsx)(HE.Slot,{scope:e.__scopeRovingFocusGroup||WE,children:(0,R.jsx)(bre,{...e,ref:t})})})),{Item:BE});GE.displayName=VE;var wre={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Tre(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ere(e,t,n){let r=Tre(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return wre[r]}function KE(e,t){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({focusVisible:t?.focusVisible}),document.activeElement!==n))return}function Dre(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ore=z(jp,{name:`MenuGroup`,variants:{unstyled:{false:{role:`group`,width:`100%`,borderRadius:0,borderWidth:0,borderColor:`$borderColor`,overflow:`hidden`,backgroundColor:`$background`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),kre=z(H,{name:`MenuLabel`,variants:{unstyled:{false:{cursor:`default`,color:`$color`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),Are=z(jp,{name:`MenuSeparator`,role:`separator`,"aria-orientation":`horizontal`,variants:{unstyled:{false:{borderColor:`$borderColor`,flexShrink:0,borderWidth:0,height:1,marginVertical:3,marginHorizontal:10,backgroundColor:`$borderColor`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),qE={MenuIcon:z(jp,{name:`MenuIcon`,variants:{unstyled:{false:{width:20,height:20,alignItems:`center`,justifyContent:`center`,marginLeft:`auto`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),MenuImage:z(gS,{name:`MenuImage`}),MenuIndicator:z(jp,{name:`MenuIndicator`,variants:{unstyled:{false:{justifyContent:`center`,alignItems:`center`,marginLeft:`auto`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),MenuItem:z(jp,{name:`MenuItem`,variants:{unstyled:{false:{flexDirection:`row`,width:`100%`,alignItems:`center`,cursor:`pointer`,borderRadius:6,paddingVertical:4,paddingHorizontal:8,focusStyle:{backgroundColor:`$backgroundHover`},pressStyle:{backgroundColor:`$backgroundPress`}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),Title:z(H,{name:`MenuTitle`,variants:{unstyled:{false:{cursor:`default`,color:`$color`,flexGrow:1,flexShrink:1}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),SubTitle:z(H,{name:`MenuSubTitle`,variants:{unstyled:{false:{cursor:`default`,color:`$colorFaint`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),MenuGroup:Ore,MenuSeparator:Are,MenuLabel:kre};function jre(e){return t=>t.pointerType===`mouse`?e(t):void 0}var JE=[`Enter`,` `],Mre=[`ArrowDown`,`PageUp`,`Home`],YE=[`ArrowUp`,`PageDown`,`End`],Nre=[...Mre,...YE],Pre={ltr:[...JE,`ArrowRight`],rtl:[...JE,`ArrowLeft`]},Fre={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},XE=`Menu`,[ZE,Ire]=zm(XE),{Provider:QE,useStyledContext:$E}=Mo(),{Provider:eD,useStyledContext:tD}=Mo(),nD=`MenuContext`;function Lre({Item:e=qE.MenuItem,Title:t=qE.Title,SubTitle:n=qE.SubTitle,Image:r=qE.MenuImage,Icon:i=qE.MenuIcon,Indicator:a=qE.MenuIndicator,Separator:o=qE.MenuSeparator,MenuGroup:s=qE.MenuGroup,Label:c=qE.MenuLabel}){let l=e=>{let t=mh(e.dir),n=t===`rtl`?`bottom-end`:`bottom-start`,{scope:r=nD,open:i=!1,children:a,dir:o,onOpenChange:s,modal:c=!0,allowFlip:l={padding:10},stayInFrame:u={padding:10},placement:d=n,resize:f=!0,offset:p=10,...m}=e,[h,g]=b.useState(null),_=b.useRef(!1),v=rg(s);return b.useEffect(()=>{let e=()=>{_.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>_.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,R.jsx)(PE,{scope:r,open:i,placement:d,allowFlip:l,stayInFrame:u,resize:f,offset:p,...m,children:(0,R.jsx)(QE,{scope:r,open:i,onOpenChange:v,content:h,onContentChange:g,children:(0,R.jsx)(eD,{scope:r,open:i,onClose:b.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:_,dir:t,modal:c,children:(0,R.jsx)(le,{scope:r,children:a})})})})},u=e=>{let{scope:t=nD,menuContext:n,rootContext:r,popperContext:i,menuSubContext:a,children:o}=e;return(0,R.jsx)(NE,{...i,scope:t,children:(0,R.jsx)(QE,{scope:t,...n,children:(0,R.jsx)(eD,{scope:t,...r,children:a?(0,R.jsx)(le,{scope:t,...a,children:o}):o})})})};l.displayName=XE;let d=e=>(0,R.jsx)(FE,{scope:nD,...e});d.displayName=`MenuAnchor`;let{Provider:f,useStyledContext:p}=Mo(void 0,`Portal`),m=e=>{let{scope:t=nD,forceMount:n,zIndex:r,children:i}=e,a=$E(t),o=tD(t),s=jE(t),c=ue(t),l=Ip(),d=(0,R.jsx)(of,{forceClassName:!0,name:l,children:i}),p=Ch()?(0,R.jsx)(u,{menuContext:a,rootContext:o,popperContext:s,menuSubContext:c,scope:t,children:d}):d,m=n||o.open&&a.open;return(0,R.jsx)($h,{type:`presence`,present:m,children:(0,R.jsx)(Sh,{stackZIndex:!0,children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(f,{scope:t,forceMount:n,children:(0,R.jsxs)(jp,{zIndex:r||100,inset:0,position:`absolute`,children:[!!a.open&&!1,p]})})})})})};m.displayName=`MenuPortal`;let h=`MenuContent`,{Provider:g,useStyledContext:_}=Mo(),v=z(IE,{name:h}).styleable((e,t)=>{let n=e.scope||nD,r=p(n),{forceMount:i=r.forceMount,...a}=e,o=tD(n);return(0,R.jsx)(ZE.Provider,{scope:n,children:(0,R.jsx)(ZE.Slot,{scope:n,children:o.modal?(0,R.jsx)(y,{...a,ref:t}):(0,R.jsx)(x,{...a,ref:t})})})}),y=b.forwardRef((e,t)=>{let n=e.scope||nD,r=$E(n),i=Ml(t,b.useRef(null));return(0,R.jsx)(S,{...e,scope:n,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!1,onFocusOutside:cc(e.onFocusOutside,e=>e.preventDefault(),{checkDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),x=b.forwardRef((e,t)=>{let n=e.scope||nD,r=$E(n);return(0,R.jsx)(S,{...e,scope:n,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),S=b.forwardRef((e,t)=>{let{scope:n=nD,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,disableDismissOnScroll:h=!1,unstyled:_={}.GUI_HEADLESS===`1`,...v}=e,y=$E(n),x=tD(n),S=jE(n),C=Ire(n),[w,T]=b.useState(null),E=b.useRef(null),D=b.useRef(null),O=Ml(t,E,y.onContentChange),k=b.useRef(0),A=b.useRef(``),j=b.useRef(0),M=b.useRef(null),ee=b.useRef(`right`),te=b.useRef(0),ne=e=>{let t=A.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Bre(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){A.current=t,clearTimeout(k.current),t!==``&&(k.current=setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};b.useEffect(()=>()=>clearTimeout(k.current),[]),b.useEffect(()=>{if(!y.open)return;let e=requestAnimationFrame(()=>{let e=E.current?.querySelector(`[data-hanzogui-menu-content]`);e&&(D.current=e)});return()=>cancelAnimationFrame(e)},[y.open]),b.useEffect(()=>{if(h||!y.open)return;let e=e=>{let t=e.target;if(!t||E.current?.contains(t))return;let n=S.refs?.reference?.current,r=n instanceof Element?n:n?.contextElement??null;(!r||t.contains(r))&&p?.()};return window.addEventListener(`scroll`,e,{capture:!0,passive:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0})}},[h,y.open,p,S.refs]),AC();let N=b.useCallback(e=>{let t=ee.current===M.current?.side,n=Hre(e,M.current?.area);return t&&n},[]),P=(0,R.jsx)(LE,{role:`menu`,tabIndex:-1,unstyled:_,...!_&&{backgroundColor:`$background`,borderWidth:1,borderColor:`$borderColor`,outlineWidth:0,minWidth:180},"aria-orientation":`vertical`,"data-state":rD(y.open),"data-hanzogui-menu-content":``,dir:x.dir,scope:n||nD,...v,ref:O,className:v.transition?void 0:v.className,onKeyDown:cc(v.onKeyDown,e=>{let t=e.target.closest(`[data-hanzogui-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ne(e.key));let i=e.target.hasAttribute(`data-hanzogui-menu-content`);if(!t||!i||!Nre.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);YE.includes(e.key)&&a.reverse(),Rre(a,{focusVisible:!0})}),onBlur:cc(e.onBlur,e=>{e.currentTarget?.contains(e.target)||(clearTimeout(k.current),A.current=``)}),onPointerMove:cc(e.onPointerMove,e=>{if(e.pointerType!==`mouse`)return;let t=e.target,n=te.current!==e.clientX;if(e.currentTarget?.contains(t)&&n){let t=e.clientX>te.current?`right`:`left`;ee.current=t,te.current=e.clientX}})});return(0,R.jsx)(g,{scope:n,searchRef:A,onItemEnter:b.useCallback(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:b.useCallback(e=>{N(e)||(D.current?.focus(),T(null))},[N]),onTriggerLeave:b.useCallback(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:j,onPointerGraceIntentChange:b.useCallback(e=>{M.current=e},[]),children:(0,R.jsx)(a_,{enabled:m,children:(0,R.jsx)(Bg,{asChild:!1,trapped:i,onMountAutoFocus:cc(a,e=>{e.preventDefault(),document.querySelector(`[data-hanzogui-menu-content]`)?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,R.jsx)(gg,{disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,asChild:!0,children:(0,R.jsx)(GE,{asChild:!0,__scopeRovingFocusGroup:n||nD,dir:x.dir,orientation:`vertical`,loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:cc(c,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),children:P})})})})})});v.displayName=h;let C=`MenuItem`,w=`menu.itemSelect`,T=e.styleable((e,t)=>{let{disabled:n=!1,onSelect:r,preventCloseOnSelect:i,children:a,scope:o=nD,destructive:s,hidden:c,androidIconName:l,iosIconName:u,...d}=e,f=b.useRef(null),p=tD(o),m=_(o),h=Ml(t,f),g=b.useRef(!1),v=()=>{let e=f.current;if(!n&&e){let t=e,n=new CustomEvent(w,{bubbles:!0,cancelable:!0});t.addEventListener(w,e=>r?.(e),{once:!0}),ag(t,n),n.defaultPrevented||i?g.current=!1:p.onClose()}},y=typeof a==`string`?(0,R.jsx)(Gp,{children:a}):a;return(0,R.jsx)(E,{outlineStyle:`none`,...d,scope:o,ref:h,disabled:n,onPress:cc(e.onPress,v),onPointerDown:t=>{e.onPointerDown?.(t),g.current=!0},onPointerUp:cc(e.onPointerUp,e=>{g.current||e.currentTarget?.click()}),onKeyDown:cc(e.onKeyDown,e=>{let t=m.searchRef.current!==``;n||t&&e.key===` `||JE.includes(e.key)&&(e.currentTarget?.click(),e.preventDefault())}),children:y})}),E=b.forwardRef((t,n)=>{let{scope:r=nD,disabled:i=!1,textValue:a,unstyled:o={}.GUI_HEADLESS===`1`,...s}=t,c=_(r),l=b.useRef(null),u=Ml(n,l),[d,f]=b.useState(!1),[p,m]=b.useState(``);return b.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[s.children]),(0,R.jsx)(ZE.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:(0,R.jsx)(GE.Item,{asChild:!0,__scopeRovingFocusGroup:r,focusable:!i,children:(0,R.jsx)(e,{unstyled:o,componentName:C,role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...s,ref:u,onPointerMove:cc(t.onPointerMove,e=>{e.pointerType===`mouse`&&(i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0,focusVisible:!1})))}),onPointerLeave:cc(t.onPointerLeave,e=>{c.onItemLeave(e)}),onFocus:cc(t.onFocus,()=>f(!0)),onBlur:cc(t.onBlur,()=>f(!1))})})})});T.displayName=C;let D=t.styleable((e,n)=>(0,R.jsx)(t,{...e,ref:n}));D.displayName=`MenuItemTitle`;let O=n.styleable((e,t)=>(0,R.jsx)(n,{...e,ref:t}));O.displayName=`MenuItemSubTitle`;let k=b.forwardRef((e,t)=>{let{ios:n,androidIconName:i,iosIconName:a,...o}=e;return(0,R.jsx)(r,{...o,ref:t})});k.displayName=`MenuItemImage`;let A=i.styleable((e,t)=>{let{ios:n,android:r,androidIconName:a,iosIconName:o,...s}=e;return(0,R.jsx)(i,{...s,ref:t})});A.displayName=`MenuItemIcon`;let j=`MenuCheckboxItem`,M=e.styleable((e,t)=>{let{checked:n=!1,onCheckedChange:r,scope:i=nD,value:a,onValueChange:o,...s}=e;return(0,R.jsx)(ae,{scope:i,checked:n,children:(0,R.jsx)(T,{componentName:j,role:`menuitemcheckbox`,"aria-checked":iD(n)?`mixed`:n,...s,scope:i,ref:t,"data-state":aD(n),onSelect:cc(s.onSelect,()=>r?.(iD(n)?!0:!n),{checkDefaultPrevented:!1})})})});M.displayName=j;let ee=`MenuRadioGroup`,{Provider:te,useStyledContext:ne}=Mo(),N=s.styleable((e,t)=>{let{value:n,onValueChange:r,scope:i=nD,...a}=e,o=rg(r);return(0,R.jsx)(te,{scope:i,value:n,onValueChange:o,children:(0,R.jsx)(s,{componentName:ee,...a,ref:t})})});N.displayName=ee;let P=`MenuRadioItem`,re=e.styleable((e,t)=>{let{value:n,scope:r=nD,...i}=e,a=ne(r),o=n===a.value;return(0,R.jsx)(ae,{scope:r,checked:o,children:(0,R.jsx)(T,{componentName:P,...i,scope:r,"aria-checked":o,ref:t,role:`menuitemradio`,"data-state":aD(o),onSelect:cc(i.onSelect,()=>a.onValueChange?.(n),{checkDefaultPrevented:!1})})})});re.displayName=P;let ie=`MenuItemIndicator`,{Provider:ae,useStyledContext:oe}=Mo(),se=a.styleable((e,t)=>{let{scope:n=nD,forceMount:r,...i}=e,o=oe(n);return(0,R.jsx)(sm,{children:r||iD(o.checked)||o.checked===!0?(0,R.jsx)(a,{componentName:ie,render:`span`,...i,ref:t,"data-state":aD(o.checked)}):null})});se.displayName=ie;let ce=b.forwardRef(function(e,t){let{scope:n=nD,unstyled:r={}.GUI_HEADLESS===`1`,...i}=e;return(0,R.jsx)(zE,{scope:n,componentName:`PopperArrow`,unstyled:r,...!r&&{backgroundColor:`$background`},...i,ref:t})}),{Provider:le,useStyledContext:ue}=Mo(),de=e=>{let t=Ap(),{scope:n=nD}=e,r=tD(n),i=jE(n).placement?.split(`-`)[0],a=i===`left`||i===`right`,o=t?`bottom`:a?`${i}-start`:r.dir===`rtl`?`left-start`:`right-start`,{children:s,open:c=!1,onOpenChange:l,allowFlip:u={padding:10},stayInFrame:d={padding:10},placement:f=o,...p}=e,m=b.useMemo(()=>{if(!a||typeof u==`boolean`||u.fallbackPlacements)return u;let e=f.split(`-`)[0],t=f.split(`-`)[1]||`start`,n=t===`start`?`end`:`start`;if(e===`left`||e===`right`){let r=e===`right`?`left`:`right`;return{...typeof u==`object`?u:{},fallbackPlacements:[`${e}-${n}`,`${r}-${t}`,`${r}-${n}`]}}return u},[a,u,f]),h=$E(n),[g,_]=b.useState(null),[v,y]=b.useState(null),x=rg(l);return b.useEffect(()=>(h.open===!1&&x(!1),()=>x(!1)),[h.open,x]),(0,R.jsx)(PE,{open:c,placement:f,allowFlip:m,stayInFrame:d,...p,scope:n,children:(0,R.jsx)(QE,{scope:n,open:c,onOpenChange:x,content:v,onContentChange:y,children:(0,R.jsx)(le,{scope:n,contentId:(0,b.useId)(),triggerId:(0,b.useId)(),trigger:g,onTriggerChange:_,children:s})})})};de.displayName=`MenuSub`;let fe=`MenuSubTrigger`,pe=b.forwardRef((e,t)=>{let n=e.scope||nD,r=$E(n),i=tD(n),a=ue(n),o=_(n),s=jE(n),c=b.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,f=i.dir,p=b.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return b.useEffect(()=>p,[p]),b.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),(0,R.jsx)(d,{componentName:fe,asChild:`except-style`,scope:n,children:(0,R.jsx)(E,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":a.contentId,"data-state":rD(r.open),outlineStyle:`none`,...e,ref:jl(t,a.onTriggerChange),onPress:t=>{e.onPress?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:cc(e.onPointerMove,jre(t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(o.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:cc(e.onPointerLeave,e=>{let t=e;p();let n=r.content?.getBoundingClientRect();if(n){let e=r.content,i=(e?.dataset?.side?e:e?.querySelector(`[data-side]`))?.dataset?.side||`right`,a=i===`right`,s=a?-5:5,c=n[a?`left`:`right`],u=n[a?`right`:`left`],d={area:[{x:t.clientX+s,y:t.clientY},{x:c,y:n.top},{x:u,y:n.top},{x:u,y:n.bottom},{x:c,y:n.bottom}],side:i};o.onPointerGraceIntentChange(d),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else if(a.trigger){let e=a.trigger?.getBoundingClientRect();if(e){let n=s.placement?.split(`-`)[0],r=n===`left`||n===`right`?n:i.dir===`rtl`?`left`:`right`,a=r===`right`,c=a?-5:5,u=a?e.right+4:e.left-4,d=a?u+200:u-200,f={area:[{x:t.clientX+c,y:t.clientY},{x:u,y:e.top-50},{x:d,y:e.top-50},{x:d,y:e.bottom+50},{x:u,y:e.bottom+50}],side:r};o.onPointerGraceIntentChange(f),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}}else{if(o.onTriggerLeave(t),t.defaultPrevented)return;o.onPointerGraceIntentChange(null)}}),onKeyDown:cc(e.onKeyDown,t=>{let n=o.searchRef.current!==``;if(!(e.disabled||n&&t.key===` `)&&Pre[f].includes(t.key)){if(r.open&&r.content){let e=r.content.querySelector?.(`[role="menuitem"]:not([data-disabled])`);if(e){e.focus({focusVisible:!0}),t.preventDefault();return}}let e=t.currentTarget;s.refs?.setReference(e),r.onOpenChange(!0),requestAnimationFrame(()=>{s.update?.()}),r.content?.focus({focusVisible:!0}),t.preventDefault()}})})})});pe.displayName=fe;let me=`MenuSubContent`,he=z(IE,{name:me}).styleable((e,t)=>{let n=e.scope||nD,r=p(n),{forceMount:i=r.forceMount,...a}=e,o=$E(n),s=tD(n),c=ue(n),l=jE(n),u=b.useRef(null),d=Ml(t,u),f=l.placement?.split(`-`)[0],m=f===`left`||f===`right`?f:s.dir===`rtl`?`left`:`right`,h=s.dir;return(0,R.jsx)(ZE.Provider,{scope:n,children:(0,R.jsx)(ZE.Slot,{scope:n,children:(0,R.jsx)(S,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,"data-side":m,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{if(s.isUsingKeyboardRef.current){let e=u.current;(e?.querySelector?.(`[data-hanzogui-menu-content]`)||e)?.focus({preventScroll:!0})}e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:cc(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:cc(e.onEscapeKeyDown,e=>{o.onOpenChange(!1),c.trigger?.focus({focusVisible:!0}),e.preventDefault()}),onKeyDown:cc(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Fre[h].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus({focusVisible:!0}),e.preventDefault())})})})})});he.displayName=me;let ge=d,F=m,_e=v,I=s.styleable((e,t)=>(0,R.jsx)(s,{...e,ref:t}));I.displayName=`MenuGroup`;let ve=c.styleable((e,t)=>(0,R.jsx)(c,{...e,ref:t}));ve.displayName=`MenuLabel`;let ye=T,be=M,xe=N,L=re,Se=se,Ce=o.styleable((e,t)=>(0,R.jsx)(o,{...e,ref:t}));return Ce.displayName=`MenuSeparator`,{Menu:Ic(l,{Anchor:ge,Portal:F,Content:_e,Group:I,Label:ve,Item:ye,CheckboxItem:be,RadioGroup:xe,RadioItem:L,ItemIndicator:Se,Separator:Ce,Arrow:ce,Sub:de,SubTrigger:pe,SubContent:he,ItemTitle:D,ItemSubtitle:O,ItemImage:k,ItemIcon:A})}}function rD(e){return e?`open`:`closed`}function iD(e){return e===`indeterminate`}function aD(e){return iD(e)?`indeterminate`:e?`checked`:`unchecked`}function Rre(e,t){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:!0,focusVisible:t?.focusVisible}),document.activeElement!==n))return}function zre(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Bre(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=zre(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Vre(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Hre(e,t){return t?Vre({x:e.clientX,y:e.clientY},t):!1}var oD=(()=>null);function Ure(){return{Menu:Ic(oD,{Trigger:oD,Content:oD,Item:oD,ItemTitle:oD,ItemSubtitle:oD,SubTrigger:oD,Group:oD,ItemIcon:oD,Separator:oD,CheckboxItem:oD,ItemIndicator:oD,ItemImage:oD,Label:oD,Arrow:oD,Sub:oD,SubContent:oD,Preview:oD,Portal:oD,RadioGroup:oD,RadioItem:oD,Auxiliary:oD})}}var Wre=e=>Ure();function sD({Component:e,NativeComponent:t}){return e}var cD=z(Lx,{name:`ScrollView`,scrollEnabled:!0,variants:{fullscreen:{true:Hm}}},{accept:{contentContainerStyle:`style`}}),Gre=`MenuContext`;function Kre(e){let t=b.useRef(new Map),n=b.useRef(null),r=Jp(r=>{let i=n.current;i!==r&&(i&&t.current.get(i)?.(!1),n.current=r,r&&e&&t.current.get(r)?.(!0))}),i=Jp((r,i)=>{t.current.set(r,i),i(n.current===r&&e)}),a=Jp(e=>{t.current.delete(e),n.current===e&&(n.current=null)});return b.useEffect(()=>{if(!e){r(null);return}let i=n.current;i&&t.current.get(i)?.(!0)},[e,r]),{setActiveTrigger:r,registerTrigger:i,unregisterTrigger:a}}function qre(e){let{Menu:t}=Lre(e),{Provider:n,useStyledContext:r}=Mo(),i=e=>{let{scope:r,children:i,dir:a,open:o,defaultOpen:s,onOpenChange:c,modal:l=!0,...u}=e,d=b.useRef(null),[f=!1,p]=um({prop:o,defaultProp:s,onChange:c}),m=b.useRef(f);m.current=f;let{setActiveTrigger:h,registerTrigger:g,unregisterTrigger:_}=Kre(f);return(0,R.jsx)(n,{scope:r,triggerId:(0,b.useId)(),triggerRef:d,contentId:(0,b.useId)(),openRef:m,onOpenChange:b.useCallback(e=>p(e),[p]),onOpenToggle:b.useCallback(()=>p(e=>!e),[p]),modal:l,setActiveTrigger:h,registerTrigger:g,unregisterTrigger:_,children:(0,R.jsx)(t,{scope:r||`MenuContext`,open:f,onOpenChange:p,dir:a,modal:l,...u,children:i})})};i.displayName=`Menu`;let a=`MenuTrigger`,o=t.Anchor,s=jp.styleable((e,t)=>{let{scope:n,asChild:i,children:s,disabled:c=!1,onKeydown:l,...u}=e,d=r(n),f=ME(n||`MenuContext`),p=i?Sf:jp,m=Ap(),h=b.useRef(null),g=b.useId(),[_,v]=b.useState(!1),{registerTrigger:y,unregisterTrigger:x}=d;b.useEffect(()=>(y(g,v),()=>x(g)),[y,x,g]);let S=b.useCallback(()=>{d.setActiveTrigger(g);let e=h.current;e&&(d.triggerRef.current=e,e instanceof HTMLElement&&(f.refs?.setReference(e),requestAnimationFrame(()=>f.update?.())))},[d,g,f]),C=m?`onClick`:`onPointerDown`;return(0,R.jsx)(o,{asChild:!0,componentName:a,scope:n||`MenuContext`,children:(0,R.jsx)(p,{role:`button`,id:d.triggerId,"aria-haspopup":`menu`,"aria-expanded":_,"aria-controls":_?d.contentId:void 0,"data-state":_?`open`:`closed`,"data-disabled":c?``:void 0,"aria-disabled":c||void 0,ref:jl(t,d.triggerRef,h),[C]:cc(e[C],e=>{if(!c){if(e instanceof PointerEvent&&e.button!==0&&e.ctrlKey===!0)return;d.openRef.current?d.setActiveTrigger(null):S(),d.onOpenToggle(),d.openRef.current||e.preventDefault()}}),onKeyDown:cc(l,e=>{c||([`Enter`,` `].includes(e.key)&&(d.openRef.current?d.setActiveTrigger(null):S(),d.onOpenToggle()),e.key===`ArrowDown`&&(S(),d.onOpenChange(!0)),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())}),...u,children:s})})});s.displayName=a;let c=e=>{let{scope:i,children:a,...o}=e,s=Wo?r(i):null,c=Wo?(0,R.jsx)(n,{...s,children:a}):a;return(0,R.jsx)(t.Portal,{scope:i||`MenuContext`,...o,children:c})};c.displayName=`MenuPortal`;let l=b.forwardRef((e,n)=>{let{scope:i,...a}=e,o=r(i),s=b.useRef(!1);return(0,R.jsx)(t.Content,{id:o.contentId,"aria-labelledby":o.triggerId,scope:i||`MenuContext`,...a,ref:n,onCloseAutoFocus:cc(e.onCloseAutoFocus,e=>{s.current||requestAnimationFrame(()=>{let e=document.activeElement;(!e||e===document.body)&&o.triggerRef.current?.focus()}),s.current=!1,e.preventDefault()}),onInteractOutside:cc(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!o.modal||r)&&(s.current=!0)}),style:{...e.style,"--hanzogui-menu-content-transform-origin":`var(--hanzogui-popper-transform-origin)`,"--hanzogui-menu-content-available-width":`var(--hanzogui-popper-available-width)`,"--hanzogui-menu-content-available-height":`var(--hanzogui-popper-available-height)`,"--hanzogui-menu-trigger-width":`var(--hanzogui-popper-anchor-width)`,"--hanzogui-menu-trigger-height":`var(--hanzogui-popper-anchor-height)`}})});l.displayName=`MenuContent`;let u=e=>{let{scope:n,children:r,open:i,onOpenChange:a,defaultOpen:o,...s}=e,[c=!1,l]=um({prop:i,defaultProp:o,onChange:a});return(0,R.jsx)(t.Sub,{scope:n||`MenuContext`,open:c,onOpenChange:l,...s,children:r})};u.displayName=`MenuSub`;let d=b.forwardRef((e,n)=>{let{scope:r,...i}=e;return(0,R.jsx)(t.SubContent,{scope:r||`MenuContext`,...i,ref:n,style:{...e.style,"--hanzogui-menu-content-transform-origin":`var(--hanzogui-popper-transform-origin)`,"--hanzogui-menu-content-available-width":`var(--hanzogui-popper-available-width)`,"--hanzogui-menu-content-available-height":`var(--hanzogui-popper-available-height)`,"--hanzogui-menu-trigger-width":`var(--hanzogui-popper-anchor-width)`,"--hanzogui-menu-trigger-height":`var(--hanzogui-popper-anchor-height)`}})});d.displayName=`MenuSubContent`;let f=z(cD,{flexShrink:1,alignSelf:`stretch`,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,"$platform-web":{maxHeight:`var(--hanzogui-menu-content-available-height)`}}),p=t.Group,m=t.Label,h=t.Item,g=t.CheckboxItem,_=t.RadioGroup,v=t.RadioItem,y=t.ItemIndicator,x=t.Separator,S=t.Arrow,C=t.SubTrigger,w=t.ItemTitle,T=t.ItemSubtitle,E=t.ItemImage,D=t.ItemIcon;return Ic(i,{Root:i,Trigger:s,Portal:c,Content:l,Group:p,Label:m,Item:h,CheckboxItem:g,RadioGroup:_,RadioItem:v,ItemIndicator:y,Separator:x,Arrow:S,Sub:u,SubTrigger:C,SubContent:d,ItemTitle:w,ItemSubtitle:T,ItemImage:E,ItemIcon:D,ScrollView:f})}function Jre(e){let{Menu:t}=Wre(`Menu`),n=qre(e),r={isRoot:!1,scope:Gre},i=sD({...r,Component:n.Root,NativeComponent:t,isRoot:!0}),a=sD({...r,Component:n.Trigger,NativeComponent:t.Trigger}),o=sD({...r,Component:n.Portal,NativeComponent:b.Fragment}),s=sD({...r,Component:n.Content,NativeComponent:t.Content}),c=sD({...r,Component:n.Group,NativeComponent:t.Group}),l=sD({...r,Component:n.Label,NativeComponent:t.Label}),u=sD({...r,Component:n.Item,NativeComponent:t.Item}),d=sD({...r,Component:n.ItemTitle,NativeComponent:t.ItemTitle}),f=sD({...r,Component:n.ItemSubtitle,NativeComponent:t.ItemSubtitle}),p=sD({...r,Component:n.ItemIcon,NativeComponent:t.ItemIcon}),m=sD({...r,Component:n.ItemImage,NativeComponent:t.ItemImage}),h=sD({...r,Component:n.CheckboxItem,NativeComponent:t.CheckboxItem}),g=sD({...r,Component:n.RadioGroup,NativeComponent:({children:e})=>(0,R.jsx)(R.Fragment,{children:e})}),_=sD({...r,Component:n.RadioItem,NativeComponent:({children:e})=>(0,R.jsx)(R.Fragment,{children:e})}),v=sD({...r,Component:n.ItemIndicator,NativeComponent:t.ItemIndicator}),y=sD({...r,Component:n.Separator,NativeComponent:t.Separator}),x=sD({...r,Component:n.Arrow,NativeComponent:t.Arrow}),S=sD({...r,Component:n.Sub,NativeComponent:t.Sub}),C=sD({...r,Component:n.SubTrigger,NativeComponent:t.SubTrigger}),w=sD({...r,Component:n.SubContent,NativeComponent:t.SubContent}),T=n.ScrollView;return Ic(i,{Trigger:a,Portal:o,Content:s,Group:c,Label:l,Item:u,CheckboxItem:h,RadioGroup:g,RadioItem:_,ItemIndicator:v,Separator:y,Arrow:x,Sub:S,SubTrigger:C,SubContent:w,ItemTitle:d,ItemSubtitle:f,ItemIcon:p,ItemImage:m,ScrollView:T})}var lD=Jre({Icon:qE.MenuIcon,Image:qE.MenuImage,Indicator:qE.MenuIndicator,Item:qE.MenuItem,Label:qE.MenuLabel,MenuGroup:qE.MenuGroup,Separator:qE.MenuSeparator,SubTitle:qE.SubTitle,Title:qE.Title}),uD=({open:e,setOpen:t,disable:n,disableFocus:r,hoverable:i,role:a=`dialog`,focus:o,groupId:s,delay:c,restMs:l})=>{"use no memo";let u=b.useRef(e);u.current=e;let d=b.useRef(i);d.current=i;let f=b.useRef(n);f.current=n;let p=b.useRef(r);p.current=r;let m=b.useRef(a);m.current=a;let h=b.useRef(o);h.current=o;let g=b.useRef(s);g.current=s;let _=b.useRef(c);_.current=c;let v=b.useRef(l);v.current=l;let y=b.useMemo(()=>LT(),[]),x=b.useMemo(()=>new RT,[]);return b.useEffect(()=>{y.emit(`openchange`,{open:e})},[e,y]),b.useCallback(e=>{let n=b.useRef(!1),r=b.useRef(void 0),i=b.useRef(void 0),a=b.useRef(!1),o=b.useRef(!1),s=b.useRef(!1);b.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(i.current)},[]);let c=(e,r)=>{if(!(e&&r?.type===`mouseenter`)){if(!e&&n.current&&(r?.type===`mousemove`||r?.type===`mouseleave`)){a.current=!0;return}t(e,r?.type===`mousemove`||r?.type===`mouseenter`||r?.type===`mouseleave`?`hover`:`press`)}},l=OT({...e,open:u.current}),S=d.current,C=b.useRef({});C.current.placement=l.placement;let w=l.refs,T={current:null},E={open:u.current,onOpenChange:c,refs:{reference:w?.reference||T,floating:w?.floating||T,domReference:w?.reference||T},elements:{get reference(){return w?.reference?.current||null},get floating(){return w?.floating?.current||null},get domReference(){return w?.reference?.current||null}},dataRef:C,events:y,triggerElements:x,handleCloseActiveRef:s},{delay:D,currentId:O}=ore(E,{id:g.current}),k=g.current&&O!=null&&typeof D==`object`,A,j;k?(A=D,j=0):_.current===void 0?(A=S&&typeof S==`object`?S.delay??0:0,j=S&&typeof S==`object`?S.restMs??0:0):(A=_.current,j=v.current??0);let M=m.current,ee=h.current,{getReferenceProps:te,getFloatingProps:ne}=zT([S?mE(E,{enabled:!f.current&&!!S,delay:A,restMs:j,handleClose:qne({requireIntent:!0,buffer:1,__debug:typeof window<`u`&&new URLSearchParams(window.location.search).get(`debug`)===`safePolygon`}),...typeof S==`object`&&S}):mE(E,{enabled:!1}),Jne(E,{enabled:!f.current&&!p.current,visibleOnly:!0,...ee}),yE(E,{role:M})]),N=S?e=>{let t=ne(e),n=t.onMouseEnter,r=t.onMouseLeave;return{...t,onMouseEnter:e=>{o.current=!0,n?.(e)},onMouseLeave:e=>{o.current=!1,r?.(e)}}}:ne,P=typeof A==`number`?A:A?.open??0,re=typeof A==`number`?A:A?.close??0,ie=()=>{clearTimeout(r.current),j&&!P?r.current=setTimeout(()=>{t(!0,`hover`)},j):P?r.current=setTimeout(()=>{t(!0,`hover`)},P):t(!0,`hover`)};return{...l,open:u.current,triggerElements:x,getReferenceProps:te,getFloatingProps:N,onHoverReference:S?e=>{clearTimeout(i.current),n.current=!0,a.current=!1,clearTimeout(r.current),!u.current&&ie()}:void 0,onLeaveReference:S?()=>{clearTimeout(r.current),clearTimeout(i.current),i.current=setTimeout(()=>{if(n.current=!1,a.current){a.current=!1,t(!1,`hover`);return}u.current&&(i.current=setTimeout(()=>{u.current&&!o.current&&!s.current&&t(!1,`hover`)},Math.max(250,re)))},40)}:void 0}},[t])},dD=Ch(),fD=new Set,pD=Mo({},`Popover__`),mD=b.createContext(void 0),hD=b.createContext(!0),gD=Mo({},`PopoverTrigger__`),_D=pD.useStyledContext,vD=gD.useStyledContext;function Yre(e){return _D(e).open}function Xre(e){let t=b.useRef(new Map),n=b.useRef(null),r=Jp(r=>{let i=n.current;i!==r&&(i&&t.current.get(i)?.(!1),n.current=r,r&&e&&t.current.get(r)?.(!0))}),i=Jp((r,i)=>{t.current.set(r,i),i(n.current===r&&e)}),a=Jp(e=>{t.current.delete(e),n.current===e&&(n.current=null)});return b.useEffect(()=>{if(!e){r(null);return}let i=n.current;i&&t.current.get(i)?.(!0)},[e,r]),{setActiveTrigger:r,registerTrigger:i,unregisterTrigger:a}}var yD=b.memo(({scope:e,children:t,open:n,onOpenChange:r,onOpenToggle:i,triggerRef:a,id:o=``,contentId:s,hasCustomAnchor:c=!1,onCustomAnchorAdd:l=bD,onCustomAnchorRemove:u=bD,anchorTo:d,adaptScope:f,breakpointActive:p,keepChildrenMounted:m,disableDismissable:h,hoverable:g})=>{let[_]=b.useState(()=>new Set),{setActiveTrigger:v,registerTrigger:y,unregisterTrigger:x}=Xre(n);return(0,R.jsx)(pD.Provider,{scope:e,popoverScope:e,adaptScope:f,id:o,contentId:s,triggerRef:a,open:n,onOpenChange:r,onOpenToggle:i,hasCustomAnchor:c,onCustomAnchorAdd:l,onCustomAnchorRemove:u,anchorTo:d,branches:_,breakpointActive:p,keepChildrenMounted:m,disableDismissable:h,hoverable:g,children:(0,R.jsx)(gD.Provider,{scope:e,triggerRef:a,hasCustomAnchor:c,anchorTo:d,branches:_,onOpenToggle:i,setActiveTrigger:v,registerTrigger:y,unregisterTrigger:x,children:t})})}),bD=()=>{},xD=b.memo(b.forwardRef(function(e,t){let{scope:n,...r}=e,{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=_D(n)||{};return b.useEffect(()=>(i(),()=>a()),[i,a]),(0,R.jsx)(FE,{scope:n,...r,ref:t})})),SD=b.memo(b.forwardRef(function(e,t){let{scope:n,disablePressTrigger:r,...i}=e,a=vD(n),o=b.useId(),[s,c]=b.useState(!1),l=a.anchorTo,u=b.useRef(null),d=Ml(t,u),{registerTrigger:f,unregisterTrigger:p}=a;if(b.useEffect(()=>(f(o,c),()=>{p(o)}),[f,p,o]),!i.children)return null;let m=()=>{a.setActiveTrigger(o);let e=u.current;e&&(a.triggerRef.current=e)},h=(0,R.jsx)(Lm,{"aria-expanded":s,"data-state":kD(s),...i,ref:d,onPress:cc(i.onPress,()=>{r||(a.setActiveTrigger(s?null:o),a.onOpenToggle())}),onMouseEnter:cc(i.onMouseEnter,m),onPressIn:cc(i.onPressIn,m),onFocus:cc(i.onFocus,m)}),g=b.useMemo(()=>l?{current:{getBoundingClientRect:()=>DOMRect.fromRect(l)}}:null,[a.anchorTo,l?.x,l?.y,l?.height,l?.width]),_=(0,R.jsx)(vg,{branches:a.branches,children:h});return a.hasCustomAnchor?_:(0,R.jsx)(FE,{...g&&{virtualRef:g},scope:n,asChild:!0,children:_})})),CD=IE.styleable(function(e,t){let{trapFocus:n,enableRemoveScroll:r=!1,zIndex:i,scope:a,...o}=e,s=_D(a),c=b.useContext(mD),l=i??c,u=Yre(a),d=Ml(t,b.useRef(null)),f=b.useRef(!1),[p,m]=b.useState(!u);Ho(()=>{u&&p&&m(!1)},[u,p]);let h=b.useContext(hD);if(!s.keepChildrenMounted){if(s.breakpointActive){if(!u&&h)return null}else if(p&&!u)return null}return(0,R.jsx)(Qre,{passThrough:s.breakpointActive,context:s,open:u,zIndex:l,children:(0,R.jsx)(Lm,{passThrough:s.breakpointActive,pointerEvents:u?o.pointerEvents??`auto`:`none`,children:(0,R.jsx)($re,{...o,context:s,open:u,enableRemoveScroll:r,ref:d,setIsFullyHidden:m,scope:a,trapFocus:n??u,disableOutsidePointerEvents:!0,onCloseAutoFocus:e.onCloseAutoFocus===!1?void 0:cc(e.onCloseAutoFocus,e=>{e.defaultPrevented||(e.preventDefault(),f.current||s.triggerRef.current?.focus())}),onPointerDownOutside:cc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;f.current=r},{checkDefaultPrevented:!1}),onFocusOutside:cc(e.onFocusOutside,e=>e.preventDefault(),{checkDefaultPrevented:!1})})})})}),wD=e=>{let t=_D(e),n=vD(e);return{popperContext:jE(e),adaptContext:Gh(t.adaptScope),context:t,triggerContext:n}};function TD({adaptContext:e,children:t,context:n,triggerContext:r,popperContext:i}){return(0,R.jsx)(NE,{scope:n.popoverScope,...i,children:(0,R.jsx)(pD.Provider,{scope:n.popoverScope,...n,children:(0,R.jsx)(gD.Provider,{scope:n.popoverScope,...r,children:(0,R.jsx)(Wh,{...e,children:t})})})})}var Zre=({children:e,context:t})=>{"use no memo";if(dD){let n=wD(t.popoverScope);return(0,R.jsx)(Xh,{scope:t.adaptScope,children:(0,R.jsx)(TD,{...n,children:e})})}return(0,R.jsx)(Xh,{scope:t.adaptScope,children:e})};function Qre({context:e,open:t,zIndex:n,passThrough:r,children:i,onPress:a}){"use no memo";let o=i;if(dD){let t=wD(e.popoverScope);o=(0,R.jsx)(TD,{...t,children:o})}return(0,R.jsxs)(Sh,{passThrough:r,stackZIndex:!0,zIndex:n,children:[!!t&&!e.breakpointActive&&!e.hoverable&&(0,R.jsx)(B,{fullscreen:!0,onPress:cc(a,e.onOpenToggle)}),o]})}var $re=b.forwardRef(function(e,t){let{trapFocus:n,scope:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,disableFocusScope:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,children:f,enableRemoveScroll:p,freezeContentsWhenHidden:m,setIsFullyHidden:h,lazyMount:g,forceUnmount:_,context:v,open:y,alwaysDisable:x,...S}=e,{keepChildrenMounted:C,disableDismissable:w}=v,T=b.useCallback(()=>{h?.(!0)},[h]),E=(0,R.jsx)(tm,{disable:v.breakpointActive,children:f}),D=b.useCallback(()=>{v.onOpenChange(!1,`press`)},[v]);return v.breakpointActive||((!x||!x.focus)&&(E=(0,R.jsx)(Bg,{loop:n!==!1,enabled:!v.breakpointActive&&!s&&y,trapped:!v.breakpointActive&&n,onMountAutoFocus:i,onUnmountAutoFocus:a===!1?void 0:a,children:(0,R.jsx)(`div`,{style:eie,children:E})})),(!x||!x[`remove-scroll`])&&(E=(0,R.jsx)(a_,{enabled:v.breakpointActive?!1:p?y:!1,children:E})),(!x||!x.dismiss)&&(E=(0,R.jsx)(gg,{branches:v.branches,forceUnmount:w||(_??!y),onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,onDismiss:D,children:E}))),(0,R.jsx)($h,{type:`presence`,present:!!y,keepChildrenMounted:!!C,onExitComplete:T,lazyMount:g,passThrough:v.breakpointActive,children:(0,R.jsx)(LE,{scope:r,"data-state":kD(y),id:v.contentId,ref:t,passThrough:v.breakpointActive,...!S.unstyled&&{size:`$true`,backgroundColor:`$background`,alignItems:`center`},...S,children:(0,R.jsx)(Zre,{context:v,children:E})},v.contentId)})}),eie={display:`contents`},tie=b.forwardRef(function(e,t){let{scope:n,...r}=e,i=_D(n);return(0,R.jsx)(B,{...r,ref:t,componentName:`PopoverClose`,onPress:cc(e.onPress,()=>i?.onOpenChange?.(!1,`press`))})}),ED=RE.styleable(function(e,t){let{scope:n,...r}=e;return Qh(_D(n).adaptScope)?null:(0,R.jsx)(zE,{scope:n,componentName:`PopoverArrow`,...r,ref:t})}),nie=b.forwardRef(({scope:e,...t},n)=>{let r=_D(e);return(0,R.jsx)(cD,{ref:n,pointerEvents:r.breakpointActive?`none`:void 0,scrollEnabled:!r.breakpointActive,passThrough:r.breakpointActive,...t})}),DD=``,OD=Ic(b.forwardRef(function({scope:e=DD,...t},n){let r=b.useId(),i=`PopoverAdapt${e}`;return(0,R.jsx)(qh,{scope:i,portal:!0,children:(0,R.jsx)(rie,{adaptScope:i,ref:n,id:r,scope:e,...t})})}),{Anchor:xD,Arrow:ED,Trigger:SD,Content:CD,Close:tie,Adapt:Yh,ScrollView:nie,FocusScope:Ig}),rie=b.forwardRef(function(e,t){let{children:n,open:r,defaultOpen:i,onOpenChange:a,scope:o=DD,keepChildrenMounted:s,hoverable:c,disableFocus:l,disableDismissable:u,zIndex:d,id:f,adaptScope:p,...m}=e,h=b.useRef(null),[g,_]=b.useState(!1),v=b.useRef(void 0),[y]=um({prop:s,defaultProp:!1,transition:s===`lazy`}),[x,S]=um({prop:r,defaultProp:i||!1,onChange:e=>{a?.(e,v.current)}});b.useEffect(()=>{if(x)return fD.add(S),()=>{fD.delete(S)}},[x,S]);let C=Jp((e,t)=>{v.current=t,S(e)}),w=Qh(p),T=uD({open:x,setOpen:C,disable:w,hoverable:c,disableFocus:l}),[E,D]=b.useState(),O=Io(D);b.useImperativeHandle(t,()=>({anchorTo:O,toggle:()=>S(e=>!e),open:()=>S(!0),close:()=>S(!1),setOpen:S}));let k=b.useId(),A=Jp(()=>{x&&w||S(!x)}),j=b.useCallback(()=>_(!0),[]),M=b.useCallback(()=>_(!1),[]),ee=(0,R.jsx)(PE,{open:x,passThrough:w,scope:o,stayInFrame:!0,...m,children:(0,R.jsx)(yD,{scope:o,open:x,onOpenChange:C,onOpenToggle:A,triggerRef:h,id:f,contentId:k,hasCustomAnchor:g,onCustomAnchorAdd:j,onCustomAnchorRemove:M,anchorTo:E,adaptScope:p,breakpointActive:w,keepChildrenMounted:y,disableDismissable:u,hoverable:c,children:(0,R.jsx)(iie,{onOpenChange:S,open:x,scope:o,children:n})})}),te=(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(FT.Provider,{value:T,children:ee})});return d===void 0?te:(0,R.jsx)(mD.Provider,{value:d,children:te})});function kD(e){return e?`open`:`closed`}var iie=({open:e,scope:t,...n})=>{let r=_D(t),i=aie(r,e),a=r?.breakpointActive,o=qp(i),[s,c]=b.useState(!e);e&&s&&c(!1);let l=b.useCallback(({open:e})=>{e||c(!0)},[]);return(0,R.jsx)(o_,{onOpenChange:e=>{o()&&n.onOpenChange?.(e)},onAnimationComplete:l,open:e,hidden:!a,children:(0,R.jsx)(hD.Provider,{value:s,children:n.children})})},aie=(e,t)=>{let n=Qh(e.adaptScope);return t!==!1&&n},AD=z(Lm,{name:`Separator`,variants:{unstyled:{false:{borderColor:`$borderColor`,flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5}},vertical:{true:{y:0,x:-.5,height:`initial`,maxHeight:`initial`,width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),jD=(0,b.createContext)(void 0),{Provider:MD,useStyledContext:ND}=Mo(null,`Select`),{Provider:PD,useStyledContext:FD}=Mo(null,`SelectItem`),oie=({context:e,itemContext:t,children:n})=>Fl().state.type===`teleport`?n:(0,R.jsx)(MD,{isInSheet:!0,scope:e.scopeName,...e,children:(0,R.jsx)(PD,{scope:e.scopeName,...t,children:n})}),ID=e=>{let t=Qh(e.adaptScope);return e.open!==!1&&t},sie=({children:e,scope:t,...n})=>{let r=ND(t),i=FD(t),a=(0,b.useContext)(jD),o=ID(r),s=e;return i.shouldRenderWebNative?(0,R.jsx)(R.Fragment,{children:e}):o?r.open?(0,R.jsx)(R.Fragment,{children:s}):null:(0,R.jsx)(Sh,{open:r.open,zIndex:a,stackZIndex:1e5,children:(0,R.jsx)(a_,{enabled:r.open&&!r.disablePreventBodyScroll,children:(0,R.jsx)(gg,{asChild:!0,forceUnmount:!r.open,onDismiss:()=>i.setOpen(!1),onFocusOutside:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),children:(0,R.jsx)(Bg,{...n,enabled:!!r.open,trapped:!0,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:e=>{e.preventDefault();let t=r.floatingContext?.refs?.reference?.current;t instanceof HTMLElement&&t.focus()},children:(0,R.jsx)(`div`,{style:{display:`contents`},children:s})})})})})},cie=`SelectViewport`,lie=e=>{let{scope:t,children:n,open:r=!1,listContentRef:i,setActiveIndexFast:a}=e,o=ND(t),s=FD(t),{setActiveIndex:c,selectedIndex:l,activeIndexRef:u}=o,{setOpen:d,setSelectedIndex:f}=s,[p,m]=b.useState(0),h=Ap(),g=b.useRef([]),_=b.useRef(null),v=b.useRef(null),y=b.useRef(null),x=b.useRef(!1),S=b.useRef(!0),C=b.useRef(null),w=b.useRef({isMouseOutside:!1,isTyping:!1}),[T,E]=b.useState(!1),[D,O]=b.useState(!1),[k,A]=b.useState(0),[j,M]=b.useState(!1),ee=b.useRef({});b.useEffect(()=>{r?a(l??0):(m(0),O(!1),a(null),E(!1))},[r,l,a]),Ho(()=>{if(!r)return;let e=e=>{w.current.isMouseOutside&&d(!1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[r]);let{x:te,y:ne,strategy:N,refs:P,update:re,placement:ie}=OT({open:r,placement:`bottom-start`,whileElementsMounted:hT,middleware:[NT({apply({rects:{reference:{width:e}}}){Object.assign(ee.current,{minWidth:e+8}),P.floating.current&&Object.assign(P.floating.current.style,ee.current)}}),cre({listRef:g,overflowRef:_,index:l,offset:k,onFallbackChange:O,padding:10,minItemsVisible:h?10:4,referenceOverflowThreshold:20}),AT({crossAxis:-5})]}),ae=P.floating,oe=r&&p>8,se=r&&ae.current&&p<ae.current.scrollHeight-ae.current.clientHeight-8,ce=se||oe;Ho(()=>{if(!(typeof window>`u`))return window.addEventListener(`resize`,re),r&&re(),()=>window.removeEventListener(`resize`,re)},[re,r]);let le=Jp(e=>(r?c:f)(e)),ue=b.useRef({});ue.current.placement=ie;let de={open:r,onOpenChange:e=>d(e),refs:{reference:P.reference,floating:P.floating,domReference:P.reference},elements:{reference:P.reference?.current||null,floating:P.floating?.current||null,domReference:P.reference?.current||null},dataRef:ue},fe=[Qne(de,{event:`mousedown`,keyboardHandlers:!1}),yE(de,{role:`listbox`}),rre(de,{enabled:!D&&ce,onChange:A,overflowRef:_,scrollRef:P.floating}),tre(de,{listRef:g,activeIndex:o.activeIndex??0,selectedIndex:l,onNavigate:e=>{e!==null&&c(e)},scrollItemIntoView:!1}),nre(de,{listRef:i,onMatch:le,selectedIndex:l,activeIndex:o.activeIndex,onTypingChange:e=>{w.current.isTyping=e}})],pe=zT(b.useMemo(()=>fe,fe)),me=b.useMemo(()=>({...pe,getReferenceProps(){return pe.getReferenceProps({ref:P.reference,className:`SelectTrigger`,onKeyDown(e){(e.key===`Enter`||e.code===`Space`||e.key===` `&&!w.current.isTyping)&&(e.preventDefault(),d(!0))}})},getFloatingProps(e){return pe.getFloatingProps({ref:P.floating,className:`Select`,...e,style:{position:N,top:ne??``,left:te??``,outline:0,scrollbarWidth:`none`,...ee.current,...e?.style},onPointerEnter(){E(!1),w.current.isMouseOutside=!1},onPointerLeave(){w.current.isMouseOutside=!0},onPointerMove(){w.current.isMouseOutside=!1,E(!1)},onKeyDown(){E(!0)},onContextMenu(e){e.preventDefault()},onScroll(e){(0,xh.flushSync)(()=>{m(e.currentTarget.scrollTop)})}})}}),[P.reference.current,te,ne,P.floating.current,pe]);Ho(()=>{if(r)return S.current=!1,C.current=setTimeout(()=>{x.current=!0,S.current=!0},300),()=>{clearTimeout(C.current)};x.current=!1,S.current=!0,A(0),O(!1),M(!1)},[r]),Ho(()=>{!r&&w.current.isMouseOutside&&(w.current.isMouseOutside=!1)},[r]),Ho(()=>{function e(e){let t=e.target;P.floating.current?.contains(t)||v.current?.contains(t)||y.current?.contains(t)||(d(!1),E(!1))}if(r)return document.addEventListener(`pointerdown`,e),()=>{document.removeEventListener(`pointerdown`,e)}},[r,P,d]),b.useEffect(()=>{if(!r)return;let e=e=>{T&&e!=null&&g.current[e]?.scrollIntoView({block:`nearest`}),m(P.floating.current?.scrollTop??0)};return e(u.current),s.activeIndexSubscribe(e)},[r,P,T,s.activeIndexSubscribe]),b.useEffect(()=>{r&&D&&l!=null&&g.current[l]?.scrollIntoView({block:`nearest`})},[r,D,l]),Ho(()=>{P.floating.current&&D&&(P.floating.current.style.maxHeight=``)},[P,D]);let he=b.useMemo(()=>({refs:P,dataRef:ue}),[P]);return(0,R.jsx)(MD,{scope:t,...o,setScrollTop:m,setInnerOffset:A,fallback:D,floatingContext:he,canScrollDown:!!se,canScrollUp:!!oe,controlledScrolling:T,blockSelection:j,upArrowRef:v,downArrowRef:y,update:re,children:(0,R.jsx)(PD,{scope:t,...s,allowMouseUpRef:S,allowSelectRef:x,dataRef:ue,interactions:me,listRef:g,selectTimeoutRef:C,children:n})})},LD=`SelectItem`,{Provider:uie,useStyledContext:RD}=Mo(null,LD),die=OC.Frame.styleable(function(e,t){let{scope:n,value:r,disabled:i=!1,textValue:a,index:o,...s}=e,{setSelectedIndex:c,listRef:l,setOpen:u,onChange:d,activeIndexSubscribe:f,activeIndexRef:p,valueSubscribe:m,allowMouseUpRef:h,allowSelectRef:g,setValueAtIndex:_,selectTimeoutRef:v,dataRef:y,interactions:x,shouldRenderWebNative:S,size:C,onActiveChange:w,initialValue:T,setActiveIndexFast:E}=FD(n),[D,O]=b.useState(T===r);Ho(()=>{T===r&&c(o)},[]),b.useEffect(()=>{let e=e=>{o===e&&(w(r,o),requestAnimationFrame(()=>{l?.current[o]?.focus()}))},t=p?.current;return t!=null&&e(t),f(e)},[o]),b.useEffect(()=>m(e=>{O(e===r)}),[r]);let k=b.useId(),A=Ml(t,b.useCallback(e=>{e instanceof HTMLElement&&l&&(l.current[o]=e)},[o,l]));Ho(()=>{_(o,r)},[o,_,r]);function j(){c(o),d(r),u(!1)}let M=b.useMemo(()=>x?x.getItemProps({onTouchMove(){g.current=!0,h.current=!1},onTouchEnd(){g.current=!1,h.current=!0},onKeyDown(e){if(e.key===`Enter`||e.key===` `&&!y?.current.typing)e.preventDefault(),j();else if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),e.stopPropagation();let t=l?.current.length??0;if(t===0)return;let n;n=e.key===`ArrowDown`?o+1>=t?0:o+1:o-1<0?t-1:o-1,E?.(n)}else g.current=!0},onClick(){g.current&&j()},onMouseUp(){if(!h.current){h.current=!0,g.current=!0;return}g.current&&j(),clearTimeout(v.current),v.current=setTimeout(()=>{g.current=!0})}}):{onPress:j},[j,o,l,E]);return(0,R.jsx)(uie,{scope:n,value:r,textId:k||``,isSelected:D,children:S?(0,R.jsx)(`option`,{value:r,children:e.children}):(0,R.jsx)(OC.Frame,{render:`div`,componentName:LD,ref:A,role:`option`,"aria-labelledby":k,"aria-selected":D,"data-state":D?`active`:`inactive`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...!e.unstyled&&{cursor:`default`,size:C,outlineOffset:-.5,zIndex:100,hoverStyle:{backgroundColor:`$backgroundHover`},pressStyle:{backgroundColor:`$backgroundPress`},focusStyle:{backgroundColor:`$backgroundFocus`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:1,outlineStyle:`solid`}},...s,...M})})},{disableTheme:!0}),zD=z(H,{name:`SelectItemText`,variants:{unstyled:{false:{userSelect:`none`,color:`$color`,ellipsis:!0}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),fie=zD.styleable(function(e,t){let{scope:n,className:r,...i}=e,a=FD(n),o=Ml(t,b.useRef(null)),s=RD(n),c=b.useRef(null);return c.current=(0,R.jsx)(zD,{className:r,size:a.size,id:s.textId,...i,ref:o}),Ho(()=>{a.initialValue===s.value&&a.setSelectedItem(c.current)},[]),Ho(()=>a.valueSubscribe(e=>{e===s.value&&a.setSelectedItem(c.current)}),[s.value]),a.shouldRenderWebNative?(0,R.jsx)(R.Fragment,{children:e.children}):(0,R.jsx)(R.Fragment,{children:c.current})}),BD=`SelectScrollUpButton`,VD=b.forwardRef((e,t)=>(0,R.jsx)(WD,{componentName:BD,...e,dir:`up`,ref:t}));VD.displayName=BD;var HD=`SelectScrollDownButton`,UD=b.forwardRef((e,t)=>(0,R.jsx)(WD,{componentName:HD,...e,dir:`down`,ref:t}));UD.displayName=HD;var WD=b.memo(b.forwardRef((e,t)=>{let{scope:n,dir:r,componentName:i,...a}=e,{forceUpdate:o,open:s,fallback:c,setScrollTop:l,setInnerOffset:u,...d}=ND(n),f=d.floatingContext?.refs.floating,p=b.useRef(`idle`),m=d[r===`down`?`canScrollDown`:`canScrollUp`],h=b.useRef(null),{x:g,y:_,refs:v,strategy:y}=OT({open:s&&m,strategy:`fixed`,elements:{reference:f?.current},placement:r===`up`?`top`:`bottom`,middleware:[AT(({rects:e})=>-e.floating.height)],whileElementsMounted:(...e)=>hT(...e,{animationFrame:!0})}),x=Ml(t,v.setFloating);if(!m)return null;let S=e=>{let t=f;t&&(c?t.current&&(t.current.scrollTop-=e,(0,xh.flushSync)(()=>l(t.current?.scrollTop??0))):(0,xh.flushSync)(()=>u(t=>t-e)))};return(0,R.jsx)(B,{ref:x,componentName:i,"aria-hidden":!0,...a,zIndex:1e3,position:y,left:g||0,top:_||0,width:`calc(${(f?.current?.offsetWidth??0)-2}px)`,onPointerEnter:()=>{p.current=`active`;let e=Date.now();function t(){let n=f?.current;if(n){let i=Date.now(),a=i-e;e=i;let o=a/2,s=r===`up`?n.scrollTop:n.scrollHeight-n.clientHeight-n.scrollTop,c=r===`up`?n.scrollTop-o>0:n.scrollTop+o<n.scrollHeight-n.clientHeight;S(r===`up`?Math.min(o,s):Math.max(-o,-s)),c&&(h.current=requestAnimationFrame(t))}}cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},onPointerLeave:()=>{p.current=`idle`,cancelAnimationFrame(h.current)}})})),pie=`SelectTrigger`,mie=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(`(pointer:coarse)`).matches:!0,hie=b.forwardRef(function(e,t){let{scope:n,disabled:r=!1,unstyled:i=!1,...a}=e,o=ND(n),s=FD(n),c=Ml(t,o.floatingContext?.refs.setReference);return s.shouldRenderWebNative?null:(0,R.jsx)(OC,{componentName:pie,unstyled:i,render:`button`,type:`button`,id:s.id,...!i&&{focusVisibleStyle:{outlineStyle:`solid`,outlineWidth:2,outlineColor:`$outlineColor`},borderWidth:1,size:s.size},role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":o.open,"aria-autocomplete":`none`,dir:o.dir,disabled:r,"data-disabled":r?``:void 0,...a,ref:c,...s.interactions?{...s.interactions.getReferenceProps(),...mie?{onPress(){s.setOpen(!o.open)}}:{onMouseDown(){o.floatingContext?.update?.(),s.setOpen(!o.open)}}}:{onPress(){s.setOpen(!o.open)}}})}),GD=z(Zm,{name:cie,variants:{unstyled:{false:{size:`$2`,backgroundColor:`$background`,elevate:!0,bordered:!0,userSelect:`none`,outlineWidth:0}},size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??e})}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),gie=Ch(),_ie=GD.styleable(function(e,t){let{scope:n,children:r,disableScroll:i,...a}=e,o=ND(n),s=FD(n),c=Qh(o.adaptScope),[l,u]=b.useState(!o.lazyMount);b.useEffect(()=>{o.lazyMount&&o.open&&(l||cm(()=>{u(!0)}))},[o.lazyMount,o.open,l]);let d=Ml(t,o.floatingContext?.refs.setFloating);if(Ho(()=>{o.update&&o.update()},[c]),Ho(()=>{o.lazyMount&&l&&o.open&&o.update&&o.update()},[l]),s.shouldRenderWebNative)return(0,R.jsx)(B,{position:`relative`,children:r});if(c){let e=r;return gie&&(e=(0,R.jsx)(oie,{itemContext:s,context:o,children:e})),(0,R.jsx)(Xh,{scope:o.adaptScope,children:e})}if(!s.interactions)return null;let{style:f,className:p,...m}=s.interactions.getFloatingProps();return(0,R.jsxs)(R.Fragment,{children:[!i&&!e.unstyled&&(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:vie}}),(0,R.jsx)(sm,{children:o.open?(0,R.jsx)(GD,{size:s.size,role:`presentation`,...a,...f,...m,...!e.unstyled&&{overflowY:i?void 0:f.overflow??`auto`},ref:d,children:l?r:null},`select-viewport`):null}),!o.open&&!(o.lazyMount&&o.renderValue)&&l&&(0,R.jsx)(`div`,{style:{display:`none`},children:r})]})}),vie=`
42
- .is_SelectViewport {
43
- scrollbar-width: none;
44
- -webkit-overflow-scrolling: touch;
45
- overscroll-behavior: contain;
46
- }
47
-
48
- .is_SelectViewport::-webkit-scrollbar{
49
- display:none
50
- }
51
- `,KD=z(H,{name:`SelectValue`,userSelect:`none`}),yie=KD.styleable(function({scope:e,children:t,placeholder:n,...r},i){let a=ND(e),o=FD(e),s=Ml(i,a.onValueNodeChange),c=a.value==null||a.value===``,l=a.renderValue?.(a.value),u=t??l??o.selectedItem??a.value,d=c?n??u:u;return(0,R.jsx)(KD,{...!r.unstyled&&{size:o.size,ellipsis:!0,pointerEvents:`none`},ref:s,...r,children:qD(d)})});function qD(e){return b.Children.map(e,e=>{if(e){if(e.type?.staticConfig?.componentName===`SelectItemText`)return e.props.children;if(e.props?.children)return qD(e.props.children)}return e})}var bie=z(V,{name:`SelectIcon`,"aria-hidden":!0,children:(0,R.jsx)(dh,{children:`▼`})}),xie=z(V,{name:`SelectItemIndicator`}),Sie=b.forwardRef(function(e,t){let{scope:n,...r}=e,i=FD(n),a=RD(n);return i.shouldRenderWebNative?null:a.isSelected?(0,R.jsx)(xie,{"aria-hidden":!0,...r,ref:t}):null}),JD=z(B,{name:`SelectIndicator`,variants:{unstyled:{false:{position:`absolute`,top:0,left:0,pointerEvents:`none`,zIndex:10,backgroundColor:`$background`,borderRadius:0}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),Cie=JD.styleable(function({scope:e,...t},n){let r=FD(e),i=ND(e),[a,o]=b.useState(null),s=b.useRef(0);return b.useLayoutEffect(()=>{let e=e=>{typeof e==`number`&&(cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{let t=r.listRef?.current?.[e];t&&o({width:Math.round(t.offsetWidth),height:Math.round(t.offsetHeight),x:Math.round(t.offsetLeft),y:Math.round(t.offsetTop)})}))};return i.open&&i.activeIndexRef.current!==null&&e(i.activeIndexRef.current),r.activeIndexSubscribe(e)},[i.open,r.listRef]),a?(0,R.jsx)(JD,{ref:n,...t,width:a.width,height:a.height,x:a.x,y:a.y}):null}),YD=`SelectGroup`,{Provider:wie,useStyledContext:Tie}=Mo({id:``},`SelectGroup`),Eie=z(B,{name:YD,width:`100%`}),Die=z(H,{render:`select`,backgroundColor:`$background`,borderColor:`$borderColor`,hoverStyle:{backgroundColor:`$backgroundHover`}}),Oie=z(B,{name:`NativeSelect`,variants:{size:{"...size":(e,t)=>{let{tokens:n}=t,r=Gc(n.space[e]);return{borderRadius:n.radius[e]??e,minHeight:n.size[e],paddingRight:r+20,paddingLeft:r,paddingVertical:eh(e,{shift:-3})}}},unstyled:{false:{borderWidth:1,borderColor:`$borderColor`,userSelect:`none`,outlineWidth:0,paddingRight:10}}},defaultVariants:{size:`$2`,unstyled:{}.GUI_HEADLESS===`1`}}),XD=b.forwardRef((e,t)=>{let{scope:n,...r}=e,i=b.useId(),a=ND(n),o=FD(n),s=o.size??`$true`,c=b.useRef(null),l=o.shouldRenderWebNative?(0,R.jsx)(Oie,{asChild:!0,size:s,value:a.value,id:o.id,children:(0,R.jsx)(Die,{onChange:e=>{o.onChange(e.currentTarget.value)},size:s,ref:c,style:{color:`var(--color)`,appearance:`none`},children:e.children})}):(0,R.jsx)(Eie,{role:`group`,"aria-labelledby":i,...r,ref:t});return(0,R.jsx)(wie,{scope:n,id:i||``,children:l})});XD.displayName=YD;var ZD=z(H,{name:`SelectLabel`,variants:{unstyled:{false:{size:`$true`,ellipsis:!0,maxWidth:`100%`,cursor:`default`}},size:{"...size":(e,{tokens:t})=>({paddingHorizontal:t.space[e],paddingVertical:eh(t.space[e],{shift:-4})})}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),kie=ZD.styleable((e,t)=>{let{scope:n,...r}=e,i=FD(n),a=Tie(n);return i.shouldRenderWebNative?null:(0,R.jsx)(ZD,{render:`div`,id:a.id,size:i.size,...r,ref:t})});z(AD,{name:`SelectSeparator`});var Aie=e=>{let t=ND(e.scope),n=ID(t),r=Qh(t.adaptScope),i=qp(n);return(0,R.jsx)(o_,{onOpenChange:t=>{i()&&e.onOpenChange(t)},open:t.open,hidden:!r,children:e.children})},jie=e=>(0,R.jsx)(R.Fragment,{children:e.children}),QD=Ic(function(e){let t=`AdaptSelect${e.scope||``}`;return(0,R.jsx)(qh,{scope:t,portal:!0,children:(0,R.jsx)(Mie,{scope:e.scope,adaptScope:t,...e})})},{Adapt:Yh,Content:sie,Group:XD,Icon:bie,Item:die,ItemIndicator:Sie,ItemText:fie,Label:kie,ScrollDownButton:UD,ScrollUpButton:VD,Trigger:hie,Value:yie,Viewport:_ie,Indicator:Cie,FocusScope:Ig});function $D(){let e=b.useRef(new Set);return[b.useCallback(t=>{e.current.forEach(e=>e(t))},[]),b.useCallback(t=>(e.current.add(t),()=>{e.current.delete(t)}),[])]}function Mie(e){let{scope:t=``,adaptScope:n,native:r,children:i,open:a,defaultOpen:o,onOpenChange:s,value:c,defaultValue:l,onValueChange:u,disablePreventBodyScroll:d,size:f=`$true`,onActiveChange:p,dir:m,id:h,renderValue:g,lazyMount:_,zIndex:v}=e,y=Qh(n)?jie:lie,x=b.useReducer(()=>({}),{})[1],[S,C]=b.useState(null),[w,T]=um({prop:a,defaultProp:o||!1,onChange:s}),[E,D]=um({prop:c,defaultProp:l||``,onChange:u,transition:!0});b.useEffect(()=>{w&&j(E)},[w]),b.useEffect(()=>{j(E)},[E]);let O=b.useRef(null),[k,A]=b.useState(null),[j,M]=$D(),[ee,te]=$D(),ne=b.useRef(null),N=b.useRef([]),[P,re]=b.useState(0),[ie,ae]=b.useState(null);Ho(()=>{ne.current=P});let oe=r===!0||r===`web`||Array.isArray(r)&&r.includes(`web`),se=b.useCallback(e=>{O.current!==e&&(O.current=e,typeof e==`number`&&ee(e))},[ee]),ce=b.useCallback(e=>{se(e),A(e)},[se]),le=(0,R.jsx)(PD,{scopeName:t,scope:t,adaptScope:n,initialValue:b.useMemo(()=>E,[w]),size:f,activeIndexSubscribe:te,activeIndexRef:O,valueSubscribe:M,setOpen:T,id:h,onChange:b.useCallback(e=>{D(e),j(e)},[]),onActiveChange:Jp((e,t)=>{p?.(e,t)}),setSelectedIndex:re,setValueAtIndex:b.useCallback((e,t)=>{N.current[e]=t},[]),shouldRenderWebNative:oe,setActiveIndexFast:se,selectedItem:S,setSelectedItem:C,children:(0,R.jsx)(MD,{scope:t,scopeName:t,adaptScope:n,disablePreventBodyScroll:d,dir:m,blockSelection:!1,fallback:!1,forceUpdate:x,valueNode:ie,onValueNodeChange:ae,activeIndex:k,activeIndexRef:O,selectedIndex:P,setActiveIndex:ce,value:E,open:w,native:r,renderValue:g,lazyMount:_,children:(0,R.jsx)(Aie,{onOpenChange:T,scope:t,children:oe?i:(0,R.jsx)(y,{activeIndexRef:O,listContentRef:N,selectedIndexRef:ne,setActiveIndexFast:se,...e,open:w,value:E,children:i})})})});return v===void 0?le:(0,R.jsx)(jD.Provider,{value:v,children:le})}function Nie(e){return e?`checked`:`unchecked`}var Pie=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=b.useRef(null),o=ZS(n);return b.useEffect(()=>{let e=a.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(o!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[o,n,r]),(0,R.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})};function Fie(e,[t,n],r){{let{disabled:i,name:a,value:o,required:s}=e,c=b.useRef(!1),[l,u]=b.useState(null),d=Ml(r,u),f=!l||!!l.closest(`form`),p=XS(l),m=e[`aria-labelledby`]||e.labeledBy||p;return{switchProps:{role:`switch`,"aria-checked":t,tabIndex:i?void 0:0,"data-state":Nie(t),"data-disabled":i?``:void 0,disabled:i,"aria-labelledby":m,onPress:cc(e.onPress,e=>{n(e=>!e),f&&(c.current=e.isPropagationStopped(),c.current||e.stopPropagation())})},switchRef:d,bubbleInput:f?(0,R.jsx)(Pie,{control:l,bubbles:!c.current,name:a,value:o,checked:t,required:s,disabled:i,style:{transform:`translateX(-100%)`}}):null}}}var eO=Mo({active:!1,disabled:!1,frameWidth:void 0,size:void 0,unstyled:{}.GUI_HEADLESS===`1`}),tO=z(B,{name:`SwitchThumb`,variants:{unstyled:{false:{size:`$true`,backgroundColor:`$background`,borderRadius:1e3}},size:{"...size":e=>{let t=nO(e);return{height:t,width:t}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{accept:{activeStyle:`style`}}),nO=e=>Math.round(Gc($m(e))*.65),Iie=e=>nO(e)*2,rO=z(B,{name:`Switch`,render:`button`,tabIndex:0,variants:{unstyled:{false:{borderRadius:1e3,backgroundColor:`$background`,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineStyle:`solid`,outlineWidth:2}}},size:{"...size":(e,{props:t})=>{if(t.unstyled)return;let n=nO(e);return{height:n,minHeight:n,width:Iie(e)}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{accept:{activeStyle:`style`}});function Lie(e){return null}function Rie(e){let{Frame:t=rO,Thumb:n=tO}=e;t.staticConfig.context=eO,n.staticConfig.context=eO;let r=n.styleable(function(e,t){let{size:r,unstyled:i,activeStyle:a,...o}=e,{unstyled:s,size:c,active:l,disabled:u,frameWidth:d=0}=eO.useStyledContext(),f={}.GUI_HEADLESS===`1`?!0:i??s??!1,p=r??c??`$true`,m=b.useRef(l).current,h=Gc(e.width||p,`size`),[g,_]=b.useState(typeof h==`number`?h:0),v=d-g,y=m?l?0:-v:l?v:0;return(0,R.jsx)(n,{ref:t,unstyled:f,...f===!1&&{size:p},alignSelf:m?`flex-end`:`flex-start`,x:y,onLayout:cc(e.onLayout,e=>{let t=e.nativeEvent.layout.width;_(t)}),disabled:u,...o,...l&&a})});return Ic(t.styleable(function(e,n){let{native:r,nativeProps:i,checked:a,defaultChecked:o,onCheckedChange:s,activeStyle:c,unstyled:l,activeTheme:u,...d}=e,[f,p]=um({prop:a,defaultProp:o||!1,onChange:s,transition:!0}),m=b.useContext(eO.context),[h,g]=b.useState(0),{switchProps:_,bubbleInput:v,switchRef:y}=Fie(d,[f,p],n),x=Lie({id:d.id,disabled:d.disabled,native:r,nativeProps:i,checked:f,setChecked:p});if(x)return x;let S=d.disabled,C=e=>{let t=e.nativeEvent.layout.width;t!==h&&g(t)},w=m.unstyled??l??!1;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(eO.Provider,{size:m.size??d.size??`$true`,unstyled:w,active:f,disabled:S,frameWidth:h,children:(0,R.jsx)(t,{ref:y,render:`button`,theme:u??null,type:`button`,...!w&&{size:m.size??d.size??`$true`},unstyled:w,...d,..._,disabled:S,...f&&{...!w&&!c&&{backgroundColor:`$backgroundActive`},...c},children:(0,R.jsx)(Lm,{alignSelf:`stretch`,flex:1,onLayout:C,children:d.children})})}),v]})},{disableTheme:!0}),{Thumb:r})}var iO=Rie({Frame:rO,Thumb:tO}),aO=Mo({size:void 0}),{Provider:zie,useStyledContext:oO}=Mo(),sO=z(sh,{name:`Tabs`}),cO=z(Lm,{name:`TabsTrigger`,role:`tab`,variants:{size:{"...size":oh},disabled:{true:{pointerEvents:`none`}},unstyled:{false:{borderWidth:0,backgroundColor:`$background`,userSelect:`none`,justifyContent:`center`,alignItems:`center`,flexWrap:`nowrap`,flexDirection:`row`,cursor:`pointer`,pressStyle:{backgroundColor:`$backgroundPress`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`,zIndex:10}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{accept:{activeStyle:`style`}}),lO=z(Zm,{name:`TabsContent`});function Bie(e){let{ContentFrame:t=lO,TabFrame:n=cO,TabsFrame:r=sO}=e,i=`TabsContext`,a=`TabsList`,o=b.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,children:o,...s}=e,c=oO(n);return(0,R.jsx)(GE,{__scopeRovingFocusGroup:n||i,orientation:c.orientation,dir:c.dir,loop:r,asChild:!0,children:(0,R.jsx)(yC,{role:`tablist`,componentName:a,"aria-orientation":c.orientation,ref:t,orientation:c.orientation,...s,children:o})})});o.displayName=a;let s=n.styleable((e,t)=>{let{__scopeTabs:r,value:a,disabled:o=!1,onInteraction:s,activeStyle:c,activeTheme:l,unstyled:u=!1,...d}=e,f=oO(r),p=uO(f.baseId,a),m=dO(f.baseId,a),h=a===f.value,[g,_]=b.useState(null),v=b.useRef(null),y=vC({disabled:!!o});return b.useEffect(()=>(f.registerTrigger(),()=>f.unregisterTrigger()),[]),b.useEffect(()=>{if(!v.current)return;let e=v.current;function t(){e&&_({width:e.offsetWidth,height:e.offsetHeight,x:e.offsetLeft,y:e.offsetTop})}t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[f.triggersCount]),b.useEffect(()=>{h&&g&&s?.(`select`,g)},[h,a,g]),(0,R.jsx)(GE.Item,{__scopeRovingFocusGroup:r||i,asChild:!0,focusable:!o,active:h,children:(0,R.jsx)(n,{onMouseEnter:cc(e.onMouseEnter,()=>{g&&s?.(`hover`,g)}),onMouseLeave:cc(e.onMouseLeave,()=>{s?.(`hover`,null)}),role:`tab`,"aria-selected":h,"aria-controls":m,"data-state":h?`active`:`inactive`,"data-disabled":o?``:void 0,id:p,theme:l??null,unstyled:u,...!u&&{size:f.size},...h&&{...!u&&!c&&{backgroundColor:`$backgroundActive`},...c},...y,disabled:o??y.disabled,...d,ref:jl(t,v),onPress:cc(e.onPress??void 0,e=>{let t=e.button===0&&e.ctrlKey===!1;!o&&!h&&t&&f.onChange(a)}),onKeyDown:cc(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&(f.onChange(a),e.preventDefault())}),onFocus:cc(e.onFocus,e=>{g&&s?.(`focus`,g);let t=f.activationMode!==`manual`;!h&&!o&&t&&f.onChange(a)}),onBlur:cc(e.onBlur,()=>{s?.(`focus`,null)})})})});s.displayName=`TabsTrigger`;let c=t.styleable(function(e,n){let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=e,c=oO(r),l=i===c.value,u=a||l,d=uO(c.baseId,i),f=dO(c.baseId,i);return u?(0,R.jsx)(t,{"data-state":l?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":d,hidden:!u,id:f,tabIndex:0,...s,ref:n,children:o},i):null});return Ic(r.styleable(function(e,t){let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:c,activationMode:l=`manual`,size:u=`$true`,...d}=e,f=mh(c),[p,m]=um({prop:i,onChange:a,defaultProp:o??``}),[h,g]=b.useState(0),_=Jp(()=>g(e=>e+1)),v=Jp(()=>g(e=>e-1));return(0,R.jsx)(aO.Provider,{size:u,children:(0,R.jsx)(zie,{scope:n,baseId:b.useId(),value:p,onChange:m,orientation:s,dir:f,activationMode:l,size:u,registerTrigger:_,triggersCount:h,unregisterTrigger:v,children:(0,R.jsx)(r,{direction:f,"data-orientation":s,...d,ref:t})})})}),{List:o,Trigger:s,Tab:s,Content:c})}function uO(e,t){return`${e}-trigger-${t}`}function dO(e,t){return`${e}-content-${t}`}var fO=Bie({ContentFrame:lO,TabFrame:cO,TabsFrame:sO}),pO=z(Gp,{position:`absolute`,width:1,height:1,margin:-1,zIndex:-1e4,overflow:`hidden`,opacity:1e-8,pointerEvents:`none`,variants:{preserveDimensions:{true:{position:`relative`,width:`auto`,height:`auto`}},visible:{true:{position:`relative`,width:`auto`,height:`auto`,margin:0,zIndex:1,overflow:`visible`,opacity:1,pointerEvents:`auto`}}}});pO.isVisuallyHidden=!0;var Vie=(e,{message:t,notificationOptions:n})=>!(`Notification`in window)||Notification.permission!==`granted`?!1:{nativeToastRef:new Notification(e,{body:t,...n})},mO=``,Hie={focus:!0,"remove-scroll":!0},Uie=IE.styleable((e,t)=>{let n=b.useContext(hO),r=b.useContext(gO);return(0,R.jsx)(CD,{scope:e.scope||mO,alwaysDisable:Hie,...!e.unstyled&&{backgroundColor:`$background`,alignItems:`center`,pointerEvents:`none`,size:`$true`},ref:t,...r!==void 0&&{zIndex:r},...e,...n&&{transition:null}})},{staticConfig:{componentName:`Tooltip`}}),Wie=b.forwardRef((e,t)=>(0,R.jsx)(ED,{scope:e.scope||mO,componentName:`Tooltip`,ref:t,...e})),hO=b.createContext(!1),gO=b.createContext(void 0),Gie=({children:e,delay:t,preventAnimation:n=!1,timeoutMs:r})=>(0,R.jsx)(hO.Provider,{value:n,children:(0,R.jsx)(are,{timeoutMs:r,delay:b.useMemo(()=>t,[JSON.stringify(t)]),children:e})}),_O=new Set,Kie=b.forwardRef(function(e,t){"use no memo";let{children:n,delay:r,restMs:i,onOpenChange:a,focus:o,open:s,disableAutoCloseOnScroll:c,zIndex:l,scope:u=mO,...d}=e,f=b.useRef(null),[p,m]=b.useState(!1),{delay:h,setCurrentId:g}=ire(),_=r===void 0?h??400:r,v=i??(typeof _==`number`?_:0),[y,x]=um({prop:s,defaultProp:!1,onChange:a}),S=e.groupId,C=Jp(e=>{e&&g(S),x(e)});b.useEffect(()=>{if(!y||c||typeof document>`u`)return;let e=()=>{x(!1)};return _O.add(x),document.documentElement.addEventListener(`scroll`,e),()=>{_O.delete(x),document.documentElement.removeEventListener(`scroll`,e)}},[y,c]);let w=uD({open:y,setOpen:C,disable:!1,disableFocus:!1,hoverable:!0,role:`tooltip`,focus:o,groupId:S,delay:_,restMs:v}),T=b.useCallback(()=>m(!0),[]),E=b.useCallback(()=>m(!1),[]),D=b.useId(),O=e.unstyled?null:$m(`$true`,{shift:-2,bounds:[0]}),k=(0,R.jsx)(FT.Provider,{value:w,children:(0,R.jsx)(PE,{scope:u,size:O?.key,allowFlip:!0,stayInFrame:!0,open:y,...d,children:(0,R.jsx)(yD,{scope:u,contentId:D,triggerRef:f,open:y,onOpenChange:x,onOpenToggle:Jie,hasCustomAnchor:p,onCustomAnchorAdd:T,onCustomAnchorRemove:E,children:n})})});return l===void 0?k:(0,R.jsx)(gO.Provider,{value:l,children:k})}),qie=b.forwardRef(function(e,t){let{scope:n,...r}=e;return(0,R.jsx)(SD,{...r,scope:n||mO,ref:t})}),vO=Ic(Kie,{Anchor:b.forwardRef(function(e,t){let{scope:n,...r}=e;return(0,R.jsx)(xD,{...r,scope:n||mO,ref:t})}),Arrow:Wie,Content:Uie,Trigger:qie}),Jie=()=>{};function Yie(e){let t=b.useRef(null);return{ref:t,composedRef:Ml(t,e)}}var yO=mee,bO=[`facebook.`,`instagram.`,`twitter.`,`x.com`,`t.co`,`linkedin.`,`reddit.`,`youtube.`,`tiktok.`,`pinterest.`,`news.ycombinator.com`],Xie=[`google.`,`bing.`,`duckduckgo.`,`yahoo.`,`baidu.`,`ecosia.`];function xO(e,t){let n=new URLSearchParams(e||``),r=e=>{let t=n.get(e);return t?t.trim():void 0},i={utm:{source:r(`utm_source`),medium:r(`utm_medium`),campaign:r(`utm_campaign`),term:r(`utm_term`),content:r(`utm_content`)},referrer:t?t.trim():void 0,refCode:r(`ref`)||r(`refCode`)||r(`ref_code`)||void 0};return i.channel=SO(i),i}function SO(e){let t=(e.utm.medium||``).toLowerCase();if(/(cpc|ppc|paid|paidsearch|display|cpm)/.test(t))return`paid`;if(e.utm.source||e.utm.campaign)return`campaign`;if(e.refCode)return`referral`;let n=CO(e.referrer);return n?bO.some(e=>n.includes(e))?`social`:Xie.some(e=>n.includes(e))?`organic`:`referral`:`direct`}function CO(e){if(!e)return``;let t=e.trim(),n=t.indexOf(`://`);n>=0&&(t=t.slice(n+3));let r=t.search(/[/?#]/);r>=0&&(t=t.slice(0,r));let i=t.indexOf(`@`);i>=0&&(t=t.slice(i+1));let a=t.indexOf(`:`);return a>=0&&(t=t.slice(0,a)),t.toLowerCase().trim()}function wO(e){return!!(e.utm.source||e.utm.medium||e.utm.campaign||e.utm.term||e.utm.content||e.refCode||e.referrer&&CO(e.referrer))}var TO=Object.freeze({hanzo:Object.freeze([`hanzo.ai`,`hanzo.agency`,`hanzo.app`,`hanzo.bot`,`hanzo.chat`,`hanzo.codes`,`hanzo.community`,`hanzo.computer`,`hanzo.help`,`hanzo.id`,`hanzo.industries`,`hanzo.market`,`hanzo.network`,`hanzo.sh`,`hanzo.team`,`hanzo.ventures`,`hanzo.works`,`hanzoskills.com`]),lux:Object.freeze([`lux.network`,`lux.exchange`,`lux.market`,`lux.finance`,`lux.financial`,`lux.credit`,`lux.fund`,`lux.id`]),zoo:Object.freeze([`zoo.ngo`,`zoo.network`,`zoolabs.id`,`zoolabs.io`])}),EO=Object.freeze({hanzo:`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,lux:`pk-gUZp6ZVfhJzSwK-rb4oLbVkpCnMBx5uSCpxf_5yEhQk`,zoo:`pk-3TKpKnERV9AQSsBUERWkZejC1O1mUxc1jRzsP3MPbs4`}),DO=Object.freeze({"hanzo.ai":`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,"www.hanzo.ai":`pk-CmfLA2K6kvsPflrS9DSkt06H_kSoQB_21sjedt6VJdc`,"hanzo.app":`pk-wlnXN2a9_vmCm60yTFtQ629Q8TyuaxBNZbY1RWT72gQ`,"hanzo.team":`pk-NCzD2FiHpZv8KUpkCX4olT1LJOJsMxBC_Z8NkiQsOFQ`,"pay.hanzo.ai":`pk-eX6kv7JZNoiYn1WkeJH3tT_8OvkVYScmCXnLMwxTKf8`,"platform.hanzo.ai":`pk-My1RpZLEUnTj8vAdPbWKYdDUuhxZJ4dVjHcwjZN4rZ8`,"docs.hanzo.ai":`pk-jukhtjMT2ymoeBDAeFjINQWlBv-v9sNn1TPztiCrrwk`,"hanzo.bot":`pk-W5d7Mn7ZukT7igyscIy6Pqe8JpA0Ge604Yn4xNR4JCU`,"hanzo.chat":`pk-ATxWeB2jNyRSxDgqnkGoDj3CCbzrmTxSktUh9zlrO-E`,"hanzo.id":`pk-_GVF3KlaqprlPHDumBMRFeFU1lIGOaarQfgimNVDIo8`,"hanzo.industries":`pk-Vh1wvL2HqIAv9qpVvmrznTI9uMHrTD-jyIC-vnlBsgY`,"hanzo.market":`pk-DN3xQFa0H61epUVg9OkiOYLzCdteNt9hE6f-S-ednjQ`,"hanzo.network":`pk-YJ2eiA_7ckLStMPte8Ar8FsmRp_ycmeIeRbpGprZYmM`,"hanzo.agency":`pk-26a2clOaJFe24aKJZ0PkI-GWR9F4EEa8rthHzgy_Efw`,"console.hanzo.ai":`pk-oFNXoiO1wOD8PqGdHYyiSq6jaNCdrd7TpztGpwM2ZiQ`,"admin.hanzo.ai":`pk-RYZwxkomW-tlAnEu2DKo_kAzcxFbSF2YiYcsUY48QL0`,"bot.hanzo.ai":`pk-W5d7Mn7ZukT7igyscIy6Pqe8JpA0Ge604Yn4xNR4JCU`,"cloud.hanzo.ai":`pk-RAfEGHPoNdCEU9fnA_cPd_Xo9Tci44rlYQV9xuJ1Ob0`});function OO(e){let t=AO(e).replace(/^www\./,``);return DO[t]??(t.endsWith(`.hanzo.app`)?DO[`hanzo.app`]:void 0)}var kO=`pk-`,AO=e=>e.trim().toLowerCase().replace(/\.$/,``).split(`:`)[0]??``;function jO(e){let t=AO(e);if(!t)return;let n,r=0;for(let[e,i]of Object.entries(TO))for(let a of i)(t===a||t.endsWith(`.${a}`))&&a.length>r&&(n=e,r=a.length);return n}function MO(e,t=EO){if(t===EO){let t=OO(e);if(t)return t}let n=jO(e);if(!n)return;let r=t[n];if(typeof r!=`string`)return;let i=r.trim();return i.startsWith(kO)?i:void 0}function NO(e=EO){if(!(typeof location>`u`))return MO(location.hostname,e)}var PO=`[redacted]`,FO=`[email]`,IO=`[ip]`,LO=[/-----BEGIN[ A-Z]*PRIVATE KEY-----[\s\S]*?-----END[ A-Z]*PRIVATE KEY-----/g,/eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}/g,/\bbearer\s+[A-Za-z0-9._~+/-]{12,}=*/gi,/\b(?:sk|pk|rk)-[A-Za-z0-9]{2,}-?[A-Za-z0-9]{12,}/g,/\b(?:sk|pk)_(?:live|test)_[A-Za-z0-9]{16,}/g,/\bhk-[A-Za-z0-9]{16,}/g,/\bAKIA[0-9A-Z]{16}\b/g,/\bASIA[0-9A-Z]{16}\b/g,/\bAIza[0-9A-Za-z_-]{20,}/g,/\bgh[posru]_[A-Za-z0-9]{20,}/g,/\bxox[baprs]-[A-Za-z0-9-]{10,}/g,/[a-zA-Z][a-zA-Z0-9+.-]{0,32}:\/\/[^\s:@/]{1,256}:[^\s@/]{1,256}@/g],RO=/\b(?:\d[ -]?){13,19}\b/g;function zO(e){let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=e.charCodeAt(r)-48;n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10==0}function Zie(e){return e.replace(RO,e=>{let t=e.replace(/[ -]/g,``);return t.length<13||t.length>19?e:zO(t)?PO:e})}var Qie=/[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{1,255}\.[A-Za-z]{2,24}/g,$ie=/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,eae=/\b(?:[0-9A-Fa-f]{1,4}:){2,7}[0-9A-Fa-f]{1,4}\b/g,tae=RegExp(`([?&#;](?:`+`code.state.token.access_token.id_token.refresh_token.auth.authorization.secret.client_secret.password.passwd.pwd.api_key.apikey.key.session.session_id.sid.sig.signature.nonce.otp.invite.invitation.reset_token.confirmation_token.magic.ticket.assertion`.split(`.`).join(`|`)+`)=)[^&#;\\s]{1,4096}`,`gi`);function nae(e){return e.replace(tae,(e,t)=>t+PO)}var rae=/(^|[^A-Za-z0-9_-]|%[0-9A-Fa-f]{2})((?=[A-Za-z0-9_-]{0,42}[a-z])(?=[A-Za-z0-9_-]{0,42}[A-Z])[A-Za-z0-9_-]{43})(?![A-Za-z0-9_-])/g;function iae(e){e=nae(e);for(let t of LO)e=e.replace(t,PO);return e=e.replace(rae,(e,t)=>t+PO),Zie(e)}function BO(e){let t=e.indexOf(`#`);return t<0?e:e.slice(0,t)}function aae(e){return e=e.replace(Qie,FO),e=e.replace(eae,IO),e=e.replace($ie,IO),e}var oae=8192;function sae(e,t=oae){return e.length>t?e.slice(0,t)+`… [truncated]`:e}function VO(e,t=!1){return e?(e=sae(e),e=iae(e),t||(e=aae(e)),e):e??``}var HO=50,UO=500,WO=2048,GO=/^\s*at\s+(?:(.+?)\s+\()?(?:(.+?):(\d+):(\d+)|([^)]+))\)?\s*$/,KO=/^\s*(?:(.*?)@)?(.+?):(\d+):(\d+)\s*$/;function qO(e){return e?!(e.includes(`node_modules`)||e.startsWith(`webpack-internal`)||e.startsWith(`webpack://`)||e.startsWith(`chrome-extension://`)||e.startsWith(`moz-extension://`)):!1}function JO(e){if(!e)return[];let t=e.split(`
52
- `,UO),n=[];for(let e of t){if(e.length>WO)continue;let t=e.trimEnd();if(!t)continue;let r,i=``,a=0,o=0,s=GO.exec(t);if(s)r=s[1],s[2]?(i=s[2],a=Number(s[3])||0,o=Number(s[4])||0):i=(s[5]||``).trim();else{let e=KO.exec(t);if(!e)continue;r=e[1],i=e[2],a=Number(e[3])||0,o=Number(e[4])||0}(i||r)&&n.push({function:r||`<anonymous>`,filename:i,abs_path:i,lineno:a,colno:o,in_app:qO(i)})}return n.reverse(),n.length>HO?n.slice(n.length-HO):n}function YO(e){if(e instanceof Error){let t=XO(e,`name`),n=XO(e,`message`),r=XO(e,`stack`);return{name:typeof t==`string`&&t?t:`Error`,message:typeof n==`string`&&n?n:ZO(e),stack:typeof r==`string`?r:void 0}}if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)??ZO(e)}}catch{return{name:`Error`,message:ZO(e)}}}function XO(e,t){try{return e[t]}catch{return}}function ZO(e){try{return String(e)}catch{return`[unstringifiable]`}}var QO=`iam-anon-id`,$O=[`hz_anon_id`,`hz_id`],ek=`hanzo.ai`,tk=63072e3,nk;function rk(e){var t=new Uint8Array(16),n,r=typeof crypto<`u`?crypto:void 0;if(r&&typeof r.getRandomValues==`function`)r.getRandomValues(t);else for(n=0;n<16;n++)t[n]=Math.random()*256|0;var i=Math.floor(e===void 0?Date.now():e);for(n=5;n>=0;n--)t[n]=i%256,i=Math.floor(i/256);t[6]=112|t[6]&15,t[8]=128|t[8]&63;var a=``;for(n=0;n<16;n++)a+=(t[n]+256).toString(16).slice(1),(n===3||n===5||n===7||n===9)&&(a+=`-`);return a}function ik(){try{return typeof document>`u`||typeof document.cookie!=`string`?null:document}catch{return null}}function ak(){try{return typeof window>`u`||!window.localStorage?null:window.localStorage}catch{return null}}function ok(e,t){try{return e&&e.getItem(t)||``}catch{return``}}function sk(e){var t=ik();if(!t)return``;for(var n=t.cookie.split(`;`),r=0;r<n.length;r++){var i=n[r].indexOf(`=`);if(!(i<0||n[r].slice(0,i).trim()!==e)){var a=n[r].slice(i+1).trim();if(a)try{return decodeURIComponent(a)}catch{return a}}}return``}function ck(e,t){var n=ik();if(n){var r=``,i=!1;try{typeof window<`u`&&window.location&&(r=window.location.hostname||``,i=window.location.protocol===`https:`)}catch{}var a=e+`=`+encodeURIComponent(t);a+=`; Path=/; Max-Age=`+tk+`; SameSite=Lax`,(`.`+r).slice(-(ek.length+1))===`.`+ek&&(a+=`; Domain=`+ek),i&&(a+=`; Secure`);try{n.cookie=a}catch{}}}function lk(e){for(var t=0;t<$O.length;t++){var n=sk($O[t])||ok(e,$O[t]);if(n)return n}return``}function uk(){if(typeof window>`u`)return``;var e=ak(),t=sk(QO)||ok(e,QO)||lk(e)||nk||rk();nk=t,ck(QO,t);try{e&&e.getItem(QO)!==t&&e.setItem(QO,t)}catch{}return t}function dk(e){nk=e,ck(QO,e);try{var t=ak();t&&t.setItem(QO,e)}catch{}}var fk={session:`hz_session`,firstTouch:`hz_first_touch`,lastTouch:`hz_last_touch`,cohort:`hz_cohort`},pk=7776e6,mk=18e5;function hk(){try{return typeof window>`u`||!window.localStorage?void 0:window.localStorage}catch{return}}function gk(){return uk()||void 0}function _k(e=Date.now()){let t=hk();if(!t)return;let n=null;try{n=JSON.parse(t.getItem(fk.session)||`null`)}catch{n=null}return!n||e-n.last>mk?n={id:rk(e),last:e}:n.last=e,t.setItem(fk.session,JSON.stringify(n)),n.id}function vk(e,t=Date.now()){let n=hk();n&&n.setItem(fk.session,JSON.stringify({id:e,last:t}))}function yk(e){dk(e)}function bk(){let e=hk();if(e)try{let t=e.getItem(fk.firstTouch);return t?JSON.parse(t):void 0}catch{return}}function xk(e){let t=hk();return bk()||(t&&t.setItem(fk.firstTouch,JSON.stringify(e)),e)}function Sk(e=Date.now()){let t=hk();if(t)try{let n=JSON.parse(t.getItem(fk.lastTouch)||`null`);return!n?.utm||typeof n.at!=`number`||e-n.at>pk?void 0:n.utm}catch{return}}function cae(e,t=Date.now()){let n=hk();n&&n.setItem(fk.lastTouch,JSON.stringify({utm:e,at:t}))}function lae(){let e=hk();if(e)try{let t=e.getItem(fk.cohort);return t?JSON.parse(t):void 0}catch{return}}function Ck(e){let t=hk(),n=lae()||{},r={signupWeek:n.signupWeek||e.signupWeek,channel:e.channel||n.channel,refCode:n.refCode||e.refCode};return t&&t.setItem(fk.cohort,JSON.stringify(r)),r}var wk=86400,uae=new Set([`hanzo.app`]);function dae(e){for(let t of Object.values(TO))for(let n of t)if(!uae.has(n)&&(e===n||e.endsWith(`.${n}`)))return n;return``}function Tk(){let e=dae(window.location.hostname.toLowerCase());return e?`; Domain=.${e}`:``}function Ek(e){if(typeof document>`u`||typeof document.cookie!=`string`)return;let t=document.cookie.split(`; `).find(t=>t.startsWith(`${e}=`));return t?decodeURIComponent(t.slice(e.length+1)):void 0}function Dk(e,t,n){if(typeof document>`u`)return;let r=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${e}=${encodeURIComponent(t)}; Max-Age=${n*wk}; Path=/; SameSite=Lax${Tk()}${r}`}function Ok(e){return typeof window<`u`&&window.location?.protocol===`https:`?`__Host-${e}`:e}function kk(e,t,n){if(typeof document>`u`)return;let r=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${Ok(e)}=${encodeURIComponent(t)}; Max-Age=${n*wk}; Path=/; SameSite=Lax${r}`}function fae(e,t=[]){if(typeof document>`u`||typeof document.cookie!=`string`)return;let n=document.cookie.split(`; `).map(e=>e.slice(0,e.indexOf(`=`))),r=new Set([...e,...n.filter(e=>t.some(t=>t.test(e)))]),i=window.location.hostname.split(`.`),a=new Set([``,Tk(),...i.slice(0,-1).map((e,t)=>`; Domain=.${i.slice(t).join(`.`)}`)]);for(let e of r)for(let t of a)document.cookie=`${e}=; Max-Age=0; Path=/${t}`}var pae=()=>typeof navigator<`u`&&navigator.webdriver===!0,Ak=`hz_internal`;function mae(){if(pae())return!0;if(typeof window>`u`||typeof document>`u`||typeof document.cookie!=`string`)return!1;let e=new URLSearchParams(window.location?.search??``).get(Ak);return e===`1`&&Dk(Ak,`1`,365),e===`0`?(Dk(Ak,``,0),!1):e===`1`||Ek(Ak)===`1`}var jk={anon:`hz_aid`,session:`hz_sid`,firstTouch:`hz_ft`},hae=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mk=e=>!!e&&hae.test(e);function gae(e){return JSON.stringify([e.utm.source,e.utm.medium,e.utm.campaign,e.utm.term,e.utm.content,e.refCode,e.referrer,e.channel].map(e=>e??``))}function _ae(e){if(!(!e||e.length>1024))try{let t=JSON.parse(e);if(!Array.isArray(t)||t.length!==8||t.some(e=>typeof e!=`string`))return;let[n,r,i,a,o,s,c,l]=t,u=e=>e||void 0;return{utm:{source:u(n),medium:u(r),campaign:u(i),term:u(a),content:u(o)},refCode:u(s),referrer:u(c),channel:u(l)}}catch{return}}function vae(e,t,n,r){let i;try{i=new URL(e,r)}catch{return e}if(i.protocol!==`https:`&&i.protocol!==`http:`||!jO(i.hostname)||i.hostname===n)return e;let a=(e,t)=>t&&i.searchParams.set(e,t);return Mk(t.anonId)&&a(jk.anon,t.anonId),Mk(t.sessionId)&&a(jk.session,t.sessionId),t.firstTouch&&a(jk.firstTouch,gae(t.firstTouch)),i.toString()}function yae(e){let t=new URLSearchParams(e||``),n=t.get(jk.anon),r=t.get(jk.session);return{anonId:Mk(n)?n:void 0,sessionId:Mk(r)?r:void 0,firstTouch:_ae(t.get(jk.firstTouch))}}function bae(e){let t=new URL(e),n=!1;for(let e of Object.values(jk))t.searchParams.has(e)&&(t.searchParams.delete(e),n=!0);return n?t.pathname+t.search+t.hash:void 0}var Nk=`hz_consent`,Pk=`hz_consent_v`,Fk=`hz_consent_rule`,Ik=3,Lk=2,xae=`hzconsent`,Rk={analytics:!1,marketing:!1,ads:!1},Sae={analytics:!0,marketing:!0,ads:!0},Cae=[`eu`,`us_privacy`,`global`],wae=`hz_consent_policy`,zk=Symbol.for(`hanzo.event.consent`);function Bk(){let e=globalThis;return e[zk]??(e[zk]={})}function Tae(e){if(typeof e!=`object`||!e)return;let t=e;if(typeof t.version==`number`||typeof t.mode==`string`)return{mode:Cae.includes(t.mode)?t.mode:`eu`,refused:t.refused===!0,version:Number(t.version)||0,region:String(t.region??``),floor:Number(t.floor)||Lk}}function Vk(){try{return typeof window>`u`?void 0:window.sessionStorage}catch{return}}function Hk(){let e=Bk().served;if(e)return e;try{let e=Tae(JSON.parse(Vk()?.getItem(wae)??`null`));if(e)return e}catch{}return{mode:`eu`,refused:!1,version:Ik,region:``,floor:Lk}}function Uk(){let e=Hk();return{mode:e.mode,refused:e.refused||Gk(),version:Kk(),region:e.region}}function Wk(){return typeof navigator>`u`?!1:navigator.globalPrivacyControl===!0}function Gk(){if(typeof window>`u`)return!1;let e=typeof navigator>`u`?{}:navigator,t=e.doNotTrack??window.doNotTrack??e.msDoNotTrack;return Wk()||t===`1`||t===`yes`}var Kk=()=>Math.max(Bk().served?.version??0,Ik),qk=()=>Uk().refused;function Jk(){let e=Ek(Ok(Nk));if(e===void 0)return;let t=Number(Ek(Ok(Pk))),n=Ek(Ok(Fk));if(Uk().mode===`eu`&&!(n===`eu`||n===void 0&&t===2))return;let r=e.split(`,`);return{held:{analytics:r.includes(`analytics`),marketing:r.includes(`marketing`),ads:r.includes(`ads`)},current:t>=Hk().floor&&t<=Kk()}}var Yk=e=>e.analytics||e.marketing||e.ads;function Xk(){let e=Uk();if(e.refused)return{...Rk};let t=e.mode===`eu`?Rk:Sae,n=Jk();return n?n.current?{...n.held}:{analytics:t.analytics&&n.held.analytics,marketing:t.marketing&&n.held.marketing,ads:t.ads&&n.held.ads}:{...t}}function Zk(){let e=Jk();qk()&&e&&Yk(e.held)&&$k({...Rk})}function Qk(e){return[`analytics`,`marketing`,`ads`].filter(t=>e[t]).join(`,`)}function $k(e){let t=Uk(),n=t.refused?{...Rk}:{analytics:e.analytics,marketing:e.marketing,ads:e.ads};kk(Nk,Qk(n),395),kk(Pk,String(Kk()),395),kk(Fk,t.mode,395),n.analytics||rA(eA),n.marketing||rA(tA),n.ads||rA(nA),typeof window<`u`&&window.dispatchEvent(new Event(xae))}var eA={cookies:[`_ga`,`_gid`,`_gat`,`hz_cid`],patterns:[/^_ga_[A-Z0-9]+$/,/^_gat_[\w-]+$/],storage:[]},tA={cookies:[`hz_touch`,`_fbp`,`_fbc`,`_ttp`,`_tt_enable_cookie`,`ttcsid`,`_twclid`,`li_fat_id`,`li_giant`,`_uetsid`,`_uetvid`,`_pin_unauth`,`_epik`,`_derived_epik`,`_rdt_uuid`,`_rdt_cid`],patterns:[/^ttcsid_[A-Z0-9]+$/],storage:[]},nA={cookies:[],patterns:[/^_gcl_[a-z]+$/,/^_gac_[\w-]+$/],storage:[]};function rA(e){if(fae(e.cookies,e.patterns),!(typeof window>`u`))try{for(let t of e.storage)window.localStorage?.removeItem(t)}catch{}}var iA=`0.3.66`,aA=`/v1/event`,oA=`https://api.hanzo.ai`,sA=`text/plain`;function cA(e){try{if(typeof process<`u`)return{}[e]||void 0}catch{}}function lA(e,t,n){return e+(e.includes(`?`)?`&`:`?`)+t+`=`+encodeURIComponent(n)}function uA(e){let t=YO(e),n=JO(t.stack).slice(-50).map(e=>({function:e.function,file:e.filename,line:e.lineno,column:e.colno}));return{type:t.name,message:t.message,stack:t.stack,frames:n}}var dA=()=>fA()?{screen:`${window.screen?.width??0}x${window.screen?.height??0}`,language:navigator.language||``}:{},fA=()=>typeof window<`u`&&typeof document<`u`;function pA(e){if(!fA())return e;let t=new Set(Qk(Xk()).split(`,`).filter(Boolean)),n=String(e.properties?.consent??``).split(`,`).filter(e=>t.has(e)).join(`,`);return{...e,properties:{...e.properties,consent:n}}}function mA(e){try{return JSON.stringify({batch:e})}catch{}let t=[];for(let n of e)try{t.push(JSON.stringify(n))}catch{try{t.push(JSON.stringify({...n,properties:{$unserializable:!0}}))}catch{}}return t.length>0?`{"batch":[`+t.join(`,`)+`]}`:null}var hA=class{send(e,t,n){if(n.beacon&&fA()&&typeof navigator.sendBeacon==`function`){let r=n.ingestKey?lA(e,`ingest_key`,n.ingestKey):e;try{if(navigator.sendBeacon(r,new Blob([t],{type:sA})))return;n.debug&&console.warn(`[event] beacon refused, falling back to fetch`)}catch{}}if(typeof fetch!=`function`)return;let r=n.ingestKey!==void 0&&n.token===void 0&&n.contentType===void 0,i={"Content-Type":r?sA:n.contentType??`application/json`},a=r?void 0:n.token??n.ingestKey;a&&(i.Authorization=`Bearer ${a}`),fetch(n.ingestKey?lA(e,`ingest_key`,n.ingestKey):e,{method:`POST`,headers:i,body:t,keepalive:!0,credentials:r?`omit`:`include`}).then(t=>{!t.ok&&n.debug&&console.warn(`[event] ingest rejected`,t.status,e.split(`?`)[0])}).catch(t=>{n.debug&&console.warn(`[event] ingest failed`,e.split(`?`)[0],t)})}},gA=class{constructor(e){this.queue=[],this.timer=null,this.attribution={utm:{}},this.cohort={},this.started=!1,this.reentrant=!1,this.cfg={host:oA,batchSize:20,flushIntervalMs:5e3,enabled:!0,captureErrors:!0,...e,ingestKey:e.ingestKey??cA(`NEXT_PUBLIC_PUBLISHABLE_KEY`)??NO()},this.transport=e.transport??new hA}adopt(e){e.ingestKey&&!this.cfg.ingestKey&&(this.cfg.ingestKey=e.ingestKey),e.getToken&&!this.cfg.getToken&&(this.cfg.getToken=e.getToken)}init(){if(this.started||!this.cfg.enabled||(this.started=!0,!fA()))return;let e=yae(window.location.search),t=bae(window.location.href);if(t!==void 0)try{window.history.replaceState(window.history.state,``,t)}catch{}this.settle(e,xO(window.location.search,document.referrer)),Zk(),window.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&this.flush(!0)}),window.addEventListener(`pagehide`,()=>this.flush(!0)),this.cfg.captureErrors&&(window.addEventListener(`error`,e=>{this.captureError(e.error??e.message,{handled:!1})}),window.addEventListener(`unhandledrejection`,e=>{this.captureError(e.reason,{handled:!1})}))}settle(e,t){e.anonId&&yk(e.anonId),e.sessionId&&vk(e.sessionId);let n=e.firstTouch&&!bk()?xk(e.firstTouch):void 0;this.attribution=n??(wO(t)?xk(t):bk()??t),(t.utm.source||t.utm.campaign)&&cae(t.utm),this.lastUtm=Sk(),this.cohort=Ck({channel:this.attribution.channel??SO(this.attribution),refCode:this.attribution.refCode})}link(e){return fA()?(this.started||this.init(),vae(e,{anonId:gk(),sessionId:_k(),firstTouch:this.attribution},window.location.hostname,window.location.href)):e}authorize(e){let t=this.link(e);return this.flush(!0),t}identify(e,t){this.personId=e,this.enqueue(`identify`,void 0,{properties:t})}group(e,t){this.enqueue(`group`,void 0,{groupId:e,properties:t})}pageview(e,t){let n=e??(fA()?window.location.pathname:void 0),r=(n??``)+`\0`+(fA()?window.location.href:``);r!==this.counted&&(this.counted=r,this.enqueue(`pageview`,C,{path:n,properties:{...dA(),...t}}))}capture(e,t,n){this.enqueue(`event`,e,{properties:t,...n})}captureError(e,t){if(!this.reentrant){this.reentrant=!0;try{let n=t?.handled??!0,r=uA(e);r.handled=n,this.enqueue(`error`,void 0,{error:r,level:t?.level??(n?`error`:`fatal`),release:this.cfg.release??cA(`NEXT_PUBLIC_HANZO_RELEASE`),environment:this.cfg.environment??cA(`NODE_ENV`),site:fA()?window.location.hostname:void 0,properties:t?.properties}),this.flush()}catch{}finally{this.reentrant=!1}}}setCohort(e){this.cohort=Ck(e)}flush(e=!1){if(!this.cfg.enabled||this.queue.length===0)return;let t=this.queue.map(pA);if(this.queue=[],this.clearTimer(),t.length===0)return;let n=this.cfg.getToken?.()??void 0,r=this.cfg.ingestKey?.trim()||void 0,i=e&&!n,a=mA(t);if(a===null){this.cfg.debug&&console.debug(`[event] flush → dropped, batch unserializable`);return}this.cfg.debug&&console.debug(`[event] flush →`,aA,t.length),this.transport.send(this.cfg.host+aA,a,{beacon:i,token:n,ingestKey:r,debug:this.cfg.debug})}enqueue(e,t,n){this.cfg.enabled&&(this.started||this.init(),this.queue.push(this.build(e,t,n)),this.queue.length>=this.cfg.batchSize?this.flush():this.schedule())}build(e,t,n){let r=gk(),i={messageId:rk(),type:e,event:t,timestamp:new Date().toISOString(),distinctId:this.personId??r,anonymousId:r,personId:this.personId,sessionId:_k(),product:this.cfg.product,referrer:this.attribution.referrer,utm:this.attribution.utm,lastUtm:this.lastUtm,refCode:this.cohort.refCode??this.attribution.refCode,channel:this.cohort.channel??this.attribution.channel,signupWeek:this.cohort.signupWeek,url:fA()?window.location.href:void 0,path:fA()?window.location.pathname:void 0,library:`@hanzo/event`,libraryVersion:iA,...n},a=this.cfg.capturePII??!1;return i.url&&=VO(BO(i.url),a),i.path&&=VO(BO(i.path),a),i.referrer&&=VO(BO(i.referrer),a),mae()&&(i.properties={...i.properties,internal:!0}),fA()&&(i.properties={...i.properties,consent:Qk(Xk())}),i}schedule(){!this.timer&&this.cfg.enabled&&(this.timer=setTimeout(()=>{this.timer=null,this.flush()},this.cfg.flushIntervalMs))}clearTimer(){this.timer&&=(clearTimeout(this.timer),null)}},_A=Symbol.for(`hanzo.event.clients.optin`);function vA(){let e=globalThis,t=e[_A];if(t)return t;let n=new Map;return e[_A]=n,n}function yA(e){if(!fA()||e.enabled===!1)return new gA(e);let t=(e.host??oA)+`\0`+e.product,n=vA(),r=n.get(t);if(r)return r.adopt(e),r;let i=new gA(e);return n.set(t,i),i}var bA=(0,b.createContext)(null);function xA(e){let{client:t,config:n,autoPageview:r=!0,children:i}=e;if(!t&&!n)throw Error("AnalyticsProvider requires `client` or `config`");let a=t??yA(n);return(0,b.useEffect)(()=>{a.init(),r&&a.pageview()},[a,r]),(0,b.createElement)(bA.Provider,{value:a},i)}new gA({product:`unknown`,enabled:!1});var SA=class extends b.Component{constructor(){super(...arguments),this.state={error:null},this.reset=()=>this.setState({error:null})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){(this.props.client??this.context??void 0)?.captureError(e,{handled:!1,properties:{componentStack:t.componentStack,react:!0}})}render(){let{error:e}=this.state;if(e===null)return this.props.children;let{fallback:t}=this.props;return typeof t==`function`?t(e,this.reset):t??null}};SA.contextType=bA;var CA=SA.contextType;function wA(){return(0,b.useContext)(CA)}var TA=`hz_consent`,EA=()=>typeof window<`u`;function DA(){try{return!EA()||!window.localStorage?void 0:window.localStorage}catch{return}}function OA(){if(!EA())return!1;try{let e=navigator,t=window;return e.globalPrivacyControl===!0||e.doNotTrack===`1`||t.doNotTrack===`1`||e.msDoNotTrack===`1`}catch{return!1}}function kA(){let e=DA();if(e)try{let t=e.getItem(TA);return t===`granted`||t===`denied`?t:void 0}catch{return}}var AA=new Set;function jA(e){return AA.add(e),()=>{AA.delete(e)}}function MA(e){if(typeof e.enabled==`boolean`)return e.enabled;let t=e.stored===void 0?kA():e.stored;if(t===`denied`)return!1;if(t===`granted`)return!0;let n=e.consent??`auto`;return n===`denied`?!1:n===`granted`||!OA()}var NA={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1},PA=(...e)=>{for(let t of e)if(typeof t==`string`&&t.trim()!==``)return t.trim()};function FA(){try{if(typeof process>`u`)return{};let e={};return{apiUrl:PA(e.NEXT_PUBLIC_HANZO_API_URL,e.PUBLIC_HANZO_API_URL,e.HANZO_API_URL),ingestKey:PA(e.NEXT_PUBLIC_PUBLISHABLE_KEY,e.PUBLIC_PUBLISHABLE_KEY,e.PUBLISHABLE_KEY,e.NEXT_PUBLIC_HANZO_INGEST_KEY,e.PUBLIC_HANZO_INGEST_KEY,e.HANZO_INGEST_KEY),product:PA(e.NEXT_PUBLIC_HANZO_PRODUCT,e.PUBLIC_HANZO_PRODUCT,e.HANZO_PRODUCT),telemetry:PA(e.NEXT_PUBLIC_HANZO_TELEMETRY,e.PUBLIC_HANZO_TELEMETRY,e.HANZO_TELEMETRY),debug:PA(e.NEXT_PUBLIC_HANZO_TELEMETRY_DEBUG,e.PUBLIC_HANZO_TELEMETRY_DEBUG)}}catch{return{}}}function IA(){try{let e=NA;return e?{apiUrl:PA(e.VITE_HANZO_API_URL,e.EXPO_PUBLIC_HANZO_API_URL,e.PUBLIC_HANZO_API_URL),ingestKey:PA(e.VITE_PUBLISHABLE_KEY,e.EXPO_PUBLIC_PUBLISHABLE_KEY,e.PUBLIC_PUBLISHABLE_KEY,e.VITE_HANZO_INGEST_KEY,e.EXPO_PUBLIC_HANZO_INGEST_KEY,e.PUBLIC_HANZO_INGEST_KEY),product:PA(e.VITE_HANZO_PRODUCT,e.EXPO_PUBLIC_HANZO_PRODUCT,e.PUBLIC_HANZO_PRODUCT),telemetry:PA(e.VITE_HANZO_TELEMETRY,e.EXPO_PUBLIC_HANZO_TELEMETRY,e.PUBLIC_HANZO_TELEMETRY),debug:PA(e.VITE_HANZO_TELEMETRY_DEBUG,e.EXPO_PUBLIC_HANZO_TELEMETRY_DEBUG)}:{}}catch{return{}}}function LA(){try{return globalThis.__HANZO_TELEMETRY__??{}}catch{return{}}}var RA={"hanzo.ai":`site`,"hanzo.chat":`chat`,"hanzo.app":`app`,"hanzo.id":`iam`,"hanzo.industries":`industries`,"hanzo.network":`network`};function zA(e){if(!e)return;let t=e.toLowerCase().replace(/^www\./,``);if(t===`localhost`||t===`::1`||t===`[::1]`||/^127\./.test(t))return`dev`;let n=RA[t];if(n)return n;let r=t.split(`.`)[0];return r&&r!==``?r:void 0}function BA(){try{return typeof navigator<`u`&&navigator.product===`ReactNative`}catch{return!1}}function VA(){try{let e=globalThis;if(e.__TAURI_INTERNALS__!==void 0||e.__TAURI__!==void 0)return`desktop`}catch{}if(BA())return`mobile`}var HA=e=>e===`0`||e===`false`||e===`off`||e===`no`,UA=e=>e===`1`||e===`true`||e===`on`||e===`yes`;function WA(){let e=FA(),t=IA(),n=LA(),r=PA(t.telemetry,e.telemetry),i=typeof n.enabled==`boolean`?n.enabled:HA(r)?!1:UA(r)?!0:void 0;return{host:PA(n.host,n.apiUrl,t.apiUrl,e.apiUrl)??`https://api.hanzo.ai`,product:PA(n.product,t.product,e.product),ingestKey:PA(n.ingestKey,t.ingestKey,e.ingestKey),enabled:i,debug:n.debug===!0||UA(PA(t.debug,e.debug))}}var GA=()=>typeof window<`u`&&typeof document<`u`,KA=()=>GA()||BA();function qA(e,t){try{e()}catch(e){t&&console.debug(`[telemetry] swallowed`,e)}}var JA=new WeakMap;function YA(e={}){let t=WA(),n=e.debug??t.debug,r=e.product??t.product??VA()??(GA()?zA(window.location?.hostname):void 0)??`unknown`,i=KA()&&MA({enabled:e.enabled??t.enabled,consent:e.consent}),a=e.errors??!0,o=e.replay??!0,s=e.pageviews??!0,c=e.ingestKey??t.ingestKey??se(),l=An({host:e.host===void 0?t.host:e.host,product:r,ingestKey:c,getToken:e.getToken,enabled:i,captureErrors:i&&a,debug:n}),u={enabled:i,product:r,client:l,track:(e,t,r)=>qA(()=>l.capture(e,t,r),n),pageview:(e,t)=>qA(()=>l.pageview(e,t),n),identify:(e,t)=>qA(()=>l.identify(e,t),n),group:(e,t)=>qA(()=>l.group(e,t),n),captureError:(e,t)=>qA(()=>l.captureError(e,t),n),captureException:(e,t)=>qA(()=>l.captureError(e,t),n),setCohort:e=>qA(()=>l.setCohort(e),n),flush:()=>qA(()=>l.flush(),n)};return JA.set(u,{host:e.host===void 0?t.host:e.host,product:r,enabled:i,replay:o,errors:a,pageviews:s,hasIngestKey:!!c,debug:n}),u}var XA,ZA=!1,QA=new Set;function $A(){return XA||=YA(),XA}function ej(e,t){XA=e,ZA=e!==void 0&&(t?.app??!0);for(let e of QA)try{e()}catch{}}function tj(){return ZA}function nj(e){return QA.add(e),()=>{QA.delete(e)}}var rj=(e,t,n)=>$A().track(e,t,n);function ij(e,t,n){(0,b.useEffect)(()=>{if(!t||typeof window>`u`||typeof document>`u`)return;let r=!1,i,a=()=>{r||Ba(async()=>{let{observe:e,wireProps:t}=await import(`./dist-Cy8E8G3S.js`);return{observe:e,wireProps:t}},[]).then(({observe:t,wireProps:a})=>{if(r)return;let o=t(t=>{t.kind!==`nav`&&e.track(t.name,a(t))},{nav:!1,redaction:n});i=()=>o.stop()}).catch(()=>{})},o=window,s=typeof o.requestIdleCallback==`function`,c=s?o.requestIdleCallback(a,{timeout:3e3}):window.setTimeout(a,1200);return()=>{r=!0;try{s?o.cancelIdleCallback?.(c):window.clearTimeout(c)}catch{}i?.()}},[e,t])}var aj=e=>{try{let t=window.location,n=e==null||e===``?t:new URL(String(e),t.href);return{key:n.pathname+n.search+n.hash,path:n.pathname}}catch{return{key:``,path:void 0}}};function oj(e,t,n){let r=(0,b.useRef)(null),i=n!==void 0;(0,b.useEffect)(()=>{if(!t||!i||!GA())return;let a=n??aj().path??``;r.current!==a&&(r.current=a,e.pageview(a))},[e,t,i,n]),(0,b.useEffect)(()=>{if(!t||i||!GA())return;let n=t=>{let{key:n,path:i}=aj(t);r.current!==n&&(r.current=n,e.pageview(i))};n();let a=window.history,o=a.pushState,s=a.replaceState;a.pushState=function(...e){let t=o.apply(this,e);return n(e[2]),t},a.replaceState=function(...e){let t=s.apply(this,e);return n(e[2]),t};let c=()=>n();return window.addEventListener(`popstate`,c),window.addEventListener(`hashchange`,c),()=>{a.pushState=o,a.replaceState=s,window.removeEventListener(`popstate`,c),window.removeEventListener(`hashchange`,c)}},[e,t,i])}var sj=(0,b.createContext)(null);function cj(e){let{owner:t=`app`,path:n,fallback:r,client:i,children:a,host:o,product:s,ingestKey:c,getToken:l,enabled:u,consent:d,replay:f,errors:p,pageviews:m,redaction:h,debug:g}=e,_=t===`gui`,v=wA(),y=v!==null&&_,[x,S]=(0,b.useState)(!1),C=!_||x&&!y;(0,b.useEffect)(()=>{if(!_||y)return;let e=()=>S(!tj());return e(),nj(e)},[_,y]);let w=(0,b.useRef)(l);w.current=l;let T=(0,b.useRef)(h);T.current=h;let[E,D]=(0,b.useState)(0);(0,b.useEffect)(()=>{let e=()=>D(e=>e+1),t=jA(e);if(!GA())return t;let n=t=>{(t.key===null||t.key===`hz_consent`)&&e()};return window.addEventListener(`storage`,n),()=>{t(),window.removeEventListener(`storage`,n)}},[]);let O=(0,b.useMemo)(()=>i??YA({host:o,product:s,ingestKey:c,getToken:w.current?()=>w.current?.():void 0,enabled:C?u:!1,consent:d,replay:f,errors:p,pageviews:m,debug:g}),[i,o,s,c,C,u,d,f,p,m,g,E]);(0,b.useEffect)(()=>{if(C)return ej(O,{app:!_}),O.client.init(),()=>{$A()===O&&ej(void 0)}},[O,C,_]);let k=O.enabled;return oj(O,k&&(m??!0),n),ij(O,k&&(f??!0),T.current),(0,R.jsx)(sj.Provider,{value:O,children:(0,R.jsx)(xA,{client:y&&v?v:O.client,autoPageview:!1,children:(0,R.jsx)(lj,{telemetry:O,enabled:k&&(p??!0),fallback:r,children:a})})})}var lj=class extends b.Component{constructor(){super(...arguments),this.state={error:null},this.reset=()=>this.setState({error:null})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){if(this.props.enabled&&this.props.telemetry.captureError(e,{handled:!1,properties:{componentStack:t.componentStack,react:!0}}),this.props.fallback===void 0)throw e}render(){let{error:e}=this.state;if(!e)return this.props.children;let{fallback:t}=this.props;return t===void 0?null:typeof t==`function`?t(e,this.reset):t}},uj=({children:e,telemetry:t,...n})=>{let r=(0,R.jsx)(pee,{...n,children:(0,R.jsx)(hh.Provider,{value:1,children:(0,R.jsx)(Ih,{shouldAddRootHost:!0,children:e})})});return t===!1?r:(0,R.jsx)(cj,{owner:`gui`,...typeof t==`object`?t:null,children:r})},dj={size:`$true`,fontFamily:`$body`,borderWidth:1,outlineWidth:0,color:`$color`,tabIndex:0,borderColor:`$borderColor`,backgroundColor:`$background`,minWidth:0,hoverStyle:{borderColor:`$borderColorHover`},focusStyle:{borderColor:`$borderColorFocus`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`}},fj=(e=`$true`,t)=>{if(t.props.tag===`textarea`||t.props.rows>1||t.props.multiline||t.props.numberOfLines>1)return pj(e,t);let n=oh(e,t),r=eh(e,{shift:-1,bounds:[2]});return{...lh(e,t),...n,paddingHorizontal:r}},pj=(e=`$true`,t)=>{let{props:n}=t,r=oh(e,t),i=lh(e,t),a=n.rows??n.numberOfLines,o=typeof a==`number`?a*Gc(i.lineHeight):`auto`,s=eh(e,{shift:-2,bounds:[2]}),c=eh(e,{shift:-1,bounds:[2]});return{...r,...i,paddingVertical:s,paddingHorizontal:c,height:o}},mj=[{name:`Input`,render:`input`,variants:{unstyled:{true:{outlineWidth:0,borderWidth:0,backgroundColor:`transparent`},false:dj},size:{"...size":fj},disabled:{true:{}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}},{isInput:!0,accept:{placeholderTextColor:`color`,selectionColor:`color`,cursorColor:`color`,selectionHandleColor:`color`,underlineColorAndroid:`color`},validStyles:Rm.staticConfig.validStyles}],hj=z(Lm,mj[0],mj[1]),gj=hj.styleable((e,t)=>{let{disabled:n,id:r,onChangeText:i,onSubmitEditing:a,onSelectionChange:o,selection:s,placeholderTextColor:c,selectionColor:l,rows:u,keyboardAppearance:d,returnKeyType:f,submitBehavior:p,blurOnSubmit:m,caretHidden:h,contextMenuHidden:g,selectTextOnFocus:_,secureTextEntry:v,maxFontSizeMultiplier:y,allowFontScaling:x,multiline:S,keyboardType:C,autoCapitalize:w,autoCorrect:T,autoFocusNative:E,textContentType:D,onEndEditing:O,onContentSizeChange:k,onScroll:A,onKeyPress:j,clearButtonMode:M,clearTextOnFocus:ee,enablesReturnKeyAutomatically:te,dataDetectorTypes:ne,scrollEnabled:N,passwordRules:P,rejectResponderTermination:re,spellCheck:ie,lineBreakStrategyIOS:ae,lineBreakModeIOS:oe,smartInsertDelete:se,inputAccessoryViewID:ce,inputAccessoryViewButtonLabel:le,disableKeyboardShortcuts:ue,cursorColor:de,selectionHandleColor:fe,underlineColorAndroid:pe,importantForAutofill:me,disableFullscreenUI:he,inlineImageLeft:ge,inlineImagePadding:F,returnKeyLabel:_e,textBreakStrategy:I,textAlignVertical:ve,verticalAlign:ye,showSoftInputOnFocus:be,numberOfLines:xe,...L}=e,{ref:Se,composedRef:Ce}=Yie(t),we=Ol(),Te=T===!0?`on`:T===!1?`off`:T,Ee=w===`sentences`||w===`words`?`on`:w===`none`||w===`characters`?`off`:w;b.useEffect(()=>{if(!o)return;let e=Se.current;if(!e)return;let t=()=>{o({nativeEvent:{selection:{start:e.selectionStart??0,end:e.selectionEnd??0}}})};return e.addEventListener(`select`,t),()=>e.removeEventListener(`select`,t)},[o]),b.useEffect(()=>{s&&Se.current&&Se.current.setSelectionRange(s.start,s.end??s.start)},[s?.start,s?.end]),b.useEffect(()=>{if(r&&!n)return KS(r,{focusAndSelect:()=>Se.current?.focus(),focus:()=>Se.current?.focus()})},[r,n]);let De=e=>{e.key===`Enter`&&a&&a({nativeEvent:{text:e.target.value}}),L.onKeyDown?.(e)},Oe=e=>{i?.(e.target.value),L.onChange?.(e)},ke={...L,disabled:n,id:r,rows:u,autoCorrect:Te,autoCapitalize:Ee,onKeyDown:a?De:L.onKeyDown,onChange:i?Oe:L.onChange,style:{...L.style,...c&&{"--t_placeholderColor":we[c]?.variable||c},...l&&{"--t_selectionColor":we[l]?.variable||l}}};return(0,R.jsx)(hj,{ref:Ce,...ke})}),_j=z(gj,{name:`TextArea`,render:`textarea`,whiteSpace:`pre-wrap`,variants:{unstyled:{false:{height:`auto`,...dj,rows:3}},size:{"...size":pj}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),vj=B.styleable((e,t)=>{let{size:n,color:r,...i}=e,a=Ol(),o=r;return o&&o[0]===`$`&&(o=zc(a[o])),(0,R.jsx)(B,{ref:t,...i,children:(0,R.jsx)(Ux,{size:n,color:o})})}),U=z(Rm,{variants:{unstyled:{false:{color:`$color`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),yj=e=>e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),bj=e=>{if(e&&e.nodeType===1&&typeof e.getBoundingClientRect==`function`)return e.getBoundingClientRect();throw Error(`Can not get boundingClientRect of `+e||`undefined`)},xj=(e,t)=>{let n=e?.parentNode;n&&setTimeout(()=>{let r=bj(n),{height:i,left:a,top:o,width:s}=bj(e);t(a-r.left,o-r.top,s,i,a,o)},0)};function Sj(){let e=this.state.touchable.responderID;e!==null&&xj(e,this._handleQueryLayout)}function Cj(e){return e.replace(`<svg`,~e.indexOf(`xmlns`)?`<svg`:`<svg xmlns="http://www.w3.org/2000/svg"`).replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/{/g,`%7B`).replace(/}/g,`%7D`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}var wj=new Set(`stdDeviation.edgeMode.kernelMatrix.kernelUnitLength.preserveAlpha.baseFrequency.targetX.targetY.numOctaves.stitchTiles.filterUnits.primitiveUnits.pathLength.gradientUnits.gradientTransform.spreadMethod.markerHeight.markerUnits.markerWidth.viewBox.refX.refY.maskContentUnits.maskUnits.patternContentUnits.patternTransform.patternUnits.textLength.lengthAdjust.startOffset.clipPathUnits`.split(`.`)),Tj=e=>wj.has(e)?e:yj(e);function Ej(e){return!!(e.onPress||e.onPressIn||e.onPressOut||e.onLongPress)}Math.PI/180;var Dj=s(((e,t)=>{function n(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,r)}n(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){for(var t=``,n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){for(var t=Array(e.length),n=0,r;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function i(e,t){t=t===void 0?{}:t;var n={},i={transformList:Oe},a=Oe,o=function(e){return e},s=function(e,t){return Ze(e,t)},c=`matrix`,l=xe(`matrix`,!1),u=`(`,d=xe(`(`,!1),f=`)`,p=xe(`)`,!1),m=function(e,t,n,r,i,a){return[e,n,i,t,r,a]},h=`translate`,g=xe(`translate`,!1),_=function(e,t){return[1,0,e,0,1,t||0]},v=`scale`,y=xe(`scale`,!1),b=function(e,t){return[e,0,0,0,t===null?e:t,0]},x=`rotate`,S=xe(`rotate`,!1),C=function(e,t){var n=Math.cos(Xe*e),r=Math.sin(Xe*e);if(t!==null){var i=t[0],a=t[1];return[n,-r,n*-i+-r*-a+i,r,n,r*-i+n*-a+a]}return[n,-r,0,r,n,0]},w=`skewX`,T=xe(`skewX`,!1),E=function(e){return[1,Math.tan(Xe*e),0,0,1,0]},D=`skewY`,O=xe(`skewY`,!1),k=function(e){return[1,0,0,Math.tan(Xe*e),1,0]},A=function(e){return parseFloat(e.join(``))},j=function(e){return parseInt(e.join(``))},M=function(e){return e},ee=function(e,t){return[e,t]},te=`,`,ne=xe(`,`,!1),N=function(e){return e.join(``)},P=function(e){return e.join(``)},re=function(e){return e.join(``)},ie=Ce(`fractionalConstant`),ae=`.`,oe=xe(`.`,!1),se=function(e,t){return[e?e.join(``):null,`.`,t.join(``)].join(``)},ce=/^[eE]/,le=L([`e`,`E`],!1,!1),ue=function(e){return[e[0],e[1],e[2].join(``)].join(``)},de=/^[+\-]/,fe=L([`+`,`-`],!1,!1),pe=/^[0-9]/,me=L([[`0`,`9`]],!1,!1),he=/^[ \t\r\n]/,ge=L([` `,` `,`\r`,`
53
- `],!1,!1),F=0,_e=[{line:1,column:1}],I=0,ve=[],ye=0,be;if(`startRule`in t){if(!(t.startRule in i))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);a=i[t.startRule]}function xe(e,t){return{type:`literal`,text:e,ignoreCase:t}}function L(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function Se(){return{type:`end`}}function Ce(e){return{type:`other`,description:e}}function we(t){var n=_e[t],r;if(n)return n;for(r=t-1;!_e[r];)r--;for(n=_e[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return _e[t]=n,n}function Te(e,t){var n=we(e),r=we(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Ee(e){F<I||(F>I&&(I=F,ve=[]),ve.push(e))}function De(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function Oe(){for(var e=F,t=[],r=Ye(),i,a;r!==n;)t.push(r),r=Ye();if(t!==n){if(r=ke(),r===n&&(r=null),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();i===n?(F=e,e=n):(t=o(r),e=t)}else F=e,e=n}else F=e,e=n;return e}function ke(){var e=F,t=Ae(),r,i;if(t!==n){for(r=[],i=Be();i!==n;)r.push(i),i=Be();r===n?(F=e,e=n):(i=ke(),i===n?(F=e,e=n):(t=s(t,i),e=t))}else F=e,e=n;return e===n&&(e=Ae()),e}function Ae(){var e=je();return e===n&&(e=Me(),e===n&&(e=Ne(),e===n&&(e=Pe(),e===n&&(e=Fe(),e===n&&(e=Ie()))))),e}function je(){var t=F,r,i,a,o,s,h,g,_,v,y,b,x,S,C,w,T,E;if(e.substr(F,6)===c?(r=c,F+=6):(r=n,ye===0&&Ee(l)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){if(h=Be(),h!==n){if(g=Le(),g!==n){if(_=Be(),_!==n){if(v=Le(),v!==n){if(y=Be(),y!==n){if(b=Le(),b!==n){if(x=Be(),x!==n){if(S=Le(),S!==n){if(C=Be(),C!==n){if(w=Le(),w!==n){for(T=[],E=Ye();E!==n;)T.push(E),E=Ye();T===n?(F=t,t=n):(e.charCodeAt(F)===41?(E=f,F++):(E=n,ye===0&&Ee(p)),E===n?(F=t,t=n):(r=m(s,g,v,b,S,w),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Me(){var t=F,r,i,a,o,s,c,l,m;if(e.substr(F,9)===h?(r=h,F+=9):(r=n,ye===0&&Ee(g)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){if(c=Re(),c===n&&(c=null),c!==n){for(l=[],m=Ye();m!==n;)l.push(m),m=Ye();l===n?(F=t,t=n):(e.charCodeAt(F)===41?(m=f,F++):(m=n,ye===0&&Ee(p)),m===n?(F=t,t=n):(r=_(s,c),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Ne(){var t=F,r,i,a,o,s,c,l,m;if(e.substr(F,5)===v?(r=v,F+=5):(r=n,ye===0&&Ee(y)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){if(c=Re(),c===n&&(c=null),c!==n){for(l=[],m=Ye();m!==n;)l.push(m),m=Ye();l===n?(F=t,t=n):(e.charCodeAt(F)===41?(m=f,F++):(m=n,ye===0&&Ee(p)),m===n?(F=t,t=n):(r=b(s,c),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Pe(){var t=F,r,i,a,o,s,c,l,m;if(e.substr(F,6)===x?(r=x,F+=6):(r=n,ye===0&&Ee(S)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){if(c=ze(),c===n&&(c=null),c!==n){for(l=[],m=Ye();m!==n;)l.push(m),m=Ye();l===n?(F=t,t=n):(e.charCodeAt(F)===41?(m=f,F++):(m=n,ye===0&&Ee(p)),m===n?(F=t,t=n):(r=C(s,c),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Fe(){var t=F,r,i,a,o,s,c,l;if(e.substr(F,5)===w?(r=w,F+=5):(r=n,ye===0&&Ee(T)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){for(c=[],l=Ye();l!==n;)c.push(l),l=Ye();c===n?(F=t,t=n):(e.charCodeAt(F)===41?(l=f,F++):(l=n,ye===0&&Ee(p)),l===n?(F=t,t=n):(r=E(s),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Ie(){var t=F,r,i,a,o,s,c,l;if(e.substr(F,5)===D?(r=D,F+=5):(r=n,ye===0&&Ee(O)),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();if(i!==n){if(e.charCodeAt(F)===40?(a=u,F++):(a=n,ye===0&&Ee(d)),a!==n){for(o=[],s=Ye();s!==n;)o.push(s),s=Ye();if(o!==n){if(s=Le(),s!==n){for(c=[],l=Ye();l!==n;)c.push(l),l=Ye();c===n?(F=t,t=n):(e.charCodeAt(F)===41?(l=f,F++):(l=n,ye===0&&Ee(p)),l===n?(F=t,t=n):(r=k(s),t=r))}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n}else F=t,t=n;return t}function Le(){var e=F,t=F,r=Ke(),i;return r===n&&(r=null),r===n?(F=t,t=n):(i=Ue(),i===n?(F=t,t=n):(r=[r,i],t=r)),t!==n&&(t=A(t)),e=t,e===n&&(e=F,t=F,r=Ke(),r===n&&(r=null),r===n?(F=t,t=n):(i=He(),i===n?(F=t,t=n):(r=[r,i],t=r)),t!==n&&(t=j(t)),e=t),e}function Re(){var e=F,t=Be(),r;return t===n?(F=e,e=n):(r=Le(),r===n?(F=e,e=n):(t=M(r),e=t)),e}function ze(){var e=F,t=Be(),r,i,a;return t===n?(F=e,e=n):(r=Le(),r===n?(F=e,e=n):(i=Be(),i===n?(F=e,e=n):(a=Le(),a===n?(F=e,e=n):(t=ee(r,a),e=t)))),e}function Be(){var e=F,t=[],r=Ye(),i,a;if(r!==n)for(;r!==n;)t.push(r),r=Ye();else t=n;if(t!==n){if(r=Ve(),r===n&&(r=null),r!==n){for(i=[],a=Ye();a!==n;)i.push(a),a=Ye();i===n?(F=e,e=n):(t=[t,r,i],e=t)}else F=e,e=n}else F=e,e=n;if(e===n){if(e=F,t=Ve(),t!==n){for(r=[],i=Ye();i!==n;)r.push(i),i=Ye();r===n?(F=e,e=n):(t=[t,r],e=t)}else F=e,e=n}return e}function Ve(){var t;return e.charCodeAt(F)===44?(t=te,F++):(t=n,ye===0&&Ee(ne)),t}function He(){var e=F,t=qe();return t!==n&&(t=N(t)),e=t,e}function Ue(){var e=F,t=F,r=We(),i;return r===n?(F=t,t=n):(i=Ge(),i===n&&(i=null),i===n?(F=t,t=n):(r=[r,i],t=r)),t!==n&&(t=P(t)),e=t,e===n&&(e=F,t=F,r=qe(),r===n?(F=t,t=n):(i=Ge(),i===n?(F=t,t=n):(r=[r,i],t=r)),t!==n&&(t=re(t)),e=t),e}function We(){var t,r,i,a;return ye++,t=F,r=qe(),r===n&&(r=null),r===n?(F=t,t=n):(e.charCodeAt(F)===46?(i=ae,F++):(i=n,ye===0&&Ee(oe)),i===n?(F=t,t=n):(a=qe(),a===n?(F=t,t=n):(r=se(r,a),t=r))),t===n&&(t=F,r=qe(),r===n?(F=t,t=n):(e.charCodeAt(F)===46?(i=ae,F++):(i=n,ye===0&&Ee(oe)),i===n?(F=t,t=n):(r=re(r),t=r))),ye--,t===n&&(r=n,ye===0&&Ee(ie)),t}function Ge(){var t=F,r=F,i,a,o;return ce.test(e.charAt(F))?(i=e.charAt(F),F++):(i=n,ye===0&&Ee(le)),i===n?(F=r,r=n):(a=Ke(),a===n&&(a=null),a===n?(F=r,r=n):(o=qe(),o===n?(F=r,r=n):(i=[i,a,o],r=i))),r!==n&&(r=ue(r)),t=r,t}function Ke(){var t;return de.test(e.charAt(F))?(t=e.charAt(F),F++):(t=n,ye===0&&Ee(fe)),t}function qe(){var e=[],t=Je();if(t!==n)for(;t!==n;)e.push(t),t=Je();else e=n;return e}function Je(){var t;return pe.test(e.charAt(F))?(t=e.charAt(F),F++):(t=n,ye===0&&Ee(me)),t}function Ye(){var t;return he.test(e.charAt(F))?(t=e.charAt(F),F++):(t=n,ye===0&&Ee(ge)),t}var Xe=Math.PI/180;function Ze(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=t[0],l=t[1],u=t[2],d=t[3],f=t[4],p=t[5];return[n*c+r*d,n*l+r*f,n*u+r*p+i,a*c+o*d,a*l+o*f,a*u+o*p+s]}if(be=a(),be!==n&&F===e.length)return be;throw be!==n&&F<e.length&&Ee(Se()),De(ve,I<e.length?e.charAt(I):null,I<e.length?Te(I,I+1):Te(I,I))}t.exports={SyntaxError:r,parse:i}})),Oj=s(((e,t)=>{function n(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function r(e,t,n,i){var a=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(a,r.prototype),a.expected=t,a.found=n,a.location=i,a.name=`SyntaxError`,a}n(r,Error);function i(e,t,n){return n||=` `,e.length>t?e:(t-=e.length,n+=n.repeat(t),e+n.slice(0,t))}r.prototype.format=function(e){var t=`Error: `+this.message;if(this.location){for(var n=null,r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source&&typeof this.location.source.offset==`function`?this.location.source.offset(a):a,s=this.location.source+`:`+o.line+`:`+o.column;if(n){var c=this.location.end,l=i(``,o.line.toString().length,` `),u=n[a.line-1],d=(a.line===c.line?c.column:u.length+1)-a.column||1;t+=`
54
- --> `+s+`
55
- `+l+` |
56
- `+o.line+` | `+u+`
57
- `+l+` | `+i(``,a.column-1,` `)+i(``,d,`^`)}else t+=`
58
- at `+s}return t},r.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=e.parts.map(function(e){return Array.isArray(e)?a(e[0])+`-`+a(e[1]):a(e)});return`[`+(e.inverted?`^`:``)+t.join(``)+`]`},any:function(){return`any character`},end:function(){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=e.map(o),n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function a(e,t){t=t===void 0?{}:t;var n={},i=t.grammarSource,a={start:Me},o=Me,s=`matrix(`,c=`)`,l=`translate(`,u=`scale(`,d=`rotate(`,f=`skewX(`,p=`skewY(`,m=`.`,h=`e`,g=/^[ \t\n\r,]/,_=/^[ \t\n\r]/,v=/^[+\-]/,y=/^[0-9]/,b=De(`transform functions`),x=De(`transformFunctions`),S=De(`transform function`),C=De(`matrix`),w=we(`matrix(`,!1),T=we(`)`,!1),E=De(`translate`),D=we(`translate(`,!1),O=De(`scale`),k=we(`scale(`,!1),A=De(`rotate`),j=we(`rotate(`,!1),M=De(`x, y`),ee=De(`skewX`),te=we(`skewX(`,!1),ne=De(`skewY`),N=we(`skewY(`,!1),P=De(`space or comma`),re=Te([` `,` `,`
59
- `,`\r`,`,`],!1,!1),ie=De(`whitespace`),ae=Te([` `,` `,`
60
- `,`\r`],!1,!1),oe=Te([`+`,`-`],!1,!1),se=Te([[`0`,`9`]],!1,!1),ce=we(`.`,!1),le=we(`e`,!1),ue=function(e,t){let n=Array.isArray(e)?e:[e];return t.forEach(e=>{Array.isArray(e[1])?n.push(...e[1]):n.push(e[1])}),n},de=function(e,t,n,r,i,a,o,s,c){return{matrix:[e,t,n,r,i,a,o,s,c]}},fe=function(e,t){return t==null?{translate:e}:{translate:[e,t]}},pe=function(e,t){return t==null?{scale:e}:[{scaleX:e},{scaleY:t}]},me=function(e,t){return t===null?[{rotate:`${e}deg`}]:{rotate:`${e}deg`}},he=function(e,t){return[e,t]},ge=function(e){return[{skewX:`${e}deg`}]},F=function(e){return[{skewY:`${e}deg`}]},_e=function(){return parseFloat(Ce())},I=t.peg$currPos|0,ve=I,ye=[{line:1,column:1}],be=I,xe=t.peg$maxFailExpected||[],L=t.peg$silentFails|0,Se;if(t.startRule){if(!(t.startRule in a))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);o=a[t.startRule]}function Ce(){return e.substring(ve,I)}function we(e,t){return{type:`literal`,text:e,ignoreCase:t}}function Te(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function Ee(){return{type:`end`}}function De(e){return{type:`other`,description:e}}function Oe(t){var n=ye[t],r;if(n)return n;if(t>=ye.length)r=ye.length-1;else for(r=t;!ye[--r];);for(n=ye[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return ye[t]=n,n}function ke(e,t,n){var r=Oe(e),a=Oe(t),o={source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:a.line,column:a.column}};return n&&i&&typeof i.offset==`function`&&(o.start=i.offset(o.start),o.end=i.offset(o.end)),o}function Ae(e){I<be||(I>be&&(be=I,xe=[]),xe.push(e))}function je(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function Me(){var e;return L++,e=Ne(),L--,e===n&&L===0&&Ae(b),e}function Ne(){var e,t,r,i,a,o;if(L++,e=I,t=Pe(),t!==n){for(r=[],i=I,a=Ue(),o=Pe(),o===n?(I=i,i=n):(a=[a,o],i=a);i!==n;)r.push(i),i=I,a=Ue(),o=Pe(),o===n?(I=i,i=n):(a=[a,o],i=a);ve=e,e=ue(t,r)}else I=e,e=n;return L--,e===n&&(t=n,L===0&&Ae(x)),e}function Pe(){var e;return L++,e=Fe(),e===n&&(e=Ie(),e===n&&(e=Le(),e===n&&(e=Re(),e===n&&(e=Be(),e===n&&(e=Ve()))))),L--,e===n&&L===0&&Ae(S),e}function Fe(){var t,r,i,a,o,l,u,d,f,p,m,h;return L++,t=I,Ue(),e.substr(I,7)===s?(r=s,I+=7):(r=n,L===0&&Ae(w)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(He(),a=We(),a===n?(I=t,t=n):(He(),o=We(),o===n?(I=t,t=n):(He(),l=We(),l===n?(I=t,t=n):(He(),u=We(),u===n?(I=t,t=n):(He(),d=We(),d===n?(I=t,t=n):(He(),f=We(),f===n?(I=t,t=n):(He(),p=We(),p===n?(I=t,t=n):(He(),m=We(),m===n?(I=t,t=n):(Ue(),e.charCodeAt(I)===41?(h=c,I++):(h=n,L===0&&Ae(T)),h===n?(I=t,t=n):(Ue(),ve=t,t=de(i,a,o,l,u,d,f,p,m)))))))))))),L--,t===n&&L===0&&Ae(C),t}function Ie(){var t,r,i,a,o;return L++,t=I,Ue(),e.substr(I,10)===l?(r=l,I+=10):(r=n,L===0&&Ae(D)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(He(),a=We(),a===n&&(a=null),Ue(),e.charCodeAt(I)===41?(o=c,I++):(o=n,L===0&&Ae(T)),o===n?(I=t,t=n):(Ue(),ve=t,t=fe(i,a)))),L--,t===n&&L===0&&Ae(E),t}function Le(){var t,r,i,a,o;return L++,t=I,Ue(),e.substr(I,6)===u?(r=u,I+=6):(r=n,L===0&&Ae(k)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(He(),a=We(),a===n&&(a=null),Ue(),e.charCodeAt(I)===41?(o=c,I++):(o=n,L===0&&Ae(T)),o===n?(I=t,t=n):(Ue(),ve=t,t=pe(i,a)))),L--,t===n&&L===0&&Ae(O),t}function Re(){var t,r,i,a,o;return L++,t=I,Ue(),e.substr(I,7)===d?(r=d,I+=7):(r=n,L===0&&Ae(j)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(a=ze(),a===n&&(a=null),Ue(),e.charCodeAt(I)===41?(o=c,I++):(o=n,L===0&&Ae(T)),o===n?(I=t,t=n):(Ue(),ve=t,t=me(i,a)))),L--,t===n&&L===0&&Ae(A),t}function ze(){var e,t,r;return L++,e=I,He(),t=We(),t===n?(I=e,e=n):(He(),r=We(),r===n?(I=e,e=n):(ve=e,e=he(t,r))),L--,e===n&&L===0&&Ae(M),e}function Be(){var t,r,i,a;return L++,t=I,Ue(),e.substr(I,6)===f?(r=f,I+=6):(r=n,L===0&&Ae(te)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(Ue(),e.charCodeAt(I)===41?(a=c,I++):(a=n,L===0&&Ae(T)),a===n?(I=t,t=n):(Ue(),ve=t,t=ge(i)))),L--,t===n&&L===0&&Ae(ee),t}function Ve(){var t,r,i,a;return L++,t=I,Ue(),e.substr(I,6)===p?(r=p,I+=6):(r=n,L===0&&Ae(N)),r===n?(I=t,t=n):(Ue(),i=We(),i===n?(I=t,t=n):(Ue(),e.charCodeAt(I)===41?(a=c,I++):(a=n,L===0&&Ae(T)),a===n?(I=t,t=n):(Ue(),ve=t,t=F(i)))),L--,t===n&&L===0&&Ae(ne),t}function He(){var t,r;for(L++,t=[],r=e.charAt(I),g.test(r)?I++:(r=n,L===0&&Ae(re));r!==n;)t.push(r),r=e.charAt(I),g.test(r)?I++:(r=n,L===0&&Ae(re));return L--,r=n,L===0&&Ae(P),t}function Ue(){var t,r;for(L++,t=[],r=e.charAt(I),_.test(r)?I++:(r=n,L===0&&Ae(ae));r!==n;)t.push(r),r=e.charAt(I),_.test(r)?I++:(r=n,L===0&&Ae(ae));return L--,r=n,L===0&&Ae(ie),t}function We(){var t=I,r=e.charAt(I),i,a,o,s,c,l;for(v.test(r)?I++:(r=n,L===0&&Ae(oe)),r===n&&(r=null),i=I,a=[],o=e.charAt(I),y.test(o)?I++:(o=n,L===0&&Ae(se));o!==n;)a.push(o),o=e.charAt(I),y.test(o)?I++:(o=n,L===0&&Ae(se));if(e.charCodeAt(I)===46?(o=m,I++):(o=n,L===0&&Ae(ce)),o!==n){if(s=[],c=e.charAt(I),y.test(c)?I++:(c=n,L===0&&Ae(se)),c!==n)for(;c!==n;)s.push(c),c=e.charAt(I),y.test(c)?I++:(c=n,L===0&&Ae(se));else s=n;s===n?(I=i,i=n):(a=[a,o,s],i=a)}else I=i,i=n;if(i===n){if(i=[],a=e.charAt(I),y.test(a)?I++:(a=n,L===0&&Ae(se)),a!==n)for(;a!==n;)i.push(a),a=e.charAt(I),y.test(a)?I++:(a=n,L===0&&Ae(se));else i=n}if(i!==n){if(a=I,e.charCodeAt(I)===101?(o=h,I++):(o=n,L===0&&Ae(le)),o!==n){if(s=e.charAt(I),v.test(s)?I++:(s=n,L===0&&Ae(oe)),s===n&&(s=null),c=[],l=e.charAt(I),y.test(l)?I++:(l=n,L===0&&Ae(se)),l!==n)for(;l!==n;)c.push(l),l=e.charAt(I),y.test(l)?I++:(l=n,L===0&&Ae(se));else c=n;c===n?(I=a,a=n):(o=[o,s,c],a=o)}else I=a,a=n;a===n&&(a=null),ve=t,t=_e()}else I=t,t=n;return t}if(Se=o(),t.peg$library)return{peg$result:Se,peg$currPos:I,peg$FAILED:n,peg$maxFailExpected:xe,peg$maxFailPos:be};if(Se!==n&&I===e.length)return Se;throw Se!==n&&I<e.length&&Ae(Ee()),je(xe,be<e.length?e.charAt(be):null,be<e.length?ke(be,be+1):ke(be,be))}t.exports={StartRules:[`start`],SyntaxError:r,parse:a}}));Dj(),Oj();var kj=e=>{if(e.endsWith(`rad`))return 180/Math.PI*parseFloat(e);if(e.endsWith(`deg`))return parseFloat(e)};function Aj(e){return e?e.map(e=>{let[t,n]=Object.entries(e)[0];switch(t){case`translateX`:return`translate(${n}, 0)`;case`translateY`:return`translate(0, ${n})`;case`rotate`:return`rotate(${kj(n)})`;case`scale`:return`scale(${n})`;case`scaleX`:return`scale(${n}, 1)`;case`scaleY`:return`scale(1, ${n})`;case`skewX`:return`skewX(${kj(n)})`;case`skewY`:return`skewY(${kj(n)})`;case`matrix`:return`matrix(${n.join(`, `)})`;default:return``}}).join(` `):``}function jj(e,t){let n=[];if(t&&n.push(...Mj(t)),Array.isArray(e)){if(typeof e[0]==`number`)n.push(`matrix(${e.join(` `)})`);else{let t=Aj(e).split(` `);n.push(...t)}}else typeof e==`string`&&n.push(e);return n.length?n.join(` `):void 0}function Mj(e){let t=[];return e.translate!=null&&t.push(`translate(${e.translate})`),(e.translateX!=null||e.translateY!=null)&&t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),e.scale!=null&&t.push(`scale(${e.scale})`),(e.scaleX!=null||e.scaleY!=null)&&t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),e.rotation!=null&&t.push(`rotate(${e.rotation})`),e.skewX!=null&&t.push(`skewX(${e.skewX})`),e.skewY!=null&&t.push(`skewY(${e.skewY})`),t}function Nj(e,t){return e?Sb?[e,t]:e[Symbol.iterator]?Object.assign({},...e,t):Object.assign({},e,t):t}var Pj=/^(data:image\/svg\+xml;utf8,)(.*)/;function Fj(e){let t={};if(typeof e==`number`){let n=zx(e);if(n==null)throw Error(`Image: asset with ID "${e}" could not be found. Please check the image source or packager.`);if(t={width:n.width,height:n.height,scale:n.scales[0]},n.scales.length>1){let e=Bx.get();t.scale=n.scales.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t)}let r=t.scale===1?``:`@${t.scale}x`;t.uri=n?`${n.httpServerLocation}/${n.name}${r}.${n.type}`:``}else typeof e==`string`?t.uri=e:e&&!Array.isArray(e)&&typeof e.uri==`string`&&(t.uri=e.uri);if(t.uri){var n;let e=(n=t)==null||(n=n.uri)==null?void 0:n.match(Pj);if(e){let[,n,r]=e;return t.uri=`${n}${encodeURIComponent(r)}`,t}}return t}var Ij=(e,t=e.props)=>{let{transform:n,origin:r,originX:i,originY:a,fontFamily:o,fontSize:s,fontWeight:c,fontStyle:l,style:u,forwardedRef:d,gradientTransform:f,patternTransform:p,onPress:m,...h}=t,g={...Ej(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...h};r==null?(i!=null||a!=null)&&(g[`transform-origin`]=`${i||0} ${a||0}`):g[`transform-origin`]=r.toString().replace(`,`,` `);let _=jj(n,t);_&&(g.transform=_);let v=jj(f);v&&(g.gradientTransform=v);let y=jj(p);y&&(g.patternTransform=y),g.ref=t=>{e.elementRef.current=t,typeof d==`function`?d(t):d&&(d.current=t)};let b={};return o!=null&&(b.fontFamily=o),s!=null&&(b.fontSize=s),c!=null&&(b.fontWeight=c),l!=null&&(b.fontStyle=l),g.style=Nj(u,b),m!==null&&(g.onClick=t.onPress),t.href!==null&&t.href!==void 0&&(g.href=Fj(t.href)?.uri),g};function Lj(e){return`rgba(${e>>16&255},${e>>8&255},${e&255},${((e>>24&255)/255).toFixed(2)})`}var Rj={top:20,left:20,right:20,bottom:30},{Mixin:zj}=mS,{touchableHandleStartShouldSetResponder:Bj,touchableHandleResponderTerminationRequest:Vj,touchableHandleResponderGrant:Hj,touchableHandleResponderMove:Uj,touchableHandleResponderRelease:Eae,touchableHandleResponderTerminate:Dae,touchableGetInitialState:Oae}=zj,Wj={...zj,touchableHandleStartShouldSetResponder(e){let{onStartShouldSetResponder:t}=this.props;return t?t(e):Bj.call(this,e)},touchableHandleResponderTerminationRequest(e){let{onResponderTerminationRequest:t}=this.props;return t?t(e):Vj.call(this,e)},touchableHandleResponderGrant(e){let{onResponderGrant:t}=this.props;return t?t(e):Hj.call(this,e)},touchableHandleResponderMove(e){let{onResponderMove:t}=this.props;return t?t(e):Uj.call(this,e)},touchableHandleResponderRelease(e){let{onResponderRelease:t}=this.props;return t?t(e):Eae.call(this,e)},touchableHandleResponderTerminate(e){let{onResponderTerminate:t}=this.props;return t?t(e):Dae.call(this,e)},touchableHandlePress(e){let{onPress:t}=this.props;t&&t(e)},touchableHandleActivePressIn(e){let{onPressIn:t}=this.props;t&&t(e)},touchableHandleActivePressOut(e){let{onPressOut:t}=this.props;t&&t(e)},touchableHandleLongPress(e){let{onLongPress:t}=this.props;t&&t(e)},touchableGetPressRectOffset(){let{pressRetentionOffset:e}=this.props;return e||Rj},touchableGetHitSlop(){let{hitSlop:e}=this.props;return e},touchableGetHighlightDelayMS(){let{delayPressIn:e}=this.props;return e||0},touchableGetLongPressDelayMS(){let{delayLongPress:e}=this.props;return e===0?0:e||500},touchableGetPressOutDelayMS(){let{delayPressOut:e}=this.props;return e||0}},Gj=Object.keys(Wj),kae=Gj.map(e=>Wj[e]),Aae=Gj.length,jae=e=>{for(let t=0;t<Aae;t++){let n=Gj[t],r=kae[t];e[n]=typeof r==`function`?r.bind(e):r}e.state=Oae()},Kj=class extends b.Component{prepareProps(e){return e}elementRef=b.createRef();lastMergedProps={};setNativeProps(e){let t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;let n=Ij(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(let e of Object.keys(n)){let t=n[e];switch(e){case`ref`:case`children`:break;case`style`:for(let e of[].concat(n.style??[]))Object.assign(r.style,e);break;case`fill`:if(t&&typeof t==`object`){let e=t;r.setAttribute(`fill`,Lj(e.payload))}break;case`stroke`:if(t&&typeof t==`object`){let e=t;r.setAttribute(`stroke`,Lj(e.payload))}break;default:r.setAttribute(Tj(e),t)}}}constructor(e){super(e),Ej(e)&&jae(this),this._remeasureMetricsOnActivation=Sj.bind(this)}render(){if(!this.tag)throw Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");return this.lastMergedProps={},Ob(this.tag,Ij(this,this.prepareProps(this.props)))}},qj=class extends Kj{tag=`circle`},Jj=class extends Kj{tag=`line`},W=class extends Kj{tag=`path`},Yj=class extends Kj{tag=`polyline`},Xj=class extends Kj{tag=`rect`},G=class extends Kj{tag=`svg`;toDataURL(e,t={}){let n=this.elementRef.current;if(n===null)return;let r=bj(n),i=Number(t.width)||r.width,a=Number(t.height)||r.height,o=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);o.setAttribute(`viewBox`,`0 0 ${r.width} ${r.height}`),o.setAttribute(`width`,String(i)),o.setAttribute(`height`,String(a)),o.appendChild(n.cloneNode(!0));let s=new window.Image;s.onload=()=>{let t=document.createElement(`canvas`);t.width=i,t.height=a,t.getContext(`2d`)?.drawImage(s,0,0),e(t.toDataURL().replace(`data:image/png;base64,`,``))},s.src=`data:image/svg+xml;utf8,${Cj(new window.XMLSerializer().serializeToString(o))}`}};console.error.bind(console);function Mae(e){for(let t in e)if(t[0]===`$`)return!0;return!1}function K(e,t={}){let n={defaultThemeColor:{}.DEFAULT_ICON_THEME_COLOR||`$color`,defaultStrokeWidth:2,fallbackColor:`#000`,resolveValues:{}.GUI_ICON_COLOR_RESOLVE||`auto`,...t},r=t=>{let r=aO.useStyledContext(),i=Mae(t),[a,o,s]=Np(t,{...n,forComponent:Rm,resolveValues:n.resolveValues,noMedia:!i}),c=n.defaultThemeColor,l=Vc(o.color||(c?s[c]:void 0)||(a.disableTheme?null:s.color)||n.fallbackColor),u=typeof a.size==`string`?cs(a.size,`size`):a.size||(r.size===`$true`?void 0:r.size),d=typeof a.strokeWidth==`string`?cs(a.strokeWidth,`size`):a.strokeWidth??`${n.defaultStrokeWidth}`,f={...a,color:l,size:u,strokeWidth:d,style:o};return(0,R.jsx)(e,{...f})},i=e=>(0,R.jsx)(r,{...e});return i.staticConfig={isHOC:!0,acceptsClassName:!0},i}var Nae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M20 19.5v.5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8.5L18 5.5`,stroke:t}),(0,R.jsx)(W,{d:`M8 18h1`,stroke:t}),(0,R.jsx)(W,{d:`M18.42 9.61a2.1 2.1 0 1 1 2.97 2.97L16.95 17 13 18l.99-3.95 4.43-4.44Z`,stroke:t})]})})),Pae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M3 3v18h18`,stroke:t}),(0,R.jsx)(W,{d:`M18 17V9`,stroke:t}),(0,R.jsx)(W,{d:`M13 17V5`,stroke:t}),(0,R.jsx)(W,{d:`M8 17v-3`,stroke:t})]})})),Fae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`19`,cy:`12`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`5`,cy:`12`,r:`1`,stroke:t})]})})),Zj=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,stroke:t})})})),Iae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M15 12H3`,stroke:t}),(0,R.jsx)(W,{d:`M17 18H3`,stroke:t}),(0,R.jsx)(W,{d:`M21 6H3`,stroke:t})]})})),Lae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M10 4v4`,stroke:t}),(0,R.jsx)(W,{d:`M2 8h20`,stroke:t}),(0,R.jsx)(W,{d:`M6 4v4`,stroke:t})]})})),Rae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,stroke:t}),(0,R.jsx)(W,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,stroke:t}),(0,R.jsx)(W,{d:`M10 12h4`,stroke:t})]})})),Qj=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m3 16 4 4 4-4`,stroke:t}),(0,R.jsx)(W,{d:`M7 20V4`,stroke:t}),(0,R.jsx)(W,{d:`m21 8-4-4-4 4`,stroke:t}),(0,R.jsx)(W,{d:`M17 4v16`,stroke:t})]})})),$j=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M12 5v14`,stroke:t}),(0,R.jsx)(W,{d:`m19 12-7 7-7-7`,stroke:t})]})})),zae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m12 19-7-7 7-7`,stroke:t}),(0,R.jsx)(W,{d:`M19 12H5`,stroke:t})]})})),eM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M5 12h14`,stroke:t}),(0,R.jsx)(W,{d:`m12 5 7 7-7 7`,stroke:t})]})})),tM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m5 12 7-7 7 7`,stroke:t}),(0,R.jsx)(W,{d:`M12 19V5`,stroke:t})]})})),nM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M10.268 21a2 2 0 0 0 3.464 0`,stroke:t}),(0,R.jsx)(W,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,stroke:t})]})})),rM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M12 8V4H8`,stroke:t}),(0,R.jsx)(Xj,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M2 14h2`,stroke:t}),(0,R.jsx)(W,{d:`M20 14h2`,stroke:t}),(0,R.jsx)(W,{d:`M15 13v2`,stroke:t}),(0,R.jsx)(W,{d:`M9 13v2`,stroke:t})]})})),iM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,stroke:t}),(0,R.jsx)(Xj,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,stroke:t})]})})),aM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z`,stroke:t}),(0,R.jsx)(W,{d:`M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2`,stroke:t}),(0,R.jsx)(W,{d:`M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2`,stroke:t}),(0,R.jsx)(W,{d:`M10 6h4`,stroke:t}),(0,R.jsx)(W,{d:`M10 10h4`,stroke:t}),(0,R.jsx)(W,{d:`M10 14h4`,stroke:t}),(0,R.jsx)(W,{d:`M10 18h4`,stroke:t})]})})),oM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M8 2v4`,stroke:t}),(0,R.jsx)(W,{d:`M16 2v4`,stroke:t}),(0,R.jsx)(Xj,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M3 10h18`,stroke:t}),(0,R.jsx)(W,{d:`M8 14h.01`,stroke:t}),(0,R.jsx)(W,{d:`M12 14h.01`,stroke:t}),(0,R.jsx)(W,{d:`M16 14h.01`,stroke:t}),(0,R.jsx)(W,{d:`M8 18h.01`,stroke:t}),(0,R.jsx)(W,{d:`M12 18h.01`,stroke:t}),(0,R.jsx)(W,{d:`M16 18h.01`,stroke:t})]})})),sM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M8 2v4`,stroke:t}),(0,R.jsx)(W,{d:`M16 2v4`,stroke:t}),(0,R.jsx)(Xj,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M3 10h18`,stroke:t})]})})),cM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M20 6 9 17l-5-5`,stroke:t})})})),lM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`m6 9 6 6 6-6`,stroke:t})})})),uM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`m15 18-6-6 6-6`,stroke:t})})})),dM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`m9 18 6-6-6-6`,stroke:t})})})),Bae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`m18 15-6-6-6 6`,stroke:t})})})),Vae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m7 15 5 5 5-5`,stroke:t}),(0,R.jsx)(W,{d:`m7 9 5-5 5 5`,stroke:t})]})})),Hae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`10`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,stroke:t})]})})),Uae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`10`,stroke:t}),(0,R.jsx)(W,{d:`m9 12 2 2 4-4`,stroke:t})]})})),Wae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m2 2 20 20`,stroke:t}),(0,R.jsx)(W,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,stroke:t}),(0,R.jsx)(W,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,stroke:t})]})})),Gae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`10`,stroke:t}),(0,R.jsx)(Yj,{points:`12 6 12 12 16 14`,stroke:t})]})})),Kae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Yj,{points:`16 18 22 12 16 6`,stroke:t}),(0,R.jsx)(Yj,{points:`8 6 2 12 8 18`,stroke:t})]})})),qae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M9 3v18`,stroke:t}),(0,R.jsx)(W,{d:`M15 3v18`,stroke:t})]})})),Jae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m12 15 2 2 4-4`,stroke:t}),(0,R.jsx)(Xj,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,stroke:t}),(0,R.jsx)(W,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,stroke:t})]})})),Yae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,stroke:t}),(0,R.jsx)(W,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,stroke:t})]})})),fM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,stroke:t}),(0,R.jsx)(Jj,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,stroke:t})]})})),pM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Jj,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,stroke:t}),(0,R.jsx)(W,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,stroke:t})]})})),Xae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,stroke:t}),(0,R.jsx)(Yj,{points:`7 10 12 15 17 10`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,stroke:t})]})})),Zae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`5`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`19`,r:`1`,stroke:t})]})})),mM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M15 3h6v6`,stroke:t}),(0,R.jsx)(W,{d:`M10 14 21 3`,stroke:t}),(0,R.jsx)(W,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,stroke:t})]})})),Qae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(W,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,stroke:t}),(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(W,{d:`m2 2 20 20`,stroke:t})]})})),$ae=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`3`,stroke:t})]})})),hM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,stroke:t}),(0,R.jsx)(W,{d:`M14 2v4a2 2 0 0 0 2 2h4`,stroke:t}),(0,R.jsx)(W,{d:`M10 9H8`,stroke:t}),(0,R.jsx)(W,{d:`M16 13H8`,stroke:t}),(0,R.jsx)(W,{d:`M16 17H8`,stroke:t})]})})),eoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,stroke:t}),(0,R.jsx)(W,{d:`M8 10v4`,stroke:t}),(0,R.jsx)(W,{d:`M12 10v2`,stroke:t}),(0,R.jsx)(W,{d:`M16 10v6`,stroke:t})]})})),toe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`8`,height:`5`,x:`14`,y:`17`,rx:`1`,stroke:t}),(0,R.jsx)(W,{d:`M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5`,stroke:t}),(0,R.jsx)(W,{d:`M20 17v-2a2 2 0 1 0-4 0v2`,stroke:t})]})})),noe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,stroke:t})})})),gM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`10`,stroke:t}),(0,R.jsx)(W,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,stroke:t}),(0,R.jsx)(W,{d:`M2 12h20`,stroke:t})]})})),roe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`9`,cy:`12`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`9`,cy:`5`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`9`,cy:`19`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`15`,cy:`12`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`15`,cy:`5`,r:`1`,stroke:t}),(0,R.jsx)(qj,{cx:`15`,cy:`19`,r:`1`,stroke:t})]})})),_M=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Jj,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,stroke:t}),(0,R.jsx)(Jj,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,stroke:t}),(0,R.jsx)(Jj,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,stroke:t}),(0,R.jsx)(Jj,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,stroke:t})]})})),ioe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`10`,stroke:t}),(0,R.jsx)(W,{d:`M12 16v-4`,stroke:t}),(0,R.jsx)(W,{d:`M12 8h.01`,stroke:t})]})})),aoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M6 5v11`,stroke:t}),(0,R.jsx)(W,{d:`M12 5v6`,stroke:t}),(0,R.jsx)(W,{d:`M18 5v14`,stroke:t})]})})),vM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(W,{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`,stroke:t})]})})),yM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,stroke:t}),(0,R.jsx)(Xj,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,stroke:t}),(0,R.jsx)(Xj,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,stroke:t}),(0,R.jsx)(Xj,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,stroke:t})]})})),bM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M9 17H7A5 5 0 0 1 7 7h2`,stroke:t}),(0,R.jsx)(W,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,stroke:t}),(0,R.jsx)(Jj,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,stroke:t})]})})),xM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M3 6h18`,stroke:t}),(0,R.jsx)(W,{d:`M7 12h10`,stroke:t}),(0,R.jsx)(W,{d:`M10 18h4`,stroke:t})]})})),SM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M3 12h.01`,stroke:t}),(0,R.jsx)(W,{d:`M3 18h.01`,stroke:t}),(0,R.jsx)(W,{d:`M3 6h.01`,stroke:t}),(0,R.jsx)(W,{d:`M8 12h13`,stroke:t}),(0,R.jsx)(W,{d:`M8 18h13`,stroke:t}),(0,R.jsx)(W,{d:`M8 6h13`,stroke:t})]})})),CM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,stroke:t}),(0,R.jsx)(W,{d:`M7 11V7a5 5 0 0 1 10 0v4`,stroke:t})]})})),ooe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,stroke:t}),(0,R.jsx)(Yj,{points:`16 17 21 12 16 7`,stroke:t}),(0,R.jsx)(Jj,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,stroke:t})]})})),wM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,stroke:t}),(0,R.jsx)(Xj,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,stroke:t})]})})),TM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`10`,r:`3`,stroke:t})]})})),soe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Yj,{points:`15 3 21 3 21 9`,stroke:t}),(0,R.jsx)(Yj,{points:`9 21 3 21 3 15`,stroke:t}),(0,R.jsx)(Jj,{x1:`21`,x2:`14`,y1:`3`,y2:`10`,stroke:t}),(0,R.jsx)(Jj,{x1:`3`,x2:`10`,y1:`21`,y2:`14`,stroke:t})]})})),coe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m3 11 18-5v12L3 14v-3z`,stroke:t}),(0,R.jsx)(W,{d:`M11.6 16.8a3 3 0 1 1-5.8-1.6`,stroke:t})]})})),loe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`,stroke:t}),(0,R.jsx)(W,{d:`M8 12h.01`,stroke:t}),(0,R.jsx)(W,{d:`M12 12h.01`,stroke:t}),(0,R.jsx)(W,{d:`M16 12h.01`,stroke:t})]})})),uoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`,stroke:t})})})),EM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,stroke:t})})})),DM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z`,stroke:t}),(0,R.jsx)(W,{d:`M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1`,stroke:t})]})})),OM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M5 12h14`,stroke:t})})})),doe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,stroke:t})})})),kM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M13.234 20.252 21 12.3`,stroke:t}),(0,R.jsx)(W,{d:`m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486`,stroke:t})]})})),AM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M5 12h14`,stroke:t}),(0,R.jsx)(W,{d:`M12 5v14`,stroke:t})]})})),foe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,stroke:t}),(0,R.jsx)(W,{d:`M21 3v5h-5`,stroke:t}),(0,R.jsx)(W,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,stroke:t}),(0,R.jsx)(W,{d:`M8 16H3v5`,stroke:t})]})})),jM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m21 21-4.34-4.34`,stroke:t}),(0,R.jsx)(qj,{cx:`11`,cy:`11`,r:`8`,stroke:t})]})})),poe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`3`,stroke:t})]})})),MM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`18`,cy:`5`,r:`3`,stroke:t}),(0,R.jsx)(qj,{cx:`6`,cy:`12`,r:`3`,stroke:t}),(0,R.jsx)(qj,{cx:`18`,cy:`19`,r:`3`,stroke:t}),(0,R.jsx)(Jj,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,stroke:t}),(0,R.jsx)(Jj,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,stroke:t})]})})),moe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z`,stroke:t}),(0,R.jsx)(W,{d:`M3 6h18`,stroke:t}),(0,R.jsx)(W,{d:`M16 10a4 4 0 0 1-8 0`,stroke:t})]})})),NM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Jj,{x1:`21`,x2:`14`,y1:`4`,y2:`4`,stroke:t}),(0,R.jsx)(Jj,{x1:`10`,x2:`3`,y1:`4`,y2:`4`,stroke:t}),(0,R.jsx)(Jj,{x1:`21`,x2:`12`,y1:`12`,y2:`12`,stroke:t}),(0,R.jsx)(Jj,{x1:`8`,x2:`3`,y1:`12`,y2:`12`,stroke:t}),(0,R.jsx)(Jj,{x1:`21`,x2:`16`,y1:`20`,y2:`20`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`3`,y1:`20`,y2:`20`,stroke:t}),(0,R.jsx)(Jj,{x1:`14`,x2:`14`,y1:`2`,y2:`6`,stroke:t}),(0,R.jsx)(Jj,{x1:`8`,x2:`8`,y1:`10`,y2:`14`,stroke:t}),(0,R.jsx)(Jj,{x1:`16`,x2:`16`,y1:`18`,y2:`22`,stroke:t})]})})),hoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M22 11v1a10 10 0 1 1-9-10`,stroke:t}),(0,R.jsx)(W,{d:`M8 14s1.5 2 4 2 4-2 4-2`,stroke:t}),(0,R.jsx)(Jj,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,stroke:t}),(0,R.jsx)(Jj,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,stroke:t}),(0,R.jsx)(W,{d:`M16 5h6`,stroke:t}),(0,R.jsx)(W,{d:`M19 2v6`,stroke:t})]})})),goe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,stroke:t}),(0,R.jsx)(W,{d:`M20 3v4`,stroke:t}),(0,R.jsx)(W,{d:`M22 5h-4`,stroke:t}),(0,R.jsx)(W,{d:`M4 17v2`,stroke:t}),(0,R.jsx)(W,{d:`M5 18H3`,stroke:t})]})})),PM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`m9 12 2 2 4-4`,stroke:t})]})})),FM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{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`,stroke:t})})})),_oe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`12`,r:`4`,stroke:t}),(0,R.jsx)(W,{d:`M12 2v2`,stroke:t}),(0,R.jsx)(W,{d:`M12 20v2`,stroke:t}),(0,R.jsx)(W,{d:`m4.93 4.93 1.41 1.41`,stroke:t}),(0,R.jsx)(W,{d:`m17.66 17.66 1.41 1.41`,stroke:t}),(0,R.jsx)(W,{d:`M2 12h2`,stroke:t}),(0,R.jsx)(W,{d:`M20 12h2`,stroke:t}),(0,R.jsx)(W,{d:`m6.34 17.66-1.41 1.41`,stroke:t}),(0,R.jsx)(W,{d:`m19.07 4.93-1.41 1.41`,stroke:t})]})})),IM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,stroke:t})})})),voe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{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`,stroke:t}),(0,R.jsx)(qj,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,stroke:t})]})})),yoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Yj,{points:`4 17 10 11 4 5`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,stroke:t})]})})),boe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M3 6h18`,stroke:t}),(0,R.jsx)(W,{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`,stroke:t}),(0,R.jsx)(W,{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`,stroke:t}),(0,R.jsx)(Jj,{x1:`10`,x2:`10`,y1:`11`,y2:`17`,stroke:t}),(0,R.jsx)(Jj,{x1:`14`,x2:`14`,y1:`11`,y2:`17`,stroke:t})]})})),LM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Yj,{points:`22 7 13.5 15.5 8.5 10.5 2 17`,stroke:t}),(0,R.jsx)(Yj,{points:`16 7 22 7 22 13`,stroke:t})]})})),RM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,stroke:t}),(0,R.jsx)(W,{d:`M12 9v4`,stroke:t}),(0,R.jsx)(W,{d:`M12 17h.01`,stroke:t})]})})),xoe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Yj,{points:`4 7 4 4 20 4 20 7`,stroke:t}),(0,R.jsx)(Jj,{x1:`9`,x2:`15`,y1:`20`,y2:`20`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`12`,y1:`4`,y2:`20`,stroke:t})]})})),zM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,stroke:t}),(0,R.jsx)(Yj,{points:`17 8 12 3 7 8`,stroke:t}),(0,R.jsx)(Jj,{x1:`12`,x2:`12`,y1:`3`,y2:`15`,stroke:t})]})})),Soe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,stroke:t}),(0,R.jsx)(qj,{cx:`9`,cy:`7`,r:`4`,stroke:t}),(0,R.jsx)(Jj,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,stroke:t}),(0,R.jsx)(Jj,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,stroke:t})]})})),Coe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(qj,{cx:`12`,cy:`8`,r:`5`,stroke:t}),(0,R.jsx)(W,{d:`M20 21a8 8 0 0 0-16 0`,stroke:t})]})})),BM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,stroke:t}),(0,R.jsx)(qj,{cx:`12`,cy:`7`,r:`4`,stroke:t})]})})),VM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,stroke:t}),(0,R.jsx)(W,{d:`M16 3.128a4 4 0 0 1 0 7.744`,stroke:t}),(0,R.jsx)(W,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,stroke:t}),(0,R.jsx)(qj,{cx:`9`,cy:`7`,r:`4`,stroke:t})]})})),woe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,stroke:t}),(0,R.jsx)(W,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,stroke:t}),(0,R.jsx)(W,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,stroke:t})]})})),Toe=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(Xj,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,stroke:t}),(0,R.jsx)(W,{d:`M7 11v4a2 2 0 0 0 2 2h4`,stroke:t}),(0,R.jsx)(Xj,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,stroke:t})]})})),HM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsxs)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:[(0,R.jsx)(W,{d:`M18 6 6 18`,stroke:t}),(0,R.jsx)(W,{d:`m6 6 12 12`,stroke:t})]})})),UM=K((0,b.memo)(function(e){let{color:t=`black`,size:n=24,...r}=e;return(0,R.jsx)(G,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:t,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,...r,children:(0,R.jsx)(W,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,stroke:t})})})),WM=(e,t=H,n={})=>b.Children.map(e,e=>typeof e==`string`||typeof e==`number`?(0,b.createElement)(t,n,e):e),q=e=>({"data-slot":e}),GM=`am.ar-MA.as.az.bho.ceb.ckb.fa-AF.ha.ht.hy.jv.ka.kk.km.ku.ky.lo.mn.my.ne.om.or.pa.pa-PK.ps.sd.si.so.su.tg.tk.ug.uz`.split(`.`),KM=[{code:`am`,name:`አማርኛ`,englishName:`Amharic`,dir:`ltr`},{code:`ar`,name:`العربية`,englishName:`Arabic`,dir:`rtl`},{code:`ar-EG`,name:`العربية (مصر)`,englishName:`Arabic (Egypt)`,dir:`rtl`},{code:`ar-LB`,name:`العربية (لبنان)`,englishName:`Arabic (Lebanon)`,dir:`rtl`},{code:`ar-MA`,name:`العربية (المغرب)`,englishName:`Arabic (Morocco)`,dir:`rtl`},{code:`ar-SA`,name:`العربية (السعودية)`,englishName:`Arabic (Saudi Arabia)`,dir:`rtl`},{code:`hy`,name:`հայերեն`,englishName:`Armenian`,dir:`ltr`},{code:`as`,name:`অসমীয়া`,englishName:`Assamese`,dir:`ltr`},{code:`az`,name:`azərbaycan`,englishName:`Azerbaijani`,dir:`ltr`},{code:`bn`,name:`বাংলা`,englishName:`Bangla`,dir:`ltr`},{code:`bho`,name:`भोजपुरी`,englishName:`Bhojpuri`,dir:`ltr`},{code:`my`,name:`မြန်မာ`,englishName:`Burmese`,dir:`ltr`},{code:`ceb`,name:`Cebuano`,englishName:`Cebuano`,dir:`ltr`},{code:`ckb`,name:`کوردیی ناوەندی`,englishName:`Central Kurdish`,dir:`rtl`},{code:`zh-HK`,name:`中文(香港)`,englishName:`Chinese (Hong Kong)`,dir:`ltr`},{code:`zh-Hans`,name:`中文(简体)`,englishName:`Chinese (Simplified)`,dir:`ltr`},{code:`zh-Hant`,name:`中文(繁體)`,englishName:`Chinese (Traditional)`,dir:`ltr`},{code:`da`,name:`dansk`,englishName:`Danish`,dir:`ltr`},{code:`fa-AF`,name:`دری`,englishName:`Dari`,dir:`rtl`},{code:`nl`,name:`Nederlands`,englishName:`Dutch`,dir:`ltr`},{code:`en-US`,name:`English (United States)`,englishName:`English (United States)`,dir:`ltr`},{code:`fil`,name:`Filipino`,englishName:`Filipino`,dir:`ltr`},{code:`fi`,name:`suomi`,englishName:`Finnish`,dir:`ltr`},{code:`fr-CA`,name:`français (Canada)`,englishName:`French (Canada)`,dir:`ltr`},{code:`fr-FR`,name:`français (France)`,englishName:`French (France)`,dir:`ltr`},{code:`ka`,name:`ქართული`,englishName:`Georgian`,dir:`ltr`},{code:`de-DE`,name:`Deutsch (Deutschland)`,englishName:`German (Germany)`,dir:`ltr`},{code:`gu`,name:`ગુજરાતી`,englishName:`Gujarati`,dir:`ltr`},{code:`ht`,name:`Kreyòl ayisyen`,englishName:`Haitian Creole`,dir:`ltr`},{code:`ha`,name:`Hausa`,englishName:`Hausa`,dir:`ltr`},{code:`he`,name:`עברית`,englishName:`Hebrew`,dir:`rtl`},{code:`hi-IN`,name:`हिन्दी (भारत)`,englishName:`Hindi (India)`,dir:`ltr`},{code:`id-ID`,name:`Indonesia (Indonesia)`,englishName:`Indonesian (Indonesia)`,dir:`ltr`},{code:`it-IT`,name:`italiano (Italia)`,englishName:`Italian (Italy)`,dir:`ltr`},{code:`ja-JP`,name:`日本語 (日本)`,englishName:`Japanese (Japan)`,dir:`ltr`},{code:`jv`,name:`Jawa`,englishName:`Javanese`,dir:`ltr`},{code:`kn`,name:`ಕನ್ನಡ`,englishName:`Kannada`,dir:`ltr`},{code:`kk`,name:`қазақ тілі`,englishName:`Kazakh`,dir:`ltr`},{code:`km`,name:`ខ្មែរ`,englishName:`Khmer`,dir:`ltr`},{code:`ko-KR`,name:`한국어(대한민국)`,englishName:`Korean (South Korea)`,dir:`ltr`},{code:`ku`,name:`kurdî (kurmancî)`,englishName:`Kurdish (Kurmanji)`,dir:`ltr`},{code:`ky`,name:`кыргызча`,englishName:`Kyrgyz`,dir:`ltr`},{code:`lo`,name:`ລາວ`,englishName:`Lao`,dir:`ltr`},{code:`ms`,name:`Melayu`,englishName:`Malay`,dir:`ltr`},{code:`ml`,name:`മലയാളം`,englishName:`Malayalam`,dir:`ltr`},{code:`mr`,name:`मराठी`,englishName:`Marathi`,dir:`ltr`},{code:`mn`,name:`монгол`,englishName:`Mongolian`,dir:`ltr`},{code:`ne`,name:`नेपाली`,englishName:`Nepali`,dir:`ltr`},{code:`nb`,name:`norsk bokmål`,englishName:`Norwegian Bokmål`,dir:`ltr`},{code:`or`,name:`ଓଡ଼ିଆ`,englishName:`Odia`,dir:`ltr`},{code:`om`,name:`Oromoo`,englishName:`Oromo`,dir:`ltr`},{code:`ps`,name:`پښتو`,englishName:`Pashto`,dir:`rtl`},{code:`fa`,name:`فارسی`,englishName:`Persian`,dir:`rtl`},{code:`pt-BR`,name:`português (Brasil)`,englishName:`Portuguese (Brazil)`,dir:`ltr`},{code:`pt-PT`,name:`português (Portugal)`,englishName:`Portuguese (Portugal)`,dir:`ltr`},{code:`pa`,name:`ਪੰਜਾਬੀ`,englishName:`Punjabi`,dir:`ltr`},{code:`pa-PK`,name:`پنجابی`,englishName:`Punjabi (Pakistan)`,dir:`rtl`},{code:`ru`,name:`русский`,englishName:`Russian`,dir:`ltr`},{code:`sd`,name:`سنڌي`,englishName:`Sindhi`,dir:`rtl`},{code:`si`,name:`සිංහල`,englishName:`Sinhala`,dir:`ltr`},{code:`so`,name:`Soomaali`,englishName:`Somali`,dir:`ltr`},{code:`es-AR`,name:`español (Argentina)`,englishName:`Spanish (Argentina)`,dir:`ltr`},{code:`es-419`,name:`español (Latinoamérica)`,englishName:`Spanish (Latin America)`,dir:`ltr`},{code:`es-MX`,name:`español (México)`,englishName:`Spanish (Mexico)`,dir:`ltr`},{code:`es-ES`,name:`español (España)`,englishName:`Spanish (Spain)`,dir:`ltr`},{code:`su`,name:`Basa Sunda`,englishName:`Sundanese`,dir:`ltr`},{code:`sw`,name:`Kiswahili`,englishName:`Swahili`,dir:`ltr`},{code:`sv`,name:`svenska`,englishName:`Swedish`,dir:`ltr`},{code:`tg`,name:`тоҷикӣ`,englishName:`Tajik`,dir:`ltr`},{code:`ta`,name:`தமிழ்`,englishName:`Tamil`,dir:`ltr`},{code:`te`,name:`తెలుగు`,englishName:`Telugu`,dir:`ltr`},{code:`th`,name:`ไทย`,englishName:`Thai`,dir:`ltr`},{code:`tr`,name:`Türkçe`,englishName:`Turkish`,dir:`ltr`},{code:`tk`,name:`türkmen dili`,englishName:`Turkmen`,dir:`ltr`},{code:`uk`,name:`українська`,englishName:`Ukrainian`,dir:`ltr`},{code:`ur`,name:`اردو`,englishName:`Urdu`,dir:`rtl`},{code:`ug`,name:`ئۇيغۇرچە`,englishName:`Uyghur`,dir:`rtl`},{code:`uz`,name:`oʻzbek`,englishName:`Uzbek`,dir:`ltr`},{code:`vi`,name:`Tiếng Việt`,englishName:`Vietnamese`,dir:`ltr`}],qM=KM.map(e=>({...e,review:GM.includes(e.code)})),JM=KM.map(e=>e.code);KM.filter(e=>!GM.includes(e.code)).map(e=>e.code);var YM=`en-US`;function XM(e,t=JM){let n=(typeof e==`string`?[e]:e??[]).filter(e=>typeof e==`string`&&e.trim()!==``);for(let e of n){let n=QM(e.trim().replaceAll(`_`,`-`),t);if(n)return n}return YM}function ZM(e){let t=XM(e);return qM.find(e=>e.code===t)?.dir??`ltr`}function QM(e,t){let n=t.find(t=>t.toLowerCase()===e.toLowerCase());if(n)return n;let r=rN(e);if(!r.language)return;let i=t.filter(e=>rN(e).language===r.language);if(i.length===0)return;let a=r.script?i.filter(e=>rN(e).script===r.script):[];return $M(a.length>0?a:i,r.region,rN(r.language).region)}function $M(e,t,n){return e.find(e=>t&&tN(e)===t)??e.find(e=>t&&eN[e]?.includes(t))??e.find(e=>!tN(e))??e.find(e=>n&&tN(e)===n)??e[0]}var eN={"es-419":[`AR`,`BO`,`BR`,`BZ`,`CL`,`CO`,`CR`,`CU`,`DO`,`EC`,`GT`,`HN`,`MX`,`NI`,`PA`,`PE`,`PR`,`PY`,`SV`,`US`,`UY`,`VE`],"pt-PT":[`AO`,`CH`,`CV`,`FR`,`GQ`,`GW`,`LU`,`MO`,`MZ`,`ST`,`TL`],"zh-HK":[`MO`],"ar-SA":[`AE`,`BH`,`KW`,`OM`,`QA`,`YE`],"ar-MA":[`DZ`,`EH`,`LY`,`MR`,`TN`],"ar-LB":[`JO`,`PS`,`SY`]};function tN(e){try{return new Intl.Locale(e).region}catch{return}}var nN={no:`nb`,lah:`pa`};function rN(e){try{let t=new Intl.Locale(e).maximize();return{language:nN[t.language]??t.language,script:t.script,region:t.region}}catch{let t=e.toLowerCase().split(`-`)[0];return{language:nN[t]??t}}}function iN(e,t){let n=Object.hasOwn(e,t)?e[t]:t,r=(t.match(/^\s*/)?.[0]??``)+n.trim()+(t.match(/\s*$/)?.[0]??``),i=[],a=0;for(let e of r.matchAll(/\{(\w+)\}/g))e.index>a&&i.push(r.slice(a,e.index)),i.push({name:e[1]}),a=e.index+e[0].length;return a<r.length&&i.push(r.slice(a)),i}function aN(e,t,n={}){return iN(e,t).map(e=>typeof e==`string`?e:Object.hasOwn(n,e.name)?String(n[e.name]):`{${e.name}}`).join(``)}function oN(e){return sN(e)?e:`\u2068${e}\u2069`}function sN(e){if(!e.startsWith(`⁨`)||!e.endsWith(`⁩`))return!1;let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=8294&&r<=8296)t++;else if(r===8297&&--t===0&&n<e.length-1)return!1}return t===0}function cN(e){return e}var lN=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function uN(e){let t=ZM(e)===`rtl`,n=new Map;function r(e,t,r){let i=`${e}:${JSON.stringify(t)}`,a=n.get(i);return a||(a=r(),n.set(i,a)),a}let i=e=>t?oN(e):e,a=(t,n)=>i(r(`number`,n,()=>new Intl.NumberFormat(e,n)).format(t));return{number:(e,t={})=>a(e,t),percent:(e,t={})=>a(e,{...t,style:`percent`}),money:(e,t,n={})=>a(e,{...n,style:`currency`,currency:t}),date:(t,n={})=>i(r(`date`,n,()=>new Intl.DateTimeFormat(e,n)).format(dN(t))),relative:(t,{now:n,unit:a,...o}={})=>{let s=(dN(t).getTime()-dN(n??Date.now()).getTime())/1e3,[c,l]=lN.find(([e,t])=>a?e===a:Math.abs(s)>=t)??[`second`,1];return i(r(`relative`,o,()=>new Intl.RelativeTimeFormat(e,o)).format(Math.round(s/l),c))},list:(n,a={})=>i(r(`list`,a,()=>new Intl.ListFormat(e,a)).format(t?n.map(oN):n))}}function dN(e){return e instanceof Date?e:new Date(e)}var fN=(0,b.createContext)({locale:YM,dir:`ltr`,messages:{},loading:!1,error:null,t:vN({},!1),format:uN(YM),setLocale:async()=>{throw Error(`Changing language requires I18nProvider`)}}),pN=(0,b.createContext)(null),mN=()=>()=>{},hN=()=>!0,gN=()=>!1;function _N(){let e=(0,b.useContext)(fN),t=(0,b.useContext)(pN);return(0,b.useSyncExternalStore)(mN,hN,gN)||!t?e:t}function vN(e,t){return((n,r={})=>{if(Object.values(r).every(e=>typeof e==`string`||typeof e==`number`)){let i=r;return aN(e,n,t?Object.fromEntries(Object.entries(i).map(([e,t])=>[e,oN(String(t))])):i)}let i=iN(e,n).map(e=>{if(typeof e==`string`)return e;if(!Object.hasOwn(r,e.name))return`{${e.name}}`;let n=r[e.name];return t?typeof n==`string`||typeof n==`number`?oN(String(n)):(0,b.createElement)(`bdi`,null,n):n});return(0,b.createElement)(b.Fragment,null,...i)})}function yN({name:e,children:t}){return(0,R.jsx)(of,{name:e,children:t})}var bN=(e,t)=>(t?e.clientX??e.nativeEvent?.pageX:e.clientY??e.nativeEvent?.pageY)??0,xN=({begin:e,move:t,end:n,enabled:r=!0})=>({onPointerDown:t=>{if(!r)return;let n=t.currentTarget;n?.setPointerCapture&&t.pointerId!=null&&n.setPointerCapture(t.pointerId),e(t)},onPointerMove:t,onPointerUp:n,onPointerCancel:n}),SN=24,CN=(e,t=44,n=`both`)=>{let r=Math.min(SN,Math.ceil((t-e)/2));return r<=0?{}:{position:`relative`,...n!==`y`&&{"data-touch-x":String(r)},...n!==`x`&&{"data-touch-y":String(r)}}},wN=24,TN={sm:300,compact:360,md:400,lg:`max(400px, 53vw)`,xl:1200,fullscreen:`100vw`},EN=e=>({width:TN[e],maxW:e===`fullscreen`?`100vw`:`calc(100vw - 32px)`,maxH:e===`fullscreen`?`100vh`:e===`xl`?`min(800px, calc(100vh - 32px))`:`calc(100vh - 32px)`,...e===`fullscreen`?{height:`100vh`}:null,rounded:e===`fullscreen`?0:`$3`,borderWidth:0,p:0,gap:0,style:e===`fullscreen`?void 0:{boxShadow:`none`}}),DN={bg:`rgba(0,0,0,0.72)`,opacity:1},ON=(0,b.createContext)(null),kN=e=>(0,R.jsx)(y_,{modal:!0,...e});y_.Trigger,y_.Portal,y_.Close;var AN=e=>(0,R.jsx)(y_.Overlay,{...q(`dialog-overlay`),bg:`rgba(0,0,0,0.5)`,opacity:.5,...e}),jN=({showCloseButton:e=!0,overlay:t,size:n,children:r,...i})=>{let{t:a}=_N(),o=Ip();return(0,R.jsx)(y_.Portal,{children:(0,R.jsxs)(yN,{name:o,children:[(0,R.jsx)(AN,{...n?DN:null,...t}),(0,R.jsxs)(y_.Content,{...q(`dialog-content`),...n?{"data-size":n}:null,bg:`$background`,borderWidth:1,borderColor:`$borderColor`,rounded:`$5`,p:wN,gap:`$4`,width:`100%`,maxW:512,...n?EN(n):null,...i,children:[(0,R.jsx)(ON.Provider,{value:n??null,children:r}),e?(0,R.jsx)(y_.Close,{asChild:!0,children:(0,R.jsx)(V,{...q(`dialog-close`),...CN(16),position:`absolute`,t:16,insetInlineEnd:16,cursor:`pointer`,opacity:.7,hoverStyle:{opacity:1},"aria-label":a(`Close`),children:(0,R.jsx)(HM,{size:16})})}):null]})]})})};function MN(e,t=[]){if(!e)return t;if(typeof e==`string`){for(let n of e.split(/\s+/))n&&t.push(n);return t}if(typeof e==`boolean`)return t;if(typeof e==`number`||typeof e==`bigint`)return t.push(String(e)),t;if(Array.isArray(e)){for(let n of e)MN(n,t);return t}for(let n in e)e[n]&&t.push(n);return t}function NN(...e){return MN(e).join(` `)}var PN={0:0,px:1,"0.5":2,1:4,"1.5":6,2:8,"2.5":10,3:12,"3.5":14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},FN=Object.fromEntries([`xs`,`sm`,`base`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`].map(e=>[e,`var(--text-${e})`])),IN={thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},LN={none:0,sm:`var(--radius-sm, 0.375rem)`,"":4,md:`var(--radius-md, 0.5rem)`,lg:`var(--radius-lg, 0.75rem)`,xl:`var(--radius-xl, 1rem)`,"2xl":`var(--radius-2xl, 1.5rem)`,"3xl":`var(--radius-3xl, 1.5rem)`,full:9999},RN={none:`1`,tight:`1.25`,snug:`1.375`,normal:`1.5`,relaxed:`1.625`,loose:`2`},zN={tighter:-.8,tight:-.4,normal:0,wide:.4,wider:.8,widest:1.6},BN={start:`flex-start`,end:`flex-end`,center:`center`,between:`space-between`,around:`space-around`,evenly:`space-evenly`,stretch:`stretch`,baseline:`baseline`},VN={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`},HN=`min-w.min-h.max-w.max-h.grid-cols.grid-rows.col-span.auto-cols.auto-rows.grid-flow.col-start.col-end.row-start.row-end.place-items.place-content.place-self.justify-items.justify-self.row-span.translate-x.translate-y.scale.scale-x.scale-y.rotate.basis.will-change.mix-blend.gap-x.gap-y.space-x.space-y.overflow-x.overflow-y.transition.duration.delay.ease.blur.backdrop-blur.shadow.underline-offset.cursor.overflow.tracking.leading.rounded.border.divide.aspect.object.whitespace.align.inset.inset-x.inset-y.items.justify.content.self.opacity.text.font.bg.gap.space-x.space-y.top.right.bottom.left.w.h.size.z.p.px.py.pt.pr.pb.pl.m.mx.my.mt.mr.mb.ml`.split(`.`).sort((e,t)=>t.length-e.length),UN={t:`to top`,tr:`to top right`,r:`to right`,br:`to bottom right`,b:`to bottom`,bl:`to bottom left`,l:`to left`,tl:`to top left`},WN={sans:`var(--font-sans)`,serif:`var(--font-serif)`,mono:`var(--font-mono)`},GN={0:0,75:75,100:100,150:150,200:200,300:300,500:500,700:700,1e3:1e3},KN={none:`none`,all:`all`,DEFAULT:`color, background-color, border-color, opacity, box-shadow, transform`,colors:`color, background-color, border-color, text-decoration-color, fill, stroke`,opacity:`opacity`,shadow:`box-shadow`,transform:`transform`},qN={none:`none`,sm:`0 1px 2px rgb(0 0 0 / .05)`,DEFAULT:`0 1px 3px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .06)`,md:`0 4px 6px rgb(0 0 0 / .1), 0 2px 4px rgb(0 0 0 / .06)`,lg:`0 10px 15px rgb(0 0 0 / .1), 0 4px 6px rgb(0 0 0 / .05)`,xl:`0 20px 25px rgb(0 0 0 / .1), 0 10px 10px rgb(0 0 0 / .04)`,"2xl":`0 25px 50px rgb(0 0 0 / .25)`,inner:`inset 0 2px 4px rgb(0 0 0 / .06)`},JN={none:0,xs:4,sm:8,DEFAULT:8,md:12,lg:16,xl:24,"2xl":40,"3xl":64},YN={auto:`auto`,min:`min-content`,max:`max-content`,fr:`minmax(0, 1fr)`},XN=e=>{let t=/^\[(.+)]$/.exec(e);return t?t[1]:YN[e]??null},ZN={row:`row`,col:`column`,dense:`dense`,"row-dense":`row dense`,"col-dense":`column dense`},QN=e=>e.replace(/\\_/g,`\0`).replace(/_/g,` `).replace(/\u0000/g,`_`);function $N(e,t){if(e===`none`)return{[t]:`none`};if(/^\d+$/.test(e))return{[t]:`repeat(${e}, minmax(0, 1fr))`};let n=/^\[(.+)]$/.exec(e);return n?{[t]:QN(n[1])}:null}function eP(e,t){return e===`auto`?{[t]:`auto`}:/^-?\d+$/.test(e)?{[t]:+e}:null}var tP=e=>e.includes(`calc(`)?e.replace(/(?<=[\w%)])\s*\+\s*/g,` + `).replace(/(?<=[\w%)])\s*-\s*(?=[\d.(])/g,` - `):e;function nP(e){if(e===`full`)return`100%`;if(e===`screen`)return`100vh`;if(e===`auto`||e===`fit`||e===`min`||e===`max`)return e===`fit`?`fit-content`:e;if(e in PN)return PN[e];let t=/^(\d+)\/(\d+)$/.exec(e);if(t)return`${(+t[1]/t[2]*100).toFixed(4).replace(/\.?0+$/,``)}%`;let n=/^\[(.+)]$/.exec(e);if(n)return tP(QN(n[1]))}function rP(e){if(e===`transparent`)return`transparent`;if(e===`current`)return`currentColor`;if(e===`white`)return`#fff`;if(e===`black`)return`#000`;let t=/^(.+?)(?:\/(\[[\d.]+]|\d{1,3}))?$/.exec(e);if(!t)return;let[,n,r]=t,i=/^\[(.+)]$/.exec(n),a=i?i[1]:n===`white`?`#fff`:n===`black`?`#000`:`var(--${n})`;return r?`color-mix(in srgb, ${a} ${r[0]===`[`?+(r.slice(1,-1)*100).toFixed(4):+r}%, transparent)`:a}var iP=/^(margin|top|right|bottom|left|zIndex|translate)/,aP=/^([a-z]+)\((-?[\d.]+)([a-z%]*)\)$/i;function oP(e){switch(e){case`flex`:return{display:`flex`,flexDirection:`row`};case`inline-flex`:return{display:`inline-flex`,flexDirection:`row`};case`grid`:return{display:`grid`};case`inline-grid`:return{display:`inline-grid`};case`block`:return{display:`block`};case`inline`:return{display:`inline`};case`inline-block`:return{display:`inline-block`};case`hidden`:return{display:`none`};case`invisible`:return{opacity:0};case`visible`:return{opacity:1};case`box-content`:return{boxSizing:`content-box`};case`box-border`:return{boxSizing:`border-box`};case`flex-col`:return{flexDirection:`column`};case`flex-row`:return{flexDirection:`row`};case`flex-col-reverse`:return{flexDirection:`column-reverse`};case`flex-row-reverse`:return{flexDirection:`row-reverse`};case`flex-wrap`:return{flexWrap:`wrap`};case`flex-nowrap`:return{flexWrap:`nowrap`};case`flex-1`:return{flexGrow:1,flexShrink:1,flexBasis:`0%`};case`flex-auto`:return{flex:`auto`};case`flex-none`:return{flex:`none`};case`flex-initial`:return{flex:`initial`};case`flex-shrink-0`:case`shrink-0`:return{flexShrink:0};case`flex-grow`:case`grow`:return{flexGrow:1};case`flex-grow-0`:case`grow-0`:return{flexGrow:0};case`absolute`:return{position:`absolute`};case`relative`:return{position:`relative`};case`fixed`:return{position:`fixed`};case`sticky`:return{position:`sticky`};case`static`:return{position:`static`};case`inset-0`:return{top:0,right:0,bottom:0,left:0};case`uppercase`:return{textTransform:`uppercase`};case`lowercase`:return{textTransform:`lowercase`};case`capitalize`:return{textTransform:`capitalize`};case`normal-case`:return{textTransform:`none`};case`italic`:return{fontStyle:`italic`};case`not-italic`:return{fontStyle:`normal`};case`underline`:return{textDecorationLine:`underline`};case`line-through`:return{textDecorationLine:`line-through`};case`no-underline`:return{textDecorationLine:`none`};case`truncate`:return{overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`};case`container`:return{width:`100%`,$sm:{maxWidth:640},$md:{maxWidth:768},$lg:{maxWidth:1024},$xl:{maxWidth:1280}};case`mx-auto`:return{marginLeft:`auto`,marginRight:`auto`};case`my-auto`:return{marginTop:`auto`,marginBottom:`auto`};case`border`:return{borderWidth:1};case`rounded`:return{borderRadius:LN[``]};case`snap-none`:return{scrollSnapType:`none`};case`snap-x`:return{scrollSnapType:`x mandatory`};case`snap-y`:return{scrollSnapType:`y mandatory`};case`snap-both`:return{scrollSnapType:`both mandatory`};case`snap-mandatory`:return{};case`snap-start`:return{scrollSnapAlign:`start`};case`snap-end`:return{scrollSnapAlign:`end`};case`snap-center`:return{scrollSnapAlign:`center`};case`snap-align-none`:return{scrollSnapAlign:`none`};case`snap-normal`:return{scrollSnapStop:`normal`};case`snap-always`:return{scrollSnapStop:`always`};case`select-none`:return{userSelect:`none`};case`break-words`:return{overflowWrap:`break-word`};case`break-all`:return{wordBreak:`break-all`};case`break-normal`:return{overflowWrap:`normal`,wordBreak:`normal`};case`break-keep`:return{wordBreak:`keep-all`};case`transform-gpu`:return{transform:`translateZ(0)`};case`outline-none`:return{outlineStyle:`none`};case`pointer-events-none`:return{pointerEvents:`none`};case`sr-only`:return{position:`absolute`,width:1,height:1,overflow:`hidden`};case`tabular-nums`:return{fontVariantNumeric:`tabular-nums`};case`transform`:return{transform:`translateZ(0)`};case`transition`:return{transitionProperty:KN.DEFAULT};case`blur`:return{filter:`blur(${JN.DEFAULT}px)`};case`shadow`:return{boxShadow:qN.DEFAULT}}if(e.startsWith(`-`)){let t=oP(e.slice(1));if(!t)return null;let n={};for(let e in t){let r=t[e];n[e]=typeof r==`number`&&iP.test(e)?-r:typeof r==`string`&&/^[\d.]+%$/.test(r)&&iP.test(e)?`-${r}`:e===`transform`&&typeof r==`string`&&aP.test(r)?r.replace(aP,(e,t,n,r)=>`${t}(${-Number(n)}${r})`):r}return n}let t=``,n=``;for(let r of HN)if(e.length>r.length+1&&e.startsWith(r+`-`)){t=r,n=e.slice(r.length+1);break}if(!t)return null;let r=/^([pm])([xytrbl])?$/.exec(t);if(r){let[,e,t]=r,i=n===`auto`?`auto`:PN[n]??nP(n);if(i===void 0)return null;let a=e===`p`?`padding`:`margin`;return t?t===`x`?{[`${a}Left`]:i,[`${a}Right`]:i}:t===`y`?{[`${a}Top`]:i,[`${a}Bottom`]:i}:{[`${a}${VN[t]}`]:i}:{[a]:i}}switch(t){case`gap`:{let e=PN[n]??nP(n);return e===void 0?null:{gap:e}}case`space-y`:{let e=PN[n]??nP(n);return e===void 0?null:{rowGap:e}}case`space-x`:{let e=PN[n]??nP(n);return e===void 0?null:{columnGap:e}}case`gap-x`:{let e=PN[n]??nP(n);return e===void 0?null:{columnGap:e}}case`gap-y`:{let e=PN[n]??nP(n);return e===void 0?null:{rowGap:e}}case`items`:return BN[n]?{alignItems:BN[n]}:null;case`justify`:return BN[n]?{justifyContent:BN[n]}:null;case`self`:return BN[n]?{alignSelf:BN[n]}:null;case`content`:return BN[n]?{alignContent:BN[n]}:null;case`w`:{let e=nP(n);return e===void 0?null:{width:e}}case`h`:{let e=n===`screen`?`100vh`:nP(n);return e===void 0?null:{height:e}}case`size`:{let e=nP(n);return e===void 0?null:{width:e,height:e}}case`min-w`:{let e=nP(n);return e===void 0?null:{minWidth:e}}case`min-h`:{let e=n===`screen`?`100vh`:nP(n);return e===void 0?null:{minHeight:e}}case`max-w`:{let e=cP[n]??nP(n);return e===void 0?null:{maxWidth:e}}case`max-h`:{let e=n===`screen`?`100vh`:nP(n);return e===void 0?null:{maxHeight:e}}case`text`:{if(n in FN)return{fontSize:FN[n],lineHeight:`var(--text-${n}--line-height, normal)`};if(n===`left`||n===`center`||n===`right`||n===`justify`)return{textAlign:n};let e=/^\[(.+)]$/.exec(n);if(e&&/^-?[\d.]+(px|rem|em|ch|ex|vw|vh|vmin|vmax|%|pt)?$/.test(e[1]))return{fontSize:e[1],lineHeight:`normal`};let t=rP(n);return t?{color:t}:null}case`bg`:{let e=/^clip-(text|border|padding|content)$/.exec(n);if(e){let t=e[1]===`text`?`text`:`${e[1]}-box`;return{backgroundClip:t,WebkitBackgroundClip:t}}let t=/^origin-(border|padding|content)$/.exec(n);if(t)return{backgroundOrigin:`${t[1]}-box`};let r=rP(n);return r?{backgroundColor:r}:null}case`font`:return IN[n]===void 0?WN[n]?{fontFamily:WN[n]}:null:{fontWeight:IN[n]};case`leading`:{let e=/^\[(.+)]$/.exec(n);return e?{lineHeight:e[1]}:n in RN?{lineHeight:RN[n]}:n in PN?{lineHeight:`${PN[n]}px`}:null}case`tracking`:{if(zN[n]!==void 0)return{letterSpacing:zN[n]};let e=/^\[(.+)]$/.exec(n);return e?{letterSpacing:e[1]}:null}case`underline-offset`:{let e=/^\[(.+)]$/.exec(n);return e?{textUnderlineOffset:e[1]}:/^\d+$/.test(n)?{textUnderlineOffset:`${n}px`}:n===`auto`?{textUnderlineOffset:`auto`}:null}case`rounded`:{if(n in LN)return{borderRadius:LN[n]};let e=/^([trbl]|tl|tr|br|bl)-(.+)$/.exec(n);return e&&e[2]in LN?{[`border${lP[e[1]]}Radius`]:LN[e[2]]}:null}case`border`:{if(/^\d+$/.test(n))return{borderWidth:+n};let e=/^([trbl])(?:-(\d+))?$/.exec(n);if(e)return{[`border${VN[e[1]]}Width`]:e[2]?+e[2]:1};let t=rP(n);return t?{borderColor:t}:null}case`opacity`:return/^\d+$/.test(n)?{opacity:n/100}:null;case`z`:{if(/^-?\d+$/.test(n))return{zIndex:+n};let e=/^\[(-?\d+)]$/.exec(n);return e?{zIndex:+e[1]}:null}case`cursor`:return{cursor:n};case`overflow`:return{overflow:n};case`overflow-x`:return{overflowX:n};case`overflow-y`:return{overflowY:n};case`top`:case`right`:case`bottom`:case`left`:{let e=n===`auto`?`auto`:PN[n]??nP(n);return e===void 0?null:{[t]:e}}case`inset`:{let e=PN[n]??nP(n);return e===void 0?null:{top:e,right:e,bottom:e,left:e}}case`grid-cols`:return $N(n,`gridTemplateColumns`);case`grid-rows`:return $N(n,`gridTemplateRows`);case`auto-cols`:{let e=XN(n);return e?{gridAutoColumns:e}:null}case`auto-rows`:{let e=XN(n);return e?{gridAutoRows:e}:null}case`grid-flow`:return ZN[n]?{gridAutoFlow:ZN[n]}:null;case`col-span`:return n===`full`?{gridColumn:`1 / -1`}:/^\d+$/.test(n)?{gridColumn:`span ${n} / span ${n}`}:null;case`col-start`:return eP(n,`gridColumnStart`);case`col-end`:return eP(n,`gridColumnEnd`);case`row-start`:return eP(n,`gridRowStart`);case`row-end`:return eP(n,`gridRowEnd`);case`place-items`:return{alignItems:BN[n]??n,justifyItems:BN[n]??n};case`place-content`:return{alignContent:BN[n]??n,justifyContent:BN[n]??n};case`place-self`:return{alignSelf:BN[n]??n,justifySelf:BN[n]??n};case`justify-items`:return{justifyItems:BN[n]??n};case`justify-self`:return{justifySelf:BN[n]??n};case`aspect`:return n===`square`?{aspectRatio:1}:n===`video`?{aspectRatio:16/9}:null;case`object`:return{objectFit:n};case`whitespace`:return{whiteSpace:n};case`align`:return{verticalAlign:n};case`transition`:return KN[n]?{transitionProperty:KN[n]}:null;case`duration`:return GN[n]===void 0?null:{transitionDuration:`${GN[n]}ms`};case`delay`:return GN[n]===void 0?null:{transitionDelay:`${GN[n]}ms`};case`ease`:return sP[n]?{transitionTimingFunction:sP[n]}:null;case`blur`:return JN[n]===void 0?null:{filter:`blur(${JN[n]}px)`};case`backdrop-blur`:return JN[n]===void 0?null:{backdropFilter:`blur(${JN[n]}px)`};case`row-span`:return/^\d+$/.test(n)?{gridRow:`span ${n} / span ${n}`}:null;case`translate-x`:{let e=PN[n]??nP(n);return e===void 0?null:{transform:`translateX(${typeof e==`number`?e+`px`:e})`}}case`translate-y`:{let e=PN[n]??nP(n);return e===void 0?null:{transform:`translateY(${typeof e==`number`?e+`px`:e})`}}case`scale`:{let e=Number(n);return Number.isFinite(e)?{transform:`scale(${e/100})`}:null}case`scale-x`:{let e=Number(n);return Number.isFinite(e)?{transform:`scaleX(${e/100})`}:null}case`scale-y`:{let e=Number(n);return Number.isFinite(e)?{transform:`scaleY(${e/100})`}:null}case`rotate`:{let e=Number(n);return Number.isFinite(e)?{transform:`rotate(${e}deg)`}:null}case`basis`:{let e=nP(n);return e===void 0?null:{flexBasis:e}}case`will-change`:return{willChange:n};case`mix-blend`:return{mixBlendMode:n};case`shadow`:{if(qN[n])return{boxShadow:qN[n]};let e=/^\[(.+)]$/.exec(n);return e?{boxShadow:QN(e[1])}:null}case`inset-x`:{let e=PN[n]??nP(n);return e===void 0?null:{left:e,right:e}}case`inset-y`:{let e=PN[n]??nP(n);return e===void 0?null:{top:e,bottom:e}}}return null}var sP={linear:`linear`,in:`cubic-bezier(0.4, 0, 1, 1)`,out:`cubic-bezier(0, 0, 0.2, 1)`,"in-out":`cubic-bezier(0.4, 0, 0.2, 1)`},cP={none:`none`,xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280,full:`100%`,prose:`65ch`,screen:`100vw`,"screen-sm":640,"screen-md":768,"screen-lg":1024,"screen-xl":1280,"screen-2xl":1536},lP={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,tl:`TopLeft`,tr:`TopRight`,br:`BottomRight`,bl:`BottomLeft`},uP={xs:``,sm:`$sm`,md:`$md`,lg:`$lg`,xl:`$xl`,"2xl":`$2xl`,hover:`hoverStyle`,focus:`focusStyle`,"focus-visible":`focusVisibleStyle`,active:`pressStyle`,disabled:`disabledStyle`,dark:`$theme-dark`,"group-hover":`groupHoverStyle`};function dP(e){let t={},n=[],r={};for(let i of MN(e)){let e=i.split(`:`),a=e.pop();if(!e.length){let e=/^(?:bg-gradient-to-([a-z]{1,2})|(from|via|to)-(.+))$/.exec(a);if(e){e[1]?r.dir=UN[e[1]]:r[e[2]]=rP(e[3]);continue}}let o=oP(a);if(!o){n.push(i);continue}if(!e.length){Object.assign(t,o);continue}let s=uP[e[e.length-1]];if(s===void 0){n.push(i);continue}if(!s){Object.assign(t,o);continue}let c=t[s]??={};Object.assign(c,o)}let i=[r.from,r.via,r.to].filter(Boolean);return i.length>1&&(t.backgroundImage=`linear-gradient(${r.dir??`to right`}, ${i.join(`, `)})`),{props:t,rest:n.join(` `)}}var fP=(...e)=>{let{props:t,rest:n}=dP(NN(...e));return n?{...t,className:n}:t},pP=(0,b.createContext)(`regular`);function mP({value:e,children:t}){return(0,R.jsx)(pP.Provider,{value:e,children:t})}var hP=()=>(0,b.useContext)(pP),gP=(e,t)=>e??(t===`compact`?`sm`:`default`),_P=(0,b.createContext)(null),vP={borderWidth:1,borderColor:`$rim`,rounded:`$xs`,p:`$0.5`,bg:`$panel`};function yP({attached:e=!0,framed:t=!1,size:n,variant:r,tone:i,children:a,...o}){let s=b.Children.toArray(a).filter(b.isValidElement),c={size:n,variant:r,tone:i,framed:t},l=t?vP:null;return e?(0,R.jsx)(_P.Provider,{value:c,children:(0,R.jsx)(bC,{...q(`button-group`),"data-attached":``,role:`group`,unstyled:!0,display:`inline-flex`,self:`flex-start`,items:`center`,...l,...o,children:s.map((e,t)=>(0,R.jsx)(bC.Item,{...t>0?{marginInlineStart:-1}:null,focusStyle:{zIndex:1},children:e},e.key??t))})}):(0,R.jsx)(_P.Provider,{value:c,children:(0,R.jsx)(V,{...q(`button-group`),role:`group`,display:`inline-flex`,self:`flex-start`,items:`center`,gap:`$0.5`,...l,...o,children:s})})}var bP=10,xP=600,SP=300,CP=(0,b.createContext)(null),wP=(0,b.createContext)(!1),TP=({offset:e=bP,delay:t,...n})=>{let[r,i]=(0,b.useState)({}),a=(0,b.useCallback)(e=>i(t=>({...t,...e})),[]),o=(0,b.useContext)(wP);return(0,R.jsx)(CP.Provider,{value:a,children:(0,R.jsx)(vO,{offset:r.offset??e,delay:t??(o?void 0:xP),...n})})},EP=vO.Trigger,DP=({delay:e=xP,...t})=>(0,R.jsx)(wP.Provider,{value:!0,children:(0,R.jsx)(Gie,{delay:e,...t})}),OP=({sideOffset:e,startIcon:t,description:n,children:r,...i})=>{let a=Ip(),o=(0,b.useContext)(CP);return(0,b.useEffect)(()=>{e!==void 0&&o?.({offset:e})},[o,e]),(0,R.jsx)(yN,{name:a,children:(0,R.jsx)(vO.Content,{...q(`tooltip-content`),componentName:`Hint`,bg:`$panel`,borderWidth:1,borderColor:`$borderColor`,rounded:`$3`,px:`$1.5`,py:`$1`,maxW:SP,...i,children:t||n?(0,R.jsxs)(B,{gap:`$0.5`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$1`,children:[t?(0,R.jsx)(V,{shrink:0,children:t}):null,WM(r,void 0,{size:`$1`,fontWeight:`500`})]}),n?typeof n==`string`?(0,R.jsx)(U,{...q(`tooltip-description`),fontSize:`$1`,lineHeight:`$1`,color:`$aside`,style:{whiteSpace:`pre-line`},children:n}):n:null]}):WM(r,void 0,{size:`$1`})})})},kP={"data-i18n-mirror":``},AP={"data-i18n-ltr":``},jP=e=>typeof e==`string`?`\u2066${e}\u2069`:e,MP=e=>({textAlign:e}),NP=e=>typeof Element<`u`&&e instanceof Element&&getComputedStyle(e).direction===`rtl`,PP=e=>{let t=e.key??``;return NP(e.currentTarget)?t===`ArrowLeft`?`ArrowRight`:t===`ArrowRight`?`ArrowLeft`:t:t},FP=20,IP=z(V,{name:`Kbd`,render:`kbd`,display:`inline-flex`,pointerEvents:`none`,style:{userSelect:`none`},items:`center`,justify:`center`,gap:`$1`,height:FP,minW:FP,px:`$1`,rounded:`$1`,bg:`$hover`}),LP=z(H,{name:`KbdText`,size:`$1`,fontWeight:`500`,color:`$quiet`}),RP={height:18,minW:16,px:`$0.5`,bg:`$panel`,borderWidth:1,borderColor:`$rim`,rounded:`$xs`,style:{userSelect:`none`,boxShadow:`var(--shadow-underline, 0 1px 0 0 var(--border-strong))`}};function zP({children:e,variant:t=`default`,...n}){return(0,R.jsx)(IP,{"data-slot":`kbd`,...AP,...t===`cap`?{"data-variant":`cap`,...RP}:null,...n,children:WM(e,LP,t===`cap`?{color:`$aside`}:{})})}var BP=e=>{let t=e===`mac`,n=t?{glyph:`⌘`,word:`Command`}:{glyph:`Ctrl`,word:`Control`};return{mod:n,commandorcontrol:n,cmdorctrl:n,command:{glyph:`⌘`,word:`Command`},cmd:{glyph:`⌘`,word:`Command`},meta:{glyph:`⌘`,word:`Command`},control:t?{glyph:`⌃`,word:`Control`}:{glyph:`Ctrl`,word:`Control`},ctrl:t?{glyph:`⌃`,word:`Control`}:{glyph:`Ctrl`,word:`Control`},alt:t?{glyph:`⌥`,word:`Option`}:{glyph:`Alt`,word:`Alt`},option:t?{glyph:`⌥`,word:`Option`}:{glyph:`Alt`,word:`Alt`},shift:{glyph:`⇧`,word:`Shift`},enter:{glyph:`⏎`,word:`Enter`},return:{glyph:`⏎`,word:`Enter`},backspace:{glyph:`⌫`,word:`Backspace`},delete:{glyph:`⌦`,word:`Delete`},escape:{glyph:`esc`,word:`Escape`},esc:{glyph:`esc`,word:`Escape`},tab:{glyph:`⇥`,word:`Tab`},space:{glyph:`Space`,word:`Space`},arrowup:{glyph:`↑`,word:`Up arrow`},arrowdown:{glyph:`↓`,word:`Down arrow`},arrowleft:{glyph:`←`,word:`Left arrow`},arrowright:{glyph:`→`,word:`Right arrow`},up:{glyph:`↑`,word:`Up arrow`},down:{glyph:`↓`,word:`Down arrow`},left:{glyph:`←`,word:`Left arrow`},right:{glyph:`→`,word:`Right arrow`}}},VP=(e,t)=>{let n=BP(t)[e.toLowerCase()];if(n)return n;let r=e.length===1?e.toUpperCase():e;return{glyph:r,word:r}},HP=e=>e.length>0&&Array.isArray(e[0])?e.map(e=>[...e]):[[...e]];function UP(e,t={}){let n=t.platform??GP(),r=t.combinationSeparator??(n===`mac`?``:` `);return HP(e).map(e=>e.map(e=>VP(e,n).glyph).join(r)).join(` ${t.sequenceJoinLabel??`then`} `)}function WP(e,t,n=`then`){return HP(e).map(e=>e.map(e=>VP(e,t).word).join(` + `)).join(` ${n} `)}function GP(){if(typeof navigator>`u`)return`other`;let e=navigator,t=e.userAgentData?.platform??e.platform??e.userAgent??``;return/mac|iphone|ipad|ipod/i.test(t)?`mac`:`other`}var KP=()=>()=>{};function qP({keys:e,platform:t,variant:n=`keys`,visibility:r=`always`,sequenceJoinLabel:i,combinationSeparator:a,...o}){let{t:s}=_N(),c=i??s(`then`),l=(0,b.useSyncExternalStore)(KP,GP,()=>`other`),u=t??l,d=WP(e,u,c),f=r===`desktop`?{$touchable:{display:`none`}}:null,p={...q(`shortcut`),"data-variant":n,role:`img`,"aria-label":d,display:`inline-flex`,items:`center`,...f};if(n===`text`||n===`button`){let t=UP(e,{platform:u,sequenceJoinLabel:c,combinationSeparator:a});return(0,R.jsxs)(V,{...p,...n===`button`?{gap:6,marginInlineStart:`$1`,opacity:.5}:null,...o,children:[n===`button`?(0,R.jsx)(V,{"aria-hidden":!0,width:1,height:8,opacity:.4,style:{backgroundColor:`currentColor`}}):null,(0,R.jsx)(H,{"aria-hidden":!0,size:`$2`,...n===`button`?{fontWeight:`500`}:null,children:jP(t)})]})}let m=HP(e);return(0,R.jsx)(V,{...p,gap:`$1`,...o,children:(0,R.jsx)(V,{...AP,display:`inline-flex`,items:`center`,gap:`$1`,children:m.map((e,t)=>(0,R.jsxs)(V,{"aria-hidden":!0,display:`inline-flex`,items:`center`,gap:`$1`,children:[t>0?(0,R.jsx)(H,{size:`$1`,color:`$hint`,children:c}):null,e.map((e,t)=>(0,R.jsx)(zP,{variant:`cap`,children:VP(e,u).glyph},t))]},t))})})}var JP=({variant:e,size:t,className:n}={})=>[...new Set([`btn`,`btn-${e??`default`}`,`btn-${t??`default`}`,n].filter(Boolean))].join(` `),YP=({variant:e}={})=>`badge badge-${e??`default`}`,XP=44,ZP={default:36,sm:32,xs:24,lg:40,icon:36,"icon-sm":32,"icon-xs":24,"icon-2xs":20,"icon-lg":40},QP={default:`$3`,sm:`$2`,xs:`$2`,lg:`$3`,icon:`$3`,"icon-sm":`$2`,"icon-xs":`$2`,"icon-2xs":`$1`,"icon-lg":`$3`},$P={default:16,sm:14,xs:14,lg:16,icon:16,"icon-sm":16,"icon-xs":14,"icon-2xs":14,"icon-lg":20},eF={default:16,sm:14,xs:12,lg:16,icon:16,"icon-sm":14,"icon-xs":12,"icon-2xs":12,"icon-lg":16},tF=z(HS.Frame,{name:`Button`,items:`center`,justify:`center`,gap:`$2`,shrink:0,rounded:`$3`,borderWidth:1,borderColor:`transparent`,cursor:`pointer`,variants:{variant:{default:{bg:`$panel`,color:`$ink`,borderColor:`$borderColor`,hoverStyle:{bg:`$hover`,borderColor:`$rim`}},primary:{bg:`$accentBackground`,color:`$accentColor`,borderColor:`$rim`,hoverStyle:{bg:`$accentHover`,borderColor:`$bound`}},destructive:{bg:`var(--destructive)`,color:`var(--destructive-foreground)`,hoverStyle:{bg:`var(--destructive-hover)`}},outline:{bg:`$background`,color:`$ink`,borderColor:`$borderColor`,hoverStyle:{bg:`$hover`}},secondary:{bg:`$edge`,color:`$ink`,hoverStyle:{opacity:.8}},ghost:{bg:`transparent`,color:`$ink`,hoverStyle:{bg:`$hover`}},link:{bg:`transparent`,color:`$ink`,hoverStyle:{textDecorationLine:`underline`}},linkFG:{bg:`transparent`,color:`$ink`,hoverStyle:{textDecorationLine:`underline`}},linkMuted:{bg:`transparent`,color:`$quiet`,hoverStyle:{color:`$ink`,textDecorationLine:`underline`}}},size:{default:{height:`auto`,minHeight:ZP.default,px:`$4`,$touchable:{minHeight:XP}},sm:{height:`auto`,minHeight:ZP.sm,px:`$3`,gap:`$1.5`,$touchable:{minHeight:XP}},xs:{height:`auto`,minHeight:ZP.xs,px:`$2`,gap:`$1`,$touchable:{minHeight:XP}},lg:{height:`auto`,minHeight:ZP.lg,px:`$6`,$touchable:{minHeight:XP}},icon:{height:`auto`,minHeight:ZP.icon,width:`auto`,minWidth:ZP.icon,px:0,$touchable:{minHeight:XP,minWidth:XP}},"icon-sm":{height:`auto`,minHeight:ZP[`icon-sm`],width:`auto`,minWidth:ZP[`icon-sm`],px:0,$touchable:{minHeight:XP,minWidth:XP}},"icon-xs":{height:`auto`,minHeight:ZP[`icon-xs`],width:`auto`,minWidth:ZP[`icon-xs`],px:0,$touchable:{minHeight:XP,minWidth:XP}},"icon-2xs":{height:`auto`,minHeight:ZP[`icon-2xs`],width:`auto`,minWidth:ZP[`icon-2xs`],px:0,rounded:`$xs`,$touchable:{minHeight:XP,minWidth:XP}},"icon-lg":{height:`auto`,minHeight:ZP[`icon-lg`],width:`auto`,minWidth:ZP[`icon-lg`],px:0,$touchable:{minHeight:XP,minWidth:XP}}},compact:{true:{px:`$2`,gap:`$1`}},tone:(e,{props:t})=>{let n=nF[e];if(!n)return{};switch(t.variant){case`primary`:return{bg:n.fill,color:n.fillInk,borderColor:`transparent`,hoverStyle:{bg:n.fillHover,borderColor:`transparent`}};case`secondary`:return{bg:n.soft,color:n.ink,hoverStyle:{bg:n.softHover,opacity:1}};case`ghost`:return{color:n.ink,hoverStyle:{bg:n.tint}};case`default`:case`outline`:case void 0:return{color:n.ink,borderColor:n.edge,hoverStyle:{bg:n.tint,borderColor:n.edge}};default:return{color:n.ink}}},elevated:(e,{props:t})=>e?{...t.variant==="default"||t.variant===`outline`||t.variant===void 0?{bg:`var(--surface-page)`,borderColor:`$rim`}:null}:{},fullWidth:{true:{width:`100%`,self:`stretch`}},round:{true:{rounded:`$10`}},disabled:{true:{opacity:.5,pointerEvents:`none`,cursor:`default`}}},defaultVariants:{variant:`default`,size:`default`}}),nF={accent:{ink:`var(--primary)`,edge:`var(--primary)`,tint:`$hover`,soft:`$hover`,softHover:`$raised`,fill:`var(--primary)`,fillInk:`var(--primary-foreground)`,fillHover:`var(--primary-hover)`},danger:{ink:`$bad`,edge:`$red7`,tint:`var(--state-error-bg)`,soft:`var(--state-error-bg)`,softHover:`$red4`,fill:`var(--destructive)`,fillInk:`var(--destructive-foreground)`,fillHover:`var(--destructive-hover)`},success:{ink:`$good`,edge:`$green7`,tint:`var(--state-success-bg)`,soft:`var(--state-success-bg)`,softHover:`$green4`,fill:`$green9`,fillInk:`#ffffff`,fillHover:`$green10`}},rF=(e,t)=>{if(e!==`neutral`)return t===`primary`?nF[e].fillInk:nF[e].ink},iF=(e,t,n)=>{if(!(0,b.isValidElement)(e))return e;let r=e.props,i={...r.size==null?{size:t}:null,...n&&r.color==null?{color:n}:null};return Object.keys(i).length?(0,b.cloneElement)(e,i):e},aF=new Set([`icon-xs`,`icon-2xs`]),oF=1e3;function sF({tooltip:e,...t}){if(e==null||e===!1)return(0,R.jsx)(cF,{...t});let n=typeof e==`string`&&t[`aria-label`]==null?{"aria-label":e}:null;return(0,R.jsxs)(TP,{delay:oF,placement:`bottom`,children:[(0,R.jsx)(EP,{asChild:!0,children:(0,R.jsx)(cF,{...t,...t.disabled?{focusableWhenDisabled:!0}:null,...n})}),(0,R.jsx)(OP,{children:e})]})}function cF({className:e,variant:t,size:n,asChild:r=!1,isLoading:i=!1,disabled:a,startIcon:o,endIcon:s,shortcut:c,shortcutJoinLabel:l,emphasis:u=`standard`,tone:d,loadingPosition:f=`start`,fullWidth:p,elevated:m,shape:h,focusableWhenDisabled:g,children:_,...v}){let y=hP(),x=(0,b.useContext)(_P),S=t??x?.variant??`default`,C=d??x?.tone??`neutral`,w=n??x?.size??(y===`compact`?`sm`:`default`),T=y===`compact`&&n==null&&x?.size==null,E=u===`subtle`?{color:`$hint`}:null,D=u===`subtle`?`$hint`:rF(C,S),O=y===`compact`?{fontWeight:`500`}:null,k=!!a&&!!g,A=i&&f===`center`,j=(0,R.jsx)(vj,{"aria-hidden":!0,size:`small`,maxW:eF[w],maxH:eF[w]}),M=r&&(0,b.isValidElement)(_)?_:null,ee=M?M.props.children:_,te=M!=null&&M.props.href!=null;return(0,R.jsxs)(tF,{"data-slot":`button`,"data-variant":S,"data-size":w,...C===`neutral`?null:{"data-tone":C},variant:S,size:w,...T?{compact:!0}:null,...C===`neutral`?null:{tone:C},...m?{elevated:!0}:null,...p?{fullWidth:!0}:null,...h===`round`?{round:!0}:null,...x?.framed?{rounded:1}:null,...A?{position:`relative`}:null,...M?{render:(0,b.createElement)(M.type,{...M.props,children:void 0})}:null,...te?{role:void 0}:null,disabled:k?!1:a||i,...k?{"aria-disabled":!0,opacity:.5,cursor:`not-allowed`}:null,...CN(ZP[w],44,`y`),...fP(JP({variant:S,size:n,className:m?[e,`elevation-1`].filter(Boolean).join(` `):e})),...v,...k?{onPress:void 0,onClick:e=>e?.preventDefault?.()}:null,children:[i&&f===`start`?j:null,A?(0,R.jsx)(V,{position:`absolute`,t:0,b:0,l:0,r:0,items:`center`,justify:`center`,pointerEvents:`none`,children:j}):null,o?iF(o,$P[w],D):null,WM(aF.has(w)?iF(ee,$P[w],D):ee,HS.Text,{fontSize:QP[w],...O,...E,...A?{opacity:0}:null}),c&&c.length?(0,R.jsx)(qP,{keys:c,variant:`button`,sequenceJoinLabel:l,...A?{opacity:0}:null}):null,s?iF(s,$P[w],D):null,i&&f===`end`?j:null]})}var lF=[`red`,`ruby`,`crimson`,`tomato`,`orange`,`amber`,`yellow`,`lime`,`grass`,`green`,`jade`,`mint`,`teal`,`cyan`,`sky`,`blue`,`iris`,`violet`,`purple`,`plum`,`pink`,`bronze`,`gold`,`brown`,`gray`],uF={red:{light:[`#fffcfc`,`#fff7f7`,`#feebec`,`#ffdbdc`,`#ffcdce`,`#fdbdbe`,`#f4a9aa`,`#eb8e90`,`#e5484d`,`#dd3e42`,`#ce2c31`,`#641723`],dark:[`#191111`,`#201314`,`#3b1219`,`#500e1c`,`#611623`,`#73232d`,`#8c333a`,`#b54548`,`#e5484d`,`#ec5e5e`,`#ff8a88`,`#ffd1d9`]},ruby:{light:[`#fffcfd`,`#fff7f8`,`#feeaed`,`#ffdce1`,`#fecfd6`,`#f8bfc8`,`#efacb8`,`#e592a3`,`#e54666`,`#dc3b5d`,`#ca244d`,`#64172b`],dark:[`#191113`,`#1e1517`,`#3a141e`,`#4e1325`,`#5e1a2e`,`#6f2539`,`#883447`,`#b3445a`,`#e54666`,`#ec5a72`,`#ff8a94`,`#fed2e1`]},crimson:{light:[`#fffcfd`,`#fef7f9`,`#ffe9f0`,`#fedce7`,`#facedd`,`#f3bed1`,`#eaacc3`,`#e094b2`,`#e93d82`,`#df3478`,`#cb1d63`,`#621639`],dark:[`#191114`,`#201318`,`#381525`,`#4d122f`,`#5c1839`,`#6d2445`,`#873357`,`#b0436e`,`#e93d82`,`#ee528a`,`#ff87a8`,`#fdd3e8`]},tomato:{light:[`#fffcfc`,`#fff8f7`,`#ffebe7`,`#ffdcd3`,`#ffcdc2`,`#fdbdaf`,`#f5a898`,`#ec8e7b`,`#e54d2e`,`#dd4425`,`#d13415`,`#5c271f`],dark:[`#181111`,`#1f1513`,`#391714`,`#4e1511`,`#5e1c16`,`#6e2920`,`#863a2d`,`#ac4d39`,`#e54d2e`,`#ec6142`,`#ff8e6c`,`#fbd3cb`]},orange:{light:[`#fefcfb`,`#fff7ed`,`#ffefd6`,`#ffdda9`,`#ffcf8b`,`#ffc182`,`#f5ae73`,`#ec9455`,`#f76a15`,`#ef5f00`,`#d14e00`,`#582d1d`],dark:[`#17120e`,`#1e160f`,`#331e0b`,`#481f00`,`#562800`,`#66350c`,`#7e451d`,`#a35829`,`#f76a15`,`#ff791b`,`#ff9b52`,`#ffe0c2`]},amber:{light:[`#fefdfb`,`#fefbe9`,`#fff7c2`,`#ffee9c`,`#fbe577`,`#f4d673`,`#e9c163`,`#e2a336`,`#ffc100`,`#ffba18`,`#ad6200`,`#4f3422`],dark:[`#16120c`,`#1d180f`,`#302008`,`#412700`,`#4e3000`,`#5c3d05`,`#714f1a`,`#8f6424`,`#ffc100`,`#ffdc00`,`#ffc916`,`#ffe7b3`]},yellow:{light:[`#fdfdf9`,`#fefce9`,`#fffab8`,`#fff394`,`#ffe770`,`#f3d768`,`#e4c767`,`#d5ae39`,`#ffea00`,`#ffdc00`,`#a06e00`,`#473b1f`],dark:[`#14110b`,`#1b180f`,`#2c2305`,`#372b00`,`#433500`,`#524202`,`#665417`,`#836a20`,`#ffea00`,`#ffff57`,`#f5e147`,`#f6eeb4`]},lime:{light:[`#fcfdfa`,`#f8faf3`,`#eef6d6`,`#e2f0bd`,`#d3e7a6`,`#c2da91`,`#abc978`,`#8db554`,`#bdee63`,`#b0e64c`,`#5c7c2f`,`#37401c`],dark:[`#11130c`,`#151a10`,`#1f2917`,`#29371d`,`#334423`,`#3d522a`,`#496231`,`#577538`,`#bdee63`,`#d4ff70`,`#bde56b`,`#e3f7ba`]},grass:{light:[`#fbfefb`,`#f5fbf5`,`#e9f7e9`,`#daf0db`,`#c9e9ca`,`#b2deb5`,`#94ce9a`,`#65ba74`,`#46a758`,`#3e9a4f`,`#2a7e3b`,`#203c25`],dark:[`#0e1511`,`#141a15`,`#1b2a1e`,`#1d3a24`,`#25482d`,`#2d5736`,`#366740`,`#3e7949`,`#46a758`,`#53b365`,`#71d083`,`#c2f0c2`]},green:{light:[`#fbfefc`,`#f4fbf6`,`#e6f6eb`,`#d6f1df`,`#c4e8d1`,`#adddc0`,`#8eceaa`,`#5bb88b`,`#30a46c`,`#2b9a66`,`#00824d`,`#193b2d`],dark:[`#0e1512`,`#121b17`,`#132d21`,`#113b29`,`#174933`,`#1f573e`,`#28684a`,`#2f7c57`,`#30a46c`,`#33b074`,`#3dd68c`,`#b1f1cb`]},jade:{light:[`#fbfefd`,`#f4fbf7`,`#e5f7ed`,`#d6f1e3`,`#c3e9d7`,`#acdec9`,`#8bceb6`,`#55ba9f`,`#29a383`,`#26997b`,`#00825c`,`#1d3b31`],dark:[`#0d1512`,`#121c18`,`#0f2e23`,`#0a3b2c`,`#104837`,`#1b5645`,`#246854`,`#2a7e68`,`#29a383`,`#27b08b`,`#1ed8a4`,`#adf0d4`]},mint:{light:[`#f9fefd`,`#f2fbf9`,`#ddf9f2`,`#c8f4e9`,`#b3ecde`,`#9ce0d0`,`#7ecfbd`,`#4cbba5`,`#86ead4`,`#7de1cb`,`#037864`,`#16433c`],dark:[`#0d1515`,`#0f1b1b`,`#092c2b`,`#003a39`,`#004744`,`#0f5650`,`#1e685f`,`#277f70`,`#86ead4`,`#a8f5e5`,`#58d5ba`,`#c4f5e1`]},teal:{light:[`#fafefd`,`#f3fbf9`,`#e0f8f3`,`#ccf3ea`,`#b8ebe0`,`#a1ded2`,`#83cdc1`,`#53b9ab`,`#12a594`,`#0d9b8a`,`#00826d`,`#0d3d38`],dark:[`#0d1514`,`#111c1b`,`#0d2d2a`,`#023b37`,`#084843`,`#145750`,`#1c6961`,`#1f7f74`,`#12a594`,`#0db39e`,`#0ad8b6`,`#adf0dd`]},cyan:{light:[`#fafdfe`,`#f2fafb`,`#def7f9`,`#caf1f6`,`#b5e9f0`,`#9ddee7`,`#7dcedc`,`#3db9ce`,`#01a2c7`,`#0797b9`,`#007da5`,`#0d3c48`],dark:[`#0b1619`,`#101b20`,`#082c36`,`#003848`,`#004558`,`#045468`,`#12677e`,`#11809c`,`#01a2c7`,`#23afd0`,`#4ccce5`,`#b6ecf7`]},sky:{light:[`#f9feff`,`#f1fafd`,`#e1f6fd`,`#d1f0fb`,`#bee7f5`,`#a9daed`,`#8dcae3`,`#60b3d7`,`#7ce2fe`,`#74daf8`,`#00749e`,`#1d3e56`],dark:[`#0d141e`,`#111a27`,`#112840`,`#113655`,`#154467`,`#1b537b`,`#1f6692`,`#197cae`,`#7ce2fe`,`#a8eeff`,`#75c7f0`,`#c2f3ff`]},blue:{light:[`#fdfdfe`,`#f7f9ff`,`#edf2fe`,`#e0e9ff`,`#d2deff`,`#c1d0ff`,`#abbdf9`,`#8da4ef`,`#3e63dd`,`#3358d4`,`#3a5bc7`,`#1f2d5c`],dark:[`#11131f`,`#141726`,`#182449`,`#1d2e61`,`#253974`,`#304384`,`#3a4f97`,`#435db2`,`#3e63dd`,`#5472e4`,`#9db1ff`,`#d6e1ff`]},iris:{light:[`#fdfdff`,`#f8f8ff`,`#f0f1fe`,`#e6e7ff`,`#dadcff`,`#cbcdff`,`#b8b9f8`,`#9b9ef0`,`#5b5bd6`,`#5151cd`,`#5753c6`,`#272962`],dark:[`#13131e`,`#171625`,`#202248`,`#262a65`,`#303374`,`#3d3d82`,`#4a4a95`,`#5a58b1`,`#5b5bd6`,`#6e6ade`,`#b0a9ff`,`#e0dffe`]},violet:{light:[`#fdfcfe`,`#faf8ff`,`#f4f0fe`,`#ebe5ff`,`#e1d9ff`,`#d4cafe`,`#c2b5f5`,`#aa99ec`,`#6e56cf`,`#654dc4`,`#6550b9`,`#2f265f`],dark:[`#14121f`,`#1b1525`,`#291f44`,`#33255b`,`#3c2e69`,`#473876`,`#56468b`,`#6858ad`,`#6e56cf`,`#7d66d9`,`#bba5ff`,`#e2ddfe`]},purple:{light:[`#fefcfe`,`#fbf7fe`,`#f7edfd`,`#f2e2fc`,`#ead5f9`,`#e0c4f4`,`#d1afec`,`#be93e4`,`#8e4ec6`,`#8347b9`,`#8145b5`,`#402060`],dark:[`#18111b`,`#1e1523`,`#2f1c3b`,`#3d224e`,`#48295c`,`#54346b`,`#664282`,`#8357aa`,`#8e4ec6`,`#9a5cd0`,`#d59cff`,`#ecd9fa`]},plum:{light:[`#fefcff`,`#fdf7fd`,`#fbebfb`,`#f7def8`,`#f1d1f3`,`#e9c2ec`,`#deade3`,`#cf91d8`,`#ab4aba`,`#a144af`,`#953ea3`,`#53195d`],dark:[`#181118`,`#201320`,`#351935`,`#451d47`,`#502454`,`#5e3062`,`#734079`,`#92549c`,`#ab4aba`,`#b658c4`,`#e796f3`,`#f4d4f4`]},pink:{light:[`#fffcfe`,`#fef7fb`,`#fee9f6`,`#fbdcef`,`#f6cee7`,`#efbfdd`,`#e7acd1`,`#dd93c2`,`#d6409f`,`#cf3897`,`#c2298a`,`#651249`],dark:[`#191117`,`#21121d`,`#37172f`,`#4b143d`,`#591c47`,`#692955`,`#833869`,`#a84885`,`#d6409f`,`#de51a8`,`#ff80ca`,`#fdd1ea`]},bronze:{light:[`#fdfcfc`,`#fdf7f5`,`#f6edea`,`#efe4df`,`#e7d9d3`,`#dfcdc5`,`#d3bcb3`,`#c2a499`,`#a18072`,`#957468`,`#7d5e54`,`#43302b`],dark:[`#141110`,`#1c1918`,`#262120`,`#302a27`,`#3b3330`,`#493e3a`,`#5a4d47`,`#6f5f57`,`#a18072`,`#ae8d7e`,`#d4b3a5`,`#ede0d9`]},gold:{light:[`#fdfdfc`,`#faf9f2`,`#f2f0e7`,`#eae6dc`,`#e1dccf`,`#d7d0bf`,`#cbc0aa`,`#b9a88d`,`#978365`,`#8c795e`,`#71624b`,`#3b352b`],dark:[`#121211`,`#1b1a17`,`#24231f`,`#2e2b26`,`#38352f`,`#444039`,`#544f46`,`#696256`,`#978365`,`#a39073`,`#cbb99f`,`#e8e2d9`]},brown:{light:[`#fefdfc`,`#fcf9f5`,`#f6eee7`,`#f0e4d9`,`#ebdaca`,`#e4cdb8`,`#dcbc9f`,`#cea37e`,`#ad7f58`,`#a07553`,`#815e46`,`#3e332e`],dark:[`#12110f`,`#1c1816`,`#28211d`,`#322922`,`#3e3128`,`#4d3c2f`,`#614a39`,`#7c5f46`,`#ad7f58`,`#b98c67`,`#dbb594`,`#f2e1ca`]},gray:{light:[`#ffffff`,`#fcfcfc`,`#f9f9f9`,`#f1f1f1`,`#ebebeb`,`#d6d6d6`,`#cccccc`,`#b3b3b3`,`#999999`,`#838383`,`#666666`,`#333333`],dark:[`#171717`,`#1b1b1b`,`#191919`,`#1d1d1d`,`#222222`,`#484848`,`#4c4c4c`,`#666666`,`#818181`,`#7b7b7b`,`#b3b3b3`,`#ebebeb`]},mauve:{light:[`#fdfcfd`,`#faf9fb`,`#f2eff3`,`#eae7ec`,`#e2dfe6`,`#dbd8e0`,`#d0cdd7`,`#bcbac7`,`#8e8c99`,`#83818e`,`#65636d`,`#211f26`],dark:[`#121113`,`#1a191b`,`#232225`,`#2b292d`,`#323035`,`#3c393f`,`#49474e`,`#625f69`,`#6f6d78`,`#7d7a85`,`#b5b2bc`,`#eeeef0`]},olive:{light:[`#fcfdfc`,`#f8faf8`,`#eff1ef`,`#e7e9e7`,`#dfe2df`,`#d7dad7`,`#cccfcc`,`#b9bcb8`,`#898e87`,`#7f837d`,`#60655f`,`#1d211c`],dark:[`#111210`,`#181917`,`#212220`,`#282a27`,`#2f312e`,`#383a37`,`#454943`,`#5c625b`,`#687066`,`#767d74`,`#afb5ad`,`#eceeec`]},sage:{light:[`#fbfdfc`,`#f7f9f8`,`#eef1f0`,`#e6e9e8`,`#dfe2e0`,`#d7dad8`,`#cbcfcd`,`#b8bcbb`,`#868e8b`,`#7c8481`,`#5f6563`,`#1a211e`],dark:[`#101211`,`#171918`,`#202221`,`#272a28`,`#2e3130`,`#373b39`,`#444947`,`#5b625f`,`#63706b`,`#717d79`,`#adb5b2`,`#eceeed`]},sand:{light:[`#fdfdfc`,`#f9f9f8`,`#f1f0ef`,`#e9e9e6`,`#e2e1de`,`#dad9d6`,`#cfcfca`,`#bcbbb5`,`#8d8d86`,`#82827c`,`#63635e`,`#21201c`],dark:[`#111110`,`#191918`,`#222221`,`#2a2a28`,`#31312e`,`#3b3a37`,`#494844`,`#62605a`,`#6f6d66`,`#7d7b74`,`#b5b3ad`,`#eeeeec`]},slate:{light:[`#fcfcfd`,`#f9f9fb`,`#f0f0f3`,`#e7e8ec`,`#e0e1e6`,`#d9d9e0`,`#cdced6`,`#b9bbc6`,`#8b8d98`,`#80838d`,`#60646c`,`#1c2024`],dark:[`#111113`,`#18191b`,`#212225`,`#272a2d`,`#2e3135`,`#363a3f`,`#43484e`,`#5a6169`,`#696e77`,`#777b84`,`#b0b4ba`,`#edeef0`]}},dF=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return lF[Math.abs(t)%lF.length]},fF=e=>typeof e==`string`&&Object.hasOwn(uF,e),pF=(e,t=`gray`)=>fF(e)?e:t;function mF(e,t){Ip();let n={};for(let r of t)n[`--tone-${r}`]=`var(--data-${e}-${r})`;return{style:n,tone:e=>`var(--tone-${e})`}}var hF=e=>({role:`button`,tabIndex:0,onPress:e,onKeyDown:t=>{(t?.key===`Enter`||t?.key===` `)&&(t.preventDefault?.(),e?.())}}),gF={outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},_F=32,vF={xs:{box:12,font:`$1`},sm:{box:14,font:`$1`},md:{box:16,font:`$1`},lg:{box:24,font:`$2`},xl:{box:40,font:`$4`}},yF={square:`$2xs`,rounded:`$xs`,circle:`$10`},bF=e=>{let t=[...(e??``).trim()][0];return t?t.toLocaleUpperCase():`-`},xF=({size:e,shape:t,src:n,name:r,colorSeed:i,icon:a,variant:o=`soft`,ring:s=!1,pulsing:c=!1,onPress:l,alt:u,children:d,style:f,...p})=>{let m=typeof e==`string`&&e in vF?vF[e]:null,h=m?.box??(e!=null&&!m?e:_F),g=yF[t??(m?`square`:`circle`)],{style:_,tone:v}=mF(dF(i??r??``),[4,5,6,12]),y=d==null&&(n!=null||r!=null||a!=null),x=(r??``).trim(),S=y?(0,R.jsx)(CF,{bg:a?`transparent`:x?v(o===`outline`?5:4):`$hover`,...o===`outline`&&x&&!a?{borderWidth:1,borderColor:v(6)}:null,rounded:g,children:a?(0,b.isValidElement)(a)&&a.props.size==null?(0,b.cloneElement)(a,{size:h}):a:(0,R.jsx)(H,{fontSize:m?.font??`$2`,lineHeight:h,fontWeight:`500`,color:x?v(12):`$hint`,select:`none`,children:bF(r)})}):null;return(0,R.jsxs)(AS,{"data-slot":`avatar`,...m?{"data-size":e}:null,...l?hF(l):null,circular:g===`$10`,size:h,...m||t?{rounded:g}:null,shrink:0,overflow:`hidden`,...l?{cursor:`pointer`,hoverStyle:{outlineColor:`$hover`,outlineWidth:4,outlineStyle:`solid`},focusVisibleStyle:gF}:null,...c?{"data-motion":`pulse`}:null,style:{...y&&x?_:null,...s?{boxShadow:`0 0 0 1px var(--border), 0 0 0 3px var(--background)`}:null,...f},...p,children:[y&&n?(0,R.jsx)(SF,{src:n,...u?{alt:u}:null}):null,S,d]})},SF=e=>(0,R.jsx)(AS.Image,{"data-slot":`avatar-image`,width:`100%`,height:`100%`,...e}),CF=({children:e,...t})=>(0,R.jsx)(AS.Fallback,{"data-slot":`avatar-fallback`,bg:`$edge`,items:`center`,justify:`center`,...t,children:typeof e==`string`||typeof e==`number`?(0,R.jsx)(H,{size:`$2`,color:`$quiet`,children:e}):e}),wF=44,TF=24,EF=Mo({variant:`default`}),DF=z(V,{name:`Badge`,context:EF,display:`inline-flex`,self:`flex-start`,items:`center`,justify:`center`,shrink:0,minH:TF,px:`$2.5`,py:`$1`,gap:`$1.5`,rounded:`$2`,borderWidth:1,borderColor:`transparent`,overflow:`hidden`,variants:{variant:{default:{bg:`$ink`},secondary:{bg:`$edge`},destructive:{bg:`$red9`},outline:{bg:`$background`,borderColor:`$borderColor`},ghost:{bg:`transparent`,hoverStyle:{bg:`$hover`}},link:{bg:`transparent`},inputAdornment:{bg:`$hover`,px:`$2`},tags:{bg:`$hover`,borderColor:`$borderColor`,rounded:`$3`},muted:{bg:`$hover`},accent:{bg:`var(--primary)`},inherit:{bg:`transparent`}},size:{xs:{minH:14,height:14,px:`$1`,py:0,gap:`$1`,rounded:`$10`},sm:{minH:16,height:16,px:`$2`,py:0,gap:`$1`,rounded:`$10`},md:{minH:18,height:18,px:`$1.5`,py:0,gap:`$0.5`,rounded:`$10`},lg:{}},circle:{true:{px:0,justify:`center`}}},defaultVariants:{variant:`default`}}),OF={xs:{size:`$1`,lineHeight:14,fontWeight:`600`},sm:{size:`$1`,lineHeight:16,fontWeight:`500`},md:{size:`$1`,lineHeight:18,fontWeight:`500`}},kF=z(H,{name:`BadgeText`,context:EF,size:`$1`,fontWeight:`600`,variants:{variant:{default:{color:`$sunken`},secondary:{color:`$ink`},destructive:{color:`$white1`},outline:{color:`$ink`},ghost:{color:`$ink`},link:{color:`$ink`,textDecorationLine:`underline`},inputAdornment:{color:`$ink`,fontWeight:`500`},tags:{color:`$quiet`,fontWeight:`400`,textTransform:`capitalize`},muted:{color:`$hint`,fontWeight:`500`},accent:{color:`var(--primary-foreground)`,fontWeight:`500`},inherit:{}}}});function AF({className:e,variant:t=`default`,size:n,shape:r=`pill`,asChild:i=!1,children:a,...o}){let s=n&&n!==`lg`?n:null,c=s?{xs:14,sm:16,md:18}[s]:TF,l=t===`inherit`;return(0,R.jsx)(DF,{"data-slot":`badge`,"data-variant":t,...n?{"data-size":n}:null,variant:t??`default`,...n?{size:n}:null,...r===`circle`?{circle:!0,width:c,minW:c}:null,asChild:i,render:i?void 0:`span`,...CN(c,wF,`y`),...fP([YP({variant:t}),e].filter(Boolean).join(` `)),...l?{style:{backgroundColor:`color-mix(in srgb, currentColor 16%, transparent)`}}:null,...o,children:i?a:WM(a,kF,{...s?OF[s]:null,...l?{style:{color:`inherit`,fontWeight:`inherit`,fontVariantNumeric:`tabular-nums`}}:null})})}var jF=16,MF=()=>{let e=(0,b.useContext)(nC).checked===`indeterminate`?OM:cM;return(0,R.jsx)(e,{size:13,color:`$ink`,strokeWidth:3})},NF={sm:{box:12,edge:1,glyph:14,pad:5},md:{box:18,edge:1.5,glyph:20,pad:6}},PF={solid:`$ink`,outline:`$hint`,soft:`$borderColor`},FF={accent:{fill:`var(--primary)`,glyph:`var(--primary-foreground)`,tint:`$raised`},success:{fill:`$good`,glyph:`$background`,tint:`var(--state-success-bg)`},warning:{fill:`var(--state-warning)`,glyph:`$background`,tint:`var(--state-warning-bg)`}},IF=({look:e})=>{let t=(0,b.useContext)(nC).checked,n=t===!0||t===`indeterminate`,r=t===`indeterminate`?OM:cM,{dim:i,tone:a}=e;return(0,R.jsx)(V,{...q(`checkbox-box`),position:`relative`,width:i.box+2*i.edge,height:i.box+2*i.edge,rounded:e.round?`$10`:`$xs`,borderWidth:i.edge,borderColor:n?a.fill:e.disabled?`$rim`:PF[e.variant],bg:n?a.fill:`transparent`,opacity:e.disabled&&n?.5:1,items:`center`,justify:`center`,pointerEvents:`none`,children:n?(0,R.jsx)(r,{size:i.glyph,color:a.glyph,strokeWidth:2.5}):null})},LF=({variant:e,size:t,shape:n,color:r,hoverable:i,...a})=>{let o=hP()===`compact`,s=e??(o||t!==void 0||n!==void 0||r!==void 0||i!==void 0?`solid`:`plain`);if(s!==`plain`){let e=NF[t??`sm`],o=i??!0,c=e.box+2*e.edge,l=o?c+2*e.pad:c,u=a.checked===!0||a.checked===`indeterminate`,d={dim:e,variant:s,tone:FF[r??`accent`],round:n===`round`,hoverable:o,disabled:!!a.disabled};return(0,R.jsx)(aC,{...q(`checkbox`),"data-variant":s,"data-size":t??`sm`,width:l,height:l,flexShrink:0,padding:0,position:`relative`,items:`center`,justify:`center`,borderWidth:0,rounded:n===`round`?`$10`:o?`$3`:`$xs`,backgroundColor:`transparent`,...o&&!a.disabled?{hoverStyle:{bg:u?d.tone.tint:`$hover`}}:null,activeStyle:{bg:`transparent`},cursor:a.disabled?`not-allowed`:`pointer`,...CN(l),...a,children:(0,R.jsx)(IF,{look:d})})}return(0,R.jsx)(aC,{...q(`checkbox`),width:jF,height:jF,flexShrink:0,padding:0,borderRadius:`$2`,borderWidth:1,borderColor:`$bound`,backgroundColor:`transparent`,activeStyle:{bg:`transparent`},...CN(jF),...a,children:(0,R.jsx)(aC.Indicator,{...q(`checkbox-indicator`),alignItems:`center`,justifyContent:`center`,children:(0,R.jsx)(MF,{})})})},RF=(e,t,n)=>{let r=t.trim().toLowerCase();if(!r)return 1;let i=(n?.length?`${e} ${n.join(` `)}`:e).toLowerCase();if(i===r)return 1;if(i.startsWith(r))return .9;let a=i.indexOf(r);if(a>-1)return .8-a/(i.length*100);let o=0;for(let e=0;e<i.length&&o<r.length;e++)i[e]===r[o]&&o++;return o===r.length?.4:0},zF=(e,t,n,r=!1)=>{if(e<=0)return-1;let i=t+n;return i<0?r?e-1:0:i>=e?r?0:e-1:i},BF=44,VF=e=>typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(VF).filter(Boolean).join(` `):(0,b.isValidElement)(e)?VF(e.props.children):``,HF=(0,b.createContext)(null),UF=(0,b.createContext)(void 0),WF=()=>{let e=(0,b.useContext)(HF);if(!e)throw Error(`Command parts must be rendered inside <Command>`);return e},GF=(0,b.forwardRef)(function({value:e,defaultValue:t,onValueChange:n,filter:r=RF,shouldFilter:i=!0,loop:a=!1,label:o,vimBindings:s=!0,disablePointerSelection:c=!1,children:l,...u},d){let f=(0,b.useRef)(new Map).current,p=(0,b.useRef)([]).current,[m,h]=(0,b.useReducer)(e=>e+1,0),[g,_]=(0,b.useState)(``),[v,y]=(0,b.useState)(t??``),x=e??v,S=(0,b.useCallback)((e,t)=>(f.set(e,t),p.includes(e)||p.push(e),h(),()=>{f.delete(e);let t=p.indexOf(e);t>-1&&p.splice(t,1),h()}),[f,p]),C=(0,b.useMemo)(()=>p.filter(e=>{let t=f.get(e)?.current;return!!t&&(!i||r(t.value,g,t.keywords)>0)}),[m,p,f,i,r,g]),w=(0,b.useMemo)(()=>new Set(C),[C]),T=(0,b.useMemo)(()=>new Set(C.map(e=>f.get(e)?.current.group).filter(Boolean)),[C,f]),E=(0,b.useCallback)(t=>{e===void 0&&y(t),n?.(t)},[e,n]);(0,b.useEffect)(()=>{if(!C.length||x&&C.some(e=>f.get(e)?.current.value===x))return;let e=f.get(C[0])?.current.value;e&&E(e)},[C,x,f,E]);let D=(0,b.useCallback)(e=>{let t=C.filter(e=>!f.get(e)?.current.disabled),n=t.findIndex(e=>f.get(e)?.current.value===x),r=zF(t.length,n,e,a),i=r<0?void 0:f.get(t[r])?.current.value;i&&E(i)},[C,f,x,a,E]),O=(0,b.useCallback)(e=>{let t=f.get(e)?.current;t&&!t.disabled&&(E(t.value),t.onSelect?.(t.value))},[f,E]),k=(0,b.useCallback)(e=>{let t=s&&(e.ctrlKey||e.metaKey),n=e.key===`ArrowDown`||t&&(e.key===`n`||e.key===`j`),r=e.key===`ArrowUp`||t&&(e.key===`p`||e.key===`k`);if(n||r)e.preventDefault(),D(n?1:-1);else if(e.key===`Enter`){e.preventDefault();let t=C.find(e=>f.get(e)?.current.value===x);t&&O(t)}},[s,D,C,f,x,O]),A=(0,b.useMemo)(()=>({search:g,setSearch:_,selected:x,select:E,register:S,touch:h,run:O,onKey:k,shows:e=>w.has(e),showsGroup:e=>T.has(e),empty:C.length===0,disablePointerSelection:c}),[g,x,E,S,O,k,w,T,C.length,c]);return(0,R.jsx)(HF.Provider,{value:A,children:(0,R.jsx)(B,{ref:d,"data-slot":`command`,"aria-label":o,width:`100%`,overflow:`hidden`,rounded:`$4`,bg:`$background`,onKeyDown:k,...u,children:l})})}),KF=(0,b.forwardRef)(function({value:e,onValueChange:t,placeholder:n,...r},i){let{search:a,setSearch:o,onKey:s}=WF();return(0,b.useEffect)(()=>{e!==void 0&&e!==a&&o(e)},[e,a,o]),(0,R.jsxs)(V,{"data-slot":`command-input-wrapper`,items:`center`,gap:`$2`,px:`$3`,minH:BF,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(jM,{size:16,opacity:.5}),(0,R.jsx)(gj,{ref:i,"data-slot":`command-input`,unstyled:!0,flex:1,height:BF,borderWidth:0,bg:`transparent`,color:`$color`,placeholder:n,value:e??a,onChangeText:e=>{o(e),t?.(e)},onKeyDown:s,...r})]})}),qF=(0,b.forwardRef)(function(e,t){return(0,R.jsx)(cD,{ref:t,"data-slot":`command-list`,maxH:300,...e})}),JF=(0,b.forwardRef)(function({children:e,...t},n){let{empty:r}=WF();return r?(0,R.jsx)(B,{ref:n,"data-slot":`command-empty`,py:`$4`,items:`center`,...t,children:typeof e==`string`?(0,R.jsx)(H,{size:`$3`,color:`$quiet`,children:e}):e}):null}),YF=(0,b.forwardRef)(function({value:e,keywords:t,disabled:n,onSelect:r,children:i,...a},o){let s=(0,b.useId)(),{register:c,touch:l,run:u,select:d,selected:f,shows:p,disablePointerSelection:m}=WF(),h=(0,b.useContext)(UF),g=e??VF(i),_=(0,b.useRef)({value:g,keywords:t,disabled:n,group:h,onSelect:r});_.current={value:g,keywords:t,disabled:n,group:h,onSelect:r},(0,b.useEffect)(()=>c(s,_),[s,c]),(0,b.useEffect)(l,[l,g,n,t?.join(`\0`)]);let v=!!g&&f===g;return(0,R.jsx)(OC,{ref:o,"data-slot":`command-item`,"data-selected":v,"data-disabled":!!n,display:p(s)?`flex`:`none`,disabled:n,minH:BF,gap:`$2`,rounded:`$2`,bg:v?`$backgroundFocus`:`transparent`,opacity:n?.5:1,onPress:()=>u(s),onPointerEnter:n||m?void 0:()=>d(g),...a,children:i})}),XF={h:32,px:4,gap:8,icon:16,chevron:14,well:4},ZF=(e,t)=>e===`danger`?t?`$bad`:`$red10`:e===`placeholder`?`$hint`:t?`$aside`:`$ink`,QF=e=>e==null||e===!1?null:typeof e==`string`?(0,R.jsx)(qP,{keys:[e]}):Array.isArray(e)?(0,R.jsx)(qP,{keys:e}):e;function $F({label:e,sub:t,contextual:n,contextualPosition:r=`left`,dot:i,icon:a,iconContainer:o=!1,grip:s=`never`,shortcut:c,check:l=!1,submenu:u=!1,tone:d=`default`,quiet:f=!1,hovered:p=!1,subColor:m=`$hint`}){let h=i?(0,R.jsx)(B,{width:8,height:8,rounded:`$10`,bg:i}):a,g=s===`always`||s===`onHover`&&p?(0,R.jsx)(roe,{size:XF.icon,color:`$hush`}):h&&o?(0,R.jsx)(V,{p:XF.well,rounded:`$xs`,bg:`$hover`,items:`center`,justify:`center`,shrink:0,children:h}):h,_=n!=null&&n!==``?(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,numberOfLines:1,paddingInlineStart:4,shrink:1,children:n}):null;return(0,R.jsxs)(R.Fragment,{children:[s===`never`?g??null:(0,R.jsx)(V,{shrink:0,items:`center`,justify:`center`,minW:XF.icon,children:g}),(0,R.jsxs)(B,{flex:1,minW:0,children:[(0,R.jsxs)(V,{items:`center`,minW:0,children:[typeof e==`string`||typeof e==`number`?(0,R.jsx)(U,{fontSize:`$2`,color:ZF(d,f),numberOfLines:1,shrink:1,children:e}):e,r===`left`?_:null]}),t?typeof t==`string`?(0,R.jsx)(U,{fontSize:`$1`,color:m,numberOfLines:1,children:t}):t:null]}),r===`right`?_:null,c==null?null:(0,R.jsx)(V,{shrink:0,children:QF(c)}),l?(0,R.jsx)(cM,{size:XF.icon,strokeWidth:2}):null,u?(0,R.jsx)(V,{shrink:0,animation:`quick`,rotate:u===`open`?`90deg`:`0deg`,"data-open":u===`open`?``:void 0,children:(0,R.jsx)(dM,{...kP,size:XF.chevron,color:`$hush`})}):null]})}var eI=32,tI=44,nI=8,rI=200,iI=32,aI=14,oI=16,sI=4,cI=176,lI=36,uI=33,dI=20,fI={bg:`$panel`,borderColor:`$borderColor`,borderWidth:1,rounded:`$4`,p:sI,minW:rI,overflow:`hidden`,shadowColor:`rgba(0,0,0,0.45)`,shadowRadius:20,shadowOffset:{width:0,height:10}},pI={items:`center`,gap:nI,px:nI,minH:eI,rounded:`$xs`,select:`none`,cursor:`pointer`,...CN(eI,tI,`y`),hoverStyle:{bg:`$hover`},focusStyle:{bg:`$hover`},pressStyle:{bg:`$raised`}},mI=({children:e})=>(0,R.jsx)(V,{position:`absolute`,insetInlineStart:nI,width:aI,height:aI,items:`center`,justify:`center`,pointerEvents:`none`,children:(0,R.jsx)(lD.ItemIndicator,{children:e})}),hI=b.createContext(null),gI=b.createContext(null),_I=b.createContext(null),vI=e=>e===`compact`?8:4;function yI({offset:e,trigger:t,items:n,minWidth:r=rI,maxHeight:i,defaultPage:a,onOpenChange:o,children:s,...c}){let l=hP(),u=e??vI(l),[d,f]=b.useState(u),[p,m]=b.useState(void 0);b.useEffect(()=>f(u),[u]);let[h,g]=b.useState(a?[a]:[]),_=b.useMemo(()=>({page:h[h.length-1]??null,depth:h.length,go:e=>g(t=>[...t,e]),back:()=>g(e=>e.length>1?e.slice(0,-1):e)}),[h]),v=b.useCallback(e=>{e||g(a?[a]:[]),o?.(e)},[a,o]);return(0,R.jsx)(hI.Provider,{value:f,children:(0,R.jsx)(gI.Provider,{value:m,children:(0,R.jsx)(_I.Provider,{value:a?_:null,children:(0,R.jsxs)(lD,{offset:d,...p?{placement:p}:null,onOpenChange:v,...c,children:[t?(0,R.jsx)(xI,{asChild:!0,children:t}):null,n?(0,R.jsx)(TI,{minW:r,maxH:i,children:n.map(bI)}):null,s]})})})})}var bI=(e,t)=>e.type===`separator`?(0,R.jsx)(qI,{},e.key??`sep-${t}`):e.type===`label`?(0,R.jsx)(KI,{children:e.label},e.key??`label-${t}`):(0,R.jsx)(kI,{disabled:e.disabled,variant:e.destructive?`destructive`:`default`,onSelect:e.onSelect,...e.closeOnSelect===!1?{preventCloseOnSelect:!0}:null,children:(0,R.jsx)($F,{label:e.label,sub:e.description,icon:e.icon?(0,R.jsx)(V,{width:oI,height:oI,items:`center`,justify:`center`,shrink:0,children:e.icon}):void 0,shortcut:e.shortcut?(0,R.jsx)(JI,{children:e.shortcut}):void 0,check:!!e.selected,submenu:!!e.hasSubmenu})},e.key),xI=lD.Trigger;lD.Group,lD.Portal,lD.Sub,lD.RadioGroup;var SI=(e,t)=>{if(!t)return e;let n=e?.split(`-`)[0]??`bottom`;return t===`center`?n:`${n}-${t}`},CI=e=>[...e.querySelectorAll(`[role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]`)].filter(t=>t.closest(`[data-hanzogui-menu-content]`)===e&&t.getAttribute(`aria-disabled`)!==`true`&&!t.hasAttribute(`data-disabled`)),wI=e=>e.querySelector(`[data-slot="dropdown-menu-search"] input`),TI=b.forwardRef(function({sideOffset:e,align:t,children:n,onKeyDown:r,...i},a){let o=Ip(),s=hP(),c=b.useContext(_I),l=b.useContext(hI),u=b.useContext(gI),d=e??vI(s);b.useEffect(()=>l?.(d),[l,d]),b.useEffect(()=>u?.(SI(void 0,t)),[u,t]);let f=e=>{if(r?.(e),e.key!==`ArrowUp`)return;let t=e.target?.closest?.(`[data-hanzogui-menu-content]`);if(!t)return;let n=CI(t),i=wI(t);i&&n[0]&&n[0]===document.activeElement&&(e.preventDefault(),i.focus())},p=DI(n);return(0,R.jsx)(lD.Portal,{children:(0,R.jsx)(yN,{name:o,children:(0,R.jsx)(mP,{value:s,children:(0,R.jsx)(_I.Provider,{value:c,children:(0,R.jsx)(lD.Content,{ref:a,"data-slot":`dropdown-menu-content`,...fI,...p.framed?{role:`dialog`,"aria-orientation":void 0,"data-framed":``}:null,onKeyDown:f,...i,children:(0,R.jsx)(OI,{page:c?.page??null,children:p.children})})})})})})}),EI=e=>b.isValidElement(e)&&(e.type===II||e.type===WI||e.type===GI);function DI(e){let t=b.Children.toArray(e);if(!t.some(EI))return{framed:!1,children:e};let n=[],r=[],i=()=>{r.length&&(n.push((0,R.jsx)(B,{role:`menu`,"aria-orientation":`vertical`,"data-slot":`dropdown-menu-list`,children:r},`menu-${n.length}`)),r=[])};for(let e of t)EI(e)?(i(),n.push(e)):r.push(e);return i(),{framed:!0,children:n}}function OI({page:e,children:t}){let n=b.useRef(null),r=b.useRef(!0);return b.useEffect(()=>{if(r.current){r.current=!1;return}let e=n.current?.closest?.(`[data-hanzogui-menu-content]`);if(!e)return;let t=requestAnimationFrame(()=>(wI(e)??CI(e)[0])?.focus());return()=>cancelAnimationFrame(t)},[e]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{ref:n,hidden:!0,"data-slot":`dropdown-menu-anchor`}),t]})}var kI=b.forwardRef(function({inset:e,variant:t=`default`,disabled:n,page:r,actions:i,actionsVisibility:a=`hover`,onSelect:o,children:s,...c},l){let u=b.useContext(_I),[d,f]=b.useState(!1),p=r!==void 0&&u!==null,m=(0,R.jsx)(lD.Item,{ref:l,"data-slot":`dropdown-menu-item`,"data-inset":e,"data-variant":t,disabled:n,...pI,paddingInlineStart:e?iI:nI,theme:t===`destructive`?`red`:void 0,opacity:n?.5:1,cursor:n?`default`:`pointer`,...i?{flex:1,onFocus:()=>f(!0),onBlur:()=>f(!1)}:null,onSelect:e=>{r!==void 0&&u&&(e.preventDefault?.(),u.go(r)),o?.(e)},...c,children:p?(0,R.jsxs)(R.Fragment,{children:[WM(s,U,{fontSize:`$2`}),(0,R.jsx)(dM,{...kP,size:14,marginInlineStart:`auto`,color:`$hush`})]}):WM(s,U,{fontSize:`$2`})});return i?(0,R.jsxs)(V,{"data-slot":`dropdown-menu-item-row`,items:`center`,gap:nI,onHoverIn:()=>f(!0),onHoverOut:()=>f(!1),children:[m,(0,R.jsx)(V,{"data-slot":`dropdown-menu-item-actions`,role:`group`,shrink:0,items:`center`,gap:2,opacity:a===`always`||d?1:0,$touchable:{opacity:1},animation:`75ms`,children:b.Children.map(i,e=>b.isValidElement(e)&&e.props.role==null?b.cloneElement(e,{role:`menuitem`}):e)})]}):m}),AI=b.forwardRef(function({children:e,checked:t,...n},r){return(0,R.jsxs)(lD.CheckboxItem,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,checked:t,...pI,paddingInlineStart:iI,...n,children:[(0,R.jsx)(mI,{children:(0,R.jsx)(cM,{size:oI})}),e]})}),jI=b.createContext(null),MI=e=>e==null?[]:Array.isArray(e)?e:[e];function NI({value:e,defaultValue:t=null,onValueChange:n,multiple:r=!1,closeOnSelect:i,children:a}){let[o,s]=b.useState(()=>MI(t)),c=e===void 0?o:MI(e),l=t=>{e===void 0&&s(t),n?.(r?t:t[0]??null)},u={multiple:r,closeOnSelect:i??!r,has:e=>c.includes(e),toggle:e=>l(r?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e])};return(0,R.jsx)(jI.Provider,{value:u,children:r?(0,R.jsx)(lD.Group,{"data-slot":`dropdown-menu-selection-group`,children:a}):(0,R.jsx)(lD.RadioGroup,{"data-slot":`dropdown-menu-selection-group`,value:c[0]??``,onValueChange:e=>l(e?[e]:[]),children:a})})}var PI=({on:e})=>(0,R.jsx)(V,{width:aI,height:aI,shrink:0,rounded:`$xs`,borderWidth:1,borderColor:e?`var(--primary)`:`$bound`,bg:e?`var(--primary)`:`transparent`,items:`center`,justify:`center`,children:e?(0,R.jsx)(cM,{size:12,strokeWidth:3,color:`var(--primary-foreground)`}):null}),FI=b.forwardRef(function({value:e,indicator:t,closeOnSelect:n,onSelect:r,children:i,disabled:a,...o},s){let c=b.useContext(jI),l=c?.multiple??!1,u=c?.has(e)??!1,d=t??(l?`checkbox`:`check`),f=n??c?.closeOnSelect??!l,p=(0,R.jsxs)(R.Fragment,{children:[d===`checkbox`?(0,R.jsx)(PI,{on:u}):null,typeof i==`string`?(0,R.jsx)(U,{fontSize:`$2`,color:`$aside`,numberOfLines:1,flex:1,minW:0,children:i}):i,d===`check`&&u?(0,R.jsx)(cM,{size:oI,strokeWidth:2,marginInlineStart:`auto`}):null]}),m={ref:s,"data-slot":`dropdown-menu-option-item`,"data-indicator":d,disabled:a,...pI,...d===`none`&&u?{bg:`$hover`}:null,opacity:a?.5:1,preventCloseOnSelect:!f,onSelect:r,...o};return l?(0,R.jsx)(lD.CheckboxItem,{...m,checked:u,onCheckedChange:()=>c?.toggle(e),children:p}):(0,R.jsx)(lD.RadioItem,{...m,value:e,children:p})});function II({value:e,defaultValue:t,onValueChange:n,placeholder:r,autoFocus:i=!0,"aria-label":a}){let{t:o}=_N(),s=r??o(`Search`),c=b.useRef(null);b.useEffect(()=>{if(!i)return;let e=requestAnimationFrame(()=>{let e=setTimeout(()=>c.current?.focus(),0);t=()=>clearTimeout(e)}),t=()=>{};return()=>{cancelAnimationFrame(e),t()}},[i]);let l=e=>{if(e.key===`Escape`||e.key===`Tab`)return;let t=e.currentTarget.closest(`[data-hanzogui-menu-content]`);if(e.key===`ArrowDown`){e.preventDefault(),e.stopPropagation(),t&&CI(t)[0]?.focus();return}if(e.key===`Enter`){if(e.stopPropagation(),e.nativeEvent.isComposing)return;e.preventDefault(),t&&CI(t)[0]?.click();return}e.stopPropagation()};return(0,R.jsx)(V,{"data-slot":`dropdown-menu-search`,minH:lI,items:`center`,px:nI,mx:-4,mt:-4,mb:sI,borderBottomWidth:1,borderColor:`$borderColor`,children:(0,R.jsx)(gj,{ref:c,unstyled:!0,flex:1,minW:0,height:20,p:0,borderWidth:0,bg:`transparent`,color:`$ink`,placeholderTextColor:`$placeholderColor`,fontSize:`$1`,"aria-label":a??s,placeholder:s,...e===void 0?{defaultValue:t}:{value:e},onChangeText:e=>n?.(e),onKeyDown:l,style:{outlineStyle:`none`}})})}function LI({label:e,scrollable:t=!1,children:n,...r}){return(0,R.jsxs)(lD.Group,{"data-slot":`dropdown-menu-section`,...typeof e==`string`?{"aria-label":e}:null,children:[e?(0,R.jsx)(KI,{variant:`band`,children:e}):null,(0,R.jsx)(B,{gap:2,...t?{maxH:cI,style:{overflowY:`auto`,overscrollBehavior:`contain`}}:null,...r,children:n})]})}function RI({id:e,children:t}){let n=b.useContext(_I);return!n||n.page!==e?null:(0,R.jsx)(B,{"data-slot":`dropdown-menu-page`,"data-page":e,children:t})}var zI={minH:uI,items:`center`,gap:nI,px:nI,mx:-4,mt:-4,mb:sI,borderBottomWidth:1,borderColor:`$borderColor`};function BI({children:e,...t}){return(0,R.jsx)(V,{"data-slot":`dropdown-menu-header`,...zI,...t,children:e})}function VI({children:e,...t}){return(0,R.jsx)(U,{"data-slot":`dropdown-menu-title`,fontSize:`$2`,fontWeight:`500`,color:`$ink`,numberOfLines:1,flex:1,...t,children:e})}var HI=b.forwardRef(function({children:e,onSelect:t,...n},r){let i=b.useContext(_I);return(0,R.jsxs)(lD.Item,{ref:r,"data-slot":`dropdown-menu-back`,...zI,rounded:0,cursor:`pointer`,hoverStyle:{bg:`$hover`},focusStyle:{bg:`$hover`},preventCloseOnSelect:!0,onSelect:e=>{i?.back(),t?.(e)},...n,children:[(0,R.jsx)(uM,{...kP,size:oI,color:`$aside`}),typeof e==`string`?(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,color:`$ink`,numberOfLines:1,flex:1,children:e}):e]})});function UI({slot:e,children:t}){return(0,R.jsx)(V,{"data-slot":e,role:`status`,"aria-live":`polite`,items:`center`,gap:nI,p:nI,children:t})}function WI({children:e}){let{t}=_N();return(0,R.jsx)(UI,{slot:`dropdown-menu-empty`,children:(0,R.jsx)(U,{fontSize:`$1`,color:`$aside`,children:e??t(`No results`)})})}function GI({children:e}){let{t}=_N();return(0,R.jsxs)(UI,{slot:`dropdown-menu-loading`,children:[(0,R.jsx)(V,{"aria-hidden":!0,children:(0,R.jsx)(vj,{size:`small`,maxW:14,maxH:14})}),(0,R.jsx)(U,{fontSize:`$1`,color:`$quiet`,children:e??t(`Loading`)})]})}var KI=b.forwardRef(function({inset:e,variant:t=`default`,...n},r){return t===`band`?(0,R.jsx)(lD.Label,{ref:r,"data-slot":`dropdown-menu-label`,"data-variant":`band`,height:dI,lineHeight:dI,mx:-4,px:nI,py:0,bg:`$hover`,fontSize:`$1`,fontWeight:`400`,color:`$hint`,select:`none`,...n}):(0,R.jsx)(lD.Label,{ref:r,"data-slot":`dropdown-menu-label`,"data-inset":e,px:nI,py:4,paddingInlineStart:e?iI:nI,fontSize:`$2`,fontWeight:`500`,color:`$ink`,select:`none`,...n})}),qI=b.forwardRef(function(e,t){return(0,R.jsx)(lD.Separator,{ref:t,"data-slot":`dropdown-menu-separator`,height:1,bg:`$borderColor`,mx:-4,my:sI,...e})});function JI(e){return(0,R.jsx)(U,{"data-slot":`dropdown-menu-shortcut`,marginInlineStart:`auto`,fontSize:`$1`,letterSpacing:1,color:`$quiet`,...e,children:jP(e.children)})}var YI=(e=2)=>({className:`glass elevation-${e}`,backgroundColor:`$background`,borderColor:`$borderColor`});({...q(`rows`)});var XI=(e,t)=>{let[n,r]=e.split(`-`),i=t??r;return!i||i===`center`?n:`${n}-${i}`},ZI=e=>e?{secureTextEntry:!0,type:`password`}:{secureTextEntry:!1,type:`text`},QI={default:{h:36,gutter:12,riser:7,font:`$3`},lg:{h:46,gutter:14,riser:12,font:`$3`},sm:{h:32,gutter:8,riser:7,font:`$2`},xs:{h:24,gutter:8,riser:3,font:`$2`}},$I={bg:`$raised`},eL={px:`$3`,rounded:`$3`,borderWidth:1,borderColor:`$borderColor`,bg:`transparent`},tL=(0,b.createContext)({}),nL=()=>(0,b.useContext)(tL),rL=(e,t)=>e==null?!!t.invalid:e!==!1&&e!==`false`;z(B,{name:`FieldGroup`,width:`100%`,gap:`$7`}),z(V,{name:`Field`,context:Mo({orientation:`vertical`}),width:`100%`,gap:`$3`,variants:{orientation:{vertical:{flexDirection:`column`},horizontal:{flexDirection:`row`,items:`center`},responsive:{flexDirection:`column`,$md:{flexDirection:`row`,items:`center`}}},invalid:{true:{color:`$red9`}}},defaultVariants:{orientation:`vertical`}}),z(B,{name:`FieldContent`,flex:1,gap:`$1.5`});var iL=(0,b.createContext)(null),aL=`color-mix(in srgb, var(--foreground) 32%, transparent)`,oL=(e,t)=>t?.4:e?.9:.6;function sL({start:e,end:t,size:n,fill:r=!1,children:i,...a}){let o=hP(),s=gP(n,o),c=QI[s],[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)({invalid:!1,disabled:!1}),p=(0,b.useCallback)(e=>f(t=>t.invalid===e.invalid&&t.disabled===e.disabled?t:e),[]),m=(0,b.useMemo)(()=>({size:s,focus:u,report:p}),[s,p]),h=d.invalid?l?`$red8`:`$red7`:l?aL:`$borderColor`;return(0,R.jsx)(iL.Provider,{value:m,children:(0,R.jsxs)(V,{...q(`input-group`),"data-focused":l?``:void 0,"data-invalid":d.invalid?``:void 0,"data-disabled":d.disabled?``:void 0,componentName:`Input`,...eL,...o===`compact`?{bg:`$panel`}:null,...r?$I:null,borderColor:h,hoverStyle:d.disabled||l?void 0:{borderColor:`$borderColorHover`},items:`center`,gap:`$1`,height:c.h,width:`100%`,minW:0,px:c.gutter,cursor:d.disabled?`not-allowed`:void 0,...a,children:[e?(0,R.jsx)(V,{...q(`input-group-start`),shrink:0,items:`center`,opacity:oL(l,d.disabled),children:e}):null,i,t?(0,R.jsx)(V,{...q(`input-group-end`),shrink:0,items:`center`,gap:`$1`,opacity:oL(l,d.disabled),children:t}):null]})})}var cL=24,lL=44,uL=(e,t)=>({position:`absolute`,[e===`start`?`insetInlineStart`:`insetInlineEnd`]:t,t:0,b:0,items:`center`,justify:`center`}),dL=(0,b.forwardRef)(function({startAdornment:e,endAdornment:t,reveal:n=!0,type:r,secureTextEntry:i,size:a,fill:o=!1,...s},c){let{t:l}=_N(),[u,d]=(0,b.useState)(!1),f=hP(),p=(0,b.useContext)(iL),m=r===`password`||i===!0,h=r===`email`||r===`url`,g=m&&n,_=QI[p?.size??gP(a,f)],v=_.gutter+cL,y=nL(),x=rL(s[`aria-invalid`],y),S=!!s.disabled,C=p?.report;if((0,b.useEffect)(()=>C?.({invalid:x,disabled:S}),[C,x,S]),p){let{onFocus:e,onBlur:t}=s;return(0,R.jsx)(gj,{ref:c,...q(`input`),...m?ZI(!u):{type:r,secureTextEntry:i},flex:1,minW:0,height:_.h-2,px:0,borderWidth:0,rounded:0,bg:`transparent`,color:`$ink`,placeholderTextColor:`$placeholderColor`,fontSize:_.font,...x?{"aria-invalid":!0}:null,...s,style:{...s.style??null,outlineStyle:`none`},onFocus:t=>{p.focus(!0),e?.(t)},onBlur:e=>{p.focus(!1),t?.(e)}})}let w=(0,R.jsx)(gj,{ref:c,...q(`input`),...m?ZI(!u):{type:r,secureTextEntry:i},...eL,...f===`compact`?{bg:`$panel`}:null,...o?$I:null,...x?{borderColor:`$red7`,focusStyle:{borderColor:`$red8`}}:null,height:_.h,...`height`in s?null:{$touchable:{height:Math.max(_.h,lL)}},width:`100%`,minW:0,color:`$ink`,placeholderTextColor:`$placeholderColor`,fontSize:_.font,...x?{"aria-invalid":!0}:null,paddingInlineStart:e?v:_.gutter,paddingInlineEnd:t||g?v:_.gutter,...s});return!e&&!t&&!g?w:(0,R.jsxs)(V,{position:`relative`,width:`100%`,items:`center`,...h?AP:null,children:[e?(0,R.jsx)(V,{...uL(`start`,_.gutter),pointerEvents:`none`,opacity:.6,children:e}):null,w,g?(0,R.jsx)(V,{...CN(20),...uL(`end`,_.gutter),cursor:`pointer`,onPress:()=>d(e=>!e),"aria-label":l(u?`Hide password`:`Show password`),children:u?(0,R.jsx)(Qae,{size:16}):(0,R.jsx)($ae,{size:16})}):t?(0,R.jsx)(V,{...uL(`end`,_.gutter),opacity:.6,children:t}):null]})}),fL=4,pL=`bottom`,mL=(0,b.createContext)(null),hL=(0,b.createContext)(!1);function gL({offset:e,placement:t,...n}){let r=hP();e??=r===`compact`?8:fL;let[i,a]=(0,b.useState)({}),o=(0,b.useCallback)(e=>a(t=>({...t,...e})),[]);return(0,R.jsx)(mL.Provider,{value:o,children:(0,R.jsx)(OD,{offset:i.offset??e,placement:XI(t??pL,i.align),...n})})}var _L=OD.Trigger;OD.Anchor,OD.Close;var vL=({sideOffset:e,align:t,solid:n,size:r,arrow:i=!1,children:a,...o})=>{let s=Ip(),c=hP(),l=(0,b.useContext)(mL),u=(0,b.useContext)(hL),d=n??u,f=(r??(c===`compact`?`sm`:`default`))===`sm`,p=e??(c===`compact`?8:fL);(0,b.useEffect)(()=>l?.({offset:p,align:t}),[l,p,t]);let m=d?`var(--popover)`:`$panel`;return(0,R.jsx)(hL.Provider,{value:d,children:(0,R.jsx)(yN,{name:s,children:(0,R.jsx)(mP,{value:c,children:(0,R.jsxs)(OD.Content,{...q(`popover-content`),...d?{"data-material":`solid`}:null,...f?{"data-size":`sm`}:null,bg:m,borderWidth:1,borderColor:`$borderColor`,rounded:`$4`,...f?{p:`$2`,gap:`$1`,maxW:`var(--hanzogui-popper-available-width, 100vw)`}:{p:`$4`,width:288},...o,children:[i?(0,R.jsx)(OD.Arrow,{...q(`popover-arrow`),size:8.5,bg:m,borderWidth:1,borderColor:`$borderColor`}):null,a]})})})})},yL=10,bL=44,xL={offset:0,viewport:0,content:0},SL=(0,b.createContext)(null),CL=(e,t)=>e<0?0:e>t?t:e,wL=(0,b.forwardRef)(function({orientation:e=`vertical`,...t},n){let r=(0,b.useContext)(SL),[i,a]=(0,b.useState)(0),o=(0,b.useRef)(null);if(!r||r.axis!==e)return null;let s=e===`vertical`,{content:c,viewport:l,offset:u}=r.track,d=c-l,f=d>1,p=r.type===`always`?!0:f?r.type===`auto`||r.active:!1,m=Math.max(bL,l/Math.max(c,1)*i),h=Math.max(i-m,0),g=f?h*CL(u/d,1):0,_=xN({begin:e=>{o.current=bN(e,!s)},move:e=>{let t=o.current;if(t===null||h===0)return;let n=bN(e,!s);o.current=n,r.scrollBy((n-t)*d/h)},end:()=>{o.current=null}});return(0,R.jsx)(V,{ref:n,...q(`scroll-area-scrollbar`),position:`absolute`,...s?{t:0,b:0,...r.dir===`rtl`?{l:0}:r.dir===`ltr`?{r:0}:{insetInlineEnd:0},width:yL,flexDirection:`column`}:{l:0,r:0,b:0,height:yL,flexDirection:`row`},p:1,opacity:+!!p,pointerEvents:p?`auto`:`none`,onLayout:e=>a(s?e.nativeEvent.layout.height:e.nativeEvent.layout.width),...t,children:(0,R.jsx)(B,{...q(`scroll-area-thumb`),bg:`$borderColor`,rounded:yL,...CN(yL,bL,s?`x`:`y`),...s?{width:`100%`,height:m,y:g}:{height:`100%`,width:m,x:g},..._})})}),TL=(0,b.forwardRef)(function({type:e=`hover`,scrollHideDelay:t=600,dir:n,horizontal:r=!1,children:i,...a},o){let s=(0,b.useRef)(null),c=(0,b.useRef)(xL),[l,u]=(0,b.useState)(xL),[d,f]=(0,b.useState)(!1),p=(0,b.useRef)(null),m=r?`horizontal`:`vertical`,h=(0,b.useCallback)(e=>{let t={...c.current,...e};c.current=t,u(t)},[]),g=()=>{p.current&&clearTimeout(p.current),p.current=null},_=()=>{g(),f(!0)},v=(0,b.useCallback)(()=>{f(!0),g(),p.current=setTimeout(()=>f(!1),t)},[t]);(0,b.useEffect)(()=>g,[]);let y=(0,b.useCallback)(e=>{let t=c.current,n=CL(t.offset+e,Math.max(t.content-t.viewport,0));h({offset:n}),s.current?.scrollTo(r?{x:n,y:0,animated:!1}:{x:0,y:n,animated:!1})},[r,h]);return(0,R.jsxs)(B,{ref:o,...q(`scroll-area`),position:`relative`,overflow:`hidden`,onMouseEnter:e===`hover`?_:void 0,onMouseLeave:e===`hover`?v:void 0,...a,children:[(0,R.jsx)(cD,{ref:s,...q(`scroll-area-viewport`),flex:1,width:`100%`,height:`100%`,horizontal:r,showsVerticalScrollIndicator:!1,showsHorizontalScrollIndicator:!1,scrollEventThrottle:16,onLayout:e=>h({viewport:r?e.nativeEvent.layout.width:e.nativeEvent.layout.height}),onContentSizeChange:(e,t)=>h({content:r?e:t}),onScroll:e=>{let{contentOffset:t}=e.nativeEvent;h({offset:r?t.x:t.y}),v()},children:WM(i)}),(0,R.jsx)(SL.Provider,{value:{axis:m,track:l,type:e,active:d,dir:n,scrollBy:y},children:(0,R.jsx)(wL,{orientation:m})})]})}),EL=32,DL=(0,b.createContext)(!1),OL=Object.assign(({disabled:e=!1,...t})=>(0,R.jsx)(DL.Provider,{value:e,children:(0,R.jsx)(QD,{...t})}),QD);QD.Group;var kL=(0,b.createContext)(`$3`),AL=({children:e,disabled:t,size:n,...r})=>{let i=(0,b.useContext)(DL),a=hP(),o=QI[gP(n,a)],s=rL(r[`aria-invalid`],nL());return(0,R.jsxs)(QD.Trigger,{...q(`select-trigger`),unstyled:!0,disabled:t??i,...eL,...a===`compact`?{bg:`$panel`}:null,...s?{borderColor:`$red7`,"aria-invalid":!0}:null,px:o.gutter,items:`center`,justify:`space-between`,gap:`$2`,height:`auto`,minHeight:o.h,py:0,cursor:`pointer`,...CN(o.h,44,`y`),...r,children:[(0,R.jsx)(kL.Provider,{value:o.font,children:WM(e,void 0,{size:o.font})}),(0,R.jsx)(QD.Icon,{children:(0,R.jsx)(lM,{size:16,opacity:.5})})]})},jL=({children:e,value:t,...n})=>{let r=hP()===`compact`;return(0,R.jsxs)(QD.Item,{value:t,...q(`select-item`),unstyled:!0,index:n.index??0,items:`center`,justify:`flex-start`,gap:`$2`,minH:EL,paddingInlineStart:r?`$1`:`$2`,paddingInlineEnd:`$7`,rounded:`$xs`,cursor:`pointer`,...CN(EL,44,`y`),hoverStyle:{bg:r?`$hover`:`$raised`},focusStyle:{bg:r?`$hover`:`$raised`},...n,children:[(0,R.jsx)(QD.ItemText,{...r?{fontSize:`$2`,color:`$aside`}:null,children:e}),(0,R.jsx)(V,{position:`absolute`,insetInlineEnd:`$2`,items:`center`,justify:`center`,pointerEvents:`none`,children:(0,R.jsx)(QD.ItemIndicator,{children:(0,R.jsx)(cM,{size:16,strokeWidth:2})})})]})},ML=(e,t)=>b.Children.map(e,e=>{if(!(0,b.isValidElement)(e))return e;if(e.type===jL)return(0,b.cloneElement)(e,{index:t()});let n=e.props.children;return n===void 0?e:(0,b.cloneElement)(e,void 0,ML(n,t))}),NL=e=>(0,R.jsx)(QD.ScrollUpButton,{...q(`select-scroll-up-button`),items:`center`,justify:`center`,py:`$1`,...e,children:(0,R.jsx)(Bae,{size:16})}),PL=e=>(0,R.jsx)(QD.ScrollDownButton,{...q(`select-scroll-down-button`),items:`center`,justify:`center`,py:`$1`,...e,children:(0,R.jsx)(lM,{size:16})}),FL=({children:e,...t})=>{let n=0,r=hP();return(0,R.jsx)(QD.Content,{...q(`select-content`),...t,children:(0,R.jsxs)(mP,{value:r,children:[(0,R.jsx)(NL,{}),(0,R.jsx)(QD.Viewport,{minW:128,p:`$1`,bg:`$panel`,borderWidth:1,borderColor:`$borderColor`,rounded:`$3`,children:ML(e,()=>n++)}),(0,R.jsx)(PL,{})]})})},IL=({children:e,...t})=>(0,R.jsx)(B,{...q(`screen`),flex:1,flexBasis:`auto`,minH:0,width:`100%`,overflow:`hidden`,...t,children:e}),LL=({size:e=16,color:t=`currentColor`,variant:n=`arc`,...r})=>n===`dot`?(0,R.jsx)(V,{...q(`spinner`),"data-variant":`dot`,"aria-hidden":!0,width:24,height:12,shrink:0,rounded:`$10`,borderWidth:1,borderColor:t,overflow:`hidden`,items:`center`,justify:`center`,...r,children:(0,R.jsx)(Lm,{"data-motion":`hop`,width:8,height:8,rounded:`$10`,bg:t})}):(0,R.jsx)(vj,{...q(`spinner`),"aria-hidden":!0,size:e,color:t,...r}),RL={default:{w:36,h:20,thumb:16,edge:1},md:{w:32,h:20,thumb:16,edge:0},sm:{w:24,h:16,thumb:12,edge:0}},zL=({disabled:e,size:t,...n})=>{let r=hP()===`compact`,i=RL[t??(r?`md`:`default`)];return(0,R.jsx)(iO,{...q(`switch`),"data-size":t??(r?`md`:`default`),width:i.w,height:i.h,minHeight:i.h,padding:2,flexShrink:0,backgroundColor:`$color3`,borderWidth:i.edge,borderColor:`$borderColor`,activeStyle:{backgroundColor:`$color12`,borderColor:`$color12`},disabled:e,opacity:e?.5:1,cursor:e?`not-allowed`:`pointer`,...CN(i.h,44,`y`),...n,children:(0,R.jsx)(iO.Thumb,{...q(`switch-thumb`),width:i.thumb,height:i.thumb,backgroundColor:`$color3`,activeStyle:{bg:`$color12`}})})},BL=36,VL=40,HL=(0,b.createContext)({variant:`default`,value:void 0,vertical:!1}),UL=({variant:e=`default`,value:t,defaultValue:n,onValueChange:r,orientation:i,...a})=>{let[o,s]=(0,b.useState)(n),c=t??o;return(0,R.jsx)(HL.Provider,{value:{variant:e,value:c,vertical:i===`vertical`},children:(0,R.jsx)(fO,{...q(`tabs`),flexDirection:i===`vertical`?`row`:`column`,gap:`$2`,...t===void 0?{defaultValue:n}:{value:t},onValueChange:e=>{s(e),r?.(e)},...i?{orientation:i}:null,...e===`line`?{"data-variant":`line`}:null,...a})})},WL=e=>{let{variant:t,vertical:n}=(0,b.useContext)(HL);return t===`line`?(0,R.jsx)(fO.List,{...q(`tabs-list`),...n?{flexDirection:`column`,borderInlineEndWidth:1,items:`stretch`}:{flexDirection:`row`,borderBottomWidth:1,items:`flex-end`},borderColor:`$borderColor`,bg:`transparent`,gap:`$1`,p:0,rounded:0,justify:`flex-start`,...e}):(0,R.jsx)(fO.List,{...q(`tabs-list`),items:`center`,justify:`center`,self:`flex-start`,height:BL,p:3,gap:2,bg:`$hover`,rounded:`$4`,...e})},GL=({children:e,startIcon:t,endIcon:n,badge:r,size:i=`md`,highlighted:a=!1,disabled:o,value:s,...c})=>{let{value:l,vertical:u}=(0,b.useContext)(HL),[d,f]=(0,b.useState)(!1),p=l===s,m=o?`$hush`:p?`$ink`:`$aside`;return(0,R.jsxs)(fO.Tab,{...q(`tabs-trigger`),"data-variant":`line`,...p?{"data-chosen":``}:null,unstyled:!0,value:s,disabled:o,position:`relative`,items:`center`,justify:`center`,minH:VL,p:0,bg:`transparent`,borderWidth:0,cursor:o?`default`:`pointer`,...CN(VL,44,`y`),onHoverIn:()=>f(!0),onHoverOut:()=>f(!1),...c,children:[(0,R.jsxs)(V,{...q(`tabs-trigger-box`),items:`center`,gap:`$1`,px:`$2`,py:i===`sm`?`$1`:`$2`,rounded:a?`$xs`:`$3`,bg:d&&!o?`$hover`:`transparent`,...a?{outlineWidth:1,outlineStyle:`solid`,outlineColor:`var(--primary)`,outlineOffset:-1}:null,children:[t,WM(e,void 0,{size:`$2`,fontWeight:`500`,color:m,numberOfLines:1}),r,n]}),p?(0,R.jsx)(B,{...q(`tabs-indicator`),position:`absolute`,bg:`$ink`,...u?{insetInlineEnd:-1,t:0,b:0,width:1}:{b:-1,l:0,r:0,height:1}}):null]})},KL=e=>{let{variant:t}=(0,b.useContext)(HL);if(t===`line`)return(0,R.jsx)(GL,{...e});let{children:n,startIcon:r,endIcon:i,badge:a,size:o,highlighted:s,...c}=e;return(0,R.jsxs)(fO.Tab,{...q(`tabs-trigger`),unstyled:!0,items:`center`,justify:`center`,height:`100%`,px:`$3`,gap:`$1.5`,rounded:`$3`,cursor:`pointer`,...CN(BL,44,`y`),hoverStyle:{bg:`$edge`},focusStyle:{bg:`$edge`},activeStyle:{bg:`$background`,shadowColor:`$shadowColor`,shadowOpacity:.12,shadowRadius:3,shadowOffset:{width:0,height:1}},...c,children:[r,WM(n,void 0,{size:`$2`,fontWeight:`500`}),a,i]})},qL=({children:e,...t})=>(0,R.jsx)(fO.Content,{...q(`tabs-content`),flexGrow:1,...t,children:WM(e)}),JL=3,YL={default:20,lg:20,sm:16,xs:16},XL=e=>typeof e==`string`?e.split(`
61
- `).length:0,ZL=b.forwardRef(function({rows:e,value:t,defaultValue:n,style:r,size:i,fill:a=!1,maxRows:o,...s},c){let l=hP(),u=nL(),d=gP(i,l),f=QI[d],p=YL[d],m=d===`sm`||d===`xs`,[h,g]=b.useState(()=>XL(n)),_=t===void 0,v=rL(s[`aria-invalid`],u),y=b.useRef(null),[x,S]=b.useState(void 0),[C,w]=b.useState(!1),T=b.useCallback(e=>{y.current=e,typeof c==`function`?c(e):c&&(c.current=e)},[c]),E=_?h:t;return b.useLayoutEffect(()=>{let e=y.current;if(!e||typeof e.scrollHeight!=`number`)return;let t=e.style.height;e.style.height=`auto`;let n=e.scrollHeight;e.style.height=t,e.offsetHeight;let r=parseFloat(getComputedStyle(e).maxHeight);w(Number.isFinite(r)&&n>r),S(e=>e===n?e:n)},[E]),(0,R.jsx)(_j,{ref:T,...q(`textarea`),rows:Math.max(e??JL,_?h:XL(t)),value:t,defaultValue:n,onChangeText:_?e=>g(XL(e)):void 0,...eL,...l===`compact`?{bg:`$panel`}:null,...a?$I:null,width:`100%`,minH:m?JL*p+2*f.riser+2:64,...o?{maxH:o*p+2*f.riser+2}:null,px:f.gutter,pt:f.riser,pb:f.riser,borderColor:v?`$red7`:`$borderColor`,...v?{focusStyle:{borderColor:`$red8`}}:null,color:`$ink`,placeholderTextColor:`$placeholderColor`,fontSize:f.font,...m?{lineHeight:p}:null,opacity:s.disabled?.5:1,...v?{"aria-invalid":!0}:null,...C?{"data-capped":``}:null,...s,style:{...r,...x?{height:x}:null}})}),QL=1,$L=class{constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>-1&&this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{title:t,...n}=e,r=typeof e?.id==`number`||typeof e?.id==`string`&&e.id.length>0?e.id:QL++,i=this.toasts.find(e=>e.id===r),a=e.dismissible??!0;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t,dismissible:a}),{...n,...e,id:r,title:t,dismissible:a}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e===void 0?this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}):(this.dismissedToasts.add(e),requestAnimationFrame(()=>{this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e),this.message=(e,t)=>this.create({...t,title:e,type:`default`}),this.success=(e,t)=>this.create({...t,title:e,type:`success`}),this.error=(e,t)=>this.create({...t,title:e,type:`error`}),this.warning=(e,t)=>this.create({...t,title:e,type:`warning`}),this.info=(e,t)=>this.create({...t,title:e,type:`info`}),this.loading=(e,t)=>this.create({...t,title:e,type:`loading`}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({promise:e,type:`loading`,title:t.loading,description:typeof t.description==`function`?void 0:t.description,duration:1/0}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],eR(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:`error`,title:r,description:a})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`success`,title:r,description:a})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`error`,title:r,description:a})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id??QL++;return this.create({jsx:e(n),...t,id:n}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.getHistory=()=>this.toasts}};function eR(e){return e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`}var tR=new $L,nR=Object.assign((e,t)=>tR.create({...t,title:e}),{success:tR.success,error:tR.error,warning:tR.warning,info:tR.info,loading:tR.loading,promise:tR.promise,custom:tR.custom,dismiss:tR.dismiss,message:tR.message,getHistory:()=>tR.getHistory(),getToasts:()=>tR.getActiveToasts()});function rR(e,t){let n=typeof e.title==`function`?e.title():e.title;if(typeof n!=`string`)return!1;let r=typeof e.description==`function`?e.description():e.description,i=e.type??`default`,a=i===`error`?`error`:i===`success`?`done`:`none`,o=i===`error`?`error`:i===`success`?`success`:i===`warning`?`warning`:`none`;return Vie(n,{message:typeof r==`string`?r:void 0,duration:e.duration??t.duration,burntOptions:{preset:a,haptic:o,...t.burntOptions},notificationOptions:t.notificationOptions})!==!1}var iR=.11;function aR(e,t=25){if(e>=0)return e;let n=Math.sqrt(Math.abs(e))*2;return-Math.min(n,t)}var oR=80;function sR(e){if(Math.abs(e)<=oR)return e;let t=e>0?1:-1,n=Math.abs(e)-oR;return t*(oR+Math.sqrt(n)*2)}function cR(e){let{direction:t,threshold:n,disabled:r,expanded:i,onDragMove:a,onDragStart:o,onDismiss:s,onCancel:c}=e,[l,u]=b.useState(!1),d=b.useRef(null),f=b.useRef(null),p=b.useRef(null),m=t===`left`||t===`right`||t===`horizontal`,h=t===`up`||t===`down`||t===`vertical`,g=b.useRef(null);function _(){if(typeof document>`u`)return;window.getSelection()?.removeAllRanges();let e=e=>e.preventDefault();g.current=e,document.addEventListener(`selectstart`,e,!0)}function v(){g.current&&=(document.removeEventListener(`selectstart`,g.current,!0),null)}let y=b.useCallback(()=>{d.current=null,f.current=null,u(!1),v()},[]);return b.useEffect(()=>()=>{if(d.current){if(p.current&&d.current.pointerId)try{p.current.releasePointerCapture(d.current.pointerId)}catch{}y()}},[y]),{isDragging:l,gestureHandlers:{onPointerDown:b.useCallback(e=>{if(r||e.button!==0||e.target.closest(`button, a, input, textarea, select, [role="button"]`)||(window.getSelection()?.toString().length??0)>0)return;let t=e.currentTarget;p.current=t,t.setPointerCapture(e.pointerId),d.current={startX:e.clientX,startY:e.clientY,startTime:Date.now(),pointerId:e.pointerId},_(),u(!0),o?.()},[r,o]),onPointerMove:b.useCallback(e=>{if(!d.current||r)return;let n=e.clientX-d.current.startX,i=e.clientY-d.current.startY;!f.current&&(Math.abs(n)>1||Math.abs(i)>1)&&(f.current=Math.abs(n)>Math.abs(i)?`x`:`y`);let o=0,s=0;t===`right`?o=n>0?sR(n):aR(n):t===`left`?o=n<0?sR(n):-aR(-n):t===`down`?s=i>0?sR(i):aR(i):t===`up`?s=i<0?sR(i):-aR(-i):t===`horizontal`?o=sR(n):t===`vertical`&&(s=sR(i)),a(o,s)},[r,t,i,m,h,a]),onPointerUp:b.useCallback(e=>{if(!d.current||r)return;let i=e.clientX-d.current.startX,a=e.clientY-d.current.startY,o=Date.now()-d.current.startTime,l=Math.abs(i)/o,u=Math.abs(a)/o,g=f.current,_=g===`y`&&m||g===`x`&&h,v=m?i:a,b=m?l:u,x=Math.abs(v)>=n,S=b>iR,C=null;_||(t===`right`&&i>0?C=`right`:t===`left`&&i<0?C=`left`:t===`horizontal`?Math.abs(i)>Math.abs(a)&&(C=i>0?`right`:`left`):t===`down`&&a>0?C=`down`:t===`up`&&a<0?C=`up`:t===`vertical`&&Math.abs(a)>Math.abs(i)&&(C=a>0?`down`:`up`));let w=C&&(x||S);if(p.current)try{p.current.releasePointerCapture(e.pointerId)}catch{}y(),w&&C?s(C,b):c()},[r,t,n,m,h,s,c,y]),onPointerCancel:b.useCallback(e=>{if(p.current)try{p.current.releasePointerCapture(e.pointerId)}catch{}y(),c()},[c,y]),onLostPointerCapture:b.useCallback(()=>{d.current&&(y(),c())},[c,y])},gesture:null}}var lR={type:`spring`,damping:30,stiffness:400,mass:.5},uR=200;function dR(e,t,n,r,i,a,o){let{damping:s=30,stiffness:c=400,mass:l=.5,initialVelocityX:u=0,initialVelocityY:d=0,fadeOut:f=!1}=a,p=t,m=n,h=u,g=d,_=null,v=r,y=i,b=Math.sqrt((r-t)**2+(i-n)**2)||1;function x(){let r=-c*(p-v),i=-c*(m-y),a=-s*h,u=-s*g,d=(r+a)/l,S=(i+u)/l;if(h+=d*.016,g+=S*.016,p+=h*.016,m+=g*.016,e.style.transform=`translate3d(${p}px, ${m}px, 0)`,f){let r=Math.sqrt((p-t)**2+(m-n)**2),i=Math.min(r/b,1);e.style.opacity=String(1-i)}let C=Math.abs(p-v),w=Math.abs(m-y),T=Math.sqrt(h*h+g*g);if(C<.5&&w<.5&&T<.5){e.style.transform=`translate3d(${v}px, ${y}px, 0)`,f&&(e.style.opacity=`0`),o?.();return}_=requestAnimationFrame(x)}return _=requestAnimationFrame(x),()=>{_&&cancelAnimationFrame(_)}}function fR(e={}){let{onExitComplete:t,reducedMotion:n,swipeAxis:r=`horizontal`}=e,{animationDriver:i}=Po();if(!i)throw Error(`Toast requires an animation driver to be set in GuiProvider`);let{useAnimatedNumber:a,useAnimatedNumberStyle:o,useAnimatedNumbersStyle:s}=i,c=i.View??Lm,l=b.useRef(null),u=b.useRef(null),d=b.useRef({x:0,y:0}),f=a(0),p=a(0),m=s?s([f,p],(e,t)=>{"worklet";return{transform:[{translateX:e},{translateY:t}]}}):o(r===`vertical`?p:f,e=>{"worklet";let t=r===`vertical`?f.getValue():p.getValue();return r===`vertical`?{transform:[{translateX:t},{translateY:e}]}:{transform:[{translateX:e},{translateY:t}]}}),h=Jp((e,t)=>{u.current?.(),u.current=null,d.current={x:e,y:t},l.current?(l.current.style.transform=`translate3d(${e}px, ${t}px, 0)`,l.current.style.opacity=`1`):(f.setValue(e,{type:`direct`}),p.setValue(t,{type:`direct`}))}),g=Jp(e=>{if(u.current?.(),n){l.current?l.current.style.transform=`translate3d(0px, 0px, 0)`:(f.setValue(0,{type:`direct`}),p.setValue(0,{type:`direct`})),d.current={x:0,y:0},e?.();return}if(l.current){let{x:t,y:n}=d.current;u.current=dR(l.current,t,n,0,0,lR,()=>{d.current={x:0,y:0},e?.()})}else f.setValue(0,lR),p.setValue(0,lR,e)}),_=Jp((e,r,i)=>{u.current?.();let{x:a,y:o}=d.current,s=e===`left`?-200:e===`right`?uR:0,c=e===`up`?-200:e===`down`?uR:0;if(e===`left`&&a<s?s=a-50:e===`right`&&a>s&&(s=a+50),e===`up`&&o<c?c=o-50:e===`down`&&o>c&&(c=o+50),n){l.current?l.current.style.transform=`translate3d(${s}px, ${c}px, 0)`:(f.setValue(s,{type:`direct`}),p.setValue(c,{type:`direct`})),i?.(),t?.();return}let m=(r??0)*500,h={damping:25,stiffness:350,mass:.4,initialVelocityX:e===`left`?-m:e===`right`?m:0,initialVelocityY:e===`up`?-m:e===`down`?m:0,fadeOut:!0};if(l.current){let{x:e,y:n}=d.current;u.current=dR(l.current,e,n,s,c,h,()=>{i?.(),t?.()})}else{let e={type:`spring`,damping:25,stiffness:350,mass:.4};f.setValue(s,e),p.setValue(c,e,()=>{i?.(),t?.()})}}),v=Jp(()=>{u.current?.(),f.stop(),p.stop()});return b.useEffect(()=>()=>{u.current?.()},[]),{setDragOffset:h,springBack:g,animateOut:_,stop:v,animatedStyle:m,AnimatedView:c,dragRef:l}}var pR=null;function mR(){return pR===null?typeof window>`u`?!1:(pR=window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches??!1,pR):pR}function hR(e){let[t,n]=b.useState(()=>e??mR());return b.useEffect(()=>{if(e!==void 0){n(e);return}if(typeof window>`u`)return;let t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`);if(!t)return;let r=e=>{pR=e.matches,n(e.matches)};return t.addEventListener?.(`change`,r),()=>{t.removeEventListener?.(`change`,r)}},[e]),t}var gR=z(B,{name:`ToastPositionWrapper`,pointerEvents:`auto`,position:`absolute`,left:0,right:0,opacity:1,scale:1,y:0,x:0}),_R=z(B,{name:`ToastItem`,userSelect:`none`,cursor:`default`,focusable:!0,variants:{unstyled:{false:{backgroundColor:`$background`,borderRadius:`$6`,paddingHorizontal:`$4`,paddingVertical:`$3`,borderWidth:1,borderColor:`$borderColor`,shadowColor:`rgba(0, 0, 0, 0.15)`,shadowOffset:{width:0,height:4},shadowRadius:12,focusVisibleStyle:{outlineWidth:2,outlineColor:`$color8`,outlineStyle:`solid`}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),vR=z(V,{name:`ToastClose`,render:`button`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,variants:{unstyled:{false:{width:18,height:18,borderRadius:`$10`,backgroundColor:`$background`,borderWidth:1,borderColor:`$borderColor`,shadowColor:`rgba(0, 0, 0, 0.08)`,shadowOffset:{width:0,height:1},shadowRadius:3,hoverStyle:{backgroundColor:`$color3`},pressStyle:{backgroundColor:`$color4`}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),yR=z(V,{name:`ToastAction`,render:`button`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,variants:{unstyled:{false:{borderRadius:`$2`,paddingHorizontal:`$2`,height:24,backgroundColor:`$color5`,hoverStyle:{backgroundColor:`$color6`},pressStyle:{backgroundColor:`$color7`}}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),bR=()=>(0,R.jsx)(H,{size:`$1`,color:`$color11`,children:`✕`}),xR=4,SR=16,CR=14,wR=4e3,Eoe=72,TR=200,Doe=[`altKey`,`KeyT`],ER=Mo({},`Toast__`),Ooe=ER.useStyledContext;function koe(e){return!!e&&Array.isArray(e.toasts)&&typeof e.setToastHeight==`function`&&typeof e.removeToast==`function`}function DR(e){let t=Ooe();if(!koe(t))throw Error(`\`${e}\` must be used within \`Toast\``);return t}var OR=b.createContext(null);function kR(){let e=b.useContext(OR);if(!e)throw Error(`useToastItemContext must be used within Toast.Item or Toast.List`);return e}function Aoe(e,t){if(e!==`auto`)return e;let[n,r]=t.split(`-`);return r===`left`?`left`:r===`right`?`right`:`horizontal`}var AR=b.forwardRef(function(e,t){let{children:n,position:r=`bottom-right`,duration:i=wR,gap:a=CR,visibleToasts:o=xR,swipeDirection:s=`auto`,swipeThreshold:c=50,toastHeight:l=Eoe,closeButton:u=!1,expand:d=!1,theme:f,reducedMotion:p,native:m=!1,burntOptions:h,notificationOptions:g,icons:_}=e,v=hR(p),[y,x]=b.useState([]),[S,C]=b.useState({}),[w,T]=b.useState(!1),E=d||w,[D,O]=b.useState(!1),k=b.useRef(!1),A=b.useRef(E);b.useLayoutEffect(()=>{A.current!==E&&(k.current=!0,A.current=E);let e=setTimeout(()=>{k.current=!1},350);return()=>clearTimeout(e)},[E]);let j=b.useCallback((e,t)=>{if(k.current)return;let n=Math.round(t);C(t=>{let r=t[e];return r!=null&&Math.abs(r-n)<=2?t:{...t,[e]:n}})},[]),M=b.useCallback(e=>{C(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n})},[]),ee=b.useRef(!1),te=b.useRef(null),ne=b.useCallback(()=>{ee.current=!0,te.current&&clearTimeout(te.current),te.current=setTimeout(()=>{ee.current=!1},800)},[]),N=b.useCallback(()=>ee.current,[]),P=b.useRef(h),re=b.useRef(g);b.useEffect(()=>{P.current=h},[h]),b.useEffect(()=>{re.current=g},[g]),b.useEffect(()=>tR.subscribe(e=>{if(e.dismiss){x(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}m&&rR(e,{duration:i,burntOptions:P.current,notificationOptions:re.current})||x(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})}),[m,i]);let ie=b.useRef(y.length);b.useEffect(()=>{let e=ie.current;ie.current=y.length,(y.length<=1&&!ee.current||y.length>e&&E)&&T(!1)},[y.length,E]);let ae=b.useCallback(e=>{x(t=>(t.find(t=>t.id===e.id)?.delete||tR.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]),oe=Aoe(s,r),se=Ip(),ce=f===`system`||!f?se?.includes(`dark`)?`dark`:`light`:f,le={toasts:y,heights:S,setToastHeight:j,removeToastHeight:M,expanded:E,setExpanded:T,interacting:D,setInteracting:O,triggerDismissCooldown:ne,isInDismissCooldown:N,removeToast:ae,position:r,duration:i,gap:a,visibleToasts:o,swipeDirection:oe,swipeThreshold:c,toastHeight:l,closeButton:u,reducedMotion:v,native:m,burntOptions:h,notificationOptions:g,icons:_};return(0,R.jsx)(ER.Provider,{...le,children:(0,R.jsx)(of,{name:ce,children:n})})}),jR=z(Lm,{name:`ToastViewport`,variants:{unstyled:{false:{position:`fixed`,zIndex:1e5,pointerEvents:`box-none`,maxWidth:`100%`,width:356,minHeight:1}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),joe=jR.styleable(function(e,t){let{offset:n=SR,hotkey:r=Doe,label:i=`Notifications`,portalToRoot:a=!0,portalZIndex:o=2**53-1,children:s,...c}=e,l=DR(`Toast.Viewport`),u=b.useRef(null),d=b.useRef(null),f=b.useRef(!1),p=b.useRef(null),m=b.useRef(!1),[h,g]=l.position.split(`-`),{insets:_}=Po(),v=b.useMemo(()=>{let e={},t=typeof n==`number`?n:SR,r=typeof n==`object`?n:{top:t,right:t,bottom:t,left:t},i=_?.top??0,a=_?.bottom??0,o=i>0?i:r.top??t,s=a>0?a:r.bottom??t;return h===`top`?e.top=o:e.bottom=s,g===`left`?e.left=r.left??t:g===`right`?e.right=r.right??t:(e.left=`50%`,e.transform=`translateX(-50%)`),e},[n,h,g]);if(b.useEffect(()=>{let e=e=>{r.length>0&&r.every(t=>e[t]||e.code===t)&&(l.setExpanded(!0),u.current?.focus())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),l.toasts.length===0)return null;let y=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),x=(0,R.jsx)(jR,{ref:u,"aria-label":`${i} ${y}`,tabIndex:-1,"aria-live":`polite`,style:v,"data-y-position":h,"data-x-position":g,onMouseEnter:()=>{m.current=!0,p.current&&=(clearTimeout(p.current),null),l.toasts.length>1&&!l.interacting&&!f.current&&(d.current=setTimeout(()=>l.setExpanded(!0),50))},onMouseLeave:()=>{m.current=!1,d.current&&=(clearTimeout(d.current),null),!l.interacting&&!l.isInDismissCooldown()?l.setExpanded(!1):l.isInDismissCooldown()&&(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,m.current||l.setExpanded(!1)},1200))},onPointerDown:()=>{d.current&&=(clearTimeout(d.current),null),l.setInteracting(!0)},onPointerUp:()=>l.setInteracting(!1),onPointerCancel:()=>l.setInteracting(!1),onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||(l.toasts.length>1&&l.setExpanded(!0),l.setInteracting(!0))},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||(l.setInteracting(!1),l.isInDismissCooldown()||l.setExpanded(!1))},...c,children:s});return a?(0,R.jsx)(Sh,{zIndex:o,children:(0,R.jsx)(ER.Provider,{...l,children:x})}):x});function Moe({renderItem:e}){let t=DR(`Toast.List`),n=t.toasts.length;return(0,R.jsx)(sm,{children:t.toasts.slice(0,n).map((n,r)=>{let i=()=>{n.dismissible!==!1&&(n.onDismiss?.(n),t.removeToast(n))},a={toast:n,handleClose:i};return e?(0,R.jsx)(OR.Provider,{value:a,children:e({toast:n,index:r,handleClose:i})},n.id):(0,R.jsx)(OR.Provider,{value:a,children:(0,R.jsx)(MR,{toast:n,index:r,children:(0,R.jsx)(Noe,{toast:n})})},n.id)})})}function Noe({toast:e}){let t=DR(`Toast.Item`),{handleClose:n}=kR();e.type;let r=e.dismissible!==!1,i=typeof e.title==`function`?e.title():e.title,a=typeof e.description==`function`?e.description():e.description;return(0,R.jsxs)(V,{alignItems:`flex-start`,gap:`$3`,children:[(0,R.jsx)(IR,{}),(0,R.jsxs)(B,{flex:1,gap:`$1`,children:[i&&(0,R.jsx)(NR,{children:i}),a&&(0,R.jsx)(PR,{children:a}),(e.action||e.cancel)&&(0,R.jsxs)(V,{gap:`$2`,marginTop:`$2`,children:[e.cancel&&(0,R.jsx)(yR,{backgroundColor:`transparent`,onPress:t=>{e.cancel?.onClick?.(t),n()},children:(0,R.jsx)(H,{size:`$2`,color:`$color11`,children:e.cancel.label})}),e.action&&(0,R.jsx)(yR,{backgroundColor:`$color12`,hoverStyle:{backgroundColor:`$color11`},pressStyle:{backgroundColor:`$color10`},onPress:t=>{e.action?.onClick?.(t),t.defaultPrevented||n()},children:(0,R.jsx)(H,{size:`$2`,fontWeight:`600`,color:`$background`,children:e.action.label})})]})]}),t.closeButton&&r&&(0,R.jsx)(FR,{})]})}function Poe({animatedStyle:e,gestureHandlers:t,gesture:n,AnimatedView:r,dragRef:i,children:a}){return(0,R.jsx)(`div`,{ref:i,style:{flex:1,display:`flex`,flexDirection:`column`,userSelect:`none`,WebkitUserSelect:`none`,touchAction:`none`,cursor:`default`},...t,children:a})}var MR=_R.styleable(function(e,t){let{toast:n,index:r,children:i,...a}=e,o=DR(`Toast.Item`),[s,c]=b.useState(!1),[l,u]=b.useState(!1),[d,f]=b.useState(!1),[p,m]=b.useState(0),h=b.useRef(null),g=b.useRef(null),_=b.useRef(0),v=b.useRef(0),y=b.useRef(n.duration??o.duration),x=r===0,S=r<o.visibleToasts,C=n.type??`default`,w=n.dismissible!==!1,T=n.duration??o.duration,[E]=o.position.split(`-`),D=E===`top`,O=(()=>{let e=0,t=0;for(let n=0;n<r;n++){let r=o.toasts[n]?.id;if(r==null)continue;let i=o.heights[r];i!==0&&(e+=i??o.toastHeight,t++)}return e+t*o.gap})(),k=b.useRef(O);k.current=O;let A=b.useRef(o.expanded);A.current=o.expanded;let j=b.useCallback(()=>{T!==1/0&&C!==`loading`&&(_.current=Date.now(),g.current=setTimeout(()=>{n.onAutoClose?.(n),u(!0),setTimeout(()=>o.removeToast(n),TR)},y.current))},[T,C,n,o.removeToast]),M=Jp(()=>{if(g.current&&clearTimeout(g.current),v.current<_.current){let e=Date.now()-_.current;y.current=Math.max(0,y.current-e)}v.current=Date.now()}),ee=Jp(()=>{o.expanded||o.interacting||(y.current=T,j())});b.useEffect(()=>{c(!0)},[]),b.useEffect(()=>{n.delete&&(u(!0),A.current&&m(k.current),setTimeout(()=>o.removeToast(n),TR))},[n.delete,n,o.removeToast]),b.useEffect(()=>(o.expanded||o.interacting?M():j(),()=>{g.current&&clearTimeout(g.current)}),[o.expanded,o.interacting,j]),b.useEffect(()=>{y.current=T},[T]);let{setDragOffset:te,springBack:ne,animateOut:N,animatedStyle:P,AnimatedView:re,dragRef:ie}=fR({reducedMotion:o.reducedMotion,swipeAxis:o.swipeDirection===`up`||o.swipeDirection===`down`||o.swipeDirection===`vertical`?`vertical`:`horizontal`}),{isDragging:ae,gestureHandlers:oe,gesture:se}=cR({direction:o.swipeDirection,threshold:o.swipeThreshold,disabled:!w||C===`loading`,expanded:o.expanded,onDragStart:M,onDragMove:te,onDismiss:(e,t)=>{o.triggerDismissCooldown(),f(!0),n.onDismiss?.(n),h.current=A.current?D?k.current:-k.current:x?0:D?o.gap*r:-o.gap*r,u(!0),o.removeToast(n),N(e,t)},onCancel:()=>{ne(()=>{ee()})}}),ce=b.useCallback(e=>{if(l||!o.expanded&&r!==0)return;let{height:t}=e.nativeEvent.layout;o.setToastHeight(n.id,t)},[n.id,o.setToastHeight,r,o.expanded,l]);b.useEffect(()=>()=>{o.removeToastHeight(n.id)},[n.id,o.removeToastHeight]);let le=b.useCallback(()=>{w&&(o.triggerDismissCooldown(),n.onDismiss?.(n),u(!0),A.current&&m(k.current),setTimeout(()=>o.removeToast(n),TR))},[w,n,o.removeToast,o.triggerDismissCooldown]),ue=b.useMemo(()=>({toast:n,handleClose:le}),[n,le]),de=-1;for(let e of o.toasts){let t=o.heights[e.id];if(t!=null&&t>0){de=t;break}}let fe=!o.expanded&&!x?1-r*.05:1,pe=l?p:O,me=o.expanded?D?pe:-pe:x?0:D?o.gap*r:-o.gap*r,he=l&&!d||r>=o.visibleToasts?0:1,ge=l?0:o.visibleToasts-r+1,F=o.expanded?o.heights[n.id]||void 0:!x&&de>0?de:void 0,_e=r>=o.visibleToasts?`none`:`auto`,I=o.expanded?o.gap+1:0,ve={"data-mounted":s?`true`:`false`,"data-removed":l?`true`:`false`,"data-swipe-out":d?`true`:`false`,"data-visible":S?`true`:`false`,"data-front":x?`true`:`false`,"data-index":String(r),"data-type":C,"data-expanded":o.expanded?`true`:`false`};return(0,R.jsx)(gR,{ref:t,testID:a.testID,accessibilityLabel:a.accessibilityLabel,...ve,transition:ae||o.reducedMotion?void 0:l?`200ms`:`400ms`,animateOnly:[`transform`,`opacity`,`height`],y:me,scale:fe,opacity:he,zIndex:ge,height:F,overflow:`visible`,pointerEvents:_e,top:D?0:void 0,bottom:D?void 0:0,...!x&&{style:{transformOrigin:D?`top center`:`bottom center`}},enterStyle:o.reducedMotion?{opacity:0}:{opacity:0,y:D?-80:80},exitStyle:o.reducedMotion?{opacity:0}:d?{opacity:0,y:h.current??me,scale:fe}:{opacity:0,y:me,scale:fe},children:(0,R.jsx)(Poe,{animatedStyle:P,gestureHandlers:oe,gesture:se,AnimatedView:re,dragRef:ie,children:(0,R.jsxs)(_R,{"data-slot":`toast`,role:`status`,"aria-live":`polite`,"aria-atomic":!0,tabIndex:0,onLayout:ce,onKeyDown:e=>{if(e.key===`Escape`&&w){let t=e.currentTarget,n=t.closest(`[aria-label]`);if(n){let e=n.querySelectorAll(`[tabindex="0"]`),r=Array.from(e),i=r.indexOf(t);(r[i+1]||r[i-1])?.focus()}le()}},...a,children:[o.expanded&&I>0&&(0,R.jsx)(Lm,{position:`absolute`,left:0,right:0,height:I,pointerEvents:`auto`,...D?{top:`100%`}:{bottom:`100%`}}),(0,R.jsx)(OR.Provider,{value:ue,children:i})]})})})}),NR=z(H,{name:`ToastTitle`,variants:{unstyled:{false:{color:`$color`,fontWeight:`600`,size:`$4`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),PR=z(H,{name:`ToastDescription`,variants:{unstyled:{false:{color:`$color11`,size:`$2`}}},defaultVariants:{unstyled:{}.GUI_HEADLESS===`1`}}),FR=vR.styleable(function(e,t){let n;try{n=kR().handleClose}catch{}let r=DR(`Toast.Close`);return(0,R.jsx)(vR,{ref:t,"aria-label":`Close toast`,onPress:n,...e,children:e.children??r.icons?.close??(0,R.jsx)(bR,{})})}),Foe=yR.styleable(function(e,t){return(0,R.jsx)(yR,{ref:t,...e})});function IR(e){let t=DR(`Toast.Icon`),n;try{n=kR().toast}catch{return null}if(!n)return null;if(n.icon!==void 0)return(0,R.jsx)(Lm,{flexShrink:0,marginTop:`$0.5`,children:n.icon});let r=n.type??`default`,i=t.icons?.[r]??null;return i?(0,R.jsx)(Lm,{flexShrink:0,marginTop:`$0.5`,children:i}):null}function Ioe(){let e=DR(`useToasts`);return{toasts:e.toasts,expanded:e.expanded,position:e.position}}AR.displayName=`Toast`;var LR=Ic(AR,{Viewport:joe,List:Moe,Item:MR,Title:NR,Description:PR,Close:FR,Action:Foe,Icon:IR}),Loe={neutral:`gray`,info:`blue`,success:`green`,warning:`orange`,error:`red`},Roe={gray:{ink:`$ink`,fill:`$raised`,on:`$ink`,tint:`$hover`,ground:`var(--data-gray-1)`,edge:`var(--data-gray-6)`},blue:{ink:`var(--primary)`,fill:`var(--primary)`,on:`var(--primary-foreground)`,tint:`var(--glass-strong)`,ground:`var(--data-blue-1)`,edge:`var(--data-blue-6)`},green:{ink:`var(--state-success)`,fill:`var(--state-success)`,on:`var(--neutral-950)`,tint:`var(--state-success-bg)`,ground:`var(--data-green-1)`,edge:`var(--data-green-6)`},orange:{ink:`var(--state-warning)`,fill:`var(--state-warning)`,on:`var(--neutral-950)`,tint:`var(--state-warning-bg)`,ground:`var(--data-orange-1)`,edge:`var(--data-orange-6)`},red:{ink:`var(--state-error)`,fill:`var(--destructive)`,on:`var(--destructive-foreground)`,tint:`var(--state-error-bg)`,ground:`var(--data-red-1)`,edge:`var(--data-red-6)`}},zoe=(e,t)=>t??Loe[e??`neutral`],Boe=(e,t)=>Roe[zoe(e,t)],Voe=296,Hoe=8,Uoe=12,RR={default:`neutral`,loading:`neutral`,info:`info`,success:`success`,warning:`warning`,error:`error`},Woe={neutral:cN(`neutral`),info:cN(`info`),success:cN(`success`),warning:cN(`warning`),error:cN(`error`)},Goe={neutral:RM,info:ioe,success:PM,warning:RM,error:RM},zR=e=>typeof e==`function`?e():e,BR=e=>{let t=e.data?.progress;return typeof t==`number`&&Number.isFinite(t)?Math.max(0,Math.min(100,t)):null},Koe=e=>({...YI(2),width:e?`100%`:Voe,rounded:e?0:`$3`,borderWidth:0,p:0,overflow:`hidden`}),qoe={position:`relative`,pt:`$2`,px:`$2`,pb:`$1`};function Joe({t:e,duration:t,paused:n=!1,onClose:r,onHold:i}){let a=_N(),o=RR[e.type??`default`]??`neutral`,s=Boe(o),c=Goe[o],l=BR(e),u=zR(e.title),d=e.description?zR(e.description):null;return(0,R.jsxs)(B,{...q(`toast-body`),...qoe,...i?{onHoverIn:()=>i(!0),onHoverOut:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1)}:null,children:[l===null?t===void 0?null:(0,R.jsx)(Lm,{...q(`toast-countdown`),"data-motion":`drain`,"data-paused":n?``:void 0,position:`absolute`,t:0,l:0,r:0,b:0,bg:s.tint,pointerEvents:`none`,style:{"--drain":`${t}ms`}}):(0,R.jsx)(Lm,{...q(`toast-progress`),position:`absolute`,t:0,insetInlineStart:0,b:0,bg:s.tint,style:{width:`${l}%`,transition:`width 300ms linear`},pointerEvents:`none`}),(0,R.jsxs)(V,{...q(`toast-header`),items:`center`,gap:`$2`,mb:`$1`,minH:24,children:[(0,R.jsx)(Lm,{shrink:0,width:16,height:16,items:`center`,justify:`center`,children:e.icon??(0,R.jsx)(c,{size:16,color:s.ink,"aria-label":a.t(Woe[o])})}),(0,R.jsx)(H,{...q(`toast-message`),flex:1,size:`$1`,fontWeight:`500`,color:`$aside`,numberOfLines:2,children:u}),e.cancel?(0,R.jsx)(sF,{...q(`toast-cancel`),size:`xs`,variant:`ghost`,fontWeight:`400`,onPress:t=>{e.cancel?.onClick?.(t),r?.()},children:e.cancel.label||a.t(`Cancel`)}):null,e.dismissible===!1?null:(0,R.jsx)(sF,{...q(`toast-close`),size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":a.t(`Close`),onPress:r,children:(0,R.jsx)(HM,{})})]}),d?(0,R.jsx)(H,{...q(`toast-description`),size:`$1`,color:`$hint`,paddingInlineStart:24,maxW:224,numberOfLines:1,mb:`$1`,children:d}):null,e.action?(0,R.jsx)(B,{...q(`toast-footer`),mt:`$2`,borderTopWidth:1,borderColor:`$borderColor`,pt:`$1`,items:`flex-end`,children:(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,onPress:t=>{e.action?.onClick?.(t),t?.defaultPrevented||r?.()},children:e.action.label})}):null]})}function Yoe({t:e,index:t,fallback:n,phone:r}){let i=BR(e),a=e.duration??n,o=i===null&&e.type!==`loading`&&Number.isFinite(a)&&a>0,[s,c]=(0,b.useState)(!1),l=(0,b.useRef)(a),u=(0,b.useRef)(!1);(0,b.useEffect)(()=>{if(!o||s||u.current)return;let t=Date.now(),n=setTimeout(()=>{u.current=!0,e.onAutoClose?.(e),nR.dismiss(e.id)},l.current);return()=>{clearTimeout(n),l.current=Math.max(0,l.current-(Date.now()-t))}},[o,s,e]);let d=(0,b.useMemo)(()=>({...e,duration:1/0}),[e]),f=()=>{e.onDismiss?.(e),nR.dismiss(e.id)};return(0,R.jsx)(LR.Item,{toast:d,index:t,...Koe(r),"data-status":RR[e.type??`default`]??`neutral`,children:(0,R.jsx)(Joe,{t:e,duration:o?a:void 0,paused:s,onClose:f,onHold:c})})}function Xoe({limit:e}){let{toasts:t}=Ioe(),n=t.filter(e=>!e.delete);return(0,b.useEffect)(()=>{for(let t of n.slice(e))nR.dismiss(t.id)},[n,e]),null}var Zoe=(0,b.forwardRef)(function(e,t){let{theme:n=`system`,toastOptions:r,richColors:i,className:a,style:o,position:s,offset:c,gap:l,limit:u=3,duration:d,containerAriaLabel:f,hotkey:p,...m}=e,h=_N(),g=!!Zs()[`max-md`],_=r?.duration??d??6e3;return(0,R.jsx)(LR,{...m,theme:n,position:s??(g?`top-center`:`bottom-right`),gap:l??Hoe,visibleToasts:u,duration:1/0,children:(0,R.jsxs)(LR.Viewport,{ref:t,...q(`toaster`),offset:c??(g?0:Uoe),hotkey:p,label:f??h.t(`Notifications`),...g?{width:`100%`}:null,children:[(0,R.jsx)(Xoe,{limit:u}),(0,R.jsx)(LR.List,{renderItem:({toast:e,index:t})=>(0,R.jsx)(Yoe,{t:e,index:t,fallback:_,phone:g},e.id)})]})})});function J(e){let t={};for(let[n,r]of e)t[$oe[n]]=Qoe[r];return t}var Qoe=[`hsla(0, 0%, 10%, 1)`,`hsla(0, 0%, 67%, 1)`,`hsla(0, 0%, 100%, 0)`,`hsla(0, 0%, 97%, 0.2)`,`hsla(0, 0%, 97%, 0.4)`,`hsla(0, 0%, 97%, 0.6)`,`hsla(0, 0%, 97%, 0.8)`,`hsla(0, 0%, 100%, 1)`,`hsla(0, 0%, 97%, 1)`,`hsla(0, 0%, 93%, 1)`,`hsla(0, 0%, 85%, 1)`,`hsla(0, 0%, 80%, 1)`,`hsla(0, 0%, 70%, 1)`,`hsla(0, 0%, 59%, 1)`,`hsla(0, 0%, 45%, 1)`,`hsla(0, 0%, 30%, 1)`,`hsla(0, 0%, 20%, 1)`,`hsla(0, 0%, 14%, 1)`,`hsla(0, 0%, 2%, 1)`,`hsla(0, 0%, 2%, 0)`,`hsla(0, 0%, 2%, 0.2)`,`hsla(0, 0%, 2%, 0.4)`,`hsla(0, 0%, 2%, 0.6)`,`hsla(0, 0%, 2%, 0.8)`,`#090909`,`#151515`,`#191919`,`#232323`,`#333`,`#444`,`#666`,`#777`,`#858585`,`#aaa`,`#ccc`,`#ffffff`,`#fff`,`#f8f8f8`,`hsl(0, 0%, 93%)`,`hsl(0, 0%, 85%)`,`hsl(0, 0%, 80%)`,`hsl(0, 0%, 70%)`,`hsl(0, 0%, 59%)`,`hsl(0, 0%, 45%)`,`hsl(0, 0%, 30%)`,`hsl(0, 0%, 20%)`,`hsl(0, 0%, 14%)`,`hsl(0, 0%, 2%)`,`rgba(255,255,255,1)`,`rgba(255,255,255,0)`,`rgba(255,255,255,0.2)`,`rgba(255,255,255,0.4)`,`rgba(255,255,255,0.6)`,`rgba(255,255,255,0.8)`,`rgba(0,0,0,1)`,`rgba(0,0,0,0)`,`rgba(0,0,0,0.2)`,`rgba(0,0,0,0.4)`,`rgba(0,0,0,0.6)`,`rgba(0,0,0,0.8)`,`rgba(0,0,0,0.04)`,`rgba(0,0,0,0.08)`,`rgba(0,0,0,0.12)`,`rgba(0,0,0,0.22)`,`rgba(0,0,0,0.33)`,`rgba(0,0,0,0.44)`,`rgba(0,0,0,0.75)`,`rgba(255,255,255,0.05)`,`rgba(255,255,255,0.1)`,`rgba(255,255,255,0.15)`,`rgba(255,255,255,0.3)`,`rgba(255,255,255,0.55)`,`rgba(255,255,255,0.7)`,`rgba(255,255,255,0.85)`,`#fcfcfc`,`#f9f9f9`,`#f0f0f0`,`#e8e8e8`,`#e0e0e0`,`#d9d9d9`,`#cecece`,`#bbbbbb`,`#8d8d8d`,`#838383`,`#646464`,`#202020`,`#fbfdff`,`#f4faff`,`#e6f4fe`,`#d5efff`,`#c2e5ff`,`#acd8fc`,`#8ec8f6`,`#5eb1ef`,`#0090ff`,`#0588f0`,`#0d74ce`,`#113264`,`#fffcfc`,`#fff7f7`,`#feebec`,`#ffdbdc`,`#ffcdce`,`#fdbdbe`,`#f4a9aa`,`#eb8e90`,`#e5484d`,`#dc3e42`,`#ce2c31`,`#641723`,`#fdfdf9`,`#fefce9`,`#fffab8`,`#fff394`,`#ffe770`,`#f3d768`,`#e4c767`,`#d5ae39`,`#ffe629`,`#ffdc00`,`#9e6c00`,`#473b1f`,`#fbfefc`,`#f4fbf6`,`#e6f6eb`,`#d6f1df`,`#c4e8d1`,`#adddc0`,`#8eceaa`,`#5bb98b`,`#30a46c`,`#2b9a66`,`#218358`,`#193b2d`,`#fefcfb`,`#fff7ed`,`#ffefd6`,`#ffdfb5`,`#ffd19a`,`#ffc182`,`#f5ae73`,`#ec9455`,`#f76b15`,`#ef5f00`,`#cc4e00`,`#582d1d`,`#fffcfe`,`#fef7fb`,`#fee9f5`,`#fbdcef`,`#f6cee7`,`#efbfdd`,`#e7acd0`,`#dd93c2`,`#d6409f`,`#cf3897`,`#c2298a`,`#651249`,`#fefcfe`,`#fbf7fe`,`#f7edfe`,`#f2e2fc`,`#ead5f9`,`#e0c4f4`,`#d1afec`,`#be93e4`,`#8e4ec6`,`#8347b9`,`#8145b5`,`#402060`,`#fafefd`,`#f3fbf9`,`#e0f8f3`,`#ccf3ea`,`#b8eae0`,`#a1ded2`,`#83cdc1`,`#53b9ab`,`#12a594`,`#0d9b8a`,`#008573`,`#0d3d38`,`hsl(0, 0%, 68%)`,`hsl(0, 0%, 65%)`,`hsl(0, 0%, 62%)`,`hsl(0, 0%, 56%)`,`hsl(0, 0%, 53%)`,`hsl(0, 0%, 50%)`,`hsl(0, 0%, 47%)`,`hsl(0, 0%, 44%)`,`hsl(0, 0%, 41%)`,`hsl(0, 0%, 38%)`,`hsl(0, 0%, 32%)`,`hsla(0, 0%, 4%, 1)`,`hsla(0, 0%, 8%, 1)`,`hsla(0, 0%, 27%, 1)`,`hsla(0, 0%, 40%, 1)`,`hsla(0, 0%, 47%, 1)`,`hsla(0, 0%, 52%, 1)`,`hsla(0, 0%, 2%, 0.1)`,`hsla(0, 0%, 2%, 0.075)`,`hsla(0, 0%, 2%, 0.05)`,`hsla(0, 0%, 2%, 0.025)`,`hsla(0, 0%, 2%, 0.02)`,`hsla(0, 0%, 2%, 0.01)`,`hsla(0, 0%, 97%, 0.1)`,`hsla(0, 0%, 97%, 0.075)`,`hsla(0, 0%, 97%, 0.05)`,`hsla(0, 0%, 97%, 0.025)`,`hsla(0, 0%, 97%, 0.02)`,`hsla(0, 0%, 97%, 0.01)`,`hsla(0, 0%, 70%, 0.6)`,`hsla(0, 0%, 4%, 0)`,`hsla(0, 0%, 8%, 0.2)`,`hsla(0, 0%, 8%, 0.4)`,`hsla(0, 0%, 8%, 0.6)`,`hsla(0, 0%, 8%, 0.8)`,`hsla(0, 0%, 100%, 0.2)`,`hsla(0, 0%, 100%, 0.4)`,`hsla(0, 0%, 100%, 0.6)`,`hsla(0, 0%, 100%, 0.8)`,`rgba(0,0,0,0.15)`,`rgba(0,0,0,0.23)`,`rgba(0,0,0,0.45)`,`rgba(0,0,0,0.65)`,`rgba(0,0,0,0.9)`,`rgba(255,255,255,0.45)`,`rgba(255,255,255,0.65)`,`rgba(255,255,255,0.95)`,`#111111`,`#222222`,`#2a2a2a`,`#313131`,`#3a3a3a`,`#484848`,`#606060`,`#6e6e6e`,`#7b7b7b`,`#b4b4b4`,`#eeeeee`,`#0d1520`,`#111927`,`#0d2847`,`#003362`,`#004074`,`#104d87`,`#205d9e`,`#2870bd`,`#3b9eff`,`#70b8ff`,`#c2e6ff`,`#191111`,`#201314`,`#3b1219`,`#500f1c`,`#611623`,`#72232d`,`#8c333a`,`#b54548`,`#ec5d5e`,`#ff9592`,`#ffd1d9`,`#14120b`,`#1b180f`,`#2d2305`,`#362b00`,`#433500`,`#524202`,`#665417`,`#836a21`,`#ffff57`,`#f5e147`,`#f6eeb4`,`#0e1512`,`#121b17`,`#132d21`,`#113b29`,`#174933`,`#20573e`,`#28684a`,`#2f7c57`,`#33b074`,`#3dd68c`,`#b1f1cb`,`#17120e`,`#1e160f`,`#331e0b`,`#462100`,`#562800`,`#66350c`,`#7e451d`,`#a35829`,`#ff801f`,`#ffa057`,`#ffe0c2`,`#191117`,`#21121d`,`#37172f`,`#4b143d`,`#591c47`,`#692955`,`#833869`,`#a84885`,`#de51a8`,`#ff8dcc`,`#fdd1ea`,`#18111b`,`#1e1523`,`#301c3b`,`#3d224e`,`#48295c`,`#54346b`,`#664282`,`#8457aa`,`#9a5cd0`,`#d19dff`,`#ecd9fa`,`#0d1514`,`#111c1b`,`#0d2d2a`,`#023b37`,`#084843`,`#145750`,`#1c6961`,`#207e73`,`#0eb39e`,`#0bd8b6`,`#adf0dd`,`hsla(0, 0%, 100%, 0.1)`,`hsla(0, 0%, 100%, 0.075)`,`hsla(0, 0%, 100%, 0.05)`,`hsla(0, 0%, 100%, 0.025)`,`hsla(0, 0%, 100%, 0.02)`,`hsla(0, 0%, 100%, 0.01)`,`hsla(0, 0%, 8%, 0.1)`,`hsla(0, 0%, 8%, 0.075)`,`hsla(0, 0%, 8%, 0.05)`,`hsla(0, 0%, 8%, 0.025)`,`hsla(0, 0%, 8%, 0.02)`,`hsla(0, 0%, 8%, 0.01)`,`hsla(0, 0%, 27%, 0.6)`,`hsla(0, 0%, 99%, 0)`,`hsla(0, 0%, 98%, 0.2)`,`hsla(0, 0%, 98%, 0.4)`,`hsla(0, 0%, 98%, 0.6)`,`hsla(0, 0%, 98%, 0.8)`,`hsla(0, 0%, 99%, 1)`,`hsla(0, 0%, 98%, 1)`,`hsla(0, 0%, 94%, 1)`,`hsla(0, 0%, 91%, 1)`,`hsla(0, 0%, 88%, 1)`,`hsla(0, 0%, 81%, 1)`,`hsla(0, 0%, 73%, 1)`,`hsla(0, 0%, 55%, 1)`,`hsla(0, 0%, 51%, 1)`,`hsla(0, 0%, 39%, 1)`,`hsla(0, 0%, 13%, 1)`,`hsla(0, 0%, 13%, 0)`,`hsla(0, 0%, 13%, 0.2)`,`hsla(0, 0%, 13%, 0.4)`,`hsla(0, 0%, 13%, 0.6)`,`hsla(0, 0%, 13%, 0.8)`,`hsla(0, 0%, 13%, 0.1)`,`hsla(0, 0%, 13%, 0.075)`,`hsla(0, 0%, 13%, 0.05)`,`hsla(0, 0%, 13%, 0.025)`,`hsla(0, 0%, 13%, 0.02)`,`hsla(0, 0%, 13%, 0.01)`,`hsla(0, 0%, 98%, 0.1)`,`hsla(0, 0%, 98%, 0.075)`,`hsla(0, 0%, 98%, 0.05)`,`hsla(0, 0%, 98%, 0.025)`,`hsla(0, 0%, 98%, 0.02)`,`hsla(0, 0%, 98%, 0.01)`,`hsla(0, 0%, 85%, 0.6)`,`hsla(216, 100%, 99%, 0)`,`hsla(207, 100%, 98%, 0.2)`,`hsla(207, 100%, 98%, 0.4)`,`hsla(207, 100%, 98%, 0.6)`,`hsla(207, 100%, 98%, 0.8)`,`hsla(210, 100%, 99%, 1)`,`hsla(207, 100%, 98%, 1)`,`hsla(205, 92%, 95%, 1)`,`hsla(203, 100%, 92%, 1)`,`hsla(206, 100%, 88%, 1)`,`hsla(207, 93%, 83%, 1)`,`hsla(207, 85%, 76%, 1)`,`hsla(206, 82%, 65%, 1)`,`hsla(206, 100%, 50%, 1)`,`hsla(207, 96%, 48%, 1)`,`hsla(208, 88%, 43%, 1)`,`hsla(216, 71%, 23%, 1)`,`hsla(216, 71%, 23%, 0)`,`hsla(216, 71%, 23%, 0.2)`,`hsla(216, 71%, 23%, 0.4)`,`hsla(216, 71%, 23%, 0.6)`,`hsla(216, 71%, 23%, 0.8)`,`hsla(216, 71%, 23%, 0.1)`,`hsla(216, 71%, 23%, 0.075)`,`hsla(216, 71%, 23%, 0.05)`,`hsla(216, 71%, 23%, 0.025)`,`hsla(216, 71%, 23%, 0.02)`,`hsla(216, 71%, 23%, 0.01)`,`hsla(207, 100%, 98%, 0.1)`,`hsla(207, 100%, 98%, 0.075)`,`hsla(207, 100%, 98%, 0.05)`,`hsla(207, 100%, 98%, 0.025)`,`hsla(207, 100%, 98%, 0.02)`,`hsla(207, 100%, 98%, 0.01)`,`hsla(207, 93%, 83%, 0.6)`,`hsla(0, 100%, 99%, 0)`,`hsla(0, 100%, 98%, 0.2)`,`hsla(0, 100%, 98%, 0.4)`,`hsla(0, 100%, 98%, 0.6)`,`hsla(0, 100%, 98%, 0.8)`,`hsla(0, 100%, 99%, 1)`,`hsla(0, 100%, 98%, 1)`,`hsla(357, 90%, 96%, 1)`,`hsla(358, 100%, 93%, 1)`,`hsla(359, 100%, 90%, 1)`,`hsla(359, 94%, 87%, 1)`,`hsla(359, 77%, 81%, 1)`,`hsla(359, 70%, 74%, 1)`,`hsla(358, 75%, 59%, 1)`,`hsla(358, 69%, 55%, 1)`,`hsla(358, 65%, 49%, 1)`,`hsla(351, 63%, 24%, 1)`,`hsla(351, 63%, 24%, 0)`,`hsla(351, 63%, 24%, 0.2)`,`hsla(351, 63%, 24%, 0.4)`,`hsla(351, 63%, 24%, 0.6)`,`hsla(351, 63%, 24%, 0.8)`,`hsla(351, 63%, 24%, 0.1)`,`hsla(351, 63%, 24%, 0.075)`,`hsla(351, 63%, 24%, 0.05)`,`hsla(351, 63%, 24%, 0.025)`,`hsla(351, 63%, 24%, 0.02)`,`hsla(351, 63%, 24%, 0.01)`,`hsla(0, 100%, 98%, 0.1)`,`hsla(0, 100%, 98%, 0.075)`,`hsla(0, 100%, 98%, 0.05)`,`hsla(0, 100%, 98%, 0.025)`,`hsla(0, 100%, 98%, 0.02)`,`hsla(0, 100%, 98%, 0.01)`,`hsla(359, 94%, 87%, 0.6)`,`hsla(60, 45%, 98%, 0)`,`hsla(54, 91%, 95%, 0.2)`,`hsla(54, 91%, 95%, 0.4)`,`hsla(54, 91%, 95%, 0.6)`,`hsla(54, 91%, 95%, 0.8)`,`hsla(60, 50%, 98%, 1)`,`hsla(54, 91%, 95%, 1)`,`hsla(56, 100%, 86%, 1)`,`hsla(53, 100%, 79%, 1)`,`hsla(50, 100%, 72%, 1)`,`hsla(48, 85%, 68%, 1)`,`hsla(46, 70%, 65%, 1)`,`hsla(45, 65%, 53%, 1)`,`hsla(53, 100%, 58%, 1)`,`hsla(52, 100%, 50%, 1)`,`hsla(41, 100%, 31%, 1)`,`hsla(42, 39%, 20%, 1)`,`hsla(42, 39%, 20%, 0)`,`hsla(42, 39%, 20%, 0.2)`,`hsla(42, 39%, 20%, 0.4)`,`hsla(42, 39%, 20%, 0.6)`,`hsla(42, 39%, 20%, 0.8)`,`hsla(42, 39%, 20%, 0.1)`,`hsla(42, 39%, 20%, 0.075)`,`hsla(42, 39%, 20%, 0.05)`,`hsla(42, 39%, 20%, 0.025)`,`hsla(42, 39%, 20%, 0.02)`,`hsla(42, 39%, 20%, 0.01)`,`hsla(54, 91%, 95%, 0.1)`,`hsla(54, 91%, 95%, 0.075)`,`hsla(54, 91%, 95%, 0.05)`,`hsla(54, 91%, 95%, 0.025)`,`hsla(54, 91%, 95%, 0.02)`,`hsla(54, 91%, 95%, 0.01)`,`hsla(48, 85%, 68%, 0.6)`,`hsla(140, 60%, 99%, 0)`,`hsla(137, 47%, 97%, 0.2)`,`hsla(137, 47%, 97%, 0.4)`,`hsla(137, 47%, 97%, 0.6)`,`hsla(137, 47%, 97%, 0.8)`,`hsla(140, 60%, 99%, 1)`,`hsla(137, 47%, 97%, 1)`,`hsla(139, 47%, 93%, 1)`,`hsla(140, 49%, 89%, 1)`,`hsla(142, 44%, 84%, 1)`,`hsla(144, 41%, 77%, 1)`,`hsla(146, 40%, 68%, 1)`,`hsla(151, 40%, 54%, 1)`,`hsla(151, 55%, 42%, 1)`,`hsla(152, 56%, 39%, 1)`,`hsla(154, 60%, 32%, 1)`,`hsla(155, 40%, 16%, 1)`,`hsla(156, 41%, 16%, 0)`,`hsla(156, 41%, 16%, 0.2)`,`hsla(156, 41%, 16%, 0.4)`,`hsla(156, 41%, 16%, 0.6)`,`hsla(156, 41%, 16%, 0.8)`,`hsla(156, 41%, 16%, 0.1)`,`hsla(156, 41%, 16%, 0.075)`,`hsla(156, 41%, 16%, 0.05)`,`hsla(156, 41%, 16%, 0.025)`,`hsla(156, 41%, 16%, 0.02)`,`hsla(156, 41%, 16%, 0.01)`,`hsla(137, 47%, 97%, 0.1)`,`hsla(137, 47%, 97%, 0.075)`,`hsla(137, 47%, 97%, 0.05)`,`hsla(137, 47%, 97%, 0.025)`,`hsla(137, 47%, 97%, 0.02)`,`hsla(137, 47%, 97%, 0.01)`,`hsla(144, 41%, 77%, 0.6)`,`hsla(20, 60%, 99%, 0)`,`hsla(33, 100%, 96%, 0.2)`,`hsla(33, 100%, 96%, 0.4)`,`hsla(33, 100%, 96%, 0.6)`,`hsla(33, 100%, 96%, 0.8)`,`hsla(20, 60%, 99%, 1)`,`hsla(33, 100%, 96%, 1)`,`hsla(37, 100%, 92%, 1)`,`hsla(34, 100%, 85%, 1)`,`hsla(33, 100%, 80%, 1)`,`hsla(30, 100%, 75%, 1)`,`hsla(27, 87%, 71%, 1)`,`hsla(25, 80%, 63%, 1)`,`hsla(23, 93%, 53%, 1)`,`hsla(24, 100%, 47%, 1)`,`hsla(23, 100%, 40%, 1)`,`hsla(16, 50%, 23%, 1)`,`hsla(16, 50%, 23%, 0)`,`hsla(16, 50%, 23%, 0.2)`,`hsla(16, 50%, 23%, 0.4)`,`hsla(16, 50%, 23%, 0.6)`,`hsla(16, 50%, 23%, 0.8)`,`hsla(16, 50%, 23%, 0.1)`,`hsla(16, 50%, 23%, 0.075)`,`hsla(16, 50%, 23%, 0.05)`,`hsla(16, 50%, 23%, 0.025)`,`hsla(16, 50%, 23%, 0.02)`,`hsla(16, 50%, 23%, 0.01)`,`hsla(33, 100%, 96%, 0.1)`,`hsla(33, 100%, 96%, 0.075)`,`hsla(33, 100%, 96%, 0.05)`,`hsla(33, 100%, 96%, 0.025)`,`hsla(33, 100%, 96%, 0.02)`,`hsla(33, 100%, 96%, 0.01)`,`hsla(30, 100%, 75%, 0.6)`,`hsla(324, 100%, 99%, 0)`,`hsla(326, 78%, 98%, 0.2)`,`hsla(326, 78%, 98%, 0.4)`,`hsla(326, 78%, 98%, 0.6)`,`hsla(326, 78%, 98%, 0.8)`,`hsla(320, 100%, 99%, 1)`,`hsla(326, 78%, 98%, 1)`,`hsla(326, 91%, 95%, 1)`,`hsla(323, 79%, 92%, 1)`,`hsla(323, 69%, 89%, 1)`,`hsla(323, 60%, 84%, 1)`,`hsla(323, 55%, 79%, 1)`,`hsla(322, 52%, 72%, 1)`,`hsla(322, 65%, 55%, 1)`,`hsla(322, 61%, 52%, 1)`,`hsla(322, 65%, 46%, 1)`,`hsla(320, 70%, 23%, 1)`,`hsla(320, 69%, 23%, 0)`,`hsla(320, 69%, 23%, 0.2)`,`hsla(320, 69%, 23%, 0.4)`,`hsla(320, 69%, 23%, 0.6)`,`hsla(320, 69%, 23%, 0.8)`,`hsla(320, 69%, 23%, 0.1)`,`hsla(320, 69%, 23%, 0.075)`,`hsla(320, 69%, 23%, 0.05)`,`hsla(320, 69%, 23%, 0.025)`,`hsla(320, 69%, 23%, 0.02)`,`hsla(320, 69%, 23%, 0.01)`,`hsla(326, 78%, 98%, 0.1)`,`hsla(326, 78%, 98%, 0.075)`,`hsla(326, 78%, 98%, 0.05)`,`hsla(326, 78%, 98%, 0.025)`,`hsla(326, 78%, 98%, 0.02)`,`hsla(326, 78%, 98%, 0.01)`,`hsla(323, 60%, 84%, 0.6)`,`hsla(300, 60%, 99%, 0)`,`hsla(274, 78%, 98%, 0.2)`,`hsla(274, 78%, 98%, 0.4)`,`hsla(274, 78%, 98%, 0.6)`,`hsla(274, 78%, 98%, 0.8)`,`hsla(300, 50%, 99%, 1)`,`hsla(274, 78%, 98%, 1)`,`hsla(275, 89%, 96%, 1)`,`hsla(277, 81%, 94%, 1)`,`hsla(275, 75%, 91%, 1)`,`hsla(275, 69%, 86%, 1)`,`hsla(273, 62%, 81%, 1)`,`hsla(272, 60%, 74%, 1)`,`hsla(272, 51%, 54%, 1)`,`hsla(272, 45%, 50%, 1)`,`hsla(272, 45%, 49%, 1)`,`hsla(270, 50%, 25%, 1)`,`hsla(270, 50%, 25%, 0)`,`hsla(270, 50%, 25%, 0.2)`,`hsla(270, 50%, 25%, 0.4)`,`hsla(270, 50%, 25%, 0.6)`,`hsla(270, 50%, 25%, 0.8)`,`hsla(270, 50%, 25%, 0.1)`,`hsla(270, 50%, 25%, 0.075)`,`hsla(270, 50%, 25%, 0.05)`,`hsla(270, 50%, 25%, 0.025)`,`hsla(270, 50%, 25%, 0.02)`,`hsla(270, 50%, 25%, 0.01)`,`hsla(274, 78%, 98%, 0.1)`,`hsla(274, 78%, 98%, 0.075)`,`hsla(274, 78%, 98%, 0.05)`,`hsla(274, 78%, 98%, 0.025)`,`hsla(274, 78%, 98%, 0.02)`,`hsla(274, 78%, 98%, 0.01)`,`hsla(275, 69%, 86%, 0.6)`,`hsla(160, 60%, 99%, 0)`,`hsla(165, 50%, 97%, 0.2)`,`hsla(165, 50%, 97%, 0.4)`,`hsla(165, 50%, 97%, 0.6)`,`hsla(165, 50%, 97%, 0.8)`,`hsla(165, 67%, 99%, 1)`,`hsla(165, 50%, 97%, 1)`,`hsla(167, 63%, 93%, 1)`,`hsla(166, 62%, 88%, 1)`,`hsla(168, 54%, 82%, 1)`,`hsla(168, 48%, 75%, 1)`,`hsla(170, 43%, 66%, 1)`,`hsla(172, 42%, 53%, 1)`,`hsla(173, 80%, 36%, 1)`,`hsla(173, 85%, 33%, 1)`,`hsla(172, 100%, 26%, 1)`,`hsla(174, 65%, 15%, 1)`,`hsla(174, 66%, 15%, 0)`,`hsla(174, 66%, 15%, 0.2)`,`hsla(174, 66%, 15%, 0.4)`,`hsla(174, 66%, 15%, 0.6)`,`hsla(174, 66%, 15%, 0.8)`,`hsla(174, 66%, 15%, 0.1)`,`hsla(174, 66%, 15%, 0.075)`,`hsla(174, 66%, 15%, 0.05)`,`hsla(174, 66%, 15%, 0.025)`,`hsla(174, 66%, 15%, 0.02)`,`hsla(174, 66%, 15%, 0.01)`,`hsla(165, 50%, 97%, 0.1)`,`hsla(165, 50%, 97%, 0.075)`,`hsla(165, 50%, 97%, 0.05)`,`hsla(165, 50%, 97%, 0.025)`,`hsla(165, 50%, 97%, 0.02)`,`hsla(165, 50%, 97%, 0.01)`,`hsla(168, 48%, 75%, 0.6)`,`hsla(0, 0%, 68%, 0)`,`hsla(0, 0%, 65%, 0.2)`,`hsla(0, 0%, 65%, 0.4)`,`hsla(0, 0%, 65%, 0.6)`,`hsla(0, 0%, 65%, 0.8)`,`hsla(0, 0%, 68%, 1)`,`hsla(0, 0%, 65%, 1)`,`hsla(0, 0%, 62%, 1)`,`hsla(0, 0%, 56%, 1)`,`hsla(0, 0%, 53%, 1)`,`hsla(0, 0%, 50%, 1)`,`hsla(0, 0%, 44%, 1)`,`hsla(0, 0%, 41%, 1)`,`hsla(0, 0%, 38%, 1)`,`hsla(0, 0%, 32%, 1)`,`hsla(0, 0%, 32%, 0)`,`hsla(0, 0%, 32%, 0.2)`,`hsla(0, 0%, 32%, 0.4)`,`hsla(0, 0%, 32%, 0.6)`,`hsla(0, 0%, 32%, 0.8)`,`hsla(0, 0%, 32%, 0.1)`,`hsla(0, 0%, 32%, 0.075)`,`hsla(0, 0%, 32%, 0.05)`,`hsla(0, 0%, 32%, 0.025)`,`hsla(0, 0%, 32%, 0.02)`,`hsla(0, 0%, 32%, 0.01)`,`hsla(0, 0%, 65%, 0.1)`,`hsla(0, 0%, 65%, 0.075)`,`hsla(0, 0%, 65%, 0.05)`,`hsla(0, 0%, 65%, 0.025)`,`hsla(0, 0%, 65%, 0.02)`,`hsla(0, 0%, 65%, 0.01)`,`hsla(0, 0%, 53%, 0.6)`,`hsla(0, 0%, 7%, 0)`,`hsla(0, 0%, 10%, 0.2)`,`hsla(0, 0%, 10%, 0.4)`,`hsla(0, 0%, 10%, 0.6)`,`hsla(0, 0%, 10%, 0.8)`,`hsla(0, 0%, 7%, 1)`,`hsla(0, 0%, 16%, 1)`,`hsla(0, 0%, 19%, 1)`,`hsla(0, 0%, 23%, 1)`,`hsla(0, 0%, 28%, 1)`,`hsla(0, 0%, 43%, 1)`,`hsla(0, 0%, 48%, 1)`,`hsla(0, 0%, 71%, 1)`,`hsla(0, 0%, 93%, 0)`,`hsla(0, 0%, 93%, 0.2)`,`hsla(0, 0%, 93%, 0.4)`,`hsla(0, 0%, 93%, 0.6)`,`hsla(0, 0%, 93%, 0.8)`,`hsla(0, 0%, 93%, 0.1)`,`hsla(0, 0%, 93%, 0.075)`,`hsla(0, 0%, 93%, 0.05)`,`hsla(0, 0%, 93%, 0.025)`,`hsla(0, 0%, 93%, 0.02)`,`hsla(0, 0%, 93%, 0.01)`,`hsla(0, 0%, 10%, 0.1)`,`hsla(0, 0%, 10%, 0.075)`,`hsla(0, 0%, 10%, 0.05)`,`hsla(0, 0%, 10%, 0.025)`,`hsla(0, 0%, 10%, 0.02)`,`hsla(0, 0%, 10%, 0.01)`,`hsla(0, 0%, 23%, 0.6)`,`hsla(216, 43%, 9%, 0)`,`hsla(218, 39%, 11%, 0.2)`,`hsla(218, 39%, 11%, 0.4)`,`hsla(218, 39%, 11%, 0.6)`,`hsla(218, 39%, 11%, 0.8)`,`hsla(215, 42%, 9%, 1)`,`hsla(218, 39%, 11%, 1)`,`hsla(212, 69%, 16%, 1)`,`hsla(209, 100%, 19%, 1)`,`hsla(207, 100%, 23%, 1)`,`hsla(209, 79%, 30%, 1)`,`hsla(211, 66%, 37%, 1)`,`hsla(211, 65%, 45%, 1)`,`hsla(210, 100%, 62%, 1)`,`hsla(210, 100%, 72%, 1)`,`hsla(205, 100%, 88%, 1)`,`hsla(205, 100%, 88%, 0)`,`hsla(205, 100%, 88%, 0.2)`,`hsla(205, 100%, 88%, 0.4)`,`hsla(205, 100%, 88%, 0.6)`,`hsla(205, 100%, 88%, 0.8)`,`hsla(205, 100%, 88%, 0.1)`,`hsla(205, 100%, 88%, 0.075)`,`hsla(205, 100%, 88%, 0.05)`,`hsla(205, 100%, 88%, 0.025)`,`hsla(205, 100%, 88%, 0.02)`,`hsla(205, 100%, 88%, 0.01)`,`hsla(218, 39%, 11%, 0.1)`,`hsla(218, 39%, 11%, 0.075)`,`hsla(218, 39%, 11%, 0.05)`,`hsla(218, 39%, 11%, 0.025)`,`hsla(218, 39%, 11%, 0.02)`,`hsla(218, 39%, 11%, 0.01)`,`hsla(209, 79%, 30%, 0.6)`,`hsla(0, 17%, 8%, 0)`,`hsla(355, 25%, 10%, 0.2)`,`hsla(355, 25%, 10%, 0.4)`,`hsla(355, 25%, 10%, 0.6)`,`hsla(355, 25%, 10%, 0.8)`,`hsla(0, 19%, 8%, 1)`,`hsla(355, 25%, 10%, 1)`,`hsla(350, 53%, 15%, 1)`,`hsla(348, 68%, 19%, 1)`,`hsla(350, 63%, 23%, 1)`,`hsla(352, 53%, 29%, 1)`,`hsla(355, 47%, 37%, 1)`,`hsla(358, 45%, 49%, 1)`,`hsla(360, 79%, 65%, 1)`,`hsla(2, 100%, 79%, 1)`,`hsla(350, 100%, 91%, 1)`,`hsla(350, 100%, 91%, 0)`,`hsla(350, 100%, 91%, 0.2)`,`hsla(350, 100%, 91%, 0.4)`,`hsla(350, 100%, 91%, 0.6)`,`hsla(350, 100%, 91%, 0.8)`,`hsla(350, 100%, 91%, 0.1)`,`hsla(350, 100%, 91%, 0.075)`,`hsla(350, 100%, 91%, 0.05)`,`hsla(350, 100%, 91%, 0.025)`,`hsla(350, 100%, 91%, 0.02)`,`hsla(350, 100%, 91%, 0.01)`,`hsla(355, 25%, 10%, 0.1)`,`hsla(355, 25%, 10%, 0.075)`,`hsla(355, 25%, 10%, 0.05)`,`hsla(355, 25%, 10%, 0.025)`,`hsla(355, 25%, 10%, 0.02)`,`hsla(355, 25%, 10%, 0.01)`,`hsla(352, 53%, 29%, 0.6)`,`hsla(47, 29%, 6%, 0)`,`hsla(45, 29%, 8%, 0.2)`,`hsla(45, 29%, 8%, 0.4)`,`hsla(45, 29%, 8%, 0.6)`,`hsla(45, 29%, 8%, 0.8)`,`hsla(47, 29%, 6%, 1)`,`hsla(45, 29%, 8%, 1)`,`hsla(45, 80%, 10%, 1)`,`hsla(48, 100%, 11%, 1)`,`hsla(47, 100%, 13%, 1)`,`hsla(48, 95%, 16%, 1)`,`hsla(46, 63%, 25%, 1)`,`hsla(45, 60%, 32%, 1)`,`hsla(60, 100%, 67%, 1)`,`hsla(53, 90%, 62%, 1)`,`hsla(53, 79%, 84%, 1)`,`hsla(53, 78%, 84%, 0)`,`hsla(53, 78%, 84%, 0.2)`,`hsla(53, 78%, 84%, 0.4)`,`hsla(53, 78%, 84%, 0.6)`,`hsla(53, 78%, 84%, 0.8)`,`hsla(53, 78%, 84%, 0.1)`,`hsla(53, 78%, 84%, 0.075)`,`hsla(53, 78%, 84%, 0.05)`,`hsla(53, 78%, 84%, 0.025)`,`hsla(53, 78%, 84%, 0.02)`,`hsla(53, 78%, 84%, 0.01)`,`hsla(45, 29%, 8%, 0.1)`,`hsla(45, 29%, 8%, 0.075)`,`hsla(45, 29%, 8%, 0.05)`,`hsla(45, 29%, 8%, 0.025)`,`hsla(45, 29%, 8%, 0.02)`,`hsla(45, 29%, 8%, 0.01)`,`hsla(48, 95%, 16%, 0.6)`,`hsla(154, 20%, 7%, 0)`,`hsla(153, 20%, 9%, 0.2)`,`hsla(153, 20%, 9%, 0.4)`,`hsla(153, 20%, 9%, 0.6)`,`hsla(153, 20%, 9%, 0.8)`,`hsla(154, 20%, 7%, 1)`,`hsla(153, 20%, 9%, 1)`,`hsla(152, 41%, 13%, 1)`,`hsla(154, 55%, 15%, 1)`,`hsla(154, 52%, 19%, 1)`,`hsla(153, 46%, 23%, 1)`,`hsla(152, 44%, 28%, 1)`,`hsla(151, 45%, 34%, 1)`,`hsla(151, 55%, 45%, 1)`,`hsla(151, 65%, 54%, 1)`,`hsla(144, 70%, 82%, 1)`,`hsla(144, 70%, 82%, 0)`,`hsla(144, 70%, 82%, 0.2)`,`hsla(144, 70%, 82%, 0.4)`,`hsla(144, 70%, 82%, 0.6)`,`hsla(144, 70%, 82%, 0.8)`,`hsla(144, 70%, 82%, 0.1)`,`hsla(144, 70%, 82%, 0.075)`,`hsla(144, 70%, 82%, 0.05)`,`hsla(144, 70%, 82%, 0.025)`,`hsla(144, 70%, 82%, 0.02)`,`hsla(144, 70%, 82%, 0.01)`,`hsla(153, 20%, 9%, 0.1)`,`hsla(153, 20%, 9%, 0.075)`,`hsla(153, 20%, 9%, 0.05)`,`hsla(153, 20%, 9%, 0.025)`,`hsla(153, 20%, 9%, 0.02)`,`hsla(153, 20%, 9%, 0.01)`,`hsla(153, 46%, 23%, 0.6)`,`hsla(23, 22%, 7%, 0)`,`hsla(28, 33%, 9%, 0.2)`,`hsla(28, 33%, 9%, 0.4)`,`hsla(28, 33%, 9%, 0.6)`,`hsla(28, 33%, 9%, 0.8)`,`hsla(27, 24%, 7%, 1)`,`hsla(28, 33%, 9%, 1)`,`hsla(29, 65%, 12%, 1)`,`hsla(28, 100%, 14%, 1)`,`hsla(28, 100%, 17%, 1)`,`hsla(27, 79%, 22%, 1)`,`hsla(25, 63%, 30%, 1)`,`hsla(23, 60%, 40%, 1)`,`hsla(26, 100%, 56%, 1)`,`hsla(26, 100%, 67%, 1)`,`hsla(30, 100%, 88%, 1)`,`hsla(30, 100%, 88%, 0)`,`hsla(30, 100%, 88%, 0.2)`,`hsla(30, 100%, 88%, 0.4)`,`hsla(30, 100%, 88%, 0.6)`,`hsla(30, 100%, 88%, 0.8)`,`hsla(30, 100%, 88%, 0.1)`,`hsla(30, 100%, 88%, 0.075)`,`hsla(30, 100%, 88%, 0.05)`,`hsla(30, 100%, 88%, 0.025)`,`hsla(30, 100%, 88%, 0.02)`,`hsla(30, 100%, 88%, 0.01)`,`hsla(28, 33%, 9%, 0.1)`,`hsla(28, 33%, 9%, 0.075)`,`hsla(28, 33%, 9%, 0.05)`,`hsla(28, 33%, 9%, 0.025)`,`hsla(28, 33%, 9%, 0.02)`,`hsla(28, 33%, 9%, 0.01)`,`hsla(27, 79%, 22%, 0.6)`,`hsla(317, 17%, 8%, 0)`,`hsla(316, 29%, 10%, 0.2)`,`hsla(316, 29%, 10%, 0.4)`,`hsla(316, 29%, 10%, 0.6)`,`hsla(316, 29%, 10%, 0.8)`,`hsla(315, 19%, 8%, 1)`,`hsla(316, 29%, 10%, 1)`,`hsla(315, 41%, 15%, 1)`,`hsla(315, 58%, 19%, 1)`,`hsla(318, 52%, 23%, 1)`,`hsla(319, 44%, 29%, 1)`,`hsla(321, 40%, 37%, 1)`,`hsla(322, 40%, 47%, 1)`,`hsla(323, 68%, 59%, 1)`,`hsla(327, 100%, 78%, 1)`,`hsla(326, 92%, 91%, 1)`,`hsla(326, 91%, 91%, 0)`,`hsla(326, 91%, 91%, 0.2)`,`hsla(326, 91%, 91%, 0.4)`,`hsla(326, 91%, 91%, 0.6)`,`hsla(326, 91%, 91%, 0.8)`,`hsla(326, 91%, 91%, 0.1)`,`hsla(326, 91%, 91%, 0.075)`,`hsla(326, 91%, 91%, 0.05)`,`hsla(326, 91%, 91%, 0.025)`,`hsla(326, 91%, 91%, 0.02)`,`hsla(326, 91%, 91%, 0.01)`,`hsla(316, 29%, 10%, 0.1)`,`hsla(316, 29%, 10%, 0.075)`,`hsla(316, 29%, 10%, 0.05)`,`hsla(316, 29%, 10%, 0.025)`,`hsla(316, 29%, 10%, 0.02)`,`hsla(316, 29%, 10%, 0.01)`,`hsla(319, 44%, 29%, 0.6)`,`hsla(282, 22%, 9%, 0)`,`hsla(279, 25%, 11%, 0.2)`,`hsla(279, 25%, 11%, 0.4)`,`hsla(279, 25%, 11%, 0.6)`,`hsla(279, 25%, 11%, 0.8)`,`hsla(282, 23%, 9%, 1)`,`hsla(279, 25%, 11%, 1)`,`hsla(279, 36%, 17%, 1)`,`hsla(277, 39%, 22%, 1)`,`hsla(276, 38%, 26%, 1)`,`hsla(275, 35%, 31%, 1)`,`hsla(274, 33%, 38%, 1)`,`hsla(273, 33%, 50%, 1)`,`hsla(272, 55%, 59%, 1)`,`hsla(272, 100%, 81%, 1)`,`hsla(275, 77%, 92%, 1)`,`hsla(275, 76%, 92%, 0)`,`hsla(275, 76%, 92%, 0.2)`,`hsla(275, 76%, 92%, 0.4)`,`hsla(275, 76%, 92%, 0.6)`,`hsla(275, 76%, 92%, 0.8)`,`hsla(275, 76%, 92%, 0.1)`,`hsla(275, 76%, 92%, 0.075)`,`hsla(275, 76%, 92%, 0.05)`,`hsla(275, 76%, 92%, 0.025)`,`hsla(275, 76%, 92%, 0.02)`,`hsla(275, 76%, 92%, 0.01)`,`hsla(279, 25%, 11%, 0.1)`,`hsla(279, 25%, 11%, 0.075)`,`hsla(279, 25%, 11%, 0.05)`,`hsla(279, 25%, 11%, 0.025)`,`hsla(279, 25%, 11%, 0.02)`,`hsla(279, 25%, 11%, 0.01)`,`hsla(275, 35%, 31%, 0.6)`,`hsla(173, 22%, 7%, 0)`,`hsla(175, 24%, 9%, 0.2)`,`hsla(175, 24%, 9%, 0.4)`,`hsla(175, 24%, 9%, 0.6)`,`hsla(175, 24%, 9%, 0.8)`,`hsla(173, 24%, 7%, 1)`,`hsla(175, 24%, 9%, 1)`,`hsla(174, 55%, 11%, 1)`,`hsla(176, 93%, 12%, 1)`,`hsla(175, 80%, 16%, 1)`,`hsla(174, 63%, 21%, 1)`,`hsla(174, 58%, 26%, 1)`,`hsla(173, 59%, 31%, 1)`,`hsla(172, 85%, 38%, 1)`,`hsla(170, 90%, 45%, 1)`,`hsla(163, 69%, 81%, 1)`,`hsla(163, 69%, 81%, 0)`,`hsla(163, 69%, 81%, 0.2)`,`hsla(163, 69%, 81%, 0.4)`,`hsla(163, 69%, 81%, 0.6)`,`hsla(163, 69%, 81%, 0.8)`,`hsla(163, 69%, 81%, 0.1)`,`hsla(163, 69%, 81%, 0.075)`,`hsla(163, 69%, 81%, 0.05)`,`hsla(163, 69%, 81%, 0.025)`,`hsla(163, 69%, 81%, 0.02)`,`hsla(163, 69%, 81%, 0.01)`,`hsla(175, 24%, 9%, 0.1)`,`hsla(175, 24%, 9%, 0.075)`,`hsla(175, 24%, 9%, 0.05)`,`hsla(175, 24%, 9%, 0.025)`,`hsla(175, 24%, 9%, 0.02)`,`hsla(175, 24%, 9%, 0.01)`,`hsla(174, 63%, 21%, 0.6)`,`hsla(0, 0%, 4%, 0.2)`,`hsla(0, 0%, 4%, 0.4)`,`hsla(0, 0%, 4%, 0.6)`,`hsla(0, 0%, 4%, 0.8)`,`hsla(0, 0%, 99%, 0.2)`,`hsla(0, 0%, 99%, 0.4)`,`hsla(0, 0%, 99%, 0.6)`,`hsla(0, 0%, 99%, 0.8)`,`hsla(216, 100%, 99%, 0.2)`,`hsla(216, 100%, 99%, 0.4)`,`hsla(216, 100%, 99%, 0.6)`,`hsla(216, 100%, 99%, 0.8)`,`hsla(0, 100%, 99%, 0.2)`,`hsla(0, 100%, 99%, 0.4)`,`hsla(0, 100%, 99%, 0.6)`,`hsla(0, 100%, 99%, 0.8)`,`hsla(60, 45%, 98%, 0.2)`,`hsla(60, 45%, 98%, 0.4)`,`hsla(60, 45%, 98%, 0.6)`,`hsla(60, 45%, 98%, 0.8)`,`hsla(140, 60%, 99%, 0.2)`,`hsla(140, 60%, 99%, 0.4)`,`hsla(140, 60%, 99%, 0.6)`,`hsla(140, 60%, 99%, 0.8)`,`hsla(20, 60%, 99%, 0.2)`,`hsla(20, 60%, 99%, 0.4)`,`hsla(20, 60%, 99%, 0.6)`,`hsla(20, 60%, 99%, 0.8)`,`hsla(324, 100%, 99%, 0.2)`,`hsla(324, 100%, 99%, 0.4)`,`hsla(324, 100%, 99%, 0.6)`,`hsla(324, 100%, 99%, 0.8)`,`hsla(300, 60%, 99%, 0.2)`,`hsla(300, 60%, 99%, 0.4)`,`hsla(300, 60%, 99%, 0.6)`,`hsla(300, 60%, 99%, 0.8)`,`hsla(160, 60%, 99%, 0.2)`,`hsla(160, 60%, 99%, 0.4)`,`hsla(160, 60%, 99%, 0.6)`,`hsla(160, 60%, 99%, 0.8)`,`hsla(0, 0%, 68%, 0.2)`,`hsla(0, 0%, 68%, 0.4)`,`hsla(0, 0%, 68%, 0.6)`,`hsla(0, 0%, 68%, 0.8)`,`hsla(0, 0%, 7%, 0.2)`,`hsla(0, 0%, 7%, 0.4)`,`hsla(0, 0%, 7%, 0.6)`,`hsla(0, 0%, 7%, 0.8)`,`hsla(216, 43%, 9%, 0.2)`,`hsla(216, 43%, 9%, 0.4)`,`hsla(216, 43%, 9%, 0.6)`,`hsla(216, 43%, 9%, 0.8)`,`hsla(0, 17%, 8%, 0.2)`,`hsla(0, 17%, 8%, 0.4)`,`hsla(0, 17%, 8%, 0.6)`,`hsla(0, 17%, 8%, 0.8)`,`hsla(47, 29%, 6%, 0.2)`,`hsla(47, 29%, 6%, 0.4)`,`hsla(47, 29%, 6%, 0.6)`,`hsla(47, 29%, 6%, 0.8)`,`hsla(154, 20%, 7%, 0.2)`,`hsla(154, 20%, 7%, 0.4)`,`hsla(154, 20%, 7%, 0.6)`,`hsla(154, 20%, 7%, 0.8)`,`hsla(23, 22%, 7%, 0.2)`,`hsla(23, 22%, 7%, 0.4)`,`hsla(23, 22%, 7%, 0.6)`,`hsla(23, 22%, 7%, 0.8)`,`hsla(317, 17%, 8%, 0.2)`,`hsla(317, 17%, 8%, 0.4)`,`hsla(317, 17%, 8%, 0.6)`,`hsla(317, 17%, 8%, 0.8)`,`hsla(282, 22%, 9%, 0.2)`,`hsla(282, 22%, 9%, 0.4)`,`hsla(282, 22%, 9%, 0.6)`,`hsla(282, 22%, 9%, 0.8)`,`hsla(173, 22%, 7%, 0.2)`,`hsla(173, 22%, 7%, 0.4)`,`hsla(173, 22%, 7%, 0.6)`,`hsla(173, 22%, 7%, 0.8)`],$oe=`accentBackground.accentColor.background0.background02.background04.background06.background08.color1.color2.color3.color4.color5.color6.color7.color8.color9.color10.color11.color12.color0.color02.color04.color06.color08.color.colorHover.colorPress.colorFocus.background.backgroundHover.backgroundPress.backgroundFocus.backgroundActive.borderColor.borderColorHover.borderColorFocus.borderColorPress.placeholderColor.colorTransparent.black1.black2.black3.black4.black5.black6.black7.black8.black9.black10.black11.black12.white1.white2.white3.white4.white5.white6.white7.white8.white9.white10.white11.white12.white.white0.white02.white04.white06.white08.black.black0.black02.black04.black06.black08.shadow1.shadow2.shadow3.shadow4.shadow5.shadow6.shadow7.shadow8.highlight1.highlight2.highlight3.highlight4.highlight5.highlight6.highlight7.highlight8.shadowColor.gray1.gray2.gray3.gray4.gray5.gray6.gray7.gray8.gray9.gray10.gray11.gray12.blue1.blue2.blue3.blue4.blue5.blue6.blue7.blue8.blue9.blue10.blue11.blue12.red1.red2.red3.red4.red5.red6.red7.red8.red9.red10.red11.red12.yellow1.yellow2.yellow3.yellow4.yellow5.yellow6.yellow7.yellow8.yellow9.yellow10.yellow11.yellow12.green1.green2.green3.green4.green5.green6.green7.green8.green9.green10.green11.green12.orange1.orange2.orange3.orange4.orange5.orange6.orange7.orange8.orange9.orange10.orange11.orange12.pink1.pink2.pink3.pink4.pink5.pink6.pink7.pink8.pink9.pink10.pink11.pink12.purple1.purple2.purple3.purple4.purple5.purple6.purple7.purple8.purple9.purple10.purple11.purple12.teal1.teal2.teal3.teal4.teal5.teal6.teal7.teal8.teal9.teal10.teal11.teal12.neutral1.neutral2.neutral3.neutral4.neutral5.neutral6.neutral7.neutral8.neutral9.neutral10.neutral11.neutral12.accent1.accent2.accent3.accent4.accent5.accent6.accent7.accent8.accent9.accent10.accent11.accent12.color01.color0075.color005.color0025.color002.color001.background01.background0075.background005.background0025.background002.background001.outlineColor`.split(`.`),ese=J([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,18],[25,18],[26,18],[27,23],[28,8],[29,7],[30,9],[31,9],[32,8],[33,10],[34,9],[35,10],[36,11],[37,15],[38,19],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,60],[76,61],[77,62],[78,63],[79,64],[80,65],[81,58],[82,66],[83,67],[84,68],[85,69],[86,70],[87,51],[88,71],[89,72],[90,73],[91,62],[92,74],[93,75],[94,76],[95,77],[96,78],[97,79],[98,80],[99,81],[100,82],[101,83],[102,84],[103,85],[104,86],[105,87],[106,88],[107,89],[108,90],[109,91],[110,92],[111,93],[112,94],[113,95],[114,96],[115,97],[116,98],[117,99],[118,100],[119,101],[120,102],[121,103],[122,104],[123,105],[124,106],[125,107],[126,108],[127,109],[128,110],[129,111],[130,112],[131,113],[132,114],[133,115],[134,116],[135,117],[136,118],[137,119],[138,120],[139,121],[140,122],[141,123],[142,124],[143,125],[144,126],[145,127],[146,128],[147,129],[148,130],[149,131],[150,132],[151,133],[152,134],[153,135],[154,136],[155,137],[156,138],[157,139],[158,140],[159,141],[160,142],[161,143],[162,144],[163,145],[164,146],[165,147],[166,148],[167,149],[168,150],[169,151],[170,152],[171,153],[172,154],[173,155],[174,156],[175,157],[176,158],[177,159],[178,160],[179,161],[180,162],[181,163],[182,164],[183,165],[184,166],[185,167],[186,168],[187,169],[188,170],[189,171],[190,172],[191,173],[192,174],[193,175],[194,176],[195,177],[196,178],[197,179],[198,180],[199,181],[200,182],[201,183],[202,184],[203,42],[204,185],[205,186],[206,187],[207,188],[208,189],[209,190],[210,191],[211,192],[212,193],[213,194],[214,0],[215,17],[216,16],[217,195],[218,196],[219,197],[220,198],[221,1],[222,11],[223,7],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),tse=J([[0,16],[1,9],[2,212],[3,213],[4,214],[5,215],[6,216],[7,193],[8,194],[9,0],[10,17],[11,16],[12,195],[13,196],[14,197],[15,198],[16,1],[17,11],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,220],[26,7],[27,11],[28,194],[29,0],[30,193],[31,0],[32,194],[33,17],[34,16],[35,17],[36,0],[37,198],[38,2],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,221],[76,222],[77,64],[78,223],[79,224],[80,59],[81,225],[82,54],[83,68],[84,50],[85,70],[86,226],[87,227],[88,73],[89,228],[90,48],[91,64],[92,229],[93,26],[94,230],[95,231],[96,232],[97,233],[98,234],[99,235],[100,236],[101,237],[102,238],[103,239],[104,240],[105,241],[106,242],[107,243],[108,244],[109,245],[110,246],[111,247],[112,94],[113,248],[114,249],[115,250],[116,251],[117,252],[118,253],[119,254],[120,255],[121,256],[122,257],[123,258],[124,106],[125,259],[126,260],[127,261],[128,262],[129,263],[130,264],[131,265],[132,266],[133,267],[134,268],[135,269],[136,118],[137,270],[138,271],[139,272],[140,273],[141,274],[142,275],[143,276],[144,277],[145,278],[146,279],[147,280],[148,130],[149,281],[150,282],[151,283],[152,284],[153,285],[154,286],[155,287],[156,288],[157,289],[158,290],[159,291],[160,142],[161,292],[162,293],[163,294],[164,295],[165,296],[166,297],[167,298],[168,299],[169,300],[170,301],[171,302],[172,154],[173,303],[174,304],[175,305],[176,306],[177,307],[178,308],[179,309],[180,310],[181,311],[182,312],[183,313],[184,166],[185,314],[186,315],[187,316],[188,317],[189,318],[190,319],[191,320],[192,321],[193,322],[194,323],[195,324],[196,178],[197,325],[198,326],[199,327],[200,182],[201,183],[202,184],[203,42],[204,185],[205,186],[206,187],[207,188],[208,189],[209,190],[210,191],[211,192],[212,7],[213,8],[214,9],[215,10],[216,11],[217,12],[218,13],[219,14],[220,15],[221,16],[222,17],[223,18],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),nse=J([[0,9],[1,16],[2,212],[3,213],[4,214],[5,215],[6,216],[7,193],[8,194],[9,0],[10,17],[11,16],[12,195],[13,196],[14,197],[15,198],[16,1],[17,11],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,7],[26,7],[27,220],[28,194],[29,193],[30,0],[31,0],[32,194],[33,17],[34,0],[35,17],[36,16],[37,198],[38,2],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),rse=J([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,18],[25,23],[26,18],[27,17],[28,8],[29,9],[30,7],[31,9],[32,8],[33,10],[34,11],[35,10],[36,9],[37,15],[38,19],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),ise=J([[0,0],[1,1],[2,212],[3,213],[4,214],[5,215],[6,216],[7,193],[8,194],[9,0],[10,17],[11,16],[12,195],[13,196],[14,197],[15,198],[16,1],[17,11],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,7],[26,7],[27,220],[28,194],[29,193],[30,0],[31,0],[32,194],[33,17],[34,0],[35,17],[36,16],[37,198],[38,2],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),ase=J([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,18],[25,18],[26,18],[27,23],[28,8],[29,7],[30,9],[31,9],[32,8],[33,10],[34,9],[35,10],[36,11],[37,15],[38,19],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),ose=J([[0,0],[1,1],[2,341],[3,342],[4,343],[5,344],[6,345],[7,346],[8,347],[9,348],[10,349],[11,350],[12,10],[13,351],[14,352],[15,353],[16,354],[17,355],[18,356],[19,357],[20,358],[21,359],[22,360],[23,361],[24,356],[25,356],[26,356],[27,361],[28,347],[29,346],[30,348],[31,348],[32,347],[33,349],[34,348],[35,349],[36,350],[37,353],[38,357],[224,362],[225,363],[226,364],[227,365],[228,366],[229,367],[230,368],[231,369],[232,370],[233,371],[234,372],[235,373],[236,374]]),sse=J([[0,0],[1,1],[2,375],[3,376],[4,377],[5,378],[6,379],[7,380],[8,381],[9,382],[10,383],[11,384],[12,385],[13,386],[14,387],[15,388],[16,389],[17,390],[18,391],[19,392],[20,393],[21,394],[22,395],[23,396],[24,391],[25,391],[26,391],[27,396],[28,381],[29,380],[30,382],[31,382],[32,381],[33,383],[34,382],[35,383],[36,384],[37,388],[38,392],[224,397],[225,398],[226,399],[227,400],[228,401],[229,402],[230,403],[231,404],[232,405],[233,406],[234,407],[235,408],[236,409]]),cse=J([[0,0],[1,1],[2,410],[3,411],[4,412],[5,413],[6,414],[7,415],[8,416],[9,417],[10,418],[11,419],[12,420],[13,421],[14,422],[15,423],[16,424],[17,425],[18,426],[19,427],[20,428],[21,429],[22,430],[23,431],[24,426],[25,426],[26,426],[27,431],[28,416],[29,415],[30,417],[31,417],[32,416],[33,418],[34,417],[35,418],[36,419],[37,423],[38,427],[224,432],[225,433],[226,434],[227,435],[228,436],[229,437],[230,438],[231,439],[232,440],[233,441],[234,442],[235,443],[236,444]]),lse=J([[0,0],[1,1],[2,445],[3,446],[4,447],[5,448],[6,449],[7,450],[8,451],[9,452],[10,453],[11,454],[12,455],[13,456],[14,457],[15,458],[16,459],[17,460],[18,461],[19,462],[20,463],[21,464],[22,465],[23,466],[24,461],[25,461],[26,461],[27,466],[28,451],[29,450],[30,452],[31,452],[32,451],[33,453],[34,452],[35,453],[36,454],[37,458],[38,462],[224,467],[225,468],[226,469],[227,470],[228,471],[229,472],[230,473],[231,474],[232,475],[233,476],[234,477],[235,478],[236,479]]),use=J([[0,0],[1,1],[2,480],[3,481],[4,482],[5,483],[6,484],[7,485],[8,486],[9,487],[10,488],[11,489],[12,490],[13,491],[14,492],[15,493],[16,494],[17,495],[18,496],[19,497],[20,498],[21,499],[22,500],[23,501],[24,496],[25,496],[26,496],[27,501],[28,486],[29,485],[30,487],[31,487],[32,486],[33,488],[34,487],[35,488],[36,489],[37,493],[38,497],[224,502],[225,503],[226,504],[227,505],[228,506],[229,507],[230,508],[231,509],[232,510],[233,511],[234,512],[235,513],[236,514]]),dse=J([[0,0],[1,1],[2,515],[3,516],[4,517],[5,518],[6,519],[7,520],[8,521],[9,522],[10,523],[11,524],[12,525],[13,526],[14,527],[15,528],[16,529],[17,530],[18,531],[19,532],[20,533],[21,534],[22,535],[23,536],[24,531],[25,531],[26,531],[27,536],[28,521],[29,520],[30,522],[31,522],[32,521],[33,523],[34,522],[35,523],[36,524],[37,528],[38,532],[224,537],[225,538],[226,539],[227,540],[228,541],[229,542],[230,543],[231,544],[232,545],[233,546],[234,547],[235,548],[236,549]]),fse=J([[0,0],[1,1],[2,550],[3,551],[4,552],[5,553],[6,554],[7,555],[8,556],[9,557],[10,558],[11,559],[12,560],[13,561],[14,562],[15,563],[16,564],[17,565],[18,566],[19,567],[20,568],[21,569],[22,570],[23,571],[24,566],[25,566],[26,566],[27,571],[28,556],[29,555],[30,557],[31,557],[32,556],[33,558],[34,557],[35,558],[36,559],[37,563],[38,567],[224,572],[225,573],[226,574],[227,575],[228,576],[229,577],[230,578],[231,579],[232,580],[233,581],[234,582],[235,583],[236,584]]),pse=J([[0,0],[1,1],[2,585],[3,586],[4,587],[5,588],[6,589],[7,590],[8,591],[9,592],[10,593],[11,594],[12,595],[13,596],[14,597],[15,598],[16,599],[17,600],[18,601],[19,602],[20,603],[21,604],[22,605],[23,606],[24,601],[25,601],[26,601],[27,606],[28,591],[29,590],[30,592],[31,592],[32,591],[33,593],[34,592],[35,593],[36,594],[37,598],[38,602],[224,607],[225,608],[226,609],[227,610],[228,611],[229,612],[230,613],[231,614],[232,615],[233,616],[234,617],[235,618],[236,619]]),mse=J([[0,0],[1,1],[2,620],[3,621],[4,622],[5,623],[6,624],[7,625],[8,626],[9,627],[10,628],[11,629],[12,630],[13,631],[14,632],[15,633],[16,634],[17,635],[18,636],[19,637],[20,638],[21,639],[22,640],[23,641],[24,636],[25,636],[26,636],[27,641],[28,626],[29,625],[30,627],[31,627],[32,626],[33,628],[34,627],[35,628],[36,629],[37,633],[38,637],[224,642],[225,643],[226,644],[227,645],[228,646],[229,647],[230,648],[231,649],[232,650],[233,651],[234,652],[235,653],[236,654]]),hse=J([[0,0],[1,1],[2,655],[3,656],[4,657],[5,658],[6,659],[7,660],[8,661],[9,662],[10,13],[11,663],[12,664],[13,665],[14,197],[15,666],[16,667],[17,668],[18,669],[19,670],[20,671],[21,672],[22,673],[23,674],[24,669],[25,669],[26,669],[27,674],[28,661],[29,660],[30,662],[31,662],[32,661],[33,13],[34,662],[35,13],[36,663],[37,666],[38,670],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[236,687]]),gse=J([[0,16],[1,9],[2,212],[3,213],[4,214],[5,215],[6,216],[7,193],[8,194],[9,0],[10,17],[11,16],[12,195],[13,196],[14,197],[15,198],[16,1],[17,11],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,220],[26,7],[27,11],[28,194],[29,0],[30,193],[31,0],[32,194],[33,17],[34,16],[35,17],[36,0],[37,198],[38,2],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),_se=J([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,18],[25,23],[26,18],[27,17],[28,8],[29,9],[30,7],[31,9],[32,8],[33,10],[34,11],[35,10],[36,9],[37,15],[38,19],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),vse=J([[0,16],[1,9],[2,688],[3,689],[4,690],[5,691],[6,692],[7,693],[8,0],[9,356],[10,694],[11,695],[12,696],[13,697],[14,668],[15,698],[16,699],[17,700],[18,9],[19,701],[20,702],[21,703],[22,704],[23,705],[24,9],[25,705],[26,9],[27,700],[28,0],[29,356],[30,693],[31,356],[32,0],[33,694],[34,695],[35,694],[36,356],[37,698],[38,701],[224,706],[225,707],[226,708],[227,709],[228,710],[229,711],[230,712],[231,713],[232,714],[233,715],[234,716],[235,717],[236,718]]),yse=J([[0,16],[1,9],[2,719],[3,720],[4,721],[5,722],[6,723],[7,724],[8,725],[9,726],[10,727],[11,728],[12,729],[13,730],[14,731],[15,388],[16,732],[17,733],[18,734],[19,735],[20,736],[21,737],[22,738],[23,739],[24,734],[25,739],[26,734],[27,733],[28,725],[29,726],[30,724],[31,726],[32,725],[33,727],[34,728],[35,727],[36,726],[37,388],[38,735],[224,740],[225,741],[226,742],[227,743],[228,744],[229,745],[230,746],[231,747],[232,748],[233,749],[234,750],[235,751],[236,752]]),bse=J([[0,16],[1,9],[2,753],[3,754],[4,755],[5,756],[6,757],[7,758],[8,759],[9,760],[10,761],[11,762],[12,763],[13,764],[14,765],[15,423],[16,766],[17,767],[18,768],[19,769],[20,770],[21,771],[22,772],[23,773],[24,768],[25,773],[26,768],[27,767],[28,759],[29,760],[30,758],[31,760],[32,759],[33,761],[34,762],[35,761],[36,760],[37,423],[38,769],[224,774],[225,775],[226,776],[227,777],[228,778],[229,779],[230,780],[231,781],[232,782],[233,783],[234,784],[235,785],[236,786]]),xse=J([[0,16],[1,9],[2,787],[3,788],[4,789],[5,790],[6,791],[7,792],[8,793],[9,794],[10,795],[11,796],[12,797],[13,798],[14,799],[15,458],[16,800],[17,801],[18,802],[19,803],[20,804],[21,805],[22,806],[23,807],[24,802],[25,807],[26,802],[27,801],[28,793],[29,794],[30,792],[31,794],[32,793],[33,795],[34,796],[35,795],[36,794],[37,458],[38,803],[224,808],[225,809],[226,810],[227,811],[228,812],[229,813],[230,814],[231,815],[232,816],[233,817],[234,818],[235,819],[236,820]]),Sse=J([[0,16],[1,9],[2,821],[3,822],[4,823],[5,824],[6,825],[7,826],[8,827],[9,828],[10,829],[11,830],[12,831],[13,832],[14,833],[15,493],[16,834],[17,835],[18,836],[19,837],[20,838],[21,839],[22,840],[23,841],[24,836],[25,841],[26,836],[27,835],[28,827],[29,828],[30,826],[31,828],[32,827],[33,829],[34,830],[35,829],[36,828],[37,493],[38,837],[224,842],[225,843],[226,844],[227,845],[228,846],[229,847],[230,848],[231,849],[232,850],[233,851],[234,852],[235,853],[236,854]]),Cse=J([[0,16],[1,9],[2,855],[3,856],[4,857],[5,858],[6,859],[7,860],[8,861],[9,862],[10,863],[11,864],[12,865],[13,866],[14,867],[15,528],[16,868],[17,869],[18,870],[19,871],[20,872],[21,873],[22,874],[23,875],[24,870],[25,875],[26,870],[27,869],[28,861],[29,862],[30,860],[31,862],[32,861],[33,863],[34,864],[35,863],[36,862],[37,528],[38,871],[224,876],[225,877],[226,878],[227,879],[228,880],[229,881],[230,882],[231,883],[232,884],[233,885],[234,886],[235,887],[236,888]]),wse=J([[0,16],[1,9],[2,889],[3,890],[4,891],[5,892],[6,893],[7,894],[8,895],[9,896],[10,897],[11,898],[12,899],[13,900],[14,901],[15,563],[16,902],[17,903],[18,904],[19,905],[20,906],[21,907],[22,908],[23,909],[24,904],[25,909],[26,904],[27,903],[28,895],[29,896],[30,894],[31,896],[32,895],[33,897],[34,898],[35,897],[36,896],[37,563],[38,905],[224,910],[225,911],[226,912],[227,913],[228,914],[229,915],[230,916],[231,917],[232,918],[233,919],[234,920],[235,921],[236,922]]),Tse=J([[0,16],[1,9],[2,923],[3,924],[4,925],[5,926],[6,927],[7,928],[8,929],[9,930],[10,931],[11,932],[12,933],[13,934],[14,935],[15,598],[16,936],[17,937],[18,938],[19,939],[20,940],[21,941],[22,942],[23,943],[24,938],[25,943],[26,938],[27,937],[28,929],[29,930],[30,928],[31,930],[32,929],[33,931],[34,932],[35,931],[36,930],[37,598],[38,939],[224,944],[225,945],[226,946],[227,947],[228,948],[229,949],[230,950],[231,951],[232,952],[233,953],[234,954],[235,955],[236,956]]),Ese=J([[0,16],[1,9],[2,957],[3,958],[4,959],[5,960],[6,961],[7,962],[8,963],[9,964],[10,965],[11,966],[12,967],[13,968],[14,969],[15,633],[16,970],[17,971],[18,972],[19,973],[20,974],[21,975],[22,976],[23,977],[24,972],[25,977],[26,972],[27,971],[28,963],[29,964],[30,962],[31,964],[32,963],[33,965],[34,966],[35,965],[36,964],[37,633],[38,973],[224,978],[225,979],[226,980],[227,981],[228,982],[229,983],[230,984],[231,985],[232,986],[233,987],[234,988],[235,989],[236,990]]),Dse=J([[0,16],[1,9],[2,655],[3,656],[4,657],[5,658],[6,659],[7,660],[8,661],[9,662],[10,13],[11,663],[12,664],[13,665],[14,197],[15,666],[16,667],[17,668],[18,669],[19,670],[20,671],[21,672],[22,673],[23,674],[24,669],[25,674],[26,669],[27,668],[28,661],[29,662],[30,660],[31,662],[32,661],[33,13],[34,663],[35,13],[36,662],[37,666],[38,670],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[236,687]]),VR=J([[24,17],[25,17],[26,17],[27,18],[28,9],[29,8],[30,10],[31,11],[32,9],[33,11],[34,10],[35,11],[36,12],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),HR=J([[24,17],[25,17],[26,17],[27,18],[28,10],[29,9],[30,11],[31,13],[32,10],[33,12],[34,11],[35,12],[36,13],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),UR=J([[24,11],[25,7],[26,11],[27,1],[28,0],[29,17],[30,194],[31,16],[32,0],[33,16],[34,195],[35,16],[36,17],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),WR=J([[24,11],[25,7],[26,11],[27,1],[28,17],[29,16],[30,0],[31,196],[32,17],[33,195],[34,196],[35,195],[36,16],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),GR=J([[0,1],[1,0],[2,2],[3,213],[4,214],[5,215],[6,216],[7,7],[8,11],[9,1],[10,198],[11,197],[12,196],[13,195],[14,16],[15,17],[16,0],[17,194],[18,193],[19,212],[20,991],[21,992],[22,993],[23,994],[24,193],[25,193],[26,193],[27,994],[28,11],[29,7],[30,1],[31,1],[32,11],[33,198],[34,1],[35,198],[36,197],[37,17],[38,212],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),KR=J([[24,11],[25,11],[26,11],[27,7],[28,0],[29,194],[30,17],[31,16],[32,0],[33,16],[34,17],[35,16],[36,195],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),qR=J([[24,11],[25,11],[26,11],[27,7],[28,17],[29,0],[30,16],[31,196],[32,17],[33,195],[34,16],[35,195],[36,196],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),JR=J([[0,1],[1,0],[2,19],[3,3],[4,4],[5,5],[6,6],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,7],[26,7],[27,220],[28,17],[29,18],[30,16],[31,16],[32,17],[33,15],[34,16],[35,15],[36,14],[37,10],[38,2],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),YR=J([[0,1],[1,0],[2,357],[3,342],[4,343],[5,344],[6,345],[7,356],[8,355],[9,354],[10,353],[11,352],[12,351],[13,10],[14,350],[15,349],[16,348],[17,347],[18,346],[19,341],[20,995],[21,996],[22,997],[23,998],[24,346],[25,346],[26,346],[27,998],[28,355],[29,356],[30,354],[31,354],[32,355],[33,353],[34,354],[35,353],[36,352],[37,349],[38,341],[224,362],[225,363],[226,364],[227,365],[228,366],[229,367],[230,368],[231,369],[232,370],[233,371],[234,372],[235,373],[236,374]]),XR=J([[24,355],[25,355],[26,355],[27,356],[28,348],[29,347],[30,349],[31,350],[32,348],[33,350],[34,349],[35,350],[36,10],[224,362],[225,363],[226,364],[227,365],[228,366],[229,367],[230,368],[231,369],[232,370],[233,371],[234,372],[235,373],[3,342],[4,343],[5,344],[6,345],[236,374]]),ZR=J([[24,355],[25,355],[26,355],[27,356],[28,349],[29,348],[30,350],[31,351],[32,349],[33,10],[34,350],[35,10],[36,351],[224,362],[225,363],[226,364],[227,365],[228,366],[229,367],[230,368],[231,369],[232,370],[233,371],[234,372],[235,373],[3,342],[4,343],[5,344],[6,345],[236,374]]),QR=J([[0,1],[1,0],[2,392],[3,376],[4,377],[5,378],[6,379],[7,391],[8,390],[9,389],[10,388],[11,387],[12,386],[13,385],[14,384],[15,383],[16,382],[17,381],[18,380],[19,375],[20,999],[21,1e3],[22,1001],[23,1002],[24,380],[25,380],[26,380],[27,1002],[28,390],[29,391],[30,389],[31,389],[32,390],[33,388],[34,389],[35,388],[36,387],[37,383],[38,375],[224,397],[225,398],[226,399],[227,400],[228,401],[229,402],[230,403],[231,404],[232,405],[233,406],[234,407],[235,408],[236,409]]),$R=J([[24,390],[25,390],[26,390],[27,391],[28,382],[29,381],[30,383],[31,384],[32,382],[33,384],[34,383],[35,384],[36,385],[224,397],[225,398],[226,399],[227,400],[228,401],[229,402],[230,403],[231,404],[232,405],[233,406],[234,407],[235,408],[3,376],[4,377],[5,378],[6,379],[236,409]]),ez=J([[24,390],[25,390],[26,390],[27,391],[28,383],[29,382],[30,384],[31,386],[32,383],[33,385],[34,384],[35,385],[36,386],[224,397],[225,398],[226,399],[227,400],[228,401],[229,402],[230,403],[231,404],[232,405],[233,406],[234,407],[235,408],[3,376],[4,377],[5,378],[6,379],[236,409]]),tz=J([[0,1],[1,0],[2,427],[3,411],[4,412],[5,413],[6,414],[7,426],[8,425],[9,424],[10,423],[11,422],[12,421],[13,420],[14,419],[15,418],[16,417],[17,416],[18,415],[19,410],[20,1003],[21,1004],[22,1005],[23,1006],[24,415],[25,415],[26,415],[27,1006],[28,425],[29,426],[30,424],[31,424],[32,425],[33,423],[34,424],[35,423],[36,422],[37,418],[38,410],[224,432],[225,433],[226,434],[227,435],[228,436],[229,437],[230,438],[231,439],[232,440],[233,441],[234,442],[235,443],[236,444]]),nz=J([[24,425],[25,425],[26,425],[27,426],[28,417],[29,416],[30,418],[31,419],[32,417],[33,419],[34,418],[35,419],[36,420],[224,432],[225,433],[226,434],[227,435],[228,436],[229,437],[230,438],[231,439],[232,440],[233,441],[234,442],[235,443],[3,411],[4,412],[5,413],[6,414],[236,444]]),rz=J([[24,425],[25,425],[26,425],[27,426],[28,418],[29,417],[30,419],[31,421],[32,418],[33,420],[34,419],[35,420],[36,421],[224,432],[225,433],[226,434],[227,435],[228,436],[229,437],[230,438],[231,439],[232,440],[233,441],[234,442],[235,443],[3,411],[4,412],[5,413],[6,414],[236,444]]),iz=J([[0,1],[1,0],[2,462],[3,446],[4,447],[5,448],[6,449],[7,461],[8,460],[9,459],[10,458],[11,457],[12,456],[13,455],[14,454],[15,453],[16,452],[17,451],[18,450],[19,445],[20,1007],[21,1008],[22,1009],[23,1010],[24,450],[25,450],[26,450],[27,1010],[28,460],[29,461],[30,459],[31,459],[32,460],[33,458],[34,459],[35,458],[36,457],[37,453],[38,445],[224,467],[225,468],[226,469],[227,470],[228,471],[229,472],[230,473],[231,474],[232,475],[233,476],[234,477],[235,478],[236,479]]),az=J([[24,460],[25,460],[26,460],[27,461],[28,452],[29,451],[30,453],[31,454],[32,452],[33,454],[34,453],[35,454],[36,455],[224,467],[225,468],[226,469],[227,470],[228,471],[229,472],[230,473],[231,474],[232,475],[233,476],[234,477],[235,478],[3,446],[4,447],[5,448],[6,449],[236,479]]),oz=J([[24,460],[25,460],[26,460],[27,461],[28,453],[29,452],[30,454],[31,456],[32,453],[33,455],[34,454],[35,455],[36,456],[224,467],[225,468],[226,469],[227,470],[228,471],[229,472],[230,473],[231,474],[232,475],[233,476],[234,477],[235,478],[3,446],[4,447],[5,448],[6,449],[236,479]]),sz=J([[0,1],[1,0],[2,497],[3,481],[4,482],[5,483],[6,484],[7,496],[8,495],[9,494],[10,493],[11,492],[12,491],[13,490],[14,489],[15,488],[16,487],[17,486],[18,485],[19,480],[20,1011],[21,1012],[22,1013],[23,1014],[24,485],[25,485],[26,485],[27,1014],[28,495],[29,496],[30,494],[31,494],[32,495],[33,493],[34,494],[35,493],[36,492],[37,488],[38,480],[224,502],[225,503],[226,504],[227,505],[228,506],[229,507],[230,508],[231,509],[232,510],[233,511],[234,512],[235,513],[236,514]]),cz=J([[24,495],[25,495],[26,495],[27,496],[28,487],[29,486],[30,488],[31,489],[32,487],[33,489],[34,488],[35,489],[36,490],[224,502],[225,503],[226,504],[227,505],[228,506],[229,507],[230,508],[231,509],[232,510],[233,511],[234,512],[235,513],[3,481],[4,482],[5,483],[6,484],[236,514]]),lz=J([[24,495],[25,495],[26,495],[27,496],[28,488],[29,487],[30,489],[31,491],[32,488],[33,490],[34,489],[35,490],[36,491],[224,502],[225,503],[226,504],[227,505],[228,506],[229,507],[230,508],[231,509],[232,510],[233,511],[234,512],[235,513],[3,481],[4,482],[5,483],[6,484],[236,514]]),uz=J([[0,1],[1,0],[2,532],[3,516],[4,517],[5,518],[6,519],[7,531],[8,530],[9,529],[10,528],[11,527],[12,526],[13,525],[14,524],[15,523],[16,522],[17,521],[18,520],[19,515],[20,1015],[21,1016],[22,1017],[23,1018],[24,520],[25,520],[26,520],[27,1018],[28,530],[29,531],[30,529],[31,529],[32,530],[33,528],[34,529],[35,528],[36,527],[37,523],[38,515],[224,537],[225,538],[226,539],[227,540],[228,541],[229,542],[230,543],[231,544],[232,545],[233,546],[234,547],[235,548],[236,549]]),dz=J([[24,530],[25,530],[26,530],[27,531],[28,522],[29,521],[30,523],[31,524],[32,522],[33,524],[34,523],[35,524],[36,525],[224,537],[225,538],[226,539],[227,540],[228,541],[229,542],[230,543],[231,544],[232,545],[233,546],[234,547],[235,548],[3,516],[4,517],[5,518],[6,519],[236,549]]),fz=J([[24,530],[25,530],[26,530],[27,531],[28,523],[29,522],[30,524],[31,526],[32,523],[33,525],[34,524],[35,525],[36,526],[224,537],[225,538],[226,539],[227,540],[228,541],[229,542],[230,543],[231,544],[232,545],[233,546],[234,547],[235,548],[3,516],[4,517],[5,518],[6,519],[236,549]]),pz=J([[0,1],[1,0],[2,567],[3,551],[4,552],[5,553],[6,554],[7,566],[8,565],[9,564],[10,563],[11,562],[12,561],[13,560],[14,559],[15,558],[16,557],[17,556],[18,555],[19,550],[20,1019],[21,1020],[22,1021],[23,1022],[24,555],[25,555],[26,555],[27,1022],[28,565],[29,566],[30,564],[31,564],[32,565],[33,563],[34,564],[35,563],[36,562],[37,558],[38,550],[224,572],[225,573],[226,574],[227,575],[228,576],[229,577],[230,578],[231,579],[232,580],[233,581],[234,582],[235,583],[236,584]]),mz=J([[24,565],[25,565],[26,565],[27,566],[28,557],[29,556],[30,558],[31,559],[32,557],[33,559],[34,558],[35,559],[36,560],[224,572],[225,573],[226,574],[227,575],[228,576],[229,577],[230,578],[231,579],[232,580],[233,581],[234,582],[235,583],[3,551],[4,552],[5,553],[6,554],[236,584]]),hz=J([[24,565],[25,565],[26,565],[27,566],[28,558],[29,557],[30,559],[31,561],[32,558],[33,560],[34,559],[35,560],[36,561],[224,572],[225,573],[226,574],[227,575],[228,576],[229,577],[230,578],[231,579],[232,580],[233,581],[234,582],[235,583],[3,551],[4,552],[5,553],[6,554],[236,584]]),gz=J([[0,1],[1,0],[2,602],[3,586],[4,587],[5,588],[6,589],[7,601],[8,600],[9,599],[10,598],[11,597],[12,596],[13,595],[14,594],[15,593],[16,592],[17,591],[18,590],[19,585],[20,1023],[21,1024],[22,1025],[23,1026],[24,590],[25,590],[26,590],[27,1026],[28,600],[29,601],[30,599],[31,599],[32,600],[33,598],[34,599],[35,598],[36,597],[37,593],[38,585],[224,607],[225,608],[226,609],[227,610],[228,611],[229,612],[230,613],[231,614],[232,615],[233,616],[234,617],[235,618],[236,619]]),_z=J([[24,600],[25,600],[26,600],[27,601],[28,592],[29,591],[30,593],[31,594],[32,592],[33,594],[34,593],[35,594],[36,595],[224,607],[225,608],[226,609],[227,610],[228,611],[229,612],[230,613],[231,614],[232,615],[233,616],[234,617],[235,618],[3,586],[4,587],[5,588],[6,589],[236,619]]),vz=J([[24,600],[25,600],[26,600],[27,601],[28,593],[29,592],[30,594],[31,596],[32,593],[33,595],[34,594],[35,595],[36,596],[224,607],[225,608],[226,609],[227,610],[228,611],[229,612],[230,613],[231,614],[232,615],[233,616],[234,617],[235,618],[3,586],[4,587],[5,588],[6,589],[236,619]]),yz=J([[0,1],[1,0],[2,637],[3,621],[4,622],[5,623],[6,624],[7,636],[8,635],[9,634],[10,633],[11,632],[12,631],[13,630],[14,629],[15,628],[16,627],[17,626],[18,625],[19,620],[20,1027],[21,1028],[22,1029],[23,1030],[24,625],[25,625],[26,625],[27,1030],[28,635],[29,636],[30,634],[31,634],[32,635],[33,633],[34,634],[35,633],[36,632],[37,628],[38,620],[224,642],[225,643],[226,644],[227,645],[228,646],[229,647],[230,648],[231,649],[232,650],[233,651],[234,652],[235,653],[236,654]]),bz=J([[24,635],[25,635],[26,635],[27,636],[28,627],[29,626],[30,628],[31,629],[32,627],[33,629],[34,628],[35,629],[36,630],[224,642],[225,643],[226,644],[227,645],[228,646],[229,647],[230,648],[231,649],[232,650],[233,651],[234,652],[235,653],[3,621],[4,622],[5,623],[6,624],[236,654]]),xz=J([[24,635],[25,635],[26,635],[27,636],[28,628],[29,627],[30,629],[31,631],[32,628],[33,630],[34,629],[35,630],[36,631],[224,642],[225,643],[226,644],[227,645],[228,646],[229,647],[230,648],[231,649],[232,650],[233,651],[234,652],[235,653],[3,621],[4,622],[5,623],[6,624],[236,654]]),Sz=J([[0,1],[1,0],[2,670],[3,656],[4,657],[5,658],[6,659],[7,669],[8,668],[9,667],[10,666],[11,197],[12,665],[13,664],[14,663],[15,13],[16,662],[17,661],[18,660],[19,655],[20,1031],[21,1032],[22,1033],[23,1034],[24,660],[25,660],[26,660],[27,1034],[28,668],[29,669],[30,667],[31,667],[32,668],[33,666],[34,667],[35,666],[36,197],[37,13],[38,655],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[236,687]]),Cz=J([[24,668],[25,668],[26,668],[27,669],[28,662],[29,661],[30,13],[31,663],[32,662],[33,663],[34,13],[35,663],[36,664],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),wz=J([[24,668],[25,668],[26,668],[27,669],[28,13],[29,662],[30,663],[31,665],[32,13],[33,664],[34,663],[35,664],[36,665],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),Tz=J([[0,9],[1,16],[2,2],[3,213],[4,214],[5,215],[6,216],[7,7],[8,11],[9,1],[10,198],[11,197],[12,196],[13,195],[14,16],[15,17],[16,0],[17,194],[18,193],[19,212],[20,991],[21,992],[22,993],[23,994],[24,193],[25,994],[26,193],[27,194],[28,11],[29,1],[30,7],[31,1],[32,11],[33,198],[34,197],[35,198],[36,1],[37,17],[38,212],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[236,340]]),Ez=J([[0,9],[1,16],[2,19],[3,3],[4,4],[5,5],[6,6],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,217],[21,218],[22,219],[23,220],[24,7],[25,220],[26,7],[27,8],[28,17],[29,16],[30,18],[31,16],[32,17],[33,15],[34,14],[35,15],[36,16],[37,10],[38,2],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[236,211]]),Dz=J([[24,17],[25,18],[26,17],[27,16],[28,9],[29,10],[30,8],[31,11],[32,9],[33,11],[34,12],[35,11],[36,10],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),Oz=J([[24,17],[25,18],[26,17],[27,16],[28,10],[29,11],[30,9],[31,13],[32,10],[33,12],[34,13],[35,12],[36,11],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),kz=J([[0,9],[1,16],[2,701],[3,689],[4,690],[5,691],[6,692],[7,9],[8,700],[9,699],[10,698],[11,668],[12,697],[13,696],[14,695],[15,694],[16,356],[17,0],[18,693],[19,688],[20,1035],[21,1036],[22,1037],[23,1038],[24,693],[25,1038],[26,693],[27,0],[28,700],[29,699],[30,9],[31,699],[32,700],[33,698],[34,668],[35,698],[36,699],[37,694],[38,688],[224,706],[225,707],[226,708],[227,709],[228,710],[229,711],[230,712],[231,713],[232,714],[233,715],[234,716],[235,717],[236,718]]),Az=J([[24,700],[25,9],[26,700],[27,699],[28,356],[29,694],[30,0],[31,695],[32,356],[33,695],[34,696],[35,695],[36,694],[224,706],[225,707],[226,708],[227,709],[228,710],[229,711],[230,712],[231,713],[232,714],[233,715],[234,716],[235,717],[3,689],[4,690],[5,691],[6,692],[236,718]]),jz=J([[24,700],[25,9],[26,700],[27,699],[28,694],[29,695],[30,356],[31,697],[32,694],[33,696],[34,697],[35,696],[36,695],[224,706],[225,707],[226,708],[227,709],[228,710],[229,711],[230,712],[231,713],[232,714],[233,715],[234,716],[235,717],[3,689],[4,690],[5,691],[6,692],[236,718]]),Mz=J([[0,9],[1,16],[2,735],[3,720],[4,721],[5,722],[6,723],[7,734],[8,733],[9,732],[10,388],[11,731],[12,730],[13,729],[14,728],[15,727],[16,726],[17,725],[18,724],[19,719],[20,1039],[21,1040],[22,1041],[23,1042],[24,724],[25,1042],[26,724],[27,725],[28,733],[29,732],[30,734],[31,732],[32,733],[33,388],[34,731],[35,388],[36,732],[37,727],[38,719],[224,740],[225,741],[226,742],[227,743],[228,744],[229,745],[230,746],[231,747],[232,748],[233,749],[234,750],[235,751],[236,752]]),Nz=J([[24,733],[25,734],[26,733],[27,732],[28,726],[29,727],[30,725],[31,728],[32,726],[33,728],[34,729],[35,728],[36,727],[224,740],[225,741],[226,742],[227,743],[228,744],[229,745],[230,746],[231,747],[232,748],[233,749],[234,750],[235,751],[3,720],[4,721],[5,722],[6,723],[236,752]]),Pz=J([[24,733],[25,734],[26,733],[27,732],[28,727],[29,728],[30,726],[31,730],[32,727],[33,729],[34,730],[35,729],[36,728],[224,740],[225,741],[226,742],[227,743],[228,744],[229,745],[230,746],[231,747],[232,748],[233,749],[234,750],[235,751],[3,720],[4,721],[5,722],[6,723],[236,752]]),Fz=J([[0,9],[1,16],[2,769],[3,754],[4,755],[5,756],[6,757],[7,768],[8,767],[9,766],[10,423],[11,765],[12,764],[13,763],[14,762],[15,761],[16,760],[17,759],[18,758],[19,753],[20,1043],[21,1044],[22,1045],[23,1046],[24,758],[25,1046],[26,758],[27,759],[28,767],[29,766],[30,768],[31,766],[32,767],[33,423],[34,765],[35,423],[36,766],[37,761],[38,753],[224,774],[225,775],[226,776],[227,777],[228,778],[229,779],[230,780],[231,781],[232,782],[233,783],[234,784],[235,785],[236,786]]),Iz=J([[24,767],[25,768],[26,767],[27,766],[28,760],[29,761],[30,759],[31,762],[32,760],[33,762],[34,763],[35,762],[36,761],[224,774],[225,775],[226,776],[227,777],[228,778],[229,779],[230,780],[231,781],[232,782],[233,783],[234,784],[235,785],[3,754],[4,755],[5,756],[6,757],[236,786]]),Lz=J([[24,767],[25,768],[26,767],[27,766],[28,761],[29,762],[30,760],[31,764],[32,761],[33,763],[34,764],[35,763],[36,762],[224,774],[225,775],[226,776],[227,777],[228,778],[229,779],[230,780],[231,781],[232,782],[233,783],[234,784],[235,785],[3,754],[4,755],[5,756],[6,757],[236,786]]),Rz=J([[0,9],[1,16],[2,803],[3,788],[4,789],[5,790],[6,791],[7,802],[8,801],[9,800],[10,458],[11,799],[12,798],[13,797],[14,796],[15,795],[16,794],[17,793],[18,792],[19,787],[20,1047],[21,1048],[22,1049],[23,1050],[24,792],[25,1050],[26,792],[27,793],[28,801],[29,800],[30,802],[31,800],[32,801],[33,458],[34,799],[35,458],[36,800],[37,795],[38,787],[224,808],[225,809],[226,810],[227,811],[228,812],[229,813],[230,814],[231,815],[232,816],[233,817],[234,818],[235,819],[236,820]]),zz=J([[24,801],[25,802],[26,801],[27,800],[28,794],[29,795],[30,793],[31,796],[32,794],[33,796],[34,797],[35,796],[36,795],[224,808],[225,809],[226,810],[227,811],[228,812],[229,813],[230,814],[231,815],[232,816],[233,817],[234,818],[235,819],[3,788],[4,789],[5,790],[6,791],[236,820]]),Bz=J([[24,801],[25,802],[26,801],[27,800],[28,795],[29,796],[30,794],[31,798],[32,795],[33,797],[34,798],[35,797],[36,796],[224,808],[225,809],[226,810],[227,811],[228,812],[229,813],[230,814],[231,815],[232,816],[233,817],[234,818],[235,819],[3,788],[4,789],[5,790],[6,791],[236,820]]),Vz=J([[0,9],[1,16],[2,837],[3,822],[4,823],[5,824],[6,825],[7,836],[8,835],[9,834],[10,493],[11,833],[12,832],[13,831],[14,830],[15,829],[16,828],[17,827],[18,826],[19,821],[20,1051],[21,1052],[22,1053],[23,1054],[24,826],[25,1054],[26,826],[27,827],[28,835],[29,834],[30,836],[31,834],[32,835],[33,493],[34,833],[35,493],[36,834],[37,829],[38,821],[224,842],[225,843],[226,844],[227,845],[228,846],[229,847],[230,848],[231,849],[232,850],[233,851],[234,852],[235,853],[236,854]]),Hz=J([[24,835],[25,836],[26,835],[27,834],[28,828],[29,829],[30,827],[31,830],[32,828],[33,830],[34,831],[35,830],[36,829],[224,842],[225,843],[226,844],[227,845],[228,846],[229,847],[230,848],[231,849],[232,850],[233,851],[234,852],[235,853],[3,822],[4,823],[5,824],[6,825],[236,854]]),Uz=J([[24,835],[25,836],[26,835],[27,834],[28,829],[29,830],[30,828],[31,832],[32,829],[33,831],[34,832],[35,831],[36,830],[224,842],[225,843],[226,844],[227,845],[228,846],[229,847],[230,848],[231,849],[232,850],[233,851],[234,852],[235,853],[3,822],[4,823],[5,824],[6,825],[236,854]]),Wz=J([[0,9],[1,16],[2,871],[3,856],[4,857],[5,858],[6,859],[7,870],[8,869],[9,868],[10,528],[11,867],[12,866],[13,865],[14,864],[15,863],[16,862],[17,861],[18,860],[19,855],[20,1055],[21,1056],[22,1057],[23,1058],[24,860],[25,1058],[26,860],[27,861],[28,869],[29,868],[30,870],[31,868],[32,869],[33,528],[34,867],[35,528],[36,868],[37,863],[38,855],[224,876],[225,877],[226,878],[227,879],[228,880],[229,881],[230,882],[231,883],[232,884],[233,885],[234,886],[235,887],[236,888]]),Gz=J([[24,869],[25,870],[26,869],[27,868],[28,862],[29,863],[30,861],[31,864],[32,862],[33,864],[34,865],[35,864],[36,863],[224,876],[225,877],[226,878],[227,879],[228,880],[229,881],[230,882],[231,883],[232,884],[233,885],[234,886],[235,887],[3,856],[4,857],[5,858],[6,859],[236,888]]),Kz=J([[24,869],[25,870],[26,869],[27,868],[28,863],[29,864],[30,862],[31,866],[32,863],[33,865],[34,866],[35,865],[36,864],[224,876],[225,877],[226,878],[227,879],[228,880],[229,881],[230,882],[231,883],[232,884],[233,885],[234,886],[235,887],[3,856],[4,857],[5,858],[6,859],[236,888]]),qz=J([[0,9],[1,16],[2,905],[3,890],[4,891],[5,892],[6,893],[7,904],[8,903],[9,902],[10,563],[11,901],[12,900],[13,899],[14,898],[15,897],[16,896],[17,895],[18,894],[19,889],[20,1059],[21,1060],[22,1061],[23,1062],[24,894],[25,1062],[26,894],[27,895],[28,903],[29,902],[30,904],[31,902],[32,903],[33,563],[34,901],[35,563],[36,902],[37,897],[38,889],[224,910],[225,911],[226,912],[227,913],[228,914],[229,915],[230,916],[231,917],[232,918],[233,919],[234,920],[235,921],[236,922]]),Jz=J([[24,903],[25,904],[26,903],[27,902],[28,896],[29,897],[30,895],[31,898],[32,896],[33,898],[34,899],[35,898],[36,897],[224,910],[225,911],[226,912],[227,913],[228,914],[229,915],[230,916],[231,917],[232,918],[233,919],[234,920],[235,921],[3,890],[4,891],[5,892],[6,893],[236,922]]),Yz=J([[24,903],[25,904],[26,903],[27,902],[28,897],[29,898],[30,896],[31,900],[32,897],[33,899],[34,900],[35,899],[36,898],[224,910],[225,911],[226,912],[227,913],[228,914],[229,915],[230,916],[231,917],[232,918],[233,919],[234,920],[235,921],[3,890],[4,891],[5,892],[6,893],[236,922]]),Xz=J([[0,9],[1,16],[2,939],[3,924],[4,925],[5,926],[6,927],[7,938],[8,937],[9,936],[10,598],[11,935],[12,934],[13,933],[14,932],[15,931],[16,930],[17,929],[18,928],[19,923],[20,1063],[21,1064],[22,1065],[23,1066],[24,928],[25,1066],[26,928],[27,929],[28,937],[29,936],[30,938],[31,936],[32,937],[33,598],[34,935],[35,598],[36,936],[37,931],[38,923],[224,944],[225,945],[226,946],[227,947],[228,948],[229,949],[230,950],[231,951],[232,952],[233,953],[234,954],[235,955],[236,956]]),Zz=J([[24,937],[25,938],[26,937],[27,936],[28,930],[29,931],[30,929],[31,932],[32,930],[33,932],[34,933],[35,932],[36,931],[224,944],[225,945],[226,946],[227,947],[228,948],[229,949],[230,950],[231,951],[232,952],[233,953],[234,954],[235,955],[3,924],[4,925],[5,926],[6,927],[236,956]]),Qz=J([[24,937],[25,938],[26,937],[27,936],[28,931],[29,932],[30,930],[31,934],[32,931],[33,933],[34,934],[35,933],[36,932],[224,944],[225,945],[226,946],[227,947],[228,948],[229,949],[230,950],[231,951],[232,952],[233,953],[234,954],[235,955],[3,924],[4,925],[5,926],[6,927],[236,956]]),$z=J([[0,9],[1,16],[2,973],[3,958],[4,959],[5,960],[6,961],[7,972],[8,971],[9,970],[10,633],[11,969],[12,968],[13,967],[14,966],[15,965],[16,964],[17,963],[18,962],[19,957],[20,1067],[21,1068],[22,1069],[23,1070],[24,962],[25,1070],[26,962],[27,963],[28,971],[29,970],[30,972],[31,970],[32,971],[33,633],[34,969],[35,633],[36,970],[37,965],[38,957],[224,978],[225,979],[226,980],[227,981],[228,982],[229,983],[230,984],[231,985],[232,986],[233,987],[234,988],[235,989],[236,990]]),eB=J([[24,971],[25,972],[26,971],[27,970],[28,964],[29,965],[30,963],[31,966],[32,964],[33,966],[34,967],[35,966],[36,965],[224,978],[225,979],[226,980],[227,981],[228,982],[229,983],[230,984],[231,985],[232,986],[233,987],[234,988],[235,989],[3,958],[4,959],[5,960],[6,961],[236,990]]),tB=J([[24,971],[25,972],[26,971],[27,970],[28,965],[29,966],[30,964],[31,968],[32,965],[33,967],[34,968],[35,967],[36,966],[224,978],[225,979],[226,980],[227,981],[228,982],[229,983],[230,984],[231,985],[232,986],[233,987],[234,988],[235,989],[3,958],[4,959],[5,960],[6,961],[236,990]]),nB=J([[0,9],[1,16],[2,670],[3,656],[4,657],[5,658],[6,659],[7,669],[8,668],[9,667],[10,666],[11,197],[12,665],[13,664],[14,663],[15,13],[16,662],[17,661],[18,660],[19,655],[20,1031],[21,1032],[22,1033],[23,1034],[24,660],[25,1034],[26,660],[27,661],[28,668],[29,667],[30,669],[31,667],[32,668],[33,666],[34,197],[35,666],[36,667],[37,13],[38,655],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[236,687]]),rB=J([[24,668],[25,669],[26,668],[27,667],[28,662],[29,13],[30,661],[31,663],[32,662],[33,663],[34,664],[35,663],[36,13],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),iB=J([[24,668],[25,669],[26,668],[27,667],[28,13],[29,663],[30,662],[31,665],[32,13],[33,664],[34,665],[35,664],[36,663],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),aB=J([[24,17],[25,17],[26,17],[27,18],[28,12],[29,11],[30,13],[31,17],[32,12],[33,14],[34,13],[35,14],[36,15],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),oB=J([[24,11],[25,7],[26,11],[27,1],[28,195],[29,196],[30,16],[31,11],[32,195],[33,197],[34,198],[35,197],[36,196],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),sB=J([[24,11],[25,11],[26,11],[27,7],[28,195],[29,16],[30,196],[31,11],[32,195],[33,197],[34,196],[35,197],[36,198],[224,328],[225,329],[226,330],[227,331],[228,332],[229,333],[230,334],[231,335],[232,336],[233,337],[234,338],[235,339],[3,213],[4,214],[5,215],[6,216],[236,340]]),cB=J([[24,355],[25,355],[26,355],[27,356],[28,10],[29,350],[30,351],[31,355],[32,10],[33,352],[34,351],[35,352],[36,353],[224,362],[225,363],[226,364],[227,365],[228,366],[229,367],[230,368],[231,369],[232,370],[233,371],[234,372],[235,373],[3,342],[4,343],[5,344],[6,345],[236,374]]),lB=J([[24,390],[25,390],[26,390],[27,391],[28,385],[29,384],[30,386],[31,390],[32,385],[33,387],[34,386],[35,387],[36,388],[224,397],[225,398],[226,399],[227,400],[228,401],[229,402],[230,403],[231,404],[232,405],[233,406],[234,407],[235,408],[3,376],[4,377],[5,378],[6,379],[236,409]]),uB=J([[24,425],[25,425],[26,425],[27,426],[28,420],[29,419],[30,421],[31,425],[32,420],[33,422],[34,421],[35,422],[36,423],[224,432],[225,433],[226,434],[227,435],[228,436],[229,437],[230,438],[231,439],[232,440],[233,441],[234,442],[235,443],[3,411],[4,412],[5,413],[6,414],[236,444]]),dB=J([[24,460],[25,460],[26,460],[27,461],[28,455],[29,454],[30,456],[31,460],[32,455],[33,457],[34,456],[35,457],[36,458],[224,467],[225,468],[226,469],[227,470],[228,471],[229,472],[230,473],[231,474],[232,475],[233,476],[234,477],[235,478],[3,446],[4,447],[5,448],[6,449],[236,479]]),fB=J([[24,495],[25,495],[26,495],[27,496],[28,490],[29,489],[30,491],[31,495],[32,490],[33,492],[34,491],[35,492],[36,493],[224,502],[225,503],[226,504],[227,505],[228,506],[229,507],[230,508],[231,509],[232,510],[233,511],[234,512],[235,513],[3,481],[4,482],[5,483],[6,484],[236,514]]),pB=J([[24,530],[25,530],[26,530],[27,531],[28,525],[29,524],[30,526],[31,530],[32,525],[33,527],[34,526],[35,527],[36,528],[224,537],[225,538],[226,539],[227,540],[228,541],[229,542],[230,543],[231,544],[232,545],[233,546],[234,547],[235,548],[3,516],[4,517],[5,518],[6,519],[236,549]]),mB=J([[24,565],[25,565],[26,565],[27,566],[28,560],[29,559],[30,561],[31,565],[32,560],[33,562],[34,561],[35,562],[36,563],[224,572],[225,573],[226,574],[227,575],[228,576],[229,577],[230,578],[231,579],[232,580],[233,581],[234,582],[235,583],[3,551],[4,552],[5,553],[6,554],[236,584]]),hB=J([[24,600],[25,600],[26,600],[27,601],[28,595],[29,594],[30,596],[31,600],[32,595],[33,597],[34,596],[35,597],[36,598],[224,607],[225,608],[226,609],[227,610],[228,611],[229,612],[230,613],[231,614],[232,615],[233,616],[234,617],[235,618],[3,586],[4,587],[5,588],[6,589],[236,619]]),gB=J([[24,635],[25,635],[26,635],[27,636],[28,630],[29,629],[30,631],[31,635],[32,630],[33,632],[34,631],[35,632],[36,633],[224,642],[225,643],[226,644],[227,645],[228,646],[229,647],[230,648],[231,649],[232,650],[233,651],[234,652],[235,653],[3,621],[4,622],[5,623],[6,624],[236,654]]),_B=J([[24,668],[25,668],[26,668],[27,669],[28,664],[29,663],[30,665],[31,668],[32,664],[33,197],[34,665],[35,197],[36,666],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),vB=J([[24,17],[25,18],[26,17],[27,16],[28,12],[29,13],[30,11],[31,17],[32,12],[33,14],[34,15],[35,14],[36,13],[224,199],[225,200],[226,201],[227,202],[228,203],[229,204],[230,205],[231,206],[232,207],[233,208],[234,209],[235,210],[3,3],[4,4],[5,5],[6,6],[236,211]]),yB=J([[24,700],[25,9],[26,700],[27,699],[28,696],[29,697],[30,695],[31,700],[32,696],[33,668],[34,698],[35,668],[36,697],[224,706],[225,707],[226,708],[227,709],[228,710],[229,711],[230,712],[231,713],[232,714],[233,715],[234,716],[235,717],[3,689],[4,690],[5,691],[6,692],[236,718]]),bB=J([[24,733],[25,734],[26,733],[27,732],[28,729],[29,730],[30,728],[31,733],[32,729],[33,731],[34,388],[35,731],[36,730],[224,740],[225,741],[226,742],[227,743],[228,744],[229,745],[230,746],[231,747],[232,748],[233,749],[234,750],[235,751],[3,720],[4,721],[5,722],[6,723],[236,752]]),xB=J([[24,767],[25,768],[26,767],[27,766],[28,763],[29,764],[30,762],[31,767],[32,763],[33,765],[34,423],[35,765],[36,764],[224,774],[225,775],[226,776],[227,777],[228,778],[229,779],[230,780],[231,781],[232,782],[233,783],[234,784],[235,785],[3,754],[4,755],[5,756],[6,757],[236,786]]),SB=J([[24,801],[25,802],[26,801],[27,800],[28,797],[29,798],[30,796],[31,801],[32,797],[33,799],[34,458],[35,799],[36,798],[224,808],[225,809],[226,810],[227,811],[228,812],[229,813],[230,814],[231,815],[232,816],[233,817],[234,818],[235,819],[3,788],[4,789],[5,790],[6,791],[236,820]]),CB=J([[24,835],[25,836],[26,835],[27,834],[28,831],[29,832],[30,830],[31,835],[32,831],[33,833],[34,493],[35,833],[36,832],[224,842],[225,843],[226,844],[227,845],[228,846],[229,847],[230,848],[231,849],[232,850],[233,851],[234,852],[235,853],[3,822],[4,823],[5,824],[6,825],[236,854]]),wB=J([[24,869],[25,870],[26,869],[27,868],[28,865],[29,866],[30,864],[31,869],[32,865],[33,867],[34,528],[35,867],[36,866],[224,876],[225,877],[226,878],[227,879],[228,880],[229,881],[230,882],[231,883],[232,884],[233,885],[234,886],[235,887],[3,856],[4,857],[5,858],[6,859],[236,888]]),TB=J([[24,903],[25,904],[26,903],[27,902],[28,899],[29,900],[30,898],[31,903],[32,899],[33,901],[34,563],[35,901],[36,900],[224,910],[225,911],[226,912],[227,913],[228,914],[229,915],[230,916],[231,917],[232,918],[233,919],[234,920],[235,921],[3,890],[4,891],[5,892],[6,893],[236,922]]),EB=J([[24,937],[25,938],[26,937],[27,936],[28,933],[29,934],[30,932],[31,937],[32,933],[33,935],[34,598],[35,935],[36,934],[224,944],[225,945],[226,946],[227,947],[228,948],[229,949],[230,950],[231,951],[232,952],[233,953],[234,954],[235,955],[3,924],[4,925],[5,926],[6,927],[236,956]]),DB=J([[24,971],[25,972],[26,971],[27,970],[28,967],[29,968],[30,966],[31,971],[32,967],[33,969],[34,633],[35,969],[36,968],[224,978],[225,979],[226,980],[227,981],[228,982],[229,983],[230,984],[231,985],[232,986],[233,987],[234,988],[235,989],[3,958],[4,959],[5,960],[6,961],[236,990]]),OB=J([[24,668],[25,669],[26,668],[27,667],[28,664],[29,665],[30,663],[31,668],[32,664],[33,197],[34,666],[35,197],[36,665],[224,675],[225,676],[226,677],[227,678],[228,679],[229,680],[230,681],[231,682],[232,683],[233,684],[234,685],[235,686],[3,656],[4,657],[5,658],[6,659],[236,687]]),Ose={light:ese,dark:tse,light_accent:nse,dark_accent:rse,light_black:ise,light_white:ase,light_gray:ose,light_blue:sse,light_red:cse,light_yellow:lse,light_green:use,light_orange:dse,light_pink:fse,light_purple:pse,light_teal:mse,light_neutral:hse,dark_black:gse,dark_white:_se,dark_gray:vse,dark_blue:yse,dark_red:bse,dark_yellow:xse,dark_green:Sse,dark_orange:Cse,dark_pink:wse,dark_purple:Tse,dark_teal:Ese,dark_neutral:Dse,light_surface1:VR,light_white_surface1:VR,light_Input:VR,light_Progress:VR,light_Slider:VR,light_TextArea:VR,light_white_Input:VR,light_white_Progress:VR,light_white_Slider:VR,light_white_TextArea:VR,light_surface2:HR,light_white_surface2:HR,light_Button:HR,light_SliderThumb:HR,light_Switch:HR,light_white_Button:HR,light_white_SliderThumb:HR,light_white_Switch:HR,dark_surface1:UR,dark_black_surface1:UR,dark_Input:UR,dark_Progress:UR,dark_Slider:UR,dark_TextArea:UR,dark_black_Input:UR,dark_black_Progress:UR,dark_black_Slider:UR,dark_black_TextArea:UR,dark_surface2:WR,dark_black_surface2:WR,dark_Button:WR,dark_SliderThumb:WR,dark_Switch:WR,dark_black_Button:WR,dark_black_SliderThumb:WR,dark_black_Switch:WR,light_black_accent:GR,light_black_Tooltip:GR,light_black_SwitchThumb:GR,light_black_surface1:KR,light_black_Input:KR,light_black_Progress:KR,light_black_Slider:KR,light_black_TextArea:KR,light_black_surface2:qR,light_black_Button:qR,light_black_SliderThumb:qR,light_black_Switch:qR,light_white_accent:JR,light_Tooltip:JR,light_SwitchThumb:JR,light_white_Tooltip:JR,light_white_SwitchThumb:JR,light_gray_accent:YR,light_gray_Tooltip:YR,light_gray_SwitchThumb:YR,light_gray_surface1:XR,light_gray_Input:XR,light_gray_Progress:XR,light_gray_Slider:XR,light_gray_TextArea:XR,light_gray_surface2:ZR,light_gray_Button:ZR,light_gray_SliderThumb:ZR,light_gray_Switch:ZR,light_blue_accent:QR,light_blue_Tooltip:QR,light_blue_SwitchThumb:QR,light_blue_surface1:$R,light_blue_Input:$R,light_blue_Progress:$R,light_blue_Slider:$R,light_blue_TextArea:$R,light_blue_surface2:ez,light_blue_Button:ez,light_blue_SliderThumb:ez,light_blue_Switch:ez,light_red_accent:tz,light_red_Tooltip:tz,light_red_SwitchThumb:tz,light_red_surface1:nz,light_red_Input:nz,light_red_Progress:nz,light_red_Slider:nz,light_red_TextArea:nz,light_red_surface2:rz,light_red_Button:rz,light_red_SliderThumb:rz,light_red_Switch:rz,light_yellow_accent:iz,light_yellow_Tooltip:iz,light_yellow_SwitchThumb:iz,light_yellow_surface1:az,light_yellow_Input:az,light_yellow_Progress:az,light_yellow_Slider:az,light_yellow_TextArea:az,light_yellow_surface2:oz,light_yellow_Button:oz,light_yellow_SliderThumb:oz,light_yellow_Switch:oz,light_green_accent:sz,light_green_Tooltip:sz,light_green_SwitchThumb:sz,light_green_surface1:cz,light_green_Input:cz,light_green_Progress:cz,light_green_Slider:cz,light_green_TextArea:cz,light_green_surface2:lz,light_green_Button:lz,light_green_SliderThumb:lz,light_green_Switch:lz,light_orange_accent:uz,light_orange_Tooltip:uz,light_orange_SwitchThumb:uz,light_orange_surface1:dz,light_orange_Input:dz,light_orange_Progress:dz,light_orange_Slider:dz,light_orange_TextArea:dz,light_orange_surface2:fz,light_orange_Button:fz,light_orange_SliderThumb:fz,light_orange_Switch:fz,light_pink_accent:pz,light_pink_Tooltip:pz,light_pink_SwitchThumb:pz,light_pink_surface1:mz,light_pink_Input:mz,light_pink_Progress:mz,light_pink_Slider:mz,light_pink_TextArea:mz,light_pink_surface2:hz,light_pink_Button:hz,light_pink_SliderThumb:hz,light_pink_Switch:hz,light_purple_accent:gz,light_purple_Tooltip:gz,light_purple_SwitchThumb:gz,light_purple_surface1:_z,light_purple_Input:_z,light_purple_Progress:_z,light_purple_Slider:_z,light_purple_TextArea:_z,light_purple_surface2:vz,light_purple_Button:vz,light_purple_SliderThumb:vz,light_purple_Switch:vz,light_teal_accent:yz,light_teal_Tooltip:yz,light_teal_SwitchThumb:yz,light_teal_surface1:bz,light_teal_Input:bz,light_teal_Progress:bz,light_teal_Slider:bz,light_teal_TextArea:bz,light_teal_surface2:xz,light_teal_Button:xz,light_teal_SliderThumb:xz,light_teal_Switch:xz,light_neutral_accent:Sz,light_neutral_Tooltip:Sz,light_neutral_SwitchThumb:Sz,light_neutral_surface1:Cz,light_neutral_Input:Cz,light_neutral_Progress:Cz,light_neutral_Slider:Cz,light_neutral_TextArea:Cz,light_neutral_surface2:wz,light_neutral_Button:wz,light_neutral_SliderThumb:wz,light_neutral_Switch:wz,dark_black_accent:Tz,dark_Tooltip:Tz,dark_SwitchThumb:Tz,dark_black_Tooltip:Tz,dark_black_SwitchThumb:Tz,dark_white_accent:Ez,dark_white_Tooltip:Ez,dark_white_SwitchThumb:Ez,dark_white_surface1:Dz,dark_white_Input:Dz,dark_white_Progress:Dz,dark_white_Slider:Dz,dark_white_TextArea:Dz,dark_white_surface2:Oz,dark_white_Button:Oz,dark_white_SliderThumb:Oz,dark_white_Switch:Oz,dark_gray_accent:kz,dark_gray_Tooltip:kz,dark_gray_SwitchThumb:kz,dark_gray_surface1:Az,dark_gray_Input:Az,dark_gray_Progress:Az,dark_gray_Slider:Az,dark_gray_TextArea:Az,dark_gray_surface2:jz,dark_gray_Button:jz,dark_gray_SliderThumb:jz,dark_gray_Switch:jz,dark_blue_accent:Mz,dark_blue_Tooltip:Mz,dark_blue_SwitchThumb:Mz,dark_blue_surface1:Nz,dark_blue_Input:Nz,dark_blue_Progress:Nz,dark_blue_Slider:Nz,dark_blue_TextArea:Nz,dark_blue_surface2:Pz,dark_blue_Button:Pz,dark_blue_SliderThumb:Pz,dark_blue_Switch:Pz,dark_red_accent:Fz,dark_red_Tooltip:Fz,dark_red_SwitchThumb:Fz,dark_red_surface1:Iz,dark_red_Input:Iz,dark_red_Progress:Iz,dark_red_Slider:Iz,dark_red_TextArea:Iz,dark_red_surface2:Lz,dark_red_Button:Lz,dark_red_SliderThumb:Lz,dark_red_Switch:Lz,dark_yellow_accent:Rz,dark_yellow_Tooltip:Rz,dark_yellow_SwitchThumb:Rz,dark_yellow_surface1:zz,dark_yellow_Input:zz,dark_yellow_Progress:zz,dark_yellow_Slider:zz,dark_yellow_TextArea:zz,dark_yellow_surface2:Bz,dark_yellow_Button:Bz,dark_yellow_SliderThumb:Bz,dark_yellow_Switch:Bz,dark_green_accent:Vz,dark_green_Tooltip:Vz,dark_green_SwitchThumb:Vz,dark_green_surface1:Hz,dark_green_Input:Hz,dark_green_Progress:Hz,dark_green_Slider:Hz,dark_green_TextArea:Hz,dark_green_surface2:Uz,dark_green_Button:Uz,dark_green_SliderThumb:Uz,dark_green_Switch:Uz,dark_orange_accent:Wz,dark_orange_Tooltip:Wz,dark_orange_SwitchThumb:Wz,dark_orange_surface1:Gz,dark_orange_Input:Gz,dark_orange_Progress:Gz,dark_orange_Slider:Gz,dark_orange_TextArea:Gz,dark_orange_surface2:Kz,dark_orange_Button:Kz,dark_orange_SliderThumb:Kz,dark_orange_Switch:Kz,dark_pink_accent:qz,dark_pink_Tooltip:qz,dark_pink_SwitchThumb:qz,dark_pink_surface1:Jz,dark_pink_Input:Jz,dark_pink_Progress:Jz,dark_pink_Slider:Jz,dark_pink_TextArea:Jz,dark_pink_surface2:Yz,dark_pink_Button:Yz,dark_pink_SliderThumb:Yz,dark_pink_Switch:Yz,dark_purple_accent:Xz,dark_purple_Tooltip:Xz,dark_purple_SwitchThumb:Xz,dark_purple_surface1:Zz,dark_purple_Input:Zz,dark_purple_Progress:Zz,dark_purple_Slider:Zz,dark_purple_TextArea:Zz,dark_purple_surface2:Qz,dark_purple_Button:Qz,dark_purple_SliderThumb:Qz,dark_purple_Switch:Qz,dark_teal_accent:$z,dark_teal_Tooltip:$z,dark_teal_SwitchThumb:$z,dark_teal_surface1:eB,dark_teal_Input:eB,dark_teal_Progress:eB,dark_teal_Slider:eB,dark_teal_TextArea:eB,dark_teal_surface2:tB,dark_teal_Button:tB,dark_teal_SliderThumb:tB,dark_teal_Switch:tB,dark_neutral_accent:nB,dark_neutral_Tooltip:nB,dark_neutral_SwitchThumb:nB,dark_neutral_surface1:rB,dark_neutral_Input:rB,dark_neutral_Progress:rB,dark_neutral_Slider:rB,dark_neutral_TextArea:rB,dark_neutral_surface2:iB,dark_neutral_Button:iB,dark_neutral_SliderThumb:iB,dark_neutral_Switch:iB,light_ProgressIndicator:aB,light_SliderActive:aB,light_white_ProgressIndicator:aB,light_white_SliderActive:aB,dark_ProgressIndicator:oB,dark_SliderActive:oB,dark_black_ProgressIndicator:oB,dark_black_SliderActive:oB,light_black_ProgressIndicator:sB,light_black_SliderActive:sB,light_gray_ProgressIndicator:cB,light_gray_SliderActive:cB,light_blue_ProgressIndicator:lB,light_blue_SliderActive:lB,light_red_ProgressIndicator:uB,light_red_SliderActive:uB,light_yellow_ProgressIndicator:dB,light_yellow_SliderActive:dB,light_green_ProgressIndicator:fB,light_green_SliderActive:fB,light_orange_ProgressIndicator:pB,light_orange_SliderActive:pB,light_pink_ProgressIndicator:mB,light_pink_SliderActive:mB,light_purple_ProgressIndicator:hB,light_purple_SliderActive:hB,light_teal_ProgressIndicator:gB,light_teal_SliderActive:gB,light_neutral_ProgressIndicator:_B,light_neutral_SliderActive:_B,dark_white_ProgressIndicator:vB,dark_white_SliderActive:vB,dark_gray_ProgressIndicator:yB,dark_gray_SliderActive:yB,dark_blue_ProgressIndicator:bB,dark_blue_SliderActive:bB,dark_red_ProgressIndicator:xB,dark_red_SliderActive:xB,dark_yellow_ProgressIndicator:SB,dark_yellow_SliderActive:SB,dark_green_ProgressIndicator:CB,dark_green_SliderActive:CB,dark_orange_ProgressIndicator:wB,dark_orange_SliderActive:wB,dark_pink_ProgressIndicator:TB,dark_pink_SliderActive:TB,dark_purple_ProgressIndicator:EB,dark_purple_SliderActive:EB,dark_teal_ProgressIndicator:DB,dark_teal_SliderActive:DB,dark_neutral_ProgressIndicator:OB,dark_neutral_SliderActive:OB};function kse(e){return e===0?0:e===2?.5:e===4?1:e===8?1.5:e<=16?Math.round(e*.333):Math.floor(e*.7-12)}var kB={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},AB=Object.entries(kB).map(([e,t])=>[e,kse(t)]),Ase=AB.slice(1).map(([e,t])=>[`-${e.slice(1)}`,-t]),jse={radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:{...Object.fromEntries(AB),...Object.fromEntries(Ase)},size:kB},Mse=Nse({text:`textAlign`,b:`bottom`,bg:`backgroundColor`,content:`alignContent`,grow:`flexGrow`,items:`alignItems`,justify:`justifyContent`,l:`left`,m:`margin`,maxH:`maxHeight`,maxW:`maxWidth`,mb:`marginBottom`,minH:`minHeight`,minW:`minWidth`,ml:`marginLeft`,mr:`marginRight`,mt:`marginTop`,mx:`marginHorizontal`,my:`marginVertical`,p:`padding`,pb:`paddingBottom`,pl:`paddingLeft`,pr:`paddingRight`,pt:`paddingTop`,px:`paddingHorizontal`,py:`paddingVertical`,r:`right`,rounded:`borderRadius`,select:`userSelect`,self:`alignSelf`,shrink:`flexShrink`,t:`top`,z:`zIndex`});function Nse(e){return e}var jB=`Zen Mono`,Pse=`Zen Pixel Square`,Fse=`"Zen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,Ise=`"${jB}", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`;`${Pse}${jB}`;var Lse=Fse,Rse=Ise,zse={1:12,2:13,3:14,4:15,true:15,5:16,6:18,7:22,8:26,9:30,10:40,11:46,12:52,13:60,14:70,15:85,16:100},Bse=e=>{let t=1.5-Math.max(0,(e-20)*.004);return Math.round(e*t)},MB=({font:e={},sizeLineHeight:t=Bse,sizeSize:n=e=>Math.round(e)}={})=>{let r=Object.fromEntries(Object.entries({...zse,...e.size}).map(([e,t])=>[e,n(+t)]));return ap({family:`-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,lineHeight:Object.fromEntries(Object.entries(r).map(([e,n])=>[e,t(Gc(n))])),weight:{1:`400`},letterSpacing:{4:0},...e,size:r})},Vse=e=>Math.round(e*1.12+5),NB=Lse,Hse=Rse,Use={body:MB({font:{family:NB}}),heading:MB({font:{family:NB,weight:{0:`600`,6:`700`,9:`800`}},sizeLineHeight:Vse}),mono:MB({font:{family:Hse}})},PB={100:100,200:200,xxxs:260,xxs:340,xs:460,sm:640,md:768,lg:1024,xl:1280,xxl:1536},FB=.02,IB={media:{touchable:{pointer:`coarse`},hoverable:{hover:`hover`},"max-xxl":{maxWidth:PB.xxl-FB},"max-xl":{maxWidth:PB.xl-FB},"max-lg":{maxWidth:PB.lg-FB},"max-md":{maxWidth:PB.md-FB},"max-sm":{maxWidth:PB.sm-FB},"max-xs":{maxWidth:PB.xs-FB},"max-xxs":{maxWidth:PB.xxs-FB},"max-xxxs":{maxWidth:PB.xxxs-FB},"max-200":{maxWidth:PB[200]-FB},"max-100":{maxWidth:PB[100]-FB},xxxs:{minWidth:PB.xxxs},xxs:{minWidth:PB.xxs},xs:{minWidth:PB.xs},sm:{minWidth:PB.sm},md:{minWidth:PB.md},lg:{minWidth:PB.lg},xl:{minWidth:PB.xl},xxl:{minWidth:PB.xxl},"max-height-lg":{maxHeight:PB.lg-FB},"max-height-md":{maxHeight:PB.md-FB},"max-height-sm":{maxHeight:PB.sm-FB},"max-height-xs":{maxHeight:PB.xs-FB},"max-height-xxs":{maxHeight:PB.xxs-FB},"max-height-xxxs":{maxHeight:PB.xxxs-FB},"max-height-200":{maxHeight:PB[200]-FB},"max-height-100":{maxHeight:PB[100]-FB},"height-sm":{minHeight:PB.sm},"height-md":{minHeight:PB.md},"height-lg":{minHeight:PB.lg}},shorthands:Mse,themes:Ose,tokens:jse,fonts:Use,selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null,settings:{mediaQueryDefaultActive:{touchable:!1,hoverable:!0,"max-xxl":!0,"max-xl":!0,"max-lg":!0,"max-md":!0,"max-sm":!0,"max-xs":!0,"max-xxs":!1,"max-xxxs":!1,xxxs:!0,xxs:!0,xs:!0,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,"max-height-sm":!1,"max-height-md":!1,"max-height-lg":!0,"height-sm":!0,"height-md":!0,"height-lg":!1},defaultFont:`body`,fastSchemeChange:!0,shouldAddPrefersColorThemes:!0,allowedStyleValues:`somewhat-strict-web`,addThemeClassName:`html`,onlyAllowShorthands:!0,styleCompat:`web`}},Wse=new Set([`stiffness`,`damping`,`mass`,`tension`,`friction`,`velocity`,`overshootClamping`,`duration`,`bounciness`,`speed`]);function LB(e){return Wse.has(e)}function Gse(e){if(!e)return{default:null,enter:null,exit:null,delay:void 0,properties:{}};if(typeof e==`string`)return{default:e,enter:null,exit:null,delay:void 0,properties:{}};if(Array.isArray(e)){let[t,n]=e,r={},i={},a,o=null,s=null;if(n&&typeof n==`object`)for(let[e,t]of Object.entries(n))e===`delay`&&typeof t==`number`?a=t:e===`enter`&&typeof t==`string`?o=t:e===`exit`&&typeof t==`string`?s=t:LB(e)&&t!==void 0?Object.assign(i,{[e]:t}):t!==void 0&&(r[e]=t);return{default:t,enter:o,exit:s,delay:a,properties:r,config:Object.keys(i).length>0?i:void 0}}if(typeof e==`object`){let t={},n={},r=null,i=null,a=null,o;for(let[s,c]of Object.entries(e))s==="default"&&typeof c==`string`?r=c:s===`enter`&&typeof c==`string`?i=c:s===`exit`&&typeof c==`string`?a=c:s===`delay`&&typeof c==`number`?o=c:LB(s)&&c!==void 0?Object.assign(n,{[s]:c}):c!==void 0&&(t[s]=c);return{default:r,enter:i,exit:a,delay:o,properties:t,config:Object.keys(n).length>0?n:void 0}}return{default:null,enter:null,exit:null,delay:void 0,properties:{}}}function Kse(e){return e.default!==null||e.enter!==null||e.exit!==null||Object.keys(e.properties).length>0}function qse(e){return Object.keys(e.properties)}function Jse(e,t){return t===`enter`&&e.enter?e.enter:t===`exit`&&e.exit?e.exit:e.default}function Yse(e,t,n,r){let i=new Map;for(let a of n){let n=e.properties[a],o=null;typeof n==`string`?o=t[n]??null:n&&typeof n==`object`&&n.type&&(o=t[n.type]??null),o===null&&(o=r),i.set(a,o)}return i}var Xse=/(\d+(?:\.\d+)?)\s*ms/,Zse=/(\d+(?:\.\d+)?)\s*s/;function RB(e){let t=e.match(Xse);if(t)return Number.parseInt(t[1],10);let n=e.match(Zse);return n?Math.round(Number.parseFloat(n[1])*1e3):300}var Qse=/(\d+(?:\.\d+)?)\s*ms/,$se=/(\d+(?:\.\d+)?)\s*s(?!tiffness)/;function zB(e,t){let n=e.replace(Qse,`${t}ms`);if(n!==e)return n;let r=e.replace($se,`${t}ms`);return r===e?`${t}ms ${e}`:r}var BB=[`x`,`y`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function ece(e){if(!e)return``;let t=[];if(e.x!==void 0||e.y!==void 0){let n=e.x??0,r=e.y??0;t.push(`translate(${n}px, ${r}px)`)}if(e.scale!==void 0&&t.push(`scale(${e.scale})`),e.scaleX!==void 0&&t.push(`scaleX(${e.scaleX})`),e.scaleY!==void 0&&t.push(`scaleY(${e.scaleY})`),e.rotate!==void 0){let n=e.rotate,r=typeof n==`string`&&n.includes(`deg`)?``:`deg`;t.push(`rotate(${n}${r})`)}return e.rotateX!==void 0&&t.push(`rotateX(${e.rotateX}deg)`),e.rotateY!==void 0&&t.push(`rotateY(${e.rotateY}deg)`),e.rotateZ!==void 0&&t.push(`rotateZ(${e.rotateZ}deg)`),e.skewX!==void 0&&t.push(`skewX(${e.skewX}deg)`),e.skewY!==void 0&&t.push(`skewY(${e.skewY}deg)`),t.join(` `)}function VB(e,t){if(!t)return;let n=ece(t);n&&(e.style.transform=n);for(let[n,r]of Object.entries(t))BB.includes(n)||r!==void 0&&(n===`opacity`?e.style.opacity=String(r):n===`backgroundColor`?e.style.backgroundColor=String(r):n===`color`?e.style.color=String(r):e.style[n]=typeof r==`number`?`${r}px`:String(r))}function tce(e){let t=new WeakMap;return{animations:e,usePresence:nm,ResetPresence:tm,inputStyle:`css`,outputStyle:`css`,useAnimatedNumber(e){let[n,r]=b.useState(e),i=b.useRef(null);return{getInstance(){return r},getValue(){return n},setValue(e,n,a){if(r(e),i.current&&=(clearTimeout(i.current),null),a){if(!n||n.type===`direct`||n.type===`timing`&&n.duration===0)a();else{let e=n.type===`timing`?n.duration:300;i.current=setTimeout(a,e)}}let o=t.get(r);o&&o.forEach(t=>t(e))},stop(){i.current&&=(clearTimeout(i.current),null)}}},useAnimatedNumberReaction({value:e},n){b.useEffect(()=>{let r=e.getInstance(),i=t.get(r);if(!i){let e=new Set;t.set(r,e),i=e}return i.add(n),()=>{i?.delete(n)}},[])},useAnimatedNumberStyle(e,t){return t(e.getValue())},useAnimatedNumbersStyle(e,t){return t(...e.map(e=>e.getValue()))},useAnimations:({props:t,presence:n,style:r,componentState:i,stateRef:a,styleState:o})=>{let s=i.unmounted===!0,c=!!i.unmounted,l=n?.[0]===!1,u=n?.[1],d=b.useRef(c),f=d.current&&!c;b.useEffect(()=>{d.current=c});let p=b.useRef(0),m=b.useRef(!1),h=b.useRef(!1),g=b.useRef(!1),_=b.useRef(u),v=b.useRef({});_.current=u;let y=l&&!h.current,x=!l&&h.current;y&&(p.current++,m.current=!1),x&&(p.current++,g.current=!0),b.useEffect(()=>{h.current=l}),Ho(()=>{let e=a.current.host;if(l||!e)return;let t=getComputedStyle(e);v.current={opacity:t.opacity}});let S=Gse(o?.effectiveTransition??t.transition),C=Jse(S,l?`exit`:c||f?`enter`:`default`),w=C?e[C]:null,T=qse(S),E=S.default!==null||S.enter!==null||S.exit!==null,D=T.length>0,O;if(O=t.animateOnly?t.animateOnly:D&&!E?T:D&&E?[`all`,...T]:[`all`],Ho(()=>{let n=a.current.host;if(!u||!l||!n)return;let i=n,o=p.current,s=()=>{o===p.current&&(m.current||(m.current=!0,_.current?.()))};if(O.length===0){s();return}let c,d=g.current,f=d,h=t.enterStyle,y=t.exitStyle,b=S.delay?` ${S.delay}ms`:``,x=S.config?.duration,C=O.map(t=>{let n=S.properties[t],r=null;return typeof n==`string`?r=e[n]:n&&typeof n==`object`&&n.type?r=e[n.type]:w&&(r=w),r&&x&&(r=zB(r,x)),r?`${t} ${r}${b}`:null}).filter(Boolean).join(`, `),T=e=>e===`opacity`?r?.opacity??t.opacity??v.current.opacity??1:BB.includes(e)?+(e===`scale`||e===`scaleX`||e===`scaleY`):h?.[e];if(d){if(g.current=!1,i.style.transition=`none`,y){let e={};for(let t of Object.keys(y)){let n=T(t);n!==void 0&&(e[t]=n)}VB(i,e)}else i.style.opacity=`1`,i.style.transform=`none`;i.offsetHeight}else if(y){f=!0,i.style.transition=`none`;let e={};for(let t of Object.keys(y)){let n=T(t);n!==void 0&&(e[t]=n)}VB(i,e),i.offsetHeight,c=requestAnimationFrame(()=>{o===p.current&&(i.style.transition=C,i.offsetHeight,VB(i,y),f=!1)})}let E=w?RB(w):200,D=Yse(S,e,O,w);for(let e of D.values())if(e){let t=RB(e);t>E&&(E=t)}let k=S.delay??0,A=E+k,j=setTimeout(()=>{s()},A),M=new Set(O),ee=0,te=e=>{if(e.target!==i)return;let t=e.propertyName;(M.has(t)||t===`all`)&&(ee++,ee>=M.size&&(clearTimeout(j),s()))},ne=()=>{f||(clearTimeout(j),s())};return i.addEventListener(`transitionend`,te),i.addEventListener(`transitioncancel`,ne),d&&(c=requestAnimationFrame(()=>{o===p.current&&(i.style.transition=C,i.offsetHeight,VB(i,y),f=!1)})),()=>{clearTimeout(j),c!==void 0&&cancelAnimationFrame(c),i.removeEventListener(`transitionend`,te),i.removeEventListener(`transitioncancel`,ne),i.style.transition=``}},[l]),s||!Kse(S))return null;Array.isArray(r.transform)&&(r.transform=eu(r.transform));let k=S.delay?` ${S.delay}ms`:``,A=S.config?.duration;return r.transition=O.map(t=>{let n=S.properties[t],r=null;return typeof n==`string`?r=e[n]:n&&typeof n==`object`&&n.type?r=e[n.type]:w&&(r=w),r&&A&&(r=zB(r,A)),r?`${t} ${r}${k}`:null}).filter(Boolean).join(`, `),{style:r,className:c?`t_unmounted`:``}}}}var HB={dark:{ground:`var(--neutral-900)`,line:`var(--neutral-800)`,dim:`var(--neutral-400)`,ink:`var(--neutral-300)`,bright:`var(--neutral-50)`},light:{ground:`var(--neutral-100)`,line:`var(--neutral-200)`,dim:`var(--neutral-600)`,ink:`var(--neutral-700)`,bright:`var(--neutral-950)`}},UB={key:`ink`,string:`bright`,number:`bright`,boolean:`bright`,null:`bright`,punctuation:`dim`,comment:`dim`,keyword:`bright`},WB=e=>Object.fromEntries(Object.entries(UB).map(([t,n])=>[t,HB[e][n]])),GB={dark:WB(`dark`),light:WB(`light`)},KB={comment:{fontStyle:`italic`},keyword:{fontWeight:`700`},boolean:{fontWeight:`700`},null:{fontWeight:`700`}},qB=e=>`code${e[0].toUpperCase()}${e.slice(1)}`;function JB(e){let t=t=>`var(--${qB(t)}, ${HB[e][t]})`,n=t=>{let n=KB[t],r=n?.fontStyle??(n?.fontWeight?`bold`:void 0);return{foreground:`var(--${qB(t)}, ${GB[e][t]})`,...r?{fontStyle:r}:null}};return{name:`mono-${e}`,type:e,fg:t(`ink`),bg:t(`ground`),colors:{"editor.selectionBackground":t(`line`),"editor.lineHighlightBackground":t(`line`)},tokenColors:[{settings:{foreground:t(`ink`)}},{scope:[`comment`,`punctuation.definition.comment`,`string.quoted.docstring`],settings:n(`comment`)},{scope:[`punctuation`,`meta.brace`,`constant.character.escape.line-continuation`],settings:n(`punctuation`)},{scope:[`string`,`markup.inline.raw`],settings:n(`string`)},{scope:`constant.numeric`,settings:n(`number`)},{scope:[`constant.language`,`constant.language.boolean`],settings:n(`boolean`)},{scope:[`constant.language.null`,`constant.language.undefined`],settings:n(`null`)},{scope:[`constant`,`support.constant`,`entity.name.function`,`entity.name.command`,`support.function`,`entity.name.tag`],settings:{foreground:t(`bright`)}},{scope:[`string.unquoted`,`support.type.property-name`,`meta.object-literal.key`],settings:n(`key`)},{scope:[`keyword`,`storage`],settings:n(`keyword`)},{scope:[`keyword.operator`,`punctuation.accessor`],settings:{foreground:t(`ink`),fontStyle:``}},{scope:[`markup.heading`,`markup.bold`],settings:{foreground:t(`bright`),fontStyle:`bold`}},{scope:`markup.italic`,settings:{fontStyle:`italic`}},{scope:`markup.underline.link`,settings:{fontStyle:`underline`}},{scope:`markup.inserted`,settings:{foreground:t(`bright`)}},{scope:`markup.deleted`,settings:{foreground:t(`dim`)}}]}}JB(`dark`),JB(`light`);var nce=[`dim`,`ink`,`bright`,...Object.keys(UB)];Object.fromEntries(nce.map(e=>{let t=e in UB?UB[e]:e;return[e,{key:qB(e),light:HB.light[t],dark:HB.dark[t]}]}));var YB=`var(--font-sans, 'Zen', system-ui, -apple-system, sans-serif)`,rce=`var(--font-mono, 'Zen Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`,ice=`var(--font-serif, Georgia, serif)`,XB={1:`var(--text-xs, 12px)`,2:`var(--text-sm, 13px)`,3:`var(--text-base, 14px)`,4:`var(--text-lg, 15px)`,5:`var(--text-lg, 15px)`,6:`var(--text-xl, 17px)`,7:`var(--text-2xl, 21px)`,8:`var(--text-3xl, 26px)`,9:`var(--text-3xl, 26px)`,10:`var(--text-4xl, 32px)`,11:`var(--text-5xl, 40px)`,12:`calc(var(--text-5xl, 40px) + (var(--text-7xl, 64px) - var(--text-5xl, 40px)) / 3)`,13:`calc(var(--text-5xl, 40px) + 2 * (var(--text-7xl, 64px) - var(--text-5xl, 40px)) / 3)`,14:`var(--text-7xl, 64px)`,15:`calc(var(--text-7xl, 64px) + 4 * (var(--text-8xl, 84px) - var(--text-7xl, 64px)) / 5)`,16:`calc(var(--text-8xl, 84px) + 3 * (var(--text-9xl, 112px) - var(--text-8xl, 84px)) / 7)`,true:`var(--text-base, 14px)`},ZB={1:`calc(16px * var(--type-scale, 1) * var(--leading-lang, 1))`,2:`calc(18px * var(--type-scale, 1) * var(--leading-lang, 1))`,3:`calc(20px * var(--type-scale, 1) * var(--leading-lang, 1))`,4:`calc(22px * var(--type-scale, 1) * var(--leading-lang, 1))`,5:`calc(22px * var(--type-scale, 1) * var(--leading-lang, 1))`,6:`calc(24px * var(--type-scale, 1) * var(--leading-lang, 1))`,7:`calc(22px * var(--type-scale, 1) * var(--leading-lang, 1))`,8:`calc(28px * var(--type-scale, 1) * var(--leading-lang, 1))`,9:`calc(28px * var(--type-scale, 1) * var(--leading-lang, 1))`,10:`calc(34px * var(--type-scale, 1) * var(--leading-lang, 1))`,11:`calc(42px * var(--type-scale, 1) * var(--leading-lang, 1))`,12:`calc(50px * var(--type-scale, 1) * var(--leading-lang, 1))`,13:`calc(58px * var(--type-scale, 1) * var(--leading-lang, 1))`,14:`calc(66px * var(--type-scale, 1) * var(--leading-lang, 1))`,15:`calc(82px * var(--type-scale, 1) * var(--leading-lang, 1))`,16:`calc(98px * var(--type-scale, 1) * var(--leading-lang, 1))`,true:`calc(20px * var(--type-scale, 1) * var(--leading-lang, 1))`},QB={1:0,2:0,3:0,4:0,5:0,6:0,7:`-0.025em`,8:`-0.025em`,9:`-0.025em`,10:`-0.025em`,11:`-0.025em`,12:`-0.025em`,13:`-0.025em`,14:`-0.025em`,15:`-0.025em`,16:`-0.025em`,true:0},ace={"2xs":2,xs:4,0:0,1:6,2:6,3:8,4:8,5:12,6:12,7:12,8:12,9:12,10:9999,11:9999,12:9999,true:8},$B={0:0,"0.25":1,"0.5":2,"0.75":3,1:4,"1.5":6,2:8,"2.5":10,3:12,"3.5":14,4:16,"4.5":20,5:24,6:32,7:40,8:48,9:56,10:64,11:80,12:96,13:112,14:128,15:144,16:160,17:160,18:176,19:192,20:208},eV=e=>e===0?0:`calc(${e}px * var(--density, 1))`,oce=e=>e===0||e>=9999?e:`calc(${e}px * var(--radius-scale, 1))`,sce=Object.fromEntries(Object.entries(ace).map(([e,t])=>[e,oce(t)])),tV={};for(let[e,t]of Object.entries($B))tV[`$${e}`]=eV(t),tV[`-${e}`]=eV(-t);tV.$true=eV($B[4]),tV[`-true`]=eV(-$B[4]);var nV={dark:`rgb(255 255 255 / .10)`,light:`rgb(0 0 0 / .10)`},rV={dark:`#e5e5e5`,light:`#0a0a0a`},cce={dark:`rgb(255 255 255 / .40)`,light:`rgb(0 0 0 / .5)`},iV={bad:`var(--state-error, #ef4444)`,good:`var(--state-success, #22c55e)`},aV={dark:{aside:`rgb(255 255 255 / .78)`,hint:`rgb(255 255 255 / .55)`,hush:`rgb(255 255 255 / .3)`},light:{aside:`rgb(10 10 10 / .78)`,hint:`rgb(10 10 10 / .55)`,hush:`rgb(10 10 10 / .3)`}},lce=e=>Object.fromEntries(Object.entries({...HB[e],...GB[e]}).map(([e,t])=>[`code${e[0].toUpperCase()}${e.slice(1)}`,t])),oV={dark:{base:`rgb(255 255 255 / .03)`,hover:`rgb(255 255 255 / .06)`,raised:`rgb(255 255 255 / .12)`},light:{base:`rgb(0 0 0 / .03)`,hover:`rgb(0 0 0 / .06)`,raised:`rgb(0 0 0 / .12)`}},uce={dark:`#0a0a0a`,light:`#f7f7f7`},dce={dark:`#333333`,light:`#e0e0e0`},fce={dark:`rgb(229 229 229 / .6)`,light:`rgb(10 10 10 / .65)`},sV=e=>e.startsWith(`light`)?`light`:`dark`,cV=e=>`color4`in e,pce=e=>e.split(`_`).slice(0,-1).join(`_`),lV=e=>{let t=IB.themes[e];return!t||e===sV(e)?`var(--border, ${nV[sV(e)]})`:cV(t)?String(t.borderColor):lV(pce(e))},uV=Object.fromEntries(Object.entries(IB.themes).map(([e,t])=>{let n=sV(e),r={...t,outlineColor:`var(--ring, ${cce[n]})`,...cV(t)?{}:{borderColor:lV(e)}};return[e,e===n?{...r,color2:`var(--surface-1, ${oV[n].base})`,color3:`var(--surface-2, ${oV[n].hover})`,color4:`var(--border, ${nV[n]})`,color5:`var(--surface-3, ${oV[n].raised})`,borderColor:`var(--border, ${nV[n]})`,color12:`var(--foreground, ${rV[n]})`,sunken:String(t.color1),panel:`var(--surface-1, ${oV[n].base})`,hover:`var(--surface-2, ${oV[n].hover})`,edge:`var(--border, ${nV[n]})`,raised:`var(--surface-3, ${oV[n].raised})`,rim:String(t.color6),bound:String(t.color7),dim:String(t.color8),faint:String(t.color9),soft:String(t.color10),quiet:String(t.color11),ink:`var(--foreground, ${rV[n]})`,aside:`var(--text-secondary, ${aV[n].aside})`,hint:`var(--text-tertiary, ${aV[n].hint})`,hush:`var(--text-disabled, ${aV[n].hush})`,bad:iV.bad,good:iV.good,background:uce[n],color:`var(--foreground, ${rV[n]})`,placeholderColor:`var(--text-placeholder, ${fce[n]})`,accentBackground:`var(--accent, ${oV[n].raised})`,accentColor:`var(--accent-foreground, ${rV[n]})`,accentHover:`var(--accent-hover, ${dce[n]})`,...lce(n)}:r]})),dV=e=>e,fV=`var(--ease-out, cubic-bezier(0.215, 0.61, 0.355, 1))`,pV={animations:tce({default:`${fV} var(--duration-base, 300ms)`,"75ms":`${fV} 75ms`,"100ms":`${fV} 100ms`,"200ms":`${fV} 200ms`,quickest:`${fV} var(--duration-fast, 150ms)`,quicker:`${fV} var(--duration-base, 300ms)`,quick:`${fV} var(--duration-slow, 400ms)`,medium:`${fV} 300ms`,slow:`${fV} 500ms`,bouncy:`${fV} 200ms`,lazy:`${fV} 1000ms`,tooltip:`${fV} 400ms`}),...IB,settings:{...IB.settings,shouldAddPrefersColorThemes:!1},tokens:{...IB.tokens,radius:sce,space:tV},fonts:{...IB.fonts,body:{...IB.fonts.body,family:YB,size:dV(XB),lineHeight:dV(ZB),letterSpacing:dV(QB)},heading:{...IB.fonts.heading,family:YB,size:dV(XB),lineHeight:dV(ZB),letterSpacing:dV(QB)},mono:{...IB.fonts.body,family:rce,size:dV(XB),lineHeight:dV(ZB)},serif:{...IB.fonts.body,family:ice,size:dV(XB),lineHeight:dV(ZB),letterSpacing:dV(QB)}}},mce=yO({...pV,themes:uV}),hce=new Set([`blue`,`green`,`orange`,`pink`,`purple`,`red`,`teal`,`yellow`]),gce=e=>e.split(`_`).slice(1).some(e=>hce.has(e));yO({...pV,themes:Object.fromEntries(Object.entries(uV).filter(([e])=>!gce(e)))});var mV=kN,_ce={end:{t:0,b:0,insetInlineEnd:0,height:`100%`,width:`100%`,maxW:384,borderStartStartRadius:`$5`,borderEndStartRadius:`$5`,borderStartEndRadius:0,borderEndEndRadius:0},start:{t:0,b:0,insetInlineStart:0,height:`100%`,width:`100%`,maxW:384,borderStartEndRadius:`$5`,borderEndEndRadius:`$5`,borderStartStartRadius:0,borderEndStartRadius:0},right:{t:0,b:0,r:0,height:`100%`,width:`100%`,maxW:384,btlr:`$5`,bblr:`$5`,btrr:0,bbrr:0},left:{t:0,b:0,l:0,height:`100%`,width:`100%`,maxW:384,btrr:`$5`,bbrr:`$5`,btlr:0,bblr:0},top:{t:0,l:0,r:0,width:`100%`,maxW:`100%`,maxH:`80%`,bblr:`$5`,bbrr:`$5`,btlr:0,btrr:0},bottom:{b:0,l:0,r:0,width:`100%`,maxW:`100%`,maxH:`80%`,btlr:`$5`,btrr:`$5`,bblr:0,bbrr:0}},hV=({side:e=`end`,className:t,...n})=>(0,R.jsx)(jN,{...vce(e),position:`fixed`,..._ce[e],...fP(t),...n}),vce=e=>({"data-slot":`sheet-content`,"data-side":e}),yce={xs:13,s:16,m:24,l:32,xl:40},bce=`linear-gradient(90deg, transparent 0%, var(--glass, rgba(128, 128, 128, 0.08)) 50%, transparent 100%)`;function gV({size:e,layout:t=`inline`,animated:n=!0,className:r,...i}){let{props:a,rest:o}=dP(r),s=e?yce[e]:t===`block`?`1em`:void 0;return(0,R.jsx)(B,{...q(`skeleton`),"aria-hidden":!0,"data-layout":t,"data-motion":n?`shimmer`:void 0,display:t===`inline`?`inline-flex`:`flex`,width:`100%`,...s===void 0?null:{height:s},rounded:`$xs`,bg:`$hover`,backgroundImage:n?bce:void 0,backgroundSize:`160px 100%`,backgroundRepeat:`no-repeat`,overflow:`hidden`,...a,...o?{className:o}:null,...i,children:t===`inline`&&s===void 0&&!(`height`in i)&&!(`height`in a)?(0,R.jsx)(H,{size:`$2`,"aria-hidden":!0,children:`‌`}):null})}var xce=(e,t)=>e==null?`${t}px`:typeof e==`number`?`${e}px`:e.startsWith(`$`)?`var(--space-${e.slice(1)}, ${t}px)`:e,Sce=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Cce=e=>typeof e==`number`?`${e}px`:e,_V=e=>typeof e==`number`?`repeat(${e}, minmax(0, 1fr))`:Array.isArray(e)?e.map(Cce).join(` `):e,wce=({min:e,max:t},n)=>`repeat(auto-fill, minmax(${t?`max(min(${e}px, 100%), calc((100% - ${t-1} * ${n}) / ${t}))`:`min(${e}px, 100%)`}, 1fr))`,Tce=(e,t=`0px`)=>Sce(e)?wce(e,t):_V(e),vV={fontFamily:`inherit`,fontWeight:`inherit`,letterSpacing:`inherit`,lineHeight:`inherit`},Ece=e=>(typeof e==`function`||typeof e==`object`)&&e!==null&&`staticConfig`in e,Dce=e=>{if(!(0,b.isValidElement)(e)||e.type===b.Fragment||Ece(e.type))return e;let t=e,n=t.props.style;return Array.isArray(n)?(0,b.cloneElement)(t,{style:[{minWidth:0},...n]}):n&&typeof n==`object`&&`minWidth`in n?t:(0,b.cloneElement)(t,{style:{minWidth:0,...n}})},Oce=({columns:e={min:240},rows:t,gap:n=`$3`,style:r,children:i,...a})=>{let o=xce(n,12);return(0,R.jsx)(Lm,{"data-slot":`grid`,display:`grid`,gridTemplateColumns:Tce(e,o),...t===void 0?null:{gridTemplateRows:_V(t)},gap:o,shrink:1,minW:`auto`,minH:`auto`,style:{...vV,...r},...a,children:b.Children.map(i,Dce)})},yV=e=>e===void 0?void 0:typeof e==`number`?`span ${e}`:e,bV=({col:e,row:t,style:n,...r})=>(0,R.jsx)(Lm,{"data-slot":`grid-cell`,...e===void 0?null:{gridColumn:yV(e)},...t===void 0?null:{gridRow:yV(t)},minW:0,shrink:1,style:{...vV,...n},...r}),kce=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],xV=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],SV=(e,t,n)=>new Date(e,t,n),CV=e=>`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`,wV=(e,t)=>!!e&&!!t&&CV(e)===CV(t),TV=e=>SV(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),EV=(e,t)=>SV(e.getFullYear(),e.getMonth(),e.getDate()+t),DV=(e,t=0)=>SV(e.getFullYear(),e.getMonth()+t,1),OV=(e,t)=>{let n=SV(e.getFullYear(),e.getMonth()+t+1,0);return SV(n.getFullYear(),n.getMonth(),Math.min(e.getDate(),n.getDate()))},Ace=(e,t,n)=>{let r=(e.getDay()-t+7)%7,i=SV(e.getFullYear(),e.getMonth()+1,0).getDate();return Array.from({length:Math.ceil((r+i)/7)*7},(t,a)=>{let o=a-r+1;return n||o>=1&&o<=i?SV(e.getFullYear(),e.getMonth(),o):null})},jce=(e,t)=>{if(e.mode===`multiple`)return(e.selected??[]).some(e=>wV(e,t));if(e.mode===`range`){let{from:n,to:r}=e.selected??{};return!!n&&(r?TV(n)<=TV(t)&&TV(t)<=TV(r):wV(n,t))}return wV(e.selected,t)},Mce=(e,t)=>{let{from:n,to:r}=e??{};if(!n)return{from:t,to:t};if(!r)return TV(t)<TV(n)?{from:t,to:n}:{from:n,to:t};if(!(wV(n,t)&&wV(r,t)))return wV(n,t)?{from:n,to:t}:wV(r,t)?{from:t,to:t}:TV(t)<TV(n)?{from:t,to:r}:{from:n,to:t}},Nce=(e,t)=>{if(e.mode===`multiple`){let n=e.selected??[];e.onSelect?.(n.some(e=>wV(e,t))?n.filter(e=>!wV(e,t)):[...n,t])}else e.mode===`range`?e.onSelect?.(Mce(e.selected,t)):e.onSelect?.(wV(e.selected,t)?void 0:t)},Pce=(e,t,n)=>{let r=(t.getDay()-n+7)%7;return e===`ArrowLeft`?EV(t,-1):e===`ArrowRight`?EV(t,1):e===`ArrowUp`?EV(t,-7):e===`ArrowDown`?EV(t,7):e===`Home`?EV(t,-r):e===`End`?EV(t,6-r):e===`PageUp`?OV(t,-1):e===`PageDown`?OV(t,1):void 0};function Fce(e){let{t}=_N(),{month:n,defaultMonth:r,onMonthChange:i,numberOfMonths:a=1,weekStartsOn:o=0,showOutsideDays:s=!0,disabled:c,initialFocus:l,className:u}=e,[d,f]=(0,b.useState)(()=>DV(r??new Date)),p=n?DV(n):d,m=Array.from({length:a},(e,t)=>DV(p,t)),h=m.map(e=>Ace(e,o,s)),g=e=>!!e&&TV(e)>=TV(p)&&TV(e)<TV(DV(p,a)),_=e=>h.some(t=>t.some(t=>wV(t,e))),v=[...xV.slice(o),...xV.slice(0,o)].map(e=>t(e)),y=new Date,x=e.mode===`range`?e.selected??{}:{},[S,C]=(0,b.useState)(),w=e.mode===`multiple`?e.selected??[]:e.mode===`range`?[e.selected?.from]:[e.selected],T=S&&_(S)?S:w.find(g)??(g(y)?y:p),E=(0,b.useRef)(null),D=(0,b.useRef)(!!l);(0,b.useEffect)(()=>{let e=E.current;if(!D.current||typeof HTMLElement>`u`||!(e instanceof HTMLElement))return;D.current=!1;let t=`[data-date="${CV(T)}"]`;(e.querySelector(`${t}:not([data-outside])`)??e.querySelector(t))?.focus()});let O=e=>{let t=DV(p,e);f(t),i?.(t)},k=(e,t)=>{let n=Pce(PP(e),t,o);n&&(e.preventDefault(),D.current=!0,C(n),_(n)||O(TV(n)<TV(p)?-1:1))};return(0,R.jsx)(V,{ref:E,...q(`calendar`),flexWrap:`wrap`,gap:`$4`,p:`$3`,...fP(u),children:m.map((n,r)=>(0,R.jsxs)(B,{...q(`calendar-month`),gap:`$4`,children:[(0,R.jsxs)(V,{...q(`calendar-caption`),items:`center`,justify:`space-between`,children:[(0,R.jsx)(B,{width:32,children:r===0&&(0,R.jsx)(sF,{...q(`calendar-nav-previous`),"aria-label":t(`Previous month`),variant:`outline`,size:`icon-sm`,onClick:()=>O(-1),children:(0,R.jsx)(uM,{...kP,size:16})})}),(0,R.jsxs)(H,{...q(`calendar-caption-label`),size:`$3`,fontWeight:`500`,children:[t(kce[n.getMonth()]),` `,n.getFullYear()]}),(0,R.jsx)(B,{width:32,items:`flex-end`,children:r===m.length-1&&(0,R.jsx)(sF,{...q(`calendar-nav-next`),"aria-label":t(`Next month`),variant:`outline`,size:`icon-sm`,onClick:()=>O(1),children:(0,R.jsx)(dM,{...kP,size:16})})})]}),(0,R.jsxs)(Oce,{columns:7,gap:`$1`,children:[v.map(e=>(0,R.jsx)(bV,{style:{textAlign:`center`},children:(0,R.jsx)(H,{size:`$1`,color:`$quiet`,children:e})},e)),h[r].map((t,r)=>{if(!t)return(0,R.jsx)(bV,{},r);let i=t.getMonth()!==n.getMonth(),a=jce(e,t),o=wV(x.from,t),s=wV(x.to,t),l=a&&e.mode===`range`&&!o&&!s,u=wV(t,y);return(0,R.jsx)(bV,{children:(0,R.jsx)(sF,{...q(`calendar-day`),"data-date":CV(t),"data-today":u||void 0,"data-outside":i||void 0,"data-selected":a||void 0,"data-range-start":o||void 0,"data-range-end":s||void 0,"data-range-middle":l||void 0,"aria-selected":a,"aria-label":t.toDateString(),variant:a&&!l?`primary`:l||u?`secondary`:`ghost`,size:`icon`,width:`100%`,opacity:i?.5:1,disabled:!!c?.(t),tabIndex:wV(t,T)&&(!i||!g(T))?0:-1,onFocus:()=>C(t),onKeyDown:e=>k(e,t),onClick:()=>Nce(e,t),children:t.getDate()})},r)})]})]},r))})}var kV=[],AV=[];(()=>{let e=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5`.split(`,`).map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?AV:kV).push(n+=e[t])})();function Ice(e){if(e<768)return!1;for(let t=0,n=kV.length;;){let r=t+n>>1;if(e<kV[r])n=r;else if(e>=AV[r])t=r+1;else return!0;if(t==n)return!1}}function jV(e){return e>=127462&&e<=127487}var MV=8205;function Lce(e,t,n=!0,r=!0){return(n?NV:Rce)(e,t,r)}function NV(e,t,n){if(t==e.length)return t;t&&FV(e.charCodeAt(t))&&IV(e.charCodeAt(t-1))&&t--;let r=PV(e,t);for(t+=LV(r);t<e.length;){let i=PV(e,t);if(r==MV||i==MV||n&&Ice(i))t+=LV(i),r=i;else if(jV(i)){let n=0,r=t-2;for(;r>=0&&jV(PV(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function Rce(e,t,n){for(;t>1;){let r=NV(e,t-2,n);if(r<t)return r;t--}return 0}function PV(e,t){let n=e.charCodeAt(t);if(!IV(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return FV(r)?(n-55296<<10)+(r-56320)+65536:n}function FV(e){return e>=56320&&e<57344}function IV(e){return e>=55296&&e<56320}function LV(e){return e<65536?1:2}var RV=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=KV(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),BV.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=KV(this,e,t);let n=[];return this.decompose(e,t,n,0),BV.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new UV(this),i=new UV(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new UV(this,e)}iterRange(e,t=this.length){return new WV(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new GV(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new zV(t):BV.from(zV.split(t,[]))}},zV=class e extends RV{constructor(e,t=zce(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new Bce(r,o,n,a);r=o+1,n++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(HV(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=VV(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else{let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=KV(this,t,n);let i=VV(this.text,VV(r.text,HV(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):BV.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=`
62
- `){[e,t]=KV(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},BV=class e extends RV{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=KV(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
63
- `){[e,t]=KV(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new zV(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof zV&&c&&(n=u[u.length-1])instanceof zV&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new zV(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};RV.empty=new zV([``],0);function zce(e){let t=-1;for(let n of e)t+=n.length+1;return t}function VV(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function HV(e,t,n){return VV(e,[``],t,n)}var UV=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof zV?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof zV?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
64
- `,this;e--}else if(r instanceof zV){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof zV?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},WV=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new UV(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},GV=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(RV.prototype[Symbol.iterator]=function(){return this.iter()},UV.prototype[Symbol.iterator]=WV.prototype[Symbol.iterator]=GV.prototype[Symbol.iterator]=function(){return this});var Bce=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function KV(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function qV(e,t,n=!0,r=!0){return Lce(e,t,n,r)}function Vce(e){return e>=56320&&e<57344}function Hce(e){return e>=55296&&e<56320}function Uce(e,t){let n=e.charCodeAt(t);if(!Hce(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Vce(r)?(n-55296<<10)+(r-56320)+65536:n}function Wce(e){return e<65536?1:2}var JV=/\r\n?|\n/,YV=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(YV||={}),XV=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){eH(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:nH(this,e)}mapDesc(e,t=!1){return e.empty?this:tH(this,e,t)}mapPos(e,t=-1,n=YV.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=YV.Simple&&c>=e&&(n==YV.TrackDel&&r<e&&c>e||n==YV.TrackBefore&&r<e||n==YV.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},ZV=class e extends XV{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return eH(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return tH(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(RV.empty);r.push(a?t.slice(i,i+a):RV.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:nH(this,e,!0)}map(e,t=!1){return e.empty?this:tH(this,e,t,!0)}iterChanges(e,t=!1){eH(this,e,t)}get desc(){return XV.create(this.sections)}filter(t){let n=[],r=[],i=[],a=new rH(this);done:for(let e=0,o=0;;){let s=e==t.length?1e9:t[e++];for(;o<s||o==s&&a.len==0;){if(a.done)break done;let e=Math.min(a.len,s-o);QV(i,e,-1);let t=a.ins==-1?-1:a.off==0?a.ins:0;QV(n,e,t),t>0&&$V(r,n,a.text),a.forward(e),o+=e}let c=t[e++];for(;o<c;){if(a.done)break done;let e=Math.min(a.len,c-o);QV(n,e,-1),QV(i,e,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(e),o+=e}}return{changes:new e(n,r),filtered:XV.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(t,n,r){let i=[],a=[],o=0,s=null;function c(t=!1){if(!t&&!i.length)return;o<n&&QV(i,n-o,-1);let r=new e(i,a);s=s?s.compose(r.map(s)):r,i=[],a=[],o=0}function l(t){if(Array.isArray(t))for(let e of t)l(e);else if(t instanceof e){if(t.length!=n)throw RangeError(`Mismatched change set length (got ${t.length}, expected ${n})`);c(),s=s?s.compose(t.map(s)):t}else{let{from:e,to:s=e,insert:l}=t;if(e>s||e<0||s>n)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${n})`);let u=l?typeof l==`string`?RV.of(l.split(r||JV)):l:RV.empty,d=u.length;if(e==s&&d==0)return;e<o&&c(),e>o&&QV(i,e-o,-1),QV(i,s-e,d),$V(a,i,u),o=s}}return l(t),c(!s),s}static empty(t){return new e(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError(`Invalid JSON representation of ChangeSet`);let n=[],r=[];for(let e=0;e<t.length;e++){let i=t[e];if(typeof i==`number`)n.push(i,-1);else if(!Array.isArray(i)||typeof i[0]!=`number`||i.some((e,t)=>t&&typeof e!=`string`))throw RangeError(`Invalid JSON representation of ChangeSet`);else if(i.length==1)n.push(i[0],0);else{for(;r.length<e;)r.push(RV.empty);r[e]=RV.of(i.slice(1)),n.push(i[0],r[e].length)}}return new e(n,r)}static createSet(t,n){return new e(t,n)}};function QV(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function $V(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(RV.empty);e.push(n)}}function eH(e,t,n){let r=e.inserted;for(let i=0,a=0,o=0;o<e.sections.length;){let s=e.sections[o++],c=e.sections[o++];if(c<0)i+=s,a+=s;else{let l=i,u=a,d=RV.empty;for(;l+=s,u+=c,c&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=e.sections[o++];t(i,l,a,u,d),i=l,a=u}}}function tH(e,t,n,r=!1){let i=[],a=r?[]:null,o=new rH(e),s=new rH(t);for(let e=-1;;)if(o.done&&s.len||s.done&&o.len)throw Error(`Mismatched change set lengths`);else if(o.ins==-1&&s.ins==-1){let e=Math.min(o.len,s.len);QV(i,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||e==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let t=s.len;for(QV(i,s.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(QV(i,0,o.ins),a&&$V(a,i,o.text),e=o.i),o.forward(n),t-=n}s.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(s.ins==-1){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(s.ins==0&&s.len<n)n-=s.len,s.next();else break;QV(i,t,e<o.i?o.ins:0),a&&e<o.i&&$V(a,i,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&s.done)return a?ZV.createSet(i,a):XV.create(i);else throw Error(`Mismatched change set lengths`)}function nH(e,t,n=!1){let r=[],i=n?[]:null,a=new rH(e),o=new rH(t);for(let e=!1;;)if(a.done&&o.done)return i?ZV.createSet(r,i):XV.create(r);else if(a.ins==0)QV(r,a.len,0,e),a.next();else if(o.len==0&&!o.done)QV(r,0,o.ins,e),i&&$V(i,r,o.text),o.next();else if(a.done||o.done)throw Error(`Mismatched change set lengths`);else{let t=Math.min(a.len2,o.len),n=r.length;if(a.ins==-1){let n=o.ins==-1?-1:o.off?0:o.ins;QV(r,t,n,e),i&&n&&$V(i,r,o.text)}else o.ins==-1?(QV(r,a.off?0:a.len,t,e),i&&$V(i,r,a.textBit(t))):(QV(r,a.off?0:a.len,o.off?0:o.ins,e),i&&!o.off&&$V(i,r,o.text));e=(a.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}var rH=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?RV.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?RV.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},iH=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return Y.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Y.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!=`number`||typeof e.head!=`number`)throw RangeError(`Invalid JSON representation for SelectionRange`);return Y.range(e.anchor,e.head)}static create(t,n,r,i){return new e(t,n,r,i)}},Y=class e{constructor(e,t){this.ranges=e,this.mainIndex=t}map(t,n=-1){return t.empty?this:e.create(this.ranges.map(e=>e.map(t,n)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new e([this.main],0)}addRange(t,n=!0){return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!=`number`||t.main>=t.ranges.length)throw RangeError(`Invalid JSON representation for EditorSelection`);return new e(t.ranges.map(e=>iH.fromJSON(e)),t.main)}static single(t,n=t){return new e([e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw RangeError(`A selection needs at least one range`);for(let r=0,i=0;i<t.length;i++){let a=t[i];if(a.empty?a.from<=r:a.from<r)return e.normalized(t.slice(),n);r=a.to}return new e(t,n)}static cursor(e,t=0,n,r){return iH.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n)),r)}static range(e,t,n,r,i){let a=r==null?7:Math.min(6,r);return!i&&e!=t&&(i=t<e?1:-1),i&&(a|=i<0?8:16),t<e?iH.create(t,e,a|32,n):iH.create(e,t,a,n)}static undirectionalRange(e,t){return iH.create(e,t,64,void 0)}static normalized(t,n=0){let r=t[n];t.sort((e,t)=>e.from-t.from),n=t.indexOf(r);for(let r=1;r<t.length;r++){let i=t[r],a=t[r-1];if(i.empty?i.from<=a.to:i.from<a.to){let o=a.from,s=Math.max(i.to,a.to);r<=n&&n--,t.splice(--r,2,i.anchor>i.head?e.range(s,o):e.range(o,s))}}return new e(t,n)}};function aH(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError(`Selection points outside of document`)}var oH=0,sH=class e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=oH++,this.default=e([]),this.extensions=typeof i==`function`?i(this):i}get reader(){return this}static define(t={}){return new e(t.combine||(e=>e),t.compareInput||((e,t)=>e===t),t.compare||(t.combine?(e,t)=>e===t:cH),!!t.static,t.enables)}of(e){return new lH([],this,0,e)}compute(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new lH(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new lH(e,this,2,t)}from(e,t){return t||=e=>e,this.compute([e],n=>t(n.field(e)))}};function cH(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}var lH=class{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=oH++}dynamicSlot(e){let t=this.value,n=this.facet.compareInput,r=this.id,i=e[r]>>1,a=this.type==2,o=!1,s=!1,c=[];for(let t of this.dependencies)t==`doc`?o=!0:t==`selection`?s=!0:(e[t.id]??1)&1||c.push(e[t.id]);return{create(e){return e.values[i]=t(e),1},update(e,r){if(o&&r.docChanged||s&&(r.docChanged||r.selection)||dH(e,c)){let r=t(e);if(a?!uH(r,e.values[i],n):!n(r,e.values[i]))return e.values[i]=r,1}return 0},reconfigure:(e,o)=>{let s,c=o.config.address[r];if(c!=null){let r=wH(o,c);if(this.dependencies.every(t=>t instanceof sH?o.facet(t)===e.facet(t):t instanceof mH?o.field(t,!1)==e.field(t,!1):!0)||(a?uH(s=t(e),r,n):n(s=t(e),r)))return e.values[i]=r,0}else s=t(e);return e.values[i]=s,1}}}get extension(){return this}};function uH(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function dH(e,t){let n=!1;for(let r of t)CH(e,r)&1&&(n=!0);return n}function fH(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(e&1)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let a=wH(e,r[t]);if(i[t]==2)for(let e of a)n.push(e);else n.push(a)}return t.combine(n)}return{create(e){for(let t of r)CH(e,t);return e.values[o]=s(e),1},update(e,n){if(!dH(e,a))return 0;let r=s(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let a=dH(e,r),c=i.config.facets[t.id],l=i.facet(t);if(c&&!a&&cH(n,c))return e.values[o]=l,0;let u=s(e);return t.compare(u,l)?(e.values[o]=l,0):(e.values[o]=u,1)}}}var pH=sH.define({static:!0}),mH=class e{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let n=new e(oH++,t.create,t.update,t.compare||((e,t)=>e===t),t);return t.provide&&(n.provides=t.provide(n)),n}create(e){return(e.facet(pH).find(e=>e.field==this)?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(pH),i=n.facet(pH),a;return(a=r.find(e=>e.field==this))&&a!=i.find(e=>e.field==this)?(e.values[t]=a.create(e),1):n.config.address[this.id]==null?(e.values[t]=this.create(e),1):(e.values[t]=n.field(this),0)}}}init(e){return[this,pH.of({field:this,create:e})]}get extension(){return this}},hH={lowest:4,low:3,default:2,high:1,highest:0};function gH(e){return t=>new vH(t,e)}var _H={highest:gH(hH.highest),high:gH(hH.high),default:gH(hH.default),low:gH(hH.low),lowest:gH(hH.lowest)},vH=class{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}},yH=class e{of(e){return new bH(this,e)}reconfigure(t){return e.reconfigure.of({compartment:this,extension:t})}get(e){return e.config.compartments.get(this)}},bH=class{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}},xH=class e{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(t,n,r){let i=[],a=Object.create(null),o=new Map;for(let e of SH(t,n,o))e instanceof mH?i.push(e):(a[e.facet.id]||(a[e.facet.id]=[])).push(e);let s=Object.create(null),c=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=r?.config.facets;for(let e in a){let t=a[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>e.type==0)){if(s[n.id]=c.length<<1|1,cH(i,t))c.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));c.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}}else{for(let e of t)e.type==0?(s[e.id]=c.length<<1|1,c.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>fH(e,n,t))}}let d=l.map(e=>e(s));return new e(t,o,d,s,c,a)}};function SH(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(e,o){let s=i.get(e);if(s!=null){if(s<=o)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof bH&&n.delete(e.compartment)}if(i.set(e,o),Array.isArray(e))for(let t of e)a(t,o);else if(e instanceof bH){if(n.has(e.compartment))throw RangeError(`Duplicate use of compartment in extensions`);let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),a(r,o)}else if(e instanceof vH)a(e.inner,e.prec);else if(e instanceof mH)r[o].push(e),e.provides&&a(e.provides,o);else if(e instanceof lH)r[o].push(e),e.facet.extensions&&a(e.facet.extensions,hH.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}).`);if(t==e)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(t,o)}}return a(e,hH.default),r.reduce((e,t)=>e.concat(t))}function CH(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw Error(`Cyclic dependency between fields and/or facets`);if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function wH(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var TH=sH.define(),EH=sH.define({combine:e=>e.some(e=>e),static:!0}),DH=sH.define({combine:e=>e.length?e[0]:void 0,static:!0}),OH=sH.define(),kH=sH.define(),AH=sH.define(),jH=sH.define({combine:e=>e.length?e[0]:!1}),MH=class{constructor(e,t){this.type=e,this.value=t}static define(){return new NH}},NH=class{of(e){return new MH(this,e)}},PH=class{constructor(e){this.map=e}of(e){return new FH(this,e)}},FH=class e{constructor(e,t){this.type=e,this.value=t}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}is(e){return this.type==e}static define(e={}){return new PH(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}};FH.reconfigure=FH.define(),FH.appendConfig=FH.define();var IH=class e{constructor(t,n,r,i,a,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&aH(r,n.newLength),a.some(t=>t.type==e.time)||(this.annotations=a.concat(e.time.of(Date.now())))}static create(t,n,r,i,a,o){return new e(t,n,r,i,a,o)}get newDoc(){return this._doc||=this.changes.apply(this.startState.doc)}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(e.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]==`.`))}};IH.time=MH.define(),IH.userEvent=MH.define(),IH.addToHistory=MH.define(),IH.remote=MH.define();function LH(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],o=e[r++];else if(i<t.length)a=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function RH(e,t,n){let r,i,a;return n?(r=t.changes,i=ZV.empty(t.changes.length),a=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(r)),{changes:a,selection:t.selection?t.selection.map(i):e.selection?.map(r),effects:FH.mapEffects(e.effects,r).concat(FH.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function zH(e,t,n){let r=t.selection,i=WH(t.annotations);return t.userEvent&&(i=i.concat(IH.userEvent.of(t.userEvent))),{changes:t.changes instanceof ZV?t.changes:ZV.of(t.changes||[],n,e.facet(DH)),selection:r&&(r instanceof Y?r:Y.single(r.anchor,r.head)),effects:WH(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function BH(e,t,n){let r=zH(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=RH(r,zH(e,t[i],a?r.changes.newLength:e.doc.length),a)}let i=IH.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return HH(n?VH(i):i)}function VH(e){let t=e.startState,n=!0;for(let r of t.facet(OH)){let t=r(e);if(t===!1){n=!1;break}Array.isArray(t)&&(n=n===!0?t:LH(n,t))}if(n!==!0){let r,i;if(n===!1)i=e.changes.invertedDesc,r=ZV.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=IH.create(t,r,e.selection&&e.selection.map(i),FH.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(kH);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof IH?i:Array.isArray(i)&&i.length==1&&i[0]instanceof IH?i[0]:BH(t,WH(i),!1)}return e}function HH(e){let t=e.startState,n=t.facet(AH),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=RH(r,zH(t,a,e.changes.newLength),!0))}return r==e?e:IH.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}var UH=[];function WH(e){return e==null?UH:Array.isArray(e)?e:[e]}var GH=(function(e){return e[e.Word=0]=`Word`,e[e.Space=1]=`Space`,e[e.Other=2]=`Other`,e})(GH||={}),KH=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,qH;try{qH=RegExp(`[\\p{Alphabetic}\\p{Number}_]`,`u`)}catch{}function JH(e){if(qH)return qH.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>`€`&&(n.toUpperCase()!=n.toLowerCase()||KH.test(n)))return!0}return!1}function YH(e){return t=>{if(!/\S/.test(t))return GH.Space;if(JH(t))return GH.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return GH.Word;return GH.Other}}var XH=class e{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)CH(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw RangeError(`Field is not present in this state`);return}return CH(this,n),wH(this,n)}update(...e){return BH(this,e,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(yH.reconfigure)?(n&&=(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),null),i.set(e.value.compartment,e.value.extension)):e.is(FH.reconfigure)?(n=null,r=e.value):e.is(FH.appendConfig)&&(n=null,r=WH(r).concat(e.value));let a;n?a=t.startState.values.slice():(n=xH.resolve(r,i,this),a=new e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=t.startState.facet(EH)?t.newSelection:t.newSelection.asSingle();new e(n,t.newDoc,o,a,(e,n)=>n.update(e,t),t)}replaceSelection(e){return typeof e==`string`&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Y.cursor(t.from+e.length,-1)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=WH(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),s=this.changes(o.changes),c=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(c);let l=r.mapDesc(s,!0);i.push(o.range.map(l)),r=r.compose(c),a=FH.mapEffects(a,c).concat(FH.mapEffects(WH(o.effects),l))}return{changes:r,selection:Y.create(i,t.mainIndex),effects:a}}changes(t=[]){return t instanceof ZV?t:ZV.of(t,this.doc.length,this.facet(e.lineSeparator))}toText(t){return RV.of(t.split(this.facet(e.lineSeparator)||JV))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(CH(this,t),wH(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof mH&&this.config.address[r.id]!=null&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(t,n={},r){if(!t||typeof t.doc!=`string`)throw RangeError(`Invalid JSON representation for EditorState`);let i=[];if(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(t,e)){let n=r[e],a=t[e];i.push(n.init(e=>n.spec.fromJSON(a,e)))}}return e.create({doc:t.doc,selection:Y.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=xH.resolve(t.extensions||[],new Map),r=t.doc instanceof RV?t.doc:RV.of((t.doc||``).split(n.staticFacet(e.lineSeparator)||JV)),i=t.selection?t.selection instanceof Y?t.selection:Y.single(t.selection.anchor,t.selection.head):Y.single(0);return aH(i,r.length),n.staticFacet(EH)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e.tabSize)}get lineBreak(){return this.facet(e.lineSeparator)||`
65
- `}get readOnly(){return this.facet(jH)}phrase(t,...n){for(let n of this.facet(e.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(e,t)=>{if(t==`$`)return`$`;let r=+(t||1);return!r||r>n.length?e:n[r-1]})),t}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(TH))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){let t=this.languageDataAt(`wordChars`,e);return YH(t.length?t[0]:``)}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=qV(t,a,!1);if(i(t.slice(e,a))!=GH.Word)break;a=e}for(;o<r;){let e=qV(t,o);if(i(t.slice(o,e))!=GH.Word)break;o=e}return a==o?null:Y.range(a+n,o+n)}};XH.allowMultipleSelections=EH,XH.tabSize=sH.define({combine:e=>e.length?e[0]:4}),XH.lineSeparator=DH,XH.readOnly=jH,XH.phrases=sH.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),XH.languageData=TH,XH.changeFilter=OH,XH.transactionFilter=kH,XH.transactionExtender=AH,yH.reconfigure=FH.define();function ZH(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(a===void 0)r[e]=i;else if(a!==i&&i!==void 0){if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error(`Config merge conflict for field `+e)}}for(let e in t)r[e]===void 0&&(r[e]=t[e]);return r}var QH=class{eq(e){return this==e}range(e,t=e){return eU.create(e,t,this)}};QH.prototype.startSide=QH.prototype.endSide=0,QH.prototype.point=!1,QH.prototype.mapMode=YV.TrackDel;function $H(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var eU=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function tU(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var nU=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return iU(this.to)}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i<a;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(t,n,r,i,a){let o=[],s=[],c=[],l=-1,u=-1;iter:for(let e=0;e<this.value.length;e++){let d=this.value[e],f=this.from[e]+t,p=this.to[e]+t,m,h;if(f==p){let e=n.mapPos(f,d.startSide,d.mapMode);if(e==null||(m=h=e,d.startSide!=d.endSide&&(h=n.mapPos(f,d.endSide),h<m)))continue}else if(m=n.mapPos(f,d.startSide),h=n.mapPos(p,d.endSide),m>h||m==h&&d.startSide>0&&d.endSide<=0)continue;if(!((h-m||d.endSide-d.startSide)<0)){if(l<0&&(l=m),d.point&&(u=Math.max(u,h-m)),(m-r||d.startSide-i)>=0)o.push(d),s.push(m-l),c.push(h-l),r=h,i=d.endSide;else{if(m==h)for(let e=o.length;e>0;e--){if((m-(c[e-1]+l)||d.startSide-o[e-1].endSide)>=0){o.splice(e,0,d),s.splice(e,0,m-l),c.splice(e,0,h-l);continue iter}if((m-(s[e-1]+l)||d.endSide-o[e-1].startSide)>0)break}a(m,h,d)}}}return{mapped:o.length?new e(s,c,o,u):null,pos:l}}},rU=class e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(t,n,r,i){return new e(t,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(tU)),this.isEmpty)return n.length?e.of(n):this;let s=new cU(this,null,-1).goto(0),c=0,l=[],u=new oU;for(;s.value||c<n.length;)if(c<n.length&&(s.from-n[c].from||s.startSide-n[c].value.startSide)>=0){let e=n[c++];u.addInner(e.from,e.to,e.value,!1)||l.push(e)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(s.chunkIndex)<n[c].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||a<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||a<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value,!1)||l.push(eU.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?e.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:a}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],i=-1,a,o=(e,t,n)=>{a||=new oU,a.addRange(e,t,n,!1)};for(let e=0;e<this.chunk.length;e++){let a=this.chunkPos[e],s=this.chunk[e],c=t.touchesRange(a,a+s.length);if(c===!1)i=Math.max(i,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(c===!0){let[e,c]=n.length?[iU(r)+iU(n).length,iU(iU(n).value).endSide]:[-1,-1],{mapped:l,pos:u}=s.map(a,t,e,c,o);l&&(i=Math.max(i,l.maxPoint),n.push(l),r.push(u))}}let s=this.nextLayer.map(t);return a&&(s=a.finishInner(s)),n.length==0?s:new e(r,n,s||e.empty,i)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],a=this.chunk[r];if(t>=i&&e<=i+a.length&&a.between(i,e-i,t-i,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return lU.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return lU.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=sU(a,o,n),c=new dU(a,s,i),l=new dU(o,s,i);n.iterGaps((e,t,n)=>fU(c,e,l,t,n,r)),n.empty&&n.length==0&&fU(c,0,l,0,0,r)}static eq(e,t,n=0,r){r??=1e9-1;let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),a=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let o=sU(i,a),s=new dU(i,o,0).goto(n),c=new dU(a,o,0).goto(n);for(;;){if(s.to!=c.to||!pU(s.active,c.active)||s.point&&(!c.point||!$H(s.point,c.point)))return!1;if(s.to>r)return!0;s.next(),c.next()}}static spans(e,t,n,r,i=-1){let a=new dU(e,null,i).goto(t),o=t,s=a.openStart;for(;;){let e=Math.min(a.to,n);if(a.point){let n=a.activeForPoint(a.to),i=a.pointFrom<t?n.length+1:a.point.startSide<0?n.length:Math.min(n.length,s);r.point(o,e,a.point,n,i,a.pointRank),s=Math.min(a.openEnd(e),n.length)}else e>o&&(r.span(o,e,a.active,s),s=a.openEnd(e));if(a.to>n)return s+(a.point&&a.to>n?1:0);o=a.to,a.next()}}static of(e,t=!1){let n=new oU;for(let r of e instanceof eU?[e]:t?aU(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(t){if(!t.length)return e.empty;let n=iU(t);for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=e.empty;i=i.nextLayer)n=new e(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}};rU.empty=new rU([],[],null,-1);function iU(e){return e[e.length-1]}function aU(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(tU(t,r)>0)return e.slice().sort(tU);t=r}return e}rU.empty.nextLayer=rU.empty;var oU=class e{finishChunk(e){this.chunks.push(new nU(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addRange(e,t,n,!0)}addRange(t,n,r,i){this.addInner(t,n,r,i)||(this.nextLayer||=new e).addRange(t,n,r,i)}addInner(e,t,n,r){let i=e-this.lastTo||n.startSide-this.last.endSide;if(r&&i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(rU.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=rU.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function sU(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let a=r.get(e.chunk[t]);a!=null&&(n?n.mapPos(a):a)==e.chunkPos[t]&&!n?.touchesRange(a,a+e.chunk[t].length)&&i.add(e.chunk[t])}return i}var cU=class{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},lU=class e{constructor(e){this.heap=e}static from(t,n=null,r=-1){let i=[];for(let e=0;e<t.length;e++)for(let a=t[e];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&i.push(new cU(a,n,r,e));return i.length==1?i[0]:new e(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)uU(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)uU(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),uU(this.heap,0)}}};function uU(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}var dU=class{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=lU.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){mU(this.active,e),mU(this.activeTo,e),mU(this.activeRank,e),this.minActive=gU(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;hU(this.active,t,n),hU(this.activeTo,t,r),hU(this.activeRank,t,i),e&&hU(e,t,this.cursor.from),this.minActive=gU(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&mU(n,r)}else if(!this.cursor.value){this.to=this.endSide=1e9;break}else if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(!e.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}};function fU(e,t,n,r,i,a){e.goto(t),n.goto(r);let o=r+i,s=r,c=r-t,l=!!a.boundChange;for(let t=!1;;){let r=e.to+c-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+c:n.to,d=Math.min(u,o);if(e.point||n.point?(e.point&&n.point&&$H(e.point,n.point)&&pU(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(s,d,e.point,n.point),t=!1):(t&&=(a.boundChange(s),!1),d>s&&!pU(e.active,n.active)&&a.compareRange(s,d,e.active,n.active),l&&d<o&&(r||e.openEnd(u)!=n.openEnd(u))&&(t=!0)),u>o)break;s=u,i<=0&&e.next(),i>=0&&n.next()}}function pU(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!$H(e[n],t[n]))return!1;return!0}function mU(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function hU(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function gU(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function _U(e,t,n=e.length){let r=0;for(let i=0;i<n&&i<e.length;)e.charCodeAt(i)==9?(r+=t-r%t,i++):(r++,i=qV(e,i));return r}function vU(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=e.charCodeAt(r)==9?n-i%n:1,r=qV(e,r)}return r===!0?-1:e.length}for(var yU=`ͼ`,bU=typeof Symbol>`u`?`__ͼ`:Symbol.for(yU),xU=typeof Symbol>`u`?`__styleSet`+Math.floor(Math.random()*1e8):Symbol(`styleSet`),SU=typeof globalThis<`u`?globalThis:typeof window<`u`?window:{},CU=class{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,a,o){let s=[],c=/^@(\w+)\b/.exec(e[0]),l=c&&c[1]==`keyframes`;if(c&&t==null)return a.push(e[0]+`;`);for(let n in t){let o=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),o,a);else if(o&&typeof o==`object`){if(!c)throw RangeError(`The value of a property (`+n+`) should be a primitive value.`);i(r(n),o,s,l)}else o!=null&&s.push(n.replace(/_.*/,``).replace(/[A-Z]/g,e=>`-`+e.toLowerCase())+`: `+o+`;`)}(s.length||l)&&a.push((n&&!c&&!o?e.map(n):e).join(`, `)+` {`+s.join(` `)+`}`)}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join(`
66
- `)}static newName(){let e=SU[bU]||1;return SU[bU]=e+1,yU+e.toString(36)}static mount(e,t,n){let r=e[xU],i=n&&n.nonce;r?i&&r.setNonce(i):r=new TU(e,i),r.mount(Array.isArray(t)?t:[t],e)}},wU=new Map,TU=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=wU.get(n);if(t)return e[xU]=t;this.sheet=new r.CSSStyleSheet,wU.set(n,this)}else this.styleTag=n.createElement(`style`),t&&this.styleTag.setAttribute(`nonce`,t);this.modules=[],e[xU]=this}mount(e,t){let n=this.sheet,r=0,i=0,a=!1;for(let t=0;t<e.length;t++){let o=e[t],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),a=!0,i--,s=-1),s==-1){if(this.modules.splice(i++,0,o),a=!0,n)for(let e=0;e<o.rules.length;e++)n.insertRule(o.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{if(a){let e=``;for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+`
67
- `;this.styleTag.textContent=e}let e=t.head||t;this.styleTag.parentNode!=e&&e.insertBefore(this.styleTag,e.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute(`nonce`)!=e&&this.styleTag.setAttribute(`nonce`,e)}},EU={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},DU={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},OU=typeof navigator<`u`&&/Mac/.test(navigator.platform),kU=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),AU=0;AU<10;AU++)EU[48+AU]=EU[96+AU]=String(AU);for(var AU=1;AU<=24;AU++)EU[AU+111]=`F`+AU;for(var AU=65;AU<=90;AU++)EU[AU]=String.fromCharCode(AU+32),DU[AU]=String.fromCharCode(AU);for(var jU in EU)DU.hasOwnProperty(jU)||(DU[jU]=EU[jU]);function MU(e){var t=!(OU&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||kU&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?DU:EU)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var NU=typeof navigator<`u`?navigator:{userAgent:``,vendor:``,platform:``},PU=typeof document<`u`?document:{documentElement:{style:{}}},FU=/Edge\/(\d+)/.exec(NU.userAgent),IU=/MSIE \d/.test(NU.userAgent),LU=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(NU.userAgent),RU=!!(IU||LU||FU),zU=!RU&&/gecko\/(\d+)/i.test(NU.userAgent),BU=!RU&&/Chrome\/(\d+)/.exec(NU.userAgent),VU=`webkitFontSmoothing`in PU.documentElement.style,HU=!RU&&/Apple Computer/.test(NU.vendor),UU=HU&&(/Mobile\/\w+/.test(NU.userAgent)||NU.maxTouchPoints>2),WU={mac:UU||/Mac/.test(NU.platform),windows:/Win/.test(NU.platform),linux:/Linux|X11/.test(NU.platform),ie:RU,ie_version:IU?PU.documentMode||6:LU?+LU[1]:FU?+FU[1]:0,gecko:zU,gecko_version:zU?+(/Firefox\/(\d+)/.exec(NU.userAgent)||[0,0])[1]:0,chrome:!!BU,chrome_version:BU?+BU[1]:0,ios:UU,android:/Android\b/.test(NU.userAgent),webkit:VU,webkit_version:VU?+(/\bAppleWebKit\/(\d+)/.exec(NU.userAgent)||[0,0])[1]:0,safari:HU,safari_version:HU?+(/\bVersion\/(\d+(\.\d+)?)/.exec(NU.userAgent)||[0,0])[1]:0,tabSize:PU.documentElement.style.tabSize==null?`-moz-tab-size`:`tab-size`};function GU(e,t){for(let n in e)n==`class`&&t.class?t.class+=` `+e.class:n==`style`&&t.style?t.style+=`;`+e.style:t[n]=e[n];return t}var KU=Object.create(null);function qU(e,t,n){if(e==t)return!0;e||=KU,t||=KU;let r=Object.keys(e),i=Object.keys(t);if(r.length-0!=i.length-0)return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function JU(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]??e.removeAttribute(r)}for(let n in t){let r=t[n];n==`style`?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function YU(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i==`style`?e.style.cssText=``:e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i==`style`?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function XU(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}var ZU=class{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},QU=(function(e){return e[e.Text=0]=`Text`,e[e.WidgetBefore=1]=`WidgetBefore`,e[e.WidgetAfter=2]=`WidgetAfter`,e[e.WidgetRange=3]=`WidgetRange`,e})(QU||={}),$U=class extends QH{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new eW(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new nW(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:a}=rW(e,t);n=(i?t?-3e8:-1:5e8)-1,r=(a?t?2e8:1:-6e8)+1}return new nW(e,n,r,t,e.widget||null,!0)}static line(e){return new tW(e)}static set(e,t=!1){return rU.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};$U.none=rU.empty;var eW=class e extends $U{constructor(e){let{start:t,end:n}=rW(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||`span`,this.attrs=e.class&&e.attributes?GU(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||KU}eq(t){return this==t||t instanceof e&&this.tagName==t.tagName&&qU(this.attrs,t.attrs)}range(e,t=e){if(e>=t)throw RangeError(`Mark decorations may not be empty`);return super.range(e,t)}};eW.prototype.point=!1;var tW=class e extends $U{constructor(e){super(-2e8,-2e8,null,e)}eq(t){return t instanceof e&&this.spec.class==t.spec.class&&qU(this.spec.attributes,t.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError(`Line decoration ranges must be zero-length`);return super.range(e,t)}};tW.prototype.mapMode=YV.TrackBefore,tW.prototype.point=!0;var nW=class e extends $U{constructor(e,t,n,r,i,a){super(t,n,i,e),this.block=r,this.isReplace=a,this.mapMode=r?t<=0?YV.TrackBefore:YV.TrackAfter:YV.TrackDel}get type(){return this.startSide==this.endSide?this.startSide<=0?QU.WidgetBefore:QU.WidgetAfter:QU.WidgetRange}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof e&&iW(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError(`Invalid range for replacement decoration`);if(!this.isReplace&&t!=e)throw RangeError(`Widget decorations can only have zero-length ranges`);return super.range(e,t)}};nW.prototype.point=!0;function rW(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n??=e.inclusive,r??=e.inclusive,{start:n??t,end:r??t}}function iW(e,t){return e==t||!!(e&&t&&e.compare(t))}function aW(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}var oW=class e extends QH{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(t){return t==this||t instanceof e&&this.tagName==t.tagName&&qU(this.attributes,t.attributes)}static create(t){return new e(t.tagName,t.attributes||KU,t.rank==null?50:Math.max(0,Math.min(t.rank,100)))}static set(e,t=!1){return rU.of(e,t)}};oW.prototype.startSide=oW.prototype.endSide=-1;var sW=e=>e.nodeType==1,cW=e=>e.nodeType==3;function lW(e){let t;return t=e.nodeType==11?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function uW(e,t){return t?e==t||e.contains(t.nodeType==1?t:t.parentNode):!1}function dW(e,t){if(!t.anchorNode)return!1;try{return uW(e,t.anchorNode)}catch{return!1}}function fW(e){return cW(e)?kW(e,0,e.nodeValue.length).getClientRects():sW(e)?e.getClientRects():[]}function pW(e,t,n,r){return n?gW(e,t,n,r,-1)||gW(e,t,n,r,1):!1}function mW(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function hW(e){return sW(e)&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function gW(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:_W(e))){if(e.nodeName==`DIV`)return!1;let n=e.parentNode;if(!n||!sW(n))return!1;t=mW(e)+(i<0?0:1),e=n}else if(sW(e)){if(e=e.childNodes[t+(i<0?-1:0)],sW(e)&&(e.nodeName==`IMG`||e.nodeName==`BR`||e.contentEditable==`false`))return!1;t=i<0?_W(e):0}else return!1}}function _W(e){return cW(e)?e.nodeValue.length:e.childNodes.length}function vW(e,t){let{left:n,right:r}=e;if(n==r)return e;let i=t?n:r;return{left:i,right:i,top:e.top,bottom:e.bottom}}function yW(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function bW(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function xW(e,t,n,r,i,a,o,s){let c=e.ownerDocument,l=c.defaultView||window;for(let u=e,d=!1;u&&!d;)if(sW(u)){let e,f=u==c.body,p=1,m=1,h=!0,g=!0;if(f)e=yW(l);else{let t=getComputedStyle(u);if(/^(fixed|sticky)$/.test(t.position)&&(d=!0),(u.scrollHeight<=u.clientHeight||!/auto|scroll/.test(t.overflowY))&&(g=!1),(u.scrollWidth<=u.clientWidth||!/auto|scroll/.test(t.overflowX))&&(h=!1),!h&&!g){u=u.assignedSlot||u.parentNode;continue}let n=u.getBoundingClientRect();({scaleX:p,scaleY:m}=bW(u,n)),e={left:n.left,right:n.left+u.clientWidth*p,top:n.top,bottom:n.top+u.clientHeight*m}}let _=0,v=0;if(g){if(i==`nearest`)t.top<e.top+o?(v=t.top-(e.top+o),n>0&&t.bottom>e.bottom+v&&(v=t.bottom-e.bottom+o)):t.bottom>e.bottom-o&&(v=t.bottom-e.bottom+o,n<0&&t.top-v<e.top&&(v=t.top-(e.top+o)));else{let r=t.bottom-t.top,a=e.bottom-e.top;v=(i==`center`&&r<=a?t.top+r/2-a/2:i==`start`||i==`center`&&n<0?t.top-o:t.bottom-a+o)-e.top}}if(h&&(r==`nearest`?t.left<e.left+a?(_=t.left-(e.left+a),n>0&&t.right>e.right+_&&(_=t.right-e.right+a)):t.right>e.right-a&&(_=t.right-e.right+a,n<0&&t.left<e.left+_&&(_=t.left-(e.left+a))):_=(r==`center`?t.left+(t.right-t.left)/2-(e.right-e.left)/2:r==`start`==s?t.left-a:t.right-(e.right-e.left)+a)-e.left),_||v){if(f)l.scrollBy(_,v);else{let e=0,n=0;if(v){let e=u.scrollTop;u.scrollTop+=v/m,n=(u.scrollTop-e)*m}if(_){let t=u.scrollLeft;u.scrollLeft+=_/p,e=(u.scrollLeft-t)*p}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-_)<1&&(r=`nearest`),n&&Math.abs(n-v)<1&&(i=`nearest`)}}if(f)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function SW(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let a=e.parentNode;a&&!(a==n.body||(!t||r)&&i);)if(sW(a))!i&&a.scrollHeight>a.clientHeight&&/scroll|auto/.test(getComputedStyle(a).overflowY)&&(i=a),t&&!r&&a.scrollWidth>a.clientWidth&&/scroll|auto/.test(getComputedStyle(a).overflowX)&&(r=a),a=a.assignedSlot||a.parentNode;else if(a.nodeType==11)a=a.host;else break;return{x:r,y:i}}var CW=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?_W(t):0),n,Math.min(e.focusOffset,n?_W(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}};function wW(e){let t=[];for(let n=e;n;n=n.nodeType==11?n.host:n.parentNode)sW(n)&&t.push({node:n,left:n.scrollLeft,top:n.scrollTop});return t}function TW(e,t=!0){for(let{node:n,left:r,top:i}of e)t&&n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=r&&(n.scrollLeft=r)}var EW=null;WU.safari&&WU.safari_version>=26&&(EW=!1);function DW(e){if(e.setActive)return e.setActive();if(EW)return e.focus(EW);let t=wW(e);e.focus(EW==null?{get preventScroll(){return EW={preventScroll:!0},!0}}:void 0),EW||(EW=!1,TW(t))}var OW;function kW(e,t,n=t){let r=OW||=document.createRange();return r.setEnd(e,n),r.setStart(e,t),r}function AW(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let a=new KeyboardEvent(`keydown`,i);a.synthetic=!0,e.dispatchEvent(a);let o=new KeyboardEvent(`keyup`,i);return o.synthetic=!0,e.dispatchEvent(o),a.defaultPrevented||o.defaultPrevented}function jW(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function MW(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,_W(n));;)if(r){if(!sW(n))return!1;let e=n.childNodes[r-1];e.contentEditable==`false`?r--:(n=e,r=_W(n))}else if(n==e)return!0;else r=mW(n),n=n.parentNode}function NW(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function PW(e,t){for(let n=e,r=t;;)if(cW(n)&&r>0)return{node:n,offset:r};else if(sW(n)&&r>0){if(n.contentEditable==`false`)return null;n=n.childNodes[r-1],r=_W(n)}else if(n.parentNode&&!hW(n))r=mW(n),n=n.parentNode;else return null}function FW(e,t){for(let n=e,r=t;;)if(cW(n)&&r<n.nodeValue.length)return{node:n,offset:r};else if(sW(n)&&r<n.childNodes.length){if(n.contentEditable==`false`)return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!hW(n))r=mW(n)+1,n=n.parentNode;else return null}var IW=class e{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(t,n){return new e(t.parentNode,mW(t),n)}static after(t,n){return new e(t.parentNode,mW(t)+1,n)}},LW=(function(e){return e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`,e})(LW||={}),RW=LW.LTR,zW=LW.RTL;function BW(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<e[n]);return t}var VW=BW(`88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008`),HW=BW(`4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333`),UW=Object.create(null),WW=[];for(let e of[`()`,`[]`,`{}`]){let t=e.charCodeAt(0),n=e.charCodeAt(1);UW[t]=n,UW[n]=-t}function GW(e){return e<=247?VW[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?HW[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}var KW=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,qW=class{get dir(){return this.level%2?zW:RW}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let a=0;a<e.length;a++){let o=e[a];if(o.from<=t&&o.to>=t){if(o.level==n)return a;(i<0||(r==0?e[i].level>o.level:r<0?o.from<t:o.to>t))&&(i=a)}}if(i<0)throw RangeError(`Index out of range`);return i}};function JW(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!JW(r.inner,i.inner))return!1}return!0}var YW=[];function XW(e,t,n,r,i){for(let a=0;a<=r.length;a++){let o=a?r[a-1].to:t,s=a<r.length?r[a].from:n,c=a?256:i;for(let t=o,n=c,r=c;t<s;t++){let i=GW(e.charCodeAt(t));i==512?i=n:i==8&&r==4&&(i=16),YW[t]=i==4?2:i,i&7&&(r=i),n=i}for(let e=o,t=c,r=c;e<s;e++){let i=YW[e];if(i==128)e<s-1&&t==YW[e+1]&&t&24?i=YW[e]=t:YW[e]=256;else if(i==64){let i=e+1;for(;i<s&&YW[i]==64;)i++;let a=e&&t==8||i<n&&YW[i]==8?r==1?1:8:256;for(let t=e;t<i;t++)YW[t]=a;e=i-1}else i==8&&r==1&&(YW[e]=1);t=i,i&7&&(r=i)}}}function ZW(e,t,n,r,i){let a=i==1?2:1;for(let o=0,s=0,c=0;o<=r.length;o++){let l=o?r[o-1].to:t,u=o<r.length?r[o].from:n;for(let t=l,n,r,o;t<u;t++)if(r=UW[n=e.charCodeAt(t)]){if(r<0){for(let e=s-3;e>=0;e-=3)if(WW[e+1]==-r){let n=WW[e+2],r=n&2?i:n&4?n&1?a:i:0;r&&(YW[t]=YW[WW[e]]=r),s=e;break}}else if(WW.length==189)break;else WW[s++]=t,WW[s++]=n,WW[s++]=c}else if((o=YW[t])==2||o==1){let e=o==i;c=+!e;for(let t=s-3;t>=0;t-=3){let n=WW[t+2];if(n&2)break;if(e)WW[t+2]|=2;else{if(n&4)break;WW[t+2]|=4}}}}}function QW(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let o=i?n[i-1].to:e,s=i<n.length?n[i].from:t;for(let c=o;c<s;){let o=YW[c];if(o==256){let o=c+1;for(;;)if(o==s){if(i==n.length)break;o=n[i++].to,s=i<n.length?n[i].from:t}else if(YW[o]==256)o++;else break;let l=a==1,u=l==((o<t?YW[o]:r)==1)?l?1:2:r;for(let t=o,r=i,a=r?n[r-1].to:e;t>c;)t==a&&(t=n[--r].from,a=r?n[r-1].to:e),YW[--t]=u;c=o}else a=o,c++}}}function $W(e,t,n,r,i,a,o){let s=r%2?2:1;if(r%2==i%2)for(let c=t,l=0;c<n;){let t=!0,u=!1;if(l==a.length||c<a[l].from){let e=YW[c];e!=s&&(t=!1,u=e==16)}let d=!t&&s==1?[]:null,f=t?r:r+1,p=c;run:for(;;)if(l<a.length&&p==a[l].from){if(u)break run;let m=a[l];if(!t)for(let e=m.to,t=l+1;;){if(e==n)break run;if(t<a.length&&a[t].from==e)e=a[t++].to;else if(YW[e]==s)break run;else break}l++,d?d.push(m):(m.from>c&&o.push(new qW(c,m.from,f)),eG(e,m.direction==RW==!(f%2)?r:r+1,i,m.inner,m.from,m.to,o),c=m.to),p=m.to}else if(p==n||(t?YW[p]!=s:YW[p]==s))break;else p++;d?$W(e,c,p,r+1,i,d,o):c<p&&o.push(new qW(c,p,f)),c=p}else for(let c=n,l=a.length;c>t;){let n=!0,u=!1;if(!l||c>a[l-1].to){let e=YW[c-1];e!=s&&(n=!1,u=e==16)}let d=!n&&s==1?[]:null,f=n?r:r+1,p=c;run:for(;;)if(l&&p==a[l-1].to){if(u)break run;let m=a[--l];if(!n)for(let e=m.from,n=l;;){if(e==t)break run;if(n&&a[n-1].to==e)e=a[--n].from;else if(YW[e-1]==s)break run;else break}d?d.push(m):(m.to<c&&o.push(new qW(m.to,c,f)),eG(e,m.direction==RW==!(f%2)?r:r+1,i,m.inner,m.from,m.to,o),c=m.from),p=m.from}else if(p==t||(n?YW[p-1]!=s:YW[p-1]==s))break;else p--;d?$W(e,p,c,r+1,i,d,o):p<c&&o.push(new qW(p,c,f)),c=p}}function eG(e,t,n,r,i,a,o){let s=t%2?2:1;XW(e,i,a,r,s),ZW(e,i,a,r,s),QW(i,a,r,s),$W(e,i,a,t,n,r,o)}function tG(e,t,n){if(!e)return[new qW(0,0,+(t==zW))];if(t==RW&&!n.length&&!KW.test(e))return nG(e.length);if(n.length)for(;e.length>YW.length;)YW[YW.length]=256;let r=[],i=t==RW?0:1;return eG(e,i,i,n,0,e.length,r),r}function nG(e){return[new qW(0,e,0)]}var rG=``;function iG(e,t,n,r,i){if(!e.length)return null;let a=r.head-e.from,o;if(r.head==e.from&&r.assoc<0){if(!i)return null;a=t[o=0].side(!1,n)}else if(r.head==e.to&&r.assoc>0){if(i)return null;a=t[o=t.length-1].side(!0,n)}else o=qW.find(t,a,r.bidiLevel??-1,r.assoc);let s=t[o],c=s.side(i,n);if(a==c){let e=o+=i?1:-1;if(e<0||e>=t.length)return null;s=t[o=e],a=s.side(!i,n),c=s.side(i,n)}let l=qV(e.text,a,s.forward(i,n));(l<s.from||l>s.to)&&(l=c),rG=e.text.slice(Math.min(a,l),Math.max(a,l));let u=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];if(l==c){if(!u)return i?Y.cursor(e.to,1):Y.cursor(e.from,-1);if(u.level+ +!i<s.level)return Y.cursor(u.side(!i,n)+e.from,u.forward(i,n)?1:-1,u.level)}return Y.cursor(l+e.from,s.forward(i,n)?-1:1,s.level)}function aG(e,t,n){for(let r=t;r<n;r++){let t=GW(e.charCodeAt(r));if(t==1)return RW;if(t==2||t==4)return zW}}var oG=sH.define(),sG=sH.define(),cG=sH.define(),lG=sH.define(),uG=sH.define(),dG=sH.define(),fG=sH.define(),pG=sH.define(),mG=sH.define(),hG=sH.define({combine:e=>e.some(e=>e)}),gG=sH.define({combine:e=>e.some(e=>e)}),_G=sH.define(),vG=class e{constructor(e,t,n,r,i,a=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=a}map(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new e(Y.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},yG=FH.define({map:(e,t)=>e.map(t)}),bG=FH.define();function xG(e,t,n){let r=e.facet(lG);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+`:`,t):console.error(t))}var SG=sH.define({combine:e=>!e.length||e[0]}),CG=0,wG=sH.define({combine(e){return e.filter((t,n)=>{for(let r=0;r<n;r++)if(e[r].plugin==t.plugin)return!1;return!0})}}),TG=class e{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(wG.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(wG.of({plugin:this,arg:e}))}static define(t,n){let{eventHandlers:r,eventObservers:i,provide:a,decorations:o}=n||{};return new e(CG++,t,r,i,e=>{let t=[];return o&&t.push(kG.of(t=>{let n=t.plugin(e);return n?o(n):$U.none})),a&&t.push(a(e)),t})}static fromClass(t,n){return e.define((e,n)=>new t(e,n),n)}},EG=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(!this.value){if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){xG(e.state,t,`CodeMirror plugin crashed`),this.deactivate()}}else if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(xG(e.state,t,`CodeMirror plugin crashed`),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}return this}destroy(e){if(this.value?.destroy)try{this.value.destroy()}catch(t){xG(e.state,t,`CodeMirror plugin crashed`)}}deactivate(){this.spec=this.value=null}},DG=sH.define(),OG=sH.define(),kG=sH.define(),AG=sH.define(),jG=sH.define(),MG=sH.define(),NG=sH.define();function PG(e,t){let n=e.state.facet(NG);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return rU.spans(r,t.from,t.to,{point(){},span(e,n,r,a){let o=e-t.from,s=n-t.from,c=i;for(let e=r.length-1;e>=0;e--,a--){let t=r[e].spec.bidiIsolate,n;if(a>0&&c.length&&(n=c[c.length-1]).to==o&&n.direction==t)n.to=s,c=n.inner;else{let e={from:o,to:s,direction:t,inner:[]};c.push(e),c=e.inner}}}}),FG(t.text,i)}function FG(e,t){for(let n of t){if(n.direction==null){for(let t=n.from,r=0;t<n.to;r++){let i=r<n.inner.length?n.inner[r]:null,a=aG(e,t,i?i.from:n.to);if(a){n.direction=a;break}if(!i)break;t=i.to}n.direction??=LW.LTR}FG(e,n.inner)}return t}var IG=sH.define();function LG(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(IG)){let o=a(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:t,right:n,top:r,bottom:i}}var RG=sH.define(),zG=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let i=0,a=0,o=0;;){let s=i<t.length?t[i].fromB:1e9,c=a<n.length?n[a]:1e9,l=Math.min(s,c);if(l==1e9)break;let u=l+o,d=l,f=u;for(;;)if(a<n.length&&n[a]<=d){let e=n[a+1];a+=2,d=Math.max(d,e);for(let e=i;e<t.length&&t[e].fromB<=d;e++)o=t[e].toA-t[e].toB;f=Math.max(f,e+o)}else if(i<t.length&&t[i].fromB<=d){let e=t[i++];d=Math.max(d,e.toB),f=Math.max(f,e.toA),o=e.toA-e.toB}else break;r.push(new e(u,f,l,d))}return r}},BG=class e{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=ZV.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let r=[];this.changes.iterChangedRanges((e,t,n,i)=>r.push(new zG(e,t,n,i))),this.changedRanges=r}static create(t,n,r){return new e(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},VG=[],HG=class{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return VG}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let e=this.domAttrs;e&&JU(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:``)+(this.breakAfter?`#`:``)}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter}throw RangeError(`Invalid child in posBefore`)}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,n){return null}domPosFor(e,t){let n=mW(this.dom),r=this.length?e>0:t>0;return new IW(this.parent.dom,n+ +!!r,e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof GG)return e;return null}static get(e){return e.cmTile}},UG=class extends HG{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,n=null,r,i=e?.node==t?e:null,a=0;for(let o of this.children){if(o.sync(e),a+=o.length+o.breakAfter,r=n?n.nextSibling:t.firstChild,i&&r!=o.dom&&(i.written=!0),o.dom.parentNode==t)for(;r&&r!=o.dom;)r=WG(r);else t.insertBefore(o.dom,r);n=o.dom}for(r=n?n.nextSibling:t.firstChild,i&&r&&(i.written=!0);r;)r=WG(r);this.length=a}};function WG(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var GG=class extends UG{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=HG.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&i++,r=t.pop()}else{let a=n.children[r++];if(a instanceof KG)t.push(r),n=a,r=0;else{let t=i+a.length,n=e(a,i);if(n!==void 0)return n;i=t+a.breakAfter}}}resolveBlock(e,t){let n,r=-1,i,a=-1;if(this.blockTiles((o,s)=>{let c=s+o.length;if(e>=s&&e<=c){if(o.isWidget()&&t>=-1&&t<=1){if(o.flags&32)return!0;o.flags&16&&(n=void 0)}(s<e||e==c&&(t<-1?o.length:o.covers(1)))&&(!n||!o.isWidget()&&n.isWidget())&&(n=o,r=e-s),(c>e||e==s&&(t>1?o.length:o.covers(-1)))&&(!i||!o.isWidget()&&i.isWidget())&&(i=o,a=e-s)}}),!n&&!i)throw Error(`No tile at position `+e);return n&&t<0||!i?{tile:n,offset:r}:{tile:i,offset:a}}},KG=class e extends UG{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(t,n){let r=new e(n||document.createElement(t.tagName),t);return n||(r.flags|=4),r}},qG=class e extends UG{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(t,n,r){let i=new e(n||document.createElement(`div`),t);return(!n||!r)&&(i.flags|=4),i}get domAttrs(){return this.attrs}resolveInline(e,t,n=!1){let r=null,i=-1,a=null,o=-1;function s(e,c){for(let l=0,u=0;l<e.children.length&&u<=c;l++){let d=e.children[l],f=u+d.length;f>=c&&(d.isComposite()?s(d,c-u):(!a||n&&a.isHidden&&(t>0&&!(a.flags&32)||n&&YG(a,d)))&&(f>c||d.flags&32&&t<=1)?(a=d,o=c-u):(u<c||d.flags&16&&!(n&&d.isHidden)&&t>=-1)&&(r=d,i=c-u)),u=f}}s(this,e);let c=(t<0?r:a)||r||a;return c?{tile:c,offset:c==r?i:o}:null}coordsIn(e,t,n){let r=this.resolveInline(e,t,!0);return r?r.tile.coordsIn(Math.max(0,r.offset),t,n):JG(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:e,offset:r}=n;if(this.dom.contains(e.dom))return e.isText()?new IW(e.dom,Math.min(e.dom.nodeValue.length,r)):e.domPosFor(r,e.flags&16?1:e.flags&32?-1:t);let i=n.tile.parent,a=!1;for(let e of i.children){if(a)return new IW(e.dom,0);e==n.tile&&(a=!0)}}return new IW(this.dom,0)}};function JG(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=fW(t);return n[n.length-1]||null}function YG(e,t){let n=e.coordsIn(0,1),r=t.coordsIn(0,1);return n&&r&&r.top<n.bottom}var XG=class e extends UG{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(t,n){let r=new e(n||document.createElement(t.tagName),t);return n||(r.flags|=4),r}},ZG=class e extends HG{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t,n){let r=this.dom.nodeValue.length;e>r&&(e=r);let i=e,a=e,o=0;e==0&&t<0||e==r&&t>=0?WU.chrome||WU.gecko||(e?(i--,o=1):a<r&&(a++,o=-1)):t<0?i--:a<r&&a++;let s=kW(this.dom,i,a).getClientRects();if(!s.length)return null;let c=s[(o?o<0:t>=0)?0:s.length-1];return WU.safari&&!o&&c.width==0&&(c=Array.prototype.find.call(s,e=>e.width)||c),n==null?c:vW(c,(o?o>0:t<0)==n)}static of(t,n){let r=new e(n||document.createTextNode(t),t);return n||(r.flags|=2),r}},QG=class e extends HG{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return vW(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=this.flags&16?!0:this.flags&32?!1:e>0;for(let i=r?t.length-1:0;n=t[i],!(e>0?i==0:i==t.length-1||n.top<n.bottom);i+=r?-1:1);return vW(n,!r)}}get overrideDOMText(){if(!this.length)return RV.empty;let{root:e}=this;if(!e)return RV.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(t,n,r,i,a){return a||(a=t.toDOM(n),t.editable||(a.contentEditable=`false`)),new e(a,r,t,i)}},$G=class extends HG{constructor(e){let t=document.createElement(`img`);t.className=`cm-widgetBuffer`,t.setAttribute(`aria-hidden`,`true`),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return RV.empty}coordsIn(e,t,n){let r=this.dom.getBoundingClientRect();return n==null?r:vW(r,t>0==n)}},eK=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:a,parents:o}=this;for(;e||t>0;)if(!r.isComposite()){let t=r.length;if(i<t&&e){let a=Math.min(e,t-i);n&&n.skip(r,i,i+a),e-=a,i+=a}if(i==t)a=!!r.breakAfter,{tile:r,index:i}=o.pop(),i++;else if(!e)break}else if(a){if(!e)break;n&&n.break(),e--,a=!1}else if(i==r.children.length){if(!e&&!o.length)break;n&&n.leave(r),a=!!r.breakAfter,{tile:r,index:i}=o.pop(),i++}else{let s=r.children[i],c=s.breakAfter;(t>0?s.length<=e:s.length<e)&&(!n||n.skip(s,0,s.length)!==!1||!s.isComposite)?(a=!!c,i++,e-=s.length):(o.push({tile:r,index:i}),r=s,i=0,n&&s.isComposite()&&n.enter(s))}return this.tile=r,this.index=i,this.beforeBreak=a,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},tK=class{constructor(e,t,n,r){this.from=e,this.to=t,this.wrapper=n,this.rank=r}},nK=class{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,r){this.flushBuffer();let i=this.ensureMarks(t,n),a=i.lastChild;if(a&&a.isText()&&!(a.flags&8)&&a.length+e.length<512){this.cache.reused.set(a,2);let t=i.children[i.children.length-1]=new ZG(a.dom,a.text+e);t.parent=i}else i.append(r||ZG.of(e,this.cache.find(ZG)?.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?fK(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let r=n;for(let e=t.marks.length-1;e>=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof XG&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(fK(n.dom)),r=i;else{let{dom:e}=n;this.cache.reused.get(n)&&HG.get(n.dom)&&(e=fK(n.dom));let t=XG.of(n.mark,e);r.append(t),r=t}this.cache.reused.set(n,2)}let i=HG.get(e.text);i&&this.cache.reused.set(i,2);let a=new ZG(e.text,e.text.nodeValue);a.flags|=8,this.pos=e.range.toB,r.append(a)}addInlineWidget(e,t,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let i=this.ensureMarks(t,n);!r&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){e||=lK;let n=qG.start(e,t||this.cache.find(qG)?.dom,!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){let n=this.curLine;for(let r=e.length-1;r>=0;r--){let i=e[r],a;if(t>0&&(a=n.lastChild)&&a instanceof XG&&a.mark.eq(i))n=a,t--;else{let e=XG.of(i,this.cache.find(XG,e=>e.mark.eq(i))?.dom);n.append(e),n=e,t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!sK(this.curLine,!1)||e.dom.nodeName!=`BR`&&e.isWidget()&&!(WU.ios&&sK(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(mK,0,32)||new QG(mK.toDOM(),0,mK,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=e.rank*102+e.value.rank,n=new tK(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){this.updateBlockWrappers();let e=this.root;for(let t of this.wrappers){let n=e.lastChild;if(t.from<this.pos&&n instanceof KG&&n.wrapper.eq(t.wrapper))e=n;else{let n=KG.of(t.wrapper,this.cache.find(KG,e=>e.wrapper.eq(t.wrapper))?.dom);e.append(n),e=n}}return e}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find($G,void 0,1);return n&&(n.flags=t),n||new $G(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},rK=class{constructor(e){this.skipCount=0,this.text=``,this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text=``,this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw Error(`Ran out of text content when drawing inline views`);this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}},iK=[QG,qG,ZG,XG,$G,KG,GG];for(let e=0;e<iK.length;e++)iK[e].bucket=e;var aK=class{constructor(e){this.view=e,this.buckets=iK.map(()=>[]),this.index=iK.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],a=this.index[r];for(let e=0;e<i.length;e++){let o=(e+a)%i.length,s=i[o];if((!t||t(s))&&!this.reused.has(s))return i.splice(o,1),o<a&&this.index[r]--,this.reused.set(s,n),s}return null}findWidget(e,t,n){let r=this.buckets[0];if(r.length)for(let i=0,a=0;;i++){if(i==r.length){if(a)return null;a=1,i=0}let o=r[i];if(!this.reused.has(o)&&(a==0?o.widget.compare(e):o.widget.constructor==e.constructor&&e.updateDOM(o.dom,this.view,o.widget)))return r.splice(i,1),i<this.index[0]&&this.index[0]--,o.widget==e&&o.length==t&&(o.flags&497)==n?(this.reused.set(o,1),o):(this.reused.set(o,2),new QG(o.dom,t,e,o.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}},oK=class{constructor(e,t,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new aK(e),this.text=new rK(e.state.doc),this.builder=new nK(this.cache,new GG(e,e.contentDOM),rU.iter(n)),this.cache.reused.set(t,2),this.old=new eK(t),this.reuseWalker={skip:(e,t,n)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,a=0;;){let o=a<e.length?e[a++]:null,s=o?o.fromA:this.old.root.length;if(s>r){let e=s-r;this.preserve(e,!a,!o),r=s,i+=e}if(!o)break;t&&o.fromA<=t.range.fromA&&o.toA>=t.range.toA?(this.forward(o.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(i,t.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,o.toA),this.emit(t.range.toB,o.toB)):(this.forward(o.fromA,o.toA),this.emit(i,o.toB)),i=o.toB,r=o.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let r=dK(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget()){if(this.openWidget)this.builder.continueWidget(n-t);else{let a=n>0||t<e.length?QG.of(e.widget,this.view,n-t,e.flags&496,this.cache.maybeReuse(e)):this.cache.reuse(e);a.flags&256?(a.flags&=-2,this.builder.addBlockWidget(a)):(this.builder.ensureLine(null),this.builder.addInlineWidget(a,r,i),i=r.length)}}else if(e.isText())this.builder.ensureLine(null),!t&&n==e.length&&!this.cache.reused.has(e)?this.builder.addText(e.text,r,i,this.cache.reuse(e)):(this.cache.add(e),this.builder.addText(e.text.slice(t,n),r,i)),i=r.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof $G)this.cache.add(e);else if(e instanceof XG)this.builder.ensureLine(null),this.builder.addMark(e,r,i),this.cache.reused.set(e,1),i=r.length;else return!1;this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof XG&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&=i=0:e instanceof XG&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=-1,a=rU.spans(this.decorations,e,t,{point:(e,t,a,o,s,c)=>{if(a instanceof nW){if(this.disallowBlockEffectsFor[c]){if(a.block)throw RangeError(`Block decorations may not be specified via plugins`);if(t>this.view.state.doc.lineAt(e).to)throw RangeError(`Decorations that replace line breaks may not be specified via plugins`)}if(i=o.length,s>o.length)r.continueWidget(t-e);else{let i=a.widget||(a.block?pK.block:pK.inline),c=cK(a),l=this.cache.findWidget(i,t-e,c)||QG.of(i,this.view,t-e,c);a.block?(a.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(l)):(r.ensureLine(n),r.addInlineWidget(l,o,s))}n=null}else n=uK(n,a);t>e&&this.text.skip(t-e)},span:(e,t,a,o)=>{for(let i=e;i<t;){let s=this.text.next(Math.min(512,t-i));s==null?(r.addLineStartIfNotCovered(n),r.addBreak(),i++):(r.ensureLine(n),r.addText(s,a,i==e?o:a.length),i+=s.length),n=null}i=a.length}});i>-1&&(this.openWidget=a>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=a}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=HG.get(r);if(r==this.view.contentDOM)break;e instanceof XG?t.push(e):e?.isLine()?n=e:e instanceof KG||(r.nodeName==`DIV`&&!n?n=new qG(r,lK):n||t.push(XG.of(new eW({tagName:r.nodeName.toLowerCase(),attributes:XU(r)}),r)))}return n?{line:n,marks:t}:null}};function sK(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}function cK(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}var lK={class:`cm-line`};function uK(e,t){let n=t.spec.attributes,r=t.spec.class;return!n&&!r?e:(e||={class:`cm-line`},n&&GU(n,e),r&&(e.class+=` `+r),e)}function dK(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof XG&&t.push(r.mark)}return t}function fK(e){let t=HG.get(e);return t&&t.setDOM(e.cloneNode()),e}var pK=class extends ZU{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};pK.inline=new pK(`span`),pK.block=new pK(`div`);var mK=new class extends ZU{toDOM(){return document.createElement(`br`)}get isHidden(){return!0}get editable(){return!0}},hK=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=$U.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new GG(e,e.contentDOM),this.updateInner([new zG(0,0,0,e.state.doc.length)],null)}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(this.domChanged?.newSel?n=this.domChanged.newSel.head:!EK(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let r=n>-1?yK(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:n,to:r}=this.hasComposition;t=new zG(n,r,e.changes.mapPos(n,-1),e.changes.mapPos(r,1)).addToSet(t.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(WU.ie||WU.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,a=this.blockWrappers;this.updateDeco();let o=SK(i,this.decorations,e.changes);o.length&&(t=zG.extendWithRanges(t,o));let s=wK(a,this.blockWrappers,e.changes);return s.length&&(t=zG.extendWithRanges(t,s)),r&&!t.some(e=>e.fromA<=r.range.fromA&&e.toA>=r.range.toA)&&(t=r.range.addToSet(t.slice())),this.tile.flags&2&&t.length==0?!1:(this.updateInner(t,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new oK(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&HG.get(t.text)&&r.cache.reused.set(HG.get(t.text),2),this.tile=r.run(e,t),gK(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+`px`,this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+`px`:``;let r=WU.chrome||WU.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||n.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=``});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof DK&&r.push(e.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(bG)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,i=r==n,a=!i&&!(this.view.state.facet(SG)||n.tabIndex>-1)&&dW(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||t||a))return;let o=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,c,l;if(s.empty?l=c=this.inlineDOMNearPos(s.anchor,s.assoc||1):(l=this.inlineDOMNearPos(s.head,s.head==s.from?1:-1),c=this.inlineDOMNearPos(s.anchor,s.anchor==s.from?1:-1)),WU.gecko&&s.empty&&!this.hasComposition&&_K(c)){let e=document.createTextNode(``);this.view.observer.ignore(()=>c.node.insertBefore(e,c.node.childNodes[c.offset]||null)),c=l=new IW(e,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!pW(c.node,c.offset,u.anchorNode,u.anchorOffset)||!pW(l.node,l.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,s))&&(this.view.observer.ignore(()=>{WU.android&&WU.chrome&&n.contains(u.focusNode)&&TK(u.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let e=lW(this.view.root);if(e){if(s.empty){if(WU.gecko){let e=bK(c.node,c.offset);if(e&&e!=3){let t=(e==1?PW:FW)(c.node,c.offset);t&&(c=new IW(t.node,t.offset))}}e.collapse(c.node,c.offset),s.bidiLevel!=null&&e.caretBidiLevel!==void 0&&(e.caretBidiLevel=s.bidiLevel)}else if(e.extend){e.collapse(c.node,c.offset);try{e.extend(l.node,l.offset)}catch{}}else{let t=document.createRange();s.anchor>s.head&&([c,l]=[l,c]),t.setEnd(l.node,l.offset),t.setStart(c.node,c.offset),e.removeAllRanges(),e.addRange(t)}}a&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(c,l)),this.impreciseAnchor=c.precise?null:new IW(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new IW(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&pW(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=lW(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let a=this.lineAt(t.head,t.assoc);if(!a)return;let o=a.posAtStart;if(t.head==o||t.head==o+a.length)return;let s=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!s||!c||s.bottom>c.top)return;let l=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(l.node,l.offset),n.modify(`move`,t.assoc<0?`forward`:`backward`,`lineboundary`),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=_W(e)==0?0:t==0?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;r==0&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!HG.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}else if(n.isText())return e==n.dom?r+t:r+(t?n.length:0);else return r}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(r,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r=-1,i=!1,a,o=-1,s=!1;return this.tile.blockTiles((t,c)=>{if(t.isWidget()){if(t.flags&32&&c>=e)return!0;t.flags&16&&(i=!0)}else{let l=c+t.length;if(c<=e&&(n=t,r=e-c,i=l<e),l>=e&&!a&&(a=t,o=e-c,s=c>e),c>e&&a)return!0}}),!n&&!a?this.domAtPos(e,t):(i&&a?n=null:s&&n&&(a=null),n&&t<0||!a?n.domIn(r,t):a.domIn(o,t))}coordsAt(e,t,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,t);return r.isWidget()?r.widget instanceof DK?null:r.coordsInWidget(i,t,!0):r.coordsIn(i,t,n)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function r(e,t){if(e.isComposite())for(let n of e.children){if(n.length>=t){let e=r(n,t);if(e)return e}if(t-=n.length,t<0)break}else if(e.isText()&&t<e.length){let n=qV(e.text,t);if(n==t)return null;let r=kW(e.dom,t,n).getClientRects();for(let e=0;e<r.length;e++){let t=r[e];if(e==r.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}return r(t,n)}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,a=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,s=this.view.textDirection==LW.LTR,c=0,l=(e,u,d)=>{for(let f=0;f<e.children.length&&!(u>r);f++){let r=e.children[f],p=u+r.length,m=r.dom.getBoundingClientRect(),{height:h}=m;if(d&&!f&&(c+=m.top-d.top),r instanceof KG)p>n&&l(r,u,m);else if(u>=n&&(c>0&&t.push(-c),t.push(h+c),c=0,a)){let e=r.dom.lastChild,t=e?fW(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-m.left:m.right-e.left;n>o&&(o=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=p)}}d&&f==e.children.length-1&&(c+=d.bottom-m.bottom),u=p+r.breakAfter}};return l(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction==`rtl`?LW.RTL:LW.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,n;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=fW(r.dom);if(e.length!=1)return;t+=e[0].width,n=e[0].height}if(t)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:n}}});if(e)return e;let t=document.createElement(`div`),n,r,i;return t.className=`cm-line`,t.style.width=`99999px`,t.style.position=`absolute`,t.textContent=`abc def ghi jkl mno pqr stu`,this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=fW(t.firstChild)[0];n=t.getBoundingClientRect().height,r=e&&e.width?e.width/27:7,i=e&&e.height?e.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],a=i?i.from-1:this.view.state.doc.length;if(a>n){let r=(t.lineBlockAt(a).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push($U.replace({widget:new DK(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!i)break;n=i.to+1}return $U.set(e)}updateDeco(){let e=1,t=this.view.state.facet(kG).map(t=>(this.dynamicDecorationMap[e++]=typeof t==`function`)?t(this.view):t),n=!1,r=this.view.state.facet(jG).map((e,t)=>{let r=typeof e==`function`;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(rU.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(AG).map(e=>typeof e==`function`?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(_G))try{if(t(this.view,e.range,e))return!0}catch(e){xG(this.view.state,e,`scroll handler`)}let{range:t}=e,n=this.coordsAt(t.head,t.assoc||(t.head>t.anchor?-1:1)),r;if(!n)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=LG(this.view),a={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:o,offsetHeight:s}=this.view.scrollDOM;if(xW(this.view.scrollDOM,a,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==LW.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(n.top>window.visualViewport.offsetTop+window.visualViewport.height||n.bottom<window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(t.head,1);if(e){let t=wW(e.dom);e.dom.scrollIntoView({block:`nearest`}),TW(t,!1)}}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){gK(this.tile)}};function gK(e,t){let n=t?.get(e);if(n!=1){n??e.destroy();for(let n of e.children)gK(n,t)}}function _K(e){return sW(e.node)&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable==`false`)&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable==`false`)}function vK(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=PW(n.focusNode,n.focusOffset),i=FW(n.focusNode,n.focusOffset),a=r||i;if(i&&r&&i.node!=r.node){let t=HG.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)a=i;else if(e.docView.lastCompositionAfterCursor){let e=HG.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(a=i)}}if(e.docView.lastCompositionAfterCursor=a!=r,!a)return null;let o=t-a.offset;return{from:o,to:o+a.node.nodeValue.length,node:a.node}}function yK(e,t,n){let r=vK(e,n);if(!r)return null;let{node:i,from:a,to:o}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let c=t.invertedDesc;return{range:new zG(c.mapPos(a),c.mapPos(o),a,o),text:i}}function bK(e,t){return sW(e)?(t&&e.childNodes[t-1].contentEditable==`false`?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable==`false`?2:0):0}var xK=class{constructor(){this.changes=[]}compareRange(e,t){aW(e,t,this.changes)}comparePoint(e,t){aW(e,t,this.changes)}boundChange(e){aW(e,e,this.changes)}};function SK(e,t,n){let r=new xK;return rU.compare(e,t,n,r),r.changes}var CK=class{constructor(){this.changes=[]}compareRange(e,t){aW(e,t,this.changes)}comparePoint(){}boundChange(e){aW(e,e,this.changes)}};function wK(e,t,n){let r=new CK;return rU.compare(e,t,n,r),r.changes}function TK(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(sW(n)&&n.contentEditable==`false`)return!0;return!1}function EK(e,t){let n=!1;return t&&e.iterChangedRanges((e,r)=>{e<t.to&&r>t.from&&(n=!0)}),n}var DK=class extends ZU{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement(`div`);return e.className=`cm-gap`,this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+`px`,!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function OK(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return Y.cursor(t);a==0?n=1:a==i.length&&(n=-1);let o=a,s=a;n<0?o=qV(i.text,a,!1):s=qV(i.text,a);let c=r(i.text.slice(o,s));for(;o>0;){let e=qV(i.text,o,!1);if(r(i.text.slice(e,o))!=c)break;o=e}for(;s<i.length;){let e=qV(i.text,s);if(r(i.text.slice(s,e))!=c)break;s=e}return Y.undirectionalRange(o+i.from,s+i.from)}function kK(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let t=e.viewState.heightOracle.textHeight,r=Math.floor((i-n.top-(e.defaultLineHeight-t)*.5)/t);a+=r*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(n.from,n.to);return n.from+vU(o,a,e.state.tabSize)}function AK(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.to<t)){if(i.from<t&&i.to>t)return i;(!e||i.type==QU.Text&&(e.type!=i.type||(n<0?i.from<t:i.to>t)))&&(e=i)}}return e||r}return r}function jK(e,t,n,r){let i=AK(e,t.head,t.assoc||-1),a=!r||i.type!=QU.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),o=e.posAndSideAtCoords({x:n==(r==LW.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(o)return Y.cursor(o.pos,o.assoc)}return Y.cursor(n?i.to:i.from,n?1:-1)}function MK(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let s=t,c=null;;){let t=iG(i,a,o,s,n),l=rG;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;l=`
68
- `,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),t=n?Y.cursor(i.from,-1):Y.cursor(i.to,1)}if(!c){if(!r)return t;c=r(l)}else if(!c(l))return s;s=t}}function NK(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==GH.Space&&(i=t),i==t}}function PK(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return Y.cursor(i,t.assoc);let o=t.goalColumn,s,c=e.contentDOM.getBoundingClientRect(),l=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(l)o??=l.left-c.left,s=a<0?l.top:l.bottom;else{let t=e.viewState.lineBlockAt(i);o??=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from)),s=(a<0?t.top:t.bottom)+u}let d=c.left+o,f=e.viewState.heightOracle.textHeight>>1,p=r??f;for(let t=0;;t+=f){let r=s+(p+t)*a,i=zK(e,{x:d,y:r},!1,a);if(n?r>c.bottom:r<c.top)return Y.cursor(i.pos,i.assoc);let l=e.coordsAtPos(i.pos,i.assoc),u=l?(l.top+l.bottom)/2:0;if(!l||(n?u>s:u<s))return Y.cursor(i.pos,i.assoc,void 0,o)}}function FK(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,a)=>{if(t>e&&t<i){let a=r||n||(t-e<i-t?-1:1);t=a<0?e:i,r=a}});if(!r)return t}}function IK(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],a=null;if(i.empty){let t=FK(e,i.from,0);t!=i.from&&(a=Y.cursor(t,-1))}else{let t=FK(e,i.from,-1),n=FK(e,i.to,1);(t!=i.from||n!=i.to)&&(a=i.undirectional?Y.undirectionalRange(i.from,i.to):Y.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}a&&(n||=t.ranges.slice(),n[r]=a)}return n?Y.create(n,t.mainIndex):t}function LK(e,t,n){let r=FK(e.state.facet(MG).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Y.cursor(r,r<n.from?1:-1)}var RK=class{constructor(e,t){this.pos=e,this.assoc=t}};function zK(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),a=i.top+e.viewState.paddingTop,{x:o,y:s}=t,c=s-a,l;for(;;){if(c<0)return new RK(0,1);if(c>e.viewState.docHeight)return new RK(e.state.doc.length,-1);if(l=e.elementAtHeight(c),r==null)break;if(l.type==QU.Text){if(r<0?l.to<e.viewport.from:l.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?l.from:l.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?l.bottom+t:l.top-t}if(e.viewport.from>=l.to||e.viewport.to<=l.from){if(n)return null;if(l.type==QU.Text){let t=kK(e,i,l,o,s);return new RK(t,t==l.from?1:-1)}}if(l.type!=QU.Text)return c<(l.top+l.bottom)/2?new RK(l.from,1):new RK(l.to,-1);let u=e.docView.lineAt(l.from,2);return(!u||u.length!=l.length)&&(u=e.docView.lineAt(l.from,-2)),new BK(e,o,s,e.textDirectionAt(l.from)).scanTile(u,l.from)}var BK=class{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[qW.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[qW.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r=0,i=e.length-1,a=new Set,o=this.bidiIn(e[0],e[i]),s,c,l=-1,u=1e9,d;search:for(;r<i;){let n=i-r,f=r+i>>1;adjust:if(a.has(f)){for(let e=1;e<n;e++){let t=f+e;if(t>=i&&(t-=n),!a.has(t)){f=t;break adjust}}break search}a.add(f);let p=t(f),m=0;if(p)for(let e=0;e<p.length;e++){let t=p[e];if(!(t.width==0&&p.length>1)){if(t.bottom<this.y)(!s||s.bottom<t.bottom)&&(s=t),m=1;else if(t.top>this.y)(!c||c.top>t.top)&&(c=t),m=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,n=Math.abs(e);n<u&&(l=f,u=n,d=t),e&&(m=e<0==(this.baseDir==LW.LTR)?-1:1)}}}m==-1&&(!o||this.baseDirAt(e[f],1))?i=f:m==1&&(!o||this.baseDirAt(e[f+1],-1))&&(r=f+1)}if(!d){if(!c&&!s)return{i:0,after:!1};let n=s&&(!c||this.y-s.bottom<c.top-this.y)?s:c;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:r}=d;if(s&&s.bottom>(n+n+r)/3)return this.y=s.bottom-1,this.scan(e,t,!0);if(c&&c.top<(n+r+r)/3)return this.y=c.top+1,this.scan(e,t,!0)}let f=(o?this.dirAt(e[l],1):this.baseDir)==LW.LTR;return{i:l,after:this.x>(d.left+d.right)/2==f}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=qV(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,a=n[r+1]-t;return kW(e.dom,i,a).getClientRects()});return r.after?new RK(n[r.i+1],-1):new RK(n[r.i],1)}scanTile(e,t){if(!e.length)return new RK(t,1);if(e.children.length==1){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return n.flags&48?null:(sW(n.dom)?n.dom:kW(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],a=n[r.i];return i.isText()?this.scanText(i,a):i.isComposite()?this.scanTile(i,a):r.after?new RK(n[r.i+1],-1):new RK(a,1)}},VK=`￿`,HK=class{constructor(e,t){this.points=e,this.view=t,this.text=``,this.lineSeparator=t.state.facet(XH.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=VK}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=HG.get(r),a=r.nextSibling;if(a==t){i?.breakAfter&&!a&&n!=this.view.contentDOM&&this.lineBreak();break}let o=HG.get(a);(i&&o?i.breakAfter:(i?i.breakAfter:hW(r))||hW(a)&&(r.nodeName!=`BR`||i?.isWidget())&&this.text.length>e)&&!WK(a,t)&&this.lineBreak(),r=a}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,o;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=i+a}}readNode(e){let t=HG.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else cW(e)?this.readTextNode(e):e.nodeName==`BR`?e.nextSibling&&this.lineBreak():sW(e)&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(cW(e)?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(UK(e,n.node,n.offset)?t:0))}};function UK(e,t,n){for(;;){if(!t||n<_W(t))return!1;if(t==e)return!0;n=mW(t)+1,t=t.parentNode}}function WK(e,t){let n;for(;e!=t&&e;e=e.nextSibling){let t=HG.get(e);if(!t?.isWidget())return!1;t&&(n||=[]).push(t)}if(n){for(let e of n)if(e.overrideDOMText?.length)return!1}return!0}var GK=class{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}},KK=class{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text=``,this.domChanged=t>-1;let{impreciseHead:i,impreciseAnchor:a}=e.docView,o=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=qK(e.docView.tile,t,n,0))){let t=i||a?[]:QK(e),n=new HK(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=$K(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!uW(e.contentDOM,t.focusNode)?o.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!uW(e.contentDOM,t.anchorNode)?o.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((WU.ios||WU.chrome)&&n!=r&&Math.min(n,r)<=o.main.from&&Math.max(n,r)>=o.main.to&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(n,r),i=Math.max(n,r),a=s.from-t,o=s.to-i;(a==0||a==1||t==0)&&(o==0||o==-1||i==e.state.doc.length)&&(n=0,r=e.state.doc.length)}if(e.inputState.composing>-1&&o.ranges.length>1)this.newSel=o.replaceRange(Y.range(r,n));else if(e.lineWrapping&&r==n&&!(o.main.empty&&o.main.head==n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=Y.create([Y.cursor(n,r)])}else this.newSel=Y.single(r,n)}}};function qK(e,t,n,r){if(e.isComposite()){let i=-1,a=-1,o=-1,s=-1;for(let c=0,l=r,u=r;c<e.children.length;c++){let r=e.children[c],d=l+r.length;if(l<t&&d>n)return qK(r,t,n,l);if(d>=t&&i==-1&&(i=c,a=l),l>n&&r.dom.parentNode==e.dom){o=c,s=u;break}u=d,l=d+r.breakAfter}return{from:a,to:s<0?r+e.length:s,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o<e.children.length&&o>=0?e.children[o].dom:null}}return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function JK(e,t){let n,{newSel:r}=t,{state:i}=e,a=i.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:r}=t.bounds,s=a.from,c=null;(o===8||WU.android&&t.text.length<r-e)&&(s=a.to,c=`end`);let l=i.doc.sliceString(e,r,VK),u,d;!a.empty&&a.from>=e&&a.to<=r&&(t.typeOver||l!=t.text)&&l.slice(0,a.from-e)==t.text.slice(0,a.from-e)&&l.slice(a.to-e)==t.text.slice(u=t.text.length-(l.length-(a.to-e)))?n={from:a.from,to:a.to,insert:RV.of(t.text.slice(a.from-e,u).split(VK))}:(d=ZK(l,t.text,s-e,c))&&(WU.chrome&&o==13&&d.toB==d.from+2&&t.text.slice(d.from,d.toB)==`￿￿`&&d.toB--,n={from:e+d.from,to:e+d.toA,insert:RV.of(t.text.slice(d.from,d.toB).split(VK))})}else r&&(!e.hasFocus&&i.facet(SG)||eq(r,a))&&(r=null);if(!n&&!r)return!1;if((WU.mac||WU.android)&&n&&n.from==n.to&&n.from==a.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute(`autocorrect`)==`off`?(r&&n.insert.length==2&&(r=Y.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:RV.of([n.insert.toString().replace(`.`,` `)])}):i.doc.lineAt(a.from).to<a.to&&e.docView.lineHasWidget(a.to)&&e.inputState.insertingTextAt>Date.now()-50?n={from:a.from,to:a.to,insert:i.toText(e.inputState.insertingText)}:WU.chrome&&n&&n.from==n.to&&n.from==a.head&&n.insert.toString()==`
69
- `&&e.lineWrapping&&(r&&=Y.single(r.main.anchor-1,r.main.head-1),n={from:a.from,to:a.to,insert:RV.of([` `])}),n)return YK(e,n,r,o);if(r&&!eq(r,a)){let t=!1,n=`select`;return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin==`select`&&(t=!0),n=e.inputState.lastSelectionOrigin,n==`select.pointer`&&(r=IK(i.facet(MG).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function YK(e,t,n,r=-1){if(WU.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(WU.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==` `)&&t.insert.length==1&&t.insert.lines==2&&AW(e.contentDOM,`Enter`,13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.length<t.to-t.from&&t.to>i.head)&&AW(e.contentDOM,`Backspace`,8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&AW(e.contentDOM,`Delete`,46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||=XK(e,t,n);return e.state.facet(dG).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function XK(e,t,n){let r,i=e.state,a=i.selection.main,o=-1;if(t.from==t.to&&t.from<a.from||t.from>a.to){let n=t.from<a.from?-1:1,r=n<0?a.from:a.to,s=FK(i.facet(MG).map(t=>t(e)),r,n);t.from==s&&(o=s)}if(o>-1)r={changes:t,selection:Y.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.from<t.from?i.sliceDoc(a.from,t.from):``,o=a.to>t.to?i.sliceDoc(t.to,a.to):``;r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=i.changes(t),s=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),l,u=n&&vK(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(a.head);let d=a.to-t.to;r=i.changeByRange(n=>{if(n.from==a.from&&n.to==a.to)return{changes:o,range:s||n.map(o)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let f=i.changes({from:u,to:r,insert:t.insert}),p=n.to-a.to;return{changes:f,range:s?Y.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}})}else r={changes:o,selection:s&&i.selection.replaceRange(s)}}let s=`input.type`;return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=`.compose`,e.inputState.compositionFirstChange&&(s+=`.start`,e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function ZK(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a<i&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==i&&e.length==t.length)return null;let o=e.length,s=t.length;for(;o>0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r==`end`){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o<a&&e.length<t.length){let e=n<=a&&n>=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s<a){let e=n<=a&&n>=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}function QK(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new GK(n,r)),(i!=n||a!=r)&&t.push(new GK(i,a))),t}function $K(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n<0||r<0?null:n==r?Y.create([Y.cursor(r+t,-1)]):Y.single(n+t,r+t)}function eq(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}var tq=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText=``,this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,WU.safari&&e.contentDOM.addEventListener(`input`,()=>null),WU.gecko&&Rq(e.contentDOM.ownerDocument)}handleEvent(e){hq(this.view,e)&&!this.ignoreDuringComposition(e)&&(e.type==`keydown`&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e))))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=iq(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if(e!=`scroll`){let i=!t[e].handlers.length,a=n[e];a&&i!=!a.handlers.length&&(r.removeEventListener(e,this.handleEvent),a=null),a||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)e!=`scroll`&&!t[e]&&r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&sq.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),WU.android&&WU.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(WU.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(aq.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||oq.indexOf(e.key)>-1&&e.ctrlKey)){let t={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};t.shiftKey&&WU.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&nq(this.view.win)&&(t.shiftKey=!1);let n=this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:t};return setTimeout(()=>{this.pendingIOSKey==n&&this.flushIOSKey()},50),!0}return e.keyCode!=229&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!t||this.view.observer.pendingRecords().length||t.key==`Enter`&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,AW(this.view.contentDOM,t.key,t.keyCode,t.mods))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:WU.safari&&!WU.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function nq(e){return e.visualViewport?e.visualViewport.height*e.visualViewport.scale/e.document.documentElement.clientHeight<.85:!1}function rq(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){xG(n.state,e)}}}function iq(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(rq(t.value,i))}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(rq(t.value,r))}}for(let e in gq)n(e).handlers.push(gq[e]);for(let e in _q)n(e).observers.push(_q[e]);return t}var aq=[{key:`Backspace`,keyCode:8,inputType:`deleteContentBackward`},{key:`Enter`,keyCode:13,inputType:`insertParagraph`},{key:`Enter`,keyCode:13,inputType:`insertLineBreak`},{key:`Delete`,keyCode:46,inputType:`deleteContentForward`}],oq=`dthko`,sq=[16,17,18,20,91,92,224,225],cq=6;function lq(e){return Math.max(0,e)*.7+8}function uq(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}var dq=class{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=SW(e.contentDOM),this.atoms=e.state.facet(MG).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener(`mousemove`,this.move=this.move.bind(this)),i.addEventListener(`mouseup`,this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(XH.allowMultipleSelections)&&fq(e,t),this.dragging=mq(e,t)&&Dq(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&uq(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,r=0,i=0,a=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:o}=this.scrollParents.y.getBoundingClientRect());let s=LG(this.view);e.clientX-s.left<=r+cq?t=-lq(r-e.clientX):e.clientX+s.right>=a-cq&&(t=lq(e.clientX-a)),e.clientY-s.top<=i+cq?n=-lq(i-e.clientY):e.clientY+s.bottom>=o-cq&&(n=lq(e.clientY-o)),this.setScrollSpeed(t,n)}up(e){this.dragging??this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener(`mousemove`,this.move),e.removeEventListener(`mouseup`,this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=IK(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:`select.pointer`}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent(`input.type`))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function fq(e,t){let n=e.state.facet(oG);return n.length?n[0](t):WU.mac?t.metaKey:t.ctrlKey}function pq(e,t){let n=e.state.facet(sG);return n.length?n[0](t):WU.mac?!t.altKey:!t.ctrlKey}function mq(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=lW(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}function hq(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=HG.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return!1;return!0}var gq=Object.create(null),_q=Object.create(null),vq=WU.ie&&WU.ie_version<15||WU.ios&&WU.webkit_version<604;function yq(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement(`textarea`));n.style.cssText=`position: fixed; left: -10000px; top: 10px`,n.focus(),setTimeout(()=>{e.focus(),n.remove(),xq(e,n.value)},50)}function bq(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function xq(e,t){t=bq(e.state,pG,t);let{state:n}=e,r,i=1,a=n.toText(t),o=a.lines==n.selection.ranges.length;if(Nq!=null&&n.selection.ranges.every(e=>e.empty)&&Nq==a.toString()){let e=-1;r=n.changeByRange(r=>{let s=n.doc.lineAt(r.from);if(s.from==e)return{range:r};e=s.from;let c=n.toText((o?a.line(i++).text:t)+n.lineBreak);return{changes:{from:s.from,insert:c},range:Y.cursor(r.from+c.length,-1)}})}else r=o?n.changeByRange(e=>{let t=a.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Y.cursor(e.from+t.length,-1)}}):n.replaceSelection(a);e.dispatch(r,{userEvent:`input.paste`,scrollIntoView:!0})}_q.scroll=e=>{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,WU.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},_q.wheel=_q.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},gq.keydown=(e,t)=>(e.inputState.setSelectionOrigin(`select`),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),_q.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin(`select.pointer`)},_q.touchmove=e=>{e.inputState.setSelectionOrigin(`select.pointer`)},_q.touchend=(e,t)=>{e.inputState.touchActive=!1},gq.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(cG))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Oq(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new dq(e,t,n,r)),r&&e.observer.ignore(()=>{DW(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}else e.inputState.setSelectionOrigin(`select.pointer`);return!1};function Sq(e,t,n,r){if(r==1)return Y.cursor(t,n);if(r==2)return OK(e.state,t,n);{let r=e.docView.lineAt(t,n),i=e.state.doc.lineAt(r?r.posAtEnd:t),a=r?r.posAtStart:i.from,o=r?r.posAtEnd:i.to;return o<e.state.doc.length&&o==i.to&&o++,Y.undirectionalRange(a,o)}}var Cq=WU.ie&&WU.ie_version<=11,wq=null,Tq=0,Eq=0;function Dq(e){if(!Cq)return e.detail;let t=wq,n=Eq;return wq=e,Eq=Date.now(),Tq=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Tq+1)%3:1}function Oq(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=Dq(t),i=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,a,o){let s=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),c,l=Sq(e,s.pos,s.assoc,r);if(n.pos!=s.pos&&!a){let t=Sq(e,n.pos,n.assoc,r),i=Math.min(t.from,l.from),a=Math.max(t.to,l.to);l=i<l.from?Y.range(i,a,l.assoc):Y.range(a,i,l.assoc)}return a?i.replaceRange(i.main.extend(l.from,l.to,l.assoc)):o&&r==1&&i.ranges.length>1&&(c=kq(i,s.pos))?c:o?i.addRange(l):Y.create([l])}}}function kq(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return Y.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-+(e.mainIndex>n))}return null}gq.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=Y.undirectionalRange(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData(`Text`,bq(e.state,mG,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed=`copyMove`),!1},gq.dragend=e=>(e.inputState.draggedContent=null,!1);function Aq(e,t,n,r){if(n=bq(e.state,pG,n),!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,o=r&&a&&pq(e,t)?{from:a.from,to:a.to}:null,s={from:i,insert:n},c=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(i,-1),head:c.mapPos(i,1)},userEvent:o?`move.drop`:`input.drop`}),e.inputState.draggedContent=null}gq.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&Aq(e,t,r.filter(e=>e!=null).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=a,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),a()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData(`Text`);if(n)return Aq(e,t,n,!0),!0}return!1},gq.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=vq?null:t.clipboardData;return n?(xq(e,n.getData(`text/plain`)||n.getData(`text/uri-list`)),!0):(yq(e),!1)};function jq(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement(`textarea`));r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function Mq(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let a=e.doc.lineAt(r);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:bq(e,mG,t.join(e.lineBreak)),ranges:n,linewise:r}}var Nq=null;gq.copy=gq.cut=(e,t)=>{if(!dW(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=Mq(e.state);if(!n&&!i)return!1;Nq=i?n:null,t.type==`cut`&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:`delete.cut`});let a=vq?null:t.clipboardData;return a?(a.clearData(),a.setData(`text/plain`,n),!0):(jq(e,n),!1)};var Pq=MH.define();function Fq(e,t){let n=[];for(let r of e.facet(fG)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:Pq.of(!0)}):null}function Iq(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Fq(e.state,t);n?e.dispatch(n):e.update([])}},10)}_q.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Iq(e)},_q.blur=e=>{e.observer.clearSelectionRange(),Iq(e)},_q.compositionstart=_q.compositionupdate=(e,t)=>{if(!e.observer.editContext&&(e.inputState.compositionFirstChange??(e.inputState.compositionFirstChange=!0),e.inputState.composing<0)){let{main:t}=e.state.selection;!t.empty&&e.lineBlockAt(t.from).from!=e.lineBlockAt(t.to).from&&!e.state.readOnly&&e.dispatch({changes:e.state.selection.ranges.filter(e=>!e.empty).map(e=>({from:e.from,to:e.to})),userEvent:`input`}),e.inputState.composing=0}},_q.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,WU.chrome&&WU.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},_q.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},gq.beforeinput=(e,t)=>{if((t.inputType==`insertText`||t.inputType==`insertCompositionText`)&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),t.inputType==`insertReplacementText`&&e.observer.editContext){let n=t.dataTransfer?.getData(`text/plain`),r=t.getTargetRanges();if(n&&r.length){let t=r[0];return YK(e,{from:e.posAtDOM(t.startContainer,t.startOffset),to:e.posAtDOM(t.endContainer,t.endOffset),insert:e.state.toText(n)},null),!0}}let n;if(WU.chrome&&WU.android&&(n=aq.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(n.key,n.keyCode),n.key==`Backspace`||n.key==`Delete`)){let t=window.visualViewport?.height||0;setTimeout(()=>{(window.visualViewport?.height||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return WU.ios&&t.inputType==`deleteContentForward`&&e.observer.flushSoon(),WU.safari&&t.inputType==`insertText`&&e.inputState.composing>=0&&setTimeout(()=>_q.compositionend(e,t),20),!1};var Lq=new Set;function Rq(e){Lq.has(e)||(Lq.add(e),e.addEventListener(`copy`,()=>{}),e.addEventListener(`cut`,()=>{}))}var zq=[`pre-wrap`,`normal`,`pre-line`,`break-spaces`],Bq=!1;function Vq(){Bq=!1}var Hq=class{constructor(e){this.lineWrapping=e,this.doc=RV.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return zq.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(t=!0,this.heightSamples[Math.floor(r*10)]=!0)}return t}refresh(e,t,n,r,i,a){let o=zq.indexOf(e)>-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<a.length;e++){let t=a[e];t<0?e++:this.heightSamples[Math.floor(t*10)]=!0}}return s}},Uq=class{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}},Wq=class e{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return typeof this._content==`number`?QU.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof nW?this._content.widget:null}get widgetLineBreaks(){return typeof this._content==`number`?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new e(this.from,this.length+t.length,this.top,this.height+t.height,n)}},Gq=(function(e){return e[e.ByPos=0]=`ByPos`,e[e.ByHeight=1]=`ByHeight`,e[e.ByPosNoHeight=2]=`ByPosNoHeight`,e})(Gq||={}),Kq=.001,qq=class e{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Kq&&(Bq=!0),this.height=e)}replace(t,n,r){return e.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,a=n.doc;for(let o=r.length-1;o>=0;o--){let{fromA:s,toA:c,fromB:l,toB:u}=r[o],d=i.lineAt(s,Gq.ByPosNoHeight,n.setDoc(t),0,0),f=d.to>=c?d:i.lineAt(c,Gq.ByPosNoHeight,n,0,0);for(u+=f.to-c,c=f.to;o>0&&d.from<=r[o-1].toA;)s=r[o-1].fromA,l=r[o-1].fromB,o--,s<d.from&&(d=i.lineAt(s,Gq.ByPosNoHeight,n,0,0));l+=d.from-s,s=d.from;let p=nJ.build(n.setDoc(a),e,l,u);i=Jq(i,i.replace(s,c,p))}return i.updateHeight(n,0)}static empty(){return new Zq(0,0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,i=0,a=0;for(;;)if(n==r){if(i>a*2){let e=t[n-1];e.break?t.splice(--n,1,e.left,null,e.right):t.splice(--n,1,e.left,e.right),r+=1+e.break,i-=e.size}else if(a>i*2){let e=t[r];e.break?t.splice(r,1,e.left,null,e.right):t.splice(r,1,e.left,e.right),r+=2+e.break,a-=e.size}else break}else if(i<a){let e=t[n++];e&&(i+=e.size)}else{let e=t[--r];e&&(a+=e.size)}let o=!1;return t[n-1]==null?(o=!0,n--):t[n]??(o=!0,r++),new $q(e.of(t.slice(0,n)),o,e.of(t.slice(r)))}};function Jq(e,t){return e==t?e:(e.constructor!=t.constructor&&(Bq=!0),t)}qq.prototype.size=1;var Yq=$U.replace({}),Xq=class extends qq{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new Wq(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new Wq(r,0,n,this.spaceAbove,Yq):this.mainBlock(n,r)}lineAt(e,t,n,r,i){let a=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(a):a}forEachLine(e,t,n,r,i,a){e<=i+this.length&&t>=i&&a(this.lineAt(0,Gq.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}},Zq=class e extends Xq{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new Wq(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof e||i instanceof Qq&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Qq?i=new e(i.length,this.height,this.spaceAbove):i.height=this.height,this.outdated||(i.outdated=!1),i):qq.of(r)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:``}${this.widgetHeight?`:`+this.widgetHeight:``})`}},Qq=class e extends qq{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-n+1,a,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);a=t/i,this.length>i+1&&(o=(this.height-t)/(this.length-i-1))}else a=this.height/i;return{firstLine:n,lastLine:r,perLine:a,perChar:o}}blockAt(e,t,n,r){let{firstLine:i,lastLine:a,perLine:o,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),a=t.doc.lineAt(i),c=o+a.length*s,l=Math.max(n,e-c/2);return new Wq(a.from,a.length,l,c,0)}{let r=Math.max(0,Math.min(a-i,Math.floor((e-n)/o))),{from:s,length:c}=t.doc.line(i+r);return new Wq(s,c,n+o*r,o,0)}}lineAt(e,t,n,r,i){if(t==Gq.ByHeight)return this.blockAt(e,n,r,i);if(t==Gq.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new Wq(t,r-t,0,0,0)}let{firstLine:a,perLine:o,perChar:s}=this.heightMetrics(n,i),c=n.doc.lineAt(e),l=o+c.length*s,u=c.number-a,d=r+o*u+s*(c.from-i-u);return new Wq(c.from,c.length,Math.max(r,Math.min(d,r+this.height-l)),l,0)}forEachLine(e,t,n,r,i,a){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:o,perLine:s,perChar:c}=this.heightMetrics(n,i);for(let l=e,u=r;l<=t;){let t=n.doc.lineAt(l);if(l==e){let n=t.number-o;u+=s*n+c*(e-i-n)}let r=s+c*t.length;a(new Wq(t.from,t.length,u,r,0)),u+=r,l=t.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let t=r[r.length-1];t instanceof e?r[r.length-1]=new e(t.length+i):r.push(null,new e(i-1))}if(t>0){let n=r[0];n instanceof e?r[0]=new e(t+n.length):r.unshift(new e(t-1),null)}return qq.of(r)}decomposeLeft(t,n){n.push(new e(t-1),null)}decomposeRight(t,n){n.push(null,new e(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let r=[],o=Math.max(n,i.from),s=-1;for(i.from>n&&r.push(new e(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let e=t.doc.lineAt(o).length;r.length&&r.push(null);let n=i.heights[i.index++],a=0;n<0&&(a=-n,n=i.heights[i.index++]),s==-1?s=n:Math.abs(n-s)>=Kq&&(s=-2);let c=new Zq(e,n,a);c.outdated=!1,r.push(c),o+=e+1}o<=a&&r.push(null,new e(a-o).updateHeight(t,o));let c=qq.of(r);return(s<0||Math.abs(c.height-this.height)>=Kq||Math.abs(s-this.heightMetrics(t,n).perLine)>=Kq)&&(Bq=!0),Jq(this,c)}return(r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}},$q=class extends qq{constructor(e,t,n){super(e.length+ +!!t+n.length,e.height+n.height,+!!t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let a=r+this.left.height,o=i+this.left.length+this.break,s=t==Gq.ByHeight?e<a:e<o,c=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,a,o);if(this.break||(s?c.to<o:c.from>o))return c;let l=t==Gq.ByPosNoHeight?Gq.ByPosNoHeight:Gq.ByPos;return s?c.join(this.right.lineAt(o,l,n,a,o)):this.left.lineAt(o,l,n,r,i).join(c)}forEachLine(e,t,n,r,i,a){let o=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,i,a),t>=s&&this.right.forEachLine(e,t,n,o,s,a);else{let c=this.lineAt(s,Gq.ByPos,n,r,i);e<c.from&&this.left.forEachLine(e,Math.min(t,c.from-1),n,r,i,a),c.to>=e&&c.from<=t&&a(c),t>c.to&&this.right.forEachLine(Math.max(e,c.to+1),t,n,o,s,a)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let e of n)i.push(e);if(e>0&&eJ(i,a-1),t<this.length){let e=i.length;this.decomposeRight(t,i),eJ(i,e)}return qq.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?qq.of(this.break?[e,null,t]:[e,t]):(this.left=Jq(this.left,e),this.right=Jq(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:a}=this,o=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+a.length&&r.more?s=a=a.updateHeight(e,o,n,r):a.updateHeight(e,o,n),s?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?` `:`-`)+this.right}};function eJ(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Qq&&(r=e[t+1])instanceof Qq&&e.splice(t-1,3,new Qq(n.length+1+r.length))}var tJ=5,nJ=class e{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Zq?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Zq(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let a=t-e;n.block?this.addBlock(new Xq(a,r,n)):(a||i||r>=tJ)&&this.addLineDeco(r,i,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Zq(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new Qq(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zq)return e;let t=new Zq(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos+=e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos+=n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Zq)&&!this.isCovered?this.nodes.push(new Zq(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let e of this.nodes)e instanceof Zq&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(t,n,r,i){let a=new e(r,t);return rU.spans(n,r,i,a,0),a.finish(r)}};function rJ(e,t,n){let r=new iJ;return rU.compare(e,t,n,r,0),r.changes}var iJ=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&aW(e,t,this.changes,5)}};function aJ(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,a=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),c=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(sW(t)){let n=window.getComputedStyle(t);if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&n.overflow!=`visible`){let n=t.getBoundingClientRect();a=Math.max(a,n.left),o=Math.min(o,n.right),s=Math.max(s,n.top),c=Math.min(t==e.parentNode?i.innerHeight:c,n.bottom)}t=n.position==`absolute`||n.position==`fixed`?t.offsetParent:t.parentNode}else if(t.nodeType==11)t=t.host;else break;return{left:a-n.left,right:Math.max(a,o)-n.left,top:s-(n.top+t),bottom:Math.max(s,c)-(n.top+t)}}function oJ(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left<n.innerWidth&&t.right>0&&t.top<n.innerHeight&&t.bottom>0}function sJ(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var cJ=class{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return $U.replace({widget:new lJ(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}},lJ=class extends ZU{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement(`div`);return this.vertical?e.style.height=this.size+`px`:(e.style.width=this.size+`px`,e.style.height=`2px`,e.style.display=`inline-block`),e}get estimatedHeight(){return this.vertical?this.size:-1}},uJ=class{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=gJ,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=LW.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(OG).some(e=>typeof e!=`function`&&e.class==`cm-lineWrapping`);this.heightOracle=new Hq(n),this.stateDeco=_J(t),this.heightMap=qq.empty().applyChanges(this.stateDeco,RV.empty,this.heightOracle.setDoc(t.doc),[new zG(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=$U.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new dJ(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?gJ:vJ.get(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(yJ(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=_J(this.state);let r=e.changedRanges,i=zG.extendWithRanges(r,rJ(n,this.stateDeco,e?e.changes:ZV.empty(this.state.doc.length))),a=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Vq(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=a||Bq)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=a);let s=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let c=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(gG)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection=n.direction==`rtl`?LW.RTL:LW.LTR;let a=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent===`refresh`,o=t.getBoundingClientRect(),s=a||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let c=0,l=0;if(o.width&&o.height){let{scaleX:e,scaleY:n}=bW(t,o);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,c|=16,a=s=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=d)&&(this.paddingTop=u,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let f=SW(this.view.contentDOM,!1).y;f!=this.scrollParent&&(this.scrollParent=f,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=NW(this.scrollParent||e.win);let m=(this.printing?sJ:aJ)(t,this.paddingTop),h=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(s=!0)),!this.inView&&!this.scrollTarget&&!oJ(e.dom))return 0;let v=o.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(a=!0),a||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:o,textHeight:s}=e.docView.measureTextSize();a=n>0&&r.refresh(i,n,o,s,Math.max(5,v/o),t),a&&(e.docView.minWidth=0,c|=16)}h>0&&g>0?l=Math.max(h,g):h<0&&g<0&&(l=Math.min(h,g)),Vq();for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(a?qq.empty().applyChanges(this.stateDeco,RV.empty,this.heightOracle,[new zG(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new Uq(n.from,i))}Bq&&(c|=2)}let y=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(l,this.scrollTarget),c|=this.updateForViewport()),(c&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:o}=this,s=new dJ(r.lineAt(a-n*1e3,Gq.ByHeight,i,0,0).from,r.lineAt(o+(1-n)*1e3,Gq.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,Gq.ByPos,i,0,0),o;o=t.y==`center`?(a.top+a.bottom)/2-n/2:t.y==`start`||t.y==`nearest`&&e<s.from?a.top:a.bottom-n,s=new dJ(r.lineAt(o-500,Gq.ByHeight,i,0,0).from,r.lineAt(o+n+500,Gq.ByHeight,i,0,0).to)}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new dJ(this.heightMap.lineAt(n,Gq.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Gq.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,Gq.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,Gq.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:o}=this;return(e==0||r<=a-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=o+Math.max(10,Math.min(n,250)))&&r>a-2e3&&i<o+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new cJ(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,a=r<<1;if(this.defaultTextDirection!=LW.LTR&&!n)return[];let o=[],s=(r,a,c,l)=>{if(a-r<i)return;let u=this.state.selection.main,d=[u.from];u.empty||d.push(u.to);for(let e of d)if(e>r&&e<a){s(r,e-10,c,l),s(e+10,a,c,l);return}let f=hJ(e,e=>e.from>=c.from&&e.to<=c.to&&Math.abs(e.from-r)<i&&Math.abs(e.to-a)<i&&!d.some(t=>e.from<t&&e.to>t));if(!f){if(a<c.to&&t&&n&&t.visibleRanges.some(e=>e.from<=a&&e.to>=a)){let e=t.moveToLineBoundary(Y.cursor(a),!1,!0).head;e>r&&(a=e)}let e=this.gapSize(c,r,a,l);f=new cJ(r,a,e,n||e<2e6?e:2e6)}o.push(f)},c=t=>{if(t.length<a||t.type!=QU.Text)return;let i=fJ(t.from,t.to,this.stateDeco);if(i.total<a)return;let o=this.scrollTarget?this.scrollTarget.range.head:null,c,l;if(n){let e=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,n,a;if(o!=null){let r=mJ(i,o),s=((this.visibleBottom-this.visibleTop)/2+e)/t.height;n=r-s,a=r+s}else n=(this.visibleTop-t.top-e)/t.height,a=(this.visibleBottom-t.top+e)/t.height;c=pJ(i,n),l=pJ(i,a)}else{let n=i.total*this.heightOracle.charWidth,a=r*this.heightOracle.charWidth,s=0;if(n>2e6)for(let n of e)n.from>=t.from&&n.from<t.to&&n.size!=n.displaySize&&n.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=n.size-n.displaySize);let u=this.pixelViewport.left+s,d=this.pixelViewport.right+s,f,p;if(o!=null){let e=mJ(i,o),t=((d-u)/2+a)/n;f=e-t,p=e+t}else f=(u-a)/n,p=(d+a)/n;c=pJ(i,f),l=pJ(i,p)}c>t.from&&s(t.from,c,t,i),l<t.to&&s(l,t.to,t,i)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(c):c(e);return o}gapSize(e,t,n,r){let i=mJ(r,n)-mJ(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){cJ.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=$U.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];rU.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t<n.length&&!(r&8);t++){let i=this.visibleRanges[t],a=n[t];(i.from!=a.from||i.to!=a.to)&&(r|=4,e&&e.mapPos(i.from,-1)==a.from&&e.mapPos(i.to,1)==a.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||yJ(this.heightMap.lineAt(e,Gq.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||yJ(this.heightMap.lineAt(this.scaler.fromDOM(e),Gq.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+12-this.paddingTop);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return yJ(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},dJ=class{constructor(e,t){this.from=e,this.to=t}};function fJ(e,t,n){let r=[],i=e,a=0;return rU.spans(n,e,t,{span(){},point(e,t){e>i&&(r.push({from:i,to:e}),a+=e-i),i=t}},20),i<t&&(r.push({from:i,to:t}),a+=t-i),{total:a,ranges:r}}function pJ({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],a=i-n;if(r<=a)return n+r;r-=a}}function mJ(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function hJ(e,t){for(let n of e)if(t(n))return n}var gJ={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function _J(e){let t=e.facet(kG).filter(e=>typeof e!=`function`),n=e.facet(jG).filter(e=>typeof e!=`function`);return n.length&&t.push(rU.join(n)),t}var vJ=class e{constructor(e,t){this.scale=e,this.viewports=t}static get(t,n,r){let i=0,a=0,o=0,s=r.map(({from:e,to:r})=>{let a=n.lineAt(e,Gq.ByPos,t,0,0).top,o=n.lineAt(r,Gq.ByPos,t,0,0).bottom;return i+=o-a,{from:e,to:r,top:a,bottom:o,domTop:0,domBottom:0}});if(n.height-i<10)return gJ;let c=(7e6-i)/(n.height-i);for(let e of s)e.domTop=o+(e.top-a)*c,o=e.domBottom=e.domTop+(e.bottom-e.top),a=e.bottom;return new e(c,s)}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(t){return t instanceof e&&this.scale==t.scale&&this.viewports.length==t.viewports.length&&this.viewports.every((e,n)=>e.from==t.viewports[n].from&&e.to==t.viewports[n].to)}};function yJ(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Wq(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>yJ(e,t)):e._content)}var bJ=sH.define({combine:e=>e.join(` `)}),xJ=sH.define({combine:e=>e.indexOf(!0)>-1}),SJ=CU.newName(),CJ=CU.newName(),wJ=CU.newName(),TJ={"&light":`.`+CJ,"&dark":`.`+wJ};function EJ(e,t,n){return new CU(t,{finish(t){return/&/.test(t)?t.replace(/&\w*/,t=>{if(t==`&`)return e;if(!n||!n[t])throw RangeError(`Unsupported selector: ${t}`);return n[t]}):e+` `+t}})}var DJ=EJ(`.`+SJ,{"&":{position:`relative !important`,boxSizing:`border-box`,"&.cm-focused":{outline:`1px dotted #212121`},display:`flex !important`,flexDirection:`column`},".cm-scroller":{display:`flex !important`,alignItems:`flex-start !important`,fontFamily:`monospace`,lineHeight:1.4,height:`100%`,overflowX:`auto`,position:`relative`,zIndex:0,overflowAnchor:`none`},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:`block`,whiteSpace:`pre`,wordWrap:`normal`,boxSizing:`border-box`,minHeight:`100%`,padding:`4px 0`,outline:`none`,"&[contenteditable=true]":{WebkitUserModify:`read-write-plaintext-only`}},".cm-lineWrapping":{whiteSpace_fallback:`pre-wrap`,whiteSpace:`break-spaces`,wordBreak:`break-word`,overflowWrap:`anywhere`,flexShrink:1},"&light .cm-content":{caretColor:`black`},"&dark .cm-content":{caretColor:`white`},".cm-line":{display:`block`,padding:`0 2px 0 6px`},".cm-layer":{userSelect:`none`,position:`absolute`,left:0,top:0,contain:`size style`,"& > *":{position:`absolute`}},"&light .cm-selectionBackground":{background:`#d9d9d9`},"&dark .cm-selectionBackground":{background:`#222`},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:`#d7d4f0`},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:`#233`},".cm-cursorLayer":{pointerEvents:`none`},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:`steps(1) cm-blink 1.2s infinite`},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:`1.2px solid black`,marginLeft:`-0.6px`,pointerEvents:`none`},".cm-cursor":{display:`none`},"&dark .cm-cursor":{borderLeftColor:`#ddd`},".cm-selectionHandle":{backgroundColor:`currentColor`,width:`1.5px`},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:`""`,backgroundColor:`inherit`,borderRadius:`50%`,width:`8px`,height:`8px`,position:`absolute`,left:`-3.25px`},".cm-selectionHandle-start::before":{top:`-8px`},".cm-selectionHandle-end::before":{bottom:`-8px`},".cm-dropCursor":{position:`absolute`},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:`block`},".cm-iso":{unicodeBidi:`isolate`},".cm-announced":{position:`fixed`,top:`-10000px`},"@media print":{".cm-announced":{display:`none`}},"&light .cm-activeLine":{backgroundColor:`#cceeff44`},"&dark .cm-activeLine":{backgroundColor:`#99eeff33`},"&light .cm-specialChar":{color:`red`},"&dark .cm-specialChar":{color:`#f78`},".cm-gutters":{flexShrink:0,display:`flex`,height:`100%`,boxSizing:`border-box`,zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:`#f5f5f5`,color:`#6c6c6c`,border:`0px solid #ddd`,"&.cm-gutters-before":{borderRightWidth:`1px`},"&.cm-gutters-after":{borderLeftWidth:`1px`}},"&dark .cm-gutters":{backgroundColor:`#333338`,color:`#ccc`},".cm-gutter":{display:`flex !important`,flexDirection:`column`,flexShrink:0,boxSizing:`border-box`,minHeight:`100%`,overflow:`hidden`},".cm-gutterElement":{boxSizing:`border-box`},".cm-lineNumbers .cm-gutterElement":{padding:`0 3px 0 5px`,minWidth:`20px`,textAlign:`right`,whiteSpace:`nowrap`},"&light .cm-activeLineGutter":{backgroundColor:`#e2f2ff`},"&dark .cm-activeLineGutter":{backgroundColor:`#222227`},".cm-panels":{boxSizing:`border-box`,position:`sticky`,left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:`#f5f5f5`,color:`black`},".cm-panels-top":{top:`0`},".cm-panels-bottom":{bottom:`0`},"&light .cm-panels-top":{borderBottom:`1px solid #ddd`},"&light .cm-panels-bottom":{borderTop:`1px solid #ddd`},"&dark .cm-panels":{backgroundColor:`#333338`,color:`white`},".cm-dialog":{padding:`2px 19px 4px 6px`,position:`relative`,"& label":{fontSize:`80%`}},".cm-dialog-close":{position:`absolute`,top:`3px`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,fontSize:`14px`,padding:`0`},".cm-tab":{display:`inline-block`,overflow:`hidden`,verticalAlign:`bottom`},".cm-widgetBuffer":{verticalAlign:`baseline`,height:`1em`,width:0,display:`inline`},".cm-placeholder":{color:`#888`,display:`inline-block`,verticalAlign:`top`,userSelect:`none`},".cm-highlightSpace":{background:`radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat`,backgroundSize:`.4em`,backgroundPosition:`calc(min(50%, 0px)) center`},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:`auto 100%`,backgroundPosition:`right 90%`,backgroundRepeat:`no-repeat`},".cm-trailingSpace":{backgroundColor:`#ff332255`},".cm-button":{verticalAlign:`middle`,color:`inherit`,fontSize:`70%`,padding:`.2em 1em`,borderRadius:`1px`},"&light .cm-button":{backgroundImage:`linear-gradient(#eff1f5, #d9d9df)`,border:`1px solid #888`,"&:active":{backgroundImage:`linear-gradient(#b4b4b4, #d0d3d6)`}},"&dark .cm-button":{backgroundImage:`linear-gradient(#393939, #111)`,border:`1px solid #888`,"&:active":{backgroundImage:`linear-gradient(#111, #333)`}},".cm-textfield":{verticalAlign:`middle`,color:`inherit`,fontSize:`70%`,border:`1px solid silver`,padding:`.2em .5em`},"&light .cm-textfield":{backgroundColor:`white`},"&dark .cm-textfield":{border:`1px solid #555`,backgroundColor:`inherit`}},TJ),OJ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},kJ=WU.ie&&WU.ie_version<=11,AJ=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new CW,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(WU.ie&&WU.ie_version<=11||WU.ios&&e.composing)&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&WU.android&&e.constructor.EDIT_CONTEXT!==!1&&!(WU.chrome&&WU.chrome_version<126)&&(this.editContext=new PJ(e),e.state.facet(SG)&&(e.contentDOM.editContext=this.editContext.editContext)),kJ&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia(`print`)),typeof ResizeObserver==`function`&&(this.resizeScroll=new ResizeObserver(()=>{this.view.docView?.lastUpdate<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver==`function`&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent(`Event`)))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent(`Event`))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers(`scroll`,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(this.pendingRecords().length>0),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type!=`change`&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(SG)?n.root.activeElement!=this.dom:!dW(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(WU.ie&&WU.ie_version<=11||WU.android&&WU.chrome)&&!n.state.selection.main.empty&&r.focusNode&&pW(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=lW(e.root);if(!t)return!1;let n=WU.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&NJ(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=dW(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&MW(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(sW(n))!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||=this.scrollTargets.slice(0,e),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener(`scroll`,this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener(`scroll`,this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||=(this.observer.observe(this.dom,OJ),kJ&&this.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),kJ&&this.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&AW(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}(!this.delayedAndroidKey||e==`Enter`)&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!this.delayedAndroidKey?.force})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),t==-1?{from:t,to:n}=e:(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&dW(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new KK(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.selectionChanged,n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=JK(this.view,n);return this.view.state==r&&(n.domChanged||t)&&this.view.update([]),i}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type==`attributes`),e.type==`childList`){let n=jJ(t,e.previousSibling||e.target.previousSibling,-1),r=jJ(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return e.type==`characterData`?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener(`resize`,this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener(`change`,this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener(`beforeprint`,this.onPrint),e.addEventListener(`scroll`,this.onScroll),e.document.addEventListener(`selectionchange`,this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener(`scroll`,this.onScroll),e.removeEventListener(`resize`,this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener(`change`,this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener(`beforeprint`,this.onPrint),e.document.removeEventListener(`selectionchange`,this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(SG)!=e.state.facet(SG)&&(e.view.contentDOM.editContext=e.state.facet(SG)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)==null||e.disconnect(),(t=this.gapIntersection)==null||t.disconnect(),(n=this.resizeScroll)==null||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener(`scroll`,this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function jJ(e,t,n){for(;t;){let r=HG.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i==e.dom?n>0?t.nextSibling:t.previousSibling:i}return null}function MJ(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return pW(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function NJ(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return MJ(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener(`beforeinput`,r,!0),e.dom.ownerDocument.execCommand(`indent`),e.contentDOM.removeEventListener(`beforeinput`,r,!0),n?MJ(e,n):null}var PJ=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:a}=r,o=this.toEditorPos(n.updateRangeStart),s=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:o,drifted:!1});let c=s-o>n.text.length;o==this.from&&i<this.from?o=i:s==this.to&&i>this.to&&(s=i);let l=ZK(e.state.sliceDoc(o,s),n.text,(c?r.from:r.to)-o,c?`end`:null);if(!l){let t=Y.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));eq(t,r)||e.dispatch({selection:t,userEvent:`select`});return}let u={from:l.from+o,to:l.toA+o,insert:RV.of(n.text.slice(l.from,l.toB).split(`
70
- `))};if((WU.mac||WU.android)&&u.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute(`autocorrect`)==`off`&&(u={from:o,to:s,insert:RV.of([n.text.replace(`.`,` `)])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);YK(e,u,Y.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);t<a;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(i<a){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+` `:t==`Dashed`?`dashed `:t==`Squiggle`?`wavy `:``}${/thin/i.test(r)?1:2}px`;n.push($U.mark({attributes:{style:e}}).range(i,a))}}}e.dispatch({effects:bG.of($U.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=lW(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,a,o,s,c)=>{if(n)return;let l=c.length-(a-i);if(r&&a>=r.to){if(r.from==i&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}r=null,this.revertPending(e.state)}if(i+=t,a+=t,a<=this.from)this.from+=l,this.to+=l;else if(i<this.to){if(i<this.from||a>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),c.toString()),this.to+=l}t+=l}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent(`input.type`)&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},FJ=class e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement(`div`),this.scrollDOM=document.createElement(`div`),this.scrollDOM.tabIndex=-1,this.scrollDOM.className=`cm-scroller`,this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement(`div`),this.announceDOM.className=`cm-announced`,this.announceDOM.setAttribute(`aria-live`,`polite`),this.dom=document.createElement(`div`),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach(e=>t(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||jW(e.parent)||document,this.viewState=new uJ(this,e.state||XH.create(e)),e.scrollTo&&e.scrollTo.is(yG)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(wG).map(e=>new EG(e));for(let e of this.plugins)e.update(this);this.observer=new AJ(this),this.inputState=new tq(this),this.inputState.ensureHandlers(this.plugins),this.docView=new hK(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),document.fonts?.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent=`refresh`,this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof IH?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(t){if(this.updateState!=0)throw Error(`Calls to EditorView.update are not allowed while an update is in progress`);let n=!1,r=!1,i,a=this.state;for(let e of t){if(e.startState!=a)throw RangeError(`Trying to update state with a transaction that doesn't start from the previous state.`);a=e.state}if(this.destroyed){this.viewState.state=a;return}let o=this.hasFocus,s=0,c=null;t.some(e=>e.annotation(Pq))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,c=Fq(a,o),c||(s=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(u=null)):this.observer.clear(),a.facet(XH.phrases)!=this.state.facet(XH.phrases))return this.setState(a);i=BG.create(this,a,t),i.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let n of t){if(d&&=d.map(n.changes),n.scrollIntoView){let{main:t}=n.state.selection,{x:r,y:i}=this.state.facet(e.cursorScrollMargin);d=new vG(t.empty?t:Y.cursor(t.head,t.head>t.anchor?-1:1),`nearest`,`nearest`,i,r)}for(let e of n.effects)e.is(yG)&&(d=e.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=RJ.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(RG)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(e=>e.isUserEvent(`select.pointer`)))}finally{this.updateState=0}if(i.startState.facet(bJ)!=i.state.facet(bJ)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let e of this.state.facet(uG))try{e(i)}catch(e){xG(this.state,e,`update listener`)}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!JK(this,u)&&l.force&&AW(this.contentDOM,l.key,l.keyCode)})}setState(e){if(this.updateState!=0)throw Error(`Calls to EditorView.setState are not allowed while an update is in progress`);if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new uJ(this,e),this.plugins=e.facet(wG).map(e=>new EG(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new hK(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(wG),n=e.state.facet(wG);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new EG(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){xG(this.state,e,`doc view update listener`)}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:a,scaleY:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(a<0){if(NW(n||this.win))i=-1,a=this.viewState.heightMap.height/this.viewState.scaleY;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,a=e.top}o=this.viewState.scaleY}this.updateState=1;let s=this.viewState.measure();if(!s&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(e>5){console.warn(this.measureRequests.length?`Measure loop restarted more than 5 times`:`Viewport failed to stabilize`);break}let c=[];s&4||([this.measureRequests,c]=[c,this.measureRequests]);let l=c.map(e=>{try{return e.read(this)}catch(e){return xG(this.state,e),LJ}}),u=BG.create(this,this.state,[]),d=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),d=this.docView.update(u),d&&this.docViewUpdate());for(let e=0;e<c.length;e++)if(l[e]!=LJ)try{let t=c[e];t.write&&t.write(l[e],this)}catch(e){xG(this.state,e)}if(d&&this.docView.updateSelection(!0),!u.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)/this.viewState.scaleY-a/o;if((e>1||e<-1)&&!(WU.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?i<0?n.scrollTop=n.scrollHeight:n.scrollTop+=e:this.win.scrollBy(0,e),a=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(uG))e(t)}get themeClasses(){return SJ+` `+(this.state.facet(xJ)?wJ:CJ)+` `+this.state.facet(bJ)}updateAttrs(){let e=zJ(this,DG,{class:`cm-editor`+(this.hasFocus?` cm-focused `:` `)+this.themeClasses}),t={spellcheck:`false`,autocorrect:`off`,autocapitalize:`off`,writingsuggestions:`false`,translate:`no`,contenteditable:this.state.facet(SG)?`true`:`false`,class:`cm-content`,style:`${WU.tabSize}: ${this.state.tabSize}`,role:`textbox`,"aria-multiline":`true`};this.state.readOnly&&(t[`aria-readonly`]=`true`),zJ(this,OG,t);let n=this.observer.ignore(()=>{let n=YU(this.contentDOM,this.contentAttrs,t),r=YU(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(t){let n=!0;for(let r of t)for(let t of r.effects)if(t.is(e.announce)){n&&=(this.announceDOM.textContent=``,this.win.clearTimeout(this.clearAnnouncement),this.clearAnnouncement=this.win.setTimeout(()=>{this.announceDOM.textContent=`\xA0`},200),!1);let e=this.announceDOM.appendChild(document.createElement(`div`));e.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(RG);let t=this.state.facet(e.cspNonce);CU.mount(this.root,this.styleModules.concat(DJ).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw Error(`Reading the editor layout isn't allowed during an update`);this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return LK(this,e,MK(this,e,t,n))}moveByGroup(e,t){return LK(this,e,MK(this,e,t,t=>NK(this,e.head,t)))}visualLineSide(e,t){return t?Y.cursor(e.to,1):Y.cursor(e.from,-1)}moveToLineBoundary(e,t,n=!0){return jK(this,e,t,n)}moveVertically(e,t,n){return LK(this,e,PK(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=zK(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),zK(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),i=r[qW.find(r,e-n.from,-1,t)];return n.length&&(e==n.from&&t<0||e==n.to&&t>0)&&i.dir!=this.textDirectionAt(n.from)&&(e==n.to?(e=n.from+i.from,t=1):(e=n.from+i.to,t=-1)),this.docView.coordsAt(e,t,i.dir==LW.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(hG)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>IJ)return nG(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||JW(r.isolates,n=PG(this,e))))return r.order;n||=PG(this,e);let r=tG(e.text,t,n);return this.bidiCache.push(new RJ(e.from,e.to,t,n,!0,r)),r}get hasFocus(){return(this.dom.ownerDocument.hasFocus()||WU.safari&&this.inputState?.lastContextMenu>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{DW(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.win.clearTimeout(this.clearAnnouncement),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return yG.of(new vG(typeof e==`number`?Y.cursor(e):e,t.y??`nearest`,t.x??`nearest`,t.yMargin??5,t.xMargin??5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return yG.of(new vG(Y.cursor(n.from),`start`,`start`,n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e==`boolean`?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return TG.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return TG.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=CU.newName(),r=[bJ.of(n),RG.of(EJ(`.${n}`,e))];return t&&t.dark&&r.push(xJ.of(!0)),r}static baseTheme(e){return _H.lowest(RG.of(EJ(`.`+SJ,e,TJ)))}static findFromDOM(e){let t=e.querySelector(`.cm-content`);return(t&&HG.get(t)||HG.get(e))?.root?.view||null}};FJ.styleModule=RG,FJ.inputHandler=dG,FJ.clipboardInputFilter=pG,FJ.clipboardOutputFilter=mG,FJ.scrollHandler=_G,FJ.focusChangeEffect=fG,FJ.perLineTextDirection=hG,FJ.exceptionSink=lG,FJ.updateListener=uG,FJ.editable=SG,FJ.mouseSelectionStyle=cG,FJ.dragMovesSelection=sG,FJ.clickAddsSelectionRange=oG,FJ.decorations=kG,FJ.blockWrappers=AG,FJ.outerDecorations=jG,FJ.atomicRanges=MG,FJ.bidiIsolatedRanges=NG,FJ.cursorScrollMargin=sH.define({combine:e=>{let t=5,n=5;for(let r of e)typeof r==`number`?t=n=r:{x:t,y:n}=r;return{x:t,y:n}}}),FJ.scrollMargins=IG,FJ.darkTheme=xJ,FJ.cspNonce=sH.define({combine:e=>e.length?e[0]:``}),FJ.contentAttributes=OG,FJ.editorAttributes=DG,FJ.lineWrapping=FJ.contentAttributes.of({class:`cm-lineWrapping`}),FJ.announce=FH.define();var IJ=4096,LJ={},RJ=class e{constructor(e,t,n,r,i,a){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=a}static update(t,n){if(n.empty&&!t.some(e=>e.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:LW.LTR;for(let a=Math.max(0,t.length-10);a<t.length;a++){let o=t[a];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new e(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}};function zJ(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],a=typeof t==`function`?t(e):t;a&&GU(a,n)}return n}var BJ=WU.mac?`mac`:WU.windows?`win`:WU.linux?`linux`:`key`;function VJ(e,t){let n=e.split(/-(?!$)/),r=n[n.length-1];r==`Space`&&(r=` `);let i,a,o,s;for(let e=0;e<n.length-1;++e){let r=n[e];if(/^(cmd|meta|m)$/i.test(r))s=!0;else if(/^a(lt)?$/i.test(r))i=!0;else if(/^(c|ctrl|control)$/i.test(r))a=!0;else if(/^s(hift)?$/i.test(r))o=!0;else if(/^mod$/i.test(r))t==`mac`?s=!0:a=!0;else throw Error(`Unrecognized modifier name: `+r)}return i&&(r=`Alt-`+r),a&&(r=`Ctrl-`+r),s&&(r=`Meta-`+r),o&&(r=`Shift-`+r),r}function HJ(e,t,n){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n!==!1&&t.shiftKey&&(e=`Shift-`+e),e}var UJ=_H.default(FJ.domEventHandlers({keydown(e,t){return ZJ(KJ(t.state),e,t,`editor`)}})),WJ=sH.define({enables:UJ}),GJ=new WeakMap;function KJ(e){let t=e.facet(WJ),n=GJ.get(t);return n||GJ.set(t,n=YJ(t.reduce((e,t)=>e.concat(t),[]))),n}var qJ=null,JJ=4e3;function YJ(e,t=BJ){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(n==null)r[e]=t;else if(n!=t)throw Error(`Key binding `+e+` is used both as a regular binding and as a multi-stroke prefix`)},a=(e,r,a,o,s)=>{let c=n[e]||(n[e]=Object.create(null)),l=r.split(/ (?!$)/).map(e=>VJ(e,t));for(let t=1;t<l.length;t++){let n=l.slice(0,t).join(` `);i(n,!0),c[n]||(c[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=qJ={view:t,prefix:n,scope:e};return setTimeout(()=>{qJ==r&&(qJ=null)},JJ),!0}]})}let u=l.join(` `);i(u,!1);let d=c[u]||(c[u]={preventDefault:!1,stopPropagation:!1,run:(c._any?.run)?.slice()||[]});a&&d.run.push(a),o&&(d.preventDefault=!0),s&&(d.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(` `):[`editor`];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||={preventDefault:!1,stopPropagation:!1,run:[]};let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,XJ))}let i=r[t]||r.key;if(i)for(let t of e)a(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&a(t,`Shift-`+i,r.shift,r.preventDefault,r.stopPropagation)}return n}var XJ=null;function ZJ(e,t,n,r){XJ=t;let i=MU(t),a=Wce(Uce(i,0))==i.length&&i!=` `,o=``,s=!1,c=!1,l=!1;qJ&&qJ.view==n&&qJ.scope==r&&(o=qJ.prefix+` `,sq.indexOf(t.keyCode)<0&&(c=!0,qJ=null));let u=new Set,d=e=>{if(e){for(let t of e.run)if(!u.has(t)&&(u.add(t),t(n)))return e.stopPropagation&&(l=!0),!0;e.preventDefault&&(e.stopPropagation&&(l=!0),c=!0)}return!1},f=e[r],p,m;return f&&(d(f[o+HJ(i,t,!a)])?s=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(WU.windows&&t.ctrlKey&&t.altKey)&&!(WU.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(p=EU[t.keyCode])&&p!=i?(d(f[o+HJ(p,t,!0)])||t.shiftKey&&(m=DU[t.keyCode])!=i&&m!=p&&d(f[o+HJ(m,t,!1)]))&&(s=!0):a&&t.shiftKey&&d(f[o+HJ(i,t,!0)])&&(s=!0),!s&&d(f._any)&&(s=!0)),c&&(s=!0),s&&l&&t.stopPropagation(),XJ=null,s}var QJ=class e{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement(`div`);return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+`px`,e.style.top=this.top+`px`,this.width!=null&&(e.style.width=this.width+`px`),e.style.height=this.height+`px`}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=$J(t);return[new e(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}return tY(t,n,r)}};function $J(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==LW.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function eY(e,t,n,r){let i=e.coordsAtPos(t,n*2);if(!i)return r;let a=e.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,s=e.posAtCoords({x:a.left+1,y:o}),c=e.posAtCoords({x:a.right-1,y:o});return s==null||c==null?r:{from:Math.max(r.from,Math.min(s,c)),to:Math.min(r.to,Math.max(s,c))}}function tY(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==LW.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),c=$J(e),l=o.querySelector(`.cm-line`),u=l&&window.getComputedStyle(l),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),f=s.right-(u?parseInt(u.paddingRight):0),p=AK(e,r,1),m=AK(e,i,-1),h=p.type==QU.Text?p:null,g=m.type==QU.Text?m:null;if(h&&(e.lineWrapping||p.widgetLineBreaks)&&(h=eY(e,r,1,h)),g&&(e.lineWrapping||m.widgetLineBreaks)&&(g=eY(e,i,-1,g)),h&&g&&h.from==g.from&&h.to==g.to)return v(y(n.from,n.to,h));{let t=h?y(n.from,null,h):b(p,!1),r=g?y(null,n.to,g):b(m,!0),i=[];return(h||p).to<(g||m).from-(h&&g?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(_(d,t.bottom,f,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==QU.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),v(t).concat(i).concat(v(r))}function _(e,n,r,i){return new QJ(t,e-c.left,n-c.top,Math.max(0,r-e),i-n)}function v({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(_(n[i],e,n[i+1],t));return r}function y(t,n,r){let i=1e9,o=-1e9,s=[];function c(t,n,c,l,u){let p=e.coordsAtPos(t,t==r.to?-2:2),m=e.coordsAtPos(c,c==r.from?2:-2);p&&m&&(i=Math.min(p.top,m.top,i),o=Math.max(p.bottom,m.bottom,o),u==LW.LTR?s.push(a&&n?d:p.left,a&&l?f:m.right):s.push(!a&&l?d:m.left,!a&&n?f:p.right))}let l=t??r.from,u=n??r.to;for(let r of e.visibleRanges)if(r.to>l&&r.from<u)for(let i=Math.max(r.from,l),a=Math.min(r.to,u);;){let r=e.state.doc.lineAt(i);for(let o of e.bidiSpans(r)){let e=o.from+r.from,s=o.to+r.from;if(e>=a)break;s>i&&c(Math.max(e,i),t==null&&e<=l,Math.min(s,a),n==null&&s>=u,o.dir)}if(i=r.to+1,i>=a)break}return s.length==0&&c(l,t==null,u,n==null,e.textDirection),{top:i,bottom:o,horizontal:s}}function b(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}function nY(e,t){return e.constructor==t.constructor&&e.eq(t)}var rY=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement(`div`)),this.dom.classList.add(`cm-layer`),t.above&&this.dom.classList.add(`cm-layer-above`),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute(`aria-hidden`,`true`),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(iY)!=e.state.facet(iY)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(iY);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>!nY(e,this.drawn[t]))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e,WU.webkit&&(this.dom.style.display=this.dom.firstChild?``:`none`)}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},iY=sH.define();function aY(e){return[TG.define(t=>new rY(t,e)),iY.of(e)]}var oY=!WU.ios,sY=sH.define({combine(e){return ZH(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function cY(e={}){return[sY.of(e),uY,fY,mY,gG.of(!0)]}function lY(e){return e.startState.facet(sY)!=e.state.facet(sY)}var uY=aY({above:!0,markers(e){let{state:t}=e,n=t.facet(sY),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty||n.drawRangeCursor&&!(a&&WU.ios&&n.iosSelectionHandles)){let t=a?`cm-cursor cm-cursor-primary`:`cm-cursor cm-cursor-secondary`,n=i.empty?i:Y.cursor(i.head,i.assoc);for(let i of QJ.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName=t.style.animationName==`cm-blink`?`cm-blink2`:`cm-blink`);let n=lY(e);return n&&dY(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){dY(t.state,e)},class:`cm-cursorLayer`});function dY(e,t){t.style.animationDuration=e.facet(sY).cursorBlinkRate+`ms`}var fY=aY({above:!1,markers(e){let t=[],{main:n,ranges:r}=e.state.selection;for(let i of r)if(!i.empty&&(oY||i!=n))for(let n of QJ.forRange(e,`cm-selectionBackground`,i))t.push(n);if(WU.ios&&!n.empty&&e.state.facet(sY).iosSelectionHandles){for(let r of QJ.forRange(e,`cm-selectionHandle cm-selectionHandle-start`,Y.cursor(n.from,1)))t.push(r);for(let r of QJ.forRange(e,`cm-selectionHandle cm-selectionHandle-end`,Y.cursor(n.to,1)))t.push(r)}return t},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||lY(e)},class:`cm-selectionLayer`}),pY=WU.gecko&&WU.gecko_version==153?`#ffffff01`:`transparent`,mY=_H.highest(FJ.theme({".cm-line":{...oY?{"& ::selection, &::selection":{backgroundColor:`${pY} !important`}}:{},caretColor:`transparent !important`},".cm-content":{caretColor:`transparent !important`,"& :focus":{caretColor:`initial !important`,...oY?{"&::selection, & ::selection":{backgroundColor:`Highlight !important`}}:{}}}}));/x/.unicode;function hY(){return _Y}var gY=$U.line({class:`cm-activeLine`}),_Y=TG.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(gY.range(i.from)),t=i.from)}return $U.set(n)}},{decorations:e=>e.decorations}),vY=class extends ZU{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement(`span`);return t.className=`cm-placeholder`,t.style.pointerEvents=`none`,t.appendChild(typeof this.content==`string`?document.createTextNode(this.content):typeof this.content==`function`?this.content(e):this.content.cloneNode(!0)),t.setAttribute(`aria-hidden`,`true`),t}coordsAt(e){let t=e.firstChild?fW(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=vW(t[0],n.direction!=`rtl`),i=parseInt(n.lineHeight);return r.bottom-r.top>i*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}};function yY(e){let t=TG.fromClass(class{constructor(t){this.view=t,this.placeholder=e?$U.set([$U.widget({widget:new vY(e),side:1}).range(0)]):$U.none}get decorations(){return this.view.state.doc.length?$U.none:this.placeholder}},{decorations:e=>e.decorations});return typeof e==`string`?[t,FJ.contentAttributes.of({"aria-placeholder":e})]:t}var bY=class extends QH{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};bY.prototype.elementClass=``,bY.prototype.toDOM=void 0,bY.prototype.mapMode=YV.TrackBefore,bY.prototype.startSide=bY.prototype.endSide=-1,bY.prototype.point=!0;var xY=sH.define(),SY=sH.define(),CY={class:``,renderEmptyElements:!1,elementStyle:``,markers:()=>rU.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:`before`},wY=sH.define();function TY(e){return[DY(),wY.of({...CY,...e})]}var EY=sH.define({combine:e=>e.some(e=>e)});function DY(e){let t=[OY];return e&&e.fixed===!1&&t.push(EY.of(!0)),t}var OY=TG.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement(`div`),this.dom.className=`cm-gutters cm-gutters-before`,this.dom.setAttribute(`aria-hidden`,`true`),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+`px`,this.gutters=e.state.facet(wY).map(t=>new MY(e,t)),this.fixed=!e.state.facet(EY);for(let e of this.gutters)e.config.side==`after`?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position=`sticky`),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement(`div`),this.domAfter.className=`cm-gutters cm-gutters-after`,this.domAfter.setAttribute(`aria-hidden`,`true`),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+`px`,this.domAfter.style.position=this.fixed?`sticky`:``,this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+`px`;this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(EY)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?`sticky`:``,this.domAfter&&(this.domAfter.style.position=this.fixed?`sticky`:``)),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=rU.iter(this.view.state.facet(xY),this.view.viewport.from),r=[],i=this.gutters.map(e=>new jY(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=!0;for(let a of e.type)if(a.type==QU.Text&&t){AY(n,r,a.from);for(let e of i)e.line(this.view,a,r);t=!1}else if(a.widget)for(let e of i)e.widget(this.view,a)}else if(e.type==QU.Text){AY(n,r,e.from);for(let t of i)t.line(this.view,e,r)}else if(e.widget)for(let t of i)t.widget(this.view,e);for(let e of i)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(wY),n=e.state.facet(wY),r=e.docChanged||e.heightChanged||e.viewportChanged||!rU.eq(e.startState.facet(xY),e.state.facet(xY),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new MY(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)e.config.side==`after`?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>FJ.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||n.gutters.length==0||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==LW.LTR?{left:r,right:i}:{right:r,left:i}})});function kY(e){return Array.isArray(e)?e:[e]}function AY(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}var jY=class{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=rU.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==r.elements.length){let t=new NY(e,a,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,a,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];AY(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let a=this.gutter;(r.length!=0||a.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let n of e.state.facet(SY)){let i=n(e,t.widget,t);i&&(r||=[]).push(i)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},MY=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement(`div`),this.dom.className=`cm-gutter`+(this.config.class?` `+this.config.class:``);for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i=r.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();a=(e.top+e.bottom)/2}else a=r.clientY;let o=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,o,r)&&r.preventDefault()});this.markers=kY(t.markers(e)),t.initialSpacer&&(this.spacer=new NY(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+=`visibility: hidden; pointer-events: none`)}update(e){let t=this.markers;if(this.markers=kY(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!rU.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},NY=class{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement(`div`),this.dom.className=`cm-gutterElement`,this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+`px`),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+`px`:``),PY(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n=`cm-gutterElement`,r=this.dom.firstChild;for(let i=0,a=0;;){let o=a,s=i<t.length?t[i++]:null,c=!1;if(s){let e=s.elementClass;e&&(n+=` `+e);for(let e=a;e<this.markers.length;e++)if(this.markers[e].compare(s)){o=e,c=!0;break}}else o=this.markers.length;for(;a<o;){let e=this.markers[a++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!s)break;s.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),c&&a++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}};function PY(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}var FY=sH.define(),IY=sH.define(),LY=sH.define({combine(e){return ZH(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})}}),RY=class extends bY{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function zY(e,t){return e.state.facet(LY).formatNumber(t,e.state)}var BY=wY.compute([LY],e=>({class:`cm-lineNumbers`,renderEmptyElements:!1,markers(e){return e.state.facet(FY)},lineMarker(e,t,n){return n.some(e=>e.toDOM)?null:new RY(zY(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let r of e.state.facet(IY)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(LY)!=e.state.facet(LY),initialSpacer(e){return new RY(zY(e,HY(e.state.doc.lines)))},updateSpacer(e,t){let n=zY(t.view,HY(t.view.state.doc.lines));return n==e.number?e:new RY(n)},domEventHandlers:e.facet(LY).domEventHandlers,side:`before`}));function VY(e={}){return[LY.of(e),DY(),BY]}function HY(e){let t=9;for(;t<e;)t=t*10+9;return t}var UY=new class extends bY{constructor(){super(...arguments),this.elementClass=`cm-activeLineGutter`}},WY=xY.compute([`selection`],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(UY.range(i)))}return rU.of(t)});function GY(){return WY}var KY=1024,qY=0,JY=class{constructor(e,t){this.from=e,this.to=t}},YY=class{constructor(e={}){this.id=qY++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error(`This node type doesn't define a deserialize function`)}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError(`Can't add per-node props to node types`);return typeof e!=`function`&&(e=QY.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}};YY.closedBy=new YY({deserialize:e=>e.split(` `)}),YY.openedBy=new YY({deserialize:e=>e.split(` `)}),YY.group=new YY({deserialize:e=>e.split(` `)}),YY.isolate=new YY({deserialize:e=>{if(e&&e!=`rtl`&&e!=`ltr`&&e!=`auto`)throw RangeError(`Invalid value for isolate: `+e);return e||`auto`}}),YY.contextHash=new YY({perNode:!0}),YY.lookAhead=new YY({perNode:!0}),YY.mounted=new YY({perNode:!0});var XY=class{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[YY.mounted.id]}},ZY=Object.create(null),QY=class e{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(t){let n=t.props&&t.props.length?Object.create(null):ZY,r=+!!t.top|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new e(t.name||``,n,t.id,r);if(t.props){for(let e of t.props)if(Array.isArray(e)||(e=e(i)),e){if(e[0].perNode)throw RangeError(`Can't store a per-node prop on a node type`);n[e[0].id]=e[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e==`string`){if(this.name==e)return!0;let t=this.prop(YY.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(` `))t[r]=e[n];return e=>{for(let n=e.prop(YY.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}};QY.none=new QY(``,Object.create(null),0,8);var $Y=class e{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError(`Node type ids should correspond to array positions when creating a node set`)}extend(...t){let n=[];for(let e of this.types){let r=null;for(let n of t){let t=n(e);if(t){r||=Object.assign({},e.props);let n=t[1],i=t[0];i.combine&&i.id in r&&(n=i.combine(r[i.id],n)),r[i.id]=n}}n.push(r?new QY(e.name,r,e.id,e.flags):e)}return new e(n)}},eX=new WeakMap,tX=new WeakMap,nX;(function(e){e[e.ExcludeBuffers=1]=`ExcludeBuffers`,e[e.IncludeAnonymous=2]=`IncludeAnonymous`,e[e.IgnoreMounts=4]=`IgnoreMounts`,e[e.IgnoreOverlays=8]=`IgnoreOverlays`,e[e.EnterBracketed=16]=`EnterBracketed`})(nX||={});var rX=class e{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props[typeof e==`number`?e:e.id]=t}}toString(){let e=XY.get(this);if(e&&!e.overlay)return e.tree.toString();let t=``;for(let e of this.children){let n=e.toString();n&&(t&&(t+=`,`),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?`(`+t+`)`:``):t}cursor(e=0){return new _X(this.topNode,e)}cursorAt(e,t=0,n=0){let r=new _X(eX.get(this)||this.topNode);return r.moveTo(e,t),eX.set(this,r._tree),r}get topNode(){return new lX(this,0,0,null)}resolve(e,t=0){let n=sX(eX.get(this)||this.topNode,e,t,!1);return eX.set(this,n),n}resolveInner(e,t=0){let n=sX(tX.get(this)||this.topNode,e,t,!0);return tX.set(this,n),n}resolveStack(e,t=0){return gX(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,a=e.mode||0,o=(a&nX.IncludeAnonymous)>0;for(let e=this.cursor(a|nX.IncludeAnonymous);;){let a=!1;if(e.from<=i&&e.to>=r&&(!o&&e.type.isAnonymous||t(e)!==!1)){if(e.firstChild())continue;a=!0}for(;a&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;a=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(t={}){return this.children.length<=8?this:SX(QY.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,r)=>new e(this.type,t,n,r,this.propValues),t.makeTree||((t,n,r)=>new e(QY.none,t,n,r)))}static build(e){return yX(e)}};rX.empty=new rX(QY.none,[],[],0);var iX=class e{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new e(this.buffer,this.index)}},aX=class e{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return QY.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(`,`)}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),e+=4,n==e)return i;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return i+`(`+a.join(`,`)+`)`}findChild(e,t,n,r,i){let{buffer:a}=this,o=-1;for(let s=e;s!=t&&!(oX(i,r,a[s+1],a[s+2])&&(o=s,n>0));s=a[s+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),o=0;for(let e=t,s=0;e<n;){a[s++]=i[e++],a[s++]=i[e++]-r;let n=a[s++]=i[e++]-r;a[s++]=i[e++]-t,o=Math.max(o,n)}return new e(a,o,this.set)}};function oX(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function sX(e,t,n,r){for(;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof lX&&e.index<0?null:e.parent;if(!t)return e;e=t}let i=r?0:nX.IgnoreOverlays;if(r)for(let r=e,a=r.parent;a;r=a,a=r.parent)r instanceof lX&&r.index<0&&a.enter(t,n,i)?.from!=r.from&&(e=a);for(;;){let r=e.enter(t,n,i);if(!r)return e;e=r}}var cX=class{cursor(e=0){return new _X(this,e)}getChild(e,t=null,n=null){let r=uX(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return uX(this,e,t,n)}resolve(e,t=0){return sX(this,e,t,!1)}resolveInner(e,t=0){return sX(this,e,t,!0)}matchContext(e){return dX(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}},lX=class e extends cX{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,a=0){for(let o=this;;){for(let{children:s,positions:c}=o._tree,l=n>0?s.length:-1;t!=l;t+=n){let l=s[t],u=c[t]+o.from,d;if(a&nX.EnterBracketed&&l instanceof rX&&(d=XY.get(l))&&!d.overlay&&d.bracketed&&r>=u&&r<=u+l.length||oX(i,r,u,u+l.length)){if(l instanceof aX){if(a&nX.ExcludeBuffers)continue;let e=l.findChild(0,l.buffer.length,n,r-u,i);if(e>-1)return new pX(new fX(o,l,t,u),null,e)}else if(a&nX.IncludeAnonymous||!l.type.isAnonymous||vX(l)){let s;if(!(a&nX.IgnoreMounts)&&(s=XY.get(l))&&!s.overlay)return new e(s.tree,u,t,o);let c=new e(l,u,t,o);return a&nX.IncludeAnonymous||!c.type.isAnonymous?c:c.nextChild(n<0?l.children.length-1:0,n,r,i,a)}}}if(a&nX.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+n:n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(t,n,r=0){let i;if(!(r&nX.IgnoreOverlays)&&(i=XY.get(this._tree))&&i.overlay){let a=t-this.from,o=r&nX.EnterBracketed&&i.bracketed;for(let{from:t,to:r}of i.overlay)if((n>0||o?t<=a:t<a)&&(n<0||o?r>=a:r>a))return new e(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function uX(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function dX(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}var fX=class{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}},pX=class e extends cX{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new e(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(t,n,r=0){if(r&nX.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new e(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new e(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new e(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1];e.push(n.slice(r,i,a)),t.push(0)}return new rX(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function mX(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof lX&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new hX(i,n)}var hX=class{constructor(e,t){this.heads=e,this.node=t}get next(){return mX(this.heads)}};function gX(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof lX?r:r.context.parent;e;e=e.parent)if(e.index<0){let a=e.parent;(i||=[r]).push(a.resolve(t,n)),e=a}else{let a=XY.get(e.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let o=new lX(a.tree,a.overlay[0].from+e.from,-1,e);(i||=[r]).push(sX(o,t,n,!1))}}return i?mX(i):r}var _X=class{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~nX.EnterBracketed,e instanceof lX)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof lX?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&nX.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&nX.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&nX.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&nX.IncludeAnonymous||e instanceof aX||!e.type.isAnonymous||vX(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)scan:for(let r=this.index,i=this.stack.length;i>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break scan}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new pX(this.buffer,t,this.stack[e]);return this.bufferNode=new pX(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return dX(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return dX(this._tree,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}};function vX(e){return e.children.some(e=>e instanceof aX||!e.type.isAnonymous||vX(e))}function yX(e){let{buffer:t,nodeSet:n,maxBufferLength:r=KY,reused:i=[],minRepeatType:a=n.types.length}=e,o=Array.isArray(t)?new iX(t,t.length):t,s=n.types,c=0,l=0;function u(e,t,_,v,y,b){let{id:x,start:S,end:C,size:w}=o,T=l,E=c;if(w<0){if(o.next(),w==-1){let t=i[x];_.push(t),v.push(S-e);return}if(w==-3){c=x;return}if(w==-4){l=x;return}throw RangeError(`Unrecognized record size: ${w}`)}let D=s[x],O,k,A=S-e;if(C-S<=r&&(k=h(o.pos-t,y))){let t=new Uint16Array(k.size-k.skip),r=o.pos-k.size,i=t.length;for(;o.pos>r;)i=g(k.start,t,i);O=new aX(t,C-k.start,n),A=k.start-e}else{let e=o.pos-w;o.next();let t=[],s=[],c=x>=a?x:-1,h=0,g=C,_=T;for(;o.pos>e;)c>=0&&o.id==c&&o.size>=0?(o.end<=g-r&&(p(t,s,S,h,o.end,g,c,_,E),h=t.length,g=o.end,_=l),o.next()):b>2500?d(S,e,t,s):(c>=0&&o.size==-1&&i[o.id].type==n.types[c]&&(h<t.length&&p(t,s,S,h,o.end,g,c,_,E),h=t.length+1,g=o.start,_=l),u(S,e,t,s,c,b+1));if(c>=0&&h>0&&h<t.length&&p(t,s,S,h,S,g,c,_,E),t.reverse(),s.reverse(),c>-1&&h>0){let e=f(D,E);O=SX(D,t,s,0,t.length,0,C-S,e,e)}else O=m(D,t,s,C-S,T-C,E)}_.push(O),v.push(A)}function d(e,t,i,a){let s=[],c=0,l=-1;for(;o.pos>t;){let{id:e,start:t,end:n,size:i}=o;if(i>4)o.next();else if(l>-1&&t<l)break;else l<0&&(l=n-r),s.push(e,t,n),c++,o.next()}if(c){let t=new Uint16Array(c*4),r=s[s.length-2];for(let e=s.length-3,n=0;e>=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-r,t[n++]=s[e+2]-r,t[n++]=n;i.push(new aX(t,s[2]-r,n)),a.push(r-e)}}function f(e,t){return(n,r,i)=>{let a=0,o=n.length-1,s,c;if(o>=0&&(s=n[o])instanceof rX){if(!o&&s.type==e&&s.length==i)return s;(c=s.prop(YY.lookAhead))&&(a=r[o]+s.length+c-i)}return m(e,n,r,i,a,t)}}function p(e,t,r,i,a,o,s,c,l){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+r-a);e.push(m(n.types[s],u,d,o-a,c-o,l)),t.push(a-r)}function m(e,t,n,r,i,a,o){if(a){let e=[YY.contextHash,a];o=o?[e].concat(o):[e]}if(i>25){let e=[YY.lookAhead,i];o=o?[e].concat(o):[e]}return new rX(e,t,n,r,o)}function h(e,t){let n=o.fork(),i=0,s=0,c=0,l=n.end-r,u={size:0,start:0,skip:0};scan:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=s,u.skip=c,c+=4,i+=4,n.next();continue}let o=n.pos-e;if(e<0||o<r||n.start<l)break;let d=n.id>=a?4:0,f=n.start;for(n.next();n.pos>o;){if(n.size<0){if(n.size==-3||n.size==-4)d+=4;else break scan}else n.id>=a&&(d+=4);n.next()}s=f,i+=e,c+=d}return(t<0||i==e)&&(u.size=i,u.start=s,u.skip=c),u.size>4?u:void 0}function g(e,t,n){let{id:r,start:i,end:s,size:u}=o;if(o.next(),u>=0&&r<a){let a=n;if(u>4){let r=o.pos-(u-4);for(;o.pos>r;)n=g(e,t,n)}t[--n]=a,t[--n]=s-e,t[--n]=i-e,t[--n]=r}else u==-3?c=r:u==-4&&(l=r);return n}let _=[],v=[];for(;o.pos>0;)u(e.start||0,e.bufferStart||0,_,v,-1,0);let y=e.length??(_.length?v[0]+_[0].length:0);return new rX(s[e.topID],_.reverse(),v.reverse(),y)}var bX=new WeakMap;function xX(e,t){if(!e.isAnonymous||t instanceof aX||t.type!=e)return 1;let n=bX.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof rX)){n=1;break}n+=xX(e,r)}bX.set(t,n)}return n}function SX(e,t,n,r,i,a,o,s,c){let l=0;for(let n=r;n<i;n++)l+=xX(e,t[n]);let u=Math.ceil(l*1.5/8),d=[],f=[];function p(t,n,r,i,o){for(let s=r;s<i;){let r=s,l=n[s],m=xX(e,t[s]);for(s++;s<i;s++){let n=xX(e,t[s]);if(m+n>=u)break;m+=n}if(s==r+1){if(m>u){let e=t[r];p(e.children,e.positions,0,e.children.length,n[r]+o);continue}d.push(t[r])}else{let i=n[s-1]+t[s-1].length-l;d.push(SX(e,t,n,r,s,l,i,null,c))}f.push(l+o-a)}}return p(t,n,r,i,0),(s||c)(d,f,o)}var CX=class e{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=!!i|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new e(0,t.length,t,0,!1,r)];for(let e of n)e.to>t.length&&i.push(e);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,o=t.length?t[0]:null;for(let s=0,c=0,l=0;;s++){let u=s<n.length?n[s]:null,d=u?u.fromA:1e9;if(d-c>=r)for(;o&&o.from<d;){let n=o;if(c>=n.from||d<=n.to||l){let t=Math.max(n.from,c)-l,r=Math.min(n.to,d)-l;n=t>=r?null:new e(t,r,n.tree,n.offset+l,s>0,!!u)}if(n&&i.push(n),o.to>d)break;o=a<t.length?t[a++]:null}if(!u)break;c=u.toA,l=u.toA-u.toB}return i}},wX=class{startParse(e,t,n){return typeof e==`string`&&(e=new TX(e)),n=n?n.length?n.map(e=>new JY(e.from,e.to)):[new JY(0,0)]:[new JY(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}},TX=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};new YY({perNode:!0});var EX=0,DX=class e{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=EX++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(t,n){let r=typeof t==`string`?t:`?`;if(t instanceof e&&(n=t),n?.base)throw Error(`Can not derive from a modified tag`);let i=new e(r,[],null,[]);if(i.set.push(i),n)for(let e of n.set)i.set.push(e);return i}static defineModifier(e){let t=new kX(e);return e=>e.modified.indexOf(t)>-1?e:kX.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}},OX=0,kX=class e{constructor(e){this.name=e,this.instances=[],this.id=OX++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(e=>e.base==t&&AX(n,e.modified));if(r)return r;let i=[],a=new DX(t.name,i,t,n);for(let e of n)e.instances.push(a);let o=jX(n);for(let n of t.set)if(!n.modified.length)for(let t of o)i.push(e.get(n,t));return a}};function AX(e,t){return e.length==t.length&&e.every((e,n)=>e==t[n])}function jX(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}function MX(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(` `))if(e){let n=[],i=2,a=e;for(let t=0;;){if(a==`...`&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError(`Invalid path: `+e);if(n.push(r[0]==`*`?``:r[0][0]==`"`?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&o==`!`){i=0;break}if(o!=`/`)throw RangeError(`Invalid path: `+e);a=e.slice(t)}let o=n.length-1,s=n[o];if(!s)throw RangeError(`Invalid path: `+e);t[s]=new PX(r,i,o>0?n.slice(0,o):null).sort(t[s])}}return NX.add(t)}var NX=new YY({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth<=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let a=new PX(i.tags,i.mode,i.context);n?n.next=a:r=a,n=a}return r}}),PX=class{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};PX.empty=new PX([],2,null);function FX(e,t){let n=Object.create(null);for(let t of e)if(!Array.isArray(t.tag))n[t.tag.id]=t.class;else for(let e of t.tag)n[e.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+` `+r:r;break}}return t},scope:r}}function IX(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+` `+e:e)}return n}function LX(e,t,n,r=0,i=e.length){let a=new RX(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,``,a.highlighters),a.flush(i)}var RX=class{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=``}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:a,from:o,to:s}=e;if(o>=n||s<=t)return;a.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(a)));let c=r,l=zX(e)||PX.empty,u=IX(i,l.tags);if(u&&(c&&(c+=` `),c+=u,l.mode==1&&(r+=(r?` `:``)+u)),this.startSpan(Math.max(t,o),c),l.opaque)return;let d=e.tree&&e.tree.prop(YY.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+o,1),l=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let f=0,p=o;;f++){let m=f<d.overlay.length?d.overlay[f]:null,h=m?m.from+o:s,g=Math.max(t,p),_=Math.min(n,h);if(g<_&&u)for(;e.from<_&&(this.highlightRange(e,g,_,r,i),this.startSpan(Math.min(_,e.to),c),!(e.to>=h||!e.nextSibling())););if(!m||h>n)break;p=m.to+o,p>t&&(this.highlightRange(a.cursor(),Math.max(t,m.from+o),Math.min(n,p),``,l),this.startSpan(Math.min(n,p),c))}u&&e.parent()}else if(e.firstChild()){d&&(r=``);do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}};function zX(e){let t=e.type.prop(NX);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}var BX=DX.define,VX=BX(),HX=BX(),UX=BX(HX),WX=BX(HX),GX=BX(),KX=BX(GX),qX=BX(GX),JX=BX(),YX=BX(JX),XX=BX(),ZX=BX(),QX=BX(),$X=BX(QX),eZ=BX(),X={comment:VX,lineComment:BX(VX),blockComment:BX(VX),docComment:BX(VX),name:HX,variableName:BX(HX),typeName:UX,tagName:BX(UX),propertyName:WX,attributeName:BX(WX),className:BX(HX),labelName:BX(HX),namespace:BX(HX),macroName:BX(HX),literal:GX,string:KX,docString:BX(KX),character:BX(KX),attributeValue:BX(KX),number:qX,integer:BX(qX),float:BX(qX),bool:BX(GX),regexp:BX(GX),escape:BX(GX),color:BX(GX),url:BX(GX),keyword:XX,self:BX(XX),null:BX(XX),atom:BX(XX),unit:BX(XX),modifier:BX(XX),operatorKeyword:BX(XX),controlKeyword:BX(XX),definitionKeyword:BX(XX),moduleKeyword:BX(XX),operator:ZX,derefOperator:BX(ZX),arithmeticOperator:BX(ZX),logicOperator:BX(ZX),bitwiseOperator:BX(ZX),compareOperator:BX(ZX),updateOperator:BX(ZX),definitionOperator:BX(ZX),typeOperator:BX(ZX),controlOperator:BX(ZX),punctuation:QX,separator:BX(QX),bracket:$X,angleBracket:BX($X),squareBracket:BX($X),paren:BX($X),brace:BX($X),content:JX,heading:YX,heading1:BX(YX),heading2:BX(YX),heading3:BX(YX),heading4:BX(YX),heading5:BX(YX),heading6:BX(YX),contentSeparator:BX(JX),list:BX(JX),quote:BX(JX),emphasis:BX(JX),strong:BX(JX),link:BX(JX),monospace:BX(JX),strikethrough:BX(JX),inserted:BX(),deleted:BX(),changed:BX(),invalid:BX(),meta:eZ,documentMeta:BX(eZ),annotation:BX(eZ),processingInstruction:BX(eZ),definition:DX.defineModifier(`definition`),constant:DX.defineModifier(`constant`),function:DX.defineModifier(`function`),standard:DX.defineModifier(`standard`),local:DX.defineModifier(`local`),special:DX.defineModifier(`special`)};for(let e in X){let t=X[e];t instanceof DX&&(t.name=e)}FX([{tag:X.link,class:`tok-link`},{tag:X.heading,class:`tok-heading`},{tag:X.emphasis,class:`tok-emphasis`},{tag:X.strong,class:`tok-strong`},{tag:X.keyword,class:`tok-keyword`},{tag:X.atom,class:`tok-atom`},{tag:X.bool,class:`tok-bool`},{tag:X.url,class:`tok-url`},{tag:X.labelName,class:`tok-labelName`},{tag:X.inserted,class:`tok-inserted`},{tag:X.deleted,class:`tok-deleted`},{tag:X.literal,class:`tok-literal`},{tag:X.string,class:`tok-string`},{tag:X.number,class:`tok-number`},{tag:[X.regexp,X.escape,X.special(X.string)],class:`tok-string2`},{tag:X.variableName,class:`tok-variableName`},{tag:X.local(X.variableName),class:`tok-variableName tok-local`},{tag:X.definition(X.variableName),class:`tok-variableName tok-definition`},{tag:X.special(X.variableName),class:`tok-variableName2`},{tag:X.definition(X.propertyName),class:`tok-propertyName tok-definition`},{tag:X.typeName,class:`tok-typeName`},{tag:X.namespace,class:`tok-namespace`},{tag:X.className,class:`tok-className`},{tag:X.macroName,class:`tok-macroName`},{tag:X.propertyName,class:`tok-propertyName`},{tag:X.operator,class:`tok-operator`},{tag:X.comment,class:`tok-comment`},{tag:X.meta,class:`tok-meta`},{tag:X.invalid,class:`tok-invalid`},{tag:X.punctuation,class:`tok-punctuation`}]);var tZ=new YY;function nZ(e){return sH.define({combine:e?t=>t.concat(e):void 0})}var rZ=new YY,iZ=class{constructor(e,t,n=[],r=``){this.data=e,this.name=r,XH.prototype.hasOwnProperty(`tree`)||Object.defineProperty(XH.prototype,"tree",{get(){return sZ(this)}}),this.parser=t,this.extension=[gZ.of(this),XH.languageData.of((e,t,n)=>{let r=aZ(e,t,n),i=r.type.prop(tZ);if(!i)return[];let a=e.facet(i),o=r.type.prop(rZ);if(o){let i=r.resolve(t-r.from,n);for(let t of o)if(t.test(i,e)){let n=e.facet(t.facet);return t.type==`replace`?n:n.concat(a)}}return a})].concat(n)}isActiveAt(e,t,n=-1){return aZ(e,t,n).type.prop(tZ)==this.data}findRegions(e){let t=e.facet(gZ);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(tZ)==this.data){n.push({from:t,to:t+e.length});return}let i=e.prop(YY.mounted);if(i){if(i.tree.prop(tZ)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof rX&&r(i,e.positions[n]+t)}};return r(sZ(e),0),n}get allowsNesting(){return!0}};iZ.setState=FH.define();function aZ(e,t,n){let r=e.facet(gZ),i=sZ(e).topNode;if(!r||r.allowsNesting)for(let e=i;e;e=e.enter(t,n,nX.ExcludeBuffers|nX.EnterBracketed))e.type.isTop&&(i=e);return i}var oZ=class e extends iZ{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(t){let n=nZ(t.languageData);return new e(n,t.parser.configure({props:[tZ.add(e=>e.isTop?n:void 0)]}),t.name)}configure(t,n){return new e(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function sZ(e){let t=e.field(iZ.state,!1);return t?t.tree:rX.empty}var cZ=class{constructor(e){this.doc=e,this.cursorPos=0,this.string=``,this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}},lZ=null,uZ=class e{constructor(e,t,n=[],r,i,a,o,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=o,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new e(t,n,[],rX.empty,0,r,[],null)}startParse(){return this.parser.startParse(new cZ(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=rX.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{if(typeof e==`number`){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||=this.startParse(),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(CX.addTree(n,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=this.parse.stoppedAt??this.state.doc.length,this.tree=n,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(CX.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=lZ;lZ=this;try{return e()}finally{lZ=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=dZ(e,t.from,t.to);return e}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:o,skipped:s}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})),r=CX.applyChanges(r,e),i=rX.empty,a=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){s=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&s.push({from:n,to:r})}}}return new e(this.parser,n,r,i,a,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=dZ(this.fragments,n,r),this.skipped.splice(t--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&=(this.takeTree(),null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends wX{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance(){let t=lZ;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new rX(QY.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return lZ}};function dZ(e,t,n){return CX.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var fZ=class e{constructor(e){this.context=e,this.tree=e.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new e(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=uZ.create(t.facet(gZ).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}};iZ.state=mH.define({create:fZ.init,update(e,t){for(let e of t.effects)if(e.is(iZ.setState))return e.value;return t.startState.facet(gZ)==t.state.facet(gZ)?e.apply(t):fZ.init(t.state)}});var pZ=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<`u`&&(pZ=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});var mZ=typeof navigator<`u`&&navigator.scheduling?.isInputPending?()=>navigator.scheduling.isInputPending():null,hZ=TG.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(iZ.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(iZ.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=pZ(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(iZ.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!mZ?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,s=i.context.work(()=>mZ&&mZ()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:iZ.setState.of(new fZ(i.context))})),this.chunkBudget>0&&(!s||o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&=(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>xG(this.view.state,e)).then(()=>this.workScheduled--),null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),gZ=sH.define({combine(e){return e.length?e[0]:null},enables:e=>[iZ.state,hZ,FJ.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),_Z=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}},vZ=sH.define(),yZ=sH.define({combine:e=>{if(!e.length)return` `;let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error(`Invalid indent unit: `+JSON.stringify(e[0]));return t}});function bZ(e){let t=e.facet(yZ);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function xZ(e,t){let n=``,r=e.tabSize,i=e.facet(yZ)[0];if(i==` `){for(;t>=r;)n+=` `,t-=r;i=` `}for(let e=0;e<t;e++)n+=i;return n}function SZ(e,t){e instanceof XH&&(e=new CZ(e));for(let n of e.state.facet(vZ)){let r=n(e,t);if(r!==void 0)return r}let n=sZ(e.state);return n.length>=t?TZ(e,n,t):null}var CZ=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=bZ(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return r!=null&&r>=n.from&&r<=n.to?i&&r==e?{text:``,from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return``;let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),a=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return a>-1&&(i+=a-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return _U(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},wZ=new YY;function TZ(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return EZ(r,e,n)}function EZ(e,t,n){for(let r=e;r;r=r.next){let e=OZ(r.node);if(e)return e(AZ.create(t,n,r))}return 0}function DZ(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function OZ(e){let t=e.type.prop(wZ);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(YY.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>NZ(e,!0,1,void 0,n&&!DZ(e)?t.from:void 0)}return e.parent==null?kZ:null}function kZ(){return 0}var AZ=class e extends CZ{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(t,n,r){return new e(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(jZ(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return EZ(this.context.next,this.base,this.pos)}};function jZ(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function MZ(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),o=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=o)return null;let e=/^ */.exec(a.text.slice(n.to-a.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}function NZ(e,t,n,r,i){let a=e.textAfter,o=a.match(/^\s*/)[0].length,s=r&&a.slice(o,o+r.length)==r||i==e.pos+o,c=t?MZ(e):null;return c?s?e.column(c.from):e.column(c.to):e.baseIndent+(s?0:e.unit*n)}function PZ({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}var FZ=200;function IZ(){return XH.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent(`input.type`)&&!e.isUserEvent(`input.complete`))return e;let t=e.startState.languageDataAt(`indentOnInput`,e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+FZ)return e;let a=n.sliceString(i.from,r);if(!t.some(e=>e.test(a)))return e;let{state:o}=e,s=-1,c=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=SZ(o,t.from);if(n==null)continue;let r=/^\s*/.exec(t.text)[0],i=xZ(o,n);r!=i&&c.push({from:t.from,to:t.from+r.length,insert:i})}return c.length?[e,{changes:c,sequential:!0}]:e})}var LZ=sH.define(),RZ=new YY;function zZ(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function BZ(e,t,n){let r=sZ(e);if(r.length<n)return null;let i=r.resolveStack(n,1),a=null;for(let o=i;o;o=o.next){let i=o.node;if(i.to<=n||i.from>n)continue;if(a&&i.from<t)break;let s=i.type.prop(RZ);if(s&&(i.to<r.length-50||r.length==e.doc.length||!VZ(i))){let r=s(i,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(a=r)}}return a}function VZ(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function HZ(e,t,n){for(let r of e.facet(LZ)){let i=r(e,t,n);if(i)return i}return BZ(e,t,n)}function UZ(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var WZ=FH.define({map:UZ}),GZ=FH.define({map:UZ});function KZ(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}var qZ=mH.define({create(){return $U.none},update(e,t){t.isUserEvent(`delete`)&&t.changes.iterChangedRanges((t,n)=>e=JZ(e,t,n)),e=e.map(t.changes);let n=[];for(let r of t.effects)r.is(WZ)&&!XZ(e,r.value.from,r.value.to)?n.push(r.value):r.is(GZ)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=t.state.facet(rQ),i=n.map(e=>(r?$U.replace({widget:new sQ(r(t.state,e))}):oQ).range(e.from,e.to));e=e.update({add:i})}return t.selection&&(e=JZ(e,t.selection.main.head)),e},provide:e=>FJ.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError(`Invalid JSON for fold state`);let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid JSON for fold state`);t.push(oQ.range(r,i))}return $U.set(t,!0)}});function JZ(e,t,n=t){let r=!1;return e.between(t,n,(e,i)=>{e<n&&i>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function YZ(e,t,n){var r;let i=null;return(r=e.field(qZ,!1))==null||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}function XZ(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}function ZZ(e,t){return e.field(qZ,!1)?t:t.concat(FH.appendConfig.of(iQ()))}var QZ=e=>{for(let t of KZ(e)){let n=HZ(e.state,t.from,t.to);if(n)return e.dispatch({effects:ZZ(e.state,[WZ.of(n),eQ(e,n)])}),!0}return!1},$Z=e=>{if(!e.state.field(qZ,!1))return!1;let t=[];for(let n of KZ(e)){let r=YZ(e.state,n.from,n.to);r&&t.push(GZ.of(r),eQ(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function eQ(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return FJ.announce.of(`${e.state.phrase(n?`Folded lines`:`Unfolded lines`)} ${r} ${e.state.phrase(`to`)} ${i}.`)}var tQ=[{key:`Ctrl-Shift-[`,mac:`Cmd-Alt-[`,run:QZ},{key:`Ctrl-Shift-]`,mac:`Cmd-Alt-]`,run:$Z},{key:`Ctrl-Alt-[`,run:e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),a=HZ(t,i.from,i.to);a&&n.push(WZ.of(a)),r=(a?e.lineBlockAt(a.to):i).to+1}return n.length&&e.dispatch({effects:ZZ(e.state,n)}),!!n.length}},{key:`Ctrl-Alt-]`,run:e=>{let t=e.state.field(qZ,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(GZ.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],nQ={placeholderDOM:null,preparePlaceholder:null,placeholderText:`…`},rQ=sH.define({combine(e){return ZH(e,nQ)}});function iQ(e){let t=[qZ,dQ];return e&&t.push(rQ.of(e)),t}function aQ(e,t){let{state:n}=e,r=n.facet(rQ),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=YZ(e.state,n.from,n.to);r&&e.dispatch({effects:GZ.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement(`span`);return a.textContent=r.placeholderText,a.setAttribute(`aria-label`,n.phrase(`folded code`)),a.title=n.phrase(`unfold`),a.className=`cm-foldPlaceholder`,a.onclick=i,a}var oQ=$U.replace({widget:new class extends ZU{toDOM(e){return aQ(e,null)}}}),sQ=class extends ZU{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return aQ(e,this.value)}},cQ={openText:`⌄`,closedText:`›`,markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},lQ=class extends bY{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement(`span`);return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?`Fold line`:`Unfold line`),t}};function uQ(e={}){let t={...cQ,...e},n=new lQ(t,!0),r=new lQ(t,!1),i=TG.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(gZ)!=e.state.facet(gZ)||e.startState.field(qZ,!1)!=e.state.field(qZ,!1)||sZ(e.startState)!=sZ(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new oU;for(let i of e.viewportLineBlocks){let a=YZ(e.state,i.from,i.to)?r:HZ(e.state,i.from,i.to)?n:null;a&&t.add(i.from,i.from,a)}return t.finish()}}),{domEventHandlers:a}=t;return[i,TY({class:`cm-foldGutter`,markers(e){return e.plugin(i)?.markers||rU.empty},initialSpacer(){return new lQ(t,!1)},domEventHandlers:{...a,click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let r=YZ(e.state,t.from,t.to);if(r)return e.dispatch({effects:GZ.of(r)}),!0;let i=HZ(e.state,t.from,t.to);return i?(e.dispatch({effects:WZ.of(i)}),!0):!1}}}),iQ()]}var dQ=FJ.baseTheme({".cm-foldPlaceholder":{backgroundColor:`#eee`,border:`1px solid #ddd`,color:`#888`,borderRadius:`.2em`,margin:`0 1px`,padding:`0 1px`,cursor:`pointer`},".cm-foldGutter span":{padding:`0 1px`,cursor:`pointer`}}),fQ=class e{constructor(e,t){this.specs=e;let n;function r(e){let t=CU.newName();return(n||=Object.create(null))[`.`+t]=e,t}let i=typeof t.all==`string`?t.all:t.all?r(t.all):void 0,a=t.scope;this.scope=a instanceof iZ?e=>e.prop(tZ)==a.data:a?e=>e==a:void 0,this.style=FX(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new CU(n):null,this.themeType=t.themeType}static define(t,n){return new e(t,n||{})}},pQ=sH.define(),mQ=sH.define({combine(e){return e.length?[e[0]]:null}});function hQ(e){let t=e.facet(pQ);return t.length?t:e.facet(mQ)}function gQ(e,t){let n=[vQ],r;return e instanceof fQ&&(e.module&&n.push(FJ.styleModule.of(e.module)),r=e.themeType),t?.fallback?n.push(mQ.of(e)):r?n.push(pQ.computeN([FJ.darkTheme],t=>t.facet(FJ.darkTheme)==(r==`dark`)?[e]:[])):n.push(pQ.of(e)),n}var _Q=class{constructor(e){this.markCache=Object.create(null),this.tree=sZ(e.state),this.decorations=this.buildDeco(e,hQ(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=sZ(e.state),n=hQ(e.state),r=n!=hQ(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&a>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return $U.none;let n=new oU;for(let{from:r,to:i}of e.visibleRanges)LX(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=$U.mark({class:r})))},r,i);return n.finish()}},vQ=_H.high(TG.fromClass(_Q,{decorations:e=>e.decorations}));X.meta,X.link,X.heading,X.emphasis,X.strong,X.strikethrough,X.keyword,X.atom,X.bool,X.url,X.contentSeparator,X.labelName,X.literal,X.inserted,X.string,X.deleted,X.regexp,X.escape,X.string,X.variableName,X.variableName,X.typeName,X.namespace,X.className,X.variableName,X.macroName,X.propertyName,X.comment,X.invalid;var yQ=FJ.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:`#328c8252`},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bb555544`}}),bQ=1e4,xQ=`()[]{}`,SQ=sH.define({combine(e){return ZH(e,{afterCursor:!0,brackets:xQ,maxScanDistance:bQ,renderMatch:TQ})}}),CQ=$U.mark({class:`cm-matchingBracket`}),wQ=$U.mark({class:`cm-nonmatchingBracket`});function TQ(e){let t=[],n=e.matched?CQ:wQ;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function EQ(e){let t=[],n=e.facet(SQ);for(let r of e.selection.ranges){if(!r.empty)continue;let i=MQ(e,r.head,-1,n)||r.head>0&&MQ(e,r.head-1,1,n)||n.afterCursor&&(MQ(e,r.head,1,n)||r.head<e.doc.length&&MQ(e,r.head+1,-1,n));i&&(t=t.concat(n.renderMatch(i,e)))}return $U.set(t,!0)}var DQ=[TG.fromClass(class{constructor(e){this.paused=!1,this.decorations=EQ(e.state)}update(e){(e.docChanged||e.selectionSet||this.paused)&&(e.view.composing?(this.decorations=this.decorations.map(e.changes),this.paused=!0):(this.decorations=EQ(e.state),this.paused=!1))}},{decorations:e=>e.decorations}),yQ];function OQ(e={}){return[SQ.of(e),DQ]}var kQ=new YY;function AQ(e,t,n){let r=e.prop(t<0?YY.openedBy:YY.closedBy);if(r)return r;if(e.name.length==1){let r=n.indexOf(e.name);if(r>-1&&r%2==+(t<0))return[n[r+t]]}return null}function jQ(e){let t=e.type.prop(kQ);return t?t(e.node):e}function MQ(e,t,n,r={}){let i=r.maxScanDistance||bQ,a=r.brackets||xQ,o=sZ(e),s=o.resolveInner(t,n);for(let r=s;r;r=r.parent){let i=AQ(r.type,n,a);if(i&&r.from<r.to){let o=jQ(r);if(o&&(n>0?t>=o.from&&t<o.to:t>o.from&&t<=o.to))return NQ(e,t,n,r,o,i,a)}}return PQ(e,t,n,o,s.type,i,a)}function NQ(e,t,n,r,i,a,o){let s=r.parent,c={from:i.from,to:i.to},l=0,u=s?.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(l==0&&a.indexOf(u.type.name)>-1&&u.from<u.to){let e=jQ(u);return{start:c,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(AQ(u.type,n,o))l++;else if(AQ(u.type,-n,o)){if(l==0){let e=jQ(u);return{start:c,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}l--}}while(n<0?u.prevSibling():u.nextSibling());return{start:c,matched:!1}}function PQ(e,t,n,r,i,a,o){if(n<0?!t:t==e.doc.length)return null;let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),c=o.indexOf(s);if(c<0||c%2==0!=n>0)return null;let l={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=a;){let a=u.value;n<0&&(e+=a.length);let s=t+e*n;for(let e=n>0?0:a.length-1,t=n>0?a.length:-1;e!=t;e+=n){let t=o.indexOf(a[e]);if(!(t<0||r.resolveInner(s+e,1).type!=i)){if(t%2==0==n>0)d++;else if(d==1)return{start:l,end:{from:s+e,to:s+e+1},matched:t>>1==c>>1};else d--}}n>0&&(e+=a.length)}return u.done?{start:l,matched:!1}:null}var FQ=Object.create(null),IQ=[QY.none],LQ=[],RQ=Object.create(null),zQ=Object.create(null);for(let[e,t]of[[`variable`,`variableName`],[`variable-2`,`variableName.special`],[`string-2`,`string.special`],[`def`,`variableName.definition`],[`tag`,`tagName`],[`attribute`,`attributeName`],[`type`,`typeName`],[`builtin`,`variableName.standard`],[`qualifier`,`modifier`],[`error`,`invalid`],[`header`,`heading`],[`property`,`propertyName`]])zQ[e]=VQ(FQ,t);function BQ(e,t){LQ.indexOf(e)>-1||(LQ.push(e),console.warn(t))}function VQ(e,t){let n=[];for(let r of t.split(` `)){let t=[];for(let n of r.split(`.`)){let r=e[n]||X[n];r?typeof r==`function`?t.length?t=t.map(r):BQ(n,`Modifier ${n} used at start of tag`):t.length?BQ(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:BQ(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,`_`),i=r+` `+n.map(e=>e.id),a=RQ[i];if(a)return a.id;let o=RQ[i]=QY.define({id:IQ.length,name:r,props:[MX({[r]:n})]});return IQ.push(o),o.id}LW.RTL,LW.LTR;var HQ=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=qQ(e.state,n.from);return r.line?WQ(e):r.block?KQ(e):!1};function UQ(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var WQ=UQ(QQ,0),GQ=UQ(ZQ,0),KQ=UQ((e,t)=>ZQ(e,t,XQ(t)),0);function qQ(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var JQ=50;function YQ(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-JQ,r),o=e.sliceDoc(i,i+JQ),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=100?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+JQ),d=e.sliceDoc(i-JQ,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function XQ(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function ZQ(e,t,n=t.selection.ranges){let r=n.map(e=>qQ(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>YQ(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function QQ(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=qQ(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var $Q=MH.define(),e$=MH.define(),t$=sH.define(),n$=sH.define({combine(e){return ZH(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),r$=mH.define({create(){return S$.empty},update(e,t){let n=t.state.facet(n$),r=t.annotation($Q);if(r){let i=u$.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?d$(o,o.length,n.minDepth,i):_$(o,t.startState.selection),new S$(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(e$);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(IH.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=u$.fromTransaction(t),o=t.annotation(IH.time),s=t.annotation(IH.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new S$(e.done.map(u$.fromJSON),e.undone.map(u$.fromJSON))}});function i$(e={}){return[r$,n$.of(e),FJ.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?o$:e.inputType==`historyRedo`?s$:null;return n?(e.preventDefault(),n(t)):!1}})]}function a$(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(r$,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var o$=a$(0,!1),s$=a$(1,!1),c$=a$(0,!0),l$=a$(1,!0),u$=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&ZV.fromJSON(t.changes),[],t.mapped&&XV.fromJSON(t.mapped),t.startSelection&&Y.fromJSON(t.startSelection),t.selectionsAfter.map(Y.fromJSON))}static fromTransaction(t,n){let r=h$;for(let e of t.startState.facet(t$)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,h$)}static selection(t){return new e(void 0,h$,void 0,void 0,t)}};function d$(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function f$(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function p$(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function m$(e,t){return e.length?t.length?e.concat(t):e:t}var h$=[],g$=200;function _$(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-g$));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),d$(e,e.length-1,1e9,n.setSelAfter(r)))}return[u$.selection([t])]}function v$(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function y$(e,t){if(!e.length)return e;let n=e.length,r=h$;for(;n;){let i=b$(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[u$.selection(r)]:h$}function b$(e,t,n){let r=m$(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):h$,n);if(!e.changes)return u$.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new u$(i,FH.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var x$=/^(input\.type|delete)($|\.)/,S$=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||x$.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,f$(s.changes,t.changes))||r==`input.type.compose`)?d$(o,o.length-1,i.minDepth,new u$(t.changes.compose(s.changes),m$(FH.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,h$)):d$(o,o.length,i.minDepth,t),new e(o,h$,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:h$;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&p$(a[a.length-1],t)?this:new e(_$(this.done,t),this.undone,n,r)}addMapping(t){return new e(y$(this.done,t),y$(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:$Q.of({side:e,rest:v$(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?h$:r.slice(0,r.length-1);return i.mapped&&(n=y$(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:$Q.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}return null}};S$.empty=new S$(h$,h$);var C$=[{key:`Mod-z`,run:o$,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:s$,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:s$,preventDefault:!0},{key:`Mod-u`,run:c$,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:l$,preventDefault:!0}];function w$(e,t){return Y.create(e.ranges.map(t),e.mainIndex)}function T$(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function E$({state:e,dispatch:t},n){let r=w$(e.selection,n);return!r.eq(e.selection,!0)&&(t(T$(e,r)),!0)}function D$(e,t){return Y.cursor(t?e.to:e.from)}function O$(e,t){return E$(e,n=>n.empty?e.moveByChar(n,t):D$(n,t))}function k$(e){return e.textDirectionAt(e.state.selection.main.head)==LW.LTR}var A$=e=>O$(e,!k$(e)),j$=e=>O$(e,k$(e));function M$(e,t){return E$(e,n=>n.empty?e.moveByGroup(n,t):D$(n,t))}var N$=e=>M$(e,!k$(e)),P$=e=>M$(e,k$(e));typeof Intl<`u`&&Intl.Segmenter;function F$(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function I$(e,t,n){let r=sZ(e).resolveInner(t.head),i=n?YY.closedBy:YY.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;F$(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?MQ(e,r.from,1):MQ(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,Y.cursor(s,n?-1:1)}var L$=e=>E$(e,t=>I$(e.state,t,!k$(e))),R$=e=>E$(e,t=>I$(e.state,t,k$(e)));function z$(e,t){return E$(e,n=>{if(!n.empty)return D$(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var B$=e=>z$(e,!1),V$=e=>z$(e,!0);function H$(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(FJ.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function U$(e,t){let n=H$(e),{state:r}=e,i=w$(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):D$(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=FJ.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(T$(r,i),{effects:a}),!0}var W$=e=>U$(e,!1),G$=e=>U$(e,!0);function K$(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=Y.cursor(r.from+n))}return i}var q$=e=>E$(e,t=>K$(e,t,!0)),J$=e=>E$(e,t=>K$(e,t,!1)),Y$=e=>E$(e,t=>K$(e,t,!k$(e))),X$=e=>E$(e,t=>K$(e,t,k$(e))),Z$=e=>E$(e,t=>e.moveToLineBoundary(t,!1,!1)),Q$=e=>E$(e,t=>e.moveToLineBoundary(t,!0,!1));function $$(e,t,n){let r=!1,i=w$(e.selection,t=>{let i=MQ(e,t.head,-1)||MQ(e,t.head,1)||t.head>0&&MQ(e,t.head-1,1)||t.head<e.doc.length&&MQ(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?Y.range(t.anchor,a):Y.cursor(a)});return r?(t(T$(e,i)),!0):!1}var e1=({state:e,dispatch:t})=>$$(e,t,!1);function t1(e,t,n){let r=w$(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=Y.range(e.head,e.anchor));let r=n(e);return Y.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(T$(e.state,r)),!0)}function n1(e,t){return t1(e,t,n=>e.moveByChar(n,t))}var r1=e=>n1(e,!k$(e)),i1=e=>n1(e,k$(e));function a1(e,t){return t1(e,t,n=>e.moveByGroup(n,t))}var o1=e=>a1(e,!k$(e)),s1=e=>a1(e,k$(e)),c1=e=>{let t=!k$(e);return t1(e,t,n=>I$(e.state,n,t))},l1=e=>{let t=k$(e);return t1(e,t,n=>I$(e.state,n,t))};function u1(e,t){return t1(e,t,n=>e.moveVertically(n,t))}var d1=e=>u1(e,!1),f1=e=>u1(e,!0);function p1(e,t){return t1(e,t,n=>e.moveVertically(n,t,H$(e).height))}var m1=e=>p1(e,!1),h1=e=>p1(e,!0),g1=e=>t1(e,!0,t=>K$(e,t,!0)),_1=e=>t1(e,!1,t=>K$(e,t,!1)),v1=e=>{let t=!k$(e);return t1(e,t,n=>K$(e,n,t))},y1=e=>{let t=k$(e);return t1(e,t,n=>K$(e,n,t))},b1=e=>t1(e,!1,t=>Y.cursor(e.lineBlockAt(t.head).from)),x1=e=>t1(e,!0,t=>Y.cursor(e.lineBlockAt(t.head).to)),S1=({state:e,dispatch:t})=>(t(T$(e,{anchor:0})),!0),C1=({state:e,dispatch:t})=>(t(T$(e,{anchor:e.doc.length})),!0),w1=({state:e,dispatch:t})=>(t(T$(e,{anchor:e.selection.main.anchor,head:0})),!0),T1=({state:e,dispatch:t})=>(t(T$(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),E1=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),D1=({state:e,dispatch:t})=>{let n=K1(e).map(({from:t,to:n})=>Y.undirectionalRange(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:Y.create(n),userEvent:`select`})),!0},O1=({state:e,dispatch:t})=>{let n=w$(e.selection,t=>{let n=sZ(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return Y.undirectionalRange(n.from,n.to)}return t});return!n.eq(e.selection)&&(t(T$(e,n)),!0)};function k1(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(T$(n,Y.create(i,i.length-1))),!0)}var A1=e=>k1(e,!1),j1=e=>k1(e,!0),M1=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=Y.create([n.main]):n.main.empty||(r=Y.create([Y.cursor(n.main.head)])),r?(t(T$(e,r)),!0):!1};function N1(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=P1(e,o,!1)):o>i&&(n=`delete.forward`,o=P1(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=P1(e,i,!1),a=P1(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:Y.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?FJ.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function P1(e,t,n){if(e instanceof FJ)for(let r of e.state.facet(FJ.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var F1=(e,t,n)=>N1(e,r=>{let i=r.from,{state:a}=e,o=a.doc.lineAt(i),s,c;if(n&&!t&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,i-o.from))){if(s[s.length-1]==` `)return i-1;let e=_U(s,a.tabSize)%bZ(a)||bZ(a);for(let t=0;t<e&&s[s.length-1-t]==` `;t++)i--;c=i}else c=qV(o.text,i-o.from,t,t)+o.from,c==i&&o.number!=(t?a.doc.lines:1)?c+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(c-o.from,i-o.from))&&(c=qV(o.text,c-o.from,!1,!1)+o.from);return c}),I1=e=>F1(e,!1,!0),L1=e=>F1(e,!0,!1),R1=(e,t)=>N1(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),o=i.charCategorizer(r);for(let e=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=qV(a.text,r-a.from,t)+a.from,c=a.text.slice(Math.min(r,s)-a.from,Math.max(r,s)-a.from),l=o(c);if(e!=null&&l!=e)break;(c!=` `||r!=n.head)&&(e=l),r=s}return r}),z1=e=>R1(e,!1),B1=e=>R1(e,!0),V1=e=>N1(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),H1=e=>N1(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),U1=e=>N1(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),W1=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:RV.of([``,``])},range:Y.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},G1=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:qV(r.text,n-r.from,!1)+r.from,a=n==r.to?n+1:qV(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(i,n))},range:Y.cursor(a)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function K1(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function q1(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of K1(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(Y.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(Y.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:Y.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var J1=({state:e,dispatch:t})=>q1(e,t,!1),Y1=({state:e,dispatch:t})=>q1(e,t,!0);function X1(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of K1(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var Z1=({state:e,dispatch:t})=>X1(e,t,!1),Q1=({state:e,dispatch:t})=>X1(e,t,!0),$1=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(K1(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=w$(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function e0(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=sZ(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(YY.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var t0=r0(!1),n0=r0(!0);function r0(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&e0(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new CZ(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=SZ(s,r);for(c??=_U(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let l=[``,xZ(t,c)];return o&&l.push(xZ(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:RV.of(l)},range:Y.cursor(r+1+l[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function i0(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:Y.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var a0=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new CZ(e,{overrideIndentation:e=>n[e]??-1}),i=i0(e,(t,i,a)=>{let o=SZ(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=xZ(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},o0=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(i0(e,(t,n)=>{n.push({from:t.from,insert:e.facet(yZ)})}),{userEvent:`input.indent`})),!0),s0=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(i0(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=_U(r,e.tabSize),a=0,o=xZ(e,Math.max(0,i-bZ(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),c0=e=>(e.setTabFocusMode(),!0),l0=[{key:`Ctrl-b`,run:A$,shift:r1,preventDefault:!0},{key:`Ctrl-f`,run:j$,shift:i1},{key:`Ctrl-p`,run:B$,shift:d1},{key:`Ctrl-n`,run:V$,shift:f1},{key:`Ctrl-a`,run:Z$,shift:b1},{key:`Ctrl-e`,run:Q$,shift:x1},{key:`Ctrl-d`,run:L1},{key:`Ctrl-h`,run:I1},{key:`Ctrl-k`,run:V1},{key:`Ctrl-Alt-h`,run:z1},{key:`Ctrl-o`,run:W1},{key:`Ctrl-t`,run:G1},{key:`Ctrl-v`,run:G$}],u0=[{key:`ArrowLeft`,run:A$,shift:r1,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:N$,shift:o1,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:Y$,shift:v1,preventDefault:!0},{key:`ArrowRight`,run:j$,shift:i1,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:P$,shift:s1,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:X$,shift:y1,preventDefault:!0},{key:`ArrowUp`,run:B$,shift:d1,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:S1,shift:w1},{mac:`Ctrl-ArrowUp`,run:W$,shift:m1},{key:`ArrowDown`,run:V$,shift:f1,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:C1,shift:T1},{mac:`Ctrl-ArrowDown`,run:G$,shift:h1},{key:`PageUp`,run:W$,shift:m1},{key:`PageDown`,run:G$,shift:h1},{key:`Home`,run:J$,shift:_1,preventDefault:!0},{key:`Mod-Home`,run:S1,shift:w1},{key:`End`,run:q$,shift:g1,preventDefault:!0},{key:`Mod-End`,run:C1,shift:T1},{key:`Enter`,run:t0,shift:t0},{key:`Mod-a`,run:E1},{key:`Backspace`,run:I1,shift:I1,preventDefault:!0},{key:`Delete`,run:L1,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:z1,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:B1,preventDefault:!0},{mac:`Mod-Backspace`,run:H1,preventDefault:!0},{mac:`Mod-Delete`,run:U1,preventDefault:!0}].concat(l0.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),d0=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:L$,shift:c1},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:R$,shift:l1},{key:`Alt-ArrowUp`,run:J1},{key:`Shift-Alt-ArrowUp`,run:Z1},{key:`Alt-ArrowDown`,run:Y1},{key:`Shift-Alt-ArrowDown`,run:Q1},{key:`Mod-Alt-ArrowUp`,run:A1},{key:`Mod-Alt-ArrowDown`,run:j1},{key:`Escape`,run:M1},{key:`Mod-Enter`,run:n0},{key:`Alt-l`,mac:`Ctrl-l`,run:D1},{key:`Mod-i`,run:O1,preventDefault:!0},{key:`Mod-[`,run:s0},{key:`Mod-]`,run:o0},{key:`Mod-Alt-\\`,run:a0},{key:`Shift-Mod-k`,run:$1},{key:`Shift-Mod-\\`,run:e1},{key:`Mod-/`,run:HQ},{key:`Alt-A`,mac:`Ctrl-A`,run:GQ},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:c0}].concat(u0),f0={key:`Tab`,run:o0,shift:s0},p0=class e{constructor(e,t,n,r,i,a,o,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?`!`+this.score:``}`}static start(t,n,r=0){let i=t.parser.context;return new e(t,[],n,r,r,0,[],0,i?new m0(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=r.dynamicPrecedence(n);if(a&&(this.score+=a),t==0){n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let o=this.stack.length-(t-1)*3-(e&262144?6:0),s=o?this.stack[o-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&s==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-s;c>=2e3&&!this.p.parser.nodeSet.types[n]?.isAnonymous&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-l;if(n<r.minRepeatTerm||e&131072){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,s,e,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&this.buffer[e-4]==0&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,t,n,r);else{let i=this.buffer.length;if(i>0&&(this.buffer[i-4]!=0||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:a}=this.p;this.pos=r;let o=a.stateFlag(i,1);!o&&(r>n||t<=a.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(t,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let t=this,n=t.buffer.length;for(n&&t.buffer[n-4]==0&&(n-=4);n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new h0(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>t&1&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(e==null)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(t&393216)){if(t&65536){let n=(t>>19)-i;if(n>1){let r=t&65535,i=this.stack.length-n*3;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(e!=null)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new m0(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},m0=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},h0=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}},Gce=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function g0(e,t=Uint16Array){if(typeof e!=`string`)return e;let n=null;for(let r=0,i=0;r<e.length;){let a=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(t==126){a=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var _0=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},v0=new _0,Kce=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk=``,this.chunkOff=0,this.chunk2=``,this.chunk2Pos=0,this.next=-1,this.token=v0,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(t==null)return-1;if(n=t,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw RangeError(`Token end out of bounds`);this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk=``,this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=v0,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk=``,this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n=``;for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}},y0=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;b0(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};y0.prototype.contextual=y0.prototype.fallback=y0.prototype.extend=!1;var qce=class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e==`string`?g0(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(b0(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(n||r++,i==null)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};qce.prototype.contextual=y0.prototype.fallback=y0.prototype.extend=!1;function b0(e,t,n,r,i,a){let o=0,s=1<<r,{dialect:c}=n.p.parser;scan:for(;(s&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(c.allows(n)&&(t.token.value==-1||t.token.value==n||Jce(n,t.token.value,i,a))){t.acceptToken(n);break}}let r=t.next,l=0,u=e[o+2];if(t.next<0&&u>l&&e[n+u*3-3]==65535){o=e[n+u*3-1];continue scan}for(;l<u;){let i=l+u>>1,a=n+i+(i<<1),s=e[a],c=e[a+1]||65536;if(r<s)u=i;else if(r>=c)l=i+1;else{o=e[a+2],t.advance();continue scan}}break}}function x0(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function Jce(e,t,n,r){let i=x0(n,r,t);return i<0||x0(n,r,e)<i}var S0=typeof process<`u`&&/\bparse\b/.test({}.LOG),C0=null;function w0(e,t,n){let r=e.cursor(nX.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}var Yce=class{constructor(e,t){this.fragments=e,this.minRepeat=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?w0(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?w0(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;if(e<this.safeFrom)return null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],a=this.start[t]+n.positions[r];if(a>e)return this.nextStart=a,null;if(i instanceof rX){let n=a>this.lastRepeatPos&&i.type.id>=this.minRepeat;if(a==e||n){let t=a+i.length,r;if(a>=this.safeFrom&&t<=this.safeTo&&(!(r=i.prop(YY.lookAhead))||t+r<this.fragment.to)&&(n&&(this.lastRepeat=i,this.lastRepeatPos=a),a==e))return i}this.index[t]++,a+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}},Xce=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new _0)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,s=0;for(let r=0;r<i.length;r++){if(!(1<<r&a))continue;let c=i[r],l=this.tokens[r];if((!n||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=a||l.context!=o)&&(this.updateCachedToken(l,c,e),l.mask=a,l.context=o),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),l.value!=0)){let r=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!c.extend&&(n=l,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),!n&&e.pos==this.stream.end&&(n=new _0,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new _0,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){i&1?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:a}=e.p,{data:o}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(i,e?2:1);;s+=3){if(o[s]==65535){if(o[s+1]==1)s=E0(o,s+2);else{r==0&&o[s+1]==2&&(r=this.putAction(E0(o,s+2),t,n,r));break}}o[s]==t&&(r=this.putAction(E0(o,s+1),t,n,r))}return r}},Zce=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Kce(t,r),this.tokens=new Xce(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[p0.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>e.bufferLength*4?new Yce(n,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>t)n.push(o);else if(this.advanceStack(o,n,e))continue;else{r||(r=[],i=[]),r.push(o);let e=this.tokens.getMainToken(o);i.push(e.value,e.end)}break}}if(!n.length){let e=r&&ele(r);if(e)return S0&&console.log(`Finish with `+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw S0&&r&&console.log(`Stuck with token `+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):`none`)),SyntaxError(`No parse at `+t);this.recovering||=5}if(this.recovering&&r){let e=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return S0&&console.log(`Force-finish `+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=this.recovering==1?1:this.recovering*3;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}else if(n.length>1){outer:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue outer}}}}n.length>12&&(n.sort((e,t)=>t.score-e.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}tryReuse(e,t,n,r){if(!n)return null;let i=e.curContext&&e.curContext.tracker.strict,a=i?e.curContext.hash:0;for(;n;){let o=this.parser.nodeSet.types[n.type.id]==n.type?this.parser.getGoto(e.state,n.type.id):-1;if(o>-1&&n.length&&(!i||(n.prop(YY.contextHash)||0)==a))return e.useNode(n,o,t),n;if(n.children.length==0||n.positions[0]>0)break;let s=n.children[0];if(s instanceof rX&&(!r||s.type.id>=this.parser.minRepeatTerm))n=s;else break}return null}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,a=S0?this.stackID(e)+` -> `:``;if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(t)return S0&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(t.type.id)})`),!0}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),S0&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;o<s.length;){let c=s[o++],l=s[o++],u=s[o++],d=o==s.length||!n,f=d?e:e.split(),p=this.tokens.mainToken;if(f.apply(c,l,p?p.start:f.pos,u),S0&&console.log(a+this.stackID(f)+` (via ${c&65536?`reduce of ${i.getName(c&65535)}`:`shift`} for ${i.getName(l)} @ ${r}${f==e?``:`, split`})`),d)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return T0(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=t[a<<1],c=t[(a<<1)+1],l=S0?this.stackID(o)+` -> `:``;if(o.deadEnd&&(i||(i=!0,o.restart(),S0&&console.log(l+this.stackID(o)+` (restarted)`),this.advanceFully(o,n))))continue;let u=o.split(),d=l;for(let e=0;e<10&&u.forceReduce()&&(S0&&console.log(d+this.stackID(u)+` (via force-reduce)`),!this.advanceFully(u,n));e++)S0&&(d=this.stackID(u)+` -> `);for(let e of o.recoverByInsert(s))S0&&console.log(l+this.stackID(e)+` (via recover-insert)`),this.advanceFully(e,n);this.stream.end>o.pos?(c==o.pos&&(c++,s=0),o.recoverByDelete(s,c),S0&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),T0(o,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(e){return e.close(),rX.build({buffer:Gce.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(C0||=new WeakMap).get(e);return t||C0.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function T0(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var Qce=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},$ce=class e extends wX{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(` `);this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push(``);let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),r=[];for(let e=0;e<t.length;e++)r.push([]);function i(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];typeof e==`string`&&(e=YY[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)i(r,e,t[n++]);else{let a=t[n+-r];for(let o=-r;o>0;o--)i(t[n++],e,a);n++}}}this.nodeSet=new $Y(t.map((t,i)=>QY.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:i==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=KY;let a=g0(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(D0),this.states=g0(e.states,Uint32Array),this.data=g0(e.stateData),this.goto=g0(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>typeof e==`number`?new y0(a,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new Zce(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],a=t&1,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),a;;i+=3){if((a=n[i])==65535){if(n[i+1]==1)a=n[i=E0(n,i+2)];else if(n[i+1]==2)return E0(n,i+2);else break}if(a==t||a==0)return E0(n,i+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);r==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E0(this.data,n+2);else break}r=t(E0(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E0(this.data,n+2);else break}if(!(this.data[n+2]&1)){let e=this.data[n+1];t.some((t,n)=>n&1&&t==e)||t.push(this.data[n],e)}}return t}configure(t){let n=Object.assign(Object.create(e.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let e=this.topRules[t.top];if(!e)throw RangeError(`Invalid top rule name ${t.top}`);n.top=e}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(e=>{let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((e,r)=>{let i=t.specializers.find(t=>t.from==e.external);if(!i)return e;let a=Object.assign(Object.assign({},e),{external:i.to});return n.specializers[r]=D0(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(` `)){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;(i=this.data[n++])!=65535;)(r||=new Uint8Array(this.maxTerm+1))[i]=1;return new Qce(e,n,r)}static deserialize(t){return new e(t)}};function E0(e,t){return e[t]|e[t+1]<<16}function ele(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||e!=null&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function D0(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}var tle=MX({String:X.string,Number:X.number,"True False":X.bool,PropertyName:X.propertyName,Null:X.null,", :":X.separator,"[ ]":X.squareBracket,"{ }":X.brace}),nle=$ce.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:`#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O`,goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:`⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array`,maxTerm:25,nodeProps:[[`isolate`,-2,6,11,``],[`openedBy`,7,`{`,14,`[`],[`closedBy`,8,`}`,15,`]`]],propSources:[tle],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),rle=oZ.define({name:`json`,parser:nle.configure({props:[wZ.add({Object:PZ({except:/^\s*\}/}),Array:PZ({except:/^\s*\]/})}),RZ.add({"Object Array":zZ})]}),languageData:{closeBrackets:{brackets:[`[`,`{`,`"`]},indentOnInput:/^\s*[\}\]]$/}}),ile=8,ale=32,ole=48,O0=8;function sle({side:e,span:t,floor:n,ceil:r,reset:i,onReset:a,onSpan:o,onKeep:s,onShut:c,label:l,bar:u,step:d=ile,...f}){let p=e===`top`,m=t=>e===`start`?NP(t)?`right`:`left`:e===`end`?NP(t)?`left`:`right`:e,h=b.useRef(1),g=b.useRef(0),_=b.useRef(`none`),v=b.useRef(t),y=b.useRef(t),x=b.useRef(0),[S,C]=b.useState(!1),[w,T]=b.useState(!1),[E,D]=b.useState(!1);b.useEffect(()=>()=>cancelAnimationFrame(x.current),[]);let O=e=>Math.round(Math.min(r,Math.max(n,e))),k=e=>p?e.clientY:e.clientX,A=e=>{let n=e?.parentElement?.getBoundingClientRect();return n?p?n.height:n.width:t},j=e=>{o(e),s?.(e)},M=()=>{_.current=`none`,cancelAnimationFrame(x.current),x.current=0,D(!1)},ee=()=>{if(_.current===`none`)return;let e=_.current===`moved`;M(),e&&j(v.current)};b.useEffect(()=>{if(!E||typeof window>`u`)return;let e=e=>{e.key===`Escape`&&_.current!==`none`&&(e.preventDefault(),M(),o(y.current))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)});let te=p?{l:0,r:0,b:0,height:O0,justify:`center`}:{t:0,b:0,width:O0,items:`center`,...e===`start`?{insetInlineEnd:0}:e===`end`?{insetInlineStart:0}:e===`left`?{r:0}:{l:0}};return(0,R.jsx)(B,{role:`separator`,"aria-orientation":p?`horizontal`:`vertical`,"aria-label":l,"aria-valuenow":Math.round(t),"aria-valuemin":n,"aria-valuemax":r,tabIndex:0,"data-slot":`grip`,"data-side":e,"data-moving":E?``:void 0,position:`absolute`,...te,z:10,cursor:p?`row-resize`:`col-resize`,outlineWidth:0,focusVisibleStyle:{outlineWidth:0},style:{touchAction:`none`},onPointerEnter:()=>C(!0),onPointerLeave:()=>C(!1),onFocus:e=>T(e.currentTarget.matches(`:focus-visible`)),onBlur:()=>T(!1),onPointerDown:e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture?.(e.pointerId);let t=A(e.currentTarget);h.current=m(e.currentTarget)===`right`?-1:1,g.current=k(e)-h.current*t,v.current=O(t),y.current=O(t),_.current=`held`,D(!0)},onPointerMove:e=>{if(_.current===`none`)return;_.current=`moved`;let t=h.current*(k(e)-g.current);if(c&&t<n-ole){M(),e.currentTarget.releasePointerCapture?.(e.pointerId),c();return}v.current=O(t),!x.current&&(x.current=requestAnimationFrame(()=>{x.current=0,o(v.current)}))},onPointerUp:ee,onPointerCancel:ee,onDoubleClick:()=>a?a():j(O(i??t)),onKeyDown:e=>{let t=e.shiftKey?ale:d,i=A(e.currentTarget),a=m(e.currentTarget),o=a===`left`?`ArrowRight`:a===`right`?`ArrowLeft`:`ArrowDown`,s=a===`left`?`ArrowLeft`:a===`right`?`ArrowRight`:`ArrowUp`,l=e.key===o?i+t:e.key===s?i-t:e.key===`Home`?n:e.key===`End`?r:null;if(l!==null){if(e.preventDefault?.(),c&&l<n)return c();j(O(l))}},...f,children:u?(0,R.jsx)(B,{"data-slot":`grip-bar`,...(()=>{let[e,t]=u===`edge`?[4,48]:[3,32];return p?{height:e,width:t}:{width:e,height:t}})(),self:`center`,rounded:`$10`,bg:E?`$rim`:w?`$outlineColor`:S?`$hint`:`transparent`,[p?`scaleX`:`scaleY`]:E||S||w?1.2:1,animation:`quickest`,pointerEvents:`none`}):(0,R.jsx)(B,{...p?{height:2,width:`100%`}:{width:2,height:`100%`},rounded:1,bg:w||E?`$outlineColor`:S?`$rim`:`transparent`,pointerEvents:`none`})})}var cle=`
71
- \r`,lle=`"\\/bfnrt`,k0=/-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/y,A0=/[0-9a-fA-F]{4}/y,ule=/^(\{|\[\s*([[{"\]\-\d]|true\b|false\b|null\b|$))/,j0=e=>e===void 0?`end of input`:e===`
72
- `?`line break`:`character '${e}'`;function dle(e){let t=0,n=(e,n=t)=>{throw{at:n,message:e}},r=()=>{for(;t<e.length&&cle.includes(e[t]);)t++},i=()=>{for(t++;t<e.length;){let r=e[t];if(r===`"`){t++;return}if(r===`\\`){let r=e[t+1];if(r===`u`){A0.lastIndex=t+2,A0.test(e)||n(`Expected four hex digits after \\u`,t+2),t+=6;continue}(r===void 0||!lle.includes(r))&&n(`Invalid escape '\\${r??``}' in string`,t+1),t+=2;continue}r<` `&&n(r===`
73
- `?`Unterminated string`:`Control character in string`),t++}n(`Unterminated string`)},a=()=>{k0.lastIndex=t;let r=k0.exec(e);(!r||r[0]===`-`)&&n(`Invalid number`),t+=r[0].length},o=a=>{r(),e[t]!==`"`&&n(a&&e[t]===`}`?`Trailing comma before '}'`:`Expected a double-quoted property name, found ${j0(e[t])}`),i(),r(),e[t]!==`:`&&n(`Expected ':' after property name, found ${j0(e[t])}`),t++},s=[],c=!0;try{for(;;){if(r(),c){let l=e[t];if(l===`{`||l===`[`){if(t++,r(),e[t]===(l===`{`?`}`:`]`)){t++,c=!1;continue}s.push(l),l===`{`&&o(!1);continue}if(l===`"`)i();else if(l===`-`||l!==void 0&&l>=`0`&&l<=`9`)a();else{let r=[`true`,`false`,`null`].find(n=>e.startsWith(n,t));r||n(`Unexpected ${j0(l)}`),t+=r.length}c=!1;continue}let l=s.at(-1);if(!l)return t<e.length&&n(`Unexpected ${j0(e[t])} after the JSON value`),null;if(e[t]===`,`){t++,l===`{`?o(!0):(r(),e[t]===`]`&&n(`Trailing comma before ']'`)),c=!0;continue}if(e[t]===(l===`{`?`}`:`]`)){t++,s.pop();continue}n(l===`{`?`Expected ',' or '}' after property value, found ${j0(e[t])}`:`Expected ',' or ']' after array element, found ${j0(e[t])}`)}}catch(e){return e}}function fle(e,t){let n=1,r=0;for(let i=0;i<t&&i<e.length;i++)e[i]===`
74
- `&&(n++,r=i+1);return{line:n,column:t-r+1}}function M0(e,t={}){let n=e.trim();if(!n)return{kind:`empty`};try{return{kind:`json`,value:JSON.parse(e)}}catch(r){if(t.text&&!ule.test(n))return{kind:`text`,value:e};let i=dle(e)??{at:0,message:r instanceof Error?r.message:String(r)};return{kind:`error`,message:i.message,at:i.at,...fle(e,i.at)}}}function ple(e){let t=M0(e);return t.kind===`json`?JSON.stringify(t.value,null,2):null}var mle=[`javascript`,`typescript`,`python`,`java`,`csharp`,`cpp`,`c`,`go`,`rust`,`ruby`,`php`,`swift`,`kotlin`,`dart`,`html`,`css`,`scss`,`json`,`xml`,`yaml`,`sql`,`markdown`,`shell`,`plaintext`],N0={javascript:`JavaScript`,typescript:`TypeScript`,python:`Python`,java:`Java`,csharp:`C#`,cpp:`C++`,c:`C`,go:`Go`,rust:`Rust`,ruby:`Ruby`,php:`PHP`,swift:`Swift`,kotlin:`Kotlin`,dart:`Dart`,html:`HTML`,css:`CSS`,scss:`SCSS`,json:`JSON`,xml:`XML`,yaml:`YAML`,sql:`SQL`,markdown:`Markdown`,shell:`Shell`,plaintext:cN(`Plain Text`)},hle=4096,gle=FJ.theme({"&":{color:`var(--ink)`,backgroundColor:`transparent`},"&.cm-focused":{outline:`none`},".cm-scroller":{fontFamily:`var(--font-mono, 'Zen Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`,lineHeight:`1.6`,overflow:`auto`,flex:`1 1 auto`,height:`auto`,minHeight:`0`},".cm-content":{padding:`8px 0`,caretColor:`var(--ink)`},".cm-line":{padding:`0 12px`},".cm-gutters":{backgroundColor:`transparent`,color:`var(--codeDim)`,border:`none`,borderInlineEnd:`1px solid var(--edge)`},".cm-lineNumbers .cm-gutterElement":{padding:`0 10px 0 12px`,minWidth:`28px`},".cm-activeLine":{backgroundColor:`var(--panel)`},".cm-activeLineGutter":{backgroundColor:`transparent`,color:`var(--quiet)`},".cm-cursor, .cm-dropCursor":{borderInlineStartColor:`var(--ink)`},".cm-selectionBackground, &.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, ::selection":{backgroundColor:`var(--raised)`},".cm-matchingBracket, &.cm-focused .cm-matchingBracket":{backgroundColor:`var(--raised)`,color:`inherit`,outline:`none`},".cm-nonmatchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`transparent`},".cm-placeholder":{color:`var(--codeDim)`},".cm-foldGutter .cm-gutterElement":{padding:`0 4px`,color:`var(--codeDim)`,cursor:`pointer`},".cm-foldGutter .cm-gutterElement:hover":{color:`var(--ink)`},".cm-foldPlaceholder":{backgroundColor:`var(--raised)`,border:`1px solid var(--edge)`,borderRadius:`4px`,color:`var(--codePunctuation)`,padding:`0 4px`,margin:`0 2px`,cursor:`pointer`},".cm-foldCount":{color:`var(--codeComment)`},".cm-fault":{backgroundColor:`var(--state-error-bg, rgb(239 68 68 / .1))`},".cm-gutterElement.cm-fault":{color:`var(--bad)`},".cm-fault-at":{textDecoration:`underline wavy var(--bad)`,textDecorationSkipInk:`none`,textUnderlineOffset:`3px`}}),P0=e=>({color:`var(--code${e[0].toUpperCase()}${e.slice(1)})`,...KB[e]}),_le=fQ.define([{tag:X.propertyName,...P0(`key`)},{tag:X.string,...P0(`string`)},{tag:X.number,...P0(`number`)},{tag:X.bool,...P0(`boolean`)},{tag:X.null,...P0(`null`)},{tag:[X.punctuation,X.separator,X.brace,X.squareBracket],...P0(`punctuation`)},{tag:X.comment,...P0(`comment`)},{tag:X.keyword,...P0(`keyword`)}]),vle=new _Z(rle.configure({props:[RZ.add({"Object Array":e=>({from:e.from,to:e.to})})]})),yle=(e,t)=>t===1?e(`1 key`):e(`{n} keys`,{n:t}),ble=(e,t)=>t===1?e(`1 item`):e(`{n} items`,{n:t});function xle(e,t,n){let r=sZ(e).resolveInner(t.from,1);for(;r.parent&&r.name!==`Object`&&r.name!==`Array`;)r=r.parent;if(r.name===`Object`)return{open:`{`,close:`}`,count:yle(n,r.getChildren(`Property`).length)};let i=0;for(let e=r.firstChild;e;e=e.nextSibling)!/^[[\],]$/.test(e.name)&&!e.type.isError&&(i+=1);return{open:`[`,close:`]`,count:ble(n,i)}}var Sle=e=>iQ({preparePlaceholder:(t,n)=>xle(t,n,e),placeholderDOM:(t,n,r)=>{let i=document.createElement(`span`);i.className=`cm-foldPlaceholder`,i.title=e(`Unfold`),i.setAttribute(`aria-label`,e(`Folded, {count}`,{count:r.count})),i.textContent=`${r.open}…${r.close}`;let a=document.createElement(`span`);return a.className=`cm-foldCount`,a.textContent=` ${r.count}`,i.append(a),i.onclick=n,i}}),Cle=2,wle=(e,t)=>{let n=0;for(let r of e)if(r===` `)n+=1;else if(r===` `)n+=t-n%t;else break;return n},F0=new Map,Tle=e=>{let t=F0.get(e);return t||(t=$U.line({attributes:{style:`padding-inline-start: calc(${e}ch + 12px); text-indent: -${e}ch`}}),F0.set(e,t)),t},Ele=TG.fromClass(class{decorations;constructor(e){this.decorations=this.build(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.build(e.view))}build(e){let t=new oU;for(let{from:n,to:r}of e.visibleRanges)for(let i=n;i<=r;){let n=e.state.doc.lineAt(i);t.add(n.from,n.from,Tle(wle(n.text,e.state.tabSize)+Cle)),i=n.to+1}return t.finish()}},{decorations:e=>e.decorations}),I0=MH.define(),Dle=new class extends bY{elementClass=`cm-fault`},Ole=$U.line({class:`cm-fault`}),kle=$U.mark({class:`cm-fault-at`});function L0(e,t){let n=M0(e.doc.toString(),{text:t});if(n.kind!==`error`)return{check:n,marks:$U.none,gutter:rU.empty};let r=Number.isFinite(n.at)?Math.min(n.at,e.doc.length):0,i=e.doc.lineAt(r),a=Math.min(r+1,i.to),o=[Ole.range(i.from),...a>r?[kle.range(r,a)]:[]];return{check:n,marks:$U.set(o,!0),gutter:rU.of([Dle.range(i.from)])}}var Ale=e=>mH.define({create:t=>L0(t,e),update:(t,n)=>n.docChanged?L0(n.state,e):t,provide:e=>[FJ.decorations.from(e,e=>e.marks),xY.from(e,e=>e.gutter)]}),jle=e=>typeof e==`number`?`${e}px`:e;function Mle({value:e,defaultValue:t=``,language:n=`javascript`,height:r,minHeight:i=96,maxHeight:a=480,resizable:o=r===void 0,allowText:s=!1,onChange:c,onCheck:l,onMount:u,readOnly:d=!1,lineNumbers:f=!0,wordWrap:p=`on`,fontSize:m=14,placeholder:h,showCopyButton:g=!0,showFormatButton:_,showLanguageSelector:v=!0,availableLanguages:y=mle,label:x,variant:S,title:C,actions:w,autoHeight:T=!1,...E}){let{t:D}=_N(),O=x??D(`Code`),k=b.useMemo(()=>Sle(D),[D]),A=S??(C!==void 0||w!==void 0?`with-header`:`default`),j=A===`with-header`,[M,ee]=b.useState(n),[te,ne]=b.useState(e??t),[N,P]=b.useState(null),[re,ie]=b.useState(!1),ae=b.useRef(null),oe=b.useRef([]),se=b.useRef(null),[ce,le]=b.useState(null),ue=b.useRef(void 0),de=b.useRef({onChange:c,onCheck:l});de.current={onChange:c,onCheck:l};let fe=b.useMemo(()=>({language:new yH,gutter:new yH,wrap:new yH,edit:new yH}),[]),pe=M===`json`,me=b.useMemo(()=>Ale(s),[s]),he=b.useRef({field:me});he.current.field=me;let ge=()=>pe?[vle,me,k,uQ()]:[],F=()=>f?[VY(),GY()]:[],_e=()=>p===`off`?[]:[FJ.lineWrapping,Ele],I=()=>[XH.readOnly.of(d),FJ.editable.of(!d)],ve=e=>{let t=e.field(he.current.field,!1);t!==he.current.seen&&(he.current.seen=t,P(t?t.check:null),t&&de.current.onCheck?.(t.check))},ye=b.useCallback(()=>{let e=se.current;if(!e||e.state.readOnly)return!1;let t=e.state.doc.toString(),n=ple(t);return n===null||n===t?!1:(e.dispatch({changes:{from:0,to:t.length,insert:n}}),!0)},[]);b.useEffect(()=>{let n=ae.current;if(!n)return;let r=FJ.updateListener.of(e=>{if(e.docChanged&&!e.transactions.some(e=>e.annotation(I0))){let t=e.state.doc.toString();ne(t),de.current.onChange&&(oe.current=[...oe.current.slice(-31),t]),de.current.onChange?.(t)}ve(e.state)}),i=new FJ({parent:n,state:XH.create({doc:e??t,extensions:[fe.gutter.of(F()),i$(),cY(),IZ(),OQ(),hY(),gQ(_le),WJ.of([{key:`Shift-Alt-f`,run:ye},f0,...tQ,...d0,...C$,{key:`Escape`,run:e=>(e.contentDOM.blur(),!0)}]),fe.language.of(ge()),fe.wrap.of(_e()),fe.edit.of(I()),h?yY(h):[],FJ.contentAttributes.of({"aria-label":O,"data-slot":`code-editor-content`}),gle,r]})});return se.current=i,ve(i.state),u?.(i),()=>{i.destroy(),se.current=null,clearTimeout(ue.current)}},[]),b.useEffect(()=>{se.current?.dispatch({effects:[fe.language.reconfigure(ge()),fe.gutter.reconfigure(F()),fe.wrap.reconfigure(_e()),fe.edit.reconfigure(I())]})},[pe,me,k,f,p,d]),b.useEffect(()=>{let t=se.current;if(!t||e===void 0)return;let n=oe.current.indexOf(e);if(n!==-1){oe.current=oe.current.slice(n+1);return}oe.current=[];let r=t.state.doc.toString();e!==r&&(t.dispatch({changes:{from:0,to:r.length,insert:e},annotations:I0.of(!0)}),ne(e))},[e]),b.useEffect(()=>{let e=se.current?.dom;if(!e)return;e.style.fontSize=`${m}px`;let t=ce===null?r===void 0?``:jle(r):`${ce}px`;e.style.height=t,e.style.minHeight=t?``:`${i}px`,e.style.maxHeight=t||T?``:`${a}px`,se.current?.requestMeasure()},[ce,r,i,a,T,m]);let be=b.useCallback(async()=>{try{await navigator.clipboard.writeText(te),ie(!0),clearTimeout(ue.current),ue.current=setTimeout(()=>ie(!1),2e3),nR.success(D(`Code copied to clipboard`))}catch{nR.error(D(`Failed to copy code`))}},[te,D]),xe=typeof r==`string`&&r.endsWith(`%`),L=_??(pe&&!d),Se=j||v||g||L,Ce=pe&&N!==null;return(0,R.jsxs)(B,{...q(`code-editor`),"data-variant":A,borderWidth:A===`borderless`?0:1,borderColor:`$borderColor`,rounded:A===`borderless`?0:`$3`,overflow:`hidden`,bg:`$background`,focusWithinStyle:A===`borderless`?void 0:{borderColor:`$outlineColor`},...E,children:[Se&&(0,R.jsxs)(V,{...q(j?`code-editor-header`:`code-editor-toolbar`),items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:`$2`,borderBottomWidth:1,borderColor:`$borderColor`,bg:`$panel`,px:`$2`,py:j?0:`$1`,...j?{minH:40}:null,children:[j?(0,R.jsx)(H,{...q(`code-editor-title`),size:`$2`,fontWeight:`500`,color:`$hint`,px:`$1`,numberOfLines:1,flex:1,minW:0,children:C??O}):null,v?(0,R.jsxs)(OL,{value:M,onValueChange:ee,children:[(0,R.jsx)(AL,{...q(`code-editor-language-trigger`),width:`auto`,minHeight:32,borderWidth:0,bg:`transparent`,gap:`$1.5`,px:`$2`,children:(0,R.jsx)(H,{size:`$1`,fontFamily:`$mono`,children:N0[M]?D(N0[M]):M})}),(0,R.jsx)(FL,{...q(`code-editor-language-content`),children:y.map(e=>(0,R.jsx)(jL,{value:e,children:N0[e]?D(N0[e]):e},e))})]}):(0,R.jsx)(H,{...q(`code-editor-language`),size:`$1`,fontFamily:`$mono`,color:`$soft`,px:`$2`,children:N0[M]?D(N0[M]):M}),(0,R.jsxs)(V,{items:`center`,justify:`flex-end`,flexWrap:`wrap`,gap:j?`$2`:`$1`,shrink:1,minW:0,children:[L&&(0,R.jsxs)(sF,{...q(`code-editor-format-button`),variant:`ghost`,size:`sm`,disabled:N?.kind!==`json`,onClick:ye,children:[(0,R.jsx)(Iae,{size:14}),D(`Format`)]}),g&&(0,R.jsxs)(sF,{...q(`code-editor-copy-button`),variant:`ghost`,size:`sm`,disabled:!te,onClick:be,children:[re?(0,R.jsx)(cM,{size:14}):(0,R.jsx)(Yae,{size:14}),D(re?`Copied!`:`Copy`)]}),w]})]}),(0,R.jsxs)(B,{position:`relative`,...xe&&{flex:1,minH:0},children:[(0,R.jsx)(B,{ref:ae,...q(`code-editor-body`),...AP,...xe&&{flex:1,minH:0}}),o&&(0,R.jsx)(sle,{side:`top`,span:ce??i,floor:i,ceil:hle,onSpan:le,onReset:()=>le(null),label:D(`Resize {label}`,{label:O}),b:-4})]}),Ce&&(0,R.jsx)(V,{...q(`code-editor-footer`),items:`center`,justify:`space-between`,gap:`$2`,minH:28,px:`$3`,py:`$1`,borderTopWidth:1,borderColor:`$borderColor`,bg:`$panel`,children:(0,R.jsx)(Nle,{check:N})})]})}function Nle({check:e}){let{t}=_N(),n=e?.kind===`error`,r=e===null?``:e.kind===`error`?t(`Line {line}, column {column}: {message}`,{line:e.line,column:e.column,message:e.message}):e.kind===`text`?t(`Plain text`):e.kind===`empty`?t(`Empty`):t(`Valid JSON`);return(0,R.jsxs)(V,{...q(`code-editor-status`),"aria-live":`polite`,items:`center`,gap:`$1.5`,flex:1,minW:0,children:[n?(0,R.jsx)(Hae,{size:14,color:`$bad`}):e?.kind===`text`?(0,R.jsx)(xoe,{size:14,color:`$soft`}):e?.kind===`json`?(0,R.jsx)(Uae,{size:14,color:`$soft`}):null,(0,R.jsx)(H,{...q(`code-editor-status-text`),"data-kind":e?.kind,size:`$1`,fontFamily:`$mono`,color:n?`$bad`:`$soft`,numberOfLines:2,children:r})]})}var Ple=e=>XM(e||`en`),R0=e=>ZM(e||`en`),Fle=e=>e&&e!==`en`?e:`en`,Ile={active:!1,locale:`en-US`,dir:`ltr`,messages:{},t:(e,t)=>aN({},e,t),format:uN(`en-US`)},z0=(0,b.createContext)(Ile),Lle=(e,t)=>({active:!0,locale:e,dir:R0(e),messages:t,t:(e,n)=>aN(t,e,n),format:uN(e)});function Rle(){let e=(0,b.useContext)(z0);return e.active?{active:!0,locale:e.locale,dir:e.dir}:{active:!1,locale:`en-US`,dir:`ltr`}}var B0=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]],zle={year:`y`,month:`mo`,week:`w`,day:`d`,hour:`h`,minute:`m`,second:`s`},Ble=e=>{let t=Math.abs(e);for(let[n,r]of B0)if(t>=r||n===`second`){let i=`${Math.floor(t/r)}${zle[n]}`;return e<0?`in ${i}`:i}return`0s`},Vle=(e,t)=>{if(e<0){let n=-e;return n<60?t(`in a moment`):n<120?t(`in 1 minute`):n<3600?t(`in {n} minutes`,{n:Math.floor(n/60)}):n<7200?t(`in 1 hour`):n<86400?t(`in {n} hours`,{n:Math.floor(n/3600)}):n<172800?t(`tomorrow`):n<604800?t(`in {n} days`,{n:Math.floor(n/86400)}):n<1209600?t(`in 1 week`):n<2592e3?t(`in {n} weeks`,{n:Math.floor(n/604800)}):n<5184e3?t(`in 1 month`):n<31536e3?t(`in {n} months`,{n:Math.floor(n/2592e3)}):n<63072e3?t(`in 1 year`):t(`in {n} years`,{n:Math.floor(n/31536e3)})}return e<60?t(`just now`):e<120?t(`1 minute ago`):e<3600?t(`{n} minutes ago`,{n:Math.floor(e/60)}):e<7200?t(`1 hour ago`):e<86400?t(`{n} hours ago`,{n:Math.floor(e/3600)}):e<172800?t(`1 day ago`):e<604800?t(`{n} days ago`,{n:Math.floor(e/86400)}):e<1209600?t(`1 week ago`):e<2592e3?t(`{n} weeks ago`,{n:Math.floor(e/604800)}):e<5184e3?t(`1 month ago`):e<31536e3?t(`{n} months ago`,{n:Math.floor(e/2592e3)}):e<63072e3?t(`1 year ago`):t(`{n} years ago`,{n:Math.floor(e/31536e3)})},Hle=(e,t)=>{let n=new Intl.RelativeTimeFormat(t,{numeric:`auto`,style:`long`});for(let[t,r]of B0)if(Math.abs(e)>=r||t===`second`){let i=Math.round(e/r)*-1;return n.format(i,t)}return n.format(0,`second`)},V0=(e,t,n,r)=>{let i=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t===`short`?Ble(i):t===`long`?Hle(i,r):Vle(i,n)},Ule=z(H,{name:`RelativeTime`,render:`time`});function Wle({date:e,format:t=`auto`,updateInterval:n=6e4,...r}){let{t:i}=_N(),{active:a,locale:o}=Rle(),s=a?o:void 0,[c,l]=b.useState(()=>V0(e,t,i,s));return b.useEffect(()=>{l(V0(e,t,i,s));let r=setInterval(()=>l(V0(e,t,i,s)),n);return()=>clearInterval(r)},[e,t,n,i,s]),(0,R.jsx)(Ule,{"data-slot":`relative-time`,"data-format":t,dateTime:new Date(e).toISOString(),...r,children:c})}var Gle=(0,b.createContext)(`measure-on-hover`),Kle=e=>{let t=e;return!t||typeof t.scrollWidth!=`number`?!1:t.scrollWidth>(t.clientWidth??0)||(t.scrollHeight??0)>(t.clientHeight??0)},qle=500,Jle=300;function H0({text:e,lineClamp:t,tooltipContent:n,tooltipDelay:r=qle,tooltipPlace:i=`bottom`,isTooltipMultiline:a=!1,alwaysShowTooltip:o=!1,isFocusable:s=!1,...c}){let l=(0,b.useContext)(Gle),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(!1),m=(0,b.useRef)(null),h=(0,b.useRef)(null),g=(0,b.useRef)(!1);(0,b.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]);let _=t&&Number.isInteger(t)&&t>0?t:1,v=t=>(0,R.jsx)(H,{...q(`truncated-text`),numberOfLines:_,maxW:`100%`,minW:0,..._>1?{style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`}}:null,...c,...t,children:e});if(l===`disabled`&&!o)return v({});let y=e=>{m.current=e;let t=Kle(e);return p(t),t},x=(e,t)=>{h.current&&clearTimeout(h.current);let n=l===`measure-on-hover`?y(e):(m.current=e,!1);h.current=setTimeout(()=>{let e=l===`measure-on-open`?y(m.current):n;(o||e)&&d(!0)},t)},S=()=>{h.current&&clearTimeout(h.current),h.current=null,g.current||d(!1)};return(0,R.jsxs)(TP,{open:u,onOpenChange:e=>!e&&d(!1),placement:i,children:[(0,R.jsx)(vO.Anchor,{asChild:!0,children:v({onPointerEnter:e=>x(e?.currentTarget,r),onPointerLeave:S,onFocus:e=>{g.current=!0,x(e?.currentTarget,0)},onBlur:()=>{g.current=!1,S()},...s?{tabIndex:0,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`}}:null,...f?{cursor:`pointer`}:null})}),(0,R.jsx)(OP,{maxW:Jle,children:a&&typeof(n??e)==`string`?(0,R.jsx)(H,{size:`$1`,style:{whiteSpace:`pre-wrap`},children:n??e}):n??e})]})}var Yle=20,Xle=14,Zle=(e,t)=>{if(!(0,b.isValidElement)(e))return e;let n=e.props;return(0,b.cloneElement)(e,{...n.size==null?{size:Xle}:null,...n.color==null?{color:t}:null})};function U0({color:e=`gray`,variant:t=`soft`,weight:n=`regular`,startIcon:r,endElement:i,truncate:a=!0,borderStyle:o=`solid`,onPress:s,href:c,disabled:l=!1,children:u,style:d,...f}){let p=e===`transparent`,m=pF(p?`gray`:e),{style:h,tone:g}=mF(m,[3,11]),_=p?`$aside`:t===`solid`?`$background`:g(11),v=p||t===`outline`||t===`ghost`?`transparent`:g(t===`solid`?11:3),y={size:`$2`,fontWeight:n===`medium`?`500`:void 0,color:_},b=!l&&(s!=null||c!=null);return(0,R.jsxs)(V,{...q(`tag`),"data-color":p?`transparent`:m,"data-variant":t,...c==null?s==null?{render:`span`}:{...hF(l?void 0:s)}:{render:`a`,href:c},...l?{"aria-disabled":!0}:null,display:`inline-flex`,self:`flex-start`,items:`center`,gap:`$1`,height:Yle,px:`$2`,maxW:`100%`,minW:0,rounded:`$xs`,bg:v,...t===`outline`?{borderWidth:1,borderColor:`$rim`,borderStyle:o}:null,overflow:`hidden`,opacity:l?.5:1,cursor:l?`not-allowed`:b?`pointer`:void 0,...b?{focusVisibleStyle:gF}:null,style:{...h,...d},...f,children:[r?Zle(r,_):null,typeof u==`string`||typeof u==`number`?a?(0,R.jsx)(H0,{text:String(u),...y}):(0,R.jsx)(H,{...y,children:u}):u,i?(0,R.jsx)(V,{...q(`tag-end`),shrink:0,items:`center`,children:i}):null]})}var W0={sm:20,md:24},Qle={ghost:{rest:`transparent`,hover:`$hover`,down:`$raised`},soft:{rest:`$hover`,hover:`$raised`,down:`$rim`},solid:{rest:`$raised`,hover:`$rim`,down:`$bound`}};function G0({label:e,size:t=`sm`,variant:n=`ghost`,color:r=`primary`,shape:i=`square`,weight:a=`regular`,startElement:o,endElement:s,endElementDivider:c=!1,truncate:l=!0,tooltipContent:u,onPress:d,href:f,clickable:p,disabled:m=!1,children:h,...g}){let _=Qle[n],v=!m&&(p??(d!=null||f!=null)),y={size:`$2`,fontWeight:a===`medium`?`500`:void 0,color:m?`$hush`:r===`secondary`?`$aside`:`$ink`},b=e??h;return(0,R.jsxs)(V,{...q(`chip`),"data-size":t,"data-variant":n,...f!=null&&!m?{render:`a`,href:f}:d==null?null:hF(m?void 0:d),...m?{"aria-disabled":!0}:null,display:`inline-flex`,self:`flex-start`,items:`center`,gap:`$1`,height:W0[t],px:`$1`,maxW:`100%`,minW:0,rounded:i===`round`?`$10`:`$xs`,bg:_.rest,select:`none`,cursor:m?`not-allowed`:v?`pointer`:void 0,...v?{hoverStyle:{bg:_.hover},pressStyle:{bg:_.down},focusVisibleStyle:gF,...CN(W0[t],44,`y`)}:null,...g,children:[o?(0,R.jsx)(V,{...q(`chip-start`),shrink:0,items:`center`,children:o}):null,typeof b==`string`||typeof b==`number`?l?(0,R.jsx)(H0,{text:String(b),tooltipContent:u,...y}):WM(b,void 0,y):b,s?(0,R.jsx)(V,{...q(`chip-end`),shrink:0,items:`center`,self:`stretch`,...c?{borderInlineStartWidth:1,borderColor:`$borderColor`,paddingInlineStart:`$1`}:null,children:s}):null]})}var K0=4,q0=24,J0=220;function $le(e,t,n=1/0,r=K0,i=q0){let a=Math.min(e.length,n);if(a===0)return 0;let o=0;for(let n=0;n<a;n++){let a=o+(n>0?r:0)+e[n];if(a+(n+1<e.length?r+i:0)>t)return Math.max(1,n);o=a}return a}function eue({children:e,maxInlineCount:t,showOverflowCount:n=`hover`,overflowLabel:r,open:i,defaultOpen:a=!1,onOpenChange:o,popupProps:s,...c}){let{t:l}=_N(),u=(0,b.useMemo)(()=>b.Children.toArray(e).filter(b.isValidElement),[e]),[d,f]=(0,b.useState)([]),[p,m]=(0,b.useState)(null),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(a),y=i??_,x=(0,b.useCallback)(e=>{i===void 0&&v(e),o?.(e)},[i,o]),S=p!=null&&d.filter(e=>e!=null).length===u.length?$le(d,p,t):Math.min(u.length,t??u.length),C=u.length-S,w=C>0&&(n===`always`||n===`hover`&&(h||y)),T=e=>t=>{let n=t?.nativeEvent?.layout?.width;typeof n==`number`&&f(t=>{if(t[e]===n)return t;let r=t.slice();return r[e]=n,r})};return(0,R.jsxs)(V,{...q(`overflowing-list`),position:`relative`,width:`100%`,minW:0,items:`center`,gap:K0,overflow:`hidden`,onLayout:e=>m(e.nativeEvent.layout.width),onPointerEnter:()=>g(!0),onPointerLeave:()=>g(!1),onFocus:()=>g(!0),onBlur:()=>g(!1),...c,children:[(0,R.jsx)(V,{"aria-hidden":!0,position:`absolute`,t:0,l:0,opacity:0,pointerEvents:`none`,gap:K0,inert:!0,children:u.map((e,t)=>(0,R.jsx)(V,{shrink:0,onLayout:T(t),children:e},e.key??t))}),u.slice(0,S).map((e,t)=>(0,R.jsx)(V,{...t===S-1?{shrink:1,minW:0}:{shrink:0},children:e},e.key??t)),C>0&&n!==`never`?(0,R.jsxs)(gL,{open:y,onOpenChange:x,placement:`bottom-start`,children:[(0,R.jsx)(_L,{asChild:!0,children:(0,R.jsx)(V,{...q(`overflowing-list-count`),...hF(()=>x(!y)),"aria-label":l(`{label} ({n})`,{label:r??l(`Show all items`),n:u.length}),"aria-expanded":y,shrink:0,minW:q0,height:20,px:`$1`,items:`center`,justify:`center`,rounded:`$xs`,cursor:`pointer`,hoverStyle:{bg:`$hover`},focusVisibleStyle:gF,opacity:+!!w,children:(0,R.jsx)(H,{size:`$1`,color:`$ink`,children:`+${C}`})})}),(0,R.jsx)(vL,{p:`$2`,minW:J0,style:{width:Math.max(J0,Math.round(p??0))},...s,children:(0,R.jsx)(B,{...q(`overflowing-list-popup`),maxH:320,overflow:`scroll`,children:(0,R.jsx)(V,{flexWrap:`wrap`,gap:K0,children:u})})})]}):null]})}var tue=e=>{let t=new Intl.NumberFormat(e).formatToParts(-12345.6);return{group:t.find(e=>e.type===`group`)?.value??`,`,decimal:t.find(e=>e.type===`decimal`)?.value??`.`}},nue=/[\s\u00a0\u202f\u2009]/g,rue=/^[\s\u00a0\u202f\u2009]$/;function Y0(e,t,n){let{group:r,decimal:i}=tue(t),a=e.replace(nue,``).replace(/[\u2212\u2012\u2013]/g,`-`);if(!a)return NaN;r&&!rue.test(r)&&(a=a.split(r).join(``));let o=n?.style===`percent`||a.includes(`%`);if(a=a.replace(/[^0-9.,\-+]/g,``),a=i===`.`?a.replace(/,/g,``):a.replace(/\./g,``).replace(i,`.`),!/^[-+]?(\d+\.?\d*|\.\d+)$/.test(a))return NaN;let s=Number(a);return o?s/100:s}var X0=e=>{let t=String(e),n=t.match(/e-(\d+)$/);return n?Number(n[1]):t.includes(`.`)?t.split(`.`)[1].length:0},Z0=(e,t,n)=>Math.min(n??1/0,Math.max(t??-1/0,e)),iue={lg:`icon-lg`,default:`icon`,sm:`icon-sm`,xs:`icon-xs`};function Q0({value:e,defaultValue:t=null,onValueChange:n,min:r,max:i,step:a=1,smallStep:o=.1,largeStep:s=10,format:c,locale:l,allowOutOfRange:u=!1,readOnly:d=!1,required:f,disabled:p,buttons:m=!1,decrementLabel:h,incrementLabel:g,size:_,onFocus:v,onBlur:y,...x}){let{t:S}=_N(),C=gP(_,hP()),w=e!==void 0,[T,E]=(0,b.useState)(t),D=w?e:T,[O,k]=(0,b.useState)(null),A=(0,b.useRef)(D);A.current=D;let j=(0,b.useMemo)(()=>new Intl.NumberFormat(l,{maximumFractionDigits:20,...c}),[l,c]),M=O??(D==null||Number.isNaN(D)?``:j.format(D)),ee=(0,b.useCallback)(e=>{w||E(e),e!==A.current&&n?.(e),A.current=e},[w,n]),te=e=>{if(d||p)return;let t=D??(e>0?(r??0)-e:(i??0)-e),n=Math.max(X0(e),X0(t)),a=Number((t+e).toFixed(n));k(null),ee(u?a:Z0(a,r,i))},ne=e=>{let t=e.shiftKey?s:e.altKey?o:a;if(e.key===`ArrowUp`)te(t);else if(e.key===`ArrowDown`)te(-t);else if(e.key===`Home`&&r!=null&&!d)k(null),ee(r);else if(e.key===`End`&&i!=null&&!d)k(null),ee(i);else return;e.preventDefault?.()},N=D!=null&&r!=null&&D<=r,P=D!=null&&i!=null&&D>=i,re=(0,R.jsx)(dL,{...q(`number-field-input`),...x,size:C,role:`spinbutton`,"aria-valuenow":D??void 0,"aria-valuemin":r,"aria-valuemax":i,"aria-readonly":d||void 0,"aria-required":f||void 0,inputMode:c?.maximumFractionDigits===0?`numeric`:`decimal`,autoComplete:`off`,disabled:p,readOnly:d,value:M,onChangeText:e=>{if(k(e),!e.trim())return ee(null);let t=Y0(e,l,c);Number.isNaN(t)||ee(t)},onFocus:e=>{k(M),v?.(e)},onBlur:e=>{let t=O;if(k(null),t!=null&&t.trim()){let e=Y0(t,l,c);Number.isNaN(e)||ee(u?e:Z0(e,r,i))}y?.(e)},onKeyDown:ne});if(!m)return re;let ie=iue[C],ae=e=>()=>te(e);return(0,R.jsxs)(V,{...q(`number-field`),items:`center`,gap:`$1`,width:`100%`,minW:0,children:[(0,R.jsx)(V,{flex:1,minW:0,children:re}),(0,R.jsx)(sF,{...q(`number-field-decrement`),variant:`outline`,size:ie,"aria-label":h??S(`Decrease`),tabIndex:-1,disabled:p||!u&&N,...d?{opacity:.5,cursor:`default`,hoverStyle:{bg:`$background`}}:null,onPress:ae(-a),children:(0,R.jsx)(OM,{size:16})}),(0,R.jsx)(sF,{...q(`number-field-increment`),variant:`outline`,size:ie,"aria-label":g??S(`Increase`),tabIndex:-1,disabled:p||!u&&P,...d?{opacity:.5,cursor:`default`,hoverStyle:{bg:`$background`}}:null,onPress:ae(a),children:(0,R.jsx)(AM,{size:16})})]})}var $0=(e,t=!1,n)=>{let[r,i]=(0,b.useState)(t);return[e??r,t=>{e===void 0&&i(t),n?.(t)}]},e2=(0,b.forwardRef)(function({disabled:e,open:t,label:n,children:r,...i},a){let o=(0,b.useContext)(iL),s=hP(),c=QI[o?.size??gP(void 0,s)];return(0,R.jsx)(V,{ref:a,...q(`field-segment`),render:`button`,type:`button`,disabled:e,"aria-expanded":!!t,...n?{"aria-label":n}:null,height:c.h-2,marginInlineStart:o?-c.gutter:0,shrink:0,items:`center`,gap:`$1`,px:`$2`,bg:`transparent`,borderWidth:0,borderInlineEndWidth:1,borderColor:`$borderColor`,borderStartStartRadius:`$3`,borderEndStartRadius:`$3`,cursor:e?`not-allowed`:`pointer`,opacity:e?.5:1,hoverStyle:e?void 0:{bg:`$hover`},focusVisibleStyle:{...gF,outlineOffset:-2},...i,children:r})}),t2=32;function n2({trigger:e,open:t,onOpenChange:n,options:r,value:i,onPick:a,searchLabel:o,emptyLabel:s,width:c=240}){let{t:l}=_N(),u=hP(),d=o??l(`Search`);return(0,R.jsxs)(gL,{open:t,onOpenChange:n,placement:`bottom-start`,children:[(0,R.jsx)(_L,{asChild:!0,children:e}),(0,R.jsx)(vL,{"data-slot":`search-list`,p:0,width:c,sideOffset:8,overflow:`hidden`,children:(0,R.jsx)(mP,{value:u,children:(0,R.jsxs)(GF,{value:i??void 0,children:[(0,R.jsx)(KF,{placeholder:d,"aria-label":d,autoFocus:!0}),(0,R.jsxs)(qF,{p:`$1`,children:[(0,R.jsx)(JF,{children:s??l(`No results`)}),r.map(e=>(0,R.jsxs)(YF,{value:e.value,keywords:[e.label,...e.keywords??[]],disabled:e.disabled,minH:t2,px:`$1`,rounded:`$xs`,...CN(t2,44,`y`),onSelect:e=>a(e),"aria-selected":e.value===i,children:[e.start?(0,R.jsx)(V,{shrink:0,items:`center`,children:e.start}):null,(0,R.jsx)(H,{size:`$2`,color:`$ink`,flex:1,minW:0,numberOfLines:1,children:e.label}),e.end==null?null:(0,R.jsx)(H,{size:`$2`,color:`$hint`,shrink:0,children:e.end}),(0,R.jsx)(cM,{size:16,opacity:+(e.value===i),shrink:0})]},e.value))]})]})})})]})}var aue=e=>`${e.name} (${e.code})`,oue=e=>[e.name,e.code,e.symbol].filter(Boolean).join(` `);function sue({currencies:e,value:t,defaultValue:n=null,onValueChange:r,placeholder:i=`—`,renderValue:a,getOptionLabel:o=aue,getSearchText:s=oue,selectedFirst:c=!1,closeOnSelect:l=!0,open:u,defaultOpen:d,onOpenChange:f,disabled:p=!1,label:m,searchLabel:h,emptyLabel:g}){let{t:_}=_N(),v=m??_(`Currency`),[y,x]=(0,b.useState)(n),S=t===void 0?y:t,[C,w]=$0(u,d,f),T=e.find(e=>e.code===S),E=(c&&T?[T,...e.filter(e=>e!==T)]:e).map(e=>({value:e.code,label:o(e),keywords:[s(e)],disabled:e.disabled,end:e.symbol}));return(0,R.jsx)(n2,{open:C&&!p,onOpenChange:e=>w(!p&&e),options:E,value:S,searchLabel:h??_(`Search currencies`),emptyLabel:g??_(`No currency found`),onPick:e=>{t===void 0&&x(e),e!==S&&r?.(e),l&&w(!1)},trigger:(0,R.jsxs)(e2,{"data-slot":`currency-picker`,disabled:p,open:C,label:T?_(`{label}: {value}`,{label:v,value:T.name}):v,children:[a?a(T):(0,R.jsx)(H,{size:`$2`,fontWeight:`500`,color:`$hint`,children:T?.code??i}),(0,R.jsx)(lM,{size:14,color:`$hint`})]})})}var r2=e=>{let t=e?.trim().toUpperCase();return!t||!/^[A-Z]{2}$/.test(t)?null:String.fromCodePoint(...[...t].map(e=>127462+e.charCodeAt(0)-65))};function i2({iso:e,override:t}){let n=t??r2(e);return(0,R.jsx)(V,{width:16,height:12,rounded:`$2xs`,overflow:`hidden`,items:`center`,justify:`center`,shrink:0,"aria-hidden":!0,children:n==null?(0,R.jsx)(gM,{size:14,color:`$hint`}):typeof n==`string`?(0,R.jsx)(H,{size:`$2`,lineHeight:12,children:n}):n})}function cue({countries:e,value:t,defaultValue:n=null,onValueChange:r,closeOnSelect:i=!0,open:a,defaultOpen:o,onOpenChange:s,disabled:c=!1,label:l,searchLabel:u,emptyLabel:d}){let{t:f}=_N(),p=l??f(`Country calling code`),[m,h]=(0,b.useState)(n),g=t===void 0?m:t,[_,v]=$0(a,o,s),y=e.find(e=>e.value===g),x=e.map(e=>({value:e.value,label:e.label,keywords:[e.value,e.callingCode,`+${e.callingCode}`],disabled:e.disabled,start:(0,R.jsx)(V,{paddingInlineEnd:`$1`,children:(0,R.jsx)(i2,{iso:e.value,override:e.flag})}),end:`+${e.callingCode}`}));return(0,R.jsx)(n2,{open:_&&!c,onOpenChange:e=>v(!c&&e),options:x,value:g,searchLabel:u??f(`Search countries`),emptyLabel:d??f(`No country found`),width:280,onPick:e=>{t===void 0&&h(e),e!==g&&r?.(e),i&&v(!1)},trigger:(0,R.jsxs)(e2,{"data-slot":`phone-country-picker`,disabled:c,open:_,gap:`$0.5`,paddingInlineStart:`$2`,paddingInlineEnd:`$1`,children:[(0,R.jsx)(i2,{iso:y?.value,override:y?.flag}),(0,R.jsx)(lM,{size:14,color:`$hint`}),(0,R.jsx)(pO,{children:y?f(`{label}: {country} +{code}`,{label:p,country:y.label,code:y.callingCode}):p})]})})}var a2=`none`,o2=({iso:e,override:t})=>{let n=t??r2(e);return(0,R.jsx)(V,{width:16,height:16,items:`center`,justify:`center`,shrink:0,"aria-hidden":!0,children:n==null?(0,R.jsx)(Wae,{size:16,color:`$hint`}):typeof n==`string`?(0,R.jsx)(H,{size:`$3`,lineHeight:16,children:n}):n})};function lue({countries:e,value:t,defaultValue:n=null,onValueChange:r,label:i,"aria-label":a,noCountryLabel:o,searchLabel:s,noResultsLabel:c,size:l,open:u,defaultOpen:d,onOpenChange:f,disabled:p=!1}){let{t:m}=_N(),h=o??m(`No country`),g=hP(),_=QI[gP(l,g)],v=(0,b.useId)(),[y,x]=(0,b.useState)(n),S=t===void 0?y:t,[C,w]=$0(u,d,f),T=p||e.length===0,E=e.find(e=>e.value===S),D=[{value:a2,label:h,start:(0,R.jsx)(o2,{})},...e.map(e=>({value:e.value,label:e.label,keywords:[e.value],disabled:e.disabled,start:(0,R.jsx)(o2,{iso:e.value,override:e.flag})}))],O=(0,R.jsxs)(V,{...q(`country-select`),render:`button`,type:`button`,disabled:T,"aria-expanded":C,...i?{"aria-labelledby":v}:a?{"aria-label":a}:null,componentName:`Input`,...eL,...g===`compact`?{bg:`$panel`}:null,minH:_.h,px:_.gutter,width:`100%`,minW:0,items:`center`,gap:`$2`,cursor:T?`not-allowed`:`pointer`,opacity:T?.5:1,borderColor:C?`$borderColorFocus`:`$borderColor`,hoverStyle:T?void 0:{borderColor:`$borderColorHover`},...CN(_.h,44,`y`),children:[(0,R.jsx)(o2,{iso:E?.value,override:E?.flag}),(0,R.jsx)(H,{size:_.font,color:E?`$ink`:`$placeholderColor`,flex:1,minW:0,numberOfLines:1,...MP(`start`),children:E?.label??h}),(0,R.jsx)(lM,{size:16,opacity:.5,shrink:0})]});return(0,R.jsxs)(B,{...q(`country-select-field`),width:`100%`,minW:0,gap:`$1`,children:[i?(0,R.jsx)(H,{id:v,size:`$1`,fontWeight:`600`,color:`$hint`,children:i}):null,(0,R.jsx)(n2,{open:C&&!T,onOpenChange:e=>w(!T&&e),options:D,value:S??a2,searchLabel:s,emptyLabel:c,width:280,onPick:e=>{let n=e===a2?null:e;t===void 0&&x(n),n!==S&&r?.(n),w(!1)},trigger:O})]})}var s2=`appearance`;async function uue(e){return await c2(s2,e)}async function c2(e,{base:t,token:n,signal:r}){if(!(typeof window<`u`&&new URL(t,window.location.origin).origin!==window.location.origin&&!n))try{return(await u2(t,n,{},r))?.[e]}catch{return}}async function l2(e,t){return due(s2,e,t)}async function due(e,t,{base:n,token:r,signal:i}){if(typeof window<`u`&&new URL(n,window.location.origin).origin!==window.location.origin&&!r)return!1;try{return!!await u2(n,r,{[e]:t},i)}catch{return!1}}async function u2(e,t,n,r){let i=typeof window<`u`&&new URL(e,window.location.origin).origin!==window.location.origin,a=await fetch(`${e.replace(/\/+$/,``)}/v1/iam/preferences`,{method:`POST`,credentials:t||i?`omit`:`include`,headers:{"Content-Type":`application/json`,...t?{Authorization:`Bearer ${t}`}:{}},body:JSON.stringify(n),signal:r});if(!a.ok)return;let o=await a.json();if(o?.status===`ok`)return o.data??{}}var d2=`hanzo.composer`,fue=`hanzo:composer`;function f2(e){let t=e&&typeof e==`object`?e:{},n={};return(t.send===`enter`||t.send===`mod`)&&(n.send=t.send),typeof t.chips==`boolean`&&(n.chips=t.chips),typeof t.model==`boolean`&&(n.model=t.model),typeof t.mode==`boolean`&&(n.mode=t.mode),n}var pue=()=>{try{return typeof window>`u`?void 0:window.localStorage}catch{return}};function mue(e,t=pue()){let n=f2(e);try{if(!t)throw Error(`no storage`);Object.keys(n).length?t.setItem(d2,JSON.stringify(n)):t.removeItem(d2)}catch{}typeof window<`u`&&window.dispatchEvent(new Event(fue))}async function hue(e){let t=await c2(`composer`,e);return t===void 0?void 0:f2(t)}var p2={"--neutral-50":`#FAFAFA`,"--neutral-100":`#F5F5F5`,"--neutral-200":`#E5E5E5`,"--neutral-300":`#D4D4D4`,"--neutral-400":`#A3A3A3`,"--neutral-500":`#737373`,"--neutral-600":`#525252`,"--neutral-700":`#404040`,"--neutral-800":`#262626`,"--neutral-900":`#171717`,"--neutral-950":`#0A0A0A`,"--pure-black":`#000000`,"--pure-white":`#FFFFFF`,"--hanzo-black":`#0A0A0B`,"--hanzo-white":`#FFFFFF`,"--art-tide":`#2F6BFF`,"--art-iris":`#8B5CF6`,"--art-ember":`#FF7A3D`,"--art-glow":`#F4F1FF`,"--white-03":`rgb(255 255 255 / .03)`,"--white-05":`rgb(255 255 255 / .05)`,"--white-06":`rgb(255 255 255 / .06)`,"--white-08":`rgb(255 255 255 / .08)`,"--white-10":`rgb(255 255 255 / .10)`,"--white-14":`rgb(255 255 255 / .14)`,"--white-15":`rgb(255 255 255 / .15)`,"--white-16":`rgb(255 255 255 / .16)`,"--white-18":`rgb(255 255 255 / .18)`,"--white-20":`rgb(255 255 255 / .20)`,"--white-22":`rgb(255 255 255 / .22)`,"--white-30":`rgb(255 255 255 / .30)`,"--white-40":`rgb(255 255 255 / .40)`,"--white-45":`rgb(255 255 255 / .45)`,"--white-55":`rgb(255 255 255 / .55)`,"--white-60":`rgb(255 255 255 / .60)`,"--white-78":`rgb(255 255 255 / .78)`,"--white-80":`rgb(255 255 255 / .80)`,"--white-92":`rgb(255 255 255 / .92)`,"--background":`#0a0a0a`,"--foreground":`#e5e5e5`,"--card":`#0f0f0f`,"--card-foreground":`#e5e5e5`,"--popover":`#0f0f0f`,"--popover-foreground":`#e5e5e5`,"--primary":`#fafafa`,"--primary-hover":`#e5e5e5`,"--primary-foreground":`#0a0a0a`,"--secondary":`#262626`,"--secondary-hover":`#333333`,"--secondary-foreground":`#fafafa`,"--muted":`#171717`,"--muted-foreground":`#a3a3a3`,"--accent":`#262626`,"--accent-hover":`var(--secondary-hover)`,"--accent-foreground":`#fafafa`,"--destructive":`#dc2626`,"--destructive-hover":`#b91c1c`,"--destructive-foreground":`#fafafa`,"--border":`var(--white-10)`,"--border-strong":`var(--white-16)`,"--border-control":`var(--white-15)`,"--border-focus":`var(--white-22)`,"--border-selected":`var(--white-30)`,"--edge":`var(--white-06)`,"--input":`var(--border-control)`,"--ring":`var(--white-40)`,"--ring-halo":`var(--white-10)`,"--brand":`#e4e4e7`,"--brand-foreground":`#09090b`,"--brand-muted":`#a3a3a3`,"--black":`#000000`,"--white":`#fafafa`,"--selection":`var(--white-20)`,"--glass":`var(--white-05)`,"--glass-strong":`var(--white-08)`,"--surface-page":`var(--background)`,"--surface-card":`rgb(38 38 38 / .5)`,"--surface-card-emphasis":`rgb(38 38 38 / .75)`,"--surface-card-quiet":`rgb(38 38 38 / .35)`,"--surface-overlay":`rgb(23 23 23 / .92)`,"--surface-header":`rgb(0 0 0 / .7)`,"--surface-scrim":`rgb(0 0 0 / .8)`,"--surface-0":`var(--background)`,"--surface-1":`var(--card)`,"--surface-2":`var(--muted)`,"--surface-3":`var(--secondary)`,"--text-primary":`#fafafa`,"--text-secondary":`var(--white-78)`,"--text-tertiary":`var(--white-55)`,"--text-helper":`var(--muted-foreground)`,"--text-disabled":`var(--white-30)`,"--state-error":`#ef4444`,"--state-error-text":`#fca5a5`,"--state-error-bg":`rgb(239 68 68 / .1)`,"--state-online":`#4ade80`,"--state-success":`#22c55e`,"--chrome-dot-red":`rgb(239 68 68 / .6)`,"--chrome-dot-yellow":`rgb(234 179 8 / .6)`,"--chrome-dot-green":`rgb(34 197 94 / .6)`,"--type-scale":`1`,"--type-ratio":`1`,"--text-floor":`0.75rem`,"--text-ceiling":`30vw`,"--text-xs":`0.75rem`,"--leading-xs":`1rem`,"--text-sm":`0.8125rem`,"--leading-sm":`1.15rem`,"--text-base":`0.875rem`,"--leading-base":`1.35rem`,"--text-lg":`0.9375rem`,"--leading-lg":`1.4rem`,"--text-xl":`1.0625rem`,"--leading-xl":`1.55rem`,"--text-2xl":`1.3125rem`,"--leading-2xl":`1.7rem`,"--text-3xl":`1.625rem`,"--leading-3xl":`1.95rem`,"--text-4xl":`2rem`,"--leading-4xl":`2.25rem`,"--text-5xl":`2.5rem`,"--leading-5xl":`1.05`,"--text-6xl":`3.25rem`,"--leading-6xl":`1`,"--text-7xl":`4rem`,"--leading-7xl":`1`,"--text-8xl":`5.25rem`,"--leading-8xl":`1`,"--text-9xl":`7rem`,"--leading-9xl":`1`,"--font-size-xs":`var(--text-xs)`,"--font-size-sm":`var(--text-sm)`,"--font-size-base":`var(--text-base)`,"--font-size-lg":`var(--text-lg)`,"--font-size-xl":`var(--text-xl)`,"--font-size-2xl":`var(--text-2xl)`,"--font-size-3xl":`var(--text-3xl)`,"--font-size-4xl":`var(--text-4xl)`,"--font-size-5xl":`var(--text-5xl)`,"--font-size-6xl":`var(--text-6xl)`,"--font-size-7xl":`var(--text-7xl)`,"--font-size-8xl":`var(--text-8xl)`,"--font-size-9xl":`var(--text-9xl)`,"--text-control":`var(--text-sm)`,"--weight-normal":`400`,"--weight-medium":`500`,"--weight-semibold":`600`,"--weight-bold":`700`,"--tracking-tight":`-0.025em`,"--tracking-normal":`0em`,"--tracking-wide":`0.025em`,"--tracking-widest":`0.1em`,"--leading-none":`1`,"--leading-tight":`1.25`,"--leading-snug":`1.375`,"--leading-normal":`1.5`,"--leading-relaxed":`1.625`,"--leading-golden":`1.618`,"--type-hero":`600 var(--text-5xl)/1.05 var(--font-display)`,"--type-h2":`700 var(--text-4xl)/var(--leading-4xl) var(--font-display)`,"--type-h3":`600 var(--text-xl)/var(--leading-xl) var(--font-display)`,"--type-lead":`400 var(--text-lg)/var(--leading-relaxed) var(--font-sans)`,"--type-body":`400 var(--text-sm)/var(--leading-sm) var(--font-sans)`,"--type-caption":`400 var(--text-xs)/var(--leading-xs) var(--font-sans)`,"--type-code":`400 var(--text-sm)/var(--leading-relaxed) var(--font-mono)`,"--type-eyebrow":`600 0.75rem/1 var(--font-sans)`,"--density":`1`,"--space-0":`0`,"--space-1":`0.25rem`,"--space-2":`0.5rem`,"--space-3":`0.75rem`,"--space-4":`1rem`,"--space-5":`1.25rem`,"--space-6":`1.5rem`,"--space-8":`2rem`,"--space-10":`2.5rem`,"--space-12":`3rem`,"--space-14":`3.5rem`,"--space-16":`4rem`,"--space-20":`5rem`,"--space-24":`6rem`,"--space-32":`8rem`,"--golden-1":`0.25rem`,"--golden-2":`0.405rem`,"--golden-3":`0.654rem`,"--golden-4":`1.059rem`,"--golden-5":`1.713rem`,"--golden-6":`2.772rem`,"--golden-7":`4.487rem`,"--golden-8":`7.26rem`,"--golden-9":`11.749rem`,"--golden-split":`38.2% 61.8%`,"--container-max":`80rem`,"--container-prose":`48rem`,"--container-wide":`72rem`,"--gutter":`max(1rem,var(--safe-left),var(--safe-right))`,"--page-gutter":`clamp(20px,4vw,72px)`,"--gutter-sm":`1.5rem`,"--gutter-lg":`2rem`,"--section-y":`2.5rem`,"--section-y-lg":`3.5rem`,"--hero-y":`3rem`,"--hero-y-lg":`4.5rem`,"--header-height":`3.5rem`,"--header":`0px`,"--dock":`0px`,"--tap-target":`44px`,"--control-height-sm":`32px`,"--control-height":`36px`,"--control-height-lg":`40px`,"--control-height-xl":`52px`,"--safe-top":`env(safe-area-inset-top,0px)`,"--safe-right":`env(safe-area-inset-right,0px)`,"--safe-bottom":`env(safe-area-inset-bottom,0px)`,"--safe-left":`env(safe-area-inset-left,0px)`,"--grid-columns":`12`,"--grid-gap":`var(--space-6)`,"--grid-gap-tight":`var(--space-4)`,"--grid-gap-loose":`var(--space-8)`,"--breakpoint-sm":`40rem`,"--breakpoint-md":`48rem`,"--breakpoint-lg":`64rem`,"--breakpoint-xl":`80rem`,"--breakpoint-2xl":`96rem`,"--grid-card-min":`18rem`,"--grid-card-min-wide":`24rem`,"--radius-scale":`1`,"--radius":`calc(0.5rem * var(--radius-scale, 1))`,"--radius-sm":`calc(0.375rem * var(--radius-scale, 1))`,"--radius-md":`calc(0.5rem * var(--radius-scale, 1))`,"--radius-lg":`calc(0.75rem * var(--radius-scale, 1))`,"--radius-xl":`calc(1rem * var(--radius-scale, 1))`,"--radius-2xl":`calc(1.5rem * var(--radius-scale, 1))`,"--radius-composer":`calc(28px * var(--radius-scale, 1))`,"--radius-full":`9999px`,"--shadow-none":`none`,"--shadow-floating":`0 24px 60px -16px rgb(0 0 0 / .75)`,"--shadow-inset-hairline":`inset 0 0 0 1px var(--white-10)`,"--edge-highlight":`inset 0 1px 0 0 rgb(255 255 255 / .10)`,"--bloom":`0 0 24px -2px rgb(255 255 255 / .28)`,"--ring-focus":`0 0 0 3px var(--ring-halo)`,"--shadow-sm":`0 1px 2px 0 rgb(0 0 0 / .40)`,"--shadow":`0 1px 3px 0 rgb(0 0 0 / .45), 0 1px 2px -1px rgb(0 0 0 / .45)`,"--shadow-md":`0 4px 6px -1px rgb(0 0 0 / .50), 0 2px 4px -2px rgb(0 0 0 / .50)`,"--shadow-lg":`0 10px 15px -3px rgb(0 0 0 / .55), 0 4px 6px -4px rgb(0 0 0 / .55)`,"--shadow-xl":`0 20px 25px -5px rgb(0 0 0 / .60), 0 8px 10px -6px rgb(0 0 0 / .60)`,"--shadow-2xl":`var(--shadow-floating)`,"--sheet-0":`var(--surface-page)`,"--sheet-1":`var(--surface-card)`,"--sheet-2":`var(--surface-card-emphasis)`,"--shadow-sheet-1":`var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)`,"--shadow-sheet-2":`var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)`,"--fold":`12px`,"--fold-face":`linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))`,"--glow-hero":`radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)`,"--glow-hero-blur":`120px`,"--sheen-card":`radial-gradient(120% 120% at 80% 0%,rgb(255 255 255 / .08) 0%,transparent 55%)`,"--sheen-edge":`linear-gradient(90deg,transparent,rgb(255 255 255 / .14) 50%,transparent)`,"--gradient-chrome":`linear-gradient(to right,#ffffff,var(--white-80),var(--white-60))`,"--gradient-chrome-2":`linear-gradient(to right,#ffffff,var(--neutral-500))`,"--gradient-protect":`linear-gradient(to bottom,var(--white-10),transparent)`,"--chrome":`rgb(9 9 11 / .72)`,"--chrome-blur":`blur(20px) saturate(1.8)`,"--chrome-panel":`var(--popover)`,"--pane-blur":`var(--chrome-blur)`,"--pane-edge":`var(--white-08)`,"--pane-round":`var(--radius-xl)`,"--pane-fill":`var(--sheet-1)`,"--pane-solid":`color-mix(in srgb,var(--neutral-800) 50%,var(--background))`,"--pane-floor":`var(--background)`,"--pane-gap":`var(--space-2)`,"--pane-ground":`radial-gradient(80rem 40rem at 12% -10%,rgb(255 255 255 / .035),transparent 60%),radial-gradient(60rem 34rem at 92% 108%,var(--white-03),transparent 60%)`,"--duration-fast":`150ms`,"--duration-base":`300ms`,"--duration-slow":`400ms`,"--duration-slower":`500ms`,"--duration-glow":`9s`,"--duration-press":`90ms`,"--ease-out":`cubic-bezier(0,0,0.2,1)`,"--ease-in-out":`cubic-bezier(0.4,0,0.2,1)`,"--ease-emphasis":`cubic-bezier(0.16,1,0.3,1)`,"--stagger":`60ms`,"--entry-rise":`16px`,"--entry-rise-lg":`24px`,"--z-base":`0`,"--z-raised":`10`,"--z-sticky":`200`,"--z-header":`300`,"--z-dropdown":`400`,"--z-overlay":`500`,"--z-modal":`600`,"--z-popover":`700`,"--z-toast":`800`,"--z-under":`-10`,"--z-panel":`18`,"--z-scrim":`19`,"--z-drawer":`20`,"--z-sheet":`30`,"--z-dock":`40`,"--z-banner":`50`,"--z-tooltip":`var(--z-popover)`,"--z-notification":`var(--z-toast)`,"--font-arabic-kufi":`"Noto Kufi Arabic"`,"--font-arabic-sans":`"Noto Sans Arabic"`,"--font-arabic-plex":`"IBM Plex Sans Arabic"`,"--font-arabic":`var(--font-arabic-kufi)`,"--font-sans":`var(--font-arabic), Zen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif`,"--font-display":`var(--font-sans)`,"--font-mono":`var(--font-arabic), Zen Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`,"--font-serif":`var(--font-arabic), Georgia, serif`,"--font-feature-settings":`normal`,"--ring-offset":`-2px`},gue=.85,_ue=1.4,vue=.75,yue=1.5,bue=1.05,xue=[`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`],Sue=1.0625,m2={compact:.85,default:1,comfortable:1.15},Cue={system:`ui-sans-serif, system-ui, -apple-system, sans-serif`,serif:`var(--font-serif)`,mono:`var(--font-mono)`},wue={kufi:`var(--font-arabic-kufi)`,sans:`var(--font-arabic-sans)`,plex:`var(--font-arabic-plex)`},Tue={narrow:{max:`64rem`,prose:`40rem`,wide:`58rem`},wide:{max:`96rem`,prose:`56rem`,wide:`86rem`}},Eue={sharp:.5,round:1.5},h2=(e,t,n)=>Math.min(n,Math.max(t,e)),g2=e=>String(Math.round(e*1e4)/1e4);function Due(e){let t=e.trim();return!t||t.length>64||/[;{}()]/.test(t)&&!/^(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|color)\([^;{}]*\)$/i.test(t)?!1:/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(t)||/^(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|color)\([^;{}]*\)$/i.test(t)||/^[a-z]{3,20}$/i.test(t)}var _2=p2[`--primary-foreground`],v2=p2[`--primary`],y2=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,b2=(e,t,n)=>.2126*y2(e)+.7152*y2(t)+.0722*y2(n),x2=(e,t)=>{let n=parseFloat(e);return e.trim().endsWith(`%`)?n/100*t:n};function S2(e){let t=e.trim().toLowerCase(),n=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);if(n){let e=n[1],t=e.length<=4?[...e.slice(0,3)].map(e=>e+e).join(``):e.slice(0,6),[r,i,a]=[0,2,4].map(e=>parseInt(t.slice(e,e+2),16)/255);return b2(r,i,a)}let r=/^(rgba?|hsla?|oklch|oklab)\(([^)]*)\)$/.exec(t);if(!r)return;let i=r[2].split(/[\s,/]+/).filter(Boolean);if(!(i.length<3||i.slice(0,3).some(e=>!Number.isFinite(parseFloat(e))))){if(r[1].startsWith(`rgb`)){let[e,t,n]=i.slice(0,3).map(e=>h2(x2(e,255),0,255)/255);return b2(e,t,n)}if(r[1].startsWith(`hsl`)){let e=(parseFloat(i[0])%360+360)%360,t=h2(x2(i[1],1),0,1),n=h2(x2(i[2],1),0,1),r=t=>(t+e/30)%12,a=t*Math.min(n,1-n),o=e=>n-a*Math.max(-1,Math.min(r(e)-3,9-r(e),1));return b2(o(0),o(8),o(4))}return h2(x2(i[0],1),0,1)**3}}var C2=(e,t)=>(Math.max(e,t)+.05)/(Math.min(e,t)+.05);function Oue(e){let t=S2(e);if(t===void 0)return;let n=S2(_2)??0,r=S2(v2)??1;return C2(t,n)>=C2(t,r)?_2:v2}function kue(e){let t={};if(typeof e.type==`number`&&Number.isFinite(e.type)&&(t[`--type-scale`]=g2(h2(e.type,gue,_ue))),typeof e.ratio==`number`&&Number.isFinite(e.ratio)&&(t[`--type-ratio`]=g2(h2(e.ratio,vue,yue))),typeof e.modular==`number`&&Number.isFinite(e.modular)){let n=h2(e.modular,bue,2);xue.forEach((e,r)=>{let i=Sue*n**+(r+1);t[`--text-${e}`]=`clamp(var(--text-floor), calc(${g2(i)}rem * var(--type-scale, 1)), var(--text-ceiling))`})}e.density&&e.density in m2&&(t[`--density`]=g2(m2[e.density]));let n=e.font?Cue[e.font]:void 0;n&&(t[`--font-sans`]=n);let r=e.arabic?wue[e.arabic]:void 0;r&&(t[`--font-arabic`]=r);let i=e.width?Tue[e.width]:void 0;i&&(t[`--container-max`]=i.max,t[`--container-prose`]=i.prose,t[`--container-wide`]=i.wide);let a=e.radius?Eue[e.radius]:void 0;a&&(t[`--radius-scale`]=g2(a));let o=e.accent&&Due(e.accent)?e.accent.trim():void 0,s=o?Oue(o):void 0;if(o&&s){let e=`color-mix(in oklab, ${o} 85%, ${s})`;t[`--primary`]=o,t[`--primary-foreground`]=s,t[`--primary-hover`]=e,t[`--accent`]=o,t[`--accent-foreground`]=s,t[`--accent-hover`]=e}return t}var Aue=[`install`,`org`,`user`,`userOrg`],jue=[`type`,`ratio`,`modular`,`density`,`font`,`arabic`,`width`,`accent`,`highlight`,`background`,`contrast`,`theme`,`radius`];function Mue(e){let t={},n={};for(let r of jue)for(let i of Aue){let a=e[i]?.[r];a!=null&&a!==``&&(t[r]=a,n[r]=i)}return{pref:t,from:n}}var Nue=e=>e===`org`?`userOrg`:`user`,w2=/^(#[0-9a-fA-F]{3,8}|(?:rgb|hsl|oklch|oklab|lab|lch)a?\(\s*[-+0-9.%deg\s,/]+\)|[a-zA-Z]{3,20})$/;function T2(e){let t=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.exec(e);if(!t)return`#fafafa`;let n=t[1].length===3?t[1].replace(/./g,`$&$&`):t[1].slice(0,6),[r,i,a]=[0,2,4].map(e=>{let t=parseInt(n.slice(e,e+2),16)/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a>.179?`#09090b`:`#fafafa`}var E2={oled:{"--background":`#000000`,"--foreground":`#fafafa`,"--text-primary":`#fafafa`,"--pane-floor":`#000000`,"--pane-fill":`#050505`,"--card":`#080808`,"--surface-card":`#080808`,"--card-foreground":`#fafafa`,"--popover":`#080808`,"--popover-foreground":`#fafafa`,"--muted":`#0d0d0d`,"--secondary":`#161616`,"--secondary-hover":`#1f1f1f`,"--secondary-foreground":`#fafafa`,"--composer-fill":`#111111`,"--composer-ground":`#111111`},soft:{"--background":`#181818`,"--foreground":`#fafafa`,"--text-primary":`#fafafa`,"--pane-floor":`#131312`,"--pane-fill":`#1c1c1b`,"--card":`#20201f`,"--surface-card":`#20201f`,"--card-foreground":`#fafafa`,"--popover":`#20201f`,"--popover-foreground":`#fafafa`,"--muted":`#252523`,"--secondary":`#2e2e2c`,"--secondary-hover":`#383835`,"--secondary-foreground":`#fafafa`,"--composer-fill":`#272725`,"--composer-ground":`#272725`},high:{"--background":`#000000`,"--foreground":`#ffffff`,"--text-primary":`#ffffff`,"--pane-floor":`#000000`,"--pane-fill":`#060606`,"--card":`#0a0a0a`,"--surface-card":`#0a0a0a`,"--card-foreground":`#ffffff`,"--popover":`#0a0a0a`,"--popover-foreground":`#ffffff`,"--muted":`#121212`,"--secondary":`#1f1f1f`,"--secondary-hover":`#292929`,"--secondary-foreground":`#ffffff`,"--composer-fill":`#141414`,"--composer-ground":`#141414`,"--border":`rgb(255 255 255 / .18)`}};function Pue(e){if(e.background!==void 0){let t=e.background.trim();if(w2.test(t))return T2(t)===`#09090b`?`light`:`dark`}return e.contrast&&e.contrast in E2?`dark`:e.theme}function D2(e){let t={...kue(e)};if(e.contrast&&e.contrast in E2&&Object.assign(t,E2[e.contrast]),e.background!==void 0){let n=e.background.trim();if(w2.test(n)){let e=T2(n),r=e===`#09090b`?`black`:`white`;t[`--background`]=n,t[`--foreground`]=e,t[`--text-primary`]=e,t[`--pane-floor`]=`color-mix(in oklch, ${n} 95%, black)`,t[`--pane-fill`]=`color-mix(in oklch, ${n} 97%, ${r})`,t[`--card`]=`color-mix(in oklch, ${n} 95%, ${r})`,t[`--surface-card`]=`color-mix(in oklch, ${n} 95%, ${r})`,t[`--card-foreground`]=e,t[`--popover`]=`color-mix(in oklch, ${n} 92%, ${r})`,t[`--popover-foreground`]=e,t[`--muted`]=`color-mix(in oklch, ${n} 92%, ${r})`,t[`--secondary`]=`color-mix(in oklch, ${n} 90%, ${r})`,t[`--secondary-hover`]=`color-mix(in oklch, ${n} 84%, ${r})`,t[`--secondary-foreground`]=e,t[`--composer-fill`]=`color-mix(in oklch, ${n} 90%, ${r})`,t[`--composer-ground`]=`color-mix(in oklch, ${n} 90%, ${r})`}}if(e.highlight!==void 0){let n=e.highlight.trim();w2.test(n)&&(t[`--highlight`]=n,t[`--selection`]=`color-mix(in oklab, ${n} 28%, transparent)`,t[`--ring`]=`color-mix(in oklab, ${n} 55%, transparent)`,t[`--ring-halo`]=`color-mix(in oklab, ${n} 18%, transparent)`,t[`--border-focus`]=`color-mix(in oklab, ${n} 50%, transparent)`,t[`--border-selected`]=`color-mix(in oklab, ${n} 65%, transparent)`)}return t}var O2=`hanzo.appearance`,k2=(e,t)=>e===`org`&&t?`${O2}@${t}`:O2,Fue={type:1,density:`default`},A2=()=>typeof document<`u`,Iue=[`kufi`,`sans`,`plex`];function j2({scope:e=`everywhere`,org:t,store:n=I2()}={}){try{let r=n?.getItem(k2(e,t));if(!r)return{};let i=JSON.parse(r);return!i||typeof i!=`object`?{}:{...typeof i.type==`number`&&Number.isFinite(i.type)?{type:i.type}:{},...typeof i.ratio==`number`&&Number.isFinite(i.ratio)?{ratio:i.ratio}:{},...typeof i.modular==`number`&&Number.isFinite(i.modular)?{modular:i.modular}:{},...i.density===`compact`||i.density===`comfortable`||i.density==="default"?{density:i.density}:{},...i.font==="default"||i.font===`system`||i.font===`serif`||i.font===`mono`?{font:i.font}:{},...i.arabic==="default"||Iue.includes(i.arabic)?{arabic:i.arabic}:{},...i.width===`narrow`||i.width==="default"||i.width===`wide`?{width:i.width}:{},...typeof i.accent==`string`?{accent:i.accent}:{},...typeof i.highlight==`string`?{highlight:i.highlight}:{},...typeof i.background==`string`?{background:i.background}:{},...i.contrast===`oled`||i.contrast===`soft`||i.contrast===`high`?{contrast:i.contrast}:{},...i.theme===`system`||i.theme===`light`||i.theme===`dark`?{theme:i.theme}:{},...i.radius===`sharp`||i.radius==="default"||i.radius===`round`?{radius:i.radius}:{}}}catch{return{}}}function Lue({org:e,store:t=I2()}={}){return{user:j2({scope:`everywhere`,store:t}),...e?{userOrg:j2({scope:`org`,org:e,store:t})}:{}}}var M2=`hanzo:appearance`;function N2(e,{scope:t=`everywhere`,org:n,store:r=I2()}={}){try{return r?.setItem(k2(t,n),JSON.stringify(e)),typeof window<`u`&&typeof Event==`function`&&window.dispatchEvent(new Event(M2)),!!r}catch{return!1}}function Rue(e,t=A2()?document.documentElement:void 0,{store:n=I2()}={}){if(!t)return;let r=D2(e);for(let e of Hue){let n=r[e];n?t.style.setProperty(e,n):t.style.removeProperty(e)}let i=Pue(e);if(P2(i,t),A2()&&t===document.documentElement){Vue(i);try{n?.setItem(zue,JSON.stringify({vars:r,...i?{theme:i}:{}}))}catch{}}}var zue=`${O2}.painted`,Bue=e=>e===`dark`||e===`system`&&typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches;function P2(e,t){if(!e&&!t.hasAttribute(`data-scheme`))return;let n=!e||Bue(e);t.classList.toggle(`light`,!n),t.classList.toggle(`dark`,n),t.classList.toggle(`t_light`,!n),t.classList.toggle(`t_dark`,n),t.style.colorScheme=n?`dark`:`light`,e?t.setAttribute(`data-scheme`,e):t.removeAttribute(`data-scheme`)}var F2;function Vue(e){if(e===`system`){if(F2||typeof matchMedia!=`function`)return;let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>P2(`system`,document.documentElement);e.addEventListener?.(`change`,t),F2={query:e,on:t}}else F2&&=(F2.query.removeEventListener?.(`change`,F2.on),void 0)}var Hue=Object.keys(D2({type:1,ratio:1,modular:1.25,density:`compact`,font:`serif`,arabic:`sans`,width:`wide`,accent:`#000`,highlight:`#000`,background:`#000`,contrast:`high`,radius:`round`}));function Uue({install:e,org:t,orgId:n,store:r}={}){return Mue({install:e,org:t,...Lue({org:n,store:r})})}function I2(){try{return typeof localStorage<`u`?localStorage:void 0}catch{return}}var Wue=()=>document.documentElement.classList.contains(`light`)?`light`:`dark`;function Gue(e){let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>t.disconnect()}function Kue(){return(0,b.useSyncExternalStore)(Gue,Wue,()=>`dark`)}function que({org:e,install:t,orgPref:n,account:r}={}){let[i,a]=(0,b.useState)(Fue),[o,s]=(0,b.useState)({}),[c,l]=(0,b.useState)(`everywhere`),u=(0,b.useCallback)((r=c)=>{let i=Uue({install:t,org:n,orgId:e});return a(i.pref),s(i.from),Rue(i.pref),l(r),i},[t,n,e,c]);return(0,b.useEffect)(()=>{u()},[e,t,n]),(0,b.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>u();return window.addEventListener(M2,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(M2,e),window.removeEventListener(`storage`,e)}},[u]),(0,b.useEffect)(()=>{if(!r)return;let e=!0;return uue(r).then(t=>{e&&t&&(N2(t,{scope:`everywhere`}),u())}),hue(r).then(t=>{e&&t&&mue(t)}),()=>{e=!1}},[r?.base,r?.token]),{pref:i,set:(0,b.useCallback)(t=>{let n={...j2({scope:c,org:e}),...t};`accent`in t&&t.accent===void 0&&delete n.accent,`highlight`in t&&t.highlight===void 0&&delete n.highlight,`background`in t&&t.background===void 0&&delete n.background,`contrast`in t&&t.contrast===void 0&&delete n.contrast,N2(n,{scope:c,org:e}),u(),r&&c===`everywhere`&&l2(n,r)},[c,e,u,r]),reset:(0,b.useCallback)(()=>{N2({},{scope:c,org:e}),u(),r&&c===`everywhere`&&l2({},r)},[c,e,u,r]),scope:c,setScope:e=>u(e),from:o,layer:Nue(c)}}var Jue={Close:`إغلاق`,"Close window":`إغلاق النافذة`,"Minimize window":`تصغير النافذة`,"Restore window":`استعادة النافذة`,"Maximize window":`تكبير النافذة`,Resize:`تغيير الحجم`,"Select all":`تحديد الكل`,"Select row":`تحديد الصف`,"Previous month":`الشهر السابق`,"Next month":`الشهر التالي`,Dismiss:`تجاهل`,Breadcrumb:`مسار التنقل`,Cards:`بطاقات`,"Copy code":`نسخ الرمز`,Copied:`تم النسخ`,"Copied!":`تم النسخ!`,Copy:`نسخ`,"Previous slide":`الشريحة السابقة`,"Next slide":`الشريحة التالية`,"Previous card":`البطاقة السابقة`,"Next card":`البطاقة التالية`,"Zoom out":`تصغير`,"Zoom in":`تكبير`,Rotate:`تدوير`,Filter:`تصفية`,"Expand all":`توسيع الكل`,"Collapse all":`طي الكل`,"Search...":`بحث...`,"Pick a date":`اختر تاريخًا`,Select:`تحديد`,"Start typing...":`ابدأ الكتابة...`,Search:`بحث`,Decrease:`إنقاص`,Increase:`زيادة`,pagination:`ترقيم الصفحات`,"Go to previous page":`الانتقال إلى الصفحة السابقة`,"Go to next page":`الانتقال إلى الصفحة التالية`,Previous:`السابق`,Next:`التالي`,"More pages":`مزيد من الصفحات`,Remove:`إزالة`,"Go back":`رجوع`,"Go forward":`تقدم`,"Reload page":`إعادة تحميل الصفحة`,Share:`مشاركة`,"New tab":`علامة تبويب جديدة`,Menu:`القائمة`,"Copy command":`نسخ الأمر`,"Terminal input":`إدخال الطرفية`,Seek:`التمرير`,"Rewind 10 seconds":`إرجاع 10 ثوانٍ`,"Forward 10 seconds":`تقديم 10 ثوانٍ`,Volume:`مستوى الصوت`,"Toggle captions":`تبديل التعليقات`,"Playback speed":`سرعة التشغيل`,Quality:`الجودة`,"Picture in picture":`صورة داخل صورة`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Mute:`كتم الصوت`,Unmute:`إلغاء كتم الصوت`,"Exit fullscreen":`الخروج من ملء الشاشة`,"Enter fullscreen":`ملء الشاشة`,Expand:`توسيع`,Collapse:`طي`,"Copy reply":`نسخ الرد`,"Good result":`نتيجة جيدة`,"Bad result":`نتيجة سيئة`,"Dialog Close":`إغلاق مربع الحوار`,Notifications:`الإشعارات`,Account:`الحساب`,Cart:`السلة`,Call:`مكالمة`,"Video call":`مكالمة فيديو`,Message:`رسالة`,Main:`الرئيسي`,Columns:`الأعمدة`,"No results.":`لا توجد نتائج.`,"No results":`لا توجد نتائج`,"No results found":`لم يُعثر على نتائج`,"Drop files here":`أفلت الملفات هنا`,"Drag & drop files here":`اسحب الملفات وأفلتها هنا`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`أو انقر للاستعراض (بحد أقصى {maxFiles} ملفات، {maxSize} ميغابايت لكل ملف)`,"Remove {name}":`إزالة {name}`,"{selected} of {total} row(s) selected.":`تم تحديد {selected} من {total}.`,"Try again":`حاول مرة أخرى`,"What’s up next?":`ما التالي؟`,"Show password":`إظهار كلمة المرور`,"Hide password":`إخفاء كلمة المرور`,"Search icons":`البحث عن أيقونات`,"No icon matches":`لا توجد أيقونة مطابقة`,"Show all items ({n})":`عرض الكل ({n})`,"Fewer {what}":`{what} أقل`,"More {what}":`المزيد من {what}`,"No tasks available. Add tasks to display Gantt chart.":`لا توجد مهام. أضف مهامًا لعرض مخطط جانت.`,January:`يناير`,February:`فبراير`,March:`مارس`,April:`أبريل`,May:`مايو`,June:`يونيو`,July:`يوليو`,August:`أغسطس`,September:`سبتمبر`,October:`أكتوبر`,November:`نوفمبر`,December:`ديسمبر`,Su:`ح`,Mo:`ن`,Tu:`ث`,We:`ر`,Th:`خ`,Fr:`ج`,Sa:`س`,"just now":`الآن`,"in a moment":`بعد لحظات`,"in 1 minute":`خلال دقيقة واحدة`,"in {n} minutes":`خلال {n} دقائق`,"in 1 hour":`خلال ساعة واحدة`,"in {n} hours":`خلال {n} ساعات`,tomorrow:`غدًا`,"in {n} days":`خلال {n} أيام`,"in 1 week":`خلال أسبوع واحد`,"in {n} weeks":`خلال {n} أسابيع`,"in 1 month":`خلال شهر واحد`,"in {n} months":`خلال {n} أشهر`,"in 1 year":`خلال سنة واحدة`,"in {n} years":`خلال {n} سنوات`,"1 minute ago":`قبل دقيقة واحدة`,"{n} minutes ago":`قبل {n} دقائق`,"1 hour ago":`قبل ساعة واحدة`,"{n} hours ago":`قبل {n} ساعات`,"1 day ago":`قبل يوم واحد`,"{n} days ago":`قبل {n} أيام`,"1 week ago":`قبل أسبوع واحد`,"{n} weeks ago":`قبل {n} أسابيع`,"1 month ago":`قبل شهر واحد`,"{n} months ago":`قبل {n} أشهر`,"1 year ago":`قبل سنة واحدة`,"{n} years ago":`قبل {n} سنوات`,"Cookie notice":`إشعار ملفات تعريف الارتباط`,"Cookie preferences":`تفضيلات ملفات تعريف الارتباط`,"Close and use essential cookies only":`إغلاق واستخدام ملفات تعريف الارتباط الأساسية فقط`,Back:`رجوع`,"Log in":`تسجيل الدخول`,"Search Hanzo or ask AI":`ابحث في Hanzo أو اسأل الذكاء الاصطناعي`,"Search models":`البحث عن النماذج`,"Search branches…":`البحث عن الفروع…`,"Search repositories…":`البحث عن المستودعات…`,"Show options":`إظهار الخيارات`,Retry:`إعادة المحاولة`,"Donut chart":`مخطط حلقي`,"Find an organization":`العثور على مؤسسة`,Organizations:`المؤسسات`,"Organization name":`اسم المؤسسة`,"Previous page":`الصفحة السابقة`,"Next page":`الصفحة التالية`,"Continue with credits":`المتابعة باستخدام الرصيد`,"Try Hanzo":`جرّب Hanzo`,"Terms & Policies":`الشروط والسياسات`,"Who this is for":`لمن هذا`,"Bill yearly":`فوترة سنوية`,Apps:`التطبيقات`,"Card actions":`إجراءات البطاقة`,"Assign to...":`تعيين إلى...`,"Search cards...":`البحث في البطاقات...`,"Clear search":`مسح البحث`,"Open files":`الملفات المفتوحة`,"Close panel":`إغلاق اللوحة`,"Add an organization":`إضافة مؤسسة`,"Keyboard Shortcuts":`اختصارات لوحة المفاتيح`,"Run a command":`تشغيل أمر`,"Type shell command...":`اكتب أمر الصدفة...`,"Attached to the next message":`مرفق بالرسالة التالية`,"Channel Member Roster":`أعضاء القناة`,"Channel Collaborative Notes":`ملاحظات القناة المشتركة`,"Code Diff Viewer":`عارض الفروق`,"Live Voice Call":`مكالمة صوتية مباشرة`,"MCP Server Hub":`مركز خوادم MCP`,"Multi-Agent Swarm Bar":`شريط سرب الوكلاء`,"Write shared channel notes, meeting agenda, or AI summaries...":`اكتب ملاحظات القناة أو جدول الاجتماع أو ملخصات الذكاء الاصطناعي...`,"Help improve our AI models":`ساعد في تحسين نماذج الذكاء الاصطناعي`,"Your name":`اسمك`,"Your role":`دورك`,"Country or region":`البلد أو المنطقة`,"Card details":`بيانات البطاقة`,"Agree to recurring charges":`الموافقة على الرسوم المتكررة`,"How you will use Hanzo":`كيف ستستخدم Hanzo`,"Team size":`حجم الفريق`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`أوافق على شروط الخدمة وسياسة الاستخدام المقبول وأؤكد أن عمري 18 عامًا على الأقل.`,"Empty string":`سلسلة فارغة`,"Empty array":`مصفوفة فارغة`,"Empty object":`كائن فارغ`,"Copy {what}":`نسخ {what}`,"Ask anything":`اسأل عن أي شيء`,Auto:`تلقائي`,Instant:`فوري`,Low:`منخفض`,Medium:`متوسط`,High:`عالٍ`,Max:`الحد الأقصى`,Dictate:`إملاء`,"Dictating — click to stop":`جارٍ الإملاء — انقر للإيقاف`,"Dictation settings":`إعدادات الإملاء`,Language:`اللغة`,"No devices found":`لم يُعثر على أجهزة`,"Microphone {n}":`ميكروفون {n}`,"Nothing matches":`لا يوجد تطابق`,Commands:`الأوامر`,"Search commands…":`البحث عن الأوامر…`,Agents:`الوكلاء`,Skills:`المهارات`,Connectors:`الموصّلات`,"Design system":`نظام التصميم`,Plugins:`الإضافات`,Devices:`الأجهزة`,Memory:`الذاكرة`,Research:`بحث متعمق`,On:`تشغيل`,"Upload or add files":`تحميل ملفات أو إضافتها`,"Add files, agents, skills and more":`أضف ملفاتًا ووكلاء ومهارات والمزيد`,"No agents yet":`لا يوجد وكلاء بعد`,"No skills yet":`لا توجد مهارات بعد`,"No connectors yet":`لا توجد موصّلات بعد`,"No design system yet":`لا يوجد نظام تصميم بعد`,"No plugins yet":`لا توجد إضافات بعد`,"No devices yet":`لا توجد أجهزة بعد`,"Search agents":`البحث عن الوكلاء`,"Search skills":`البحث عن المهارات`,"Search connectors":`البحث عن الموصّلات`,"Search design system":`البحث في نظام التصميم`,"Search plugins":`البحث عن الإضافات`,"Search devices":`البحث عن الأجهزة`,"Reading agents":`جارٍ قراءة الوكلاء`,"Reading skills":`جارٍ قراءة المهارات`,"Reading connectors":`جارٍ قراءة الموصّلات`,"Reading design system":`جارٍ قراءة نظام التصميم`,"Reading plugins":`جارٍ قراءة الإضافات`,"Adaptive reasoning based on task complexity":`استدلال متكيف حسب تعقيد المهمة`,"Answers right away, without thinking":`يجيب فورًا دون تفكير`,"A quick pass with minimal thinking":`مرور سريع بأقل قدر من التفكير`,"Thinks before answering":`يفكر قبل الإجابة`,"Deep reasoning for complex problems":`استدلال عميق للمشكلات المعقدة`,"Maximum compute and exhaustive verification":`أقصى حساب وتحقق شامل`,Effort:`الجهد`,"Effort: {level}":`الجهد: {level}`,Mode:`الوضع`,"Mode: {mode}":`الوضع: {mode}`,Model:`النموذج`,"Model: {name}":`النموذج: {name}`,"Voice mode":`وضع الصوت`,"Hanzo is speaking — talk to interrupt":`Hanzo يتحدث — تحدّث للمقاطعة`,"In conversation — click to hang up":`في محادثة — انقر لإنهاء المكالمة`,"Go to testimonial {n}":`الانتقال إلى الشهادة {n}`,"Go to card {n}":`الانتقال إلى البطاقة {n}`,"{n} of {total}":`{n} من {total}`,"Reading…":`جارٍ القراءة…`,Skill:`مهارة`,Plugin:`إضافة`},Yue={Close:`Schließen`,"Close window":`Fenster schließen`,"Minimize window":`Fenster minimieren`,"Restore window":`Fenster wiederherstellen`,"Maximize window":`Fenster maximieren`,Resize:`Größe ändern`,"Select all":`Alle auswählen`,"Select row":`Zeile auswählen`,"Previous month":`Vorheriger Monat`,"Next month":`Nächster Monat`,Dismiss:`Schließen`,Breadcrumb:`Brotkrumen`,Cards:`Karten`,"Copy code":`Code kopieren`,Copied:`Kopiert`,"Copied!":`Kopiert!`,Copy:`Kopieren`,"Previous slide":`Vorherige Folie`,"Next slide":`Nächste Folie`,"Previous card":`Vorherige Karte`,"Next card":`Nächste Karte`,"Zoom out":`Verkleinern`,"Zoom in":`Vergrößern`,Rotate:`Drehen`,Filter:`Filtern`,"Expand all":`Alle aufklappen`,"Collapse all":`Alle zuklappen`,"Search...":`Suchen...`,"Pick a date":`Datum wählen`,Select:`Auswählen`,"Start typing...":`Schreibe etwas...`,Search:`Suchen`,Decrease:`Verringern`,Increase:`Erhöhen`,pagination:`Seitennummerierung`,"Go to previous page":`Zur vorherigen Seite`,"Go to next page":`Zur nächsten Seite`,Previous:`Zurück`,Next:`Weiter`,"More pages":`Weitere Seiten`,Remove:`Entfernen`,"Go back":`Zurück`,"Go forward":`Vorwärts`,"Reload page":`Seite neu laden`,Share:`Teilen`,"New tab":`Neuer Tab`,Menu:`Menü`,"Copy command":`Befehl kopieren`,"Terminal input":`Terminaleingabe`,Seek:`Position`,"Rewind 10 seconds":`10 Sekunden zurück`,"Forward 10 seconds":`10 Sekunden vor`,Volume:`Lautstärke`,"Toggle captions":`Untertitel umschalten`,"Playback speed":`Wiedergabegeschwindigkeit`,Quality:`Qualität`,"Picture in picture":`Bild im Bild`,Play:`Wiedergabe`,Pause:`Pause`,Mute:`Stumm`,Unmute:`Ton an`,"Exit fullscreen":`Vollbild beenden`,"Enter fullscreen":`Vollbild`,Expand:`Aufklappen`,Collapse:`Zuklappen`,"Copy reply":`Antwort kopieren`,"Good result":`Gutes Ergebnis`,"Bad result":`Schlechtes Ergebnis`,"Dialog Close":`Dialog schließen`,Notifications:`Benachrichtigungen`,Account:`Konto`,Cart:`Warenkorb`,Call:`Anruf`,"Video call":`Videoanruf`,Message:`Nachricht`,Main:`Hauptnavigation`,Columns:`Spalten`,"No results.":`Keine Ergebnisse.`,"No results":`Keine Ergebnisse`,"No results found":`Keine Ergebnisse gefunden`,"Drop files here":`Dateien hier ablegen`,"Drag & drop files here":`Dateien hierher ziehen`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`oder klicken zum Durchsuchen (max. {maxFiles} Dateien, je {maxSize} MB)`,"Remove {name}":`{name} entfernen`,"{selected} of {total} row(s) selected.":`{selected} von {total} Zeile(n) ausgewählt.`,"Try again":`Erneut versuchen`,"What’s up next?":`Was steht als Nächstes an?`,"Show password":`Passwort anzeigen`,"Hide password":`Passwort verbergen`,"Search icons":`Symbole suchen`,"No icon matches":`Kein Symbol passt`,"Show all items ({n})":`Alle anzeigen ({n})`,"Fewer {what}":`Weniger {what}`,"More {what}":`Mehr {what}`,"No tasks available. Add tasks to display Gantt chart.":`Keine Aufgaben. Fügen Sie welche hinzu, um das Gantt-Diagramm zu sehen.`,January:`Januar`,February:`Februar`,March:`März`,April:`April`,May:`Mai`,June:`Juni`,July:`Juli`,August:`August`,September:`September`,October:`Oktober`,November:`November`,December:`Dezember`,Su:`So`,Mo:`Mo`,Tu:`Di`,We:`Mi`,Th:`Do`,Fr:`Fr`,Sa:`Sa`,"just now":`gerade eben`,"in a moment":`gleich`,"in 1 minute":`in 1 Minute`,"in {n} minutes":`in {n} Minuten`,"in 1 hour":`in 1 Stunde`,"in {n} hours":`in {n} Stunden`,tomorrow:`morgen`,"in {n} days":`in {n} Tagen`,"in 1 week":`in 1 Woche`,"in {n} weeks":`in {n} Wochen`,"in 1 month":`in 1 Monat`,"in {n} months":`in {n} Monaten`,"in 1 year":`in 1 Jahr`,"in {n} years":`in {n} Jahren`,"1 minute ago":`vor 1 Minute`,"{n} minutes ago":`vor {n} Minuten`,"1 hour ago":`vor 1 Stunde`,"{n} hours ago":`vor {n} Stunden`,"1 day ago":`vor 1 Tag`,"{n} days ago":`vor {n} Tagen`,"1 week ago":`vor 1 Woche`,"{n} weeks ago":`vor {n} Wochen`,"1 month ago":`vor 1 Monat`,"{n} months ago":`vor {n} Monaten`,"1 year ago":`vor 1 Jahr`,"{n} years ago":`vor {n} Jahren`,"Cookie notice":`Hinweis zu Cookies`,"Cookie preferences":`Cookie-Einstellungen`,"Close and use essential cookies only":`Schließen und nur essenzielle Cookies verwenden`,Back:`Zurück`,"Log in":`Anmelden`,"Search Hanzo or ask AI":`Hanzo durchsuchen oder die KI fragen`,"Search models":`Modelle suchen`,"Search branches…":`Branches suchen…`,"Search repositories…":`Repositories suchen…`,"Show options":`Optionen anzeigen`,Retry:`Wiederholen`,"Donut chart":`Ringdiagramm`,"Find an organization":`Organisation finden`,Organizations:`Organisationen`,"Organization name":`Name der Organisation`,"Previous page":`Vorherige Seite`,"Next page":`Nächste Seite`,"Continue with credits":`Mit Guthaben fortfahren`,"Try Hanzo":`Hanzo ausprobieren`,"Terms & Policies":`Bedingungen und Richtlinien`,"Who this is for":`Für wen es ist`,"Bill yearly":`Jährlich abrechnen`,Apps:`Apps`,"Card actions":`Kartenaktionen`,"Assign to...":`Zuweisen an...`,"Search cards...":`Karten suchen...`,"Clear search":`Suche löschen`,"Open files":`Geöffnete Dateien`,"Close panel":`Bereich schließen`,"Add an organization":`Organisation hinzufügen`,"Keyboard Shortcuts":`Tastenkürzel`,"Run a command":`Befehl ausführen`,"Type shell command...":`Shell-Befehl eingeben...`,"Attached to the next message":`An die nächste Nachricht angehängt`,"Channel Member Roster":`Kanalmitglieder`,"Channel Collaborative Notes":`Gemeinsame Kanalnotizen`,"Code Diff Viewer":`Diff-Ansicht`,"Live Voice Call":`Live-Sprachanruf`,"MCP Server Hub":`MCP-Server-Hub`,"Multi-Agent Swarm Bar":`Leiste für den Agentenschwarm`,"Write shared channel notes, meeting agenda, or AI summaries...":`Gemeinsame Notizen, Tagesordnung oder KI-Zusammenfassungen schreiben...`,"Help improve our AI models":`Hilf mit, unsere KI-Modelle zu verbessern`,"Your name":`Dein Name`,"Your role":`Deine Rolle`,"Country or region":`Land oder Region`,"Card details":`Kartendaten`,"Agree to recurring charges":`Wiederkehrenden Abbuchungen zustimmen`,"How you will use Hanzo":`Wie du Hanzo nutzen wirst`,"Team size":`Teamgröße`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Ich stimme den Nutzungsbedingungen und der Richtlinie zur akzeptablen Nutzung zu und bestätige, dass ich mindestens 18 Jahre alt bin.`,"Empty string":`Leere Zeichenkette`,"Empty array":`Leeres Array`,"Empty object":`Leeres Objekt`,"Copy {what}":`{what} kopieren`,"Ask anything":`Frag nach allem`,Auto:`Auto`,Instant:`Sofort`,Low:`Niedrig`,Medium:`Mittel`,High:`Hoch`,Max:`Maximal`,Dictate:`Diktieren`,"Dictating — click to stop":`Diktat läuft — zum Stoppen klicken`,"Dictation settings":`Diktateinstellungen`,Language:`Sprache`,"No devices found":`Keine Geräte gefunden`,"Microphone {n}":`Mikrofon {n}`,"Nothing matches":`Nichts passt`,Commands:`Befehle`,"Search commands…":`Befehle suchen…`,Agents:`Agenten`,Skills:`Fähigkeiten`,Connectors:`Konnektoren`,"Design system":`Designsystem`,Plugins:`Plugins`,Devices:`Geräte`,Memory:`Gedächtnis`,Research:`Recherche`,On:`An`,"Upload or add files":`Dateien hochladen oder hinzufügen`,"Add files, agents, skills and more":`Dateien, Agenten, Fähigkeiten und mehr hinzufügen`,"No agents yet":`Noch keine Agenten`,"No skills yet":`Noch keine Fähigkeiten`,"No connectors yet":`Noch keine Konnektoren`,"No design system yet":`Noch kein Designsystem`,"No plugins yet":`Noch keine Plugins`,"No devices yet":`Noch keine Geräte`,"Search agents":`Agenten suchen`,"Search skills":`Fähigkeiten suchen`,"Search connectors":`Konnektoren suchen`,"Search design system":`Designsystem durchsuchen`,"Search plugins":`Plugins suchen`,"Search devices":`Geräte suchen`,"Reading agents":`Agenten werden gelesen`,"Reading skills":`Fähigkeiten werden gelesen`,"Reading connectors":`Konnektoren werden gelesen`,"Reading design system":`Designsystem wird gelesen`,"Reading plugins":`Plugins werden gelesen`,"Adaptive reasoning based on task complexity":`Adaptives Denken je nach Komplexität der Aufgabe`,"Answers right away, without thinking":`Antwortet sofort, ohne nachzudenken`,"A quick pass with minimal thinking":`Ein schneller Durchgang mit wenig Nachdenken`,"Thinks before answering":`Denkt nach, bevor es antwortet`,"Deep reasoning for complex problems":`Tiefes Nachdenken bei komplexen Problemen`,"Maximum compute and exhaustive verification":`Maximales Rechnen und gründliche Prüfung`,Effort:`Aufwand`,"Effort: {level}":`Aufwand: {level}`,Mode:`Modus`,"Mode: {mode}":`Modus: {mode}`,Model:`Modell`,"Model: {name}":`Modell: {name}`,"Voice mode":`Sprachmodus`,"Hanzo is speaking — talk to interrupt":`Hanzo spricht — sprich, um zu unterbrechen`,"In conversation — click to hang up":`Im Gespräch — zum Auflegen klicken`,"Go to testimonial {n}":`Zu Testimonial {n}`,"Go to card {n}":`Zu Karte {n}`,"{n} of {total}":`{n} von {total}`,"Reading…":`Wird gelesen…`,Skill:`Fähigkeit`,Plugin:`Plugin`},Xue={Close:`Cerrar`,"Close window":`Cerrar ventana`,"Minimize window":`Minimizar ventana`,"Restore window":`Restaurar ventana`,"Maximize window":`Maximizar ventana`,Resize:`Cambiar tamaño`,"Select all":`Seleccionar todo`,"Select row":`Seleccionar fila`,"Previous month":`Mes anterior`,"Next month":`Mes siguiente`,Dismiss:`Descartar`,Breadcrumb:`Ruta de navegación`,Cards:`Tarjetas`,"Copy code":`Copiar código`,Copied:`Copiado`,"Copied!":`¡Copiado!`,Copy:`Copiar`,"Previous slide":`Diapositiva anterior`,"Next slide":`Diapositiva siguiente`,"Previous card":`Tarjeta anterior`,"Next card":`Tarjeta siguiente`,"Zoom out":`Alejar`,"Zoom in":`Acercar`,Rotate:`Girar`,Filter:`Filtrar`,"Expand all":`Expandir todo`,"Collapse all":`Contraer todo`,"Search...":`Buscar...`,"Pick a date":`Elige una fecha`,Select:`Seleccionar`,"Start typing...":`Empieza a escribir...`,Search:`Buscar`,Decrease:`Disminuir`,Increase:`Aumentar`,pagination:`paginación`,"Go to previous page":`Ir a la página anterior`,"Go to next page":`Ir a la página siguiente`,Previous:`Anterior`,Next:`Siguiente`,"More pages":`Más páginas`,Remove:`Quitar`,"Go back":`Volver`,"Go forward":`Avanzar`,"Reload page":`Recargar página`,Share:`Compartir`,"New tab":`Nueva pestaña`,Menu:`Menú`,"Copy command":`Copiar comando`,"Terminal input":`Entrada del terminal`,Seek:`Buscar posición`,"Rewind 10 seconds":`Retroceder 10 segundos`,"Forward 10 seconds":`Adelantar 10 segundos`,Volume:`Volumen`,"Toggle captions":`Mostrar u ocultar subtítulos`,"Playback speed":`Velocidad de reproducción`,Quality:`Calidad`,"Picture in picture":`Imagen en imagen`,Play:`Reproducir`,Pause:`Pausa`,Mute:`Silenciar`,Unmute:`Activar sonido`,"Exit fullscreen":`Salir de pantalla completa`,"Enter fullscreen":`Pantalla completa`,Expand:`Expandir`,Collapse:`Contraer`,"Copy reply":`Copiar respuesta`,"Good result":`Buen resultado`,"Bad result":`Mal resultado`,"Dialog Close":`Cerrar diálogo`,Notifications:`Notificaciones`,Account:`Cuenta`,Cart:`Carrito`,Call:`Llamada`,"Video call":`Videollamada`,Message:`Mensaje`,Main:`Principal`,Columns:`Columnas`,"No results.":`No hay resultados.`,"No results":`No hay resultados`,"No results found":`No se encontraron resultados`,"Drop files here":`Suelta los archivos aquí`,"Drag & drop files here":`Arrastra y suelta archivos aquí`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`o haz clic para explorar (máx. {maxFiles} archivos, {maxSize} MB cada uno)`,"Remove {name}":`Quitar {name}`,"{selected} of {total} row(s) selected.":`{selected} de {total} fila(s) seleccionada(s).`,"Try again":`Intentar de nuevo`,"What’s up next?":`¿Qué sigue?`,"Show password":`Mostrar contraseña`,"Hide password":`Ocultar contraseña`,"Search icons":`Buscar iconos`,"No icon matches":`Ningún icono coincide`,"Show all items ({n})":`Mostrar todos ({n})`,"Fewer {what}":`Menos {what}`,"More {what}":`Más {what}`,"No tasks available. Add tasks to display Gantt chart.":`No hay tareas. Añade tareas para ver el diagrama de Gantt.`,January:`Enero`,February:`Febrero`,March:`Marzo`,April:`Abril`,May:`Mayo`,June:`Junio`,July:`Julio`,August:`Agosto`,September:`Septiembre`,October:`Octubre`,November:`Noviembre`,December:`Diciembre`,Su:`do`,Mo:`lu`,Tu:`ma`,We:`mi`,Th:`ju`,Fr:`vi`,Sa:`sá`,"just now":`ahora mismo`,"in a moment":`en un momento`,"in 1 minute":`en 1 minuto`,"in {n} minutes":`en {n} minutos`,"in 1 hour":`en 1 hora`,"in {n} hours":`en {n} horas`,tomorrow:`mañana`,"in {n} days":`en {n} días`,"in 1 week":`en 1 semana`,"in {n} weeks":`en {n} semanas`,"in 1 month":`en 1 mes`,"in {n} months":`en {n} meses`,"in 1 year":`en 1 año`,"in {n} years":`en {n} años`,"1 minute ago":`hace 1 minuto`,"{n} minutes ago":`hace {n} minutos`,"1 hour ago":`hace 1 hora`,"{n} hours ago":`hace {n} horas`,"1 day ago":`hace 1 día`,"{n} days ago":`hace {n} días`,"1 week ago":`hace 1 semana`,"{n} weeks ago":`hace {n} semanas`,"1 month ago":`hace 1 mes`,"{n} months ago":`hace {n} meses`,"1 year ago":`hace 1 año`,"{n} years ago":`hace {n} años`,"Cookie notice":`Aviso de cookies`,"Cookie preferences":`Preferencias de cookies`,"Close and use essential cookies only":`Cerrar y usar solo cookies esenciales`,Back:`Atrás`,"Log in":`Iniciar sesión`,"Search Hanzo or ask AI":`Busca en Hanzo o pregunta a la IA`,"Search models":`Buscar modelos`,"Search branches…":`Buscar ramas…`,"Search repositories…":`Buscar repositorios…`,"Show options":`Mostrar opciones`,Retry:`Reintentar`,"Donut chart":`Gráfico de anillo`,"Find an organization":`Buscar una organización`,Organizations:`Organizaciones`,"Organization name":`Nombre de la organización`,"Previous page":`Página anterior`,"Next page":`Página siguiente`,"Continue with credits":`Continuar con créditos`,"Try Hanzo":`Probar Hanzo`,"Terms & Policies":`Términos y políticas`,"Who this is for":`Para quién es`,"Bill yearly":`Facturación anual`,Apps:`Aplicaciones`,"Card actions":`Acciones de la tarjeta`,"Assign to...":`Asignar a...`,"Search cards...":`Buscar tarjetas...`,"Clear search":`Borrar búsqueda`,"Open files":`Archivos abiertos`,"Close panel":`Cerrar panel`,"Add an organization":`Añadir una organización`,"Keyboard Shortcuts":`Atajos de teclado`,"Run a command":`Ejecutar un comando`,"Type shell command...":`Escribe un comando de shell...`,"Attached to the next message":`Adjunto al próximo mensaje`,"Channel Member Roster":`Miembros del canal`,"Channel Collaborative Notes":`Notas compartidas del canal`,"Code Diff Viewer":`Visor de diferencias`,"Live Voice Call":`Llamada de voz en vivo`,"MCP Server Hub":`Centro de servidores MCP`,"Multi-Agent Swarm Bar":`Barra del enjambre de agentes`,"Write shared channel notes, meeting agenda, or AI summaries...":`Escribe notas del canal, el orden del día o resúmenes de la IA...`,"Help improve our AI models":`Ayuda a mejorar nuestros modelos de IA`,"Your name":`Tu nombre`,"Your role":`Tu rol`,"Country or region":`País o región`,"Card details":`Datos de la tarjeta`,"Agree to recurring charges":`Acepto los cargos recurrentes`,"How you will use Hanzo":`Cómo usarás Hanzo`,"Team size":`Tamaño del equipo`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Acepto las Condiciones del servicio y la Política de uso aceptable y confirmo que tengo al menos 18 años.`,"Empty string":`Cadena vacía`,"Empty array":`Arreglo vacío`,"Empty object":`Objeto vacío`,"Copy {what}":`Copiar {what}`,"Ask anything":`Pregunta lo que quieras`,Auto:`Auto`,Instant:`Instantáneo`,Low:`Bajo`,Medium:`Medio`,High:`Alto`,Max:`Máximo`,Dictate:`Dictar`,"Dictating — click to stop":`Dictando — haz clic para detener`,"Dictation settings":`Ajustes de dictado`,Language:`Idioma`,"No devices found":`No se encontraron dispositivos`,"Microphone {n}":`Micrófono {n}`,"Nothing matches":`Nada coincide`,Commands:`Comandos`,"Search commands…":`Buscar comandos…`,Agents:`Agentes`,Skills:`Habilidades`,Connectors:`Conectores`,"Design system":`Sistema de diseño`,Plugins:`Complementos`,Devices:`Dispositivos`,Memory:`Memoria`,Research:`Investigación`,On:`Activado`,"Upload or add files":`Subir o añadir archivos`,"Add files, agents, skills and more":`Añade archivos, agentes, habilidades y más`,"No agents yet":`Aún no hay agentes`,"No skills yet":`Aún no hay habilidades`,"No connectors yet":`Aún no hay conectores`,"No design system yet":`Aún no hay sistema de diseño`,"No plugins yet":`Aún no hay complementos`,"No devices yet":`Aún no hay dispositivos`,"Search agents":`Buscar agentes`,"Search skills":`Buscar habilidades`,"Search connectors":`Buscar conectores`,"Search design system":`Buscar en el sistema de diseño`,"Search plugins":`Buscar complementos`,"Search devices":`Buscar dispositivos`,"Reading agents":`Leyendo agentes`,"Reading skills":`Leyendo habilidades`,"Reading connectors":`Leyendo conectores`,"Reading design system":`Leyendo el sistema de diseño`,"Reading plugins":`Leyendo complementos`,"Adaptive reasoning based on task complexity":`Razonamiento adaptativo según la complejidad de la tarea`,"Answers right away, without thinking":`Responde al instante, sin pensar`,"A quick pass with minimal thinking":`Una pasada rápida, con poco razonamiento`,"Thinks before answering":`Piensa antes de responder`,"Deep reasoning for complex problems":`Razonamiento profundo para problemas complejos`,"Maximum compute and exhaustive verification":`Cómputo máximo y verificación exhaustiva`,Effort:`Esfuerzo`,"Effort: {level}":`Esfuerzo: {level}`,Mode:`Modo`,"Mode: {mode}":`Modo: {mode}`,Model:`Modelo`,"Model: {name}":`Modelo: {name}`,"Voice mode":`Modo de voz`,"Hanzo is speaking — talk to interrupt":`Hanzo está hablando — habla para interrumpir`,"In conversation — click to hang up":`En conversación — haz clic para colgar`,"Go to testimonial {n}":`Ir al testimonio {n}`,"Go to card {n}":`Ir a la tarjeta {n}`,"{n} of {total}":`{n} de {total}`,"Reading…":`Leyendo…`,Skill:`Habilidad`,Plugin:`Complemento`},Zue={Close:`Fermer`,"Close window":`Fermer la fenêtre`,"Minimize window":`Réduire la fenêtre`,"Restore window":`Restaurer la fenêtre`,"Maximize window":`Agrandir la fenêtre`,Resize:`Redimensionner`,"Select all":`Tout sélectionner`,"Select row":`Sélectionner la ligne`,"Previous month":`Mois précédent`,"Next month":`Mois suivant`,Dismiss:`Ignorer`,Breadcrumb:`Fil d’Ariane`,Cards:`Cartes`,"Copy code":`Copier le code`,Copied:`Copié`,"Copied!":`Copié !`,Copy:`Copier`,"Previous slide":`Diapositive précédente`,"Next slide":`Diapositive suivante`,"Previous card":`Carte précédente`,"Next card":`Carte suivante`,"Zoom out":`Zoom arrière`,"Zoom in":`Zoom avant`,Rotate:`Pivoter`,Filter:`Filtrer`,"Expand all":`Tout développer`,"Collapse all":`Tout réduire`,"Search...":`Rechercher...`,"Pick a date":`Choisir une date`,Select:`Sélectionner`,"Start typing...":`Commencez à écrire...`,Search:`Rechercher`,Decrease:`Diminuer`,Increase:`Augmenter`,pagination:`pagination`,"Go to previous page":`Aller à la page précédente`,"Go to next page":`Aller à la page suivante`,Previous:`Précédent`,Next:`Suivant`,"More pages":`Plus de pages`,Remove:`Retirer`,"Go back":`Retour`,"Go forward":`Avancer`,"Reload page":`Recharger la page`,Share:`Partager`,"New tab":`Nouvel onglet`,Menu:`Menu`,"Copy command":`Copier la commande`,"Terminal input":`Saisie du terminal`,Seek:`Position de lecture`,"Rewind 10 seconds":`Reculer de 10 secondes`,"Forward 10 seconds":`Avancer de 10 secondes`,Volume:`Volume`,"Toggle captions":`Afficher ou masquer les sous-titres`,"Playback speed":`Vitesse de lecture`,Quality:`Qualité`,"Picture in picture":`Image dans l’image`,Play:`Lecture`,Pause:`Pause`,Mute:`Couper le son`,Unmute:`Réactiver le son`,"Exit fullscreen":`Quitter le plein écran`,"Enter fullscreen":`Plein écran`,Expand:`Développer`,Collapse:`Réduire`,"Copy reply":`Copier la réponse`,"Good result":`Bon résultat`,"Bad result":`Mauvais résultat`,"Dialog Close":`Fermer la boîte de dialogue`,Notifications:`Notifications`,Account:`Compte`,Cart:`Panier`,Call:`Appel`,"Video call":`Appel vidéo`,Message:`Message`,Main:`Principal`,Columns:`Colonnes`,"No results.":`Aucun résultat.`,"No results":`Aucun résultat`,"No results found":`Aucun résultat trouvé`,"Drop files here":`Déposez les fichiers ici`,"Drag & drop files here":`Glissez-déposez des fichiers ici`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`ou cliquez pour parcourir ({maxFiles} fichiers max., {maxSize} Mo chacun)`,"Remove {name}":`Retirer {name}`,"{selected} of {total} row(s) selected.":`{selected} sur {total} ligne(s) sélectionnée(s).`,"Try again":`Réessayer`,"What’s up next?":`Et ensuite ?`,"Show password":`Afficher le mot de passe`,"Hide password":`Masquer le mot de passe`,"Search icons":`Rechercher des icônes`,"No icon matches":`Aucune icône ne correspond`,"Show all items ({n})":`Tout afficher ({n})`,"Fewer {what}":`Moins de {what}`,"More {what}":`Plus de {what}`,"No tasks available. Add tasks to display Gantt chart.":`Aucune tâche. Ajoutez-en pour afficher le diagramme de Gantt.`,January:`janvier`,February:`février`,March:`mars`,April:`avril`,May:`mai`,June:`juin`,July:`juillet`,August:`août`,September:`septembre`,October:`octobre`,November:`novembre`,December:`décembre`,Su:`di`,Mo:`lu`,Tu:`ma`,We:`me`,Th:`je`,Fr:`ve`,Sa:`sa`,"just now":`à l’instant`,"in a moment":`dans un instant`,"in 1 minute":`dans 1 minute`,"in {n} minutes":`dans {n} minutes`,"in 1 hour":`dans 1 heure`,"in {n} hours":`dans {n} heures`,tomorrow:`demain`,"in {n} days":`dans {n} jours`,"in 1 week":`dans 1 semaine`,"in {n} weeks":`dans {n} semaines`,"in 1 month":`dans 1 mois`,"in {n} months":`dans {n} mois`,"in 1 year":`dans 1 an`,"in {n} years":`dans {n} ans`,"1 minute ago":`il y a 1 minute`,"{n} minutes ago":`il y a {n} minutes`,"1 hour ago":`il y a 1 heure`,"{n} hours ago":`il y a {n} heures`,"1 day ago":`il y a 1 jour`,"{n} days ago":`il y a {n} jours`,"1 week ago":`il y a 1 semaine`,"{n} weeks ago":`il y a {n} semaines`,"1 month ago":`il y a 1 mois`,"{n} months ago":`il y a {n} mois`,"1 year ago":`il y a 1 an`,"{n} years ago":`il y a {n} ans`,"Cookie notice":`Avis sur les cookies`,"Cookie preferences":`Préférences de cookies`,"Close and use essential cookies only":`Fermer et n’utiliser que les cookies essentiels`,Back:`Retour`,"Log in":`Se connecter`,"Search Hanzo or ask AI":`Rechercher dans Hanzo ou demander à l’IA`,"Search models":`Rechercher des modèles`,"Search branches…":`Rechercher des branches…`,"Search repositories…":`Rechercher des dépôts…`,"Show options":`Afficher les options`,Retry:`Réessayer`,"Donut chart":`Graphique en anneau`,"Find an organization":`Trouver une organisation`,Organizations:`Organisations`,"Organization name":`Nom de l’organisation`,"Previous page":`Page précédente`,"Next page":`Page suivante`,"Continue with credits":`Continuer avec des crédits`,"Try Hanzo":`Essayer Hanzo`,"Terms & Policies":`Conditions et politiques`,"Who this is for":`À qui cela s’adresse`,"Bill yearly":`Facturation annuelle`,Apps:`Applications`,"Card actions":`Actions de la carte`,"Assign to...":`Attribuer à...`,"Search cards...":`Rechercher des cartes...`,"Clear search":`Effacer la recherche`,"Open files":`Fichiers ouverts`,"Close panel":`Fermer le panneau`,"Add an organization":`Ajouter une organisation`,"Keyboard Shortcuts":`Raccourcis clavier`,"Run a command":`Exécuter une commande`,"Type shell command...":`Saisissez une commande shell...`,"Attached to the next message":`Joint au prochain message`,"Channel Member Roster":`Membres du canal`,"Channel Collaborative Notes":`Notes collaboratives du canal`,"Code Diff Viewer":`Visionneuse de diff`,"Live Voice Call":`Appel vocal en direct`,"MCP Server Hub":`Hub des serveurs MCP`,"Multi-Agent Swarm Bar":`Barre d’essaim multi-agents`,"Write shared channel notes, meeting agenda, or AI summaries...":`Écrivez des notes partagées, l’ordre du jour ou des résumés de l’IA...`,"Help improve our AI models":`Aidez à améliorer nos modèles d’IA`,"Your name":`Votre nom`,"Your role":`Votre rôle`,"Country or region":`Pays ou région`,"Card details":`Coordonnées de la carte`,"Agree to recurring charges":`J’accepte les prélèvements récurrents`,"How you will use Hanzo":`Comment vous utiliserez Hanzo`,"Team size":`Taille de l’équipe`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`J’accepte les Conditions d’utilisation et la Politique d’usage acceptable et je confirme avoir au moins 18 ans.`,"Empty string":`Chaîne vide`,"Empty array":`Tableau vide`,"Empty object":`Objet vide`,"Copy {what}":`Copier {what}`,"Ask anything":`Demandez n’importe quoi`,Auto:`Auto`,Instant:`Instantané`,Low:`Faible`,Medium:`Moyen`,High:`Élevé`,Max:`Max`,Dictate:`Dicter`,"Dictating — click to stop":`Dictée en cours — cliquez pour arrêter`,"Dictation settings":`Réglages de la dictée`,Language:`Langue`,"No devices found":`Aucun appareil trouvé`,"Microphone {n}":`Microphone {n}`,"Nothing matches":`Aucun résultat`,Commands:`Commandes`,"Search commands…":`Rechercher des commandes…`,Agents:`Agents`,Skills:`Compétences`,Connectors:`Connecteurs`,"Design system":`Système de design`,Plugins:`Plugins`,Devices:`Appareils`,Memory:`Mémoire`,Research:`Recherche`,On:`Activé`,"Upload or add files":`Téléverser ou ajouter des fichiers`,"Add files, agents, skills and more":`Ajoutez des fichiers, des agents, des compétences et plus`,"No agents yet":`Pas encore d’agents`,"No skills yet":`Pas encore de compétences`,"No connectors yet":`Pas encore de connecteurs`,"No design system yet":`Pas encore de système de design`,"No plugins yet":`Pas encore de plugins`,"No devices yet":`Pas encore d’appareils`,"Search agents":`Rechercher des agents`,"Search skills":`Rechercher des compétences`,"Search connectors":`Rechercher des connecteurs`,"Search design system":`Rechercher dans le système de design`,"Search plugins":`Rechercher des plugins`,"Search devices":`Rechercher des appareils`,"Reading agents":`Lecture des agents`,"Reading skills":`Lecture des compétences`,"Reading connectors":`Lecture des connecteurs`,"Reading design system":`Lecture du système de design`,"Reading plugins":`Lecture des plugins`,"Adaptive reasoning based on task complexity":`Raisonnement adaptatif selon la complexité de la tâche`,"Answers right away, without thinking":`Répond immédiatement, sans réfléchir`,"A quick pass with minimal thinking":`Un passage rapide, avec peu de réflexion`,"Thinks before answering":`Réfléchit avant de répondre`,"Deep reasoning for complex problems":`Raisonnement approfondi pour les problèmes complexes`,"Maximum compute and exhaustive verification":`Calcul maximal et vérification exhaustive`,Effort:`Effort`,"Effort: {level}":`Effort : {level}`,Mode:`Mode`,"Mode: {mode}":`Mode : {mode}`,Model:`Modèle`,"Model: {name}":`Modèle : {name}`,"Voice mode":`Mode vocal`,"Hanzo is speaking — talk to interrupt":`Hanzo parle — parlez pour interrompre`,"In conversation — click to hang up":`En conversation — cliquez pour raccrocher`,"Go to testimonial {n}":`Aller au témoignage {n}`,"Go to card {n}":`Aller à la carte {n}`,"{n} of {total}":`{n} sur {total}`,"Reading…":`Lecture…`,Skill:`Compétence`,Plugin:`Plugin`},Que={Close:`बंद करें`,"Close window":`विंडो बंद करें`,"Minimize window":`विंडो छोटा करें`,"Restore window":`विंडो पुनर्स्थापित करें`,"Maximize window":`विंडो बड़ा करें`,Resize:`आकार बदलें`,"Select all":`सभी चुनें`,"Select row":`पंक्ति चुनें`,"Previous month":`पिछला महीना`,"Next month":`अगला महीना`,Dismiss:`खारिज करें`,Breadcrumb:`ब्रेडक्रम्ब`,Cards:`कार्ड`,"Copy code":`कोड कॉपी करें`,Copied:`कॉपी हो गया`,"Copied!":`कॉपी हो गया!`,Copy:`कॉपी करें`,"Previous slide":`पिछली स्लाइड`,"Next slide":`अगली स्लाइड`,"Previous card":`पिछला कार्ड`,"Next card":`अगला कार्ड`,"Zoom out":`ज़ूम आउट`,"Zoom in":`ज़ूम इन`,Rotate:`घुमाएँ`,Filter:`फ़िल्टर`,"Expand all":`सभी विस्तृत करें`,"Collapse all":`सभी समेटें`,"Search...":`खोजें...`,"Pick a date":`तारीख चुनें`,Select:`चुनें`,"Start typing...":`लिखना शुरू करें...`,Search:`खोजें`,Decrease:`घटाएँ`,Increase:`बढ़ाएँ`,pagination:`पृष्ठांकन`,"Go to previous page":`पिछले पृष्ठ पर जाएँ`,"Go to next page":`अगले पृष्ठ पर जाएँ`,Previous:`पिछला`,Next:`अगला`,"More pages":`और पृष्ठ`,Remove:`हटाएँ`,"Go back":`वापस जाएँ`,"Go forward":`आगे जाएँ`,"Reload page":`पृष्ठ पुनः लोड करें`,Share:`साझा करें`,"New tab":`नया टैब`,Menu:`मेनू`,"Copy command":`कमांड कॉपी करें`,"Terminal input":`टर्मिनल इनपुट`,Seek:`स्थिति`,"Rewind 10 seconds":`10 सेकंड पीछे`,"Forward 10 seconds":`10 सेकंड आगे`,Volume:`आवाज़`,"Toggle captions":`कैप्शन टॉगल करें`,"Playback speed":`प्लेबैक गति`,Quality:`गुणवत्ता`,"Picture in picture":`पिक्चर इन पिक्चर`,Play:`चलाएँ`,Pause:`रोकें`,Mute:`म्यूट`,Unmute:`अनम्यूट`,"Exit fullscreen":`पूर्ण स्क्रीन से बाहर`,"Enter fullscreen":`पूर्ण स्क्रीन`,Expand:`विस्तृत करें`,Collapse:`समेटें`,"Copy reply":`जवाब कॉपी करें`,"Good result":`अच्छा परिणाम`,"Bad result":`खराब परिणाम`,"Dialog Close":`संवाद बंद करें`,Notifications:`सूचनाएँ`,Account:`खाता`,Cart:`कार्ट`,Call:`कॉल`,"Video call":`वीडियो कॉल`,Message:`संदेश`,Main:`मुख्य`,Columns:`कॉलम`,"No results.":`कोई परिणाम नहीं।`,"No results":`कोई परिणाम नहीं`,"No results found":`कोई परिणाम नहीं मिला`,"Drop files here":`फ़ाइलें यहाँ छोड़ें`,"Drag & drop files here":`फ़ाइलें खींचकर यहाँ छोड़ें`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`या ब्राउज़ करने के लिए क्लिक करें (अधिकतम {maxFiles} फ़ाइलें, प्रत्येक {maxSize} MB)`,"Remove {name}":`{name} हटाएँ`,"{selected} of {total} row(s) selected.":`{total} में से {selected} पंक्तियाँ चुनी गईं।`,"Try again":`फिर कोशिश करें`,"What’s up next?":`आगे क्या है?`,"Show password":`पासवर्ड दिखाएँ`,"Hide password":`पासवर्ड छिपाएँ`,"Search icons":`आइकन खोजें`,"No icon matches":`कोई आइकन मेल नहीं खाता`,"Show all items ({n})":`सभी दिखाएँ ({n})`,"Fewer {what}":`कम {what}`,"More {what}":`अधिक {what}`,"No tasks available. Add tasks to display Gantt chart.":`कोई कार्य नहीं। गैंट चार्ट के लिए कार्य जोड़ें।`,January:`जनवरी`,February:`फ़रवरी`,March:`मार्च`,April:`अप्रैल`,May:`मई`,June:`जून`,July:`जुलाई`,August:`अगस्त`,September:`सितंबर`,October:`अक्टूबर`,November:`नवंबर`,December:`दिसंबर`,Su:`र`,Mo:`सो`,Tu:`मं`,We:`बु`,Th:`गु`,Fr:`शु`,Sa:`श`,"just now":`अभी`,"in a moment":`थोड़ी देर में`,"in 1 minute":`1 मिनट में`,"in {n} minutes":`{n} मिनट में`,"in 1 hour":`1 घंटे में`,"in {n} hours":`{n} घंटे में`,tomorrow:`कल`,"in {n} days":`{n} दिन में`,"in 1 week":`1 हफ़्ते में`,"in {n} weeks":`{n} हफ़्ते में`,"in 1 month":`1 महीने में`,"in {n} months":`{n} महीने में`,"in 1 year":`1 साल में`,"in {n} years":`{n} साल में`,"1 minute ago":`1 मिनट पहले`,"{n} minutes ago":`{n} मिनट पहले`,"1 hour ago":`1 घंटे पहले`,"{n} hours ago":`{n} घंटे पहले`,"1 day ago":`1 दिन पहले`,"{n} days ago":`{n} दिन पहले`,"1 week ago":`1 हफ़्ते पहले`,"{n} weeks ago":`{n} हफ़्ते पहले`,"1 month ago":`1 महीने पहले`,"{n} months ago":`{n} महीने पहले`,"1 year ago":`1 साल पहले`,"{n} years ago":`{n} साल पहले`,"Cookie notice":`कुकी सूचना`,"Cookie preferences":`कुकी प्राथमिकताएँ`,"Close and use essential cookies only":`बंद करें और केवल आवश्यक कुकीज़ का उपयोग करें`,Back:`वापस`,"Log in":`लॉग इन`,"Search Hanzo or ask AI":`Hanzo में खोजें या AI से पूछें`,"Search models":`मॉडल खोजें`,"Search branches…":`ब्रांच खोजें…`,"Search repositories…":`रिपॉज़िटरी खोजें…`,"Show options":`विकल्प दिखाएँ`,Retry:`फिर से कोशिश करें`,"Donut chart":`डोनट चार्ट`,"Find an organization":`संगठन खोजें`,Organizations:`संगठन`,"Organization name":`संगठन का नाम`,"Previous page":`पिछला पृष्ठ`,"Next page":`अगला पृष्ठ`,"Continue with credits":`क्रेडिट से जारी रखें`,"Try Hanzo":`Hanzo आज़माएँ`,"Terms & Policies":`नियम और नीतियाँ`,"Who this is for":`यह किसके लिए है`,"Bill yearly":`वार्षिक बिल`,Apps:`ऐप्स`,"Card actions":`कार्ड क्रियाएँ`,"Assign to...":`इसे असाइन करें...`,"Search cards...":`कार्ड खोजें...`,"Clear search":`खोज साफ़ करें`,"Open files":`खुली फ़ाइलें`,"Close panel":`पैनल बंद करें`,"Add an organization":`संगठन जोड़ें`,"Keyboard Shortcuts":`कीबोर्ड शॉर्टकट`,"Run a command":`कमांड चलाएँ`,"Type shell command...":`शेल कमांड लिखें...`,"Attached to the next message":`अगले संदेश से जुड़ा`,"Channel Member Roster":`चैनल सदस्य`,"Channel Collaborative Notes":`चैनल के साझा नोट`,"Code Diff Viewer":`कोड डिफ़ व्यूअर`,"Live Voice Call":`लाइव वॉइस कॉल`,"MCP Server Hub":`MCP सर्वर हब`,"Multi-Agent Swarm Bar":`मल्टी-एजेंट स्वार्म बार`,"Write shared channel notes, meeting agenda, or AI summaries...":`चैनल नोट, एजेंडा या AI सार लिखें...`,"Help improve our AI models":`हमारे AI मॉडल बेहतर बनाने में मदद करें`,"Your name":`आपका नाम`,"Your role":`आपकी भूमिका`,"Country or region":`देश या क्षेत्र`,"Card details":`कार्ड विवरण`,"Agree to recurring charges":`आवर्ती शुल्क से सहमत हूँ`,"How you will use Hanzo":`आप Hanzo का उपयोग कैसे करेंगे`,"Team size":`टीम का आकार`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`मैं सेवा की शर्तों और स्वीकार्य उपयोग नीति से सहमत हूँ और पुष्टि करता हूँ कि मेरी आयु कम से कम 18 वर्ष है।`,"Empty string":`खाली स्ट्रिंग`,"Empty array":`खाली ऐरे`,"Empty object":`खाली ऑब्जेक्ट`,"Copy {what}":`{what} कॉपी करें`,"Ask anything":`कुछ भी पूछें`,Auto:`ऑटो`,Instant:`तुरंत`,Low:`कम`,Medium:`मध्यम`,High:`उच्च`,Max:`अधिकतम`,Dictate:`डिक्टेट`,"Dictating — click to stop":`डिक्टेशन चालू है — रोकने के लिए क्लिक करें`,"Dictation settings":`डिक्टेशन सेटिंग`,Language:`भाषा`,"No devices found":`कोई डिवाइस नहीं मिला`,"Microphone {n}":`माइक्रोफ़ोन {n}`,"Nothing matches":`कुछ मेल नहीं खाता`,Commands:`कमांड`,"Search commands…":`कमांड खोजें…`,Agents:`एजेंट`,Skills:`कौशल`,Connectors:`कनेक्टर`,"Design system":`डिज़ाइन सिस्टम`,Plugins:`प्लगइन`,Devices:`डिवाइस`,Memory:`मेमोरी`,Research:`रिसर्च`,On:`चालू`,"Upload or add files":`फ़ाइलें अपलोड या जोड़ें`,"Add files, agents, skills and more":`फ़ाइलें, एजेंट, कौशल और अधिक जोड़ें`,"No agents yet":`अभी कोई एजेंट नहीं`,"No skills yet":`अभी कोई कौशल नहीं`,"No connectors yet":`अभी कोई कनेक्टर नहीं`,"No design system yet":`अभी कोई डिज़ाइन सिस्टम नहीं`,"No plugins yet":`अभी कोई प्लगइन नहीं`,"No devices yet":`अभी कोई डिवाइस नहीं`,"Search agents":`एजेंट खोजें`,"Search skills":`कौशल खोजें`,"Search connectors":`कनेक्टर खोजें`,"Search design system":`डिज़ाइन सिस्टम खोजें`,"Search plugins":`प्लगइन खोजें`,"Search devices":`डिवाइस खोजें`,"Reading agents":`एजेंट पढ़े जा रहे हैं`,"Reading skills":`कौशल पढ़े जा रहे हैं`,"Reading connectors":`कनेक्टर पढ़े जा रहे हैं`,"Reading design system":`डिज़ाइन सिस्टम पढ़ा जा रहा है`,"Reading plugins":`प्लगइन पढ़े जा रहे हैं`,"Adaptive reasoning based on task complexity":`कार्य की जटिलता के अनुसार अनुकूल तर्क`,"Answers right away, without thinking":`बिना सोचे तुरंत जवाब देता है`,"A quick pass with minimal thinking":`कम सोच के साथ एक त्वरित पास`,"Thinks before answering":`जवाब से पहले सोचता है`,"Deep reasoning for complex problems":`जटिल समस्याओं के लिए गहरा तर्क`,"Maximum compute and exhaustive verification":`अधिकतम कंप्यूट और पूरी जाँच`,Effort:`प्रयास`,"Effort: {level}":`प्रयास: {level}`,Mode:`मोड`,"Mode: {mode}":`मोड: {mode}`,Model:`मॉडल`,"Model: {name}":`मॉडल: {name}`,"Voice mode":`वॉइस मोड`,"Hanzo is speaking — talk to interrupt":`Hanzo बोल रहा है — बीच में बोलें`,"In conversation — click to hang up":`बातचीत में — काटने के लिए क्लिक करें`,"Go to testimonial {n}":`प्रशंसापत्र {n} पर जाएँ`,"Go to card {n}":`कार्ड {n} पर जाएँ`,"{n} of {total}":`{n} / {total}`,"Reading…":`पढ़ा जा रहा है…`,Skill:`कौशल`,Plugin:`प्लगइन`},$ue={Close:`Tutup`,"Close window":`Tutup jendela`,"Minimize window":`Minimalkan jendela`,"Restore window":`Pulihkan jendela`,"Maximize window":`Maksimalkan jendela`,Resize:`Ubah ukuran`,"Select all":`Pilih semua`,"Select row":`Pilih baris`,"Previous month":`Bulan sebelumnya`,"Next month":`Bulan berikutnya`,Dismiss:`Tutup`,Breadcrumb:`Jejak navigasi`,Cards:`Kartu`,"Copy code":`Salin kode`,Copied:`Disalin`,"Copied!":`Disalin!`,Copy:`Salin`,"Previous slide":`Slide sebelumnya`,"Next slide":`Slide berikutnya`,"Previous card":`Kartu sebelumnya`,"Next card":`Kartu berikutnya`,"Zoom out":`Perkecil`,"Zoom in":`Perbesar`,Rotate:`Putar`,Filter:`Filter`,"Expand all":`Bentangkan semua`,"Collapse all":`Ciutkan semua`,"Search...":`Cari...`,"Pick a date":`Pilih tanggal`,Select:`Pilih`,"Start typing...":`Mulai mengetik...`,Search:`Cari`,Decrease:`Kurangi`,Increase:`Tambah`,pagination:`paginasi`,"Go to previous page":`Ke halaman sebelumnya`,"Go to next page":`Ke halaman berikutnya`,Previous:`Sebelumnya`,Next:`Berikutnya`,"More pages":`Halaman lainnya`,Remove:`Hapus`,"Go back":`Kembali`,"Go forward":`Maju`,"Reload page":`Muat ulang halaman`,Share:`Bagikan`,"New tab":`Tab baru`,Menu:`Menu`,"Copy command":`Salin perintah`,"Terminal input":`Masukan terminal`,Seek:`Geser`,"Rewind 10 seconds":`Mundur 10 detik`,"Forward 10 seconds":`Maju 10 detik`,Volume:`Volume`,"Toggle captions":`Alihkan takarir`,"Playback speed":`Kecepatan pemutaran`,Quality:`Kualitas`,"Picture in picture":`Gambar dalam gambar`,Play:`Putar`,Pause:`Jeda`,Mute:`Bisukan`,Unmute:`Nyalakan suara`,"Exit fullscreen":`Keluar dari layar penuh`,"Enter fullscreen":`Layar penuh`,Expand:`Bentangkan`,Collapse:`Ciutkan`,"Copy reply":`Salin balasan`,"Good result":`Hasil baik`,"Bad result":`Hasil buruk`,"Dialog Close":`Tutup dialog`,Notifications:`Notifikasi`,Account:`Akun`,Cart:`Keranjang`,Call:`Panggilan`,"Video call":`Panggilan video`,Message:`Pesan`,Main:`Utama`,Columns:`Kolom`,"No results.":`Tidak ada hasil.`,"No results":`Tidak ada hasil`,"No results found":`Tidak ada hasil yang ditemukan`,"Drop files here":`Letakkan file di sini`,"Drag & drop files here":`Seret dan lepas file di sini`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`atau klik untuk menelusuri (maks. {maxFiles} file, masing-masing {maxSize} MB)`,"Remove {name}":`Hapus {name}`,"{selected} of {total} row(s) selected.":`{selected} dari {total} baris dipilih.`,"Try again":`Coba lagi`,"What’s up next?":`Selanjutnya apa?`,"Show password":`Tampilkan kata sandi`,"Hide password":`Sembunyikan kata sandi`,"Search icons":`Cari ikon`,"No icon matches":`Tidak ada ikon yang cocok`,"Show all items ({n})":`Tampilkan semua ({n})`,"Fewer {what}":`Lebih sedikit {what}`,"More {what}":`Lebih banyak {what}`,"No tasks available. Add tasks to display Gantt chart.":`Tidak ada tugas. Tambahkan tugas untuk menampilkan bagan Gantt.`,January:`Januari`,February:`Februari`,March:`Maret`,April:`April`,May:`Mei`,June:`Juni`,July:`Juli`,August:`Agustus`,September:`September`,October:`Oktober`,November:`November`,December:`Desember`,Su:`Mg`,Mo:`Sn`,Tu:`Sl`,We:`Rb`,Th:`Km`,Fr:`Jm`,Sa:`Sb`,"just now":`baru saja`,"in a moment":`sebentar lagi`,"in 1 minute":`dalam 1 menit`,"in {n} minutes":`dalam {n} menit`,"in 1 hour":`dalam 1 jam`,"in {n} hours":`dalam {n} jam`,tomorrow:`besok`,"in {n} days":`dalam {n} hari`,"in 1 week":`dalam 1 minggu`,"in {n} weeks":`dalam {n} minggu`,"in 1 month":`dalam 1 bulan`,"in {n} months":`dalam {n} bulan`,"in 1 year":`dalam 1 tahun`,"in {n} years":`dalam {n} tahun`,"1 minute ago":`1 menit yang lalu`,"{n} minutes ago":`{n} menit yang lalu`,"1 hour ago":`1 jam yang lalu`,"{n} hours ago":`{n} jam yang lalu`,"1 day ago":`1 hari yang lalu`,"{n} days ago":`{n} hari yang lalu`,"1 week ago":`1 minggu yang lalu`,"{n} weeks ago":`{n} minggu yang lalu`,"1 month ago":`1 bulan yang lalu`,"{n} months ago":`{n} bulan yang lalu`,"1 year ago":`1 tahun yang lalu`,"{n} years ago":`{n} tahun yang lalu`,"Cookie notice":`Pemberitahuan cookie`,"Cookie preferences":`Preferensi cookie`,"Close and use essential cookies only":`Tutup dan gunakan cookie penting saja`,Back:`Kembali`,"Log in":`Masuk`,"Search Hanzo or ask AI":`Cari di Hanzo atau tanya AI`,"Search models":`Cari model`,"Search branches…":`Cari cabang…`,"Search repositories…":`Cari repositori…`,"Show options":`Tampilkan opsi`,Retry:`Coba lagi`,"Donut chart":`Diagram donat`,"Find an organization":`Cari organisasi`,Organizations:`Organisasi`,"Organization name":`Nama organisasi`,"Previous page":`Halaman sebelumnya`,"Next page":`Halaman berikutnya`,"Continue with credits":`Lanjutkan dengan kredit`,"Try Hanzo":`Coba Hanzo`,"Terms & Policies":`Syarat dan kebijakan`,"Who this is for":`Untuk siapa`,"Bill yearly":`Tagihan tahunan`,Apps:`Aplikasi`,"Card actions":`Tindakan kartu`,"Assign to...":`Tetapkan ke...`,"Search cards...":`Cari kartu...`,"Clear search":`Hapus pencarian`,"Open files":`File terbuka`,"Close panel":`Tutup panel`,"Add an organization":`Tambah organisasi`,"Keyboard Shortcuts":`Pintasan keyboard`,"Run a command":`Jalankan perintah`,"Type shell command...":`Ketik perintah shell...`,"Attached to the next message":`Dilampirkan ke pesan berikutnya`,"Channel Member Roster":`Anggota kanal`,"Channel Collaborative Notes":`Catatan kolaboratif kanal`,"Code Diff Viewer":`Penampil diff kode`,"Live Voice Call":`Panggilan suara langsung`,"MCP Server Hub":`Hub server MCP`,"Multi-Agent Swarm Bar":`Bilah kawanan agen`,"Write shared channel notes, meeting agenda, or AI summaries...":`Tulis catatan kanal, agenda, atau ringkasan AI...`,"Help improve our AI models":`Bantu tingkatkan model AI kami`,"Your name":`Nama Anda`,"Your role":`Peran Anda`,"Country or region":`Negara atau wilayah`,"Card details":`Detail kartu`,"Agree to recurring charges":`Setuju dengan tagihan berulang`,"How you will use Hanzo":`Cara Anda memakai Hanzo`,"Team size":`Ukuran tim`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Saya menyetujui Ketentuan Layanan dan Kebijakan Penggunaan yang Dapat Diterima serta menyatakan berusia minimal 18 tahun.`,"Empty string":`String kosong`,"Empty array":`Array kosong`,"Empty object":`Objek kosong`,"Copy {what}":`Salin {what}`,"Ask anything":`Tanyakan apa saja`,Auto:`Otomatis`,Instant:`Instan`,Low:`Rendah`,Medium:`Sedang`,High:`Tinggi`,Max:`Maks`,Dictate:`Dikte`,"Dictating — click to stop":`Sedang mendikte — klik untuk berhenti`,"Dictation settings":`Pengaturan dikte`,Language:`Bahasa`,"No devices found":`Tidak ada perangkat`,"Microphone {n}":`Mikrofon {n}`,"Nothing matches":`Tidak ada yang cocok`,Commands:`Perintah`,"Search commands…":`Cari perintah…`,Agents:`Agen`,Skills:`Keterampilan`,Connectors:`Konektor`,"Design system":`Sistem desain`,Plugins:`Plugin`,Devices:`Perangkat`,Memory:`Memori`,Research:`Riset`,On:`Nyala`,"Upload or add files":`Unggah atau tambah file`,"Add files, agents, skills and more":`Tambah file, agen, keterampilan, dan lainnya`,"No agents yet":`Belum ada agen`,"No skills yet":`Belum ada keterampilan`,"No connectors yet":`Belum ada konektor`,"No design system yet":`Belum ada sistem desain`,"No plugins yet":`Belum ada plugin`,"No devices yet":`Belum ada perangkat`,"Search agents":`Cari agen`,"Search skills":`Cari keterampilan`,"Search connectors":`Cari konektor`,"Search design system":`Cari sistem desain`,"Search plugins":`Cari plugin`,"Search devices":`Cari perangkat`,"Reading agents":`Membaca agen`,"Reading skills":`Membaca keterampilan`,"Reading connectors":`Membaca konektor`,"Reading design system":`Membaca sistem desain`,"Reading plugins":`Membaca plugin`,"Adaptive reasoning based on task complexity":`Penalaran adaptif sesuai kompleksitas tugas`,"Answers right away, without thinking":`Langsung menjawab, tanpa berpikir`,"A quick pass with minimal thinking":`Lewatan cepat dengan sedikit penalaran`,"Thinks before answering":`Berpikir sebelum menjawab`,"Deep reasoning for complex problems":`Penalaran mendalam untuk masalah kompleks`,"Maximum compute and exhaustive verification":`Komputasi maksimum dan verifikasi menyeluruh`,Effort:`Upaya`,"Effort: {level}":`Upaya: {level}`,Mode:`Mode`,"Mode: {mode}":`Mode: {mode}`,Model:`Model`,"Model: {name}":`Model: {name}`,"Voice mode":`Mode suara`,"Hanzo is speaking — talk to interrupt":`Hanzo sedang berbicara — bicara untuk menyela`,"In conversation — click to hang up":`Sedang berbicara — klik untuk menutup`,"Go to testimonial {n}":`Ke testimoni {n}`,"Go to card {n}":`Ke kartu {n}`,"{n} of {total}":`{n} dari {total}`,"Reading…":`Membaca…`,Skill:`Keterampilan`,Plugin:`Plugin`},ede={Close:`Chiudi`,"Close window":`Chiudi finestra`,"Minimize window":`Riduci a icona`,"Restore window":`Ripristina finestra`,"Maximize window":`Ingrandisci finestra`,Resize:`Ridimensiona`,"Select all":`Seleziona tutto`,"Select row":`Seleziona riga`,"Previous month":`Mese precedente`,"Next month":`Mese successivo`,Dismiss:`Chiudi`,Breadcrumb:`Percorso di navigazione`,Cards:`Schede`,"Copy code":`Copia codice`,Copied:`Copiato`,"Copied!":`Copiato!`,Copy:`Copia`,"Previous slide":`Diapositiva precedente`,"Next slide":`Diapositiva successiva`,"Previous card":`Scheda precedente`,"Next card":`Scheda successiva`,"Zoom out":`Riduci zoom`,"Zoom in":`Aumenta zoom`,Rotate:`Ruota`,Filter:`Filtra`,"Expand all":`Espandi tutto`,"Collapse all":`Comprimi tutto`,"Search...":`Cerca...`,"Pick a date":`Scegli una data`,Select:`Seleziona`,"Start typing...":`Inizia a scrivere...`,Search:`Cerca`,Decrease:`Diminuisci`,Increase:`Aumenta`,pagination:`paginazione`,"Go to previous page":`Vai alla pagina precedente`,"Go to next page":`Vai alla pagina successiva`,Previous:`Precedente`,Next:`Successivo`,"More pages":`Altre pagine`,Remove:`Rimuovi`,"Go back":`Indietro`,"Go forward":`Avanti`,"Reload page":`Ricarica pagina`,Share:`Condividi`,"New tab":`Nuova scheda`,Menu:`Menu`,"Copy command":`Copia comando`,"Terminal input":`Input del terminale`,Seek:`Posizione`,"Rewind 10 seconds":`Indietro di 10 secondi`,"Forward 10 seconds":`Avanti di 10 secondi`,Volume:`Volume`,"Toggle captions":`Attiva o disattiva i sottotitoli`,"Playback speed":`Velocità di riproduzione`,Quality:`Qualità`,"Picture in picture":`Picture in picture`,Play:`Riproduci`,Pause:`Pausa`,Mute:`Disattiva audio`,Unmute:`Attiva audio`,"Exit fullscreen":`Esci da schermo intero`,"Enter fullscreen":`Schermo intero`,Expand:`Espandi`,Collapse:`Comprimi`,"Copy reply":`Copia risposta`,"Good result":`Buon risultato`,"Bad result":`Risultato scarso`,"Dialog Close":`Chiudi finestra di dialogo`,Notifications:`Notifiche`,Account:`Account`,Cart:`Carrello`,Call:`Chiamata`,"Video call":`Videochiamata`,Message:`Messaggio`,Main:`Principale`,Columns:`Colonne`,"No results.":`Nessun risultato.`,"No results":`Nessun risultato`,"No results found":`Nessun risultato trovato`,"Drop files here":`Rilascia i file qui`,"Drag & drop files here":`Trascina i file qui`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`oppure fai clic per sfogliare (max {maxFiles} file, {maxSize} MB ciascuno)`,"Remove {name}":`Rimuovi {name}`,"{selected} of {total} row(s) selected.":`{selected} di {total} riga/righe selezionata/e.`,"Try again":`Riprova`,"What’s up next?":`Che cosa c’è dopo?`,"Show password":`Mostra password`,"Hide password":`Nascondi password`,"Search icons":`Cerca icone`,"No icon matches":`Nessuna icona corrisponde`,"Show all items ({n})":`Mostra tutti ({n})`,"Fewer {what}":`Meno {what}`,"More {what}":`Più {what}`,"No tasks available. Add tasks to display Gantt chart.":`Nessuna attività. Aggiungine per mostrare il diagramma di Gantt.`,January:`gennaio`,February:`febbraio`,March:`marzo`,April:`aprile`,May:`maggio`,June:`giugno`,July:`luglio`,August:`agosto`,September:`settembre`,October:`ottobre`,November:`novembre`,December:`dicembre`,Su:`do`,Mo:`lu`,Tu:`ma`,We:`me`,Th:`gi`,Fr:`ve`,Sa:`sa`,"just now":`proprio ora`,"in a moment":`tra un attimo`,"in 1 minute":`tra 1 minuto`,"in {n} minutes":`tra {n} minuti`,"in 1 hour":`tra 1 ora`,"in {n} hours":`tra {n} ore`,tomorrow:`domani`,"in {n} days":`tra {n} giorni`,"in 1 week":`tra 1 settimana`,"in {n} weeks":`tra {n} settimane`,"in 1 month":`tra 1 mese`,"in {n} months":`tra {n} mesi`,"in 1 year":`tra 1 anno`,"in {n} years":`tra {n} anni`,"1 minute ago":`1 minuto fa`,"{n} minutes ago":`{n} minuti fa`,"1 hour ago":`1 ora fa`,"{n} hours ago":`{n} ore fa`,"1 day ago":`1 giorno fa`,"{n} days ago":`{n} giorni fa`,"1 week ago":`1 settimana fa`,"{n} weeks ago":`{n} settimane fa`,"1 month ago":`1 mese fa`,"{n} months ago":`{n} mesi fa`,"1 year ago":`1 anno fa`,"{n} years ago":`{n} anni fa`,"Cookie notice":`Avviso sui cookie`,"Cookie preferences":`Preferenze cookie`,"Close and use essential cookies only":`Chiudi e usa solo i cookie essenziali`,Back:`Indietro`,"Log in":`Accedi`,"Search Hanzo or ask AI":`Cerca in Hanzo o chiedi all’IA`,"Search models":`Cerca modelli`,"Search branches…":`Cerca branch…`,"Search repositories…":`Cerca repository…`,"Show options":`Mostra opzioni`,Retry:`Riprova`,"Donut chart":`Grafico ad anello`,"Find an organization":`Trova un’organizzazione`,Organizations:`Organizzazioni`,"Organization name":`Nome dell’organizzazione`,"Previous page":`Pagina precedente`,"Next page":`Pagina successiva`,"Continue with credits":`Continua con i crediti`,"Try Hanzo":`Prova Hanzo`,"Terms & Policies":`Termini e politiche`,"Who this is for":`A chi è rivolto`,"Bill yearly":`Fatturazione annuale`,Apps:`App`,"Card actions":`Azioni della scheda`,"Assign to...":`Assegna a...`,"Search cards...":`Cerca schede...`,"Clear search":`Cancella ricerca`,"Open files":`File aperti`,"Close panel":`Chiudi pannello`,"Add an organization":`Aggiungi un’organizzazione`,"Keyboard Shortcuts":`Scorciatoie da tastiera`,"Run a command":`Esegui un comando`,"Type shell command...":`Digita un comando shell...`,"Attached to the next message":`Allegato al prossimo messaggio`,"Channel Member Roster":`Membri del canale`,"Channel Collaborative Notes":`Note collaborative del canale`,"Code Diff Viewer":`Visualizzatore diff`,"Live Voice Call":`Chiamata vocale dal vivo`,"MCP Server Hub":`Hub dei server MCP`,"Multi-Agent Swarm Bar":`Barra dello sciame di agenti`,"Write shared channel notes, meeting agenda, or AI summaries...":`Scrivi note condivise, l’ordine del giorno o riassunti dell’IA...`,"Help improve our AI models":`Aiuta a migliorare i nostri modelli di IA`,"Your name":`Il tuo nome`,"Your role":`Il tuo ruolo`,"Country or region":`Paese o area`,"Card details":`Dati della carta`,"Agree to recurring charges":`Accetto gli addebiti ricorrenti`,"How you will use Hanzo":`Come userai Hanzo`,"Team size":`Dimensione del team`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Accetto i Termini di servizio e la Politica di utilizzo accettabile e confermo di avere almeno 18 anni.`,"Empty string":`Stringa vuota`,"Empty array":`Array vuoto`,"Empty object":`Oggetto vuoto`,"Copy {what}":`Copia {what}`,"Ask anything":`Chiedi qualsiasi cosa`,Auto:`Auto`,Instant:`Istantaneo`,Low:`Basso`,Medium:`Medio`,High:`Alto`,Max:`Massimo`,Dictate:`Detta`,"Dictating — click to stop":`Dettatura in corso — fai clic per fermare`,"Dictation settings":`Impostazioni di dettatura`,Language:`Lingua`,"No devices found":`Nessun dispositivo trovato`,"Microphone {n}":`Microfono {n}`,"Nothing matches":`Nessuna corrispondenza`,Commands:`Comandi`,"Search commands…":`Cerca comandi…`,Agents:`Agenti`,Skills:`Competenze`,Connectors:`Connettori`,"Design system":`Sistema di design`,Plugins:`Plugin`,Devices:`Dispositivi`,Memory:`Memoria`,Research:`Ricerca`,On:`Attivo`,"Upload or add files":`Carica o aggiungi file`,"Add files, agents, skills and more":`Aggiungi file, agenti, competenze e altro`,"No agents yet":`Ancora nessun agente`,"No skills yet":`Ancora nessuna competenza`,"No connectors yet":`Ancora nessun connettore`,"No design system yet":`Ancora nessun sistema di design`,"No plugins yet":`Ancora nessun plugin`,"No devices yet":`Ancora nessun dispositivo`,"Search agents":`Cerca agenti`,"Search skills":`Cerca competenze`,"Search connectors":`Cerca connettori`,"Search design system":`Cerca nel sistema di design`,"Search plugins":`Cerca plugin`,"Search devices":`Cerca dispositivi`,"Reading agents":`Lettura degli agenti`,"Reading skills":`Lettura delle competenze`,"Reading connectors":`Lettura dei connettori`,"Reading design system":`Lettura del sistema di design`,"Reading plugins":`Lettura dei plugin`,"Adaptive reasoning based on task complexity":`Ragionamento adattivo in base alla complessità`,"Answers right away, without thinking":`Risponde subito, senza ragionare`,"A quick pass with minimal thinking":`Un passaggio rapido, con poco ragionamento`,"Thinks before answering":`Riflette prima di rispondere`,"Deep reasoning for complex problems":`Ragionamento profondo per problemi complessi`,"Maximum compute and exhaustive verification":`Calcolo massimo e verifica esaustiva`,Effort:`Sforzo`,"Effort: {level}":`Sforzo: {level}`,Mode:`Modalità`,"Mode: {mode}":`Modalità: {mode}`,Model:`Modello`,"Model: {name}":`Modello: {name}`,"Voice mode":`Modalità vocale`,"Hanzo is speaking — talk to interrupt":`Hanzo sta parlando — parla per interrompere`,"In conversation — click to hang up":`In conversazione — fai clic per riagganciare`,"Go to testimonial {n}":`Vai alla testimonianza {n}`,"Go to card {n}":`Vai alla scheda {n}`,"{n} of {total}":`{n} di {total}`,"Reading…":`Lettura…`,Skill:`Competenza`,Plugin:`Plugin`},tde={Close:`閉じる`,"Close window":`ウィンドウを閉じる`,"Minimize window":`ウィンドウを最小化`,"Restore window":`ウィンドウを元に戻す`,"Maximize window":`ウィンドウを最大化`,Resize:`サイズ変更`,"Select all":`すべて選択`,"Select row":`行を選択`,"Previous month":`前の月`,"Next month":`次の月`,Dismiss:`閉じる`,Breadcrumb:`パンくずリスト`,Cards:`カード`,"Copy code":`コードをコピー`,Copied:`コピーしました`,"Copied!":`コピーしました`,Copy:`コピー`,"Previous slide":`前のスライド`,"Next slide":`次のスライド`,"Previous card":`前のカード`,"Next card":`次のカード`,"Zoom out":`縮小`,"Zoom in":`拡大`,Rotate:`回転`,Filter:`絞り込み`,"Expand all":`すべて展開`,"Collapse all":`すべて折りたたむ`,"Search...":`検索...`,"Pick a date":`日付を選択`,Select:`選択`,"Start typing...":`入力を開始...`,Search:`検索`,Decrease:`減らす`,Increase:`増やす`,pagination:`ページネーション`,"Go to previous page":`前のページへ`,"Go to next page":`次のページへ`,Previous:`前へ`,Next:`次へ`,"More pages":`その他のページ`,Remove:`削除`,"Go back":`戻る`,"Go forward":`進む`,"Reload page":`ページを再読み込み`,Share:`共有`,"New tab":`新しいタブ`,Menu:`メニュー`,"Copy command":`コマンドをコピー`,"Terminal input":`ターミナル入力`,Seek:`シーク`,"Rewind 10 seconds":`10秒戻る`,"Forward 10 seconds":`10秒進む`,Volume:`音量`,"Toggle captions":`字幕の切り替え`,"Playback speed":`再生速度`,Quality:`画質`,"Picture in picture":`ピクチャーインピクチャー`,Play:`再生`,Pause:`一時停止`,Mute:`ミュート`,Unmute:`ミュート解除`,"Exit fullscreen":`全画面を終了`,"Enter fullscreen":`全画面`,Expand:`展開`,Collapse:`折りたたむ`,"Copy reply":`返信をコピー`,"Good result":`良い結果`,"Bad result":`悪い結果`,"Dialog Close":`ダイアログを閉じる`,Notifications:`通知`,Account:`アカウント`,Cart:`カート`,Call:`通話`,"Video call":`ビデオ通話`,Message:`メッセージ`,Main:`メイン`,Columns:`列`,"No results.":`結果がありません。`,"No results":`結果なし`,"No results found":`結果が見つかりません`,"Drop files here":`ファイルをここにドロップ`,"Drag & drop files here":`ファイルをドラッグ&ドロップ`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`またはクリックして参照(最大 {maxFiles} ファイル、各 {maxSize} MB)`,"Remove {name}":`{name} を削除`,"{selected} of {total} row(s) selected.":`{total} 行中 {selected} 行を選択`,"Try again":`もう一度試す`,"What’s up next?":`次は何?`,"Show password":`パスワードを表示`,"Hide password":`パスワードを隠す`,"Search icons":`アイコンを検索`,"No icon matches":`一致するアイコンがありません`,"Show all items ({n})":`すべて表示 ({n})`,"Fewer {what}":`{what}を減らす`,"More {what}":`{what}を増やす`,"No tasks available. Add tasks to display Gantt chart.":`タスクがありません。ガントチャートを表示するにはタスクを追加してください。`,January:`1月`,February:`2月`,March:`3月`,April:`4月`,May:`5月`,June:`6月`,July:`7月`,August:`8月`,September:`9月`,October:`10月`,November:`11月`,December:`12月`,Su:`日`,Mo:`月`,Tu:`火`,We:`水`,Th:`木`,Fr:`金`,Sa:`土`,"just now":`たった今`,"in a moment":`まもなく`,"in 1 minute":`1分後`,"in {n} minutes":`{n}分後`,"in 1 hour":`1時間後`,"in {n} hours":`{n}時間後`,tomorrow:`明日`,"in {n} days":`{n}日後`,"in 1 week":`1週間後`,"in {n} weeks":`{n}週間後`,"in 1 month":`1か月後`,"in {n} months":`{n}か月後`,"in 1 year":`1年後`,"in {n} years":`{n}年後`,"1 minute ago":`1分前`,"{n} minutes ago":`{n}分前`,"1 hour ago":`1時間前`,"{n} hours ago":`{n}時間前`,"1 day ago":`1日前`,"{n} days ago":`{n}日前`,"1 week ago":`1週間前`,"{n} weeks ago":`{n}週間前`,"1 month ago":`1か月前`,"{n} months ago":`{n}か月前`,"1 year ago":`1年前`,"{n} years ago":`{n}年前`,"Cookie notice":`Cookie の通知`,"Cookie preferences":`Cookie の設定`,"Close and use essential cookies only":`閉じて必須 Cookie のみ使う`,Back:`戻る`,"Log in":`ログイン`,"Search Hanzo or ask AI":`Hanzo を検索するか AI に聞く`,"Search models":`モデルを検索`,"Search branches…":`ブランチを検索…`,"Search repositories…":`リポジトリを検索…`,"Show options":`オプションを表示`,Retry:`再試行`,"Donut chart":`ドーナツグラフ`,"Find an organization":`組織を探す`,Organizations:`組織`,"Organization name":`組織名`,"Previous page":`前のページ`,"Next page":`次のページ`,"Continue with credits":`クレジットで続ける`,"Try Hanzo":`Hanzo を試す`,"Terms & Policies":`規約とポリシー`,"Who this is for":`対象`,"Bill yearly":`年払い`,Apps:`アプリ`,"Card actions":`カードの操作`,"Assign to...":`割り当て先...`,"Search cards...":`カードを検索...`,"Clear search":`検索をクリア`,"Open files":`開いているファイル`,"Close panel":`パネルを閉じる`,"Add an organization":`組織を追加`,"Keyboard Shortcuts":`キーボードショートカット`,"Run a command":`コマンドを実行`,"Type shell command...":`シェルコマンドを入力...`,"Attached to the next message":`次のメッセージに添付`,"Channel Member Roster":`チャンネルのメンバー`,"Channel Collaborative Notes":`チャンネルの共同メモ`,"Code Diff Viewer":`差分ビューア`,"Live Voice Call":`ライブ音声通話`,"MCP Server Hub":`MCP サーバーハブ`,"Multi-Agent Swarm Bar":`マルチエージェントの群れバー`,"Write shared channel notes, meeting agenda, or AI summaries...":`共有メモ、議題、AI の要約を書く...`,"Help improve our AI models":`AI モデルの改善に協力する`,"Your name":`お名前`,"Your role":`あなたの役割`,"Country or region":`国または地域`,"Card details":`カード情報`,"Agree to recurring charges":`継続課金に同意する`,"How you will use Hanzo":`Hanzo の使い方`,"Team size":`チームの規模`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`利用規約と許容される使用に関するポリシーに同意し、18歳以上であることを確認します。`,"Empty string":`空の文字列`,"Empty array":`空の配列`,"Empty object":`空のオブジェクト`,"Copy {what}":`{what}をコピー`,"Ask anything":`何でも聞いてください`,Auto:`自動`,Instant:`即答`,Low:`低`,Medium:`中`,High:`高`,Max:`最大`,Dictate:`音声入力`,"Dictating — click to stop":`音声入力中 — クリックで停止`,"Dictation settings":`音声入力の設定`,Language:`言語`,"No devices found":`デバイスが見つかりません`,"Microphone {n}":`マイク {n}`,"Nothing matches":`一致するものがありません`,Commands:`コマンド`,"Search commands…":`コマンドを検索…`,Agents:`エージェント`,Skills:`スキル`,Connectors:`コネクタ`,"Design system":`デザインシステム`,Plugins:`プラグイン`,Devices:`デバイス`,Memory:`メモリ`,Research:`リサーチ`,On:`オン`,"Upload or add files":`ファイルをアップロードまたは追加`,"Add files, agents, skills and more":`ファイル、エージェント、スキルなどを追加`,"No agents yet":`エージェントはまだありません`,"No skills yet":`スキルはまだありません`,"No connectors yet":`コネクタはまだありません`,"No design system yet":`デザインシステムはまだありません`,"No plugins yet":`プラグインはまだありません`,"No devices yet":`デバイスはまだありません`,"Search agents":`エージェントを検索`,"Search skills":`スキルを検索`,"Search connectors":`コネクタを検索`,"Search design system":`デザインシステムを検索`,"Search plugins":`プラグインを検索`,"Search devices":`デバイスを検索`,"Reading agents":`エージェントを読み込み中`,"Reading skills":`スキルを読み込み中`,"Reading connectors":`コネクタを読み込み中`,"Reading design system":`デザインシステムを読み込み中`,"Reading plugins":`プラグインを読み込み中`,"Adaptive reasoning based on task complexity":`タスクの複雑さに合わせた推論`,"Answers right away, without thinking":`考えずにすぐに答えます`,"A quick pass with minimal thinking":`最小限の思考による素早い処理`,"Thinks before answering":`答える前に考える`,"Deep reasoning for complex problems":`複雑な問題のための深い推論`,"Maximum compute and exhaustive verification":`最大の計算と徹底した検証`,Effort:`思考量`,"Effort: {level}":`思考量: {level}`,Mode:`モード`,"Mode: {mode}":`モード: {mode}`,Model:`モデル`,"Model: {name}":`モデル: {name}`,"Voice mode":`音声モード`,"Hanzo is speaking — talk to interrupt":`Hanzo が話しています — 話すと中断します`,"In conversation — click to hang up":`会話中 — クリックで終了`,"Go to testimonial {n}":`お客様の声 {n} へ`,"Go to card {n}":`カード {n} へ`,"{n} of {total}":`{n} / {total}`,"Reading…":`読み込み中…`,Skill:`スキル`,Plugin:`プラグイン`},nde={Close:`닫기`,"Close window":`창 닫기`,"Minimize window":`창 최소화`,"Restore window":`창 복원`,"Maximize window":`창 최대화`,Resize:`크기 조절`,"Select all":`모두 선택`,"Select row":`행 선택`,"Previous month":`이전 달`,"Next month":`다음 달`,Dismiss:`닫기`,Breadcrumb:`이동 경로`,Cards:`카드`,"Copy code":`코드 복사`,Copied:`복사됨`,"Copied!":`복사됨!`,Copy:`복사`,"Previous slide":`이전 슬라이드`,"Next slide":`다음 슬라이드`,"Previous card":`이전 카드`,"Next card":`다음 카드`,"Zoom out":`축소`,"Zoom in":`확대`,Rotate:`회전`,Filter:`필터`,"Expand all":`모두 펼치기`,"Collapse all":`모두 접기`,"Search...":`검색...`,"Pick a date":`날짜 선택`,Select:`선택`,"Start typing...":`입력 시작...`,Search:`검색`,Decrease:`줄이기`,Increase:`늘리기`,pagination:`페이지 매김`,"Go to previous page":`이전 페이지로`,"Go to next page":`다음 페이지로`,Previous:`이전`,Next:`다음`,"More pages":`페이지 더보기`,Remove:`제거`,"Go back":`뒤로`,"Go forward":`앞으로`,"Reload page":`페이지 새로고침`,Share:`공유`,"New tab":`새 탭`,Menu:`메뉴`,"Copy command":`명령 복사`,"Terminal input":`터미널 입력`,Seek:`탐색`,"Rewind 10 seconds":`10초 되감기`,"Forward 10 seconds":`10초 빨리감기`,Volume:`음량`,"Toggle captions":`자막 전환`,"Playback speed":`재생 속도`,Quality:`화질`,"Picture in picture":`화면 속 화면`,Play:`재생`,Pause:`일시정지`,Mute:`음소거`,Unmute:`음소거 해제`,"Exit fullscreen":`전체 화면 종료`,"Enter fullscreen":`전체 화면`,Expand:`펼치기`,Collapse:`접기`,"Copy reply":`답변 복사`,"Good result":`좋은 결과`,"Bad result":`나쁜 결과`,"Dialog Close":`대화상자 닫기`,Notifications:`알림`,Account:`계정`,Cart:`장바구니`,Call:`통화`,"Video call":`영상 통화`,Message:`메시지`,Main:`기본`,Columns:`열`,"No results.":`결과가 없습니다.`,"No results":`결과 없음`,"No results found":`결과를 찾을 수 없습니다`,"Drop files here":`파일을 여기에 놓으세요`,"Drag & drop files here":`파일을 끌어다 놓으세요`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`또는 클릭하여 찾아보기 (최대 {maxFiles}개 파일, 각 {maxSize}MB)`,"Remove {name}":`{name} 제거`,"{selected} of {total} row(s) selected.":`{total}개 중 {selected}개 행 선택됨`,"Try again":`다시 시도`,"What’s up next?":`다음은 무엇인가요?`,"Show password":`비밀번호 표시`,"Hide password":`비밀번호 숨기기`,"Search icons":`아이콘 검색`,"No icon matches":`일치하는 아이콘 없음`,"Show all items ({n})":`모두 보기 ({n})`,"Fewer {what}":`{what} 줄이기`,"More {what}":`{what} 늘리기`,"No tasks available. Add tasks to display Gantt chart.":`작업이 없습니다. 간트 차트를 보려면 작업을 추가하세요.`,January:`1월`,February:`2월`,March:`3월`,April:`4월`,May:`5월`,June:`6월`,July:`7월`,August:`8월`,September:`9월`,October:`10월`,November:`11월`,December:`12월`,Su:`일`,Mo:`월`,Tu:`화`,We:`수`,Th:`목`,Fr:`금`,Sa:`토`,"just now":`방금`,"in a moment":`곧`,"in 1 minute":`1분 후`,"in {n} minutes":`{n}분 후`,"in 1 hour":`1시간 후`,"in {n} hours":`{n}시간 후`,tomorrow:`내일`,"in {n} days":`{n}일 후`,"in 1 week":`1주 후`,"in {n} weeks":`{n}주 후`,"in 1 month":`1개월 후`,"in {n} months":`{n}개월 후`,"in 1 year":`1년 후`,"in {n} years":`{n}년 후`,"1 minute ago":`1분 전`,"{n} minutes ago":`{n}분 전`,"1 hour ago":`1시간 전`,"{n} hours ago":`{n}시간 전`,"1 day ago":`1일 전`,"{n} days ago":`{n}일 전`,"1 week ago":`1주 전`,"{n} weeks ago":`{n}주 전`,"1 month ago":`1개월 전`,"{n} months ago":`{n}개월 전`,"1 year ago":`1년 전`,"{n} years ago":`{n}년 전`,"Cookie notice":`쿠키 안내`,"Cookie preferences":`쿠키 설정`,"Close and use essential cookies only":`닫고 필수 쿠키만 사용`,Back:`뒤로`,"Log in":`로그인`,"Search Hanzo or ask AI":`Hanzo 검색 또는 AI에게 질문`,"Search models":`모델 검색`,"Search branches…":`브랜치 검색…`,"Search repositories…":`저장소 검색…`,"Show options":`옵션 표시`,Retry:`다시 시도`,"Donut chart":`도넛 차트`,"Find an organization":`조직 찾기`,Organizations:`조직`,"Organization name":`조직 이름`,"Previous page":`이전 페이지`,"Next page":`다음 페이지`,"Continue with credits":`크레딧으로 계속`,"Try Hanzo":`Hanzo 체험`,"Terms & Policies":`약관 및 정책`,"Who this is for":`대상`,"Bill yearly":`연간 결제`,Apps:`앱`,"Card actions":`카드 작업`,"Assign to...":`할당 대상...`,"Search cards...":`카드 검색...`,"Clear search":`검색어 지우기`,"Open files":`열린 파일`,"Close panel":`패널 닫기`,"Add an organization":`조직 추가`,"Keyboard Shortcuts":`키보드 단축키`,"Run a command":`명령 실행`,"Type shell command...":`셸 명령 입력...`,"Attached to the next message":`다음 메시지에 첨부됨`,"Channel Member Roster":`채널 구성원`,"Channel Collaborative Notes":`채널 공동 메모`,"Code Diff Viewer":`코드 차이 보기`,"Live Voice Call":`실시간 음성 통화`,"MCP Server Hub":`MCP 서버 허브`,"Multi-Agent Swarm Bar":`다중 에이전트 군집 막대`,"Write shared channel notes, meeting agenda, or AI summaries...":`공유 메모, 안건 또는 AI 요약을 작성...`,"Help improve our AI models":`AI 모델 개선에 참여`,"Your name":`이름`,"Your role":`역할`,"Country or region":`국가 또는 지역`,"Card details":`카드 정보`,"Agree to recurring charges":`정기 결제에 동의`,"How you will use Hanzo":`Hanzo 사용 방식`,"Team size":`팀 규모`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`서비스 약관과 허용 사용 정책에 동의하며 만 18세 이상임을 확인합니다.`,"Empty string":`빈 문자열`,"Empty array":`빈 배열`,"Empty object":`빈 객체`,"Copy {what}":`{what} 복사`,"Ask anything":`무엇이든 물어보세요`,Auto:`자동`,Instant:`즉시`,Low:`낮음`,Medium:`중간`,High:`높음`,Max:`최대`,Dictate:`받아쓰기`,"Dictating — click to stop":`받아쓰는 중 — 클릭하여 중지`,"Dictation settings":`받아쓰기 설정`,Language:`언어`,"No devices found":`기기를 찾을 수 없습니다`,"Microphone {n}":`마이크 {n}`,"Nothing matches":`일치하는 항목 없음`,Commands:`명령`,"Search commands…":`명령 검색…`,Agents:`에이전트`,Skills:`스킬`,Connectors:`커넥터`,"Design system":`디자인 시스템`,Plugins:`플러그인`,Devices:`기기`,Memory:`메모리`,Research:`리서치`,On:`켜짐`,"Upload or add files":`파일 업로드 또는 추가`,"Add files, agents, skills and more":`파일, 에이전트, 스킬 등 추가`,"No agents yet":`아직 에이전트가 없습니다`,"No skills yet":`아직 스킬이 없습니다`,"No connectors yet":`아직 커넥터가 없습니다`,"No design system yet":`아직 디자인 시스템이 없습니다`,"No plugins yet":`아직 플러그인이 없습니다`,"No devices yet":`아직 기기가 없습니다`,"Search agents":`에이전트 검색`,"Search skills":`스킬 검색`,"Search connectors":`커넥터 검색`,"Search design system":`디자인 시스템 검색`,"Search plugins":`플러그인 검색`,"Search devices":`기기 검색`,"Reading agents":`에이전트 읽는 중`,"Reading skills":`스킬 읽는 중`,"Reading connectors":`커넥터 읽는 중`,"Reading design system":`디자인 시스템 읽는 중`,"Reading plugins":`플러그인 읽는 중`,"Adaptive reasoning based on task complexity":`작업 복잡도에 맞춘 추론`,"Answers right away, without thinking":`생각하지 않고 바로 답합니다`,"A quick pass with minimal thinking":`최소한의 사고로 빠르게`,"Thinks before answering":`답하기 전에 생각`,"Deep reasoning for complex problems":`복잡한 문제를 위한 깊은 추론`,"Maximum compute and exhaustive verification":`최대 연산과 철저한 검증`,Effort:`노력`,"Effort: {level}":`노력: {level}`,Mode:`모드`,"Mode: {mode}":`모드: {mode}`,Model:`모델`,"Model: {name}":`모델: {name}`,"Voice mode":`음성 모드`,"Hanzo is speaking — talk to interrupt":`Hanzo가 말하는 중 — 말하면 중단`,"In conversation — click to hang up":`대화 중 — 클릭하여 종료`,"Go to testimonial {n}":`후기 {n}(으)로`,"Go to card {n}":`카드 {n}(으)로`,"{n} of {total}":`{n} / {total}`,"Reading…":`읽는 중…`,Skill:`스킬`,Plugin:`플러그인`},rde={Close:`Fechar`,"Close window":`Fechar janela`,"Minimize window":`Minimizar janela`,"Restore window":`Restaurar janela`,"Maximize window":`Maximizar janela`,Resize:`Redimensionar`,"Select all":`Selecionar tudo`,"Select row":`Selecionar linha`,"Previous month":`Mês anterior`,"Next month":`Próximo mês`,Dismiss:`Dispensar`,Breadcrumb:`Trilha de navegação`,Cards:`Cartões`,"Copy code":`Copiar código`,Copied:`Copiado`,"Copied!":`Copiado!`,Copy:`Copiar`,"Previous slide":`Slide anterior`,"Next slide":`Próximo slide`,"Previous card":`Cartão anterior`,"Next card":`Próximo cartão`,"Zoom out":`Diminuir zoom`,"Zoom in":`Aumentar zoom`,Rotate:`Girar`,Filter:`Filtrar`,"Expand all":`Expandir tudo`,"Collapse all":`Recolher tudo`,"Search...":`Pesquisar...`,"Pick a date":`Escolha uma data`,Select:`Selecionar`,"Start typing...":`Comece a digitar...`,Search:`Pesquisar`,Decrease:`Diminuir`,Increase:`Aumentar`,pagination:`paginação`,"Go to previous page":`Ir para a página anterior`,"Go to next page":`Ir para a próxima página`,Previous:`Anterior`,Next:`Próximo`,"More pages":`Mais páginas`,Remove:`Remover`,"Go back":`Voltar`,"Go forward":`Avançar`,"Reload page":`Recarregar página`,Share:`Compartilhar`,"New tab":`Nova aba`,Menu:`Menu`,"Copy command":`Copiar comando`,"Terminal input":`Entrada do terminal`,Seek:`Posição`,"Rewind 10 seconds":`Retroceder 10 segundos`,"Forward 10 seconds":`Avançar 10 segundos`,Volume:`Volume`,"Toggle captions":`Alternar legendas`,"Playback speed":`Velocidade de reprodução`,Quality:`Qualidade`,"Picture in picture":`Picture in picture`,Play:`Reproduzir`,Pause:`Pausar`,Mute:`Silenciar`,Unmute:`Ativar som`,"Exit fullscreen":`Sair da tela cheia`,"Enter fullscreen":`Tela cheia`,Expand:`Expandir`,Collapse:`Recolher`,"Copy reply":`Copiar resposta`,"Good result":`Bom resultado`,"Bad result":`Resultado ruim`,"Dialog Close":`Fechar diálogo`,Notifications:`Notificações`,Account:`Conta`,Cart:`Carrinho`,Call:`Chamada`,"Video call":`Chamada de vídeo`,Message:`Mensagem`,Main:`Principal`,Columns:`Colunas`,"No results.":`Nenhum resultado.`,"No results":`Nenhum resultado`,"No results found":`Nenhum resultado encontrado`,"Drop files here":`Solte os arquivos aqui`,"Drag & drop files here":`Arraste e solte arquivos aqui`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`ou clique para procurar (máx. {maxFiles} arquivos, {maxSize} MB cada)`,"Remove {name}":`Remover {name}`,"{selected} of {total} row(s) selected.":`{selected} de {total} linha(s) selecionada(s).`,"Try again":`Tentar novamente`,"What’s up next?":`O que vem agora?`,"Show password":`Mostrar senha`,"Hide password":`Ocultar senha`,"Search icons":`Pesquisar ícones`,"No icon matches":`Nenhum ícone corresponde`,"Show all items ({n})":`Mostrar todos ({n})`,"Fewer {what}":`Menos {what}`,"More {what}":`Mais {what}`,"No tasks available. Add tasks to display Gantt chart.":`Nenhuma tarefa. Adicione tarefas para exibir o gráfico de Gantt.`,January:`janeiro`,February:`fevereiro`,March:`março`,April:`abril`,May:`maio`,June:`junho`,July:`julho`,August:`agosto`,September:`setembro`,October:`outubro`,November:`novembro`,December:`dezembro`,Su:`do`,Mo:`se`,Tu:`te`,We:`qa`,Th:`qi`,Fr:`sx`,Sa:`sá`,"just now":`agora mesmo`,"in a moment":`em instantes`,"in 1 minute":`em 1 minuto`,"in {n} minutes":`em {n} minutos`,"in 1 hour":`em 1 hora`,"in {n} hours":`em {n} horas`,tomorrow:`amanhã`,"in {n} days":`em {n} dias`,"in 1 week":`em 1 semana`,"in {n} weeks":`em {n} semanas`,"in 1 month":`em 1 mês`,"in {n} months":`em {n} meses`,"in 1 year":`em 1 ano`,"in {n} years":`em {n} anos`,"1 minute ago":`há 1 minuto`,"{n} minutes ago":`há {n} minutos`,"1 hour ago":`há 1 hora`,"{n} hours ago":`há {n} horas`,"1 day ago":`há 1 dia`,"{n} days ago":`há {n} dias`,"1 week ago":`há 1 semana`,"{n} weeks ago":`há {n} semanas`,"1 month ago":`há 1 mês`,"{n} months ago":`há {n} meses`,"1 year ago":`há 1 ano`,"{n} years ago":`há {n} anos`,"Cookie notice":`Aviso de cookies`,"Cookie preferences":`Preferências de cookies`,"Close and use essential cookies only":`Fechar e usar apenas cookies essenciais`,Back:`Voltar`,"Log in":`Entrar`,"Search Hanzo or ask AI":`Pesquise na Hanzo ou pergunte à IA`,"Search models":`Pesquisar modelos`,"Search branches…":`Pesquisar branches…`,"Search repositories…":`Pesquisar repositórios…`,"Show options":`Mostrar opções`,Retry:`Tentar novamente`,"Donut chart":`Gráfico de rosca`,"Find an organization":`Encontrar uma organização`,Organizations:`Organizações`,"Organization name":`Nome da organização`,"Previous page":`Página anterior`,"Next page":`Próxima página`,"Continue with credits":`Continuar com créditos`,"Try Hanzo":`Experimentar a Hanzo`,"Terms & Policies":`Termos e políticas`,"Who this is for":`Para quem é`,"Bill yearly":`Cobrança anual`,Apps:`Aplicativos`,"Card actions":`Ações do cartão`,"Assign to...":`Atribuir a...`,"Search cards...":`Pesquisar cartões...`,"Clear search":`Limpar pesquisa`,"Open files":`Arquivos abertos`,"Close panel":`Fechar painel`,"Add an organization":`Adicionar uma organização`,"Keyboard Shortcuts":`Atalhos de teclado`,"Run a command":`Executar um comando`,"Type shell command...":`Digite um comando de shell...`,"Attached to the next message":`Anexado à próxima mensagem`,"Channel Member Roster":`Membros do canal`,"Channel Collaborative Notes":`Notas colaborativas do canal`,"Code Diff Viewer":`Visualizador de diff`,"Live Voice Call":`Chamada de voz ao vivo`,"MCP Server Hub":`Hub de servidores MCP`,"Multi-Agent Swarm Bar":`Barra do enxame de agentes`,"Write shared channel notes, meeting agenda, or AI summaries...":`Escreva notas do canal, a pauta ou resumos da IA...`,"Help improve our AI models":`Ajude a melhorar nossos modelos de IA`,"Your name":`Seu nome`,"Your role":`Seu papel`,"Country or region":`País ou região`,"Card details":`Dados do cartão`,"Agree to recurring charges":`Concordo com cobranças recorrentes`,"How you will use Hanzo":`Como você usará a Hanzo`,"Team size":`Tamanho da equipe`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Concordo com os Termos de Serviço e a Política de Uso Aceitável e confirmo que tenho pelo menos 18 anos.`,"Empty string":`Texto vazio`,"Empty array":`Array vazio`,"Empty object":`Objeto vazio`,"Copy {what}":`Copiar {what}`,"Ask anything":`Pergunte qualquer coisa`,Auto:`Auto`,Instant:`Instantâneo`,Low:`Baixo`,Medium:`Médio`,High:`Alto`,Max:`Máximo`,Dictate:`Ditar`,"Dictating — click to stop":`Ditando — clique para parar`,"Dictation settings":`Configurações de ditado`,Language:`Idioma`,"No devices found":`Nenhum dispositivo encontrado`,"Microphone {n}":`Microfone {n}`,"Nothing matches":`Nada corresponde`,Commands:`Comandos`,"Search commands…":`Pesquisar comandos…`,Agents:`Agentes`,Skills:`Habilidades`,Connectors:`Conectores`,"Design system":`Sistema de design`,Plugins:`Plugins`,Devices:`Dispositivos`,Memory:`Memória`,Research:`Pesquisa`,On:`Ativado`,"Upload or add files":`Enviar ou adicionar arquivos`,"Add files, agents, skills and more":`Adicione arquivos, agentes, habilidades e mais`,"No agents yet":`Ainda não há agentes`,"No skills yet":`Ainda não há habilidades`,"No connectors yet":`Ainda não há conectores`,"No design system yet":`Ainda não há sistema de design`,"No plugins yet":`Ainda não há plugins`,"No devices yet":`Ainda não há dispositivos`,"Search agents":`Pesquisar agentes`,"Search skills":`Pesquisar habilidades`,"Search connectors":`Pesquisar conectores`,"Search design system":`Pesquisar no sistema de design`,"Search plugins":`Pesquisar plugins`,"Search devices":`Pesquisar dispositivos`,"Reading agents":`Lendo agentes`,"Reading skills":`Lendo habilidades`,"Reading connectors":`Lendo conectores`,"Reading design system":`Lendo o sistema de design`,"Reading plugins":`Lendo plugins`,"Adaptive reasoning based on task complexity":`Raciocínio adaptativo conforme a complexidade da tarefa`,"Answers right away, without thinking":`Responde na hora, sem pensar`,"A quick pass with minimal thinking":`Uma passada rápida, com pouco raciocínio`,"Thinks before answering":`Pensa antes de responder`,"Deep reasoning for complex problems":`Raciocínio profundo para problemas complexos`,"Maximum compute and exhaustive verification":`Computação máxima e verificação exaustiva`,Effort:`Esforço`,"Effort: {level}":`Esforço: {level}`,Mode:`Modo`,"Mode: {mode}":`Modo: {mode}`,Model:`Modelo`,"Model: {name}":`Modelo: {name}`,"Voice mode":`Modo de voz`,"Hanzo is speaking — talk to interrupt":`A Hanzo está falando — fale para interromper`,"In conversation — click to hang up":`Em conversa — clique para desligar`,"Go to testimonial {n}":`Ir para o depoimento {n}`,"Go to card {n}":`Ir para o cartão {n}`,"{n} of {total}":`{n} de {total}`,"Reading…":`Lendo…`,Skill:`Habilidade`,Plugin:`Plugin`},ide={Close:`Закрыть`,"Close window":`Закрыть окно`,"Minimize window":`Свернуть окно`,"Restore window":`Восстановить окно`,"Maximize window":`Развернуть окно`,Resize:`Изменить размер`,"Select all":`Выбрать все`,"Select row":`Выбрать строку`,"Previous month":`Предыдущий месяц`,"Next month":`Следующий месяц`,Dismiss:`Закрыть`,Breadcrumb:`Навигационная цепочка`,Cards:`Карточки`,"Copy code":`Копировать код`,Copied:`Скопировано`,"Copied!":`Скопировано!`,Copy:`Копировать`,"Previous slide":`Предыдущий слайд`,"Next slide":`Следующий слайд`,"Previous card":`Предыдущая карточка`,"Next card":`Следующая карточка`,"Zoom out":`Уменьшить`,"Zoom in":`Увеличить`,Rotate:`Повернуть`,Filter:`Фильтр`,"Expand all":`Развернуть все`,"Collapse all":`Свернуть все`,"Search...":`Поиск...`,"Pick a date":`Выберите дату`,Select:`Выбрать`,"Start typing...":`Начните вводить...`,Search:`Поиск`,Decrease:`Уменьшить`,Increase:`Увеличить`,pagination:`постраничная навигация`,"Go to previous page":`К предыдущей странице`,"Go to next page":`К следующей странице`,Previous:`Назад`,Next:`Далее`,"More pages":`Ещё страницы`,Remove:`Удалить`,"Go back":`Назад`,"Go forward":`Вперёд`,"Reload page":`Обновить страницу`,Share:`Поделиться`,"New tab":`Новая вкладка`,Menu:`Меню`,"Copy command":`Копировать команду`,"Terminal input":`Ввод в терминале`,Seek:`Позиция`,"Rewind 10 seconds":`Назад на 10 секунд`,"Forward 10 seconds":`Вперёд на 10 секунд`,Volume:`Громкость`,"Toggle captions":`Субтитры`,"Playback speed":`Скорость воспроизведения`,Quality:`Качество`,"Picture in picture":`Картинка в картинке`,Play:`Воспроизвести`,Pause:`Пауза`,Mute:`Выключить звук`,Unmute:`Включить звук`,"Exit fullscreen":`Выйти из полноэкранного режима`,"Enter fullscreen":`Полный экран`,Expand:`Развернуть`,Collapse:`Свернуть`,"Copy reply":`Копировать ответ`,"Good result":`Хороший результат`,"Bad result":`Плохой результат`,"Dialog Close":`Закрыть диалог`,Notifications:`Уведомления`,Account:`Аккаунт`,Cart:`Корзина`,Call:`Звонок`,"Video call":`Видеозвонок`,Message:`Сообщение`,Main:`Основное`,Columns:`Столбцы`,"No results.":`Ничего не найдено.`,"No results":`Ничего не найдено`,"No results found":`Ничего не найдено`,"Drop files here":`Перетащите файлы сюда`,"Drag & drop files here":`Перетащите файлы сюда`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`или нажмите, чтобы выбрать (не более {maxFiles} файлов, по {maxSize} МБ)`,"Remove {name}":`Удалить {name}`,"{selected} of {total} row(s) selected.":`Выбрано {selected} из {total}.`,"Try again":`Повторить`,"What’s up next?":`Что дальше?`,"Show password":`Показать пароль`,"Hide password":`Скрыть пароль`,"Search icons":`Поиск значков`,"No icon matches":`Нет подходящих значков`,"Show all items ({n})":`Показать все ({n})`,"Fewer {what}":`Меньше: {what}`,"More {what}":`Больше: {what}`,"No tasks available. Add tasks to display Gantt chart.":`Нет задач. Добавьте их, чтобы показать диаграмму Ганта.`,January:`январь`,February:`февраль`,March:`март`,April:`апрель`,May:`май`,June:`июнь`,July:`июль`,August:`август`,September:`сентябрь`,October:`октябрь`,November:`ноябрь`,December:`декабрь`,Su:`вс`,Mo:`пн`,Tu:`вт`,We:`ср`,Th:`чт`,Fr:`пт`,Sa:`сб`,"just now":`только что`,"in a moment":`через мгновение`,"in 1 minute":`через 1 минуту`,"in {n} minutes":`через {n} мин.`,"in 1 hour":`через 1 час`,"in {n} hours":`через {n} ч.`,tomorrow:`завтра`,"in {n} days":`через {n} дн.`,"in 1 week":`через 1 неделю`,"in {n} weeks":`через {n} нед.`,"in 1 month":`через 1 месяц`,"in {n} months":`через {n} мес.`,"in 1 year":`через 1 год`,"in {n} years":`через {n} г.`,"1 minute ago":`1 минуту назад`,"{n} minutes ago":`{n} мин. назад`,"1 hour ago":`1 час назад`,"{n} hours ago":`{n} ч. назад`,"1 day ago":`1 день назад`,"{n} days ago":`{n} дн. назад`,"1 week ago":`1 неделю назад`,"{n} weeks ago":`{n} нед. назад`,"1 month ago":`1 месяц назад`,"{n} months ago":`{n} мес. назад`,"1 year ago":`1 год назад`,"{n} years ago":`{n} г. назад`,"Cookie notice":`Уведомление о cookie`,"Cookie preferences":`Настройки cookie`,"Close and use essential cookies only":`Закрыть и оставить только необходимые cookie`,Back:`Назад`,"Log in":`Войти`,"Search Hanzo or ask AI":`Искать в Hanzo или спросить ИИ`,"Search models":`Поиск моделей`,"Search branches…":`Поиск веток…`,"Search repositories…":`Поиск репозиториев…`,"Show options":`Показать параметры`,Retry:`Повторить`,"Donut chart":`Кольцевая диаграмма`,"Find an organization":`Найти организацию`,Organizations:`Организации`,"Organization name":`Название организации`,"Previous page":`Предыдущая страница`,"Next page":`Следующая страница`,"Continue with credits":`Продолжить за счёт кредитов`,"Try Hanzo":`Попробовать Hanzo`,"Terms & Policies":`Условия и политики`,"Who this is for":`Для кого это`,"Bill yearly":`Оплата за год`,Apps:`Приложения`,"Card actions":`Действия с карточкой`,"Assign to...":`Назначить...`,"Search cards...":`Поиск карточек...`,"Clear search":`Очистить поиск`,"Open files":`Открытые файлы`,"Close panel":`Закрыть панель`,"Add an organization":`Добавить организацию`,"Keyboard Shortcuts":`Сочетания клавиш`,"Run a command":`Выполнить команду`,"Type shell command...":`Введите команду оболочки...`,"Attached to the next message":`Прикреплено к следующему сообщению`,"Channel Member Roster":`Участники канала`,"Channel Collaborative Notes":`Общие заметки канала`,"Code Diff Viewer":`Просмотр различий`,"Live Voice Call":`Голосовой звонок`,"MCP Server Hub":`Хаб серверов MCP`,"Multi-Agent Swarm Bar":`Панель роя агентов`,"Write shared channel notes, meeting agenda, or AI summaries...":`Пишите общие заметки, повестку или сводки ИИ...`,"Help improve our AI models":`Помогите улучшить наши модели ИИ`,"Your name":`Ваше имя`,"Your role":`Ваша роль`,"Country or region":`Страна или регион`,"Card details":`Данные карты`,"Agree to recurring charges":`Согласие на регулярные списания`,"How you will use Hanzo":`Как вы будете использовать Hanzo`,"Team size":`Размер команды`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Я принимаю Условия обслуживания и Политику допустимого использования и подтверждаю, что мне исполнилось 18 лет.`,"Empty string":`Пустая строка`,"Empty array":`Пустой массив`,"Empty object":`Пустой объект`,"Copy {what}":`Копировать {what}`,"Ask anything":`Спросите что угодно`,Auto:`Авто`,Instant:`Мгновенно`,Low:`Низкий`,Medium:`Средний`,High:`Высокий`,Max:`Максимум`,Dictate:`Диктовка`,"Dictating — click to stop":`Идёт диктовка — нажмите, чтобы остановить`,"Dictation settings":`Настройки диктовки`,Language:`Язык`,"No devices found":`Устройства не найдены`,"Microphone {n}":`Микрофон {n}`,"Nothing matches":`Ничего не найдено`,Commands:`Команды`,"Search commands…":`Поиск команд…`,Agents:`Агенты`,Skills:`Навыки`,Connectors:`Коннекторы`,"Design system":`Дизайн-система`,Plugins:`Плагины`,Devices:`Устройства`,Memory:`Память`,Research:`Исследование`,On:`Вкл.`,"Upload or add files":`Загрузить или добавить файлы`,"Add files, agents, skills and more":`Добавьте файлы, агентов, навыки и другое`,"No agents yet":`Агентов пока нет`,"No skills yet":`Навыков пока нет`,"No connectors yet":`Коннекторов пока нет`,"No design system yet":`Дизайн-системы пока нет`,"No plugins yet":`Плагинов пока нет`,"No devices yet":`Устройств пока нет`,"Search agents":`Поиск агентов`,"Search skills":`Поиск навыков`,"Search connectors":`Поиск коннекторов`,"Search design system":`Поиск в дизайн-системе`,"Search plugins":`Поиск плагинов`,"Search devices":`Поиск устройств`,"Reading agents":`Чтение агентов`,"Reading skills":`Чтение навыков`,"Reading connectors":`Чтение коннекторов`,"Reading design system":`Чтение дизайн-системы`,"Reading plugins":`Чтение плагинов`,"Adaptive reasoning based on task complexity":`Адаптивное рассуждение по сложности задачи`,"Answers right away, without thinking":`Отвечает сразу, без размышлений`,"A quick pass with minimal thinking":`Быстрый проход с минимумом размышлений`,"Thinks before answering":`Думает перед ответом`,"Deep reasoning for complex problems":`Глубокое рассуждение для сложных задач`,"Maximum compute and exhaustive verification":`Максимум вычислений и полная проверка`,Effort:`Усилие`,"Effort: {level}":`Усилие: {level}`,Mode:`Режим`,"Mode: {mode}":`Режим: {mode}`,Model:`Модель`,"Model: {name}":`Модель: {name}`,"Voice mode":`Голосовой режим`,"Hanzo is speaking — talk to interrupt":`Hanzo говорит — говорите, чтобы прервать`,"In conversation — click to hang up":`Разговор — нажмите, чтобы завершить`,"Go to testimonial {n}":`К отзыву {n}`,"Go to card {n}":`К карточке {n}`,"{n} of {total}":`{n} из {total}`,"Reading…":`Чтение…`,Skill:`Навык`,Plugin:`Плагин`},ade={Close:`ปิด`,"Close window":`ปิดหน้าต่าง`,"Minimize window":`ย่อหน้าต่าง`,"Restore window":`คืนค่าหน้าต่าง`,"Maximize window":`ขยายหน้าต่าง`,Resize:`ปรับขนาด`,"Select all":`เลือกทั้งหมด`,"Select row":`เลือกแถว`,"Previous month":`เดือนก่อน`,"Next month":`เดือนถัดไป`,Dismiss:`ปิด`,Breadcrumb:`เส้นทางนำทาง`,Cards:`การ์ด`,"Copy code":`คัดลอกโค้ด`,Copied:`คัดลอกแล้ว`,"Copied!":`คัดลอกแล้ว!`,Copy:`คัดลอก`,"Previous slide":`สไลด์ก่อนหน้า`,"Next slide":`สไลด์ถัดไป`,"Previous card":`การ์ดก่อนหน้า`,"Next card":`การ์ดถัดไป`,"Zoom out":`ซูมออก`,"Zoom in":`ซูมเข้า`,Rotate:`หมุน`,Filter:`กรอง`,"Expand all":`ขยายทั้งหมด`,"Collapse all":`ยุบทั้งหมด`,"Search...":`ค้นหา...`,"Pick a date":`เลือกวันที่`,Select:`เลือก`,"Start typing...":`เริ่มพิมพ์...`,Search:`ค้นหา`,Decrease:`ลด`,Increase:`เพิ่ม`,pagination:`การแบ่งหน้า`,"Go to previous page":`ไปหน้าก่อนหน้า`,"Go to next page":`ไปหน้าถัดไป`,Previous:`ก่อนหน้า`,Next:`ถัดไป`,"More pages":`หน้าเพิ่มเติม`,Remove:`นำออก`,"Go back":`ย้อนกลับ`,"Go forward":`ไปข้างหน้า`,"Reload page":`โหลดหน้าใหม่`,Share:`แชร์`,"New tab":`แท็บใหม่`,Menu:`เมนู`,"Copy command":`คัดลอกคำสั่ง`,"Terminal input":`ช่องพิมพ์เทอร์มินัล`,Seek:`เลื่อนตำแหน่ง`,"Rewind 10 seconds":`ย้อน 10 วินาที`,"Forward 10 seconds":`ไปข้างหน้า 10 วินาที`,Volume:`ระดับเสียง`,"Toggle captions":`เปิดหรือปิดคำบรรยาย`,"Playback speed":`ความเร็วเล่น`,Quality:`คุณภาพ`,"Picture in picture":`ภาพซ้อนภาพ`,Play:`เล่น`,Pause:`หยุดชั่วคราว`,Mute:`ปิดเสียง`,Unmute:`เปิดเสียง`,"Exit fullscreen":`ออกจากเต็มหน้าจอ`,"Enter fullscreen":`เต็มหน้าจอ`,Expand:`ขยาย`,Collapse:`ยุบ`,"Copy reply":`คัดลอกคำตอบ`,"Good result":`ผลลัพธ์ดี`,"Bad result":`ผลลัพธ์ไม่ดี`,"Dialog Close":`ปิดกล่องโต้ตอบ`,Notifications:`การแจ้งเตือน`,Account:`บัญชี`,Cart:`ตะกร้า`,Call:`โทร`,"Video call":`วิดีโอคอล`,Message:`ข้อความ`,Main:`หลัก`,Columns:`คอลัมน์`,"No results.":`ไม่มีผลลัพธ์`,"No results":`ไม่มีผลลัพธ์`,"No results found":`ไม่พบผลลัพธ์`,"Drop files here":`วางไฟล์ที่นี่`,"Drag & drop files here":`ลากแล้ววางไฟล์ที่นี่`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`หรือคลิกเพื่อเลือก (สูงสุด {maxFiles} ไฟล์ ไฟล์ละ {maxSize} MB)`,"Remove {name}":`นำ {name} ออก`,"{selected} of {total} row(s) selected.":`เลือกแล้ว {selected} จาก {total} แถว`,"Try again":`ลองอีกครั้ง`,"What’s up next?":`ต่อไปคืออะไร`,"Show password":`แสดงรหัสผ่าน`,"Hide password":`ซ่อนรหัสผ่าน`,"Search icons":`ค้นหาไอคอน`,"No icon matches":`ไม่มีไอคอนที่ตรงกัน`,"Show all items ({n})":`แสดงทั้งหมด ({n})`,"Fewer {what}":`ลด {what}`,"More {what}":`เพิ่ม {what}`,"No tasks available. Add tasks to display Gantt chart.":`ยังไม่มีงาน เพิ่มงานเพื่อแสดงแผนภูมิ Gantt`,January:`มกราคม`,February:`กุมภาพันธ์`,March:`มีนาคม`,April:`เมษายน`,May:`พฤษภาคม`,June:`มิถุนายน`,July:`กรกฎาคม`,August:`สิงหาคม`,September:`กันยายน`,October:`ตุลาคม`,November:`พฤศจิกายน`,December:`ธันวาคม`,Su:`อา`,Mo:`จ`,Tu:`อ`,We:`พ`,Th:`พฤ`,Fr:`ศ`,Sa:`ส`,"just now":`เมื่อสักครู่`,"in a moment":`อีกครู่`,"in 1 minute":`ใน 1 นาที`,"in {n} minutes":`ใน {n} นาที`,"in 1 hour":`ใน 1 ชั่วโมง`,"in {n} hours":`ใน {n} ชั่วโมง`,tomorrow:`พรุ่งนี้`,"in {n} days":`ใน {n} วัน`,"in 1 week":`ใน 1 สัปดาห์`,"in {n} weeks":`ใน {n} สัปดาห์`,"in 1 month":`ใน 1 เดือน`,"in {n} months":`ใน {n} เดือน`,"in 1 year":`ใน 1 ปี`,"in {n} years":`ใน {n} ปี`,"1 minute ago":`1 นาทีที่แล้ว`,"{n} minutes ago":`{n} นาทีที่แล้ว`,"1 hour ago":`1 ชั่วโมงที่แล้ว`,"{n} hours ago":`{n} ชั่วโมงที่แล้ว`,"1 day ago":`1 วันที่แล้ว`,"{n} days ago":`{n} วันที่แล้ว`,"1 week ago":`1 สัปดาห์ที่แล้ว`,"{n} weeks ago":`{n} สัปดาห์ที่แล้ว`,"1 month ago":`1 เดือนที่แล้ว`,"{n} months ago":`{n} เดือนที่แล้ว`,"1 year ago":`1 ปีที่แล้ว`,"{n} years ago":`{n} ปีที่แล้ว`,"Cookie notice":`ประกาศคุกกี้`,"Cookie preferences":`การตั้งค่าคุกกี้`,"Close and use essential cookies only":`ปิดและใช้เฉพาะคุกกี้ที่จำเป็น`,Back:`กลับ`,"Log in":`เข้าสู่ระบบ`,"Search Hanzo or ask AI":`ค้นหาใน Hanzo หรือถาม AI`,"Search models":`ค้นหาโมเดล`,"Search branches…":`ค้นหาแบรนช์…`,"Search repositories…":`ค้นหาที่เก็บ…`,"Show options":`แสดงตัวเลือก`,Retry:`ลองใหม่`,"Donut chart":`แผนภูมิโดนัท`,"Find an organization":`ค้นหาองค์กร`,Organizations:`องค์กร`,"Organization name":`ชื่อองค์กร`,"Previous page":`หน้าก่อนหน้า`,"Next page":`หน้าถัดไป`,"Continue with credits":`ใช้เครดิตต่อไป`,"Try Hanzo":`ลองใช้ Hanzo`,"Terms & Policies":`ข้อกำหนดและนโยบาย`,"Who this is for":`เหมาะกับใคร`,"Bill yearly":`คิดเงินรายปี`,Apps:`แอป`,"Card actions":`การทำงานของการ์ด`,"Assign to...":`มอบหมายให้...`,"Search cards...":`ค้นหาการ์ด...`,"Clear search":`ล้างการค้นหา`,"Open files":`ไฟล์ที่เปิดอยู่`,"Close panel":`ปิดแผง`,"Add an organization":`เพิ่มองค์กร`,"Keyboard Shortcuts":`แป้นพิมพ์ลัด`,"Run a command":`เรียกใช้คำสั่ง`,"Type shell command...":`พิมพ์คำสั่งเชลล์...`,"Attached to the next message":`แนบกับข้อความถัดไป`,"Channel Member Roster":`สมาชิกช่อง`,"Channel Collaborative Notes":`บันทึกร่วมของช่อง`,"Code Diff Viewer":`ตัวดูส่วนต่างโค้ด`,"Live Voice Call":`สายเสียงสด`,"MCP Server Hub":`ฮับเซิร์ฟเวอร์ MCP`,"Multi-Agent Swarm Bar":`แถบฝูงเอเจนต์`,"Write shared channel notes, meeting agenda, or AI summaries...":`เขียนบันทึกช่อง วาระประชุม หรือสรุปจาก AI...`,"Help improve our AI models":`ช่วยปรับปรุงโมเดล AI ของเรา`,"Your name":`ชื่อของคุณ`,"Your role":`บทบาทของคุณ`,"Country or region":`ประเทศหรือภูมิภาค`,"Card details":`รายละเอียดบัตร`,"Agree to recurring charges":`ยอมรับการเรียกเก็บซ้ำ`,"How you will use Hanzo":`คุณจะใช้ Hanzo อย่างไร`,"Team size":`ขนาดทีม`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`ฉันยอมรับข้อกำหนดการให้บริการและนโยบายการใช้งานที่ยอมรับได้ และยืนยันว่าฉันมีอายุอย่างน้อย 18 ปี`,"Empty string":`สตริงว่าง`,"Empty array":`อาร์เรย์ว่าง`,"Empty object":`อ็อบเจกต์ว่าง`,"Copy {what}":`คัดลอก {what}`,"Ask anything":`ถามอะไรก็ได้`,Auto:`อัตโนมัติ`,Instant:`ทันที`,Low:`ต่ำ`,Medium:`ปานกลาง`,High:`สูง`,Max:`สูงสุด`,Dictate:`สั่งด้วยเสียง`,"Dictating — click to stop":`กำลังสั่งด้วยเสียง — คลิกเพื่อหยุด`,"Dictation settings":`การตั้งค่าการสั่งด้วยเสียง`,Language:`ภาษา`,"No devices found":`ไม่พบอุปกรณ์`,"Microphone {n}":`ไมโครโฟน {n}`,"Nothing matches":`ไม่มีรายการที่ตรงกัน`,Commands:`คำสั่ง`,"Search commands…":`ค้นหาคำสั่ง…`,Agents:`เอเจนต์`,Skills:`ทักษะ`,Connectors:`ตัวเชื่อม`,"Design system":`ระบบดีไซน์`,Plugins:`ปลั๊กอิน`,Devices:`อุปกรณ์`,Memory:`ความจำ`,Research:`ค้นคว้า`,On:`เปิด`,"Upload or add files":`อัปโหลดหรือเพิ่มไฟล์`,"Add files, agents, skills and more":`เพิ่มไฟล์ เอเจนต์ ทักษะ และอื่นๆ`,"No agents yet":`ยังไม่มีเอเจนต์`,"No skills yet":`ยังไม่มีทักษะ`,"No connectors yet":`ยังไม่มีตัวเชื่อม`,"No design system yet":`ยังไม่มีระบบดีไซน์`,"No plugins yet":`ยังไม่มีปลั๊กอิน`,"No devices yet":`ยังไม่มีอุปกรณ์`,"Search agents":`ค้นหาเอเจนต์`,"Search skills":`ค้นหาทักษะ`,"Search connectors":`ค้นหาตัวเชื่อม`,"Search design system":`ค้นหาระบบดีไซน์`,"Search plugins":`ค้นหาปลั๊กอิน`,"Search devices":`ค้นหาอุปกรณ์`,"Reading agents":`กำลังอ่านเอเจนต์`,"Reading skills":`กำลังอ่านทักษะ`,"Reading connectors":`กำลังอ่านตัวเชื่อม`,"Reading design system":`กำลังอ่านระบบดีไซน์`,"Reading plugins":`กำลังอ่านปลั๊กอิน`,"Adaptive reasoning based on task complexity":`การใช้เหตุผลตามความซับซ้อนของงาน`,"Answers right away, without thinking":`ตอบทันทีโดยไม่ต้องคิด`,"A quick pass with minimal thinking":`ผ่านอย่างรวดเร็วโดยคิดน้อย`,"Thinks before answering":`คิดก่อนตอบ`,"Deep reasoning for complex problems":`การใช้เหตุผลเชิงลึกสำหรับปัญหาซับซ้อน`,"Maximum compute and exhaustive verification":`การคำนวณสูงสุดและการตรวจอย่างละเอียด`,Effort:`ระดับความพยายาม`,"Effort: {level}":`ระดับความพยายาม: {level}`,Mode:`โหมด`,"Mode: {mode}":`โหมด: {mode}`,Model:`โมเดล`,"Model: {name}":`โมเดล: {name}`,"Voice mode":`โหมดเสียง`,"Hanzo is speaking — talk to interrupt":`Hanzo กำลังพูด — พูดเพื่อขัดจังหวะ`,"In conversation — click to hang up":`กำลังสนทนา — คลิกเพื่อวางสาย`,"Go to testimonial {n}":`ไปยังคำรับรอง {n}`,"Go to card {n}":`ไปยังการ์ด {n}`,"{n} of {total}":`{n} จาก {total}`,"Reading…":`กำลังอ่าน…`,Skill:`ทักษะ`,Plugin:`ปลั๊กอิน`},ode={Close:`Kapat`,"Close window":`Pencereyi kapat`,"Minimize window":`Pencereyi küçült`,"Restore window":`Pencereyi geri yükle`,"Maximize window":`Pencereyi büyüt`,Resize:`Yeniden boyutlandır`,"Select all":`Tümünü seç`,"Select row":`Satırı seç`,"Previous month":`Önceki ay`,"Next month":`Sonraki ay`,Dismiss:`Kapat`,Breadcrumb:`Gezinti yolu`,Cards:`Kartlar`,"Copy code":`Kodu kopyala`,Copied:`Kopyalandı`,"Copied!":`Kopyalandı!`,Copy:`Kopyala`,"Previous slide":`Önceki slayt`,"Next slide":`Sonraki slayt`,"Previous card":`Önceki kart`,"Next card":`Sonraki kart`,"Zoom out":`Uzaklaştır`,"Zoom in":`Yakınlaştır`,Rotate:`Döndür`,Filter:`Filtrele`,"Expand all":`Tümünü genişlet`,"Collapse all":`Tümünü daralt`,"Search...":`Ara...`,"Pick a date":`Tarih seçin`,Select:`Seç`,"Start typing...":`Yazmaya başlayın...`,Search:`Ara`,Decrease:`Azalt`,Increase:`Artır`,pagination:`sayfalama`,"Go to previous page":`Önceki sayfaya git`,"Go to next page":`Sonraki sayfaya git`,Previous:`Önceki`,Next:`Sonraki`,"More pages":`Diğer sayfalar`,Remove:`Kaldır`,"Go back":`Geri`,"Go forward":`İleri`,"Reload page":`Sayfayı yenile`,Share:`Paylaş`,"New tab":`Yeni sekme`,Menu:`Menü`,"Copy command":`Komutu kopyala`,"Terminal input":`Terminal girişi`,Seek:`Konum`,"Rewind 10 seconds":`10 saniye geri`,"Forward 10 seconds":`10 saniye ileri`,Volume:`Ses`,"Toggle captions":`Altyazıları aç veya kapat`,"Playback speed":`Oynatma hızı`,Quality:`Kalite`,"Picture in picture":`Resim içinde resim`,Play:`Oynat`,Pause:`Duraklat`,Mute:`Sessize al`,Unmute:`Sesi aç`,"Exit fullscreen":`Tam ekrandan çık`,"Enter fullscreen":`Tam ekran`,Expand:`Genişlet`,Collapse:`Daralt`,"Copy reply":`Yanıtı kopyala`,"Good result":`İyi sonuç`,"Bad result":`Kötü sonuç`,"Dialog Close":`İletişim kutusunu kapat`,Notifications:`Bildirimler`,Account:`Hesap`,Cart:`Sepet`,Call:`Arama`,"Video call":`Görüntülü arama`,Message:`Mesaj`,Main:`Ana`,Columns:`Sütunlar`,"No results.":`Sonuç yok.`,"No results":`Sonuç yok`,"No results found":`Sonuç bulunamadı`,"Drop files here":`Dosyaları buraya bırakın`,"Drag & drop files here":`Dosyaları sürükleyip bırakın`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`veya göz atmak için tıklayın (en fazla {maxFiles} dosya, her biri {maxSize} MB)`,"Remove {name}":`{name} öğesini kaldır`,"{selected} of {total} row(s) selected.":`{total} satırdan {selected} tanesi seçili.`,"Try again":`Yeniden dene`,"What’s up next?":`Sırada ne var?`,"Show password":`Şifreyi göster`,"Hide password":`Şifreyi gizle`,"Search icons":`Simge ara`,"No icon matches":`Eşleşen simge yok`,"Show all items ({n})":`Tümünü göster ({n})`,"Fewer {what}":`Daha az {what}`,"More {what}":`Daha fazla {what}`,"No tasks available. Add tasks to display Gantt chart.":`Görev yok. Gantt grafiğini görmek için görev ekleyin.`,January:`Ocak`,February:`Şubat`,March:`Mart`,April:`Nisan`,May:`Mayıs`,June:`Haziran`,July:`Temmuz`,August:`Ağustos`,September:`Eylül`,October:`Ekim`,November:`Kasım`,December:`Aralık`,Su:`Pz`,Mo:`Pt`,Tu:`Sa`,We:`Ça`,Th:`Pe`,Fr:`Cu`,Sa:`Ct`,"just now":`şimdi`,"in a moment":`birazdan`,"in 1 minute":`1 dakika içinde`,"in {n} minutes":`{n} dakika içinde`,"in 1 hour":`1 saat içinde`,"in {n} hours":`{n} saat içinde`,tomorrow:`yarın`,"in {n} days":`{n} gün içinde`,"in 1 week":`1 hafta içinde`,"in {n} weeks":`{n} hafta içinde`,"in 1 month":`1 ay içinde`,"in {n} months":`{n} ay içinde`,"in 1 year":`1 yıl içinde`,"in {n} years":`{n} yıl içinde`,"1 minute ago":`1 dakika önce`,"{n} minutes ago":`{n} dakika önce`,"1 hour ago":`1 saat önce`,"{n} hours ago":`{n} saat önce`,"1 day ago":`1 gün önce`,"{n} days ago":`{n} gün önce`,"1 week ago":`1 hafta önce`,"{n} weeks ago":`{n} hafta önce`,"1 month ago":`1 ay önce`,"{n} months ago":`{n} ay önce`,"1 year ago":`1 yıl önce`,"{n} years ago":`{n} yıl önce`,"Cookie notice":`Çerez bildirimi`,"Cookie preferences":`Çerez tercihleri`,"Close and use essential cookies only":`Kapat ve yalnızca zorunlu çerezleri kullan`,Back:`Geri`,"Log in":`Giriş yap`,"Search Hanzo or ask AI":`Hanzo’da ara veya yapay zekâya sor`,"Search models":`Model ara`,"Search branches…":`Dalları ara…`,"Search repositories…":`Depoları ara…`,"Show options":`Seçenekleri göster`,Retry:`Yeniden dene`,"Donut chart":`Halka grafik`,"Find an organization":`Kuruluş bul`,Organizations:`Kuruluşlar`,"Organization name":`Kuruluş adı`,"Previous page":`Önceki sayfa`,"Next page":`Sonraki sayfa`,"Continue with credits":`Kredilerle devam et`,"Try Hanzo":`Hanzo’yu dene`,"Terms & Policies":`Koşullar ve politikalar`,"Who this is for":`Kimler için`,"Bill yearly":`Yıllık faturalandır`,Apps:`Uygulamalar`,"Card actions":`Kart işlemleri`,"Assign to...":`Ata...`,"Search cards...":`Kart ara...`,"Clear search":`Aramayı temizle`,"Open files":`Açık dosyalar`,"Close panel":`Paneli kapat`,"Add an organization":`Kuruluş ekle`,"Keyboard Shortcuts":`Klavye kısayolları`,"Run a command":`Komut çalıştır`,"Type shell command...":`Kabuk komutu yazın...`,"Attached to the next message":`Sonraki iletiye eklendi`,"Channel Member Roster":`Kanal üyeleri`,"Channel Collaborative Notes":`Kanalın ortak notları`,"Code Diff Viewer":`Fark görüntüleyici`,"Live Voice Call":`Canlı sesli arama`,"MCP Server Hub":`MCP sunucu merkezi`,"Multi-Agent Swarm Bar":`Çoklu aracı çubuğu`,"Write shared channel notes, meeting agenda, or AI summaries...":`Paylaşılan kanal notları, gündem veya yapay zekâ özetleri yazın...`,"Help improve our AI models":`Yapay zekâ modellerimizi geliştirmeye yardım edin`,"Your name":`Adınız`,"Your role":`Rolünüz`,"Country or region":`Ülke veya bölge`,"Card details":`Kart bilgileri`,"Agree to recurring charges":`Yinelenen ücretleri kabul et`,"How you will use Hanzo":`Hanzo’yu nasıl kullanacağınız`,"Team size":`Ekip büyüklüğü`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Hizmet Şartlarını ve Kabul Edilebilir Kullanım Politikasını kabul ediyor ve en az 18 yaşında olduğumu onaylıyorum.`,"Empty string":`Boş dize`,"Empty array":`Boş dizi`,"Empty object":`Boş nesne`,"Copy {what}":`{what} kopyala`,"Ask anything":`Her şeyi sorun`,Auto:`Otomatik`,Instant:`Anında`,Low:`Düşük`,Medium:`Orta`,High:`Yüksek`,Max:`Maksimum`,Dictate:`Dikte`,"Dictating — click to stop":`Dikte ediliyor — durdurmak için tıklayın`,"Dictation settings":`Dikte ayarları`,Language:`Dil`,"No devices found":`Aygıt bulunamadı`,"Microphone {n}":`Mikrofon {n}`,"Nothing matches":`Eşleşme yok`,Commands:`Komutlar`,"Search commands…":`Komut ara…`,Agents:`Aracılar`,Skills:`Beceriler`,Connectors:`Bağlayıcılar`,"Design system":`Tasarım sistemi`,Plugins:`Eklentiler`,Devices:`Aygıtlar`,Memory:`Bellek`,Research:`Araştırma`,On:`Açık`,"Upload or add files":`Dosya yükle veya ekle`,"Add files, agents, skills and more":`Dosya, aracı, beceri ve daha fazlasını ekle`,"No agents yet":`Henüz aracı yok`,"No skills yet":`Henüz beceri yok`,"No connectors yet":`Henüz bağlayıcı yok`,"No design system yet":`Henüz tasarım sistemi yok`,"No plugins yet":`Henüz eklenti yok`,"No devices yet":`Henüz aygıt yok`,"Search agents":`Aracı ara`,"Search skills":`Beceri ara`,"Search connectors":`Bağlayıcı ara`,"Search design system":`Tasarım sisteminde ara`,"Search plugins":`Eklenti ara`,"Search devices":`Aygıt ara`,"Reading agents":`Aracılar okunuyor`,"Reading skills":`Beceriler okunuyor`,"Reading connectors":`Bağlayıcılar okunuyor`,"Reading design system":`Tasarım sistemi okunuyor`,"Reading plugins":`Eklentiler okunuyor`,"Adaptive reasoning based on task complexity":`Görevin karmaşıklığına göre uyarlanabilir akıl yürütme`,"Answers right away, without thinking":`Düşünmeden hemen yanıt verir`,"A quick pass with minimal thinking":`Az düşünerek hızlı bir geçiş`,"Thinks before answering":`Yanıtlamadan önce düşünür`,"Deep reasoning for complex problems":`Karmaşık sorunlar için derin akıl yürütme`,"Maximum compute and exhaustive verification":`En yüksek hesap ve kapsamlı doğrulama`,Effort:`Çaba`,"Effort: {level}":`Çaba: {level}`,Mode:`Mod`,"Mode: {mode}":`Mod: {mode}`,Model:`Model`,"Model: {name}":`Model: {name}`,"Voice mode":`Ses modu`,"Hanzo is speaking — talk to interrupt":`Hanzo konuşuyor — kesmek için konuşun`,"In conversation — click to hang up":`Görüşmede — kapatmak için tıklayın`,"Go to testimonial {n}":`{n}. görüşe git`,"Go to card {n}":`{n}. karta git`,"{n} of {total}":`{n} / {total}`,"Reading…":`Okunuyor…`,Skill:`Beceri`,Plugin:`Eklenti`},sde={Close:`Đóng`,"Close window":`Đóng cửa sổ`,"Minimize window":`Thu nhỏ cửa sổ`,"Restore window":`Khôi phục cửa sổ`,"Maximize window":`Phóng to cửa sổ`,Resize:`Đổi kích thước`,"Select all":`Chọn tất cả`,"Select row":`Chọn hàng`,"Previous month":`Tháng trước`,"Next month":`Tháng sau`,Dismiss:`Bỏ qua`,Breadcrumb:`Đường dẫn`,Cards:`Thẻ`,"Copy code":`Sao chép mã`,Copied:`Đã sao chép`,"Copied!":`Đã sao chép!`,Copy:`Sao chép`,"Previous slide":`Trang trước`,"Next slide":`Trang sau`,"Previous card":`Thẻ trước`,"Next card":`Thẻ sau`,"Zoom out":`Thu nhỏ`,"Zoom in":`Phóng to`,Rotate:`Xoay`,Filter:`Lọc`,"Expand all":`Mở rộng tất cả`,"Collapse all":`Thu gọn tất cả`,"Search...":`Tìm kiếm...`,"Pick a date":`Chọn ngày`,Select:`Chọn`,"Start typing...":`Bắt đầu nhập...`,Search:`Tìm kiếm`,Decrease:`Giảm`,Increase:`Tăng`,pagination:`phân trang`,"Go to previous page":`Đến trang trước`,"Go to next page":`Đến trang sau`,Previous:`Trước`,Next:`Tiếp`,"More pages":`Thêm trang`,Remove:`Xóa`,"Go back":`Quay lại`,"Go forward":`Tiến`,"Reload page":`Tải lại trang`,Share:`Chia sẻ`,"New tab":`Tab mới`,Menu:`Menu`,"Copy command":`Sao chép lệnh`,"Terminal input":`Nhập lệnh`,Seek:`Tua`,"Rewind 10 seconds":`Tua lại 10 giây`,"Forward 10 seconds":`Tua đi 10 giây`,Volume:`Âm lượng`,"Toggle captions":`Bật hoặc tắt phụ đề`,"Playback speed":`Tốc độ phát`,Quality:`Chất lượng`,"Picture in picture":`Hình trong hình`,Play:`Phát`,Pause:`Tạm dừng`,Mute:`Tắt tiếng`,Unmute:`Bật tiếng`,"Exit fullscreen":`Thoát toàn màn hình`,"Enter fullscreen":`Toàn màn hình`,Expand:`Mở rộng`,Collapse:`Thu gọn`,"Copy reply":`Sao chép câu trả lời`,"Good result":`Kết quả tốt`,"Bad result":`Kết quả kém`,"Dialog Close":`Đóng hộp thoại`,Notifications:`Thông báo`,Account:`Tài khoản`,Cart:`Giỏ hàng`,Call:`Cuộc gọi`,"Video call":`Cuộc gọi video`,Message:`Tin nhắn`,Main:`Chính`,Columns:`Cột`,"No results.":`Không có kết quả.`,"No results":`Không có kết quả`,"No results found":`Không tìm thấy kết quả`,"Drop files here":`Thả tệp vào đây`,"Drag & drop files here":`Kéo và thả tệp vào đây`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`hoặc bấm để duyệt (tối đa {maxFiles} tệp, mỗi tệp {maxSize} MB)`,"Remove {name}":`Xóa {name}`,"{selected} of {total} row(s) selected.":`Đã chọn {selected} / {total} hàng.`,"Try again":`Thử lại`,"What’s up next?":`Tiếp theo là gì?`,"Show password":`Hiện mật khẩu`,"Hide password":`Ẩn mật khẩu`,"Search icons":`Tìm biểu tượng`,"No icon matches":`Không có biểu tượng khớp`,"Show all items ({n})":`Hiện tất cả ({n})`,"Fewer {what}":`Ít {what} hơn`,"More {what}":`Thêm {what}`,"No tasks available. Add tasks to display Gantt chart.":`Chưa có công việc. Thêm công việc để hiện biểu đồ Gantt.`,January:`tháng 1`,February:`tháng 2`,March:`tháng 3`,April:`tháng 4`,May:`tháng 5`,June:`tháng 6`,July:`tháng 7`,August:`tháng 8`,September:`tháng 9`,October:`tháng 10`,November:`tháng 11`,December:`tháng 12`,Su:`CN`,Mo:`T2`,Tu:`T3`,We:`T4`,Th:`T5`,Fr:`T6`,Sa:`T7`,"just now":`vừa xong`,"in a moment":`chốc nữa`,"in 1 minute":`sau 1 phút`,"in {n} minutes":`sau {n} phút`,"in 1 hour":`sau 1 giờ`,"in {n} hours":`sau {n} giờ`,tomorrow:`ngày mai`,"in {n} days":`sau {n} ngày`,"in 1 week":`sau 1 tuần`,"in {n} weeks":`sau {n} tuần`,"in 1 month":`sau 1 tháng`,"in {n} months":`sau {n} tháng`,"in 1 year":`sau 1 năm`,"in {n} years":`sau {n} năm`,"1 minute ago":`1 phút trước`,"{n} minutes ago":`{n} phút trước`,"1 hour ago":`1 giờ trước`,"{n} hours ago":`{n} giờ trước`,"1 day ago":`1 ngày trước`,"{n} days ago":`{n} ngày trước`,"1 week ago":`1 tuần trước`,"{n} weeks ago":`{n} tuần trước`,"1 month ago":`1 tháng trước`,"{n} months ago":`{n} tháng trước`,"1 year ago":`1 năm trước`,"{n} years ago":`{n} năm trước`,"Cookie notice":`Thông báo cookie`,"Cookie preferences":`Tùy chọn cookie`,"Close and use essential cookies only":`Đóng và chỉ dùng cookie thiết yếu`,Back:`Quay lại`,"Log in":`Đăng nhập`,"Search Hanzo or ask AI":`Tìm trong Hanzo hoặc hỏi AI`,"Search models":`Tìm mô hình`,"Search branches…":`Tìm nhánh…`,"Search repositories…":`Tìm kho…`,"Show options":`Hiện tùy chọn`,Retry:`Thử lại`,"Donut chart":`Biểu đồ vành khuyên`,"Find an organization":`Tìm tổ chức`,Organizations:`Tổ chức`,"Organization name":`Tên tổ chức`,"Previous page":`Trang trước`,"Next page":`Trang sau`,"Continue with credits":`Tiếp tục bằng tín dụng`,"Try Hanzo":`Dùng thử Hanzo`,"Terms & Policies":`Điều khoản và chính sách`,"Who this is for":`Dành cho ai`,"Bill yearly":`Thanh toán theo năm`,Apps:`Ứng dụng`,"Card actions":`Thao tác thẻ`,"Assign to...":`Gán cho...`,"Search cards...":`Tìm thẻ...`,"Clear search":`Xóa tìm kiếm`,"Open files":`Tệp đang mở`,"Close panel":`Đóng bảng`,"Add an organization":`Thêm tổ chức`,"Keyboard Shortcuts":`Phím tắt`,"Run a command":`Chạy lệnh`,"Type shell command...":`Nhập lệnh shell...`,"Attached to the next message":`Đính kèm tin nhắn tiếp theo`,"Channel Member Roster":`Thành viên kênh`,"Channel Collaborative Notes":`Ghi chú cộng tác của kênh`,"Code Diff Viewer":`Trình xem khác biệt mã`,"Live Voice Call":`Cuộc gọi thoại trực tiếp`,"MCP Server Hub":`Trung tâm máy chủ MCP`,"Multi-Agent Swarm Bar":`Thanh bầy tác nhân`,"Write shared channel notes, meeting agenda, or AI summaries...":`Viết ghi chú kênh, chương trình họp hoặc tóm tắt AI...`,"Help improve our AI models":`Giúp cải thiện mô hình AI của chúng tôi`,"Your name":`Tên của bạn`,"Your role":`Vai trò của bạn`,"Country or region":`Quốc gia hoặc khu vực`,"Card details":`Thông tin thẻ`,"Agree to recurring charges":`Đồng ý các khoản phí định kỳ`,"How you will use Hanzo":`Bạn sẽ dùng Hanzo thế nào`,"Team size":`Quy mô nhóm`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`Tôi đồng ý với Điều khoản dịch vụ và Chính sách sử dụng được chấp nhận và xác nhận tôi đủ 18 tuổi.`,"Empty string":`Chuỗi rỗng`,"Empty array":`Mảng rỗng`,"Empty object":`Đối tượng rỗng`,"Copy {what}":`Sao chép {what}`,"Ask anything":`Hỏi bất cứ điều gì`,Auto:`Tự động`,Instant:`Tức thì`,Low:`Thấp`,Medium:`Trung bình`,High:`Cao`,Max:`Tối đa`,Dictate:`Đọc chính tả`,"Dictating — click to stop":`Đang đọc — bấm để dừng`,"Dictation settings":`Cài đặt đọc chính tả`,Language:`Ngôn ngữ`,"No devices found":`Không tìm thấy thiết bị`,"Microphone {n}":`Micro {n}`,"Nothing matches":`Không có gì khớp`,Commands:`Lệnh`,"Search commands…":`Tìm lệnh…`,Agents:`Tác nhân`,Skills:`Kỹ năng`,Connectors:`Trình kết nối`,"Design system":`Hệ thống thiết kế`,Plugins:`Plugin`,Devices:`Thiết bị`,Memory:`Bộ nhớ`,Research:`Nghiên cứu`,On:`Bật`,"Upload or add files":`Tải lên hoặc thêm tệp`,"Add files, agents, skills and more":`Thêm tệp, tác nhân, kỹ năng và hơn thế`,"No agents yet":`Chưa có tác nhân`,"No skills yet":`Chưa có kỹ năng`,"No connectors yet":`Chưa có trình kết nối`,"No design system yet":`Chưa có hệ thống thiết kế`,"No plugins yet":`Chưa có plugin`,"No devices yet":`Chưa có thiết bị`,"Search agents":`Tìm tác nhân`,"Search skills":`Tìm kỹ năng`,"Search connectors":`Tìm trình kết nối`,"Search design system":`Tìm trong hệ thống thiết kế`,"Search plugins":`Tìm plugin`,"Search devices":`Tìm thiết bị`,"Reading agents":`Đang đọc tác nhân`,"Reading skills":`Đang đọc kỹ năng`,"Reading connectors":`Đang đọc trình kết nối`,"Reading design system":`Đang đọc hệ thống thiết kế`,"Reading plugins":`Đang đọc plugin`,"Adaptive reasoning based on task complexity":`Suy luận thích ứng theo độ phức tạp`,"Answers right away, without thinking":`Trả lời ngay, không suy nghĩ`,"A quick pass with minimal thinking":`Một lượt nhanh, ít suy nghĩ`,"Thinks before answering":`Suy nghĩ trước khi trả lời`,"Deep reasoning for complex problems":`Suy luận sâu cho vấn đề phức tạp`,"Maximum compute and exhaustive verification":`Tính toán tối đa và kiểm tra toàn diện`,Effort:`Mức nỗ lực`,"Effort: {level}":`Mức nỗ lực: {level}`,Mode:`Chế độ`,"Mode: {mode}":`Chế độ: {mode}`,Model:`Mô hình`,"Model: {name}":`Mô hình: {name}`,"Voice mode":`Chế độ giọng nói`,"Hanzo is speaking — talk to interrupt":`Hanzo đang nói — hãy nói để ngắt`,"In conversation — click to hang up":`Đang trò chuyện — bấm để gác máy`,"Go to testimonial {n}":`Đến lời nhận xét {n}`,"Go to card {n}":`Đến thẻ {n}`,"{n} of {total}":`{n} / {total}`,"Reading…":`Đang đọc…`,Skill:`Kỹ năng`,Plugin:`Plugin`},cde={Close:`关闭`,"Close window":`关闭窗口`,"Minimize window":`最小化窗口`,"Restore window":`还原窗口`,"Maximize window":`最大化窗口`,Resize:`调整大小`,"Select all":`全选`,"Select row":`选择行`,"Previous month":`上个月`,"Next month":`下个月`,Dismiss:`关闭`,Breadcrumb:`面包屑`,Cards:`卡片`,"Copy code":`复制代码`,Copied:`已复制`,"Copied!":`已复制!`,Copy:`复制`,"Previous slide":`上一张`,"Next slide":`下一张`,"Previous card":`上一张卡片`,"Next card":`下一张卡片`,"Zoom out":`缩小`,"Zoom in":`放大`,Rotate:`旋转`,Filter:`筛选`,"Expand all":`全部展开`,"Collapse all":`全部折叠`,"Search...":`搜索...`,"Pick a date":`选择日期`,Select:`选择`,"Start typing...":`开始输入...`,Search:`搜索`,Decrease:`减少`,Increase:`增加`,pagination:`分页`,"Go to previous page":`转到上一页`,"Go to next page":`转到下一页`,Previous:`上一页`,Next:`下一页`,"More pages":`更多页面`,Remove:`移除`,"Go back":`返回`,"Go forward":`前进`,"Reload page":`重新加载页面`,Share:`分享`,"New tab":`新标签页`,Menu:`菜单`,"Copy command":`复制命令`,"Terminal input":`终端输入`,Seek:`拖动进度`,"Rewind 10 seconds":`后退 10 秒`,"Forward 10 seconds":`快进 10 秒`,Volume:`音量`,"Toggle captions":`开关字幕`,"Playback speed":`播放速度`,Quality:`画质`,"Picture in picture":`画中画`,Play:`播放`,Pause:`暂停`,Mute:`静音`,Unmute:`取消静音`,"Exit fullscreen":`退出全屏`,"Enter fullscreen":`全屏`,Expand:`展开`,Collapse:`折叠`,"Copy reply":`复制回复`,"Good result":`结果好`,"Bad result":`结果不好`,"Dialog Close":`关闭对话框`,Notifications:`通知`,Account:`账户`,Cart:`购物车`,Call:`通话`,"Video call":`视频通话`,Message:`消息`,Main:`主导航`,Columns:`列`,"No results.":`没有结果。`,"No results":`无结果`,"No results found":`未找到结果`,"Drop files here":`将文件拖放到此处`,"Drag & drop files here":`拖放文件到此处`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`或点击浏览(最多 {maxFiles} 个文件,每个 {maxSize} MB)`,"Remove {name}":`移除 {name}`,"{selected} of {total} row(s) selected.":`已选择 {selected}/{total} 行。`,"Try again":`重试`,"What’s up next?":`接下来做什么?`,"Show password":`显示密码`,"Hide password":`隐藏密码`,"Search icons":`搜索图标`,"No icon matches":`没有匹配的图标`,"Show all items ({n})":`显示全部 ({n})`,"Fewer {what}":`减少{what}`,"More {what}":`增加{what}`,"No tasks available. Add tasks to display Gantt chart.":`没有任务。添加任务以显示甘特图。`,January:`一月`,February:`二月`,March:`三月`,April:`四月`,May:`五月`,June:`六月`,July:`七月`,August:`八月`,September:`九月`,October:`十月`,November:`十一月`,December:`十二月`,Su:`日`,Mo:`一`,Tu:`二`,We:`三`,Th:`四`,Fr:`五`,Sa:`六`,"just now":`刚刚`,"in a moment":`片刻后`,"in 1 minute":`1 分钟后`,"in {n} minutes":`{n} 分钟后`,"in 1 hour":`1 小时后`,"in {n} hours":`{n} 小时后`,tomorrow:`明天`,"in {n} days":`{n} 天后`,"in 1 week":`1 周后`,"in {n} weeks":`{n} 周后`,"in 1 month":`1 个月后`,"in {n} months":`{n} 个月后`,"in 1 year":`1 年后`,"in {n} years":`{n} 年后`,"1 minute ago":`1 分钟前`,"{n} minutes ago":`{n} 分钟前`,"1 hour ago":`1 小时前`,"{n} hours ago":`{n} 小时前`,"1 day ago":`1 天前`,"{n} days ago":`{n} 天前`,"1 week ago":`1 周前`,"{n} weeks ago":`{n} 周前`,"1 month ago":`1 个月前`,"{n} months ago":`{n} 个月前`,"1 year ago":`1 年前`,"{n} years ago":`{n} 年前`,"Cookie notice":`Cookie 提示`,"Cookie preferences":`Cookie 偏好`,"Close and use essential cookies only":`关闭并仅使用必要 Cookie`,Back:`返回`,"Log in":`登录`,"Search Hanzo or ask AI":`搜索 Hanzo 或询问 AI`,"Search models":`搜索模型`,"Search branches…":`搜索分支…`,"Search repositories…":`搜索仓库…`,"Show options":`显示选项`,Retry:`重试`,"Donut chart":`环形图`,"Find an organization":`查找组织`,Organizations:`组织`,"Organization name":`组织名称`,"Previous page":`上一页`,"Next page":`下一页`,"Continue with credits":`使用额度继续`,"Try Hanzo":`试用 Hanzo`,"Terms & Policies":`条款与政策`,"Who this is for":`适合谁`,"Bill yearly":`按年计费`,Apps:`应用`,"Card actions":`卡片操作`,"Assign to...":`分配给...`,"Search cards...":`搜索卡片...`,"Clear search":`清除搜索`,"Open files":`打开的文件`,"Close panel":`关闭面板`,"Add an organization":`添加组织`,"Keyboard Shortcuts":`键盘快捷键`,"Run a command":`运行命令`,"Type shell command...":`输入 shell 命令...`,"Attached to the next message":`附加到下一条消息`,"Channel Member Roster":`频道成员`,"Channel Collaborative Notes":`频道协作笔记`,"Code Diff Viewer":`代码差异查看器`,"Live Voice Call":`实时语音通话`,"MCP Server Hub":`MCP 服务器中心`,"Multi-Agent Swarm Bar":`多智能体群集栏`,"Write shared channel notes, meeting agenda, or AI summaries...":`撰写频道笔记、会议议程或 AI 摘要...`,"Help improve our AI models":`帮助改进我们的 AI 模型`,"Your name":`你的名字`,"Your role":`你的角色`,"Country or region":`国家或地区`,"Card details":`银行卡信息`,"Agree to recurring charges":`同意周期性扣款`,"How you will use Hanzo":`你将如何使用 Hanzo`,"Team size":`团队规模`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`我同意服务条款和可接受使用政策,并确认我已年满 18 岁。`,"Empty string":`空字符串`,"Empty array":`空数组`,"Empty object":`空对象`,"Copy {what}":`复制{what}`,"Ask anything":`尽管问`,Auto:`自动`,Instant:`即时`,Low:`低`,Medium:`中`,High:`高`,Max:`最大`,Dictate:`听写`,"Dictating — click to stop":`正在听写 — 点击停止`,"Dictation settings":`听写设置`,Language:`语言`,"No devices found":`未找到设备`,"Microphone {n}":`麦克风 {n}`,"Nothing matches":`没有匹配项`,Commands:`命令`,"Search commands…":`搜索命令…`,Agents:`智能体`,Skills:`技能`,Connectors:`连接器`,"Design system":`设计系统`,Plugins:`插件`,Devices:`设备`,Memory:`记忆`,Research:`研究`,On:`开`,"Upload or add files":`上传或添加文件`,"Add files, agents, skills and more":`添加文件、智能体、技能等`,"No agents yet":`还没有智能体`,"No skills yet":`还没有技能`,"No connectors yet":`还没有连接器`,"No design system yet":`还没有设计系统`,"No plugins yet":`还没有插件`,"No devices yet":`还没有设备`,"Search agents":`搜索智能体`,"Search skills":`搜索技能`,"Search connectors":`搜索连接器`,"Search design system":`搜索设计系统`,"Search plugins":`搜索插件`,"Search devices":`搜索设备`,"Reading agents":`正在读取智能体`,"Reading skills":`正在读取技能`,"Reading connectors":`正在读取连接器`,"Reading design system":`正在读取设计系统`,"Reading plugins":`正在读取插件`,"Adaptive reasoning based on task complexity":`根据任务复杂度自适应推理`,"Answers right away, without thinking":`立即回答,不进行思考`,"A quick pass with minimal thinking":`快速过一遍,少思考`,"Thinks before answering":`先想再答`,"Deep reasoning for complex problems":`针对复杂问题的深度推理`,"Maximum compute and exhaustive verification":`最大算力与穷尽验证`,Effort:`力度`,"Effort: {level}":`力度:{level}`,Mode:`模式`,"Mode: {mode}":`模式:{mode}`,Model:`模型`,"Model: {name}":`模型:{name}`,"Voice mode":`语音模式`,"Hanzo is speaking — talk to interrupt":`Hanzo 正在说话 — 开口即可打断`,"In conversation — click to hang up":`通话中 — 点击挂断`,"Go to testimonial {n}":`转到评价 {n}`,"Go to card {n}":`转到卡片 {n}`,"{n} of {total}":`{n} / {total}`,"Reading…":`正在读取…`,Skill:`技能`,Plugin:`插件`},lde={Close:`關閉`,"Close window":`關閉視窗`,"Minimize window":`最小化視窗`,"Restore window":`還原視窗`,"Maximize window":`最大化視窗`,Resize:`調整大小`,"Select all":`全選`,"Select row":`選擇列`,"Previous month":`上個月`,"Next month":`下個月`,Dismiss:`關閉`,Breadcrumb:`導覽路徑`,Cards:`卡片`,"Copy code":`複製程式碼`,Copied:`已複製`,"Copied!":`已複製!`,Copy:`複製`,"Previous slide":`上一張`,"Next slide":`下一張`,"Previous card":`上一張卡片`,"Next card":`下一張卡片`,"Zoom out":`縮小`,"Zoom in":`放大`,Rotate:`旋轉`,Filter:`篩選`,"Expand all":`全部展開`,"Collapse all":`全部摺疊`,"Search...":`搜尋...`,"Pick a date":`選擇日期`,Select:`選擇`,"Start typing...":`開始輸入...`,Search:`搜尋`,Decrease:`減少`,Increase:`增加`,pagination:`分頁`,"Go to previous page":`前往上一頁`,"Go to next page":`前往下一頁`,Previous:`上一頁`,Next:`下一頁`,"More pages":`更多頁面`,Remove:`移除`,"Go back":`返回`,"Go forward":`前進`,"Reload page":`重新載入頁面`,Share:`分享`,"New tab":`新分頁`,Menu:`選單`,"Copy command":`複製指令`,"Terminal input":`終端機輸入`,Seek:`拖曳進度`,"Rewind 10 seconds":`後退 10 秒`,"Forward 10 seconds":`快轉 10 秒`,Volume:`音量`,"Toggle captions":`開關字幕`,"Playback speed":`播放速度`,Quality:`畫質`,"Picture in picture":`子母畫面`,Play:`播放`,Pause:`暫停`,Mute:`靜音`,Unmute:`取消靜音`,"Exit fullscreen":`結束全螢幕`,"Enter fullscreen":`全螢幕`,Expand:`展開`,Collapse:`摺疊`,"Copy reply":`複製回覆`,"Good result":`結果好`,"Bad result":`結果不好`,"Dialog Close":`關閉對話方塊`,Notifications:`通知`,Account:`帳戶`,Cart:`購物車`,Call:`通話`,"Video call":`視訊通話`,Message:`訊息`,Main:`主導覽`,Columns:`欄`,"No results.":`沒有結果。`,"No results":`無結果`,"No results found":`找不到結果`,"Drop files here":`將檔案拖放到這裡`,"Drag & drop files here":`拖放檔案到這裡`,"or click to browse (max {maxFiles} files, {maxSize}MB each)":`或點擊瀏覽(最多 {maxFiles} 個檔案,每個 {maxSize} MB)`,"Remove {name}":`移除 {name}`,"{selected} of {total} row(s) selected.":`已選取 {selected}/{total} 列。`,"Try again":`再試一次`,"What’s up next?":`接下來做什麼?`,"Show password":`顯示密碼`,"Hide password":`隱藏密碼`,"Search icons":`搜尋圖示`,"No icon matches":`沒有相符的圖示`,"Show all items ({n})":`顯示全部 ({n})`,"Fewer {what}":`減少{what}`,"More {what}":`增加{what}`,"No tasks available. Add tasks to display Gantt chart.":`沒有任務。新增任務以顯示甘特圖。`,January:`一月`,February:`二月`,March:`三月`,April:`四月`,May:`五月`,June:`六月`,July:`七月`,August:`八月`,September:`九月`,October:`十月`,November:`十一月`,December:`十二月`,Su:`日`,Mo:`一`,Tu:`二`,We:`三`,Th:`四`,Fr:`五`,Sa:`六`,"just now":`剛剛`,"in a moment":`稍後`,"in 1 minute":`1 分鐘後`,"in {n} minutes":`{n} 分鐘後`,"in 1 hour":`1 小時後`,"in {n} hours":`{n} 小時後`,tomorrow:`明天`,"in {n} days":`{n} 天後`,"in 1 week":`1 週後`,"in {n} weeks":`{n} 週後`,"in 1 month":`1 個月後`,"in {n} months":`{n} 個月後`,"in 1 year":`1 年後`,"in {n} years":`{n} 年後`,"1 minute ago":`1 分鐘前`,"{n} minutes ago":`{n} 分鐘前`,"1 hour ago":`1 小時前`,"{n} hours ago":`{n} 小時前`,"1 day ago":`1 天前`,"{n} days ago":`{n} 天前`,"1 week ago":`1 週前`,"{n} weeks ago":`{n} 週前`,"1 month ago":`1 個月前`,"{n} months ago":`{n} 個月前`,"1 year ago":`1 年前`,"{n} years ago":`{n} 年前`,"Cookie notice":`Cookie 通知`,"Cookie preferences":`Cookie 偏好`,"Close and use essential cookies only":`關閉並僅使用必要 Cookie`,Back:`返回`,"Log in":`登入`,"Search Hanzo or ask AI":`搜尋 Hanzo 或詢問 AI`,"Search models":`搜尋模型`,"Search branches…":`搜尋分支…`,"Search repositories…":`搜尋存放庫…`,"Show options":`顯示選項`,Retry:`重試`,"Donut chart":`環形圖`,"Find an organization":`尋找組織`,Organizations:`組織`,"Organization name":`組織名稱`,"Previous page":`上一頁`,"Next page":`下一頁`,"Continue with credits":`使用額度繼續`,"Try Hanzo":`試用 Hanzo`,"Terms & Policies":`條款與政策`,"Who this is for":`適合誰`,"Bill yearly":`按年計費`,Apps:`應用程式`,"Card actions":`卡片操作`,"Assign to...":`指派給...`,"Search cards...":`搜尋卡片...`,"Clear search":`清除搜尋`,"Open files":`開啟的檔案`,"Close panel":`關閉面板`,"Add an organization":`新增組織`,"Keyboard Shortcuts":`鍵盤快速鍵`,"Run a command":`執行指令`,"Type shell command...":`輸入 shell 指令...`,"Attached to the next message":`附加到下一則訊息`,"Channel Member Roster":`頻道成員`,"Channel Collaborative Notes":`頻道協作筆記`,"Code Diff Viewer":`程式碼差異檢視`,"Live Voice Call":`即時語音通話`,"MCP Server Hub":`MCP 伺服器中心`,"Multi-Agent Swarm Bar":`多代理群集列`,"Write shared channel notes, meeting agenda, or AI summaries...":`撰寫頻道筆記、會議議程或 AI 摘要...`,"Help improve our AI models":`協助改進我們的 AI 模型`,"Your name":`你的名字`,"Your role":`你的角色`,"Country or region":`國家或地區`,"Card details":`卡片資訊`,"Agree to recurring charges":`同意週期性扣款`,"How you will use Hanzo":`你會如何使用 Hanzo`,"Team size":`團隊規模`,"I agree to the Terms of Service and Acceptable Use Policy and confirm that I am at least 18 years of age":`我同意服務條款與可接受使用政策,並確認我已年滿 18 歲。`,"Empty string":`空字串`,"Empty array":`空陣列`,"Empty object":`空物件`,"Copy {what}":`複製{what}`,"Ask anything":`儘管問`,Auto:`自動`,Instant:`即時`,Low:`低`,Medium:`中`,High:`高`,Max:`最大`,Dictate:`聽寫`,"Dictating — click to stop":`正在聽寫 — 點擊停止`,"Dictation settings":`聽寫設定`,Language:`語言`,"No devices found":`找不到裝置`,"Microphone {n}":`麥克風 {n}`,"Nothing matches":`沒有相符項目`,Commands:`指令`,"Search commands…":`搜尋指令…`,Agents:`代理`,Skills:`技能`,Connectors:`連接器`,"Design system":`設計系統`,Plugins:`外掛`,Devices:`裝置`,Memory:`記憶`,Research:`研究`,On:`開`,"Upload or add files":`上傳或新增檔案`,"Add files, agents, skills and more":`新增檔案、代理、技能等`,"No agents yet":`還沒有代理`,"No skills yet":`還沒有技能`,"No connectors yet":`還沒有連接器`,"No design system yet":`還沒有設計系統`,"No plugins yet":`還沒有外掛`,"No devices yet":`還沒有裝置`,"Search agents":`搜尋代理`,"Search skills":`搜尋技能`,"Search connectors":`搜尋連接器`,"Search design system":`搜尋設計系統`,"Search plugins":`搜尋外掛`,"Search devices":`搜尋裝置`,"Reading agents":`正在讀取代理`,"Reading skills":`正在讀取技能`,"Reading connectors":`正在讀取連接器`,"Reading design system":`正在讀取設計系統`,"Reading plugins":`正在讀取外掛`,"Adaptive reasoning based on task complexity":`依任務複雜度調整的推理`,"Answers right away, without thinking":`立即回答,不進行思考`,"A quick pass with minimal thinking":`快速過一遍,少思考`,"Thinks before answering":`先想再答`,"Deep reasoning for complex problems":`針對複雜問題的深度推理`,"Maximum compute and exhaustive verification":`最大算力與徹底驗證`,Effort:`力度`,"Effort: {level}":`力度:{level}`,Mode:`模式`,"Mode: {mode}":`模式:{mode}`,Model:`模型`,"Model: {name}":`模型:{name}`,"Voice mode":`語音模式`,"Hanzo is speaking — talk to interrupt":`Hanzo 正在說話 — 開口即可打斷`,"In conversation — click to hang up":`通話中 — 點擊掛斷`,"Go to testimonial {n}":`前往評價 {n}`,"Go to card {n}":`前往卡片 {n}`,"{n} of {total}":`{n} / {total}`,"Reading…":`正在讀取…`,Skill:`技能`,Plugin:`外掛`},L2=e=>e,ude={ar:L2(Jue),"de-DE":L2(Yue),"es-ES":L2(Xue),"fr-FR":L2(Zue),"hi-IN":L2(Que),"id-ID":L2($ue),"it-IT":L2(ede),"ja-JP":L2(tde),"ko-KR":L2(nde),"pt-BR":L2(rde),ru:L2(ide),th:L2(ade),tr:L2(ode),vi:L2(sde),"zh-Hans":L2(cde),"zh-Hant":L2(lde)},R2=e=>ude[e]??{},dde={display:`contents`};function fde({children:e,locale:t,messages:n,syncDocument:r=!1}){let i=Ple(t),a=Lle(i,n?{...R2(i),...n}:R2(i)),o=R0(i),s=Fle(t);return(0,b.useLayoutEffect)(()=>{if(!r||typeof document>`u`)return;let e=document.documentElement,t=e.lang,n=e.dir;return e.lang=s,e.dir=o,()=>{e.lang=t,e.dir=n}},[r,s,o]),(0,R.jsx)(z0.Provider,{value:a,children:(0,R.jsx)(`div`,{dir:o,lang:s,style:dde,children:e})})}var pde=(0,b.createContext)(null),mde=({children:e,theme:t,analytics:n,config:r=mce,appearance:i,locale:a,messages:o})=>{let{pref:s,set:c}=que(i),l=(0,b.useMemo)(()=>({pref:s,set:c}),[s,c]),u=Kue(),d=a||o?(0,R.jsx)(fde,{locale:a,messages:o,children:e}):e,f=(0,R.jsx)(pde.Provider,{value:l,children:(0,R.jsx)(uj,{config:r,defaultTheme:t??u,disableInjectCSS:!0,children:d})});return n?(0,R.jsx)(cj,{...n===!0?{}:n,children:f}):f},hde=({size:e=11,label:t})=>(0,R.jsxs)(`svg`,{width:e*30/14,height:e,viewBox:`0 0 30 14`,focusable:`false`,...t?{role:`img`,"aria-label":t}:{"aria-hidden":!0},style:{flexShrink:0,display:`block`},children:[(0,R.jsx)(`path`,{d:`M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z`,fill:`#fff`,fillRule:`evenodd`,clipRule:`evenodd`}),(0,R.jsx)(`path`,{d:`M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z`,fill:`#06f`,fillRule:`evenodd`,clipRule:`evenodd`}),(0,R.jsx)(`path`,{d:`M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z`,fill:`#fff`}),(0,R.jsx)(`path`,{d:`M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z`,fill:`#06f`})]}),z2=`hzconsent-open`,B2=`#choices`,gde=1500,_de=()=>{let e=Gt();return e.region?e.mode:void 0},vde=Symbol.for(`hanzo.ui.consent.links`),V2=`hzconsent-links`;function yde(){if((globalThis[vde]??0)>0)return!0;for(let e of document.querySelectorAll(`a[href*="${B2}"]`))try{let t=new URL(e.getAttribute(`href`)??``,document.baseURI);if(t.hash===B2&&t.origin===window.location.origin)return!0}catch{}return!1}var bde=(e,t,n,r)=>[{id:`necessary`,title:e(`Strictly Necessary Cookies`),body:e(`These are needed for the site to work, so they are always on. They keep you signed in and your session secure, protect forms against cross-site request forgery, spread traffic across servers, remember the choice you make here, and keep what you have typed into a form. They include {brand}'s own first-party analytics, which counts visits and finds what is broken for {brand} alone and is never sold or shared.`,{brand:t})},{id:`analytics`,key:`analytics`,title:e(`Performance Cookies`),body:e(`Google Analytics: lets Google measure visits to {brand} with its own cookies.`,{brand:t})},{id:`marketing`,key:`marketing`,title:e(`Marketing Cookies`),body:e(`The Meta pixel: lets Meta measure the sign-ups and orders {brand}'s ads led to.`,{brand:t})},{id:`ads`,key:`ads`,title:e(`Sell, Share, or Use Your Data for Targeted Advertising`),body:e(`Lets Google and Meta use your visits to choose the ads they show you on other sites and apps. Some US state privacy laws call this a “sale” or “sharing” of your personal information, or “targeted advertising”, and give you the right to opt out: {rule}`,{rule:e(r?`your browser’s signal keeps it off.`:n?`it stays off unless you turn it on.`:`turn this off to opt out.`)})}],xde=(e,t,n)=>e(n?`We use cookies and similar technologies to provide our services. Essential cookies are required for the site to work and cannot be turned off. Learn more in our `:t?`We use cookies and similar technologies to provide our services, measure performance, and support advertising. Essential cookies are required for the site to work and cannot be turned off. You can allow or reject optional cookies below. Learn more in our `:`We use cookies and similar technologies to provide our services, measure performance, and support advertising. Google Analytics and the Meta pixel run on this site by default. Turn either off below, or turn off the last switch to opt out of the sale or sharing of your personal information for targeted advertising; each switch is saved as soon as you change it. Essential cookies are required for the site to work and cannot be turned off. Learn more in our `),Sde=cN(`Your browser asks sites not to track you, so all of these stay off.`),H2={top:`max(16px, calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 8px))`,bottom:`max(16px, calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 8px))`,left:`max(16px, calc(var(--safe-left, env(safe-area-inset-left, 0px)) + 8px))`,right:`max(16px, calc(var(--safe-right, env(safe-area-inset-right, 0px)) + 8px))`},U2={button:`var(--radius-lg, 12px)`,card:`var(--radius-xl, 16px)`},W2={bg:`$background`,borderWidth:1,borderColor:`$borderColor`,rounded:U2.card,shadowColor:`rgba(0,0,0,0.25)`,shadowRadius:24,shadowOffset:{width:0,height:8}},G2={...q(`consent`),...W2,position:`fixed`,b:H2.bottom,l:H2.left,r:H2.right,mx:`auto`,z:`var(--z-banner, 50)`,py:`$3`,paddingInlineStart:`$4`,paddingInlineEnd:56},K2={width:`fit-content`},q2={outlineColor:`var(--ring)`,outlineStyle:`solid`,outlineWidth:2,outlineOffset:2},J2=(e,t,n)=>({size:`sm`,minH:36,rounded:U2.button,bg:e,color:n,borderColor:`transparent`,hoverStyle:{bg:t,borderColor:`transparent`,opacity:1},pressStyle:{bg:t,borderColor:`transparent`,opacity:1},focusStyle:{borderColor:`transparent`},focusVisibleStyle:q2}),Y2=J2(`var(--primary)`,`var(--primary-hover)`,`var(--primary-foreground)`),X2=J2(`var(--secondary)`,`var(--secondary-hover)`,`var(--secondary-foreground)`),Z2={rounded:U2.button,bg:`transparent`,borderColor:`transparent`,hoverStyle:{bg:`var(--secondary)`,borderColor:`transparent`,opacity:1},pressStyle:{bg:`var(--secondary-hover)`,borderColor:`transparent`,opacity:1},focusStyle:{borderColor:`transparent`},focusVisibleStyle:q2},Q2={type:`button`,variant:`link`,size:`sm`,px:0,minH:0,color:`$aside`,hoverStyle:{color:`$ink`},focusVisibleStyle:q2,startIcon:(0,R.jsx)(hde,{})},$2={color:`inherit`,textDecoration:`underline`,whiteSpace:`nowrap`},e4={position:`fixed`,t:0,r:0,b:0,l:0},Cde=`a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])`,wde={type:`button`},Tde=({cookies:e=`https://hanzo.ai/cookies`,privacy:t=`https://hanzo.ai/privacy`,terms:n=`https://hanzo.ai/terms`,brand:r=`Hanzo`,floating:i=!0})=>{let{t:a}=_N(),[o,s]=(0,b.useState)(),[c,l]=(0,b.useState)(!1),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)({analytics:!1,marketing:!1,ads:!1}),m=(0,b.useRef)(f);m.current=f;let[h,g]=(0,b.useState)({}),[_,v]=(0,b.useState)(!0),y=(0,b.useRef)(void 0),x=(0,b.useRef)(!1),S=(0,b.useRef)(null),C=(0,b.useRef)(null),w=(0,b.useRef)(null),T=(0,b.useRef)(!1),E=(0,b.useRef)(!1),D=(0,b.useRef)(new Set),O=(0,b.useId)(),[k,A]=(0,b.useState)(!1),j=(e=y.current)=>e===`eu`?tn():e===`global`&&!on()&&!Yt(),M=e=>{let t=$t();for(let n of D.current)(e!==`eu`||!m.current[n])&&(t[n]=m.current[n]);return t},ee=e=>{let t=M(e);p(t),e!==`eu`&&D.current.size&&cn(t)},te=()=>{if(x.current)return;let e=document.activeElement;S.current=e instanceof HTMLElement&&e!==document.body?e:null,x.current=!0,D.current=new Set,A(Yt()),E.current=Qt(),p($t()),d(!0)},ne=()=>{x.current=!1,d(!1),l(j())};(0,b.useEffect)(()=>{let e=()=>{l(j()),A(Yt()),x.current&&E.current&&!Qt()&&(E.current=!1,ee(y.current??`eu`))},t=t=>{let n=y.current!==t;y.current=t,s(t),e(),n&&x.current&&ee(t)},n=()=>t(Gt().mode),r=_de();r&&t(r);let i=r?void 0:window.setTimeout(()=>y.current??t(`eu`),gde),a=0,o=()=>{a||=window.requestAnimationFrame(()=>{a=0,v(yde())})};o();let c=new MutationObserver(o);c.observe(document.body,{childList:!0,subtree:!0});let u=()=>{window.location.hash===B2&&(queueMicrotask(()=>history.replaceState(history.state,``,window.location.pathname+window.location.search)),te())},d=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target?.closest?.(`a[href]`),n=t?.getAttribute(`href`),r=t?.getAttribute(`target`);if(!n||t?.hasAttribute(`download`)||r&&r!==`_self`)return;let i;try{i=new URL(n,document.baseURI)}catch{return}i.hash===B2&&i.origin===window.location.origin&&(e.preventDefault(),te())};return u(),window.addEventListener(z2,te),window.addEventListener(Nt,n),window.addEventListener(V2,o),window.addEventListener(`hashchange`,u),document.addEventListener(`click`,d,{capture:!0}),()=>{window.clearTimeout(i),window.cancelAnimationFrame(a),c.disconnect(),window.removeEventListener(z2,te),window.removeEventListener(Nt,n),window.removeEventListener(V2,o),window.removeEventListener(`hashchange`,u),document.removeEventListener(`click`,d,{capture:!0})}},[]),(0,b.useEffect)(()=>{if(u)return nn(!0),()=>nn(!1)},[u]),(0,b.useEffect)(()=>{if(!u){if(!T.current)return;T.current=!1;let e=S.current;S.current=null,e?.isConnected?e.focus():(w.current??document.querySelector(`[data-slot="consent-choices"] button`))?.focus();return}T.current=!0;let e=()=>[...C.current?.querySelectorAll(Cde)??[]];e()[0]?.focus();let t=t=>{if(t.key===`Escape`){t.preventDefault(),ne();return}if(t.key!==`Tab`)return;let n=e(),r=n[0],i=n[n.length-1];if(!r||!i)return;let a=document.activeElement,o=!!a&&!!C.current?.contains(a);t.shiftKey&&(a===r||!o)?(t.preventDefault(),i.focus()):!t.shiftKey&&(a===i||!o)&&(t.preventDefault(),r.focus())};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[u]);let N=e=>()=>{e(),x.current=!1,l(j()),d(!1)},P=null;if(u){let i=(o??`eu`)===`eu`,s=(e,t)=>{D.current.add(e);let n={...f,[e]:t};p(n),i||cn(n)};P=(0,R.jsxs)(B,{...q(`consent-sheet`),...e4,z:`var(--z-modal, 600)`,items:`center`,justify:`center`,style:{padding:`${H2.top} ${H2.right} ${H2.bottom} ${H2.left}`},children:[(0,R.jsx)(B,{...e4,position:`absolute`,z:0,bg:`rgba(0,0,0,0.6)`,"aria-hidden":!0,onPress:ne}),(0,R.jsxs)(B,{...q(`consent`),...W2,ref:C,role:`dialog`,"aria-modal":!0,"aria-labelledby":`${O}-title`,position:`relative`,width:`100%`,maxW:560,maxH:`100%`,overflow:`hidden`,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,gap:`$3`,pt:`$5`,pb:`$3`,paddingInlineStart:`$5`,paddingInlineEnd:`$4`,children:[(0,R.jsx)(U,{render:`h2`,id:`${O}-title`,m:0,fontSize:`$6`,lineHeight:`$6`,fontWeight:`600`,color:`$ink`,children:a(`Cookie Preferences`)}),(0,R.jsx)(sF,{type:`button`,size:`icon`,...Z2,"aria-label":a(`Close`),onClick:ne,children:(0,R.jsx)(HM,{size:16})})]}),(0,R.jsxs)(B,{shrink:1,minH:0,overflowY:`auto`,px:`$5`,pb:`$2`,style:{overscrollBehavior:`contain`},children:[(0,R.jsxs)(dh,{size:`$2`,color:`$aside`,m:0,pb:`$3`,children:[xde(a,i,k),a(`{cookies}, {privacy}, and {terms}.`,{cookies:(0,R.jsx)(`a`,{href:e,style:$2,children:a(`Cookie Policy`)}),privacy:(0,R.jsx)(`a`,{href:t,style:$2,children:a(`Privacy Policy`)}),terms:(0,R.jsx)(`a`,{href:n,style:$2,children:a(`Terms of Service`)})})]}),k?(0,R.jsx)(dh,{size:`$2`,color:`$ink`,m:0,pb:`$3`,children:a(Sde)}):null,bde(a,r,i,k).map(e=>{let t=h[e.id]===!0,n=`${O}-${e.id}`;return(0,R.jsxs)(B,{...q(`consent-section`),borderTopWidth:1,borderColor:`$borderColor`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$3`,minH:52,py:`$2`,children:[(0,R.jsx)(V,{render:`h3`,flex:1,minW:0,m:0,children:(0,R.jsxs)(V,{render:`button`,...wde,"aria-expanded":t,"aria-controls":n,onPress:()=>g({...h,[e.id]:!t}),flex:1,minW:0,items:`center`,gap:`$2`,p:0,bg:`transparent`,borderWidth:0,cursor:`pointer`,children:[(0,R.jsx)(V,{shrink:0,rotate:t?`180deg`:`0deg`,opacity:.7,children:(0,R.jsx)(lM,{size:16})}),(0,R.jsx)(U,{fontSize:`$3`,lineHeight:`$3`,fontWeight:`600`,color:`$ink`,...MP(`start`),children:e.title})]})}),e.key?(0,R.jsx)(zL,{"aria-label":e.title,"aria-describedby":n,disabled:k,checked:!k&&f[e.key],onCheckedChange:t=>s(e.key,t===!0)}):(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`600`,color:`$ink`,whiteSpace:`nowrap`,children:a(`Always Active`)})]}),(0,R.jsx)(B,{id:n,display:t?`flex`:`none`,pb:`$3`,paddingInlineStart:24,children:(0,R.jsx)(dh,{size:`$2`,color:`$aside`,m:0,children:e.body})})]},e.id)})]}),(0,R.jsx)(V,{flexWrap:`wrap`,gap:`$2`,px:`$5`,py:`$4`,borderTopWidth:1,borderColor:`$borderColor`,children:i?(0,R.jsxs)(R.Fragment,{children:[k?null:(0,R.jsx)(sF,{type:`button`,...X2,grow:1,onClick:N(pn),children:a(`Accept all`)}),(0,R.jsx)(sF,{type:`button`,...Y2,grow:1,onClick:N(()=>cn(f)),children:a(`Save preferences`)})]}):(0,R.jsx)(sF,{type:`button`,...Y2,grow:1,onClick:ne,children:a(`Done`)})})]})]})}if(!o)return P;let re=i&&!_&&!c?(0,R.jsx)(V,{...q(`consent-choices`),position:`fixed`,b:H2.bottom,l:H2.left,z:`var(--z-banner, 50)`,px:`$2.5`,py:`$1`,bg:`$background`,borderWidth:1,borderColor:`$borderColor`,rounded:U2.button,children:(0,R.jsx)(sF,{...Q2,onClick:te,children:a(`Your Privacy Choices`)})}):null;return c&&o===`global`?re=(0,R.jsxs)(V,{...G2,role:`region`,"aria-label":a(`Cookie notice`),style:K2,maxW:1200,flexWrap:`wrap`,items:`center`,columnGap:`$4`,rowGap:`$2`,children:[(0,R.jsx)(B,{shrink:1,minW:0,children:(0,R.jsx)(dh,{size:`$2`,color:`$ink`,m:0,children:a(`We use cookies to improve your experience. By continuing to browse, you agree.`)})}),(0,R.jsx)(sF,{...Q2,onClick:te,children:a(`Your Privacy Choices`)}),(0,R.jsx)(sF,{type:`button`,size:`icon`,...Z2,"aria-label":a(`Close`),position:`absolute`,t:`$3`,insetInlineEnd:`$3`,onClick:N(an),children:(0,R.jsx)(HM,{size:16})})]}):c&&o===`eu`&&(re=(0,R.jsxs)(V,{...G2,role:`dialog`,"aria-label":a(`Cookie preferences`),style:K2,maxW:1200,flexWrap:`wrap`,items:`center`,columnGap:`$4`,rowGap:`$3`,children:[(0,R.jsx)(B,{shrink:1,minW:0,children:(0,R.jsx)(dh,{size:`$2`,color:`$ink`,m:0,children:a(`Essential cookies keep {brand} running. With your OK, optional cookies help us measure performance and ads.`,{brand:r})})}),(0,R.jsxs)(V,{gap:`$2`,marginInlineStart:`auto`,items:`center`,flexWrap:`wrap`,children:[(0,R.jsx)(sF,{ref:w,type:`button`,...X2,onClick:te,children:a(`Manage preferences`)}),(0,R.jsx)(sF,{type:`button`,...Y2,onClick:N(pn),children:a(`Accept all`)})]}),(0,R.jsx)(sF,{type:`button`,size:`icon`,...Z2,"aria-label":a(`Close and use essential cookies only`),position:`absolute`,t:`$3`,insetInlineEnd:`$3`,onClick:N(mn),children:(0,R.jsx)(HM,{size:16})})]})),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{inert:u||void 0,style:{display:`contents`},children:re}),P]})},t4=`https://hanzo.ai`,Ede=e=>e?{additionalParams:{login_hint:e}}:void 0,Dde=(e,t=`login`,n)=>{let r=new URL(e);return t===`another`&&r.searchParams.set(`prompt`,`select_account`),n&&r.searchParams.set(`provider`,n),`${t4}${t===`signup`?`/signup`:`/login`}${r.search}`},Ode=e=>{let t=new URL(e);return t.searchParams.set(`prompt`,`none`),`${t4}/v1/iam/oauth/authorize${t.search}`},n4=e=>e===`localhost`||e===`127.0.0.1`||e===`[::1]`,kde=(e,t,n)=>{if(n4(new URL(n).hostname))return`/login?from=logout`;let r=new URLSearchParams({client_id:t,everywhere:`true`,post_logout_redirect_uri:new URL(`/`,n).href});return`${e.replace(/\/+$/,``)}/v1/iam/oauth/logout?${r}`},r4=[{org:`hanzo`,app:`team-native`,issuer:`https://hanzo.id`,title:`Team`,hosts:[`hanzo.team`,`www.hanzo.team`,`hanzo.app`,`localhost`,`127.0.0.1`]},{org:`hanzo`,app:`team2`,issuer:`https://hanzo.id`,title:`Team`,hosts:[`team2.hanzo.ai`,`team2.hanzo.app`,`hanzo-team.hanzo.app`]}],Ade=()=>typeof window>`u`?``:window.location.hostname,i4=r4.find(e=>e.hosts.includes(Ade()))??r4[0],a4=`${i4.org}-${i4.app}`,o4=32;function s4(e){let t=new Uint8Array(e);return crypto.getRandomValues(t),c4(t.buffer)}async function jde(e){let t=new TextEncoder;return crypto.subtle.digest(`SHA-256`,t.encode(e))}function c4(e){let t=new Uint8Array(e),n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}async function l4(){let e=s4(o4);return{codeVerifier:e,codeChallenge:c4(await jde(e))}}function u4(){return s4(o4)}var d4={discovery:`/.well-known/openid-configuration`,authorize:`/v1/iam/oauth/authorize`,token:`/v1/iam/oauth/token`,userinfo:`/v1/iam/oauth/userinfo`,jwks:`/v1/iam/.well-known/jwks`,logout:`/v1/iam/oauth/logout`,revoke:`/v1/iam/oauth/revoke`},f4={login:`/v1/iam/login`,sendCode:`/v1/iam/verification-codes`,web3Nonce:`/v1/iam/web3/nonce`,web3Verify:`/v1/iam/web3/verify`};function p4(e){return e.replace(/\/+$/,``)}function m4(e,t){return`${p4(e)}${d4[t]}`}function Mde(e){let t=new URL(e.endpoint??m4(e.serverUrl,`authorize`));t.searchParams.set(`client_id`,e.clientId),t.searchParams.set(`response_type`,`code`),t.searchParams.set(`redirect_uri`,e.redirectUri),t.searchParams.set(`scope`,e.scope??`openid profile email`),t.searchParams.set(`state`,e.state),e.codeChallenge&&(t.searchParams.set(`code_challenge`,e.codeChallenge),t.searchParams.set(`code_challenge_method`,`S256`)),e.prompt&&t.searchParams.set(`prompt`,e.prompt);for(let[n,r]of Object.entries(e.params??{}))t.searchParams.set(n,r);return t}function Nde(e){if(!e)return{};try{let t=e.split(`.`)[1];return t?JSON.parse(atob(t.replace(/-/g,`+`).replace(/_/g,`/`))):{}}catch{return{}}}var h4=`hanzo_iam_`,g4=`${h4}state`,_4=`${h4}code_verifier`,v4=`${h4}access_token`,y4=`${h4}refresh_token`,b4=`${h4}id_token`,x4=`${h4}expires_at`,S4=`${_4}:`;function C4(e){return`${S4}${e}`}var Pde=12;function Fde(e,t){return`${t}.${e}`}function w4(e){let t=e.indexOf(`.`);if(t>0){let n=e.slice(0,t);if(/^\d+$/.test(n))return{issuedAt:Number(n),codeVerifier:e.slice(t+1)}}return{issuedAt:0,codeVerifier:e}}var Ide=`hanzo_iam_login`,Lde=`hanzo-iam`;function T4(e){try{let t=e(),n=`${h4}probe`;return t.setItem(n,`1`),t.removeItem(n),t}catch{return null}}function Rde(){return T4(()=>localStorage)??T4(()=>sessionStorage)}function zde(){let e=new Map;return{get length(){return e.size},clear:()=>e.clear(),getItem:t=>e.has(t)?e.get(t):null,key:t=>Array.from(e.keys())[t]??null,removeItem:t=>{e.delete(t)},setItem:(t,n)=>{e.set(t,String(n))}}}var Bde=class{config;storage;txStorage;redeemable;discoveryCache=null;callbackInFlight=null;constructor(e){this.config=e;let t=Rde();this.storage=e.storage??t??zde(),this.txStorage=t??this.storage,this.redeemable=t!==null||e.storage!==void 0}async getDiscovery(){if(this.discoveryCache)return this.discoveryCache;let e=p4(this.config.serverUrl);try{let t=await fetch(`${e}${d4.discovery}`,{headers:{Accept:`application/json`}});if(t.ok)return this.discoveryCache=await t.json(),this.discoveryCache}catch{}return this.discoveryCache={issuer:e,authorization_endpoint:m4(e,`authorize`),token_endpoint:m4(e,`token`),userinfo_endpoint:m4(e,`userinfo`),jwks_uri:m4(e,`jwks`),revocation_endpoint:m4(e,`revoke`),end_session_endpoint:m4(e,`logout`),response_types_supported:[`code`],grant_types_supported:[`authorization_code`,`refresh_token`],scopes_supported:[`openid`,`email`,`profile`]},this.discoveryCache}async tokenEndpoint(){return this.config.proxyBaseUrl?m4(this.config.proxyBaseUrl,`token`):(await this.getDiscovery()).token_endpoint}async userinfoEndpoint(){return this.config.proxyBaseUrl?m4(this.config.proxyBaseUrl,`userinfo`):(await this.getDiscovery()).userinfo_endpoint}async revocationEndpoint(){return this.config.proxyBaseUrl?m4(this.config.proxyBaseUrl,`revoke`):(await this.getDiscovery()).revocation_endpoint??m4(this.config.serverUrl,`revoke`)}async endSessionEndpoint(){return this.config.proxyBaseUrl?m4(this.config.proxyBaseUrl,`logout`):(await this.getDiscovery()).end_session_endpoint??m4(this.config.serverUrl,`logout`)}stashPkce(e,t){let n=Date.now();this.sweepStaleVerifiers(n),this.txStorage.setItem(C4(e),Fde(t,n)),this.txStorage.setItem(g4,e),this.txStorage.setItem(_4,t)}sweepStaleVerifiers(e){let t=[];for(let n=this.txStorage.length-1;n>=0;n--){let r=this.txStorage.key(n);if(!r||!r.startsWith(S4))continue;if(e===void 0){this.txStorage.removeItem(r);continue}let i=this.txStorage.getItem(r);t.push({key:r,issuedAt:i?w4(i).issuedAt:0})}t.sort((e,t)=>t.issuedAt-e.issuedAt);for(let e of t.slice(Pde-1))this.txStorage.removeItem(e.key)}async buildAuthorizeUrl(e){if(!this.redeemable)throw Error(`@hanzo/iam: this browser keeps neither localStorage nor sessionStorage, so the PKCE verifier cannot outlive the redirect to IAM and the callback would fail. Call usableStorage() before starting a login to catch this on the page.`);let t=await this.getDiscovery(),{codeVerifier:n,codeChallenge:r}=await l4(),i=u4();return this.stashPkce(i,n),{url:Mde({endpoint:t.authorization_endpoint,serverUrl:this.config.serverUrl,clientId:this.config.clientId,redirectUri:this.config.redirectUri,state:i,scope:this.config.scope,codeChallenge:r,prompt:e?.prompt,params:e?.additionalParams}),codeVerifier:n,state:i}}async signinRedirect(e){let{url:t}=await this.buildAuthorizeUrl(e);window.location.replace(t.toString())}async getSigninUrl(e){let{url:t}=await this.buildAuthorizeUrl(e);return t.toString()}async beginCredential(){let{codeVerifier:e,codeChallenge:t}=await l4(),n=u4();return this.stashPkce(n,e),{codeChallenge:t,state:n}}async credentialLogin(e){let{codeChallenge:t,state:n}=await this.beginCredential(),r=this.config.proxyBaseUrl??this.config.serverUrl,i=new URL(`${p4(r)}${f4.login}`);i.searchParams.set(`clientId`,this.config.clientId),i.searchParams.set(`responseType`,`code`),i.searchParams.set(`redirectUri`,this.config.redirectUri),i.searchParams.set(`scope`,this.config.scope??`openid profile email`),i.searchParams.set(`state`,n),i.searchParams.set(`type`,`code`),i.searchParams.set(`code_challenge`,t),i.searchParams.set(`code_challenge_method`,`S256`);let a=await fetch(i.toString(),{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},credentials:`include`,body:JSON.stringify({type:`code`,application:this.config.application??this.config.clientId,organization:this.config.organization,autoSignin:!0,...e})}),o=await a.json().catch(()=>({}));if(!a.ok||o.status===`error`)throw Error(typeof o.msg==`string`?o.msg:`sign-in failed (${a.status})`);let s=o.data;if(typeof s!=`string`||s.length===0)throw Error(`IAM did not return an authorization code`);let c=this.config.redirectUri.includes(`?`)?`&`:`?`;return`${this.config.redirectUri}${c}code=${encodeURIComponent(s)}&state=${encodeURIComponent(n)}`}loginWithPassword(e,t){return this.credentialLogin({username:e,password:t,signinMethod:`Password`})}loginWithCode(e,t){let n=e.includes(`@`);return this.credentialLogin({username:e,code:t,signinMethod:`Verification code`,...n?{email:e}:{phone:e}})}async sendLoginCode(e){let t=e.includes(`@`),n=this.config.proxyBaseUrl??this.config.serverUrl,r=new URL(`${p4(n)}${f4.sendCode}`);r.searchParams.set(`clientId`,this.config.clientId),this.config.organization&&r.searchParams.set(`organization`,this.config.organization);let i=await fetch(r.toString(),{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({applicationId:`admin/${this.config.application??this.config.clientId}`,organization:this.config.organization,dest:e,type:t?`email`:`phone`,method:`login`,checkUser:e})}),a=await i.json().catch(()=>({}));if(!i.ok||a.status===`error`)throw Error(typeof a.msg==`string`?a.msg:`could not send code (${i.status})`)}async handleCallback(e){let t=new URL(e??window.location.href),n=t.searchParams.get(`error`);if(n){if(!this.isOwnAttempt(t.searchParams.get(`state`)))throw Error(`OAuth error on a sign-in this browser did not start. Restart sign-in.`);let e=t.searchParams.get(`error_description`)??n;throw Error(`OAuth error: ${e}`)}let r=t.searchParams.get(`code`);if(!r)throw Error(`Missing authorization code in callback URL`);let i=this.callbackInFlight;if(i&&i.code===r)return i.promise;let a=this.exchangeCode(t,r);return this.callbackInFlight={code:r,promise:a},a.catch(()=>{this.callbackInFlight?.promise===a&&(this.callbackInFlight=null)}),a}isOwnAttempt(e){if(!e)return!1;let t=C4(e);return this.txStorage.getItem(t)??this.storage.getItem(t)?!0:(this.txStorage.getItem(g4)??this.storage.getItem(g4))===e}async exchangeCode(e,t){let n=e.searchParams.get(`state`),r=n?C4(n):null,i=r?this.txStorage.getItem(r)??this.storage.getItem(r):null,a=i?w4(i).codeVerifier:null;if(a&&r)this.txStorage.removeItem(r),this.storage.removeItem(r),(this.txStorage.getItem(g4)===n||this.storage.getItem(g4)===n)&&(this.txStorage.removeItem(g4),this.txStorage.removeItem(_4),this.storage.removeItem(g4),this.storage.removeItem(_4));else{let e=this.txStorage.getItem(g4)??this.storage.getItem(g4);if(!e||n!==e)throw Error(`OAuth state mismatch — stale, concurrent, or forged login. Restart sign-in.`);if(a=this.txStorage.getItem(_4)??this.storage.getItem(_4),!a)throw Error(`Missing PKCE code verifier — start sign-in via signinRedirect() or the embedded credential login.`);this.txStorage.removeItem(g4),this.txStorage.removeItem(_4),this.storage.removeItem(g4),this.storage.removeItem(_4)}let o=new URLSearchParams({grant_type:`authorization_code`,client_id:this.config.clientId,code:t,redirect_uri:this.config.redirectUri,code_verifier:a}),s=await this.tokenEndpoint(),c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:o.toString()});if(!c.ok){let e=await c.text().catch(()=>``);throw Error(`Token exchange failed (${c.status}): ${e}`)}let l=await c.json();return this.storeTokens(l),E4(l)}async refreshAccessToken(){let e=this.storage.getItem(y4);if(!e)throw Error(`No refresh token available`);let t=new URLSearchParams({grant_type:`refresh_token`,client_id:this.config.clientId,refresh_token:e}),n=await this.tokenEndpoint(),r=await fetch(n,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:t.toString()});if(!r.ok){let e=await r.text().catch(()=>``);throw Error(`Token refresh failed (${r.status}): ${e}`)}let i=await r.json();return this.storeTokens(i),E4(i)}async signinPopup(e){let{url:t,state:n}=await this.buildAuthorizeUrl({additionalParams:e?.additionalParams}),r=e?.width??600,i=e?.height??700,a=window.screenX+(window.outerWidth-r)/2,o=window.screenY+(window.outerHeight-i)/2,s=new URL(this.config.redirectUri,window.location.href).origin;return new Promise((c,l)=>{let u=window.open(t.toString(),Ide,`width=${r},height=${i},left=${a},top=${o},menubar=no,toolbar=no`);if(!u){l(Error(`Failed to open login popup — blocked by browser?`));return}let d=!1,f=null,p=()=>{if(!d){d=!0,window.removeEventListener(`message`,m),clearInterval(h),clearTimeout(g),f&&clearTimeout(f);try{u.closed||u.close()}catch{}}},m=e=>{if(d||e.origin!==s)return;let t=e.data;if(!t||typeof t!=`object`||t.source!==Lde)return;if(typeof t.state!=`string`||t.state!==n){p(),l(Error(`OAuth state mismatch — possible CSRF (popup)`));return}if(t.error){p(),l(Error(`OAuth error: ${t.error}`));return}if(typeof t.code!=`string`||t.code.length===0){p(),l(Error(`Login popup returned no authorization code`));return}let r=t.code,i=t.state;p();let a=this.config.redirectUri.includes(`?`)?`&`:`?`,o=`${this.config.redirectUri}${a}code=${encodeURIComponent(r)}&state=${encodeURIComponent(i)}`;this.handleCallback(o).then(c,l)};window.addEventListener(`message`,m);let h=setInterval(()=>{d||!u.closed||f||(f=setTimeout(()=>{d||(p(),l(Error(`Login popup was closed before completing`)))},1e3))},300),g=setTimeout(()=>{d||(p(),l(Error(`Login popup timed out`)))},e?.timeoutMs??3e5)})}async loginWithWallet(e){let t=e?.provider??globalThis.ethereum;if(!t||typeof t.request!=`function`)throw Error(`No EIP-1193 wallet provider found (window.ethereum).`);let n=await t.request({method:`eth_requestAccounts`}),r=Array.isArray(n)?n[0]:void 0;if(!r)throw Error(`Wallet did not return an address`);let i=p4(this.config.proxyBaseUrl??this.config.serverUrl),a=new URL(`${i}${f4.web3Nonce}`);a.searchParams.set(`address`,r),a.searchParams.set(`clientId`,this.config.clientId),this.config.organization&&a.searchParams.set(`organization`,this.config.organization);let o=await fetch(a.toString(),{headers:{Accept:`application/json`},credentials:`include`}),s=await o.json().catch(()=>({}));if(!o.ok||s.status===`error`)throw Error(typeof s.msg==`string`?s.msg:`wallet nonce failed (${o.status})`);let c=s.data??s,l=c.message,u=c.nonce;if(!l)throw Error(`IAM did not return a SIWx message to sign`);let d=await t.request({method:`personal_sign`,params:[l,r]}),{codeChallenge:f,state:p}=await this.beginCredential(),m=new URL(`${i}${f4.web3Verify}`);m.searchParams.set(`clientId`,this.config.clientId),m.searchParams.set(`responseType`,`code`),m.searchParams.set(`redirectUri`,this.config.redirectUri),m.searchParams.set(`scope`,this.config.scope??`openid profile email`),m.searchParams.set(`state`,p),m.searchParams.set(`code_challenge`,f),m.searchParams.set(`code_challenge_method`,`S256`);let h=await fetch(m.toString(),{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},credentials:`include`,body:JSON.stringify({application:this.config.application??this.config.clientId,organization:this.config.organization,address:r,message:l,signature:d,nonce:u})}),g=await h.json().catch(()=>({}));if(!h.ok||g.status===`error`)throw Error(typeof g.msg==`string`?g.msg:`wallet verify failed (${h.status})`);let _=g.data;if(typeof _!=`string`||_.length===0)throw Error(`IAM did not return an authorization code`);let v=this.config.redirectUri.includes(`?`)?`&`:`?`,y=`${this.config.redirectUri}${v}code=${encodeURIComponent(_)}&state=${encodeURIComponent(p)}`;return this.handleCallback(y)}storeTokens(e){if(this.storage.setItem(v4,e.access_token),e.refresh_token&&this.storage.setItem(y4,e.refresh_token),e.id_token&&this.storage.setItem(b4,e.id_token),e.expires_in){let t=Date.now()+e.expires_in*1e3;this.storage.setItem(x4,String(t))}else{let t=Nde(e.access_token).exp;typeof t==`number`&&Number.isFinite(t)&&this.storage.setItem(x4,String(t*1e3))}}getAccessToken(){return this.storage.getItem(v4)}getRefreshToken(){return this.storage.getItem(y4)}getIdToken(){return this.storage.getItem(b4)}getExpiresAt(){let e=this.storage.getItem(x4);if(!e)return null;let t=Number(e);return Number.isFinite(t)?t:null}isTokenExpired(){let e=this.storage.getItem(x4);return e?Date.now()>=Number(e):!1}async getValidAccessToken(){let e=this.getAccessToken();if(e&&!this.isTokenExpired())return e;if(this.getRefreshToken())try{return(await this.refreshAccessToken()).accessToken}catch{return null}return null}clearTokens(){this.storage.removeItem(v4),this.storage.removeItem(y4),this.storage.removeItem(b4),this.storage.removeItem(x4),this.storage.removeItem(g4),this.storage.removeItem(_4),this.txStorage.removeItem(g4),this.txStorage.removeItem(_4),this.sweepStaleVerifiers();for(let e=this.storage.length-1;e>=0;e--){let t=this.storage.key(e);t&&t.startsWith(S4)&&this.storage.removeItem(t)}}async logout(){let e=this.storage.getItem(v4),t=this.storage.getItem(y4),n=this.storage.getItem(b4);await this.revoke(t,`refresh_token`,e),await this.revoke(e,`access_token`,e);let r=new URL(await this.endSessionEndpoint());n&&r.searchParams.set(`id_token_hint`,n),this.config.postLogoutRedirectUri&&r.searchParams.set(`post_logout_redirect_uri`,this.config.postLogoutRedirectUri),this.clearTokens(),window.location.href=r.toString()}async revoke(e,t,n){if(e)try{await fetch(await this.revocationEndpoint(),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/x-www-form-urlencoded`,...n?{Authorization:`Bearer ${n}`}:{}},body:new URLSearchParams({token:e,token_type_hint:t,client_id:this.config.clientId}).toString()})}catch{}}async getUserInfo(){let e=await this.getValidAccessToken();if(!e)throw Error(`No valid access token — user must log in`);let t=await this.userinfoEndpoint(),n=await fetch(t,{headers:{Authorization:`Bearer ${e}`}});if(!n.ok)throw Error(`Userinfo fetch failed (${n.status})`);return await n.json()}async getUser(){if(!await this.getValidAccessToken())return null;let e=await this.getUserInfo();return{sub:e.sub??``,email:e.email,name:e.name,givenName:e.given_name,familyName:e.family_name,phoneNumber:e.phone_number,emailVerified:e.email_verified,picture:e.picture,owner:e.owner}}};function E4(e){return{accessToken:e.access_token,refreshToken:e.refresh_token,idToken:e.id_token,expiresIn:e.expires_in,tokenType:e.token_type,scope:e.scope}}var D4=`https://api.hanzo.ai`,O4={account:`${D4}/v1/team/account`,channels:`${D4}/v1/team/channels`,dms:`${D4}/v1/team/dms`,files:`${D4}/v1/team/files`,plan:`${D4}/v1/team/billing/plan`};`${i4.issuer}${i4.org}${i4.app}`;var Vde=`/login`,Hde=`/auth/callback`,Ude=`openid profile email offline_access`,k4=null,A4=()=>{if(k4)return k4;let e=window.location.origin;return k4=new Bde({serverUrl:i4.issuer,clientId:a4,redirectUri:`${e}${Hde}`,postLogoutRedirectUri:`${e}${Vde}`,scope:Ude,proxyBaseUrl:void 0}),k4},j4=new Map,M4=new Set,N4=0,P4=()=>{N4++;for(let e of M4)e()},Wde=e=>(M4.add(e),()=>void M4.delete(e)),F4=e=>{let t=j4.get(e);return t||(t={phase:`loading`,started:!1},j4.set(e,t)),t},I4=(e,t)=>{let n=F4(e);n.started=!0,t().then(t=>{j4.set(e,{phase:`ready`,data:t,started:!0}),P4()},t=>{j4.set(e,{phase:`failure`,error:Gde(t),started:!0}),P4()})},Gde=e=>e instanceof Error?e:Error(String(e)),L4=(e,t,n={})=>{let r=n.enabled??!0;(0,b.useSyncExternalStore)(Wde,()=>N4,()=>N4);let i=F4(e);r&&!i.started&&I4(e,t);let a=(0,b.useCallback)(()=>{j4.delete(e),I4(e,t),P4()},[e]);return{phase:i.phase,data:i.data,error:i.error,reload:a}},R4=e=>{if(!e)j4.clear();else for(let t of[...j4.keys()])t.startsWith(e)&&j4.delete(t);P4()},z4=(e,t)=>{j4.set(e,{phase:`ready`,data:t,started:!0}),P4()},B4=e=>j4.get(e)?.data,V4=(0,b.createContext)(null),H4=()=>{let e=(0,b.useContext)(V4);if(!e)throw Error(`useSession outside <Session>`);return e},U4=`team.back`,W4=()=>{let e=window.location.pathname+window.location.search;!e.startsWith(`/login`)&&!e.startsWith(`/auth/`)&&sessionStorage.setItem(U4,e)},Kde=()=>{let e=sessionStorage.getItem(U4);return sessionStorage.removeItem(U4),e??`/`},G4=`team.silent`,qde=/bot|crawl|spider|slurp|preview|lighthouse|headless/i,Jde=()=>{if(navigator.webdriver||qde.test(navigator.userAgent)||n4(window.location.hostname))return!1;try{return!sessionStorage.getItem(G4)}catch{return!1}},K4=()=>{try{sessionStorage.setItem(G4,`1`)}catch{}},Yde=new Set([`login_required`,`interaction_required`,`consent_required`,`account_selection_required`]),Xde=6e4,q4=e=>{let t=e instanceof Error?e.message:String(e);return t.includes(`(401)`)||t.includes(`(403)`)},Zde=({children:e})=>{let[t,n]=(0,b.useState)(`unknown`),[r,i]=(0,b.useState)(null),a=(0,b.useCallback)(async()=>{try{let e=await A4().getUser();i(e?Qde(e):null),n(`in`),R4()}catch(e){if(q4(e)){A4().clearTokens(),i(null),n(`out`),R4();return}i(null),n(`in`),R4()}},[]),o=(0,b.useCallback)(()=>{i(null),n(`out`),R4()},[]),s=(0,b.useRef)(!1);(0,b.useEffect)(()=>{s.current||(s.current=!0,(async()=>{if(!window.location.pathname.startsWith(`/auth/`)){if(new URLSearchParams(window.location.search).get(`from`)===`logout`){K4(),A4().clearTokens(),o();return}if(await A4().getValidAccessToken().catch(()=>null))return a();if(Jde()){K4(),W4();try{window.location.replace(Ode(await A4().getSigninUrl({additionalParams:{prompt:`none`}})));return}catch{}}o()}})())},[a,o]),(0,b.useEffect)(()=>{if(t!==`in`)return;let e=Date.now(),n=()=>{document.visibilityState!==`visible`||Date.now()-e<Xde||(e=Date.now(),A4().getUserInfo().catch(e=>{q4(e)&&(A4().clearTokens(),o())}))};return document.addEventListener(`visibilitychange`,n),()=>document.removeEventListener(`visibilitychange`,n)},[t,o]);let c=(0,b.useCallback)(async(e=`login`,t={})=>{W4();let n=await A4().getSigninUrl(Ede(t.hint)),r=t.provider??new URLSearchParams(window.location.search).get(`provider`);window.location.replace(Dde(n,e,r))},[]),l=(0,b.useCallback)(e=>(W4(),A4().getSigninUrl(e)),[]),u=(0,b.useCallback)(()=>{let e=A4(),t=e.getAccessToken(),n=e.getRefreshToken();e.clearTokens(),o(),(async()=>{try{let e=async(e,n)=>{e&&await fetch(`/v1/iam/oauth/revoke`,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`,...t?{Authorization:`Bearer ${t}`}:{}},body:new URLSearchParams({token:e,token_type_hint:n,client_id:a4}).toString()}).catch(()=>void 0)};await e(n,`refresh_token`),await e(t,`access_token`)}finally{window.location.assign(kde(i4.issuer,a4,window.location.origin))}})()},[o]),d=(0,b.useCallback)(async()=>{let e=Kde();if(Yde.has(new URLSearchParams(window.location.search).get(`error`)??``))return e;if(!(await A4().handleCallback()).accessToken)throw Error(`the issuer returned no access token`);return await a(),e},[a]),f=(0,b.useMemo)(()=>({standing:t,who:r,depart:c,request:l,leave:u,land:d}),[t,r,c,l,u,d]);return(0,R.jsx)(V4.Provider,{value:f,children:e})},Qde=e=>{let t=String(e.preferred_username??e.name??e.sub??``);return{id:String(e.sub??t),name:t,label:String(e.name??e.preferred_username??t),email:typeof e.email==`string`?e.email:void 0,avatar:typeof e.picture==`string`?e.picture:void 0}},J4=class extends Error{status;detail;constructor(e,t){super(t||`HTTP ${e}`),this.status=e,this.detail=t,this.name=`Refused`}},$de=async()=>{let e=await A4().getValidAccessToken().catch(()=>null);return e?{authorization:`Bearer ${e}`}:{}},Y4=async(e,t)=>{let n=await fetch(e,{...t,headers:{accept:`application/json`,...t?.body?{"content-type":`application/json`}:{},...await $de(),...t?.headers}}),r=await n.text();if(!n.ok)throw new J4(n.status,efe(r)||n.statusText);if(r)try{return JSON.parse(r)}catch{throw new J4(n.status,`expected JSON, read ${r.length} bytes of ${n.headers.get(`content-type`)??`nothing`}`)}},X4=(e,t)=>Y4(e,{method:`POST`,body:JSON.stringify(t)}),efe=e=>{try{let t=JSON.parse(e);return t.detail??t.message??``}catch{return e.slice(0,200)}},Z4=class extends Error{code;constructor(e,t){super(t),this.code=e,this.name=`Denied`}get unauthorized(){return this.code.endsWith(`:Unauthorized`)}},Q4=async(e,t={})=>{let n=await X4(O4.account,{method:e,params:t});if(n.error)throw new Z4(n.error.code,n.error.params?.message??n.error.code);return n.result},tfe=()=>Q4(`getUserWorkspaces`),nfe=e=>Q4(`selectWorkspace`,{workspaceUrl:e}),$4={request:0,response:1,push:2},e3=16,rfe=16,ife=24,afe=40,ofe=0,sfe=4,cfe=8,lfe=16,t3=new TextEncoder,n3=new TextDecoder,r3=e=>{let t=t3.encode(e.method),n=e.payload,r=afe,i=r,a=t.length>0?r-24:0;t.length>0&&(r+=t.length);let o=r,s=n.length>0?r-32:0;n.length>0&&(r+=n.length);let c=new Uint8Array(r),l=new DataView(c.buffer);return c.set(t3.encode(`ZAP\0`),0),l.setUint16(4,2,!0),l.setUint16(6,0,!0),l.setUint32(8,rfe,!0),l.setUint32(12,r,!0),l.setUint32(16,e.id,!0),c[20]=e.kind,l.setUint32(24,a,!0),l.setUint32(28,t.length,!0),l.setUint32(32,s,!0),l.setUint32(36,n.length,!0),c.set(t,i),c.set(n,o),c},ufe=e=>{if(e.length<e3||n3.decode(e.subarray(0,4))!==`ZAP\0`)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint32(8,!0);return n<e3||n+ife>e.length?null:{id:t.getUint32(n+ofe,!0),kind:e[n+sfe],method:n3.decode(i3(e,t,n+cfe)),payload:i3(e,t,n+lfe).slice()}},i3=(e,t,n)=>{if(n+8>e.length)return new Uint8Array;let r=t.getUint32(n,!0);if(r===0)return new Uint8Array;let i=t.getUint32(n+4,!0),a=n+r;return a<e3||a+i>e.length?new Uint8Array:e.subarray(a,a+i)},dfe=(e,t,n,r)=>r3({id:e,kind:t,method:n,payload:t3.encode(JSON.stringify(r))}),ffe=e=>n3.decode(e.payload),pfe=e=>{if(e==null)return[];if(Array.isArray(e))return e;let t=e.value;if(Array.isArray(t))return t;throw Error(`findAll answered something that is not a list of documents`)},mfe=25e3,a3=[500,1e3,2e3,5e3,1e4,2e4],hfe=class{slug;socket=null;next=1;waiting=new Map;listeners=new Set;standings=new Set;beat=null;retry=null;attempt=0;closed=!1;opening=null;standing=`idle`;entry=null;get account(){return this.entry?`hanzo:${this.entry.account}`:null}constructor(e){this.slug=e}watch(e){return this.listeners.add(e),()=>void this.listeners.delete(e)}observe(e){return this.standings.add(e),()=>void this.standings.delete(e)}async open(){if(this.socket?.readyState!==WebSocket.OPEN)return this.opening||=this.connect().finally(()=>{this.opening=null}),this.opening}close(){this.closed=!0,this.stopBeat(),this.retry&&clearTimeout(this.retry),this.socket?.close(),this.socket=null,this.settle(`idle`)}async find(e,t={},n={}){return pfe(await this.call(`findAll`,[e,t,n]))}async one(e,t){return(await this.find(e,t,{limit:1}))[0]}async write(e){await this.call(`tx`,[e])}async call(e,t=[]){await this.open();let n=this.socket;if(!n||n.readyState!==WebSocket.OPEN)throw Error(`the space plane is not open`);let r=this.next++;return new Promise((i,a)=>{this.waiting.set(r,{resolve:i,reject:a}),n.send(dfe(r,$4.request,e,{id:r,method:e,params:t}))})}async connect(){this.closed=!1,this.settle(`opening`);let e=await nfe(this.slug);this.entry=e,await new Promise((t,n)=>{let r=new WebSocket(`${e.endpoint}/${e.token}`);r.binaryType=`arraybuffer`,this.socket=r,r.onmessage=e=>this.receive(e.data),r.onerror=()=>n(Error(`the space plane refused the connection`)),r.onclose=()=>{this.stopBeat();for(let e of this.waiting.values())e.reject(Error(`the space plane closed`));this.waiting.clear(),!this.closed&&(this.settle(`lost`),this.later())},r.onopen=()=>{this.call(`hello`,[]).then(()=>{this.attempt=0,this.settle(`live`),this.startBeat(),t()}).catch(n)}})}receive(e){if(typeof e==`string`)return;let t=ufe(new Uint8Array(e));if(!t)return;let n=ffe(t);if(n===`pong!`)return;let r;try{r=JSON.parse(n)}catch{return}if(t.kind===$4.push||r.id===void 0){let e=Array.isArray(r.result)?r.result:[];if(e.length)for(let t of this.listeners)t(e);return}let i=this.waiting.get(r.id);i&&(this.waiting.delete(r.id),r.error?i.reject(Error(String(r.error))):i.resolve(r.result))}startBeat(){this.stopBeat(),this.beat=setInterval(()=>{this.socket?.readyState===WebSocket.OPEN&&this.socket.send(r3({id:0,kind:$4.request,method:``,payload:new TextEncoder().encode(`ping`)}))},mfe)}stopBeat(){this.beat&&clearInterval(this.beat),this.beat=null}later(){let e=a3[Math.min(this.attempt++,a3.length-1)];this.retry=setTimeout(()=>void this.open().catch(()=>this.later()),e)}settle(e){this.standing=e;for(let t of this.standings)t(e)}},o3=(0,b.createContext)(null),s3=()=>{let e=(0,b.useContext)(o3);if(!e)throw Error(`useSpace outside <Space>`);return e},c3=`team.space`,gfe=`${O4.account}/auth/openid`,_fe=({children:e})=>{let{standing:t}=H4(),[n,r]=(0,b.useState)(`unknown`),[i,a]=(0,b.useState)([]),[o,s]=(0,b.useState)(()=>localStorage.getItem(c3)),[c,l]=(0,b.useState)(null),[u,d]=(0,b.useState)(`idle`),[f,p]=(0,b.useState)(null),m=(0,b.useRef)(!1),h=(0,b.useRef)(t);(0,b.useEffect)(()=>{h.current!==t&&(m.current=!1,R4()),h.current=t,!(t===`unknown`||m.current)&&(m.current=!0,(async()=>{let e=await(t===`in`?tfe():Promise.resolve([])).catch(e=>e);if(e instanceof Error){p(e),r(e instanceof Z4&&e.unauthorized?`stranger`:`refused`);return}if(a(e),e.length===0){r(`homeless`);return}s(t=>t&&e.some(e=>e.url===t)?t:e[0].url)})())},[t]),(0,b.useEffect)(()=>{if(!o)return;localStorage.setItem(c3,o);let e=new hfe(o);l(e);let t=e.observe(d);return e.open().then(()=>r(`settled`)).catch(e=>{p(e),r(`refused`)}),()=>{t(),e.close()}},[o]),(0,b.useEffect)(()=>{if(c)return c.watch(e=>{for(let t of new Set(e.map(e=>String(e.objectClass??``))))t&&R4(t)})},[c]);let g=(0,b.useCallback)(e=>{R4(),s(e)},[]),_=(0,b.useMemo)(()=>i.find(e=>e.url===o)??null,[i,o]),v=(0,b.useMemo)(()=>({standing:n,all:i,current:_,org:_?.org??null,choose:g,plane:c,connection:u,refusal:f,enrolment:gfe}),[n,i,_,g,c,u,f]);return(0,R.jsx)(o3.Provider,{value:v,children:e})},l3={project:`tracker:class:Project`,issue:`tracker:class:Issue`,status:`tracker:class:IssueStatus`,milestone:`tracker:class:Milestone`,component:`tracker:class:Component`,person:`contact:class:Person`,channel:`chunter:class:Channel`,direct:`chunter:class:DirectMessage`,message:`chunter:class:ChatMessage`,reply:`chunter:class:ThreadMessage`,reaction:`activity:class:Reaction`,notice:`notification:class:ActivityInboxNotification`,tag:`tags:class:TagReference`},u3={create:`core:class:TxCreateDoc`,update:`core:class:TxUpdateDoc`,remove:`core:class:TxRemoveDoc`},d3={backlog:`tracker:issueStatusCategory:Backlog`,todo:`tracker:issueStatusCategory:Unstarted`,doing:`tracker:issueStatusCategory:Started`,done:`tracker:issueStatusCategory:Completed`,cancelled:`tracker:issueStatusCategory:Cancelled`},f3={none:0,urgent:1,high:2,medium:3,low:4},p3=e=>{let t=e?.name??``;if(!t.includes(`,`))return t.trim();let[n,r]=t.split(`,`);return[r,n].map(e=>e?.trim()).filter(Boolean).join(` `)},vfe=(e,t)=>e?`${e.identifier}-${t.number}`:`#${t.number}`,m3=(e,...t)=>[e,...t.map(e=>e??``)].join(`|`),h3=()=>{let e=Math.floor(Date.now()/1e3),t=crypto.getRandomValues(new Uint8Array(8));return e.toString(16).padStart(8,`0`)+Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)},g3=(e,t)=>({_id:h3(),space:`core:space:Tx`,objectSpace:e,modifiedBy:t,modifiedOn:Date.now()}),_3=(e,t,n,r,i=h3())=>({...g3(e,t),_class:u3.create,objectId:i,objectClass:n,attributes:r}),v3=(e,t,n)=>({...g3(e.space,t),_class:u3.update,objectId:e._id,objectClass:e._class,operations:n}),y3=(e,t)=>({...g3(e.space,t),_class:u3.remove,objectId:e._id,objectClass:e._class}),b3=`0123456789abcdefghijklmnopqrstuvwxyz`,x3=0,yfe=35,S3=b3[18],C3=(e,t)=>b3.indexOf(e[t]),w3=(e,t)=>{let n=e??``,r=t??``,i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i++;return n.slice(0,i)+bfe(n.slice(i),r.slice(i))},bfe=(e,t)=>{if(t===``)return T3(e);if(e===``)return E3(t);let n=C3(e,0),r=C3(t,0);return r-n>1?b3[Math.floor((n+r)/2)]:e[0]+T3(e.slice(1))},T3=e=>{for(let t=e.length-1;t>=0;t--)if(C3(e,t)<yfe)return e.slice(0,t)+b3[C3(e,t)+1];return e+S3},E3=e=>{let t=C3(e,0);return t>1?b3[Math.floor(t/2)]:t===1?b3[x3]+S3:b3[x3]+E3(e.slice(1))},D3=async(e,t)=>{let n=await e.find(l3.notice,{space:t});return(n.length>0?n:await e.find(l3.notice)).sort((e,t)=>t.modifiedOn-e.modifiedOn)},xfe=async(e,t)=>{let[n,r,i]=await Promise.all([e.find(l3.channel,{space:t}),e.find(l3.issue),e.find(l3.project)]),a=n.length>0?n:await e.find(l3.channel),o=new Map;for(let e of i)o.set(e._id,e.name);for(let e of a)o.set(e._id,`#${e.name}`);for(let e of r){let t=o.get(e.space);t&&o.set(e._id,t)}return o},Sfe=(e,t,n)=>e.write(v3(n,t,{isViewed:!0})),O3=[d3.backlog,d3.todo,d3.doing,d3.done],k3=e=>e.find(l3.project),A3=(e,t)=>e.one(l3.project,{_id:t}),j3=async(e,t)=>{let n=await e.find(l3.status,t?{space:t}:{}),r=new Map(O3.map((e,t)=>[e,t]));return n.sort((e,t)=>(r.get(e.category)??O3.length)-(r.get(t.category)??O3.length)||(e.rank??``).localeCompare(t.rank??``))},M3=async(e,t)=>(await e.find(l3.issue,t?{space:t}:{})).sort((e,t)=>(e.rank??``).localeCompare(t.rank??``)||e.number-t.number),N3=e=>e.find(l3.person),P3=e=>e.find(l3.tag),Cfe=e=>e.find(l3.component),F3={projects:()=>m3(l3.project),statuses:e=>m3(l3.status,e),issues:e=>m3(l3.issue,e),people:()=>m3(l3.person),tags:()=>m3(l3.tag),components:()=>m3(l3.component)},wfe=(e,t,n,r,i={})=>e.write(v3(n,t,{status:r,rank:w3(i.before?.rank,i.after?.rank)})),I3=(e,t,n,r)=>e.write(v3(n,t,r)),Tfe=(e,t,n,r)=>e.write(_3(n,t,l3.issue,{title:r.title,status:r.status,priority:r.priority,number:r.number,rank:w3(void 0,r.after?.rank),assignee:null,subIssues:0,comments:0,attachments:0,estimation:0,reportedTime:0,remainingTime:0})),L3=[`all`,`task`,`chat`],Efe=(e,t)=>t===`all`?[...e]:e.filter(e=>e.kind===t),Dfe=(e,t)=>e.reduce((e,n)=>e+ +(n.kind===t&&!n.seen),0),Ofe=(e,t)=>e.map(e=>e.id===t?{...e,seen:!0}:e),R3=`inbox`,z3={list:()=>Promise.resolve([]),see:()=>Promise.resolve()},B3=e=>{z3=e,R4(R3)},V3=()=>L4(R3,()=>z3.list()),H3=()=>(V3().data??[]).reduce((e,t)=>e+ +!t.seen,0),kfe=e=>{let t=B4(R3),n=t?.find(t=>t.id===e);t&&n&&!n.seen&&(z4(R3,Ofe(t,e)),z3.see(e).catch(()=>z4(R3,t)))},Afe=()=>{let e=B4(R3);if(!e)return;let t=e.filter(e=>!e.seen);if(t.length!==0){z4(R3,e.map(e=>e.seen?e:{...e,seen:!0}));for(let e of t)z3.see(e.id).catch(()=>{})}},U3=`team.aside`,W3=`team.aside.kind`,jfe=()=>{try{return localStorage.getItem(U3)===`yes`}catch{return!1}},Mfe=()=>{try{return localStorage.getItem(W3)===`inspector`?`inspector`:`inbox`}catch{return`inbox`}},G3=jfe(),K3=Mfe(),q3=new Set,J3=()=>{for(let e of q3)e()},Y3=e=>{if(e!==G3){G3=e;try{localStorage.setItem(U3,e?`yes`:`no`)}catch{}J3()}},X3=e=>{let t=e!==K3;K3=e;try{localStorage.setItem(W3,e)}catch{}G3?t&&J3():Y3(!0)},Z3=e=>{G3&&K3===e?Y3(!1):X3(e)},Q3=()=>Y3(!1),$3=()=>(0,b.useSyncExternalStore)(e=>(q3.add(e),()=>q3.delete(e)),()=>G3,()=>!1),e6=()=>(0,b.useSyncExternalStore)(e=>(q3.add(e),()=>q3.delete(e)),()=>K3,()=>`inbox`),t6=z(B,{name:`Card`,bg:`$background`,position:`relative`,rounded:`$true`}),n6=(0,b.createContext)(void 0);n6.Provider;var Nfe=()=>(0,b.useContext)(n6);function Pfe(e){rj(S.FEATURE_USED,{component:e.component,action:e.action,...e.id===void 0?null:{id:e.id},...e.value===void 0?null:{value:e.value},...e.surface===void 0?null:{surface:e.surface}})}function r6(){let e=Nfe();return(0,b.useCallback)(t=>Pfe(e!==void 0&&t.surface===void 0?{...t,surface:e}:t),[e])}function Ffe(e){if(typeof e==`string`)return e.trim()||void 0;if(Array.isArray(e))return e.filter(e=>typeof e==`string`||typeof e==`number`).join(``).trim()||void 0}var i6=`hanzo`,Ife=[{suffix:`hanzo.ai`,brand:`hanzo`},{suffix:`hanzo.id`,brand:`hanzo`},{suffix:`hanzo.chat`,brand:`hanzo`},{suffix:`hanzo.cloud`,brand:`hanzo`},{suffix:`lux.network`,brand:`lux`},{suffix:`lux.cloud`,brand:`lux`},{suffix:`lux.id`,brand:`lux`},{suffix:`lux.exchange`,brand:`lux`},{suffix:`zoo.ngo`,brand:`zoo`},{suffix:`zoo.network`,brand:`zoo`},{suffix:`zoo.cloud`,brand:`zoo`},{suffix:`zoolabs.id`,brand:`zoo`},{suffix:`pars.network`,brand:`pars`},{suffix:`pars.cloud`,brand:`pars`},{suffix:`pars.id`,brand:`pars`},{suffix:`pars.vote`,brand:`pars`},{suffix:`7stars.dev`,brand:`7stars`},{suffix:`yotoda.tech`,brand:`yotoda`}];function Lfe(e){return(e??``).trim().toLowerCase().replace(/:\d+$/,``).replace(/\.+$/,``)}function Rfe(e){let t=Lfe(e);if(t){for(let e of Ife)if(t===e.suffix||t.endsWith(`.`+e.suffix))return e.brand}return i6}var a6=`<svg role="img" aria-label="Hanzo" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
75
- <!-- Origami fold-in → hover: one 3-D turn → press: squash. Pure CSS, no JS. Canonical 7-path shaded H. -->
76
-
77
- <style>.o{fill:currentColor;opacity:0;transform-box:fill-box;transform-origin:left center;animation:fold 0.42s cubic-bezier(.16,1,.3,1) forwards}
78
- .s{fill:currentColor;opacity:.55}
79
- @keyframes fold{from{opacity:0;transform:perspective(320px) rotateY(90deg)}to{opacity:1;transform:none}}
80
- .o0{animation-delay:0.00s}.o1{animation-delay:0.06s}.o2{animation-delay:0.12s}.o3{animation-delay:0.18s}.o4{animation-delay:0.24s}
81
- /* interaction — pure CSS, no JS: hover = one graceful turn (returns to rest), press = squash */
82
- .hanzo-hov{transform-box:view-box;transform-origin:33.5px 33.5px}
83
- .hanzo-prs{transform-box:view-box;transform-origin:33.5px 33.5px;transition:transform .22s cubic-bezier(.22,1,.36,1)}
84
- svg:hover .hanzo-hov{animation:hanzoTurn 0.85s cubic-bezier(.45,0,.2,1)}
85
- svg:active .hanzo-prs{transform:scale(.92)}
86
- @keyframes hanzoTurn{0%{transform:perspective(300px) rotateY(0)}100%{transform:perspective(300px) rotateY(360deg)}}
87
- @media (prefers-reduced-motion:reduce){.hanzo-hov,.hanzo-prs{animation:none!important;transform:none!important}.o{opacity:1;animation:none;transform:none}}
88
- </style>
89
- <g class="hanzo-hov"><g class="hanzo-prs">
90
- <path class="o o0" d="M22.21 0H0V22.3184H22.21V0Z"/>
91
- <path class="o o1" d="M66.7198 0H44.5098V22.3184H66.7198V0Z"/>
92
- <path class="o o1 s" d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z"/>
93
- <path class="o o2" d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z"/>
94
- <path class="o o3" d="M22.21 67V44.6369H0V67H22.21Z"/>
95
- <path class="o o3 s" d="M0 44.6369L22.21 46.8285V44.6369H0Z"/>
96
- <path class="o o4" d="M66.7198 67V44.6369H44.5098V67H66.7198Z"/>
97
- </g></g>
98
- </svg>`,zfe=`0 0 67 67`,o6=[`M22.21 67V44.6369H0V67H22.21Z`,`M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z`,`M22.21 0H0V22.3184H22.21V0Z`,`M66.7198 0H44.5098V22.3184H66.7198V0Z`,`M66.7198 67V44.6369H44.5098V67H66.7198Z`],s6=[`M0 44.6369L22.21 46.8285V44.6369H0Z`,`M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z`],Bfe=`<path d="${o6[0]}"/><path class="shade" fill="#DDDDDD" d="${s6[0]}"/><path d="${o6[1]}"/><path d="${o6[2]}"/><path d="${o6[3]}"/><path class="shade" fill="#DDDDDD" d="${s6[1]}"/><path d="${o6[4]}"/>`;function c6(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
99
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/>
100
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/>
101
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/>
102
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/>
103
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
104
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/>
105
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
106
- </svg>`}function l6(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
107
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#000000"/>
108
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#000000"/>
109
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#000000"/>
110
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#000000"/>
111
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#000000"/>
112
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#000000"/>
113
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#000000"/>
114
- </svg>`}function u6(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
115
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/>
116
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/>
117
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/>
118
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/>
119
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
120
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/>
121
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
122
- </svg>`}function d6(){let e=e=>`<path d="${e}" fill="#000000"/>`,t=e=>`<path class="shade" d="${e}" fill="#222222"/>`;return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg"><rect width="67" height="67" fill="#ffffff"/>`+e(o6[0])+t(s6[0])+e(o6[1])+e(o6[2])+e(o6[3])+t(s6[1])+e(o6[4])+`</svg>`}function f6(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
123
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="currentColor"/>
124
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="currentColor"/>
125
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="currentColor"/>
126
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="currentColor"/>
127
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="currentColor"/>
128
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="currentColor"/>
129
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="currentColor"/>
130
- </svg>`}var p6=64,Vfe=2,m6=48/67,h6=8,Hfe=4/m6,Ufe=(e,t)=>` <defs><g id="m">
131
- ${o6.map(e=>` <path d="${e}"/>`).join(`
132
- `)}
133
- </g></defs>
134
- <g transform="translate(${h6} ${h6}) scale(${m6.toFixed(4)})">
135
- <use href="#m" ${e} stroke-width="${Hfe.toFixed(4)}" stroke-miterlimit="${Vfe}"/>
136
- <use href="#m" ${t}/>
137
- </g>`;function g6(){return`<svg viewBox="0 0 ${p6} ${p6}" xmlns="http://www.w3.org/2000/svg">
138
- <style>
139
- .core { fill: #ffffff }
140
- .rim { fill: #000000; stroke: #000000 }
141
- @media (prefers-color-scheme: light) { .core { fill: #000000 } }
142
- @media (prefers-color-scheme: dark) { .rim { fill: #ffffff; stroke: #ffffff } }
143
- </style>
144
- ${Ufe(`class="rim"`,`class="core"`)}
145
- </svg>`}function _6(e={}){let{variant:t=`current`}=e,n=``;switch(t){case`mono`:n=l6();break;case`white`:n=u6();break;case`light`:n=d6();break;case`current`:n=f6();break;case`favicon`:n=g6();break;case`color`:n=c6();break;default:n=f6()}return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(n)))}`}g6(),_6(),_6({variant:`mono`}),_6({variant:`white`}),_6({variant:`favicon`});function Wfe(){return a6}function Gfe(){return`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(a6)))}Gfe();var Kfe=`.hanzo-motion{display:inline-flex;align-items:center;color:inherit}
146
- .hanzo-motion .hanzo-mark{display:block;line-height:0;width:1.25em;height:1.25em;animation:hanzo-flip .5s cubic-bezier(.16,1,.3,1) .2s backwards,hanzo-breathe 6s ease-in-out 3.2s infinite}
147
- .hanzo-motion .hanzo-mark svg{display:block;width:100%;height:100%}
148
- .hanzo-motion .hanzo-word{overflow:hidden;display:inline-block;margin-left:.5em}
149
- .hanzo-motion .hanzo-word>span{display:inline-block;white-space:nowrap;font-weight:600;transform:translateX(-102%);transition:transform .3s ease-out;animation:hanzo-word 2.8s ease-out}
150
- .hanzo-motion:hover .hanzo-word>span{transform:translateX(0)}
151
- @keyframes hanzo-flip{from{opacity:0;transform:perspective(320px) rotateY(180deg) scale(.6)}to{opacity:1;transform:none}}
152
- @keyframes hanzo-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
153
- @keyframes hanzo-word{0%,40%{transform:translateX(-102%)}55%,82%{transform:translateX(0)}100%{transform:translateX(-102%)}}
154
- @media (prefers-reduced-motion:reduce){.hanzo-motion .hanzo-mark,.hanzo-motion .hanzo-word>span{animation:none!important}.hanzo-motion .hanzo-word>span{transition:none}}`,qfe=({variant:e=`current`,size:t=64,className:n,style:r,animated:i=!1,wordmark:a=`Hanzo`})=>{if(i)return(0,R.jsxs)(`span`,{className:n,style:r,children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Kfe}}),(0,R.jsxs)(`span`,{className:`hanzo-motion`,children:[(0,R.jsx)(`span`,{className:`hanzo-mark`,style:{width:t,height:t},dangerouslySetInnerHTML:{__html:f6()}}),(0,R.jsx)(`span`,{className:`hanzo-word`,children:(0,R.jsx)(`span`,{children:a})})]})]});let o=``;switch(e){case`mono`:o=l6();break;case`white`:o=u6();break;case`light`:o=d6();break;case`current`:o=f6();break;case`favicon`:o=g6();break;case`animated`:o=Wfe();break;case`color`:o=c6();break;default:o=f6()}return(0,R.jsx)(`div`,{className:n,style:{width:t,height:t,...r},dangerouslySetInnerHTML:{__html:o}})},v6={viewBox:zfe,content:Bfe},y6={hanzo:v6,lux:{viewBox:`0 0 100 100`,content:`<path d="M50 85 L15 25 L85 25 Z"/>`},zoo:{viewBox:`0 0 1024 1024`,colored:!0,content:`<defs><clipPath id="zooClip"><circle cx="512" cy="511" r="270"/></clipPath><clipPath id="zooGClip"><circle cx="513" cy="369" r="234"/></clipPath><clipPath id="zooRClip"><circle cx="365" cy="595" r="234"/></clipPath></defs><g clip-path="url(#zooClip)"><circle cx="513" cy="369" r="234" fill="#00A652"/><circle cx="365" cy="595" r="234" fill="#ED1C24"/><circle cx="643" cy="595" r="234" fill="#2E3192"/><g clip-path="url(#zooGClip)"><circle cx="365" cy="595" r="234" fill="#FCF006"/><circle cx="643" cy="595" r="234" fill="#01ACF1"/></g><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#EA018E"/></g><g clip-path="url(#zooGClip)"><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#FFFFFF"/></g></g></g>`},pars:{viewBox:`-120 -120 240 240`,content:`<path d="M0,-100 L30,-60 L100,-40 L60,0 L100,40 L30,60 L0,100 L-30,60 L-100,40 L-60,0 L-100,-40 L-30,-60 Z" fill="none" stroke="currentColor" stroke-width="4" stroke-linejoin="round"/><path d="M0,-70 L22,-42 L70,-28 L42,0 L70,28 L22,42 L0,70 L-22,42 L-70,28 L-42,0 L-70,-28 L-22,-42 Z" fill="currentColor" fill-opacity="0.15" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/><circle r="55" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="35" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="8" fill="currentColor"/>`},"7stars":v6,yotoda:v6},b6={accent1:`#000000`,surface1:`#FFFFFF`,surface2:`#FAFAFA`,neutral1:`#0A0A0A`,neutral2:`rgba(10, 10, 10, 0.6)`},x6={accent1:`#FFFFFF`,surface1:`#000000`,surface2:`#111111`,neutral1:`#FAFAFA`,neutral2:`rgba(250, 250, 250, 0.6)`},S6=(e,t)=>`https://cdn.jsdelivr.net/npm/${e}/${t}`,C6={id:`hanzo`,name:`Hanzo`,title:`Hanzo AI`,tagline:`Enterprise AI infrastructure and frontier models`,legalName:`Hanzo AI Inc.`,domain:`hanzo.ai`,docsDomain:`docs.hanzo.ai`,adminDomain:`hanzo.ai`,accentColor:`#FFFFFF`,theme:{light:b6,dark:x6},social:{twitter:`https://x.com/hanzoai`,github:`https://github.com/hanzoai`,discord:`https://discord.gg/CJCyAsm9Vr`,linkedin:`https://linkedin.com/company/hanzoai`},mark:y6.hanzo,logoUrl:S6(`@hanzo/brand@1.4.7`,`assets/logo/logo.svg`),faviconUrl:S6(`@hanzo/brand@1.4.7`,`assets/logo/favicon.svg`)},w6={hanzo:C6,lux:{id:`lux`,name:`Lux`,title:`Lux Network`,tagline:`High-performance, post-quantum blockchain infrastructure`,legalName:`Lux Industries Inc.`,domain:`lux.network`,docsDomain:`docs.lux.network`,adminDomain:`lux.network`,accentColor:`#FFFFFF`,theme:{light:b6,dark:x6},social:{twitter:`https://x.com/luxdefi`,github:`https://github.com/luxfi`,discord:`https://discord.gg/lux`},mark:y6.lux,logoUrl:S6(`@luxfi/logo@1.0.8`,`svg/lux-icon-white.svg`),faviconUrl:S6(`@luxfi/logo@1.0.8`,`svg/lux-favicon.svg`)},zoo:{id:`zoo`,name:`Zoo`,title:`Zoo`,tagline:`Open, decentralized AI & science research network`,legalName:`Zoo Labs Foundation`,domain:`zoo.ngo`,docsDomain:`docs.zoo.ngo`,adminDomain:`zoo.ngo`,accentColor:`#01ACF1`,theme:{light:{...b6,accent1:`#01ACF1`},dark:{...x6,accent1:`#01ACF1`}},social:{twitter:`https://x.com/zoo_labs`,github:`https://github.com/zooai`,discord:`https://discord.gg/zoo`},mark:y6.zoo,logoUrl:S6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`),faviconUrl:S6(`@zooai/brand@1.4.1`,`assets/logo/logo.svg`)},pars:{id:`pars`,name:`Pars`,title:`Pars Network`,tagline:`A sovereign, verifiable identity layer for the Pars community`,legalName:`Parsis Foundation`,domain:`pars.network`,docsDomain:`docs.pars.network`,adminDomain:`pars.network`,accentColor:`#caa24a`,theme:{light:{...b6,accent1:`#caa24a`},dark:{...x6,accent1:`#caa24a`}},social:{twitter:`https://x.com/parsnetwork`,github:`https://github.com/parsdao`},mark:y6.pars,logoUrl:S6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`),faviconUrl:S6(`@parsdao/brand@1.0.1`,`assets/logo/logo.svg`)},"7stars":{id:`7stars`,name:`7Stars`,title:`7Stars`,tagline:`Cloud, powered by Hanzo`,legalName:`7Stars`,domain:`7stars.dev`,docsDomain:`docs.7stars.dev`,adminDomain:`7stars.dev`,accentColor:`#FFFFFF`,theme:{light:b6,dark:x6},social:{},mark:y6[`7stars`],logoUrl:C6.logoUrl,faviconUrl:C6.faviconUrl},yotoda:{id:`yotoda`,name:`Yotoda`,title:`Yotoda`,tagline:`Cloud, powered by Hanzo`,legalName:`Yotoda`,domain:`yotoda.tech`,docsDomain:`docs.yotoda.tech`,adminDomain:`yotoda.tech`,accentColor:`#FFFFFF`,theme:{light:b6,dark:x6},social:{},mark:y6.yotoda,logoUrl:C6.logoUrl,faviconUrl:C6.faviconUrl}},Jfe=()=>typeof window>`u`?i6:Rfe(window.location.hostname);function Yfe({size:e=20,brand:t,wordmark:n,animated:r=!0,color:i=`currentColor`}){let a=t??Jfe(),o=y6[a]??y6.hanzo,s=w6[a]?.name??w6.hanzo.name,c=n===!1?s:n??s;if(typeof r==`function`){let t=r().replace(`<svg `,`<svg width="100%" height="100%" `);return(0,R.jsx)(`span`,{role:`img`,"aria-label":c,style:{width:e,height:e,display:`inline-flex`,flexShrink:0},dangerouslySetInnerHTML:{__html:t}})}return r&&a===`hanzo`?(0,R.jsx)(qfe,{animated:!0,size:e,wordmark:n===!1?void 0:c}):(0,R.jsx)(`svg`,{width:e,height:e,viewBox:o.viewBox,role:`img`,"aria-label":c,...o.colored?null:{fill:i},style:{display:`block`,flexShrink:0},dangerouslySetInnerHTML:{__html:o.content}})}function Xfe(e){let t=e.trim();if(!t||/^(https?:|data:|\/)/.test(t)||!/[\p{Extended_Pictographic}\p{Regional_Indicator}]/u.test(t))return!1;let n=Intl.Segmenter;return(n?[...new n().segment(t)].length:[...t].length)<=3}function Zfe(e){return(e.trim().split(/[\s._/-]+/).filter(Boolean).slice(0,2).map(e=>e[0]??``).join(``)||e.trim().slice(0,2)).toUpperCase()}var Qfe=e=>e<26?`$1`:e<34?`$2`:e<44?`$4`:`$6`;function T6({org:e,size:t=22,maxW:n}){let[r,i]=(0,b.useState)(!1);return(0,b.useEffect)(()=>i(!1),[e.logo]),e.logo&&Xfe(e.logo)?(0,R.jsx)(B,{width:t,height:t,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,R.jsx)(U,{fontSize:Math.round(t*.72),lineHeight:t,children:e.logo.trim()})}):e.logo&&!r?(0,R.jsx)(`img`,{src:e.logo,alt:``,onError:()=>i(!0),style:{height:t,width:n?`auto`:t,maxWidth:n??t,objectFit:`contain`,display:`block`,borderRadius:6,flexShrink:0}}):(0,R.jsx)(B,{width:t,height:t,rounded:`$3`,bg:`$edge`,items:`center`,justify:`center`,style:{flexShrink:0},children:(0,R.jsx)(U,{fontSize:Qfe(t),fontWeight:`800`,color:`$ink`,children:Zfe(e.displayName||e.name)})})}var E6=`theme`;function $fe(){if(typeof document>`u`)return;let e=document.documentElement;if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;try{let e=window.localStorage.getItem(E6);if(e===`light`||e===`dark`)return e}catch{}}function epe(e){if(typeof document>`u`)return;let t=document.documentElement;t.classList.toggle(`dark`,e===`dark`),t.classList.toggle(`light`,e===`light`),t.style.colorScheme=e;try{window.localStorage.setItem(E6,e)}catch{}}function D6({theme:e,defaultTheme:t,onToggle:n,onThemeChange:r,size:i=`$2`,label:a}){let o=e!==void 0,[s,c]=(0,b.useState)(()=>e??t??$fe()??`dark`),l=(o?e:s)===`dark`,u=r6(),{t:d}=_N();return(0,R.jsx)(HS,{size:i,chromeless:!0,icon:l?(0,R.jsx)(_oe,{size:16}):(0,R.jsx)(doe,{size:16}),onPress:()=>{let e=l?`light`:`dark`;u({component:`ThemeToggle`,action:`change`,value:e}),o||(c(e),epe(e)),n?.(e),r?.(e)},"aria-label":a??d(l?`Switch to light theme`:`Switch to dark theme`)})}var tpe=(0,b.lazy)(()=>Ba(()=>import(`./ThemeToggleNext-Dl_lG82A.js`),[])),npe=class extends b.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function O6(e){if(e.theme!==void 0||e.onToggle!==void 0||e.onThemeChange!==void 0)return(0,R.jsx)(D6,{...e});let t=(0,R.jsx)(D6,{...e});return(0,R.jsx)(npe,{fallback:t,children:(0,R.jsx)(b.Suspense,{fallback:t,children:(0,R.jsx)(tpe,{size:e.size,label:e.label})})})}var rpe=(0,b.createContext)({}),ipe=()=>(0,b.useContext)(rpe);function ape(e){let t=typeof e?.status==`number`?e.status:0,n=e instanceof Error?e.message:String(e);return t===503?{kind:`not-initialized`,message:n}:t===404||t===405?{kind:`unavailable`,message:n}:t===501?{kind:`not-implemented`,message:n}:t===402?{kind:`billing`,message:n}:t===401?{kind:`signin`,message:n}:t===403?{kind:`access`,message:n}:{kind:`error`,message:n}}var ope={"not-initialized":cN(`Backend not initialized`),unavailable:cN(`Not available on this deployment yet`),"not-implemented":cN(`Not yet available`),access:cN(`Not enabled for your account`),signin:cN(`Your session expired`),billing:cN(`Add credits to continue`),error:cN(`Could not reach the backend`)},k6={"not-initialized":cN(`The /v1 route is mounted but its runtime (or the console API key it proxies to) is not configured on this deployment yet. Real data appears here once it is — no placeholder data is shown.`),unavailable:cN(`This endpoint is not mounted at the gateway on this host yet. The view lights up automatically once the route is live.`),"not-implemented":cN(`This capability is planned but not wired yet. The backend answers honestly rather than pretending it worked — nothing here is fabricated, and the view lights up automatically once it ships.`),access:cN(`You're signed in, but this isn't enabled for your organization on this deployment, or it's an admin-only surface. It appears here automatically once your account has access — nothing is fabricated.`),signin:cN(`Your session has expired or isn’t recognized here. Sign in again to continue where you left off.`),billing:``,error:``};function spe({state:e,onRetry:t,hint:n}){let{signIn:r,addCredits:i}=ipe(),{t:a}=_N();return(0,R.jsxs)(t6,{borderWidth:1,borderColor:`$borderColor`,p:`$4`,gap:`$2`,maxW:640,children:[(0,R.jsxs)(V,{gap:`$2`,items:`center`,children:[(0,R.jsx)(RM,{size:16}),(0,R.jsx)(U,{fontSize:`$4`,fontWeight:`700`,children:a(ope[e.kind])})]}),(0,R.jsx)(U,{fontSize:`$3`,color:`$quiet`,children:k6[e.kind]?a(k6[e.kind]):e.message}),n?(0,R.jsx)(U,{fontSize:`$2`,color:`$soft`,children:n}):null,e.kind===`signin`&&r?(0,R.jsx)(HS,{size:`$2`,theme:`light`,self:`flex-start`,onPress:r,children:a(`Sign in again`)}):e.kind===`billing`&&i?(0,R.jsxs)(V,{gap:`$2`,items:`center`,flexWrap:`wrap`,children:[(0,R.jsx)(HS,{size:`$2`,theme:`light`,self:`flex-start`,icon:(0,R.jsx)(fM,{size:14}),onPress:i,children:a(`Add credits`)}),t?(0,R.jsx)(HS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]}):t?(0,R.jsx)(HS,{size:`$2`,self:`flex-start`,onPress:t,children:a(`Retry`)}):null]})}var cpe={fontWeight:`600`,px:`$3`};function lpe({onPress:e,...t}){let n=r6(),r=hP()===`compact`;return(0,R.jsx)(HS,{bg:`var(--primary)`,color:`var(--primary-foreground)`,borderColor:`var(--primary)`,hoverStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},pressStyle:{bg:`var(--primary-hover)`,borderColor:`var(--primary-hover)`},onPress:r=>{n({component:`PrimaryButton`,action:`click`,id:Ffe(t.children)??t[`aria-label`]}),e?.(r)},...r?cpe:null,...t})}function A6(e){typeof window<`u`&&window.open(e,`_blank`,`noopener`)}function j6({icon:e,title:t,description:n,bullets:r,primary:i,secondary:a}){let o=r6();return(0,R.jsxs)(t6,{borderWidth:1,borderColor:`$borderColor`,borderStyle:`dashed`,p:`$6`,gap:`$4`,items:`center`,maxW:640,self:`center`,width:`100%`,children:[(0,R.jsx)(B,{width:48,height:48,items:`center`,justify:`center`,rounded:`$4`,bg:`$hover`,children:(0,R.jsx)(e,{size:24})}),(0,R.jsxs)(B,{gap:`$2`,items:`center`,maxW:480,children:[(0,R.jsx)(U,{fontSize:`$6`,fontWeight:`500`,text:`center`,letterSpacing:-.3,children:t}),(0,R.jsx)(U,{fontSize:`$3`,color:`$quiet`,text:`center`,children:n})]}),r&&r.length?(0,R.jsx)(B,{gap:`$2`,self:`stretch`,maxW:420,mx:`auto`,children:r.map(e=>(0,R.jsxs)(V,{gap:`$2`,items:`flex-start`,children:[(0,R.jsx)(B,{pt:`$1`,children:(0,R.jsx)(cM,{size:14,color:`$soft`})}),(0,R.jsx)(U,{fontSize:`$3`,color:`$quiet`,flex:1,children:e})]},e))}):null,i||a?(0,R.jsxs)(V,{gap:`$2`,items:`center`,flexWrap:`wrap`,justify:`center`,children:[i?(0,R.jsx)(lpe,{icon:i.icon,iconAfter:i.href?(0,R.jsx)(mM,{size:16}):(0,R.jsx)(eM,{...kP,size:16}),onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:i.label}),i.href?A6(i.href):i.onPress?.()},children:i.label}):null,a?(0,R.jsx)(HS,{chromeless:!0,icon:a.icon,iconAfter:a.href?(0,R.jsx)(mM,{size:14}):void 0,onPress:()=>{o({component:`EmptyState`,action:`click`,id:t,value:a.label}),a.href?A6(a.href):a.onPress?.()},children:a.label}):null]}):null]})}var M6=new Map;function N6(e,t){M6.set(e,t)}function P6(e){return M6.get(e)}var F6={AC:`247`,AD:`376`,AE:`971`,AF:`93`,AG:`1`,AI:`1`,AL:`355`,AM:`374`,AO:`244`,AR:`54`,AS:`1`,AT:`43`,AU:`61`,AW:`297`,AX:`358`,AZ:`994`,BA:`387`,BB:`1`,BD:`880`,BE:`32`,BF:`226`,BG:`359`,BH:`973`,BI:`257`,BJ:`229`,BL:`590`,BM:`1`,BN:`673`,BO:`591`,BQ:`599`,BR:`55`,BS:`1`,BT:`975`,BW:`267`,BY:`375`,BZ:`501`,CA:`1`,CC:`61`,CD:`243`,CF:`236`,CG:`242`,CH:`41`,CI:`225`,CK:`682`,CL:`56`,CM:`237`,CN:`86`,CO:`57`,CR:`506`,CU:`53`,CV:`238`,CW:`599`,CX:`61`,CY:`357`,CZ:`420`,DE:`49`,DJ:`253`,DK:`45`,DM:`1`,DO:`1`,DZ:`213`,EC:`593`,EE:`372`,EG:`20`,EH:`212`,ER:`291`,ES:`34`,ET:`251`,FI:`358`,FJ:`679`,FK:`500`,FM:`691`,FO:`298`,FR:`33`,GA:`241`,GB:`44`,GD:`1`,GE:`995`,GF:`594`,GG:`44`,GH:`233`,GI:`350`,GL:`299`,GM:`220`,GN:`224`,GP:`590`,GQ:`240`,GR:`30`,GT:`502`,GU:`1`,GW:`245`,GY:`592`,HK:`852`,HN:`504`,HR:`385`,HT:`509`,HU:`36`,ID:`62`,IE:`353`,IL:`972`,IM:`44`,IN:`91`,IO:`246`,IQ:`964`,IR:`98`,IS:`354`,IT:`39`,JE:`44`,JM:`1`,JO:`962`,JP:`81`,KE:`254`,KG:`996`,KH:`855`,KI:`686`,KM:`269`,KN:`1`,KP:`850`,KR:`82`,KW:`965`,KY:`1`,KZ:`7`,LA:`856`,LB:`961`,LC:`1`,LI:`423`,LK:`94`,LR:`231`,LS:`266`,LT:`370`,LU:`352`,LV:`371`,LY:`218`,MA:`212`,MC:`377`,MD:`373`,ME:`382`,MF:`590`,MG:`261`,MH:`692`,MK:`389`,ML:`223`,MM:`95`,MN:`976`,MO:`853`,MP:`1`,MQ:`596`,MR:`222`,MS:`1`,MT:`356`,MU:`230`,MV:`960`,MW:`265`,MX:`52`,MY:`60`,MZ:`258`,NA:`264`,NC:`687`,NE:`227`,NF:`672`,NG:`234`,NI:`505`,NL:`31`,NO:`47`,NP:`977`,NR:`674`,NU:`683`,NZ:`64`,OM:`968`,PA:`507`,PE:`51`,PF:`689`,PG:`675`,PH:`63`,PK:`92`,PL:`48`,PM:`508`,PR:`1`,PS:`970`,PT:`351`,PW:`680`,PY:`595`,QA:`974`,RE:`262`,RO:`40`,RS:`381`,RU:`7`,RW:`250`,SA:`966`,SB:`677`,SC:`248`,SD:`249`,SE:`46`,SG:`65`,SH:`290`,SI:`386`,SJ:`47`,SK:`421`,SL:`232`,SM:`378`,SN:`221`,SO:`252`,SR:`597`,SS:`211`,ST:`239`,SV:`503`,SX:`1`,SY:`963`,SZ:`268`,TA:`290`,TC:`1`,TD:`235`,TG:`228`,TH:`66`,TJ:`992`,TK:`690`,TL:`670`,TM:`993`,TN:`216`,TO:`676`,TR:`90`,TT:`1`,TV:`688`,TW:`886`,TZ:`255`,UA:`380`,UG:`256`,US:`1`,UY:`598`,UZ:`998`,VA:`39`,VC:`1`,VE:`58`,VG:`1`,VI:`1`,VN:`84`,VU:`678`,WF:`681`,WS:`685`,XK:`383`,YE:`967`,YT:`262`,ZA:`27`,ZM:`260`,ZW:`263`},I6=e=>e==null?``:String(e),L6=e=>{if(e==null||e===``)return null;let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null},R6=e=>Array.isArray(e)?e:e==null||e===``?[]:[e],z6=e=>{if(e==null||e===``)return``;if(e instanceof Date)return Number.isNaN(e.getTime())?``:e.toISOString().slice(0,10);let t=String(e),n=t.match(/^(\d{4}-\d{2}-\d{2})/);if(n)return n[1];let r=new Date(t);return Number.isNaN(r.getTime())?``:r.toISOString().slice(0,10)},upe=e=>{if(e==null||e===``)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},B6=e=>{if(e==null||e===``)return{};if(typeof e==`string`){let t=e.trim(),n=t.indexOf(` `);return n<0?{first:t}:{first:t.slice(0,n),last:t.slice(n+1).trim()}}if(typeof e!=`object`)return{first:String(e)};let t=e;return{first:I6(t.first??t.firstName).trim()||void 0,last:I6(t.last??t.lastName).trim()||void 0}},V6=e=>{let t=B6(e);return[t.first,t.last].filter(Boolean).join(` `)},H6=[`street1`,`street2`,`city`,`state`,`postcode`,`country`],U6=e=>{if(e==null||e===``)return{};if(typeof e==`string`)return{street1:e};let t=e,n={},r={street1:`addressStreet1`,street2:`addressStreet2`,city:`addressCity`,state:`addressState`,postcode:`addressPostcode`,country:`addressCountry`};for(let e of H6){let i=I6(t[e]??t[r[e]]).trim();i&&(n[e]=i)}return n},dpe=(e,t)=>{if(!e)return``;if(!/^[A-Za-z]{2}$/.test(e))return e;try{return new Intl.DisplayNames(t?[t]:void 0,{type:`region`}).of(e.toUpperCase())??e}catch{return e}},W6=(e,t)=>{let n=U6(e);return H6.map(e=>e===`country`?dpe(n.country,t):n[e]).filter(Boolean).join(`, `)},G6=e=>R6(e).map(e=>typeof e==`string`?{url:e}:e).filter(e=>!!e&&typeof e.url==`string`&&e.url.trim()!==``),K6=e=>{let t=e.trim();try{let e=new URL(/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`);return e.host.replace(/^www\./,``)+(e.pathname===`/`?``:e.pathname.replace(/\/$/,``))}catch{return t}},q6=e=>{let t=e.trim();if(!t)return;let n=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return[`http:`,`https:`,`mailto:`,`tel:`].includes(e.protocol)?e.href:void 0}catch{return}},J6=e=>{if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;return[I6(t.primaryEmail),...R6(t.additionalEmails).map(I6)].map(e=>e.trim()).filter(Boolean)}return R6(e).flatMap(e=>I6(e).split(/[,;]/)).map(e=>e.trim()).filter(Boolean)},fpe=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),ppe=(()=>{let e={};for(let[t,n]of Object.entries(F6))(e[n]??=[]).push(t);for(let[t,n]of Object.entries({1:`US`,7:`RU`,44:`GB`,47:`NO`,61:`AU`,212:`MA`,262:`RE`,290:`SH`,358:`FI`,590:`GP`,599:`CW`})){let r=e[t];r?.includes(n)&&(e[t]=[n,...r.filter(e=>e!==n)])}return e})(),Y6=(e,t)=>{if(e&&typeof e==`object`){let t=e,n=I6(t.number??t.primaryPhoneNumber).trim(),r=I6(t.country??t.countryCode??t.primaryPhoneCountryCode).trim().toUpperCase()||void 0;return{country:r,callingCode:I6(t.callingCode??t.primaryPhoneCallingCode).replace(/^\+/,``).trim()||(r?F6[r]:void 0),number:n}}let n=I6(e).trim();if(!n.startsWith(`+`)){let e=t?.toUpperCase();return{country:e,callingCode:e?F6[e]:void 0,number:n}}let r=n.slice(1).replace(/[^\d]/g,``);for(let e=Math.min(4,r.length);e>0;e--){let i=r.slice(0,e),a=ppe[i];if(a)return{country:t&&a.includes(t.toUpperCase())?t.toUpperCase():a[0],callingCode:i,number:mpe(n.slice(1),e)}}return{number:n}},mpe=(e,t)=>{let n=0,r=0;for(;r<e.length&&n<t;)/\d/.test(e[r++])&&n++;return e.slice(r).replace(/^[\s.()-]+/,``).trim()},X6=e=>{let t=e.number.trim();return t?e.callingCode?`+${e.callingCode} ${t.replace(/^0+(?=\d)/,``)}`:t:``},hpe=e=>{let t=e.number.replace(/[^\d]/g,``).replace(/^0+(?=\d)/,``);if(t)return`tel:${e.callingCode?`+${e.callingCode}`:``}${t}`},Z6=e=>{if(e==null||e===``)return null;if(typeof e==`string`)return{name:e};let t=e,n=I6(t.name??t.workspaceMemberName??t.label).trim();return n?{name:n,source:I6(t.source).toLowerCase()||void 0,avatarUrl:I6(t.avatarUrl).trim()||void 0}:null},Q6=e=>{if(e==null||e===``)return``;if(typeof e==`object`){let t=e;return typeof t.markdown==`string`&&t.markdown.trim()?Q6(t.markdown):`blocknote`in t||`content`in t||`type`in t||Array.isArray(e)?Q6($6(e).join(`
155
- `)):``}for(let t of String(e).split(`
156
- `)){let e=t.replace(/^\s{0,3}(#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+|-\s\[[ x]\]\s+)/i,``).replace(/!\[[^\]]*\]\([^)]*\)/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*\*|__|\*|_|~~|`)/g,``).trim();if(e)return e}return``},$6=e=>{if(typeof e==`string`)try{return $6(JSON.parse(e))}catch{return[e]}if(Array.isArray(e))return e.flatMap($6);if(e&&typeof e==`object`){let t=e,n=typeof t.text==`string`?[t.text]:[],r=[t.content,t.children,t.blocknote].flatMap(e=>e==null?[]:$6(e));return t.type&&r.length?[[...n,...r].join(``)]:[...n,...r]}return[]},gpe=(e,t)=>{if(typeof t==`string`)return t;if(t&&typeof t==`object`){let n=t;return I6(n[e]??n.label??n.name??n.id)}return``};function e8(){return(0,R.jsx)(U,{fontSize:`$2`,color:`var(--text-faint)`,"aria-label":`Empty`,children:`—`})}var t8=({text:e,color:t=`$ink`,mono:n})=>(0,R.jsx)(H0,{text:e,size:`$2`,color:t,...n?{fontFamily:`$mono`}:null}),n8={target:`_blank`,rel:`noopener noreferrer`};function r8({label:e,color:t}){return(0,R.jsx)(U0,{color:t??`gray`,children:e})}var i8=(e,t)=>e?.find(e=>e.value===t)??{value:t,label:t};function _pe({value:e}){let t=I6(e).trim();return t?(0,R.jsx)(t8,{text:t}):(0,R.jsx)(e8,{})}function vpe({value:e}){let t=I6(e).trim();return t?(0,R.jsx)(H0,{text:t,lineClamp:2,size:`$2`,color:`$ink`,isTooltipMultiline:!0}):(0,R.jsx)(e8,{})}function ype({value:e}){let t=Q6(e);return t?(0,R.jsx)(t8,{text:t,color:`$aside`}):(0,R.jsx)(e8,{})}function bpe({value:e}){let t=J6(e);return t.length===0?(0,R.jsx)(e8,{}):(0,R.jsx)(d8,{children:t.map((e,t)=>(0,R.jsx)(G0,{shape:`round`,variant:`soft`,label:e,href:`mailto:${e}`},`${e}-${t}`))})}var a8=({url:e,label:t})=>{let n=q6(e);return(0,R.jsx)(G0,{shape:`round`,variant:`soft`,label:t?.trim()||K6(e),tooltipContent:e,...n?{href:n,...n8}:null})};function xpe({value:e}){let t=G6(e);return t.length===0?(0,R.jsx)(e8,{}):t.length===1?(0,R.jsx)(a8,{url:t[0].url,label:t[0].label}):(0,R.jsx)(d8,{children:t.map((e,t)=>(0,R.jsx)(a8,{url:e.url,label:e.label},`${e.url}-${t}`))})}function Spe({value:e}){let t=G6(e);return t.length===0?(0,R.jsx)(e8,{}):(0,R.jsx)(d8,{children:t.map((e,t)=>(0,R.jsx)(a8,{url:e.url,label:e.label},`${e.url}-${t}`))})}function Cpe({field:e,value:t}){let n=e.metadata?.defaultCountry,r=(Array.isArray(t)?t:[t]).map(e=>Y6(e,n)).filter(e=>e.number);return r.length===0?(0,R.jsx)(e8,{}):(0,R.jsx)(d8,{children:r.map((e,t)=>{let n=hpe(e);return(0,R.jsx)(G0,{shape:`round`,variant:`soft`,label:X6(e),...n?{href:n}:null},`${e.number}-${t}`)})})}var wpe={fontVariant:[`tabular-nums`]},o8=({text:e})=>(0,R.jsx)(U,{fontSize:`$2`,color:`$ink`,numberOfLines:1,...wpe,children:e});function s8({field:e,value:t}){let n=L6(t);if(n==null)return(0,R.jsx)(e8,{});let r=e.metadata??{},i=r.decimals==null?n.toLocaleString():n.toLocaleString(void 0,{minimumFractionDigits:r.decimals,maximumFractionDigits:r.decimals});return(0,R.jsx)(o8,{text:`${r.prefix??``}${i}${r.suffix??``}`})}function Tpe({field:e,value:t}){let n=L6(t);if(n==null)return(0,R.jsx)(e8,{});let r=(e.metadata??{}).decimals??0;return(0,R.jsx)(o8,{text:`${n.toLocaleString(void 0,{minimumFractionDigits:r,maximumFractionDigits:r})}%`})}function Epe({field:e,value:t}){let n=e.metadata??{},r=t??{},i=L6(typeof r==`object`&&r?r.amount:t);if(i==null)return(0,R.jsx)(e8,{});let a=typeof r==`object`&&r?.currencyCode||n.currencyCode||`USD`,o;try{o=new Intl.NumberFormat(void 0,{style:`currency`,currency:a,maximumFractionDigits:n.decimals??2}).format(i)}catch{o=`${i} ${a}`}return(0,R.jsx)(o8,{text:o})}function c8({value:e,max:t,hover:n}){let r=Ol().aside?.get?.()??`currentColor`,i=n??e;return(0,R.jsx)(V,{items:`center`,gap:2,"aria-hidden":!0,children:Array.from({length:t},(e,t)=>t+1).map(e=>(0,R.jsx)(FM,{size:16,color:e<=i?`$aside`:`$raised`,fill:e<=i?r:`none`},e))})}function Dpe({field:e,value:t}){let n=(e.metadata??{}).max??5,r=Math.max(0,Math.min(n,Math.round(L6(t)??0)));return(0,R.jsx)(V,{role:`img`,"aria-label":`${r} of ${n}`,children:(0,R.jsx)(c8,{value:r,max:n})})}function Ope({field:e,value:t}){if(t==null||t===``)return(0,R.jsx)(e8,{});let n=e.metadata??{},r=t===!0||t===`true`||t===1;return(0,R.jsxs)(V,{items:`center`,gap:`$1`,height:20,children:[(0,R.jsx)(r?cM:HM,{size:14,color:`$aside`}),(0,R.jsx)(U,{fontSize:`$2`,color:`$aside`,children:r?n.trueLabel??`Yes`:n.falseLabel??`No`})]})}function kpe({field:e,value:t}){let n=I6(t);if(!n)return(0,R.jsx)(e8,{});let r=e.metadata?.options,i=i8(r,n);return(0,R.jsx)(r8,{label:i.label,color:i.color})}function Ape({field:e,value:t}){let n=R6(t).map(I6).filter(Boolean);if(n.length===0)return(0,R.jsx)(e8,{});let r=e.metadata?.options;return(0,R.jsx)(d8,{children:n.map(e=>{let t=i8(r,e);return(0,R.jsx)(r8,{label:t.label,color:t.color},e)})})}var jpe=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],l8=(e,t=Date.now())=>{let n=(e.getTime()-t)/1e3,r=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let[e,t]of jpe)if(Math.abs(n)>=t)return r.format(Math.round(n/t),e);return r.format(Math.round(n),`second`)};function Mpe({field:e,value:t}){let n=z6(t);if(!n)return(0,R.jsx)(e8,{});let r=new Date(`${n}T00:00:00Z`);if(e.metadata?.display===`relative`){let e=new Date(new Date().toISOString().slice(0,10)+`T00:00:00Z`);return(0,R.jsx)(t8,{text:l8(r,e.getTime())})}return(0,R.jsx)(t8,{text:r.toLocaleDateString(void 0,{timeZone:`UTC`,year:`numeric`,month:`short`,day:`numeric`})})}function Npe({field:e,value:t}){let n=upe(t);if(!n)return(0,R.jsx)(e8,{});let r=e.metadata?.display===`relative`;return(0,R.jsx)(t8,{text:r?l8(n):n.toLocaleString(void 0,{year:`numeric`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`})})}function Ppe({label:e,seed:t,src:n,shape:r=`square`,href:i,onPress:a}){return(0,R.jsx)(G0,{label:e,startElement:(0,R.jsx)(xF,{size:`md`,shape:r===`circle`?`circle`:`square`,name:e,colorSeed:t??e,src:n??null}),...i?{href:i}:null,...a?{onPress:a}:null})}function Fpe({field:e,value:t}){let n=e.metadata??{},r=n.labelField??`name`,i=R6(t).map(e=>{let t=gpe(r,e),i=e&&typeof e==`object`?e:null,a=i&&I6(i[n.avatarField??`avatarUrl`]).trim()||void 0;return{label:t,seed:i&&I6(i.id)||t,src:a}}).filter(e=>e.label);if(i.length===0)return(0,R.jsx)(e8,{});let a=i.map((e,t)=>(0,R.jsx)(Ppe,{label:e.label,seed:e.seed,src:e.src,shape:n.shape},`${e.seed}-${t}`));return i.length===1?a[0]:(0,R.jsx)(d8,{children:a})}var Ipe={api:Kae,import:zM,email:wM,calendar:sM,workflow:Toe,webhook:woe,system:rM,manual:Xae};function Lpe({value:e}){let t=Z6(e);if(!t)return(0,R.jsx)(e8,{});let n=t.source&&t.source!==`member`?Ipe[t.source]:void 0;return(0,R.jsx)(G0,{label:t.name,startElement:n?(0,R.jsx)(n,{size:14,color:`$hint`}):(0,R.jsx)(xF,{size:`md`,shape:`circle`,name:t.name,src:t.avatarUrl??null})})}function Rpe({value:e}){let t=V6(e);return t?(0,R.jsx)(t8,{text:t}):(0,R.jsx)(e8,{})}function zpe({value:e}){let t=W6(e);return t?(0,R.jsx)(t8,{text:t}):(0,R.jsx)(e8,{})}function Bpe({value:e}){let t=I6(e);return t?(0,R.jsx)(t8,{text:t,color:`$hint`,mono:!0}):(0,R.jsx)(e8,{})}function Vpe({value:e}){let t=R6(e).map(e=>typeof e==`string`?{name:e}:e).map(e=>({name:I6(e?.label??e?.name).trim()||`file`,url:I6(e?.url).trim()}));return t.length===0?(0,R.jsx)(e8,{}):(0,R.jsx)(d8,{children:t.map((e,t)=>{let n=e.url?q6(e.url):void 0;return(0,R.jsx)(G0,{variant:`soft`,label:e.name,maxW:120,startElement:(0,R.jsx)(kM,{size:14,color:`$hint`}),...n?{href:n,...n8}:null},`${e.name}-${t}`)})})}function u8({value:e}){if(e==null)return(0,R.jsx)(e8,{});let t;try{t=JSON.stringify(e)}catch{t=String(e)}return(0,R.jsx)(t8,{text:t,color:`$hint`,mono:!0})}function Hpe({value:e}){if(typeof e==`object`&&e)return(0,R.jsx)(u8,{field:{name:``,label:``,type:`json`},value:e});let t=I6(e);return t?(0,R.jsx)(t8,{text:t}):(0,R.jsx)(e8,{})}function d8({children:e}){return(0,R.jsx)(eue,{flex:1,minW:0,children:e})}var f8=e=>{let t=new Map;return n=>{let r=n??``,i=t.get(r);return i===void 0&&t.set(r,i=e(n)),i}},p8=(e,t)=>{try{return new Intl.DisplayNames(e?[e]:void 0,{type:t})}catch{return null}},m8=f8(e=>{let t=p8(e,`region`),n=new Intl.Collator(e);return Object.entries(F6).map(([e,n])=>{let r=e;try{r=t?.of(e)??e}catch{r=e}return{value:e,label:r,callingCode:n}}).sort((e,t)=>n.compare(e.label,t.label))}),Upe=(e,t)=>{try{let n=new Intl.NumberFormat(t,{style:`currency`,currency:e,currencyDisplay:`narrowSymbol`}).formatToParts(0).find(e=>e.type===`currency`)?.value;return n&&n!==e?n:void 0}catch{return}},Wpe=f8(e=>{let t=Intl.supportedValuesOf,n=t?t(`currency`):[`USD`,`EUR`,`GBP`,`JPY`,`CNY`,`CAD`,`AUD`,`CHF`,`INR`,`BRL`],r=p8(e,`currency`);return n.map(t=>{let n=t;try{n=r?.of(t)??t}catch{n=t}return{code:t,name:n,symbol:Upe(t,e)}})}),h8=e=>e.field.metadata?.options??[],g8=(e,t)=>{let n=e=>e.normalize(`NFD`).replace(/\p{M}/gu,``).toLowerCase(),r=n(t.trim());return r?e.filter(e=>n(e.label).includes(r)||n(e.value).includes(r)):e};function _8({onSubmit:e,onCancel:t,multiline:n,children:r}){return(0,R.jsx)(B,{width:`100%`,minW:0,onKeyDown:r=>{r.nativeEvent?.isComposing||(r.key===`Enter`&&!(n&&r.shiftKey)?(r.preventDefault?.(),e?.()):r.key===`Escape`&&(r.preventDefault?.(),t?.()))},children:r})}var v8=e=>e.field.label;function Gpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata?.placeholder;return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsx)(dL,{"aria-label":e.label,value:I6(t),onChangeText:e=>n(e),placeholder:o,autoFocus:a})})}function Kpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=I6(Array.isArray(t)?t[0]:t),s=e.metadata?.placeholder??`name@example.com`;return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsx)(dL,{"aria-label":e.label,type:`email`,inputMode:`email`,autoComplete:`email`,value:o,onChangeText:e=>n(e.trim()),placeholder:s,autoFocus:a,"aria-invalid":o!==``&&!fpe(o)||void 0})})}function qpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=I6(typeof t==`object`&&t&&!Array.isArray(t)?t.url:t),s=e.metadata?.placeholder??`https://`;return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsx)(dL,{"aria-label":e.label,type:`url`,inputMode:`url`,value:o,onChangeText:e=>n(e.trim()),placeholder:s,autoFocus:a})})}function Jpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{},s=Y6(t,o.defaultCountry),[c,l]=(0,b.useState)(s.country??o.defaultCountry?.toUpperCase()),u=(0,b.useMemo)(()=>m8(),[]),d=(e,r)=>{let i=e?F6[e]:void 0;n(typeof t==`object`&&t&&!Array.isArray(t)?{...t,number:r,countryCode:e,callingCode:i?`+${i}`:void 0}:r.trim()?i?`+${i} ${r.trim()}`:r.trim():null)};return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsxs)(sL,{children:[(0,R.jsx)(cue,{countries:u,value:c??null,onValueChange:e=>{l(e??void 0),d(e??void 0,s.number)}}),(0,R.jsx)(dL,{"aria-label":e.label,type:`tel`,inputMode:`tel`,autoComplete:`tel`,value:s.number,onChangeText:e=>d(c,e),placeholder:o.placeholder??`Phone number`,autoFocus:a})]})})}function y8({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{};return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,multiline:!0,children:(0,R.jsx)(ZL,{"aria-label":e.label,value:I6(t),onChangeText:e=>n(e),placeholder:o.placeholder,autoFocus:a,rows:o.rows??3,maxRows:o.rows&&o.rows>10?o.rows:10})})}function Ype({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{};return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsx)(Q0,{"aria-label":e.label,value:L6(t),onValueChange:e=>n(e),placeholder:o.placeholder,autoFocus:a,allowOutOfRange:!0,...o.decimals==null?null:{format:{maximumFractionDigits:o.decimals}}})})}function Xpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=(e.metadata??{}).decimals;return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsx)(sL,{end:(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:`%`}),children:(0,R.jsx)(Q0,{"aria-label":e.label,value:L6(t),onValueChange:e=>n(e),autoFocus:a,allowOutOfRange:!0,...o==null?null:{format:{maximumFractionDigits:o}}})})})}function Zpe({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.metadata??{},s=t??{},c=L6(typeof s==`object`&&s?s.amount:t),l=typeof s==`object`&&s?.currencyCode||o.currencyCode||`USD`,u=(0,b.useMemo)(()=>Wpe(),[]);return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsxs)(sL,{children:[(0,R.jsx)(sue,{currencies:u,value:l,onValueChange:e=>n({amount:c,currencyCode:e??l}),selectedFirst:!0}),(0,R.jsx)(Q0,{"aria-label":e.label,value:c,onValueChange:e=>n({amount:e,currencyCode:l}),autoFocus:a,allowOutOfRange:!0,format:{maximumFractionDigits:o.decimals??2}})]})})}function Qpe({field:e,value:t,onChange:n}){let r=(e.metadata??{}).max??5,i=Math.max(0,Math.min(r,Math.round(L6(t)??0))),[a,o]=(0,b.useState)(null),s=e=>n(Math.max(0,Math.min(r,e)));return(0,R.jsx)(V,{role:`slider`,tabIndex:0,onKeyDown:e=>{let t=e.key===`ArrowRight`||e.key===`ArrowUp`?i+1:e.key===`ArrowLeft`||e.key===`ArrowDown`?i-1:e.key===`Home`?0:e.key===`End`?r:null;t!=null&&(e.preventDefault?.(),s(t))},"aria-label":e.label,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i,"aria-valuetext":`${i} of ${r}`,items:`center`,height:20,rounded:`$xs`,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},onHoverOut:()=>o(null),children:(0,R.jsxs)(V,{position:`relative`,children:[(0,R.jsx)(c8,{value:i,max:r,hover:a}),(0,R.jsx)(V,{position:`absolute`,t:0,l:0,r:0,b:0,children:Array.from({length:r},(e,t)=>t+1).map(e=>(0,R.jsx)(V,{flex:1,cursor:`pointer`,onHoverIn:()=>o(e),onPress:()=>s(e===i?0:e),"data-star":e},e))})]})})}function $pe({field:e,value:t,onChange:n}){let r=e.metadata??{},i=t===!0||t===`true`||t===1;return(0,R.jsxs)(V,{items:`center`,gap:`$2`,children:[(0,R.jsx)(zL,{"aria-label":e.label,checked:i,onCheckedChange:e=>n(e)}),(0,R.jsx)(U,{fontSize:`$2`,color:`$aside`,children:i?r.trueLabel??`Yes`:r.falseLabel??`No`})]})}function b8({children:e,...t}){return(0,R.jsx)(sF,{variant:`outline`,width:`100%`,justify:`space-between`,endIcon:(0,R.jsx)(lM,{color:`$hint`}),...t,children:(0,R.jsx)(V,{flex:1,minW:0,items:`center`,gap:`$1`,overflow:`hidden`,children:e})})}var x8=({text:e})=>(0,R.jsx)(U,{fontSize:`$2`,color:`$hush`,numberOfLines:1,children:e}),S8=e=>(0,b.useState)(!!e);function eme(e){let{value:t,onChange:n,autoFocus:r}=e,i=h8(e),[a,o]=S8(r),[s,c]=(0,b.useState)(``),l=I6(t),u=i.find(e=>e.value===l),d=g8(i,s);return(0,R.jsxs)(yI,{open:a,onOpenChange:e=>{o(e),e||c(``)},children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(b8,{"aria-label":v8(e),children:u?(0,R.jsx)(r8,{label:u.label,color:u.color}):(0,R.jsx)(x8,{text:`Select…`})})}),(0,R.jsxs)(TI,{minW:240,children:[(0,R.jsx)(II,{value:s,onValueChange:c,placeholder:`Search options`,"aria-label":`Search ${v8(e)}`}),l?(0,R.jsx)(kI,{onSelect:()=>n(null),children:`No ${v8(e)}`}):null,(0,R.jsx)(NI,{value:l||null,onValueChange:e=>n(e??null),children:(0,R.jsx)(LI,{scrollable:!0,children:d.map(e=>(0,R.jsx)(FI,{value:e.value,children:(0,R.jsx)(r8,{label:e.label,color:e.color})},e.value))})}),d.length===0?(0,R.jsx)(WI,{children:`No options`}):null]})]})}function tme(e){let{value:t,onChange:n,autoFocus:r}=e,i=h8(e),[a,o]=S8(r),[s,c]=(0,b.useState)(``),l=R6(t).map(I6).filter(Boolean),u=g8(i,s);return(0,R.jsxs)(yI,{open:a,onOpenChange:e=>{o(e),e||c(``)},children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(b8,{"aria-label":v8(e),children:l.length>0?l.map(e=>{let t=i.find(t=>t.value===e)??{value:e,label:e};return(0,R.jsx)(r8,{label:t.label,color:t.color},e)}):(0,R.jsx)(x8,{text:`Select…`})})}),(0,R.jsxs)(TI,{minW:240,children:[(0,R.jsx)(II,{value:s,onValueChange:c,placeholder:`Search options`,"aria-label":`Search ${v8(e)}`}),(0,R.jsx)(NI,{multiple:!0,value:l,onValueChange:e=>n(R6(e).map(I6)),children:(0,R.jsx)(LI,{scrollable:!0,children:u.map(e=>(0,R.jsx)(FI,{value:e.value,children:(0,R.jsx)(r8,{label:e.label,color:e.color})},e.value))})}),u.length===0?(0,R.jsx)(WI,{children:`No options`}):null]})]})}function nme(e){let{field:t,value:n,onChange:r,onSubmit:i,onCancel:a,autoFocus:o}=e,s=h8(e),c=(t.metadata??{}).shape??`square`,[l,u]=S8(o),[d,f]=(0,b.useState)(``);if(s.length===0){let e=I6(typeof n==`object`&&n?n.name??n.id:n);return(0,R.jsx)(_8,{onSubmit:i,onCancel:a,children:(0,R.jsx)(dL,{"aria-label":t.label,value:e,onChangeText:e=>r(e),placeholder:`Related record id…`,autoFocus:o})})}let p=I6(typeof n==`object`&&n?n.id??n.value:n),m=s.find(e=>e.value===p),h=g8(s,d),g=e=>(0,R.jsxs)(V,{items:`center`,gap:`$2`,minW:0,children:[(0,R.jsx)(xF,{size:`md`,shape:c,name:e.label,colorSeed:e.value,src:e.avatarUrl??null}),(0,R.jsx)(U,{fontSize:`$2`,color:`$ink`,numberOfLines:1,children:e.label})]});return(0,R.jsxs)(yI,{open:l,onOpenChange:e=>{u(e),e||f(``)},children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(b8,{"aria-label":t.label,children:m?g(m):(0,R.jsx)(x8,{text:`Link a record…`})})}),(0,R.jsxs)(TI,{minW:280,children:[(0,R.jsx)(II,{value:d,onValueChange:f,placeholder:`Search records`,"aria-label":`Search ${t.label}`}),p?(0,R.jsx)(kI,{onSelect:()=>r(null),children:`No ${t.label}`}):null,(0,R.jsx)(NI,{value:p||null,onValueChange:e=>r(e??null),children:(0,R.jsx)(LI,{scrollable:!0,children:h.map(e=>(0,R.jsx)(FI,{value:e.value,children:g(e)},e.value))})}),h.length===0?(0,R.jsx)(WI,{children:`No record found`}):null]})]})}var C8=e=>String(e).padStart(2,`0`),w8=e=>{let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)},T8=e=>`${e.getFullYear()}-${C8(e.getMonth()+1)}-${C8(e.getDate())}`;function E8({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=e.type===`dateTime`,[s,c]=S8(a),l=o&&t!=null&&t!==``?new Date(t):null,u=o&&l&&!Number.isNaN(l.getTime())?T8(l):z6(t),d=l&&!Number.isNaN(l.getTime())?`${C8(l.getHours())}:${C8(l.getMinutes())}`:``,[f,p]=(0,b.useState)(null),m=(e,t=d)=>{if(!e)return n(null);if(!o)return n(e);let r=new Date(`${e}T${/^\d{2}:\d{2}$/.test(t)?t:`00:00`}`);n(Number.isNaN(r.getTime())?null:r.toISOString())},h=u?w8(u).toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`})+(o&&d?` ${d}`:``):``;return(0,R.jsxs)(gL,{open:s,onOpenChange:c,placement:`bottom-start`,children:[(0,R.jsx)(_L,{asChild:!0,children:(0,R.jsxs)(b8,{"aria-label":e.label,children:[(0,R.jsx)(sM,{size:14,color:`$hint`}),h?(0,R.jsx)(U,{fontSize:`$2`,color:`$ink`,numberOfLines:1,children:h}):(0,R.jsx)(x8,{text:`Pick a date…`})]})}),(0,R.jsx)(vL,{size:`sm`,width:280,children:(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsxs)(B,{gap:`$2`,children:[(0,R.jsxs)(V,{gap:`$1`,children:[(0,R.jsx)(dL,{"aria-label":`${e.label}, as YYYY-MM-DD`,size:`sm`,flex:1,value:f??u,placeholder:`YYYY-MM-DD`,onChangeText:e=>{p(e),/^\d{4}-\d{2}-\d{2}$/.test(e)&&!Number.isNaN(w8(e).getTime())?m(e):e===``&&m(``)},onBlur:()=>p(null)}),o?(0,R.jsx)(dL,{"aria-label":`${e.label}, time`,size:`sm`,width:72,value:d,placeholder:`HH:mm`,onChangeText:e=>{/^\d{2}:\d{2}$/.test(e)&&m(u||T8(new Date),e)}}):null]}),(0,R.jsx)(Fce,{mode:`single`,selected:u?w8(u):void 0,defaultMonth:u?w8(u):void 0,onSelect:e=>{m(e?T8(e):``),o||c(!1)}}),u?(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,emphasis:`subtle`,onPress:()=>{m(``),c(!1)},children:`Clear`}):null]})})})]})}function rme({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=G6(t),[s,c]=(0,b.useState)(``);return(0,R.jsxs)(B,{gap:`$1`,width:`100%`,minW:0,children:[o.map((e,t)=>(0,R.jsxs)(V,{items:`center`,gap:`$2`,minH:24,children:[(0,R.jsx)(U,{flex:1,minW:0,fontSize:`$2`,color:`$ink`,numberOfLines:1,children:e.label?.trim()||K6(e.url)}),(0,R.jsx)(sF,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${e.label?.trim()||K6(e.url)}`,onPress:()=>n(o.filter((e,n)=>n!==t)),children:(0,R.jsx)(HM,{})})]},`${e.url}-${t}`)),(0,R.jsx)(_8,{onSubmit:()=>{let e=s.trim();if(!e)return r?.();n([...o,{url:e}]),c(``)},onCancel:i,children:(0,R.jsx)(dL,{"aria-label":`Add to ${e.label}`,type:`url`,inputMode:`url`,value:s,onChangeText:c,placeholder:`Add a link`,autoFocus:a})})]})}function ime({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=B6(t),s=(e,t)=>n(!e?.trim()&&!t?.trim()?null:{first:e??``,last:t??``});return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsxs)(V,{gap:`$1`,children:[(0,R.jsx)(dL,{"aria-label":`${e.label}, first name`,flex:1,value:o.first??``,placeholder:`First name`,autoFocus:a,onChangeText:e=>{let t=B6(e);t.last&&!o.last&&e.includes(` `)?s(t.first,t.last):s(e,o.last)}}),(0,R.jsx)(dL,{"aria-label":`${e.label}, last name`,flex:1,value:o.last??``,placeholder:`Last name`,onChangeText:e=>s(o.first,e)})]})})}var D8={street1:`Address 1`,street2:`Address 2`,city:`City`,state:`State`,postcode:`Post code`,country:`Country`};function ame({field:e,value:t,onChange:n,onSubmit:r,onCancel:i,autoFocus:a}){let o=(e.metadata??{}).defaultCountry,s=U6(t),c=(0,b.useMemo)(()=>m8().map(e=>({value:e.value,label:e.label})),[]),l=(e,t)=>{let r={...s,[e]:t??void 0};t||delete r[e],n(Object.keys(r).length?r:null)};return(0,R.jsx)(_8,{onSubmit:r,onCancel:i,children:(0,R.jsxs)(B,{gap:`$1`,width:344,maxW:`100%`,children:[[`street1`,`street2`].map((e,t)=>(0,R.jsx)(dL,{"aria-label":D8[e],placeholder:D8[e],value:s[e]??``,autoFocus:a&&t===0,onChangeText:t=>l(e,t)},e)),(0,R.jsxs)(V,{gap:`$1`,children:[(0,R.jsx)(dL,{"aria-label":D8.city,placeholder:D8.city,flex:1,value:s.city??``,onChangeText:e=>l(`city`,e)}),(0,R.jsx)(dL,{"aria-label":D8.state,placeholder:D8.state,flex:1,value:s.state??``,onChangeText:e=>l(`state`,e)})]}),(0,R.jsxs)(V,{gap:`$1`,children:[(0,R.jsx)(dL,{"aria-label":D8.postcode,placeholder:D8.postcode,flex:1,value:s.postcode??``,onChangeText:e=>l(`postcode`,e)}),(0,R.jsx)(B,{flex:1,minW:0,children:(0,R.jsx)(lue,{"aria-label":D8.country,countries:c,value:(s.country&&/^[A-Za-z]{2}$/.test(s.country)?s.country.toUpperCase():null)??o?.toUpperCase()??null,onValueChange:e=>l(`country`,e)})})]})]})})}function ome({value:e,onChange:t}){let n=R6(e),r=e=>typeof e==`string`?e:I6(e?.label??e?.name??`file`);return(0,R.jsxs)(B,{gap:`$2`,children:[typeof document<`u`?(0,R.jsx)(sF,{size:`sm`,variant:`outline`,startIcon:(0,R.jsx)(zM,{}),onPress:()=>{if(typeof document>`u`)return;let e=document.createElement(`input`);e.type=`file`,e.multiple=!0,e.onchange=()=>t(e.files?[...n,...Array.from(e.files)]:n),e.click()},self:`flex-start`,children:`Choose files`}):(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:`File upload is available on the web.`}),n.length>0?(0,R.jsx)(V,{gap:`$1`,flexWrap:`wrap`,children:n.map((e,i)=>(0,R.jsxs)(V,{items:`center`,gap:`$1`,height:24,pl:`$2`,pr:`$1`,rounded:`$xs`,bg:`$hover`,children:[(0,R.jsx)(U,{fontSize:`$2`,color:`$ink`,numberOfLines:1,maxW:160,children:r(e)}),(0,R.jsx)(sF,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${r(e)}`,onPress:()=>t(n.filter((e,t)=>t!==i)),children:(0,R.jsx)(HM,{})})]},`${r(e)}-${i}`))}):null]})}function sme(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function cme({field:e,value:t,onChange:n,onCancel:r}){let[i,a]=(0,b.useState)(()=>t==null?``:typeof t==`string`?t:sme(t));return(0,R.jsx)(B,{gap:`$1`,width:400,maxW:`100%`,onKeyDown:e=>e.key===`Escape`&&r?.(),children:(0,R.jsx)(Mle,{label:e.label,language:`json`,value:i,minHeight:120,maxHeight:300,onChange:e=>{a(e);let t=M0(e);t.kind===`empty`?n(null):t.kind===`json`&&n(t.value)}})})}var O8=!1;function k8(){O8||(O8=!0,N6(`text`,{Display:_pe,Input:Gpe}),N6(`longText`,{Display:vpe,Input:y8}),N6(`richText`,{Display:ype,Input:y8}),N6(`number`,{Display:s8,Input:Ype}),N6(`percent`,{Display:Tpe,Input:Xpe}),N6(`currency`,{Display:Epe,Input:Zpe}),N6(`boolean`,{Display:Ope,Input:$pe}),N6(`select`,{Display:kpe,Input:eme}),N6(`multiSelect`,{Display:Ape,Input:tme}),N6(`date`,{Display:Mpe,Input:E8}),N6(`dateTime`,{Display:Npe,Input:E8}),N6(`email`,{Display:bpe,Input:Kpe}),N6(`url`,{Display:xpe,Input:qpe}),N6(`phone`,{Display:Cpe,Input:Jpe}),N6(`rating`,{Display:Dpe,Input:Qpe}),N6(`links`,{Display:Spe,Input:rme}),N6(`relation`,{Display:Fpe,Input:nme}),N6(`json`,{Display:u8,Input:cme}),N6(`files`,{Display:Vpe,Input:ome}),N6(`uuid`,{Display:Bpe}),N6(`fullName`,{Display:Rpe,Input:ime}),N6(`address`,{Display:zpe,Input:ame}),N6(`position`,{Display:s8}),N6(`actor`,{Display:Lpe}))}k8();function A8(e){let t=P6(e.field.type)?.Display??Hpe;return(0,R.jsx)(t,{...e})}function j8(e){let t=P6(e.field.type)?.Input;return t?(0,R.jsx)(t,{...e}):null}function M8(e){return!!P6(e)?.Input}function N8({trigger:e,children:t,open:n,onOpenChange:r,placement:i=`bottom-start`,width:a=240,maxHeight:o=320,header:s}){return(0,R.jsxs)(gL,{placement:i,open:n,onOpenChange:r,allowFlip:!0,children:[(0,R.jsx)(_L,{asChild:!0,children:e}),(0,R.jsxs)(vL,{size:`sm`,p:0,gap:0,width:a,overflow:`hidden`,children:[s?(0,R.jsx)(B,{p:`$1`,borderBottomWidth:1,borderColor:`$borderColor`,children:s}):null,(0,R.jsx)(cD,{style:{maxHeight:o},children:(0,R.jsx)(B,{p:`$1`,gap:2,children:t})})]})]})}function P8({children:e,onPress:t,active:n,icon:r,trailing:i,tone:a=`default`}){return(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,onPress:t,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault?.(),t?.())},cursor:`pointer`,items:`center`,gap:`$2`,minH:32,px:`$2`,rounded:`$xs`,bg:n?`$hover`:`transparent`,hoverStyle:{bg:a===`danger`?`var(--state-error-bg)`:`$hover`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:[r?(0,R.jsx)(V,{items:`center`,justify:`center`,shrink:0,children:r}):null,(0,R.jsx)(B,{flex:1,minW:0,children:typeof e==`string`?(0,R.jsx)(U,{fontSize:`$2`,color:a===`danger`?`$bad`:`$aside`,numberOfLines:1,children:e}):e}),i??null]})}function F8({checked:e,indeterminate:t,onChange:n,size:r=16,label:i}){return(0,R.jsx)(LF,{size:r>16?`md`:`sm`,variant:`solid`,hoverable:!0,checked:t?`indeterminate`:!!e,onCheckedChange:()=>n?.(t?!0:!e),"aria-label":i??(t?`Select all`:`Select`)})}var I8=e=>e==null?``:String(e),L8=e=>{if(e==null||e===``)return null;if(typeof e==`object`&&!Array.isArray(e)&&`amount`in e)return L8(e.amount);let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:null},R8=e=>Array.isArray(e)?e:e==null?[]:[e],lme=864e5,ume=e=>typeof e==`string`&&/^\d{4}-\d{2}-\d{2}$/.test(e.trim()),z8=e=>{if(e==null||e===``)return null;let t=(e instanceof Date?e:new Date(e)).getTime();return Number.isNaN(t)?null:t},B8=(e,t)=>(e?.metadata?.options)?.find(e=>e.value===t)?.label??t;function dme(e,t){let n=e?.metadata?.labelField??`name`;if(typeof t==`string`)return t;if(t&&typeof t==`object`){let e=t;return I8(e[n]??e.label??e.name??e.id)}return``}function V8(e,t){switch(e?.type){case`number`:case`percent`:case`rating`:case`position`:return L8(t);case`currency`:{let e=t??{};return L8(typeof e==`object`&&e?e.amount:t)}case`boolean`:return+(t===!0||t===`true`||t===1);case`date`:case`dateTime`:return z8(t);case`select`:return t==null||t===``?null:B8(e,I8(t)).toLowerCase();case`multiSelect`:return R8(t).map(t=>B8(e,I8(t))).join(`, `).toLowerCase()||null;case`relation`:return dme(e,t).toLowerCase()||null;case`links`:return R8(t).map(e=>typeof e==`string`?e:e?.url??``).join(`, `).toLowerCase()||null;case`fullName`:return V6(t).toLowerCase()||null;case`address`:return W6(t).toLowerCase()||null;case`phone`:return X6(Y6(t)).toLowerCase()||null;case`email`:return J6(t).join(`, `).toLowerCase()||null;case`actor`:return Z6(t)?.name.toLowerCase()||null;case`richText`:return Q6(t).toLowerCase()||null;default:{let e=I8(t);return e===``?null:e.toLowerCase()}}}var H8=(e,t)=>e.find(e=>e.name===t);function fme(e,t){return typeof e==`number`&&typeof t==`number`?e-t:String(e).localeCompare(String(t))}function pme(e,t,n){return t.length===0?e.slice():e.map((e,t)=>[e,t]).sort(([e,r],[i,a])=>{for(let r of t){let t=H8(n,r.field),a=V8(t,e[r.field]),o=V8(t,i[r.field]);if(a===null&&o===null)continue;if(a===null)return 1;if(o===null)return-1;let s=fme(a,o);if(s!==0)return r.dir===`asc`?s:-s}return r-a}).map(([e])=>e)}function mme(e,t){let n=e.length===1&&e[0].field===t?e[0]:void 0;return n?n.dir===`asc`?[{field:t,dir:`desc`}]:[]:[{field:t,dir:`asc`}]}function hme(e,t){return e.find(e=>e.field===t)?.dir}function U8(e){let t=Array.isArray(e)?e:[],n=e=>e==null||e===``?void 0:e;return[n(t[0]),n(t[1])]}function W8(e){return e.op===`isEmpty`||e.op===`isNotEmpty`?!0:e.op===`between`?U8(e.value).some(e=>e!==void 0):e.op===`isAnyOf`?Array.isArray(e.value)&&e.value.length>0:e.value!=null&&e.value!==``}var G8={contains:`contains`,notContains:`does not contain`,is:`is`,isNot:`is not`,gt:`is greater than`,gte:`is at least`,lt:`is less than`,lte:`is at most`,isEmpty:`is empty`,isNotEmpty:`is not empty`,isAnyOf:`is any of`,between:`is between`},gme=[`contains`,`notContains`,`is`,`isNot`,`isEmpty`,`isNotEmpty`],_me=[`is`,`isNot`,`between`,`gt`,`gte`,`lt`,`lte`,`isEmpty`,`isNotEmpty`],vme=[`is`,`isNot`,`isAnyOf`,`isEmpty`,`isNotEmpty`],yme=[`is`];function K8(e){switch(e){case`number`:case`percent`:case`currency`:case`rating`:case`date`:case`dateTime`:return _me;case`select`:case`multiSelect`:case`relation`:return vme;case`boolean`:return yme;default:return gme}}var q8=(e,t)=>t==null||t===``?!0:Array.isArray(t)?t.length===0:e?.type===`currency`&&L8(t?.amount)==null,bme=e=>e===`number`||e===`percent`||e===`currency`||e===`rating`||e===`date`||e===`dateTime`;function xme(e,t){if(e?.type===`multiSelect`)return R8(t).map(I8).filter(e=>e!==``);if(e?.type===`relation`){let e=Sme(t);return e?[e]:[]}let n=I8(t);return n===``?[]:[n]}var Sme=e=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e;return I8(t.id??t.value??``)}return``};function Cme(e,t,n){if(n.op===`isEmpty`)return q8(e,t);if(n.op===`isNotEmpty`)return!q8(e,t);let r=e?.type;if(r===`boolean`){let e=t===!0||t===`true`||t===1,r=n.value===!0||n.value===`true`||n.value===1;return n.op===`isNot`?e!==r:e===r}if(r===`select`||r===`multiSelect`||r===`relation`){let r=new Set(xme(e,t));if(n.op===`isAnyOf`){let e=new Set((Array.isArray(n.value)?n.value:[]).map(I8));return e.size===0||[...r].some(t=>e.has(t))}let i=I8(n.value);return n.op===`is`?r.has(i):n.op!==`isNot`||!r.has(i)}if(bme(r)){let i=V8(e,t),a=typeof i==`number`?i:null,o=r===`date`||r===`dateTime`,s=e=>o?z8(e):L8(e);if(n.op===`between`){let[e,t]=U8(n.value),r=e===void 0?null:s(e),i=t===void 0?null:s(t);if(a==null)return!1;let c=i!=null&&o&&ume(t)?i+lme-1:i;return(r==null||a>=r)&&(c==null||a<=c)}let c=s(n.value);if(a==null||c==null)return n.op===`isNot`;switch(n.op){case`is`:return a===c;case`isNot`:return a!==c;case`gt`:return a>c;case`gte`:return a>=c;case`lt`:return a<c;case`lte`:return a<=c;default:return!0}}let i=I8(V8(e,t)),a=I8(n.value).toLowerCase();switch(n.op){case`contains`:return i.includes(a);case`notContains`:return!i.includes(a);case`is`:return i===a;case`isNot`:return i!==a;default:return!0}}function wme(e,t,n,r=`and`){let i=t.filter(W8);if(i.length===0)return e.slice();let a=e=>t=>Cme(H8(n,t.field),e[t.field],t);return e.filter(e=>r===`or`?i.some(a(e)):i.every(a(e)))}function Tme(e,t,n){let r=t.trim().toLowerCase();return r?e.filter(e=>n.some(t=>{let n=V8(t,e[t.name]);return n!=null&&String(n).toLowerCase().includes(r)})):e.slice()}function Eme(e,t,n){let r=e.length,i=Math.max(1,Math.ceil(r/n)),a=Math.min(Math.max(1,t),i),o=(a-1)*n,s=e.slice(o,o+n);return{items:s,page:a,pageCount:i,total:r,from:r===0?0:o+1,to:o+s.length}}function Dme(e,t,n){let r=e.filter(e=>!n?.has(e.name));if(!t||t.length===0)return r;let i=new Map(r.map(e=>[e.name,e])),a=[];for(let e of t){let t=i.get(e);t&&(a.push(t),i.delete(e))}for(let e of r)i.has(e.name)&&a.push(e);return a}var Ome=new Set([`boolean`,`select`,`multiSelect`,`date`,`dateTime`,`relation`,`rating`,`files`]),J8=80,kme={regular:{row:44,pad:12,select:44},compact:{row:32,pad:8,select:28}};function Ame(e){let{fields:t,records:n,getRowKey:r,loading:i,empty:a=`No records yet.`,sorts:o=[],onSortChange:s,onOpen:c,selectable:l,onSelectionChange:u,bulkActions:d,editable:f,onEditCommit:p,fieldOptions:m,columnOrder:h,onColumnOrderChange:g,hiddenFields:_,pageSize:v=25,remote:y}=e,x=kme[hP()],S=e.rowHeight??x.row,C=x.select,w=(0,b.useMemo)(()=>new Set(_??[]),[_]),[T,E]=(0,b.useState)(h);(0,b.useEffect)(()=>{h&&E(h)},[h]);let D=(0,b.useMemo)(()=>Dme(t,T,w),[t,T,w]),[O,k]=(0,b.useState)({}),[A,j]=(0,b.useState)(new Set),[M,ee]=(0,b.useState)(null),[te,ne]=(0,b.useState)(void 0),[N,P]=(0,b.useState)(null),[re,ie]=(0,b.useState)(1),ae=(0,b.useCallback)((e,t)=>r?r(e,t):e.id==null?String(t):String(e.id),[r]),oe=(0,b.useMemo)(()=>{if(y){let e=v>0?v:Math.max(1,n.length),t=y.total===0||n.length===0?0:(y.page-1)*e+1;return{items:n,page:y.page,pageCount:Math.max(1,Math.ceil(y.total/e)),total:y.total,from:t,to:t===0?0:t+n.length-1}}return v>0?Eme(n,re,v):{items:n,page:1,pageCount:1,total:n.length,from:+!!n.length,to:n.length}},[n,re,v,y]);(0,b.useEffect)(()=>{!y&&re>oe.pageCount&&ie(oe.pageCount)},[y,re,oe.pageCount]);let se=e=>{let t=Math.min(Math.max(1,e),oe.pageCount);y?y.onPage(t):ie(t)},ce=(0,b.useCallback)(e=>{j(e),u?.([...e])},[u]),le=oe.items.map((e,t)=>ae(e,t)),ue=le.length>0&&le.every(e=>A.has(e)),de=le.some(e=>A.has(e)),fe=()=>{let e=new Set(A);ue?le.forEach(t=>e.delete(t)):le.forEach(t=>e.add(t)),ce(e)},pe=e=>{let t=new Set(A);t.has(e)?t.delete(e):t.add(e),ce(t)},me=e=>s?.(mme(o,e)),he=(0,b.useRef)([]),[ge,F]=(0,b.useState)(null),_e=(e,t)=>n=>{let r=n.clientX??n.nativeEvent?.clientX??0,i=t?.getBoundingClientRect().width??J8,a=t=>k(n=>({...n,[e]:Math.max(J8,i+(t.clientX-r))})),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},I=e=>t=>{if(!g&&h)return;let n=he.current.map(e=>e?.getBoundingClientRect()??null),r=t.clientX??t.nativeEvent?.clientX??0;F({from:e,x:r,target:e});let i=t=>{let r=n.length-1;for(let e=0;e<n.length;e++){let i=n[e];if(i&&t.clientX<i.left+i.width/2){r=e;break}}F({from:e,x:t.clientX,target:r})},a=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),F(e=>{if(e&&e.target!==e.from){let t=D.map(e=>e.name),[n]=t.splice(e.from,1);t.splice(e.target,0,n),E(t),g?.(t)}return null})};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},ve=(e,t,n)=>{f&&!t.readOnly&&M8(t.type)&&(ee({key:e,field:t.name}),ne(n))},ye=()=>{ee(null),ne(void 0)},be=(0,b.useCallback)(async(e,t,n)=>{let r=`${M?.key}:${t.name}`;if(ee(null),ne(void 0),p)try{P(r),await p(e,t,n)}finally{P(null)}},[M,p]),xe=!f&&!!c,L=(l?C:0)+D.reduce((e,t)=>e+(O[t.name]??t.width??160),0),Se=e=>{let t=O[e.name]??e.width;return t?{width:t}:{flex:1,minW:140}},Ce={borderBottomWidth:1,borderColor:`$borderColor`};return(0,R.jsxs)(B,{"data-slot":`data-table`,rounded:`$3`,overflow:`hidden`,borderWidth:1,borderColor:`$borderColor`,bg:`$background`,children:[l&&A.size>0?(0,R.jsxs)(V,{items:`center`,justify:`space-between`,px:x.pad,py:`$2`,bg:`$panel`,...Ce,children:[(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`600`,color:`$ink`,children:`${A.size} selected`}),(0,R.jsxs)(V,{items:`center`,gap:`$2`,children:[d?.([...A]),(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,emphasis:`subtle`,onPress:()=>ce(new Set),children:`Clear`})]})]}):null,(0,R.jsxs)(B,{role:`table`,"aria-rowcount":oe.total+1,style:{minWidth:L},children:[(0,R.jsxs)(V,{bg:`$panel`,minH:S,...Ce,role:`row`,children:[l?(0,R.jsx)(V,{width:C,items:`center`,justify:`center`,shrink:0,role:`columnheader`,children:(0,R.jsx)(F8,{checked:ue,indeterminate:!ue&&de,onChange:fe,label:`Select all rows`})}):null,D.map((e,t)=>{let n=hme(o,e.name),r=ge&&ge.target===t&&ge.from!==t;return(0,R.jsxs)(V,{...Se(e),role:`columnheader`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:void 0,items:`center`,gap:`$1`,px:x.pad,borderLeftWidth:r?2:0,borderLeftColor:`var(--primary)`,opacity:ge?.from===t?.5:1,ref:e=>{he.current[t]=e},style:{position:`relative`},children:[(0,R.jsxs)(V,{items:`center`,gap:`$1`,flex:1,minW:0,cursor:`pointer`,onPress:()=>me(e.name),onPointerDown:I(t),children:[(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,numberOfLines:1,color:`$aside`,children:e.label}),n===`asc`?(0,R.jsx)(tM,{size:12,color:`$hint`}):n===`desc`?(0,R.jsx)($j,{size:12,color:`$hint`}):s?(0,R.jsx)(Vae,{size:12,color:`$hush`}):null]}),(0,R.jsx)(B,{width:8,height:`100%`,cursor:`col-resize`,onPointerDown:_e(e.name,he.current[t]),style:{position:`absolute`,right:-4,top:0,zIndex:2}})]},e.name)})]}),i?(0,R.jsx)(V,{role:`row`,children:(0,R.jsxs)(V,{flex:1,px:`$4`,py:`$6`,items:`center`,justify:`center`,gap:`$2`,role:`cell`,"aria-live":`polite`,children:[(0,R.jsx)(vj,{size:`small`,"aria-hidden":!0}),(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:`Loading…`})]})}):oe.items.length===0?(0,R.jsx)(V,{role:`row`,children:(0,R.jsx)(B,{flex:1,px:`$4`,py:`$7`,items:`center`,gap:`$1`,role:`cell`,children:typeof a==`string`?(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:a}):a})}):oe.items.map((e,t)=>{let n=ae(e,t),r=A.has(n);return(0,R.jsxs)(V,{group:!0,role:`row`,"aria-selected":l?r:void 0,items:`stretch`,cursor:xe?`pointer`:void 0,onPress:xe?()=>c?.(e):void 0,bg:r?`$hover`:`transparent`,hoverStyle:{bg:`$hover`},minH:S,...Ce,children:[l?(0,R.jsx)(V,{width:C,items:`center`,justify:`center`,shrink:0,role:`cell`,children:(0,R.jsx)(F8,{checked:r,onChange:()=>pe(n),label:`Select row ${oe.from+t}`})}):null,D.map((t,r)=>{let i=f&&M?.key===n&&M.field===t.name,a=f&&!t.readOnly&&M8(t.type),o=`${n}:${t.name}`,s=m?.(t)?{...t,metadata:{...t.metadata,options:m(t)}}:t;return(0,R.jsxs)(V,{...Se(t),role:`cell`,items:`center`,px:x.pad,minW:0,style:{position:`relative`},children:[i?(0,R.jsx)(B,{flex:1,minW:0,py:`$1`,onPress:e=>e.stopPropagation?.(),children:(0,R.jsx)(j8,{field:s,value:te,autoFocus:!0,onChange:n=>Ome.has(t.type)?void be(e,t,n):ne(n),onSubmit:()=>void be(e,t,te),onCancel:ye})}):(0,R.jsxs)(V,{flex:1,minW:0,items:`center`,gap:`$1`,minH:S-8,cursor:a?`text`:void 0,onPress:a?()=>ve(n,t,e[t.name]):void 0,hoverStyle:a?{bg:`$raised`}:void 0,rounded:`$xs`,px:a?`$1`:0,mx:a?-4:0,overflow:`hidden`,children:[(0,R.jsx)(A8,{field:t,value:e[t.name]}),N===o?(0,R.jsx)(vj,{size:`small`,"aria-hidden":!0}):null]}),r===0&&c&&f&&!i?(0,R.jsx)(V,{position:`absolute`,r:x.pad/2,opacity:0,"$group-hover":{opacity:1},focusWithinStyle:{opacity:1},children:(0,R.jsx)(yP,{framed:!0,size:`icon-2xs`,variant:`ghost`,children:(0,R.jsx)(sF,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Open record`,onPress:()=>c(e),children:(0,R.jsx)(soe,{})})})}):null]},t.name)})]},n)})]}),!i&&v>0&&oe.total>0?(0,R.jsxs)(V,{items:`center`,justify:`space-between`,px:x.pad,py:`$1`,bg:`$panel`,borderTopWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(U,{fontSize:`$1`,color:`$hint`,children:`${oe.from.toLocaleString()}–${oe.to.toLocaleString()} of ${oe.total.toLocaleString()}`}),(0,R.jsxs)(V,{items:`center`,gap:`$1`,children:[(0,R.jsx)(sF,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Previous page`,disabled:oe.page<=1,onPress:()=>se(oe.page-1),children:(0,R.jsx)(uM,{})}),(0,R.jsx)(U,{fontSize:`$1`,px:`$1`,color:`$hint`,children:`${oe.page.toLocaleString()} / ${oe.pageCount.toLocaleString()}`}),(0,R.jsx)(sF,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Next page`,disabled:oe.page>=oe.pageCount,onPress:()=>se(oe.page+1),children:(0,R.jsx)(dM,{})})]})]}):null]})}var jme=`red.ruby.crimson.tomato.orange.amber.yellow.lime.grass.green.jade.mint.teal.cyan.sky.blue.iris.violet.purple.plum.pink.bronze.gold.brown.gray.mauve.olive.sage.sand.slate`.split(`.`),Mme=e=>({bg:`var(--data-${e}-3)`,fg:`var(--data-${e}-11)`,border:`var(--data-${e}-6)`});Object.fromEntries(jme.map(e=>[e,Mme(e)]));var Y8={text:`#f4f4f5`,textMuted:`#a1a1aa`,textFaint:`#71717a`,surface:`#09090b`,surfaceRaised:`#0a0a0a`,border:`#27272a`,hover:`#18181b`,accent:`#60a5fa`,danger:`#fca5a5`},Nme=z(B,{name:`Card`,backgroundColor:`$background`,position:`relative`,borderRadius:`$true`}),X8={header:32,check:24,value:156,icon:16,rows:2};function Z8(e){return hP()===`compact`?(0,R.jsx)(Fme,{...e}):(0,R.jsx)(Ime,{...e})}var Q8=(e,t,n)=>{let r=e??t[0]?.name,i=r==null?void 0:n[r];return{name:r,text:i==null||i===``?`Untitled`:String(i)}},Pme=e=>{let t=e?.target;return!!(t instanceof Element&&t.closest(`button, a, [role="button"], [role="checkbox"], [role="link"]`))};function Fme({titleField:e,fields:t,record:n,onPress:r,selected:i=!1,onSelectedChange:a,active:o=!1,fieldIcons:s,imageField:c,drag:l}){let[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(!1),m=Q8(e,t,n),h=t.filter(e=>e.name!==m.name&&e.name!==c),g=n.id==null?m.text:String(n.id),_=c?n[c]:void 0,v=r?()=>r(n):void 0,y=a&&(u||i);return(0,R.jsxs)(B,{"data-slot":`record-card`,"data-selected":i?``:void 0,"data-active":o?``:void 0,bg:i||o||f?`$hover`:`$panel`,borderWidth:1,borderColor:o?`$rim`:`$borderColor`,hoverStyle:{borderColor:`$rim`},rounded:`$xs`,overflow:`hidden`,cursor:v?`pointer`:void 0,opacity:l===`source`?.3:1,scale:l===`preview`?1.02:1,onHoverIn:()=>d(!0),onHoverOut:()=>d(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),onPress:v?e=>Pme(e)?void 0:v():void 0,children:[(0,R.jsxs)(V,{"data-slot":`record-card-header`,minH:X8.header,items:`center`,pt:`$2`,pr:`$2`,pb:`$1`,pl:`$2`,children:[(0,R.jsx)(V,{flex:1,minW:0,children:(0,R.jsx)(G0,{size:`sm`,weight:`medium`,label:m.text,startElement:(0,R.jsx)(xF,{size:`sm`,shape:`rounded`,name:m.text,colorSeed:g,src:_??null}),...v?{onPress:v}:null})}),a?(0,R.jsx)(V,{"data-slot":`record-card-check`,height:20,width:y?X8.check:0,$touchable:{width:X8.check},overflow:`hidden`,justify:`flex-end`,items:`center`,shrink:0,style:{transition:`width 160ms var(--ease-out, ease)`},children:(0,R.jsx)(LF,{variant:`outline`,checked:i,onCheckedChange:e=>a(e===!0),"aria-label":`Select ${m.text}`})}):null]}),h.length?(0,R.jsx)(B,{"data-slot":`record-card-body`,gap:X8.rows,pt:0,pr:`$2`,pb:`$2`,pl:10,children:h.map(e=>(0,R.jsxs)(V,{items:`center`,gap:`$2`,minH:24,children:[s?.[e.name]?(0,R.jsx)(V,{width:X8.icon,height:X8.icon,items:`center`,justify:`center`,shrink:0,children:s[e.name]}):(0,R.jsx)(U,{fontSize:`$1`,color:`$hint`,numberOfLines:1,shrink:0,children:e.label}),(0,R.jsx)(B,{flex:1,minW:0,maxW:X8.value,children:(0,R.jsx)(A8,{field:e,value:n[e.name]})})]},e.name))}):null]})}function Ime({titleField:e,fields:t,record:n,onPress:r}){let i=Q8(e,t,n),a=t.filter(e=>e.name!==i.name);return(0,R.jsxs)(Nme,{p:12,gap:8,borderWidth:1,rounded:8,cursor:r?`pointer`:void 0,hoverStyle:r?{bg:Y8.hover}:void 0,onPress:r?()=>r(n):void 0,style:{backgroundColor:Y8.surface,borderColor:Y8.border},children:[(0,R.jsx)(U,{fontSize:14,fontWeight:`700`,numberOfLines:1,style:{color:Y8.text},children:i.text}),a.map(e=>(0,R.jsxs)(V,{gap:8,items:`center`,children:[(0,R.jsx)(U,{fontSize:11,numberOfLines:1,width:84,style:{color:Y8.textFaint},children:e.label}),(0,R.jsx)(B,{flex:1,children:(0,R.jsx)(A8,{field:e,value:n[e.name]})})]},e.name))]})}var $8=e=>e==null?``:String(e),Lme=new Set([`select`,`boolean`,`relation`]);function e5(e){return e.filter(e=>Lme.has(e.type))}function t5(e){let t=e.filter(e=>e.type===`select`);return t.length>0?t[0].name:e5(e)[0]?.name}function n5(e,t){if(e.type===`boolean`)return t==null||t===``?``:t===!0||t===`true`||t===1?`true`:`false`;if(e.type===`relation`){if(t&&typeof t==`object`){let e=t;return $8(e.id??e.value??``)}return $8(t)}return $8(t)}function Rme(e){if(e.type===`boolean`){let t=e.metadata??{};return[{key:`true`,label:t.trueLabel??`Yes`,color:`green`},{key:`false`,label:t.falseLabel??`No`,color:`gray`}]}return(e.metadata?.options??[]).map(e=>({key:e.value,label:e.label,color:e.color}))}function zme(e,t,n={}){let r=n.includeEmpty??!0,i=Rme(t),a=[],o=new Map,s=new Map,c=(e,t,n)=>{s.has(e)||(s.set(e,[]),a.push(e),o.set(e,{label:t,color:n}))};r&&c(``,n.emptyLabel??`No ${t.label.toLowerCase()}`);for(let e of i)c(e.key,e.label,e.color);for(let i of e){let e=n5(t,i[t.name]);(e!==``||r)&&(s.has(e)||c(e,e||(n.emptyLabel??`No ${t.label.toLowerCase()}`)),s.get(e).push(i))}return a.filter(e=>!(e===``&&(s.get(e)?.length??0)===0&&i.length>0)).map(e=>({key:e,...o.get(e),records:s.get(e)??[]}))}function Bme(e,t){return e.type===`boolean`?{[e.name]:t===`true`}:{[e.name]:t===``?null:t}}var Vme=300,Hme=200;function Ume(e){let{fields:t,records:n,groupField:r,titleField:i,cardFields:a,onOpen:o,onRecordChange:s,onCreate:c,getRowKey:l}=e,{selectedIds:u,onSelectedChange:d,activeId:f,fieldIcons:p}=e,m=e=>l?l(e):String(e.id??``),h=hP()===`compact`,g=h?Hme:Vme,_=(e,t)=>h?{selected:u?.has(m(e))??!1,onSelectedChange:d?t=>d(e,t):void 0,active:f!=null&&f===m(e),fieldIcons:p,drag:t}:null,v=t.find(e=>e.name===r),[y,x]=(0,b.useState)({});(0,b.useEffect)(()=>{x({})},[n]);let S=(0,b.useRef)(null),C=(0,b.useRef)([]),[w,T]=(0,b.useState)(null),E=(0,b.useMemo)(()=>v?n.map(e=>y[m(e)]==null?e:{...e,[v.name]:y[m(e)]===``?null:y[m(e)]}):n,[n,y,v]),D=(0,b.useMemo)(()=>v?zme(E,v):[],[E,v]);if(!v)return h?(0,R.jsx)(B,{p:`$5`,items:`center`,borderWidth:1,rounded:`$xs`,borderColor:`$borderColor`,bg:`$panel`,children:(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:`Pick a select or status field to group the board by.`})}):(0,R.jsx)(B,{p:24,items:`center`,borderWidth:1,rounded:10,style:{borderColor:Y8.border,backgroundColor:Y8.surface},children:(0,R.jsx)(U,{style:{color:Y8.textFaint},children:`Pick a select or status field to group the board by.`})});let O=e=>t=>{if(!s)return;let n=m(e),r=n5(v,e[v.name]),i=C.current.map(e=>e?.getBoundingClientRect()??null),a=t.clientX??t.nativeEvent?.clientX??0,o=t.clientY??t.nativeEvent?.clientY??0;T({id:n,from:r,x:a,y:o,target:r});let c=e=>{let t=r;for(let n=0;n<i.length;n++){let a=i[n];if(a&&e.clientX>=a.left&&e.clientX<=a.right){t=D[n]?.key??r;break}}T({id:n,from:r,x:e.clientX,y:e.clientY,target:t})},l=()=>{window.removeEventListener(`pointermove`,c),window.removeEventListener(`pointerup`,l),T(t=>(t&&t.target!==t.from&&(x(e=>({...e,[t.id]:t.target})),Promise.resolve(s(e,Bme(v,t.target))).catch(()=>x(e=>{let n={...e};return delete n[t.id],n}))),null))};window.addEventListener(`pointermove`,c),window.addEventListener(`pointerup`,l)},k=w?E.find(e=>m(e)===w.id):void 0,A=()=>S.current?.getBoundingClientRect();return(0,R.jsxs)(B,{ref:e=>{S.current=e},style:{position:`relative`},children:[(0,R.jsx)(cD,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,R.jsx)(V,{gap:h?8:12,py:2,items:`flex-start`,children:D.map((e,n)=>{let r=w&&w.target===e.key&&w.from!==e.key,l=h?{gap:8,p:4,rounded:`$xs`,bg:r?`$hover`:`transparent`}:{gap:8,p:8,rounded:12,style:{backgroundColor:Y8.surfaceRaised,borderWidth:1,borderColor:r?Y8.accent:Y8.border}};return(0,R.jsxs)(B,{"data-slot":`board-column`,width:g,ref:e=>{C.current[n]=e},...l,children:[h?(0,R.jsxs)(V,{items:`center`,justify:`space-between`,minH:24,px:4,children:[(0,R.jsxs)(V,{items:`center`,gap:`$2`,minW:0,children:[e.key===``?(0,R.jsx)(U0,{variant:`outline`,borderStyle:`dashed`,color:`transparent`,children:e.label}):(0,R.jsx)(U0,{color:e.color??`gray`,children:e.label}),(0,R.jsx)(U,{fontSize:`$1`,color:`$hint`,children:e.records.length})]}),c?(0,R.jsx)(sF,{size:`icon-xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Add to ${e.label}`,onPress:()=>c(e.key),children:(0,R.jsx)(AM,{})}):null]}):(0,R.jsxs)(V,{items:`center`,justify:`space-between`,px:4,py:2,children:[(0,R.jsxs)(V,{items:`center`,gap:8,children:[e.key===``?(0,R.jsx)(U,{fontSize:13,fontWeight:`700`,style:{color:Y8.textMuted},children:e.label}):(0,R.jsx)(r8,{label:e.label,color:e.color}),(0,R.jsx)(U,{fontSize:12,style:{color:Y8.textFaint},children:e.records.length})]}),c?(0,R.jsx)(B,{cursor:`pointer`,p:3,rounded:6,hoverStyle:{bg:Y8.hover},onPress:()=>c(e.key),children:(0,R.jsx)(AM,{size:14,color:Y8.textMuted})}):null]}),(0,R.jsxs)(B,{gap:8,style:{minHeight:40},children:[e.records.map(e=>{let n=w?.id===m(e);return(0,R.jsx)(B,{onPointerDown:O(e),style:{opacity:n&&!h?.35:1,cursor:s?`grab`:void 0},children:(0,R.jsx)(Z8,{titleField:i,fields:a??t.filter(e=>e.name!==v.name),record:e,onPress:o,..._(e,n?`source`:void 0)})},m(e))}),e.records.length===0?h?(0,R.jsx)(B,{items:`center`,justify:`center`,py:`$4`,rounded:`$xs`,borderWidth:1,borderStyle:`dashed`,borderColor:`$borderColor`,children:(0,R.jsx)(U,{fontSize:`$1`,color:`$hint`,children:`Drop here`})}):(0,R.jsx)(B,{items:`center`,justify:`center`,py:16,rounded:8,style:{borderWidth:1,borderColor:Y8.border,borderStyle:`dashed`},children:(0,R.jsx)(U,{fontSize:12,style:{color:Y8.textFaint},children:`Drop here`})}):null]})]},e.key||`∅`)})})}),w&&k?(0,R.jsx)(B,{width:g-(h?8:20),style:{position:`absolute`,left:w.x-(A()?.left??0)-(g-(h?8:20))/2,top:w.y-(A()?.top??0)-20,pointerEvents:`none`,zIndex:50,...h?null:{transform:[{rotate:`2deg`}],boxShadow:`0 12px 32px rgba(0,0,0,0.4)`}},...h?{className:`elevation-2`}:null,children:(0,R.jsx)(Z8,{titleField:i,fields:a??t.filter(e=>e.name!==v.name),record:k,..._(k,`preview`)})}):null]})}var Wme=new Set([`boolean`,`select`,`multiSelect`,`date`,`dateTime`,`relation`,`rating`,`files`]),Gme=({children:e})=>(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`500`,color:`$hint`,numberOfLines:1,children:e});function Kme({field:e,value:t,editable:n,onCommit:r,options:i}){let[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(t),l=n&&!e.readOnly&&M8(e.type)&&!!r,u=i?{...e,metadata:{...e.metadata,options:i}}:e,d=e=>{o(!1),r?.(e)};return(0,R.jsxs)(B,{gap:`$1`,py:`$2`,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(Gme,{children:e.label}),a?(0,R.jsx)(j8,{field:u,value:s,autoFocus:!0,onChange:t=>Wme.has(e.type)?d(t):c(t),onSubmit:()=>d(s),onCancel:()=>{c(t),o(!1)}}):(0,R.jsx)(V,{items:`center`,minH:24,minW:0,cursor:l?`text`:void 0,rounded:`$xs`,px:l?`$1`:0,mx:l?-4:0,hoverStyle:l?{bg:`$hover`}:void 0,...l?{role:`button`,tabIndex:0,"aria-label":`Edit ${e.label}`}:null,onKeyDown:l?e=>{e.key===`Enter`&&(e.preventDefault?.(),c(t),o(!0))}:void 0,onPress:l?()=>{c(t),o(!0)}:void 0,children:(0,R.jsx)(A8,{field:e,value:t})})]})}function qme({fields:e,record:t,title:n,editable:r,onEditCommit:i,fieldOptions:a,related:o}){return(0,R.jsxs)(B,{gap:2,children:[n?(0,R.jsx)(B,{pb:`$3`,mb:`$1`,borderBottomWidth:1,borderColor:`$borderColor`,children:(0,R.jsx)(U,{fontSize:`$7`,fontWeight:`600`,numberOfLines:2,color:`$ink`,children:n})}):null,e.map(e=>(0,R.jsx)(Kme,{field:e,value:t[e.name],editable:r,onCommit:i?t=>i(e,t):void 0,options:a?.(e)},e.name)),o?(0,R.jsx)(B,{pt:`$4`,gap:`$2`,children:o}):null]})}function Jme(e,t=`default`,n=e===`board`?`Board`:`All records`){return{id:t,name:n,kind:e,filters:[],sorts:[]}}function Yme(e,t,n){let r=e;return t.search&&t.search.trim()&&(r=Tme(r,t.search,n)),r=wme(r,t.filters,n,t.match),r=pme(r,t.sorts,n),r}function r5(e){let t=K8(e.type);return{field:e.name,op:t[0]??`contains`}}function i5(e,t){return{...e,filters:[...e.filters,t]}}function a5(e,t,n){return{...e,filters:e.filters.map((e,r)=>r===t?{...e,...n}:e)}}function o5(e,t){return{...e,filters:e.filters.filter((e,n)=>n!==t)}}function s5(e,t){return{...e,match:t}}var c5=e=>e===`or`?`and`:`or`;function l5(e,t){return{...e,sorts:t}}function u5(e,t){return{...e,search:t}}function d5(e,t){return{...e,kind:t}}function f5(e,t){return{...e,groupField:t}}function Xme(e,t){let n=new Set(e.hiddenFields??[]);return n.has(t)?n.delete(t):n.add(t),{...e,hiddenFields:[...n]}}var Zme=new Set([`text`,`longText`,`email`,`url`]),Qme=new Set([`contains`,`notContains`,`is`,`isNot`]);function $me(e,t,n){let r=e.type===`currency`||e.type===`percent`||e.type===`rating`,i=Qme.has(t.op)&&!Zme.has(e.type)&&e.type!==`select`&&e.type!==`multiSelect`&&e.type!==`relation`&&e.type!==`boolean`&&!r&&e.type!==`date`&&e.type!==`dateTime`&&e.type!==`number`,a=t.op===`isAnyOf`?{...e,type:`multiSelect`}:r?{...e,type:`number`}:i?{...e,type:`text`,metadata:void 0}:e;return n?{...a,metadata:{...a.metadata,options:n}}:a}function ehe(e,t){let n=t?.metadata?.options,r=e=>n?.find(t=>t.value===e)?.label??String(e);if(e.op===`between`){let[t,n]=U8(e.value);return t!==void 0&&n!==void 0?`${r(t)} to ${r(n)}`:t===void 0?n===void 0?``:`to ${r(n)}`:`from ${r(t)}`}return e.value==null||e.value===``?``:Array.isArray(e.value)?e.value.map(r).join(`, `):r(e.value)}var p5=e=>e.op!==`isEmpty`&&e.op!==`isNotEmpty`;function m5({field:e,rule:t,onChange:n,fieldOptions:r}){let i=r?.(e),a=(0,b.useMemo)(()=>$me(e,t,i),[e,t,i]);if(t.op!==`between`)return(0,R.jsx)(j8,{field:a,value:t.value,onChange:n});let[o,s]=U8(t.value);return(0,R.jsxs)(V,{items:`center`,gap:6,flex:1,children:[(0,R.jsx)(V,{flex:1,minW:90,"aria-label":`From`,children:(0,R.jsx)(j8,{field:a,value:o,onChange:e=>n([e,s])})}),(0,R.jsx)(U,{fontSize:12,style:{color:Y8.textFaint},children:`to`}),(0,R.jsx)(V,{flex:1,minW:90,"aria-label":`To`,children:(0,R.jsx)(j8,{field:a,value:s,onChange:e=>n([o,e])})})]})}var h5={top:39,details:32,chip:24,remove:20,name:130,menu:200,wide:240},g5=(e,t)=>e.find(e=>e.name===t),_5=(e,t)=>e.filter(e=>e.label.toLowerCase().includes(t.trim().toLowerCase()));function v5({open:e,icon:t,children:n,...r}){return(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,color:`$aside`,startIcon:t,bg:e?`$hover`:void 0,...r,children:n})}function the(e){let{fields:t,view:n,onView:r,extra:i,onCreate:a,createLabel:o=`New`,boardDisabled:s}=e,{savedViews:c,dirty:l=!1,onResetView:u,onSaveView:d,onSaveAsView:f}=e,[p,m]=(0,b.useState)(!1),h=n.sorts.length>0||n.filters.length>0||l&&(u||d);return(0,R.jsxs)(B,{"data-slot":`view-bar`,children:[(0,R.jsxs)(V,{"data-slot":`view-bar-top`,minH:h5.top+1,items:`center`,justify:`space-between`,gap:`$2`,ml:`$1`,pr:`$2`,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(nhe,{...e}),(0,R.jsxs)(V,{items:`center`,gap:`$0.5`,shrink:1,minW:0,children:[(0,R.jsx)(sL,{size:`xs`,start:(0,R.jsx)(jM,{size:14}),width:180,shrink:1,children:(0,R.jsx)(dL,{value:n.search??``,onChangeText:e=>r(u5(n,e)),placeholder:`Search…`,"aria-label":`Search records`})}),(0,R.jsx)(rhe,{fields:t,view:n,onView:r,open:p,onOpenChange:m,children:(0,R.jsx)(v5,{open:p,icon:(0,R.jsx)(xM,{}),children:`Filter`})}),(0,R.jsx)(ahe,{fields:t,view:n,onView:r}),(0,R.jsx)(ohe,{fields:t,view:n,onView:r,boardDisabled:s}),i,a?(0,R.jsx)(sF,{size:`xs`,variant:`primary`,startIcon:(0,R.jsx)(AM,{}),onPress:a,children:o}):null]})]}),h?(0,R.jsxs)(V,{"data-slot":`view-bar-details`,minH:h5.details,items:`center`,gap:`$2`,py:`$1`,px:`$2`,borderTopWidth:1,borderColor:`$borderColor`,flexWrap:`wrap`,children:[n.sorts.map(e=>(0,R.jsx)(she,{rule:e,fields:t,view:n,onView:r},`sort-${e.field}`)),n.sorts.length>0&&n.filters.length>0?(0,R.jsx)(B,{"data-slot":`view-bar-rule`,width:1,height:16,bg:`$raised`}):null,n.filters.map((t,i)=>(0,R.jsxs)(b.Fragment,{children:[i>0?(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,"aria-label":`Rules combine by ${n.match===`or`?`or`:`and`}; press for ${c5(n.match)}`,onPress:()=>r(s5(n,c5(n.match))),children:n.match===`or`?`or`:`and`}):null,(0,R.jsx)(che,{index:i,rule:t,...e})]},`filter-${i}`)),(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,startIcon:(0,R.jsx)(AM,{}),onPress:()=>m(!0),children:`Add filter`}),(0,R.jsx)(V,{flex:1}),l&&u?(0,R.jsx)(sF,{size:`xs`,variant:`ghost`,color:`$aside`,fontWeight:`400`,onPress:u,children:`Reset`}):null,l&&d?(0,R.jsxs)(yP,{size:`xs`,variant:`outline`,"aria-label":`Update view`,children:[(0,R.jsx)(sF,{onPress:d,children:`Update view`}),f?(0,R.jsxs)(yI,{children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(sF,{size:`icon-xs`,"aria-label":`More ways to save the view`,children:(0,R.jsx)(lM,{})})}),(0,R.jsx)(TI,{align:`end`,minW:h5.menu,children:(0,R.jsx)(kI,{onSelect:f,children:`Save as new view`})})]}):null]}):null]}):null]})}function nhe({view:e,onView:t,count:n,savedViews:r,boardDisabled:i}){let[a,o]=(0,b.useState)(!1),s=e.kind===`board`?yM:IM;return(0,R.jsxs)(yI,{open:a,onOpenChange:o,children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsxs)(sF,{size:`xs`,variant:`ghost`,color:`$aside`,pl:`$1`,startIcon:(0,R.jsx)(s,{size:16}),endIcon:(0,R.jsx)(lM,{size:14,color:`$hush`}),bg:a?`$hover`:void 0,"aria-label":`View: ${e.name}`,children:[(0,R.jsx)(H0,{text:e.name,maxW:h5.name,fontSize:`$2`,fontWeight:`500`,color:`$aside`}),n==null?null:(0,R.jsx)(U,{fontSize:`$2`,color:`$hint`,children:`· ${n}`})]})}),(0,R.jsxs)(TI,{minW:h5.menu,children:[r&&r.views.length?(0,R.jsx)(NI,{value:r.activeId??e.id,onValueChange:e=>{let n=r?.views.find(t=>t.id===e);n&&r&&(r.onSelect(n.id),t(n))},children:(0,R.jsx)(LI,{label:`Views`,children:r.views.map(e=>(0,R.jsx)(FI,{value:e.id,children:e.name},e.id))})}):null,i?null:(0,R.jsxs)(NI,{value:e.kind,onValueChange:n=>n===`table`||n===`board`?t(d5(e,n)):void 0,children:[(0,R.jsx)(KI,{variant:`band`,children:`Layout`}),(0,R.jsx)(FI,{value:`table`,children:`Table`}),(0,R.jsx)(FI,{value:`board`,children:`Board`})]})]})]})}function rhe({fields:e,view:t,onView:n,open:r,onOpenChange:i,children:a}){let[o,s]=(0,b.useState)(``),c=_5(e,o);return(0,R.jsxs)(yI,{open:r,onOpenChange:e=>{i(e),e||s(``)},children:[(0,R.jsx)(xI,{asChild:!0,children:a}),(0,R.jsxs)(TI,{minW:h5.menu,children:[(0,R.jsx)(II,{value:o,onValueChange:s,placeholder:`Search fields`}),(0,R.jsx)(LI,{scrollable:!0,children:c.map(e=>(0,R.jsx)(kI,{onSelect:()=>n(i5(t,r5(e))),children:e.label},e.name))}),c.length===0?(0,R.jsx)(WI,{children:`No field matches`}):null]})]})}var ihe=(e,t)=>{let n=e.find(e=>e.field===t);return n?n.dir===`asc`?e.map(e=>e.field===t?{...e,dir:`desc`}:e):e.filter(e=>e.field!==t):[...e,{field:t,dir:`asc`}]};function ahe({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(``),s=_5(e,a);return(0,R.jsxs)(yI,{open:r,onOpenChange:e=>{i(e),e||o(``)},children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(v5,{open:r,icon:(0,R.jsx)(Qj,{}),children:`Sort`})}),(0,R.jsxs)(TI,{minW:h5.menu,children:[(0,R.jsx)(II,{value:a,onValueChange:o,placeholder:`Search fields`}),(0,R.jsx)(LI,{scrollable:!0,children:s.map(e=>{let r=t.sorts.find(t=>t.field===e.name)?.dir;return(0,R.jsx)(kI,{onSelect:()=>n(l5(t,ihe(t.sorts,e.name))),children:(0,R.jsxs)(V,{flex:1,items:`center`,justify:`space-between`,gap:`$2`,children:[(0,R.jsx)(U,{fontSize:`$2`,color:`$aside`,numberOfLines:1,children:e.label}),r===`asc`?(0,R.jsx)(tM,{size:14,color:`$aside`}):r===`desc`?(0,R.jsx)($j,{size:14,color:`$aside`}):null]})},e.name)})}),s.length===0?(0,R.jsx)(WI,{children:`No field matches`}):null]})]})}function ohe({fields:e,view:t,onView:n,boardDisabled:r}){let[i,a]=(0,b.useState)(!1),o=new Set(t.hiddenFields??[]),s=e.filter(e=>!o.has(e.name)).map(e=>e.name),c=e5(e);return(0,R.jsxs)(yI,{open:i,onOpenChange:a,defaultPage:`options`,children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(v5,{open:i,icon:(0,R.jsx)(NM,{}),children:`Options`})}),(0,R.jsxs)(TI,{align:`end`,minW:h5.wide,children:[(0,R.jsxs)(RI,{id:`options`,children:[(0,R.jsx)(BI,{children:(0,R.jsx)(VI,{children:`View options`})}),(0,R.jsx)(kI,{page:`fields`,children:`Fields`}),t.kind===`board`&&c.length?(0,R.jsx)(kI,{page:`group`,children:`Group by`}):null,r?null:(0,R.jsxs)(NI,{value:t.kind,onValueChange:e=>e===`table`||e===`board`?n(d5(t,e)):void 0,children:[(0,R.jsx)(KI,{variant:`band`,children:`Layout`}),(0,R.jsx)(FI,{value:`table`,children:`Table`}),(0,R.jsx)(FI,{value:`board`,children:`Board`})]})]}),(0,R.jsxs)(RI,{id:`fields`,children:[(0,R.jsx)(HI,{children:`Fields`}),(0,R.jsx)(NI,{multiple:!0,value:s,onValueChange:r=>{let i=new Set(Array.isArray(r)?r:r?[r]:[]),a=t;for(let t of e)i.has(t.name)===o.has(t.name)&&(a=Xme(a,t.name));n(a)},children:(0,R.jsx)(LI,{scrollable:!0,children:e.map(e=>(0,R.jsx)(FI,{value:e.name,children:e.label},e.name))})})]}),(0,R.jsxs)(RI,{id:`group`,children:[(0,R.jsx)(HI,{children:`Group by`}),(0,R.jsx)(NI,{value:t.groupField??null,onValueChange:e=>n(f5(t,typeof e==`string`?e:void 0)),children:c.map(e=>(0,R.jsx)(FI,{value:e.name,children:e.label},e.name))})]})]})]})}function y5({label:e,onRemove:t,children:n}){return(0,R.jsxs)(V,{"data-slot":`view-chip`,height:h5.chip,items:`center`,gap:`$1`,p:`$0.5`,pl:`$1`,rounded:`$xs`,bg:`$hover`,borderWidth:1,borderColor:`$borderColor`,children:[n,(0,R.jsx)(sF,{size:`icon-2xs`,variant:`ghost`,emphasis:`subtle`,"aria-label":`Remove ${e}`,onPress:t,children:(0,R.jsx)(HM,{})})]})}var b5=(e,t,n={})=>(0,R.jsxs)(V,{role:`button`,tabIndex:0,"data-slot":`view-chip-body`,items:`center`,gap:`$1`,cursor:`pointer`,rounded:`$2xs`,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},...n,children:[(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`500`,color:`$ink`,numberOfLines:1,children:e}),t]});function she({rule:e,fields:t,view:n,onView:r}){let i=g5(t,e.field)?.label??e.field,a=()=>r(l5(n,n.sorts.map(t=>t.field===e.field?{...t,dir:t.dir===`asc`?`desc`:`asc`}:t)));return(0,R.jsx)(y5,{label:`sort by ${i}`,onRemove:()=>r(l5(n,n.sorts.filter(t=>t.field!==e.field))),children:b5(i,e.dir===`asc`?(0,R.jsx)(tM,{size:14,color:`$ink`}):(0,R.jsx)($j,{size:14,color:`$ink`}),{"aria-label":`Sort by ${i}, ${e.dir===`asc`?`ascending`:`descending`}`,onPress:a,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault?.(),a())}})})}function che({index:e,rule:t,fields:n,view:r,onView:i,fieldOptions:a}){let[o,s]=(0,b.useState)(!1),c=g5(n,t.field)??n[0],l=K8(c.type),u=ehe(t,c);return(0,R.jsx)(y5,{label:`filter on ${c.label}`,onRemove:()=>i(o5(r,e)),children:(0,R.jsxs)(yI,{open:o,onOpenChange:s,children:[(0,R.jsx)(xI,{asChild:!0,children:b5(c.label,(0,R.jsx)(U,{fontSize:`$1`,color:`$ink`,numberOfLines:1,children:`: ${G8[t.op]}${u?` ${u}`:``}`}),{"aria-label":`Filter: ${c.label} ${G8[t.op]} ${u}`.trim()})}),(0,R.jsxs)(TI,{minW:h5.wide,children:[(0,R.jsxs)(NI,{value:t.op,closeOnSelect:!1,onValueChange:n=>{if(typeof n!=`string`)return;let a=n;i(a5(r,e,a===`between`||t.op===`between`?{op:a,value:void 0}:{op:a}))},children:[(0,R.jsx)(KI,{variant:`band`,children:c.label}),l.map(e=>(0,R.jsx)(FI,{value:e,children:G8[e]},e))]}),p5(t)?(0,R.jsx)(B,{p:`$1`,children:(0,R.jsx)(m5,{field:c,rule:t,fieldOptions:a,onChange:t=>i(a5(r,e,{value:t}))})}):null]})]})})}var x5=(e,t)=>e.find(e=>e.name===t);function S5({icon:e,label:t,count:n,active:r,style:i,...a}){return(0,R.jsxs)(V,{role:`button`,tabIndex:0,"aria-label":t,...a,items:`center`,gap:6,px:10,py:7,rounded:8,borderWidth:1,cursor:`pointer`,hoverStyle:{borderColor:Y8.textMuted},style:{...i,borderColor:r?Y8.accent:Y8.border,backgroundColor:r?Y8.hover:`transparent`},children:[e,(0,R.jsx)(U,{fontSize:13,fontWeight:`600`,style:{color:r?Y8.text:Y8.textMuted},children:t}),n?(0,R.jsx)(V,{items:`center`,justify:`center`,width:18,height:18,rounded:9,style:{backgroundColor:Y8.accent},children:(0,R.jsx)(U,{fontSize:11,fontWeight:`700`,style:{color:`#0b1220`},children:n})}):null]})}function lhe({view:e,onView:t,boardDisabled:n}){let r=(n,r,i)=>{let a=e.kind===n;return(0,R.jsxs)(V,{items:`center`,gap:6,px:10,py:6,rounded:7,cursor:`pointer`,onPress:()=>t(d5(e,n)),style:{backgroundColor:a?Y8.surface:`transparent`},hoverStyle:a?void 0:{bg:Y8.hover},children:[r,(0,R.jsx)(U,{fontSize:13,fontWeight:`600`,style:{color:a?Y8.text:Y8.textFaint},children:i})]})};return(0,R.jsxs)(V,{p:3,gap:2,rounded:9,borderWidth:1,style:{borderColor:Y8.border,backgroundColor:Y8.surfaceRaised},children:[r(`table`,(0,R.jsx)(IM,{size:14,color:e.kind===`table`?Y8.text:Y8.textFaint}),`Table`),n?null:r(`board`,(0,R.jsx)(yM,{size:14,color:e.kind===`board`?Y8.text:Y8.textFaint}),`Board`)]})}function uhe({fields:e,value:t,onPick:n,trigger:r}){let[i,a]=(0,b.useState)(!1);return(0,R.jsx)(N8,{open:i,onOpenChange:a,width:220,trigger:r,children:e.map(e=>(0,R.jsx)(P8,{active:e.name===t,onPress:()=>{n(e.name),a(!1)},children:(0,R.jsx)(U,{fontSize:13,style:{color:Y8.text},children:e.label})},e.name))})}function dhe({ops:e,value:t,onPick:n}){let[r,i]=(0,b.useState)(!1);return(0,R.jsx)(N8,{open:r,onOpenChange:i,width:200,trigger:(0,R.jsx)(C5,{text:G8[t]}),children:e.map(e=>(0,R.jsx)(P8,{active:e===t,onPress:()=>{n(e),i(!1)},children:(0,R.jsx)(U,{fontSize:13,style:{color:Y8.text},children:G8[e]})},e))})}function C5({text:e,style:t,...n}){return(0,R.jsx)(V,{role:`button`,tabIndex:0,...n,items:`center`,px:8,py:5,rounded:7,borderWidth:1,cursor:`pointer`,hoverStyle:{borderColor:Y8.textMuted},style:{...t,borderColor:Y8.border,backgroundColor:Y8.surface},children:(0,R.jsx)(U,{fontSize:12,numberOfLines:1,style:{color:Y8.text},children:e})})}function fhe({fields:e,view:t,onView:n,fieldOptions:r}){let[i,a]=(0,b.useState)(!1),o=t.filters.filter(W8).length;return(0,R.jsx)(N8,{open:i,onOpenChange:a,width:420,trigger:(0,R.jsx)(S5,{icon:(0,R.jsx)(xM,{size:14,color:Y8.textMuted}),label:`Filter`,count:o,active:o>0}),children:(0,R.jsxs)(B,{gap:8,p:4,children:[t.filters.length===0?(0,R.jsx)(U,{px:6,py:4,fontSize:12,style:{color:Y8.textFaint},children:`No filters yet.`}):null,t.filters.map((i,a)=>{let o=x5(e,i.field)??e[0],s=K8(o.type);return(0,R.jsxs)(V,{items:`center`,gap:6,children:[a===0?(0,R.jsx)(U,{fontSize:12,width:36,style:{color:Y8.textFaint},children:`Where`}):(0,R.jsx)(V,{width:36,cursor:`pointer`,onPress:()=>n(s5(t,c5(t.match))),role:`button`,"aria-label":`Rules combine by ${t.match===`or`?`or`:`and`}; press for ${c5(t.match)}`,children:(0,R.jsx)(U,{fontSize:12,fontWeight:`600`,style:{color:Y8.accent},children:t.match===`or`?`or`:`and`})}),(0,R.jsx)(uhe,{fields:e,value:i.field,onPick:r=>{n(a5(t,a,{field:r,op:K8(x5(e,r).type)[0],value:void 0}))},trigger:(0,R.jsx)(C5,{text:o.label})}),(0,R.jsx)(dhe,{ops:s,value:i.op,onPick:e=>n(a5(t,a,e===`between`||i.op===`between`?{op:e,value:void 0}:{op:e}))}),p5(i)?(0,R.jsx)(V,{flex:1,minW:120,children:(0,R.jsx)(m5,{field:o,rule:i,fieldOptions:r,onChange:e=>n(a5(t,a,{value:e}))})}):(0,R.jsx)(V,{flex:1}),(0,R.jsx)(B,{cursor:`pointer`,p:4,rounded:6,hoverStyle:{bg:Y8.hover},onPress:()=>n(o5(t,a)),children:(0,R.jsx)(HM,{size:14,color:Y8.textFaint})})]},a)}),(0,R.jsx)(V,{children:(0,R.jsx)(HS,{size:`$2`,icon:(0,R.jsx)(AM,{size:14}),onPress:()=>n(i5(t,r5(e[0]))),children:`Add filter`})})]})})}function phe({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),a=e=>t.sorts.find(t=>t.field===e)?.dir,o=e=>{let r=t.sorts.find(t=>t.field===e),i;i=r?r.dir===`asc`?t.sorts.map(t=>t.field===e?{...t,dir:`desc`}:t):t.sorts.filter(t=>t.field!==e):[...t.sorts,{field:e,dir:`asc`}],n(l5(t,i))};return(0,R.jsx)(N8,{open:r,onOpenChange:i,width:240,trigger:(0,R.jsx)(S5,{icon:(0,R.jsx)(Qj,{size:14,color:Y8.textMuted}),label:`Sort`,count:t.sorts.length,active:t.sorts.length>0}),children:e.map(e=>{let t=a(e.name);return(0,R.jsx)(P8,{active:!!t,onPress:()=>o(e.name),trailing:t===`asc`?(0,R.jsx)(tM,{size:13,color:Y8.accent}):t===`desc`?(0,R.jsx)($j,{size:13,color:Y8.accent}):null,children:(0,R.jsx)(U,{fontSize:13,style:{color:Y8.text},children:e.label})},e.name)})})}function mhe({fields:e,view:t,onView:n}){let[r,i]=(0,b.useState)(!1),a=e5(e),o=x5(e,t.groupField??``);return(0,R.jsxs)(N8,{open:r,onOpenChange:i,width:220,trigger:(0,R.jsx)(S5,{icon:(0,R.jsx)(qae,{size:14,color:Y8.textMuted}),label:o?`Group: ${o.label}`:`Group by`,active:!!o}),children:[a.length===0?(0,R.jsx)(U,{px:10,py:6,fontSize:12,style:{color:Y8.textFaint},children:`No groupable fields`}):null,a.map(e=>(0,R.jsx)(P8,{active:e.name===t.groupField,onPress:()=>{n(f5(t,e.name)),i(!1)},children:(0,R.jsx)(U,{fontSize:13,style:{color:Y8.text},children:e.label})},e.name))]})}function hhe(e){return hP()===`compact`?(0,R.jsx)(the,{...e}):(0,R.jsx)(ghe,{...e})}function ghe(e){let{fields:t,view:n,onView:r,onCreate:i,createLabel:a=`New`,extra:o,boardDisabled:s}=e;return(0,R.jsxs)(V,{items:`center`,gap:8,style:{flexWrap:`wrap`},children:[(0,R.jsx)(lhe,{view:n,onView:r,boardDisabled:s}),(0,R.jsx)(fhe,{...e}),(0,R.jsx)(phe,{fields:t,view:n,onView:r}),n.kind===`board`?(0,R.jsx)(mhe,{fields:t,view:n,onView:r}):null,(0,R.jsxs)(V,{flex:1,minW:160,items:`center`,gap:6,px:10,py:6,rounded:8,borderWidth:1,style:{borderColor:Y8.border,backgroundColor:Y8.surface},children:[(0,R.jsx)(jM,{size:14,color:Y8.textFaint}),(0,R.jsx)(gj,{flex:1,size:`$2`,value:n.search??``,onChangeText:e=>r(u5(n,e)),placeholder:`Search…`,style:{borderWidth:0,backgroundColor:`transparent`,paddingLeft:0,paddingRight:0}})]}),o?(0,R.jsx)(b.Fragment,{children:o}):null,i?(0,R.jsx)(HS,{size:`$3`,icon:(0,R.jsx)(AM,{size:16}),theme:`blue`,onPress:i,children:a}):null]})}function _he(e){let{fields:t,records:n,loading:r,empty:i,view:a,onViewChange:o,defaultKind:s=`table`,savedViews:c,title:l,onOpen:u,onCreate:d,createLabel:f,onEditCommit:p,onRecordChange:m,fieldOptions:h,selectable:g=!0,editable:_=!0,bulkActions:v,toolbarExtra:y,boardDisabled:x,titleField:S,cardFields:C,remote:w}=e,[T,E]=(0,b.useState)(()=>{let e=Jme(s);return s===`board`?{...e,groupField:t5(t)}:e}),D=a??T,O=e=>{let n=e.kind===`board`&&!e.groupField?{...e,groupField:t5(t)}:e;o?o(n):E(n)},k=(0,b.useMemo)(()=>w?n:Yme(n,D,t),[w,n,D,t]),A=hP()===`compact`,j=c?.views.find(e=>e.id===(c.activeId??D.id)),M=!!j&&JSON.stringify(j)!==JSON.stringify(D),ee=A&&c?{savedViews:{views:c.views,activeId:c.activeId,onSelect:c.onSelect},dirty:M,onResetView:j?()=>O(j):void 0,onSaveView:()=>c.onSave(D),onSaveAsView:()=>c.onSave({...D,id:`view-${Date.now()}`,name:`View ${c.views.length+1}`})}:null,te=m??(p?(e,n)=>{let[r]=Object.keys(n),i=t.find(e=>e.name===r);if(i)return p(e,i,n[r])}:void 0);return(0,R.jsxs)(B,{gap:12,children:[l?typeof l==`string`?(0,R.jsx)(U,{fontSize:20,fontWeight:`800`,style:{color:Y8.text},children:l}):l:null,c&&!A?(0,R.jsx)(vhe,{saved:c,current:D,onLoad:O}):null,(0,R.jsx)(hhe,{fields:t,view:D,onView:O,onCreate:d,createLabel:f,fieldOptions:h,extra:y,boardDisabled:x,...A?{count:w?w.total:k.length}:null,...ee}),D.kind===`board`?(0,R.jsx)(Ume,{fields:t,records:k,groupField:D.groupField??t5(t)??``,titleField:S,cardFields:C,onOpen:u,onRecordChange:te,onCreate:d?()=>d():void 0}):(0,R.jsx)(Ame,{fields:t,records:k,loading:r,empty:i,sorts:D.sorts,onSortChange:e=>O(l5(D,e)),onOpen:u,selectable:g,bulkActions:v,editable:_,onEditCommit:p,fieldOptions:h,hiddenFields:D.hiddenFields,columnOrder:D.columnOrder,onColumnOrderChange:e=>O({...D,columnOrder:e}),pageSize:D.pageSize??25,remote:w})]})}function vhe({saved:e,current:t,onLoad:n}){return(0,R.jsxs)(V,{items:`center`,gap:4,style:{flexWrap:`wrap`},children:[e.views.map(r=>{let i=r.id===(e.activeId??t.id);return(0,R.jsxs)(V,{items:`center`,gap:6,px:10,py:6,rounded:8,cursor:`pointer`,onPress:()=>{e.onSelect(r.id),n(r)},style:{backgroundColor:i?Y8.hover:`transparent`,borderBottomWidth:2,borderBottomColor:i?Y8.accent:`transparent`},hoverStyle:i?void 0:{bg:Y8.surfaceRaised},children:[(0,R.jsx)(U,{fontSize:13,fontWeight:i?`700`:`500`,style:{color:i?Y8.text:Y8.textMuted},children:r.name}),e.onDelete&&e.views.length>1&&(e.deletable?.(r.id)??!0)?(0,R.jsx)(B,{role:`button`,tabIndex:0,"aria-label":`Delete view ${r.name}`,cursor:`pointer`,onPress:t=>{t?.stopPropagation?.(),e.onDelete?.(r.id)},children:(0,R.jsx)(HM,{size:12,color:Y8.textFaint})}):null]},r.id)}),(0,R.jsxs)(V,{items:`center`,gap:4,px:10,py:6,rounded:8,cursor:`pointer`,hoverStyle:{bg:Y8.surfaceRaised},onPress:()=>e.onSave({...t,id:`view-${Date.now()}`,name:`View ${e.views.length+1}`}),children:[(0,R.jsx)(AM,{size:13,color:Y8.textFaint}),(0,R.jsx)(U,{fontSize:13,style:{color:Y8.textFaint},children:`New view`})]})]})}var w5=`with-`,T5=e=>`/chat/${w5}${e.id}`,E5=e=>e?.startsWith(w5)?e.slice(5):void 0,D5=e=>e.filter(e=>e.bot).sort((e,t)=>e.name.localeCompare(t.name)),O5=(e,t)=>e.kind===`direct`?t.find(t=>t.bot&&e.members.includes(t.id)):void 0,yhe=e=>(bhe(e)?xhe(e):e).replace(/<\/(p|div|li|h[1-6])>|<br\s*\/?>/gi,`
157
- `).replace(/<[^>]*>/g,``).split(`
158
- `).map(e=>The(e).trim()).filter(e=>e!==``),bhe=e=>e.trimStart().startsWith(`{"type"`),xhe=e=>{let t;try{t=JSON.parse(e)}catch{return e}let n=e=>e.type===`reference`?`@${e.attrs?.label??``}`:(e.text??``)+(e.content??[]).map(n).join(``);return(t.content??[]).map(e=>`<p>${A5(n(e))}</p>`).join(``)},k5=(e,t=[])=>She(e,t)??Che(e),She=(e,t)=>{let n=new Map;for(let e of t)e.name.trim()&&n.set(e.name.trim().toLowerCase(),e);if(n.size===0)return null;let r=!1,i=e.replace(/\r\n/g,`
159
- `).split(`
160
- `).map(e=>e.trimEnd()).filter(e=>e!==``).map(e=>{let t=[],i=0;for(let a of e.matchAll(/(?<![\w.@-])@([\w.-]+)/g)){let o=n.get(a[1].replace(/[.-]+$/,``).toLowerCase());if(!o)continue;let s=a.index+1+a[1].replace(/[.-]+$/,``).length;a.index>i&&t.push({type:`text`,text:e.slice(i,a.index)}),t.push({type:`reference`,attrs:{id:`person-${o.id}`,objectclass:`contact:class:Person`,label:o.name}}),i=s,r=!0}return i<e.length&&t.push({type:`text`,text:e.slice(i)}),{type:`paragraph`,content:t}});return r?JSON.stringify({type:`doc`,content:i}):null},Che=e=>e.replace(/\r\n/g,`
161
- `).split(`
162
- `).map(e=>e.trimEnd()).filter(e=>e!==``).map(e=>`<p>${A5(e)}</p>`).join(``)||`<p></p>`,whe={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`,"&#34;":`"`,"&nbsp;":` `},The=e=>e.replace(/&(?:amp|lt|gt|quot|nbsp|#39|#34);/g,e=>whe[e]??e),A5=e=>e.replace(/[&<>"']/g,e=>`&${{"&":`amp`,"<":`lt`,">":`gt`,'"':`quot`,"'":`#39`}[e]};`),Ehe=/(?<![\w.@-])(@[\w.-]+)|(https?:\/\/[^\s<>()]+)/g,Dhe=e=>{let t=[],n=0;for(let r of e.matchAll(Ehe)){let i=r.index;i>n&&t.push({kind:`text`,value:e.slice(n,i)}),t.push(r[1]?{kind:`mention`,value:r[1]}:{kind:`link`,value:r[2]}),n=i+r[0].length}return n<e.length&&t.push({kind:`text`,value:e.slice(n)}),t},j5={channel:l3.channel,direct:l3.direct,message:l3.message,reply:l3.reply,reaction:l3.reaction,person:l3.person},M5=u3.create,Ohe=u3.remove,N5=(e,t)=>e.name||e.members.map(e=>t.find(t=>t.id===e)?.name).filter(e=>!!e).join(`, `),P5=e=>typeof e==`string`?e:``,F5=e=>typeof e==`number`?e:0,khe=async e=>{let[t,n]=await Promise.all([e.find(j5.channel),e.find(j5.direct)]);return[...t.map(e=>I5(e,`channel`)),...n.map(e=>I5(e,`direct`))].filter(e=>!e.archived)},Ahe=e=>{let t=new Set;if(Array.isArray(e.bindings))for(let n of e.bindings)typeof n==`string`&&n.startsWith(`connect:`)&&t.add(n.slice(8));let n=P5(e.topic)||P5(e.description);for(let e of n.matchAll(/connect:([a-z0-9_-]+)/gi))e[1]&&t.add(e[1].toLowerCase());let r=P5(e.name).match(/^[a-z0-9]+-x-([a-z0-9_-]+)$/i);return r?.[1]&&t.add(r[1].toLowerCase()),t.size>0?[...t]:void 0},I5=(e,t)=>({id:P5(e._id),kind:t,name:P5(e.name),topic:P5(e.topic)||void 0,private:e.private===!0,archived:e.archived===!0,members:Array.isArray(e.members)?e.members.filter(e=>typeof e==`string`):[],connectedOrgs:Ahe(e)}),jhe=async(e,t)=>(await e.find(j5.message,{attachedTo:t})).map(e=>R5(e,t)).sort(L5),L5=(e,t)=>e.at-t.at||(e.id<t.id?-1:1),R5=(e,t)=>({id:P5(e._id),room:t,author:P5(e.createdBy)||P5(e.modifiedBy),lines:yhe(P5(e.message)),at:F5(e.createdOn)||F5(e.modifiedOn),replies:F5(e.replies),pinned:e.isPinned===!0}),Mhe=async(e,t)=>(await e.find(j5.reply,{attachedTo:t})).map(e=>({...Nhe(e),room:t})).sort(L5),Nhe=e=>R5(e,P5(e.attachedTo)),Phe=async(e,t)=>t.length===0?[]:(await e.find(j5.reaction,{attachedTo:{$in:t}})).map(e=>({id:P5(e._id),message:P5(e.attachedTo),emoji:P5(e.emoji),by:P5(e.createBy)||P5(e.createdBy)})),Fhe=e=>p3({name:e}).replace(/\s+/g,` `),Ihe=e=>{let t=e[`contact:mixin:Employee`];return P5(e.position)||(t&&typeof t==`object`?P5(t.position):``)},Lhe=async e=>(await e.find(j5.person)).map(e=>({id:P5(e.personUuid)||P5(e._id),name:Fhe(P5(e.name)),avatar:P5(e.avatar)||void 0,bot:Ihe(e)===`Agent`||void 0})),Rhe=(e,t,n,r=[])=>e.write(V5(H5(),j5.message,t.id,t.id,z5(t),`messages`,B5(e),{message:k5(n,r)})),zhe=(e,t,n,r,i=[])=>e.write(V5(H5(),j5.reply,t.id,n.id,j5.message,`replies`,B5(e),{message:k5(r,i),objectId:t.id,objectClass:z5(t)})),Bhe=(e,t,n,r)=>e.write(V5(H5(),j5.reaction,t.id,n.id,j5.message,`reactions`,B5(e),{emoji:r})),Vhe=(e,t,n)=>e.write({_class:Ohe,objectId:n.id,objectClass:j5.reaction,objectSpace:t.id,modifiedBy:B5(e),modifiedOn:Date.now()}),Hhe=async(e,t,n,r)=>{let i=t.trim().replace(/^#+/,``).toLowerCase().replace(/[^a-z0-9_-]+/g,`-`),a=n.map(e=>e.trim().toLowerCase().replace(/[^a-z0-9_-]+/g,``)).filter(Boolean),o=`connect-${i}-${H5().slice(0,8)}`,s=Date.now(),c=B5(e),l=a.map(e=>`connect:${e}`),u=[r?.trim(),...l].filter(Boolean).join(` · `);return await e.write({_class:M5,objectId:o,objectClass:j5.channel,objectSpace:`core:space:Space`,modifiedBy:c,modifiedOn:s,createdBy:c,createdOn:s,attributes:{name:i,topic:u,description:u,private:!1,archived:!1,members:c?[c]:[],owners:c?[c]:[],life:`standing`,bindings:l}}),o},z5=e=>e.kind===`direct`?j5.direct:j5.channel,B5=e=>e.account??``,V5=(e,t,n,r,i,a,o,s)=>{let c=Date.now();return{_class:M5,objectId:e,objectClass:t,objectSpace:n,modifiedBy:o,modifiedOn:c,createdBy:o,createdOn:c,attributes:s,attachedTo:r,attachedToClass:i,collection:a}},H5=()=>[...crypto.getRandomValues(new Uint8Array(16))].map(e=>e.toString(16).padStart(2,`0`)).join(``),Uhe=(e,t)=>e.some(e=>{let n=P5(e.objectClass);return n!==j5.message&&n!==j5.reaction&&n!==j5.reply?!1:P5(e.objectSpace)===t||P5(e.attachedTo)===t||n!==j5.message}),U5=()=>{let{plane:e,current:t}=s3();return L4(`chat:rooms:${t?.uuid??`-`}`,()=>e?khe(e):Promise.resolve([]),{enabled:!!e})},Whe=e=>{let{plane:t}=s3();return L4(`chat:messages:${e??`-`}`,()=>t&&e?jhe(t,e):Promise.resolve([]),{enabled:!!(t&&e)})},Ghe=e=>{let{plane:t}=s3();return L4(`chat:reactions:${e.join(`,`).slice(0,200)}:${e.length}`,()=>t?Phe(t,e):Promise.resolve([]),{enabled:!!t&&e.length>0})},Khe=e=>{let{plane:t}=s3();return L4(`chat:replies:${e??`-`}`,()=>t&&e?Mhe(t,e):Promise.resolve([]),{enabled:!!(t&&e)})},W5=()=>{let{plane:e,current:t}=s3();return L4(`chat:people:${t?.uuid??`-`}`,()=>e?Lhe(e):Promise.resolve([]),{enabled:!!e})},qhe=e=>{let{plane:t}=s3();(0,b.useEffect)(()=>{if(t&&e)return t.watch(t=>{Uhe(t,e)&&(R4(`chat:messages:${e}`),R4(`chat:reactions:`),R4(`chat:replies:`))})},[t,e])},G5=(e,t)=>{let n=t.startsWith(`hanzo:`)?t.slice(6):t;return e.find(e=>e.id===n||e.id===t)?.name||Jhe(n)},Jhe=e=>(e.length>12?`${e.slice(0,8)}…`:e)||`Someone`,Yhe=e=>e.split(/[\s._-]+/).filter(Boolean).slice(0,2).map(e=>e[0].toUpperCase()).join(``)||`?`,K5=e=>`var(--team-${e})`,Z={ground:K5(`ground`),panel:K5(`panel`),card:K5(`card`),rule:K5(`rule`),ink:K5(`ink`),mute:K5(`mute`),dim:K5(`dim`),accent:K5(`accent`),alert:K5(`alert`)},q5={backlog:K5(`backlog`),todo:K5(`todo`),doing:K5(`doing`),done:K5(`done`)},Xhe=6,J5=e=>{let t=e.toLowerCase(),n=0;for(let e=0;e<t.length;e++)n=n*31+t.charCodeAt(e)|0;return Math.abs(n)%Xhe+1},Y5=e=>({background:`var(--team-hue-${J5(e)})`,color:`var(--team-chip-ink)`}),X5=e=>`var(--team-hue-${J5(e)})`,Zhe=e=>e===1||e===2,Qhe=e=>Zhe(e)?{background:`var(--team-urgent)`,color:`var(--team-chip-ink)`}:{background:`var(--team-quiet)`,color:Z.ink},Q={title:`$7`,row:`$4`,body:`$3`,small:`$2`,chip:`$1`,figure:`$7`},Z5={tight:`$2`,inset:`$3`,wide:`$4`,edge:`$5`},Q5={card:`$1`,panel:`$1`,field:`$1`,pill:`$10`},$5={textTransform:`uppercase`,letterSpacing:.08},e7={outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`};function $he(e,t){return e?.trim()?e.trim():(t?.split(`@`)[0])?.trim()||``}var ege=[{id:`crm`,label:`CRM`,productTitle:`Hanzo CRM`,description:`Pipeline, contacts, investors & deals`,href:`https://crm.hanzo.ai`,supportsFreshAuth:!0},{id:`team`,label:`Work`,productTitle:`Hanzo Team`,description:`Shared workspace, docs, tasks & drive`,href:`https://hanzo.team`,supportsFreshAuth:!1},{id:`cms`,label:`CMS`,productTitle:`Hanzo CMS`,description:`Content, pages, collections & media`,href:`https://cms.hanzo.ai/admin`,supportsFreshAuth:!1},{id:`email`,label:`Email`,productTitle:`Hanzo Email`,description:`Campaigns, journeys & broadcasts`,href:`https://marketing.hanzo.ai`,supportsFreshAuth:!0},{id:`ads`,label:`Ads`,productTitle:`Hanzo Ads`,description:`Ad spend, ROAS & attribution`,href:`https://ads.hanzo.ai`,supportsFreshAuth:!0},{id:`cal`,label:`Cal`,productTitle:`Hanzo Cal`,description:`Scheduling, bookings & availability`,href:`https://hanzo.team/cal`,supportsFreshAuth:!1},{id:`bots`,label:`Bots`,productTitle:`Hanzo Bots`,description:`Autonomous AI agents & workflows`,href:`https://hanzo.bot`,supportsFreshAuth:!1},{id:`post`,label:`Post`,productTitle:`Hanzo Post`,description:`AI social & blog publishing across 28+ channels`,href:`https://post.hanzo.ai`,supportsFreshAuth:!1},{id:`social`,label:`Social`,productTitle:`Hanzo Publish`,description:`Social scheduling, inbox & listening`,href:`https://social.hanzo.ai`,supportsFreshAuth:!0},{id:`chat`,label:`Chat`,productTitle:`Hanzo Chat`,description:`AI assistant, models & playground`,href:`https://hanzo.ai/chat`,supportsFreshAuth:!1},{id:`dev`,label:`Dev`,productTitle:`Hanzo Dev`,description:`Coding agents & cloud workspaces`,href:`https://hanzo.ai/dev`,supportsFreshAuth:!1},{id:`commerce`,label:`Commerce`,productTitle:`Hanzo Commerce`,description:`Store, products, orders & subscriptions`,href:`https://commerce-admin.hanzo.ai/admin/`,supportsFreshAuth:!1},{id:`analytics`,label:`Analytics`,productTitle:`Hanzo Analytics`,description:`Web traffic, funnels & retention`,href:`https://analytics.hanzo.ai`,supportsFreshAuth:!1},{id:`dataroom`,label:`Data Room`,productTitle:`Hanzo Data Room`,description:`Secure investor & deal data rooms`,href:`https://dataroom.hanzo.ai`,supportsFreshAuth:!1},{id:`sign`,label:`Sign`,productTitle:`Hanzo Sign`,description:`Document e-signatures & agreements`,href:`https://esign.hanzo.ai`,supportsFreshAuth:!1},{id:`billing`,label:`Billing`,productTitle:`Hanzo Billing`,description:`Usage, balance, invoices & payment methods`,href:`https://billing.hanzo.ai`,supportsFreshAuth:!1},{id:`console`,label:`Console`,productTitle:`Hanzo Console`,description:`Cloud, AI infrastructure & IAM`,href:`https://console.hanzo.ai`,supportsFreshAuth:!0},{id:`platform`,label:`Platform`,productTitle:`Hanzo Platform`,description:`PaaS deployments, clusters & containers`,href:`https://platform.hanzo.ai`,supportsFreshAuth:!0}];function tge({id:e,size:t=16}){switch(e){case`crm`:return(0,R.jsx)(iM,{size:t});case`team`:case`work`:return(0,R.jsx)(VM,{size:t});case`cms`:return(0,R.jsx)(gM,{size:t});case`email`:case`marketing`:return(0,R.jsx)(wM,{size:t});case`ads`:return(0,R.jsx)(coe,{size:t});case`cal`:return(0,R.jsx)(sM,{size:t});case`bots`:return(0,R.jsx)(rM,{size:t});case`post`:case`social`:return(0,R.jsx)(MM,{size:t});case`chat`:return(0,R.jsx)(uoe,{size:t});case`dev`:return(0,R.jsx)(yoe,{size:t});case`commerce`:return(0,R.jsx)(moe,{size:t});case`analytics`:return(0,R.jsx)(Pae,{size:t});case`dataroom`:return(0,R.jsx)(toe,{size:t});case`sign`:return(0,R.jsx)(Nae,{size:t});case`billing`:return(0,R.jsx)(fM,{size:t});case`console`:return(0,R.jsx)(goe,{size:t});case`platform`:return(0,R.jsx)(yM,{size:t});default:return(0,R.jsx)(Lae,{size:t})}}function nge(e,t){try{let n=new URL(e.href);if(e.supportsFreshAuth&&t?.who){let e=t?.org?`/?org=${encodeURIComponent(t.org)}`:`/`;return`${n.origin}/auth/fresh?next=${encodeURIComponent(e)}&who=${encodeURIComponent(t.who)}`}return t?.org&&!n.searchParams.has(`org`)&&n.searchParams.set(`org`,t.org),n.toString()}catch{return e.href}}var rge=[{id:`issues`,label:`Tracker — All issues`,desc:`Kanban board, list & project issues`,path:`/issues`},{id:`projects`,label:`Projects`,desc:`Every project in this space`,path:`/projects`}];function ige({appId:e=`team`,appTitle:t,showAppTitle:n=!1,apps:r=ege,onSelectApp:i,brandMark:a,currentOrg:o,orgs:s=[],onSelectOrg:c,onAllOrgs:l,onCreateOrg:u,leftSlot:d,children:f,rightSlot:p,onNavigate:m,user:h}){let[g,_]=(0,b.useState)(!1),[v,y]=(0,b.useState)(!1),[x,S]=(0,b.useState)(!1),[C,w]=(0,b.useState)(``),T=r.find(t=>t.id===e)??r[0],E=t||T?.productTitle||`Hanzo Team`,D=o?.displayName?.trim()||o?.name||`Hanzo AI`,O=h?.sub||``;(0,b.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),S(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let k=W5().data??[],A=U5().data??[],j=(0,b.useMemo)(()=>{let e=C.trim().toLowerCase(),t=D5(k).map(e=>({id:`bot-${e.id}`,kind:`bot`,label:e.name,desc:`Agent`,path:T5(e)})),n=A.filter(e=>e.kind===`channel`).map(e=>({id:e.id,kind:`channel`,label:`#${e.name}`,desc:e.topic??``,path:`/chat/${e.id}`})),r=[...rge.map(e=>({...e,kind:`surface`})),...n,...t];return e?r.filter(t=>t.label.toLowerCase().includes(e)||t.desc.toLowerCase().includes(e)).slice(0,14):r.slice(0,12)},[C,k,A]),M=e=>{if(_(!1),i){i(e);return}if(typeof window<`u`){let t=nge(e,{who:O||void 0,org:o?.name||void 0});window.location.assign(t)}},ee=e=>{S(!1),w(``),m?m(e):typeof window<`u`&&window.location.assign(e)};return(0,R.jsxs)(V,{render:`header`,height:40,px:`$2.5`,gap:`$2`,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$borderColor`,bg:`$background`,shrink:0,"data-testid":`hanzo-business-header`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$1.5`,minW:0,shrink:0,children:[d,(0,R.jsxs)(OD,{open:g,onOpenChange:_,placement:`bottom-start`,allowFlip:!0,stayInFrame:!0,children:[(0,R.jsx)(OD.Trigger,{asChild:!0,children:(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$1`,height:30,px:`$2`,rounded:`$3`,hoverStyle:{bg:`$color3`},"aria-label":`${E} — Switch application`,"aria-haspopup":`menu`,"aria-expanded":g,"data-testid":`business-app-switcher-trigger`,children:[(0,R.jsx)(B,{items:`center`,justify:`center`,width:20,height:20,shrink:0,children:a??(0,R.jsx)(Yfe,{size:17,wordmark:``})}),n?(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`700`,color:`$color12`,numberOfLines:1,children:E}):null,(0,R.jsx)(lM,{size:12,color:`$color10`})]})}),(0,R.jsx)(OD.Content,{role:`menu`,"aria-label":`Hanzo Business Applications`,borderWidth:1,elevation:`$4`,p:`$2.5`,width:350,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,R.jsxs)(B,{gap:`$2`,width:`100%`,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,px:`$2`,pt:`$1`,children:[(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.6,children:`Hanzo Business Suite`}),(0,R.jsx)(U,{fontSize:`$1`,color:`$color10`,children:D})]}),(0,R.jsx)(B,{gap:`$0.5`,maxH:420,style:{overflowY:`auto`},children:r.map(t=>{let n=t.id===e;return(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2.5`,py:`$2`,rounded:`$3`,bg:n?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>M(t),"data-testid":`app-switcher-item-${t.id}`,children:[(0,R.jsx)(B,{width:30,height:30,rounded:`$3`,bg:n?`$color4`:`$color2`,items:`center`,justify:`center`,shrink:0,children:(0,R.jsx)(tge,{id:t.id,size:15})}),(0,R.jsxs)(B,{flex:1,minW:0,gap:1,children:[(0,R.jsxs)(V,{items:`center`,gap:`$1.5`,children:[(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`600`,color:`$color12`,numberOfLines:1,children:t.label}),n?(0,R.jsx)(U,{fontSize:10,fontWeight:`600`,color:`$color10`,px:`$1.5`,py:1,rounded:`$2`,bg:`$color4`,children:`Current`}):null]}),(0,R.jsx)(U,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:t.description})]}),n?(0,R.jsx)(cM,{size:14,color:`$color12`}):null]},t.id)})})]})})]}),(0,R.jsxs)(OD,{open:v,onOpenChange:y,placement:`bottom-start`,allowFlip:!0,stayInFrame:!0,children:[(0,R.jsx)(OD.Trigger,{asChild:!0,children:(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$1.5`,height:30,px:`$2`,rounded:`$3`,hoverStyle:{bg:`$color3`},"aria-label":`Current organization: ${D}. Click to switch organization.`,"data-testid":`business-org-subtitle-trigger`,children:[(0,R.jsx)(T6,{org:{name:D,logo:o?.logo},size:20}),(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`600`,color:`$color12`,numberOfLines:1,maxW:180,children:D}),(0,R.jsx)(lM,{size:12,color:`$color10`})]})}),(0,R.jsx)(OD.Content,{role:`menu`,"aria-label":`Switch organization`,borderWidth:1,elevation:`$4`,p:`$2`,width:260,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,R.jsxs)(B,{gap:`$1`,width:`100%`,children:[(0,R.jsx)(V,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch organization`})}),s.map(e=>{let t=e.name===o?.name,n=e.displayName?.trim()||e.name;return(0,R.jsxs)(V,{role:`menuitem`,"aria-checked":t,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:t?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),c?.(e.name)},children:[(0,R.jsx)(T6,{org:{name:n,logo:e.logo},size:20}),(0,R.jsx)(U,{flex:1,fontSize:`$2`,fontWeight:t?`600`:`500`,color:`$color12`,numberOfLines:1,children:n}),t?(0,R.jsx)(cM,{size:14,color:`$color12`}):null]},e.name)}),l||u?(0,R.jsx)(AD,{borderColor:`$borderColor`,my:`$1`}):null,l?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),l()},children:[(0,R.jsx)(aM,{size:14,color:`$color10`}),(0,R.jsx)(U,{fontSize:`$2`,color:`$color12`,children:`All organizations…`})]}):null,u?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{y(!1),u()},children:[(0,R.jsx)(AM,{size:14,color:`$color10`}),(0,R.jsx)(U,{fontSize:`$2`,color:`$color12`,children:`Create organization`})]}):null]})})]})]}),(0,R.jsx)(V,{flex:1,items:`center`,justify:`center`,gap:`$1.5`,minW:0,px:`$2`,children:f??(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(V,{items:`center`,gap:2,shrink:0,children:[(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Go back`,onPress:()=>{typeof window<`u`&&window.history.back()},children:(0,R.jsx)(zae,{size:14,color:`$color10`})}),(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Go forward`,onPress:()=>{typeof window<`u`&&window.history.forward()},children:(0,R.jsx)(eM,{size:14,color:`$color10`})}),(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,width:26,height:26,rounded:`$2`,items:`center`,justify:`center`,hoverStyle:{bg:`$color3`},"aria-label":`Recent activity`,onPress:()=>S(!0),children:(0,R.jsx)(Gae,{size:13,color:`$color10`})})]}),(0,R.jsxs)(OD,{open:x,onOpenChange:S,placement:`bottom`,allowFlip:!0,stayInFrame:!0,children:[(0,R.jsx)(OD.Trigger,{asChild:!0,children:(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,flex:1,maxW:460,height:28,px:`$2.5`,rounded:`$3`,bg:`$color2`,borderWidth:1,borderColor:`$borderColor`,items:`center`,justify:`space-between`,hoverStyle:{bg:`$color3`},"aria-label":`Search ${D}`,"data-testid":`slack-top-search-trigger`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$2`,minW:0,flex:1,children:[(0,R.jsx)(jM,{size:13,color:`$color10`}),(0,R.jsx)(U,{fontSize:12,color:`$color10`,numberOfLines:1,children:`Search ${D}…`})]}),(0,R.jsx)(U,{fontSize:10,fontWeight:`600`,color:`$color9`,px:`$1.5`,py:1,rounded:`$2`,bg:`$color3`,children:`⌘K`})]})}),(0,R.jsx)(OD.Content,{role:`dialog`,"aria-label":`Jump to channel, bot, or surface`,borderWidth:1,elevation:`$4`,p:`$2`,width:460,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,R.jsxs)(B,{gap:`$2`,width:`100%`,children:[(0,R.jsxs)(V,{height:34,px:`$2.5`,items:`center`,gap:`$2`,rounded:`$3`,bg:`$color2`,borderWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(jM,{size:14,color:`$color10`}),(0,R.jsx)(gj,{flex:1,height:30,fontSize:13,borderWidth:0,bg:`transparent`,placeholder:`Jump to a channel, bot or issue board…`,value:C,onChangeText:w,autoFocus:!0})]}),(0,R.jsx)(B,{gap:`$0.5`,maxH:340,style:{overflowY:`auto`},children:j.map(e=>(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2.5`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>ee(e.path),children:[(0,R.jsx)(B,{width:24,height:24,rounded:`$2`,bg:`$color3`,items:`center`,justify:`center`,shrink:0,children:e.kind===`bot`?(0,R.jsx)(rM,{size:13,color:`$color11`}):e.kind===`channel`?(0,R.jsx)(_M,{size:13,color:`$color11`}):(0,R.jsx)(PM,{size:13,color:`$color11`})}),(0,R.jsxs)(B,{flex:1,minW:0,children:[(0,R.jsx)(U,{fontSize:12,fontWeight:`600`,color:`$color12`,numberOfLines:1,children:e.label}),(0,R.jsx)(U,{fontSize:11,color:`$color10`,numberOfLines:1,children:e.desc})]})]},e.id))})]})})]})]})}),(0,R.jsx)(V,{items:`center`,gap:`$1.5`,shrink:0,children:p??(0,R.jsx)(O6,{})})]})}function age({user:e,currentOrg:t,orgs:n=[],onSelectOrg:r,onCreateOrg:i,onConnectOrg:a,accounts:o=[],onSwitchAccount:s,onAddAccount:c,onSettings:l,onSignOut:u}){let[d,f]=(0,b.useState)(!1),p=t?.displayName?.trim()||t?.name||`Hanzo AI`,m=$he(e?.name,e?.email)||`Account`,h=e?.email||``,g=e?.sub||``,_=(()=>{let n=[],r=new Set;g&&(r.add(g),n.push({sub:g,owner:e?.owner||t?.name||`hanzo`,name:m,email:h||void 0,avatar:e?.avatar}));for(let e of o)e.sub&&!r.has(e.sub)&&(r.add(e.sub),n.push(e));return n})();return(0,R.jsxs)(OD,{open:d,onOpenChange:f,placement:`right-end`,allowFlip:!0,stayInFrame:!0,children:[(0,R.jsx)(OD.Trigger,{asChild:!0,children:(0,R.jsxs)(B,{role:`button`,tabIndex:0,cursor:`pointer`,width:36,height:36,rounded:Q5.field,items:`center`,justify:`center`,position:`relative`,hoverStyle:{bg:`$color3`},"aria-label":`${m} · Account & settings`,"aria-haspopup":`menu`,"aria-expanded":d,"data-testid":`rail-account-menu-trigger`,onKeyDown:e=>{(e?.key===`Enter`||e?.key===` `)&&(e.preventDefault?.(),f(!d))},children:[e?.avatar||m?(0,R.jsx)(T6,{org:{name:m,logo:e?.avatar},size:30}):(0,R.jsx)(Coe,{size:18}),(0,R.jsx)(B,{position:`absolute`,b:1,r:1,width:9,height:9,rounded:Q5.pill,borderWidth:1.5,borderColor:`$background`,style:{backgroundColor:q5.done}})]})}),(0,R.jsx)(OD.Content,{role:`menu`,"aria-label":`Account menu`,borderWidth:1,elevation:`$4`,p:`$2`,width:300,bg:`$background`,borderColor:`$borderColor`,rounded:`$4`,style:{zIndex:1e5},children:(0,R.jsxs)(B,{gap:`$1`,width:`100%`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$2.5`,px:`$2`,py:`$2`,rounded:`$3`,bg:`$color2`,children:[(0,R.jsx)(T6,{org:{name:m,logo:e?.avatar},size:36}),(0,R.jsxs)(B,{flex:1,minW:0,gap:1,children:[(0,R.jsx)(U,{fontSize:`$3`,fontWeight:`700`,color:`$color12`,numberOfLines:1,children:m}),h&&h!==m?(0,R.jsx)(U,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:h}):null,(0,R.jsxs)(V,{items:`center`,gap:`$1.5`,mt:2,children:[(0,R.jsx)(B,{width:6,height:6,rounded:Q5.pill,style:{backgroundColor:q5.done}}),(0,R.jsxs)(U,{fontSize:11,fontWeight:`600`,color:`$color10`,children:[`Active · `,p]})]})]})]}),(0,R.jsx)(AD,{borderColor:`$borderColor`,my:`$1`}),(0,R.jsxs)(B,{gap:`$0.5`,children:[(0,R.jsxs)(V,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:[(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch account`}),(0,R.jsx)(U,{fontSize:11,color:`$color9`,children:`Identities`})]}),_.map(e=>{let t=!!(g&&e.sub===g),n=e.name||e.email||e.sub;return(0,R.jsxs)(V,{role:`menuitem`,"aria-checked":t,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:t?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),t||s?.(e)},children:[(0,R.jsx)(T6,{org:{name:n,logo:e.avatar},size:24}),(0,R.jsxs)(B,{flex:1,minW:0,children:[(0,R.jsx)(U,{fontSize:`$2`,fontWeight:t?`600`:`500`,color:`$color12`,numberOfLines:1,children:n}),(0,R.jsx)(U,{fontSize:`$1`,color:`$color10`,numberOfLines:1,children:e.email&&e.email!==n?e.email:t?`Current account`:`Identity · ${e.owner}`})]}),t?(0,R.jsx)(cM,{size:14,color:`$color12`}):null]},e.sub)}),c?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),c()},children:[(0,R.jsx)(B,{width:24,height:24,rounded:Q5.pill,bg:`$color3`,items:`center`,justify:`center`,children:(0,R.jsx)(Soe,{size:13,color:`$color11`})}),(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Add another account`})]}):null]}),(0,R.jsx)(AD,{borderColor:`$borderColor`,my:`$1`}),(0,R.jsxs)(B,{gap:`$0.5`,children:[(0,R.jsxs)(V,{px:`$2`,py:`$1`,items:`center`,justify:`space-between`,children:[(0,R.jsx)(U,{fontSize:`$1`,fontWeight:`700`,color:`$color10`,textTransform:`uppercase`,letterSpacing:.5,children:`Switch organization`}),(0,R.jsx)(U,{fontSize:11,color:`$color9`,children:p})]}),n.slice(0,5).map(e=>{let n=e.name===t?.name,i=e.displayName?.trim()||e.name;return(0,R.jsxs)(V,{role:`menuitem`,"aria-checked":n,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,bg:n?`$color3`:`transparent`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),n||r?.(e.name)},children:[(0,R.jsx)(T6,{org:{name:i,logo:e.logo},size:20}),(0,R.jsx)(U,{flex:1,fontSize:`$2`,fontWeight:n?`600`:`500`,color:`$color12`,numberOfLines:1,children:i}),n?(0,R.jsx)(cM,{size:14,color:`$color12`}):null]},e.name)}),i?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),i()},children:[(0,R.jsx)(B,{width:20,height:20,rounded:Q5.field,bg:`$color3`,items:`center`,justify:`center`,children:(0,R.jsx)(AM,{size:12,color:`$color11`})}),(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Create new organization…`})]}):null,a?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),a()},children:[(0,R.jsx)(B,{width:20,height:20,rounded:Q5.field,bg:`$color3`,items:`center`,justify:`center`,children:(0,R.jsx)(MM,{size:12,color:`$color11`})}),(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,color:`$color12`,children:`Hanzo Connect (share channel)…`})]}):null]}),(0,R.jsx)(AD,{borderColor:`$borderColor`,my:`$1`}),(0,R.jsxs)(B,{gap:`$0.5`,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,px:`$2`,py:`$1.5`,rounded:`$3`,children:[(0,R.jsx)(U,{fontSize:`$2`,color:`$color12`,children:`Theme`}),(0,R.jsx)(O6,{})]}),l?(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),l()},children:[(0,R.jsx)(poe,{size:15,color:`$color10`}),(0,R.jsx)(U,{fontSize:`$2`,color:`$color12`,children:`Preferences & Bots`})]}):null]}),u?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(AD,{borderColor:`$borderColor`,my:`$1`}),(0,R.jsxs)(V,{role:`menuitem`,tabIndex:0,cursor:`pointer`,items:`center`,gap:`$2.5`,px:`$2`,py:`$1.5`,rounded:`$3`,hoverStyle:{bg:`$color3`},onPress:()=>{f(!1),u()},children:[(0,R.jsx)(ooe,{size:15,color:Z.alert}),(0,R.jsx)(U,{fontSize:`$2`,fontWeight:`500`,style:{color:Z.alert},children:`Sign out`})]})]}):null]})})]})}var t7=(e,t)=>({role:`button`,tabIndex:0,cursor:`pointer`,...t?{"aria-label":t}:{},onPress:e,onKeyDown:t=>{(t.nativeEvent.key===`Enter`||t.nativeEvent.key===` `)&&(t.preventDefault(),e())}}),n7=new Set,r7=null,i7=(e=`connect`)=>{r7=e;for(let e of n7)e(r7)},a7=()=>{r7=null;for(let e of n7)e(null)};function oge(){let[e,t]=(0,b.useState)(r7),n=Zi(),{all:r,current:i,plane:a}=s3(),[o,s]=(0,b.useState)(`lux`),[c,l]=(0,b.useState)(``),[u,d]=(0,b.useState)(`hanzo-x-lux`),[f,p]=(0,b.useState)(`Cross-organization engineering, shared agents & delivery`),[m,h]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let e=e=>t(e);return n7.add(e),()=>{n7.delete(e)}},[]);let g=i?.url??`hanzo`,_=i?.name??`Hanzo AI`,v=r.filter(e=>e.url!==g),y=(c.trim()||o||`partner`).toLowerCase().replace(/[^a-z0-9-]+/g,`-`).replace(/^-|-$/g,``);if((0,b.useEffect)(()=>{y&&d(`${g}-x-${y}`)},[g,y]),!e)return null;let x=async()=>{if(!a||m)return;let e=y||`partner`,t=u.trim().toLowerCase().replace(/^#+/,``).replace(/[^a-z0-9-]+/g,`-`).replace(/^-|-$/g,``)||`${g}-x-${e}`;h(!0);try{let r=await Hhe(a,t,[e],f);R4(`chat:rooms:`),a7(),n(`/chat/${r}`)}finally{h(!1)}};return(0,R.jsx)(B,{position:`fixed`,t:0,l:0,r:0,b:0,z:1e5,items:`center`,justify:`center`,p:16,style:{backgroundColor:`var(--team-backdrop, rgba(0, 0, 0, 0.65))`,backdropFilter:`blur(4px)`},onPress:()=>a7(),children:(0,R.jsxs)(B,{width:`100%`,maxW:520,rounded:Q5.card,bg:`$panel`,borderWidth:1,borderColor:`$edge`,p:20,gap:16,onPress:e=>e.stopPropagation?.(),"data-testid":`hanzo-connect-modal`,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,gap:12,children:[(0,R.jsxs)(V,{items:`center`,gap:10,children:[(0,R.jsx)(B,{width:32,height:32,rounded:Q5.field,bg:`$background`,borderWidth:1,borderColor:`$edge`,items:`center`,justify:`center`,children:(0,R.jsx)(MM,{size:16,color:`$ink`})}),(0,R.jsxs)(B,{children:[(0,R.jsx)(H,{fontSize:Q.row,fontWeight:`700`,color:`$ink`,children:`Hanzo Connect`}),(0,R.jsx)(H,{fontSize:Q.chip,color:`$soft`,children:`Multi-org shared channels & isolated organization workspaces`})]})]}),(0,R.jsx)(V,{...t7(()=>a7(),`Close Hanzo Connect modal`),px:8,py:4,rounded:Q5.field,hoverStyle:{background:`$hover`},children:(0,R.jsx)(H,{fontSize:Q.body,color:`$soft`,children:`✕`})})]}),(0,R.jsx)(V,{bg:`$background`,p:3,rounded:Q5.field,borderWidth:1,borderColor:`$edge`,gap:4,children:(0,R.jsxs)(V,{flex:1,...t7(()=>t(`connect`),`Connect organizations tab`),py:7,px:10,rounded:Q5.field,items:`center`,justify:`center`,gap:6,bg:e===`connect`?`$panel`:`transparent`,children:[(0,R.jsx)(MM,{size:14,color:e===`connect`?`$ink`:`$soft`}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:e===`connect`?`600`:`500`,color:e===`connect`?`$ink`:`$soft`,children:`Connect Orgs (Shared Channel)`})]})}),(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(B,{gap:14,children:[(0,R.jsxs)(V,{p:12,rounded:Q5.field,bg:`$background`,borderWidth:1,borderColor:`$edge`,items:`center`,justify:`space-between`,gap:8,children:[(0,R.jsxs)(B,{gap:2,children:[(0,R.jsx)(H,{fontSize:Q.chip,color:`$faint`,children:`HOST ORGANIZATION`}),(0,R.jsxs)(H,{fontSize:Q.body,fontWeight:`700`,color:`$ink`,children:[_,` (`,g,`)`]})]}),(0,R.jsxs)(V,{px:8,py:3,rounded:Q5.pill,bg:`$panel`,borderWidth:1,borderColor:`$edge`,items:`center`,gap:5,children:[(0,R.jsx)(gM,{size:12,color:`$ink`}),(0,R.jsxs)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$ink`,children:[`connect:`,y||`org`]})]}),(0,R.jsxs)(B,{gap:2,items:`flex-end`,children:[(0,R.jsx)(H,{fontSize:Q.chip,color:`$faint`,children:`PARTNER ORGANIZATION`}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`700`,color:`$ink`,children:y||`partner`})]})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$quiet`,children:`Select or enter partner organization slug`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:v.map(e=>{let t=!c.trim()&&o===e.url;return(0,R.jsxs)(V,{...t7(()=>{l(``),s(e.url)},`Select ${e.name}`),px:10,py:5,rounded:Q5.pill,bg:t?`$ink`:`$background`,borderWidth:1,borderColor:t?`$ink`:`$edge`,items:`center`,gap:5,children:[t?(0,R.jsx)(cM,{size:12,color:`$background`}):null,(0,R.jsxs)(H,{fontSize:Q.chip,fontWeight:`600`,color:t?`$background`:`$ink`,children:[e.name,` (`,e.url,`)`]})]},e.url)})}),(0,R.jsx)(V,{px:10,py:6,rounded:Q5.field,bg:`$background`,borderWidth:1,borderColor:`$edge`,children:(0,R.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),placeholder:`Or enter external organization slug (e.g. acme, skully, partner)...`,style:{width:`100%`,border:`none`,background:`transparent`,color:`inherit`,fontSize:13,outline:`none`}})})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$quiet`,children:`Shared channel name`}),(0,R.jsxs)(V,{items:`center`,gap:6,px:10,py:6,rounded:Q5.field,bg:`$background`,borderWidth:1,borderColor:`$edge`,children:[(0,R.jsx)(_M,{size:14,color:`$soft`}),(0,R.jsx)(`input`,{value:u,onChange:e=>d(e.target.value),placeholder:`hanzo-x-partner`,style:{flex:1,border:`none`,background:`transparent`,color:`inherit`,fontSize:13,outline:`none`}})]})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$quiet`,children:`Channel purpose & agent scope`}),(0,R.jsx)(V,{px:10,py:6,rounded:Q5.field,bg:`$background`,borderWidth:1,borderColor:`$edge`,children:(0,R.jsx)(`input`,{value:f,onChange:e=>p(e.target.value),placeholder:`Cross-org engineering, shared agents & delivery`,style:{width:`100%`,border:`none`,background:`transparent`,color:`inherit`,fontSize:13,outline:`none`}})})]}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$soft`,children:[`Both organizations keep strict tenant isolation (separate IAM, KMS secrets, private repos, and billing) while humans and AI agents (@vi, @dev, @mark) collaborate in real time inside #`,u||`${g}-x-${y}`,`.`]}),(0,R.jsxs)(V,{justify:`flex-end`,gap:8,pt:4,children:[(0,R.jsx)(V,{...t7(()=>a7(),`Cancel`),px:12,py:8,rounded:Q5.field,borderWidth:1,borderColor:`$edge`,children:(0,R.jsx)(H,{fontSize:Q.body,color:`$quiet`,children:`Cancel`})}),(0,R.jsxs)(V,{...t7(()=>void x(),`Connect and create shared channel`),px:14,py:8,rounded:Q5.field,bg:`$ink`,items:`center`,gap:6,children:[(0,R.jsx)(MM,{size:14,color:`$background`}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`600`,color:`$background`,children:m?`Connecting…`:`Connect & Share Channel`})]})]})]})})]})})}var o7=1120,s7=e=>{let t=e,n=new Set;return{set:e=>{if(e!==t){t=e;for(let e of n)e()}},use:()=>(0,b.useSyncExternalStore)(e=>(n.add(e),()=>n.delete(e)),()=>t,()=>e)}},c7=s7(0),l7=s7(null),sge=c7.set,u7=c7.use,cge=l7.set;l7.use;var d7=[{id:`chat`,label:`Chat`,icon:DM,path:`/chat`},{id:`tracker`,label:`Tracker`,icon:PM,path:`/issues`},{id:`crm`,label:`CRM`,icon:iM,path:`/crm`}],f7=e=>d7.find(t=>e===t.path||e.startsWith(`${t.path}/`)||t.id===`tracker`&&(e===`/mine`||e.startsWith(`/mine/`)||e===`/projects`||e===`/projects/`||e.startsWith(`/projects/`))),lge={outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},uge={background:`radial-gradient(closest-side, var(--surface-3, rgb(255 255 255 / .12)), transparent)`},dge={background:Z.alert},fge=({notices:e,onNotices:t,onSurface:n,account:r})=>{let{pathname:i}=Yi(),a=u7();return(0,R.jsxs)(B,{width:64,shrink:0,height:`100%`,items:`center`,justify:`space-between`,pt:8,pb:12,bg:`$background`,borderRightWidth:1,borderColor:`$edge`,"data-parity-key":`shell.rail`,children:[(0,R.jsx)(TL,{flex:1,minH:0,width:`100%`,children:(0,R.jsxs)(B,{items:`center`,width:`100%`,gap:2,children:[(0,R.jsxs)(p7,{label:a>0?`${e?`Hide`:`Show`} Activity (${a} unread)`:e?`Hide Activity`:`Show Activity`,pressed:e,onPress:t,children:[(0,R.jsx)(nM,{size:18,color:e?`$ink`:`$soft`}),a>0?(0,R.jsx)(B,{position:`absolute`,t:4,r:3,minW:15,height:15,px:3,rounded:Q5.pill,items:`center`,justify:`center`,style:dge,children:(0,R.jsx)(H,{fontSize:10,lineHeight:12,fontWeight:`700`,style:{color:Z.panel},children:a})}):null]}),(0,R.jsx)(pge,{}),d7.map(e=>{let t=f7(i)?.id===e.id;return(0,R.jsx)(p7,{label:e.label,here:t,onPress:()=>n(e.path),children:(0,R.jsx)(e.icon,{size:18,color:t?`$ink`:`$soft`})},e.id)})]})}),(0,R.jsx)(B,{items:`center`,width:`100%`,gap:10,pt:6,children:(0,R.jsx)(age,{...r})})]})},pge=()=>(0,R.jsx)(AD,{width:36,my:6,borderColor:`$edge`}),p7=({label:e,here:t=!1,pressed:n,onPress:r,children:i})=>(0,R.jsxs)(TP,{children:[(0,R.jsx)(EP,{children:(0,R.jsxs)(B,{...t7(r,e),"aria-current":t?`page`:void 0,"aria-pressed":n,width:38,height:38,items:`center`,justify:`center`,position:`relative`,rounded:Q5.field,focusVisibleStyle:lge,children:[t?(0,R.jsx)(B,{position:`absolute`,width:52,height:52,style:uge,pointerEvents:`none`}):null,i]})}),(0,R.jsx)(OP,{children:e})]}),m7=({nav:e,children:t,aside:n})=>{let{pathname:r}=Yi(),i=Zi(),{who:a,leave:o,depart:s}=H4(),{all:c,current:l,choose:u}=s3(),[d,f]=(0,b.useState)(()=>typeof window>`u`?o7:window.innerWidth),[p,m]=(0,b.useState)(268),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(!1),y=$3(),x=e6(),S=d>=o7,C=d>=800,w=t=>{if(!C&&e&&(r===t||r.startsWith(`${t}/`)))return g(!0);i(t)},T=c,E=l??T[0],D=r.startsWith(`/crm`)?`crm`:`team`,O=e=>{e.id===`crm`?i(`/crm/investors`):e.id===`team`||e.id===`work`?i(`/issues`):e.id===`chat`?i(`/chat`):typeof window<`u`&&(window.location.href=e.href)},k=a?{sub:a.id,name:a.label||a.name,email:a.email,avatar:a.avatar,owner:E?.org??``}:{sub:``,name:``,email:``,owner:``},A={name:E?.url??``,displayName:E?.name??``},j=T.map(e=>({name:e.url,displayName:e.name}));return(0,R.jsxs)(IL,{bg:`$background`,children:[(0,R.jsx)(ige,{appId:D,showAppTitle:r.startsWith(`/crm`),currentOrg:A,orgs:j,onSelectOrg:e=>u(e),onSelectApp:O,onNavigate:w,user:k}),(0,R.jsxs)(V,{flex:1,minH:0,onLayout:e=>f(e.nativeEvent.layout.width),children:[(0,R.jsx)(fge,{notices:!!n&&(S?y&&x===`inbox`:_),onNotices:()=>{S?Z3(`inbox`):(X3(`inbox`),v(!_))},onSurface:w,account:{user:k,currentOrg:A,orgs:j,onSelectOrg:e=>u(e),onConnectOrg:()=>i7(`connect`),onAddAccount:()=>void s(`another`),onSignOut:()=>o()}}),C&&e?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(B,{width:p,shrink:0,minH:0,"data-parity-key":`shell.nav`,children:e}),(0,R.jsx)(mge,{value:p,onChange:m})]}):null,(0,R.jsxs)(V,{flex:1,minW:0,minH:0,pt:6,pb:6,pr:6,gap:6,children:[(0,R.jsx)(h7,{parity:`shell.main`,children:t}),n&&y&&S?(0,R.jsx)(B,{width:304,shrink:0,children:(0,R.jsx)(h7,{parity:`shell.aside`,children:n})}):null]})]}),(0,R.jsx)(mV,{open:!!n&&!S&&_,onOpenChange:v,children:(0,R.jsx)(hV,{side:`right`,width:304,p:0,bg:`$panel`,children:n})}),(0,R.jsx)(mV,{open:!!e&&h&&!C,onOpenChange:g,children:(0,R.jsx)(hV,{side:`left`,width:268,p:0,bg:`$background`,children:e})}),(0,R.jsx)(oge,{})]})},h7=({parity:e,children:t})=>(0,R.jsx)(B,{flex:1,minW:0,minH:0,bg:`$panel`,rounded:Q5.panel,overflow:`hidden`,"data-parity-key":e,children:t}),mge=({value:e,onChange:t})=>{let n=(0,b.useRef)(0),r=(0,b.useRef)(e),i=(0,b.useRef)(!1),a=e=>Math.min(380,Math.max(220,e));return(0,R.jsx)(B,{role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the navigator`,"aria-valuenow":e,"aria-valuemin":220,"aria-valuemax":380,tabIndex:0,width:1,shrink:0,bg:`$edge`,position:`relative`,cursor:`col-resize`,hoverStyle:{bg:`$soft`},focusVisibleStyle:{bg:`$outlineColor`},onPointerDown:t=>{i.current=!0,n.current=t.clientX,r.current=e,t.currentTarget.setPointerCapture?.(t.pointerId)},onPointerMove:e=>{i.current&&t(a(r.current+e.clientX-n.current))},onPointerUp:e=>{i.current=!1,e.currentTarget.releasePointerCapture?.(e.pointerId)},onPointerCancel:()=>{i.current=!1},onKeyDown:n=>{let r=n.shiftKey?1:8;n.key===`ArrowLeft`&&t(a(e-r)),n.key===`ArrowRight`&&t(a(e+r))},children:(0,R.jsx)(B,{position:`absolute`,t:0,b:0,l:-8,r:-8})})},g7={outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},hge={flexDirection:`row`},_7=({title:e,children:t})=>(0,R.jsxs)(B,{flex:1,minH:0,pt:12,pb:8,children:[(0,R.jsx)(V,{px:14,pb:10,items:`center`,justify:`space-between`,children:(0,R.jsx)(H,{fontSize:Q.row,fontWeight:`600`,color:`$ink`,numberOfLines:1,children:e})}),t]}),v7=({value:e,onChange:t})=>(0,R.jsxs)(V,{mx:14,height:34,items:`center`,gap:8,px:12,rounded:Q5.field,borderWidth:1,borderColor:`$edge`,bg:`$panel`,focusWithinStyle:g7,children:[(0,R.jsx)(jM,{size:16,color:`$soft`}),(0,R.jsx)(dL,{flex:1,unstyled:!0,height:32,borderWidth:0,bg:`transparent`,fontSize:Q.body,color:`$ink`,placeholderTextColor:`$faint`,placeholder:`Search…`,value:e,onChangeText:t})]}),y7=()=>(0,R.jsx)(AD,{my:6,mx:14,borderColor:`$edge`}),b7=({children:e,count:t,open:n=!0,onToggle:r})=>(0,R.jsxs)(V,{...r?t7(r):{},height:28,items:`center`,justify:`space-between`,px:14,gap:6,children:[(0,R.jsxs)(V,{items:`center`,gap:6,minW:0,flex:1,children:[(0,R.jsx)(gge,{open:n}),(0,R.jsx)(H,{...$5,fontSize:Q.chip,fontWeight:`600`,color:`$quiet`,numberOfLines:1,children:e})]}),t===void 0?null:(0,R.jsx)(H,{fontSize:Q.chip,color:`$faint`,children:t})]}),gge=({open:e=!0})=>(0,R.jsx)(B,{width:18,height:18,items:`center`,justify:`center`,rotate:e?`0deg`:`-90deg`,children:(0,R.jsx)(B,{width:7,height:7,borderBottomWidth:1.5,borderRightWidth:1.5,borderColor:`$soft`,rotate:`45deg`,mt:-3})}),x7=({to:e,icon:t,children:n,indent:r})=>{let{pathname:i}=Yi(),a=i===e||i.startsWith(`${e}/`);return(0,R.jsx)(V,{asChild:!0,style:hge,height:r?30:34,items:`center`,gap:8,pl:r?40:14,pr:14,mx:4,rounded:Q5.field,hoverStyle:{bg:`$hover`},focusVisibleStyle:g7,children:(0,R.jsxs)(lo,{to:e,"aria-current":a?`page`:void 0,children:[t?(0,R.jsx)(B,{width:18,height:18,items:`center`,justify:`center`,children:t}):null,(0,R.jsx)(H,{fontSize:Q.row,fontWeight:a?`500`:`400`,color:a?`$ink`:`$quiet`,numberOfLines:1,children:n})]})})},_ge=({icon:e,children:t,open:n,onPress:r})=>(0,R.jsxs)(V,{...t7(r),"aria-expanded":n,height:34,items:`center`,gap:8,px:14,mx:4,rounded:Q5.field,hoverStyle:{bg:`$hover`},focusVisibleStyle:g7,children:[e?(0,R.jsx)(B,{width:18,height:18,items:`center`,justify:`center`,children:e}):null,(0,R.jsx)(H,{fontSize:Q.row,color:`$quiet`,numberOfLines:1,children:t})]}),vge=({children:e})=>(0,R.jsxs)(B,{position:`relative`,children:[(0,R.jsx)(B,{position:`absolute`,l:27,t:0,b:0,width:1,bg:`$edge`}),e]}),S7=({children:e})=>(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsx)(B,{pb:14,children:e})}),C7={[d3.backlog]:`backlog`,[d3.todo]:`todo`,[d3.doing]:`progress`,[d3.done]:`done`,[d3.cancelled]:`done`},yge=[void 0,`urgent`,`high`,`medium`,`low`],w7={urgent:f3.urgent,high:f3.high,medium:f3.medium,low:f3.low},bge=e=>{let t=e.estimation??0;return t<=0?0:Math.max(0,Math.min(1,(e.reportedTime??0)/t))},T7=e=>({id:e._id,name:p3(e),face:e.avatar??void 0}),xge=(e,t)=>{let n=[e.assignee,...e.collaborators??[]].filter(e=>!!e),r=new Set,i=[];for(let e of n){if(r.has(e))continue;r.add(e);let n=t.get(e);n&&i.push(T7(n))}return i},Sge=(e,t)=>({id:e._id,key:vfe(t.project??t.projects.get(e.space),e),title:e.title,description:e.description,projectId:e.space,status:t.columns.get(e.status)??`backlog`,priority:yge[e.priority]??void 0,labels:t.words.get(e._id)??[],done:bge(e),people:xge(e,t.crowd),origin:e.component?Cge(t.parts.get(e.component)):void 0,files:e.attachments??0,replies:e.comments??0}),Cge=e=>e?{name:e}:void 0,E7=e=>new Map(e.map(e=>[e._id,C7[e.category]??`backlog`])),wge=(e,t)=>async(n,r,i)=>{let a=t??`proj-crm`,[o,s,c]=await Promise.all([M3(e,a),j3(e,a),A3(e,a)]),l=s.find(e=>(C7[e.category]??`backlog`)===n)??s[0];if(!l)throw Error(`this project has no ${n} column`);let u=Math.max(c?.sequence??0,...o.map(e=>e.number))+1,d=i?.priority?w7[i.priority]:0;if(await Tfe(e,e.account??``,a,{title:r,status:l._id,priority:d,number:u,after:o.find(e=>e.status===l._id)}),i&&(i.description||i.assigneeId||i.labels&&i.labels.length>0)){let t=(await M3(e,a)).find(e=>e.number===u&&e.title===r);if(t&&(await I3(e,e.account??``,t,{...i.description===void 0?{}:{description:i.description},...i.assigneeId===void 0?{}:{assignee:i.assigneeId,collaborators:i.assigneeId?[i.assigneeId]:[]}}),i.labels&&i.labels.length>0))for(let n of i.labels)await e.write(_3(a,e.account??``,l3.tag,{attachedTo:t._id,attachedToClass:l3.issue,collection:`labels`,tag:`tag-${n.toLowerCase()}`,title:n}))}},Tge=(e,t)=>({watch(n,r){let i=!0,a=()=>{Promise.all([j3(e,t),M3(e,t),N3(e),P3(e),Cfe(e),k3(e)]).then(async([r,a,o,s,c,l])=>{if(!i)return;let u=t&&a.length?await A3(e,t):void 0;if(!i)return;let d=new Map;for(let e of s){let t=d.get(e.attachedTo);t?t.push(e.title):d.set(e.attachedTo,[e.title])}let f={columns:E7(r),crowd:new Map(o.map(e=>[e._id,e])),words:d,parts:new Map(c.map(e=>[e._id,e.label])),project:u,projects:new Map(l.map(e=>[e._id,e]))};n(a.map(e=>Sge(e,f)))}).catch(e=>i&&r(e instanceof Error?e:Error(String(e))))};a();let o=e.watch(a);return()=>{i=!1,o()}},add:wge(e,t),async move(n,r,i){let a=await M3(e,t),o=a.find(e=>e._id===n);if(!o)throw Error(`no issue to move`);let s=(await j3(e,o.space)).find(e=>(C7[e.category]??`backlog`)===r);if(!s)throw Error(`no column to move into`);let c=a.filter(e=>e.status===s._id&&e._id!==n),l=i?c.findIndex(e=>e._id===i):c.length,u=l<0?c.length:l;await wfe(e,e.account??``,o,s._id,{before:c[u-1],after:c[u]})},async update(n,r){let i=(await M3(e,t)).find(e=>e._id===n);if(!i)return;let a={};if(r.title!==void 0&&(a.title=r.title),r.description!==void 0&&(a.description=r.description),r.priority!==void 0&&(a.priority=r.priority?w7[r.priority]:0),r.done!==void 0){let e=i.estimation&&i.estimation>0?i.estimation:100;a.estimation=e,a.reportedTime=Math.round(Math.max(0,Math.min(1,r.done))*e)}if(r.assigneeId!==void 0){a.assignee=r.assigneeId;let e=(i.collaborators??[]).filter(e=>e!==r.assigneeId);a.collaborators=r.assigneeId?[r.assigneeId,...e]:e}if(r.replies!==void 0&&(a.comments=r.replies),r.status!==void 0){let t=(await j3(e,i.space)).find(e=>(C7[e.category]??`backlog`)===r.status);t&&(a.status=t._id)}if(Object.keys(a).length>0&&await I3(e,e.account??``,i,a),r.labels!==void 0){let t=(await P3(e)).filter(e=>e.attachedTo===n);for(let n of t)await e.write(y3(n,e.account??``));for(let t of r.labels)await e.write(_3(i.space,e.account??``,l3.tag,{attachedTo:n,attachedToClass:l3.issue,collection:`labels`,tag:`tag-${t.toLowerCase()}`,title:t}))}},async remove(n){let r=(await M3(e,t)).find(e=>e._id===n);r&&await e.write(y3(r,e.account??``))}}),D7=e=>{let{plane:t,current:n}=s3();return(0,b.useMemo)(()=>t&&n?Tge(t,e):null,[t,n,e])},O7=e=>{let{plane:t}=s3(),n=L4(F3.people(),()=>N3(t),{enabled:!!t}),r=L4(F3.projects(),()=>k3(t),{enabled:!!t}),i=e?(r.data??[]).find(t=>t._id===e)?.members:void 0,a=new Map((n.data??[]).map(e=>[e._id,e]));return(i?i.map(e=>a.get(e)):n.data??[]).filter(e=>!!e).map(T7)},k7=e=>e===`refused`?`refused`:e===`homeless`?`nowhere`:`opening`,A7=()=>{let{plane:e}=s3();return L4(F3.projects(),()=>k3(e),{enabled:!!e})},Ege=e=>{let t=A7();return e?(t.data??[]).find(t=>t._id===e):void 0},Dge=/(@[\w.-]+)/g,j7=(e,t)=>e?[{text:e,[t]:!0}]:[],Oge=(e,t,n)=>{let r=[{text:e,strong:!0}];return(n?t.split(n):[t]).forEach((e,t)=>{t>0&&r.push(...j7(n,`strong`));for(let t of e.split(Dge))t&&(t.startsWith(`@`)?r.push(...j7(t,`mention`)):r.push({text:t}))}),r.map((e,t)=>t===1&&e.text?{...e,text:` ${e.text}`}:e)},kge=(e,t,n)=>{let r=t.get(String(e.modifiedBy??``)),i=r?p3(r):`Somebody`,a=n.get(String(e.attachedTo??``));return{id:e._id,kind:e.attachedToClass===l3.channel||e.attachedToClass===l3.direct||e.attachedToClass===l3.message?`chat`:`task`,actor:{name:i,face:r?.avatar??void 0},line:Oge(i,e.body??e.title??``,a),at:e.modifiedOn,place:a,seen:e.isViewed}},Age=()=>{let{plane:e,current:t,standing:n}=s3();return(0,b.useEffect)(()=>{if(!e||!t){let e=k7(n);B3({list:e===`refused`?()=>Promise.reject(Error(`Your workspace is not answering.`)):e===`nowhere`?()=>Promise.resolve([]):()=>new Promise(()=>{}),see:()=>Promise.resolve()});return}let r=t.uuid;B3({async list(){let[t,n,i]=await Promise.all([D3(e,r),N3(e),xfe(e,r)]),a=new Map(n.map(e=>[e._id,e]));return t.map(e=>kge(e,a,i))},async see(t){let n=(await D3(e,r)).find(e=>e._id===t);n&&!n.isViewed&&await Sfe(e,e.account??``,n)}})},[e,t,n]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(jge,{}),(0,R.jsx)(Mge,{})]})},jge=()=>{let e=H3();return(0,b.useEffect)(()=>sge(e),[e]),null},Mge=()=>{let{plane:e}=s3(),t=L4(F3.statuses(),()=>j3(e),{enabled:!!e}),n=L4(F3.issues(),()=>M3(e),{enabled:!!e}),r=E7(t.data??[]),i=n.data??[],a=i.filter(e=>r.get(e.status)!==`done`).length,o=i.length?Math.round(a/i.length*100):null;return(0,b.useEffect)(()=>cge(o),[o]),null},Nge=36,M7=21,N7=9,P7=18,Pge=e=>e.split(/\s+/).slice(0,2).map(e=>e[0]??``).join(``).toUpperCase(),F7=({spans:e,clamp:t,parity:n})=>(0,R.jsx)(H,{"data-parity-key":n,size:Q.body,lineHeight:M7,color:Z.mute,numberOfLines:t,children:e.map((e,t)=>(0,R.jsx)(H,{size:Q.body,lineHeight:M7,fontWeight:e.strong?`600`:`400`,color:e.mention?Z.alert:e.strong?Z.ink:Z.mute,children:e.text},t))}),Fge=({note:e,onSee:t})=>(0,R.jsxs)(V,{"data-parity-key":`inbox.row`,"data-seen":e.seen?`yes`:`no`,...t7(()=>t(e.id),e.line.map(e=>e.text).join(``)),px:14,py:Z5.inset,gap:Z5.tight,bg:e.seen?`transparent`:Z.card,borderBottomWidth:1,borderColor:Z.rule,hoverStyle:{background:Z.card},focusVisibleStyle:e7,children:[(0,R.jsxs)(xF,{"data-parity-key":`inbox.face`,size:Nge,children:[e.actor.face?(0,R.jsx)(SF,{src:e.actor.face,alt:``}):null,(0,R.jsx)(CF,{bg:Y5(e.actor.name).background,children:(0,R.jsx)(H,{size:Q.small,fontWeight:`600`,color:Y5(e.actor.name).color,children:Pge(e.actor.name)})})]}),(0,R.jsxs)(B,{flex:1,minW:0,gap:Z5.tight,children:[(0,R.jsxs)(B,{children:[(0,R.jsx)(F7,{spans:e.line,parity:`inbox.line`}),e.quote?(0,R.jsx)(F7,{spans:e.quote,clamp:1,parity:`inbox.quote`}):null]}),(0,R.jsxs)(V,{"data-parity-key":`inbox.meta`,items:`center`,gap:Z5.tight,overflow:`hidden`,children:[(0,R.jsx)(H,{size:Q.small,lineHeight:P7,color:Z.dim,children:(0,R.jsx)(Wle,{date:new Date(e.at),format:`short`,style:{fontSize:`inherit`,lineHeight:`inherit`,color:`inherit`,whiteSpace:`nowrap`}})}),e.place?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(H,{size:Q.small,lineHeight:P7,color:Z.dim,children:`•`}),(0,R.jsx)(H,{size:Q.small,lineHeight:P7,color:Z.dim,numberOfLines:1,children:e.place})]}):null]})]}),(0,R.jsx)(B,{"data-parity-key":`inbox.lane`,width:N7,shrink:0,pt:6,children:e.seen?null:(0,R.jsx)(B,{"data-parity-key":`inbox.dot`,role:`img`,"aria-label":`unread`,width:N7,height:N7,rounded:Q5.pill,bg:Z.alert})})]}),Ige=12,Lge=12,Rge=36,zge=6,Bge=17,I7=16,L7=24,Vge={all:SM,task:Jae,chat:loe},Hge={all:`All`,task:`Tasks`,chat:`Chat`},R7=e=>e.line.some(e=>e.mention||e.text.includes(`mentioned`))||(e.quote?.some(e=>e.mention)??!1),z7=({children:e})=>(0,R.jsx)(B,{flex:1,items:`center`,justify:`center`,p:14,gap:Z5.inset,children:e}),Uge=({tab:e,filter:t})=>{let n=V3();if(n.phase===`loading`)return(0,R.jsx)(z7,{children:(0,R.jsx)(LL,{})});if(n.phase===`failure`)return(0,R.jsxs)(z7,{children:[(0,R.jsx)(H,{size:Q.body,color:Z.mute,children:`The inbox is not answering.`}),(0,R.jsx)(H,{size:Q.body,color:Z.ink,textDecorationLine:`underline`,...t7(n.reload),focusVisibleStyle:e7,children:`Try again`})]});let r=Efe(n.data??[],e).filter(e=>t===`unread`?!e.seen:t!==`mentions`||R7(e));return r.length===0?(0,R.jsx)(z7,{children:(0,R.jsx)(H,{size:Q.body,color:Z.dim,children:t===`unread`?`All caught up — no unread notifications.`:t===`mentions`?`No mentions in this view.`:`Nothing here.`})}):(0,R.jsx)(TL,{"data-parity-key":`inbox.list`,flex:1,pt:zge,children:(0,R.jsx)(B,{role:`list`,children:r.map(e=>(0,R.jsx)(Fge,{note:e,onSee:kfe},e.id))})})},B7=()=>{let[e,t]=(0,b.useState)(`all`),[n,r]=(0,b.useState)(`all`),i=V3().data??[],a=H3(),o=i.filter(R7).length;return(0,R.jsxs)(B,{"data-parity-key":`inbox.panel`,flex:1,minH:0,children:[(0,R.jsxs)(V,{px:14,pt:Ige,items:`center`,justify:`space-between`,children:[(0,R.jsxs)(V,{items:`center`,gap:8,children:[(0,R.jsx)(H,{"data-parity-key":`inbox.title`,size:Q.row,fontWeight:`600`,color:Z.ink,children:`Inbox`}),a>0?(0,R.jsx)(V,{px:7,py:2,rounded:Q5.pill,items:`center`,justify:`center`,bg:Z.alert,children:(0,R.jsx)(H,{size:Q.chip,fontWeight:`700`,color:Z.panel,children:`${a} unread`})}):null]}),(0,R.jsxs)(V,{items:`center`,gap:6,children:[a>0?(0,R.jsx)(V,{...t7(Afe,`Mark all notifications as read`),px:7,py:3,rounded:Q5.field,hoverStyle:{background:Z.card},focusVisibleStyle:e7,children:(0,R.jsx)(H,{size:Q.chip,fontWeight:`500`,color:Z.mute,children:`Mark all read`})}):null,(0,R.jsx)(V,{"data-parity-key":`inbox.close`,...t7(Q3,`Close the inbox`),width:L7,height:L7,items:`center`,justify:`center`,rounded:Q5.field,hoverStyle:{background:Z.card},focusVisibleStyle:e7,children:(0,R.jsx)(HM,{size:14,color:Z.dim})})]})]}),(0,R.jsxs)(UL,{value:e,onValueChange:e=>t(e),orientation:`horizontal`,flex:1,minH:0,gap:0,mt:Lge,children:[(0,R.jsx)(B,{"data-parity-key":`inbox.rail`,borderBottomWidth:1,borderColor:Z.rule,children:(0,R.jsx)(WL,{height:Rge,self:`stretch`,justify:`flex-start`,items:`stretch`,p:0,pl:Z5.tight,gap:Z5.tight,bg:`transparent`,rounded:0,children:L3.map(t=>{let n=t===e,r=Vge[t],a=t===`all`?0:Dfe(i,t);return(0,R.jsxs)(KL,{"data-parity-key":`inbox.tab.${t}`,value:t,height:`100%`,flexDirection:`row`,px:Z5.tight,gap:`$1.5`,items:`center`,justify:`center`,rounded:0,bg:`transparent`,borderBottomWidth:2,borderColor:n?Z.accent:`transparent`,activeStyle:{background:`transparent`},hoverStyle:{background:`transparent`},focusStyle:{background:`transparent`},focusVisibleStyle:e7,children:[(0,R.jsx)(r,{size:Bge,color:n?Z.ink:Z.dim}),(0,R.jsx)(H,{size:Q.small,fontWeight:n?`600`:`500`,color:n?Z.ink:Z.dim,children:Hge[t]}),a>0?(0,R.jsx)(B,{"data-parity-key":`inbox.badge`,minW:I7,height:I7,px:4,rounded:Q5.pill,items:`center`,justify:`center`,bg:Z.alert,children:(0,R.jsx)(H,{size:Q.chip,fontWeight:`600`,color:Z.panel,children:a})}):null]},t)})})}),(0,R.jsx)(V,{px:14,py:8,gap:6,items:`center`,borderBottomWidth:1,borderColor:Z.rule,children:[[`all`,`All (${i.length})`],[`unread`,`Unread (${a})`],[`mentions`,`Mentions (${o})`]].map(([e,t])=>{let i=n===e;return(0,R.jsx)(V,{...t7(()=>r(e),`Filter ${t}`),px:8,py:3,rounded:Q5.pill,bg:i?Z.card:`transparent`,borderWidth:1,borderColor:i?Z.ink:Z.rule,hoverStyle:{background:Z.card},focusVisibleStyle:e7,children:(0,R.jsx)(H,{size:Q.chip,fontWeight:i?`600`:`500`,color:i?Z.ink:Z.mute,children:t})},e)})}),L3.map(t=>(0,R.jsx)(qL,{value:t,flex:1,minH:0,children:t===e?(0,R.jsx)(Uge,{tab:t,filter:n}):null},t))]})]})},Wge=()=>{let{id:e}=$i(),t=W5().data??[],n=U5().data??[],r=E5(e);if(r)return t.find(e=>e.id===r&&e.bot);let i=n.find(t=>t.id===e);return i?O5(i,t):void 0},V7=({person:e,size:t})=>(0,R.jsx)(B,{width:t,height:t,rounded:Q5.pill,overflow:`hidden`,bg:`$panel`,borderWidth:1,borderColor:`$edge`,items:`center`,justify:`center`,shrink:0,children:e.avatar?(0,R.jsx)(`img`,{src:e.avatar,alt:e.name,width:t,height:t,style:{width:t,height:t,objectFit:`cover`,display:`block`}}):(0,R.jsx)(H,{fontSize:Math.max(10,t*.42),fontWeight:`600`,color:`$quiet`,children:e.name.slice(0,1).toUpperCase()})});function Gge(){let e=e6(),t=Wge();return!t||e===`inbox`?(0,R.jsx)(B7,{}):(0,R.jsxs)(B,{flex:1,minH:0,px:14,pt:12,pb:14,gap:14,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,children:[(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`600`,color:`$quiet`,children:`${t.name} · Agent`}),(0,R.jsx)(V,{...t7(Q3,`Close inspector`),width:24,height:24,items:`center`,justify:`center`,rounded:Q5.field,hoverStyle:{background:Z.card},focusVisibleStyle:e7,children:(0,R.jsx)(HM,{size:14,color:Z.dim})})]}),(0,R.jsxs)(B,{items:`center`,gap:6,children:[(0,R.jsx)(V7,{person:t,size:52}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`600`,color:`$ink`,children:t.name})]})]})}var Kge=async(e,t)=>{let n=await X4(O4.dms,{space:e,members:[t.id]});return{id:n.channel.id,kind:`direct`,name:t.name,private:!0,archived:n.channel.archived===!0,members:n.channel.members??[]}},H7=22,qge=11,Jge=44,U7=198;function W7({placeholder:e,disabled:t,onSend:n}){let[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(null),l=r.trim()!==``&&!a&&!t,u=async()=>{if(!l)return;let e=r;o(!0),c(null);try{await n(e),i(``)}catch(e){c(e instanceof Error?e.message:String(e))}finally{o(!1)}},d=Math.min(8,r.split(`
163
- `).length),f=Math.max(Jge,Math.min(U7,d*H7+22));return(0,R.jsxs)(B,{px:24,pb:16,pt:8,gap:6,children:[s?(0,R.jsx)(H,{fontSize:`$1`,style:{color:Z.alert},children:s}):null,(0,R.jsxs)(V,{items:`flex-end`,gap:8,pl:16,pr:6,py:5,rounded:U7,bg:`$raised`,borderWidth:1,borderColor:`$edge`,opacity:t?.6:1,focusWithinStyle:{borderColor:`$bound`},children:[(0,R.jsx)(ZL,{flex:1,unstyled:!0,rows:1,height:f,minH:f,maxH:U7,py:qge,borderWidth:0,bg:`transparent`,fontSize:`$3`,lineHeight:H7,color:`$ink`,placeholderTextColor:`$placeholderColor`,placeholder:t??e,value:r,disabled:!!t,"aria-label":e,onChangeText:i,onKeyDown:e=>{e.nativeEvent.key!==`Enter`||e.shiftKey||(e.preventDefault?.(),u())}}),(0,R.jsx)(B,{"aria-disabled":!l,...t7(()=>void u(),`Send`),cursor:l?`pointer`:`default`,width:32,height:32,items:`center`,justify:`center`,rounded:16,style:{background:l?Z.accent:void 0},bg:l?void 0:`$hover`,opacity:l?1:.5,focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:(0,R.jsx)(tM,{size:17,color:l?`$background`:`$soft`})})]})]})}var Yge=3e5,Xge=e=>{let t=[],n=null,r=``;for(let i of e){let e=Qge(i.at);if(e!==r&&(r=e,n=null,t.push({kind:`day`,id:`day:${e}`,at:i.at})),n&&n.author===i.author&&i.at-Zge(n).at<=Yge){n.messages.push(i);continue}n={id:i.id,author:i.author,at:i.at,messages:[i]},t.push({kind:`run`,...n})}return t},Zge=e=>e.messages[e.messages.length-1],Qge=e=>{let t=new Date(e);return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`},$ge=(e,t=Date.now())=>{let n=G7(t)-G7(e);if(n===0)return`Today`;if(n===1)return`Yesterday`;let r=new Date(e),i=r.getFullYear()===new Date(t).getFullYear()?void 0:`numeric`;return r.toLocaleDateString(void 0,{month:`long`,day:`numeric`,year:i})},G7=e=>{let t=new Date(e);return Math.floor((e-t.getTimezoneOffset()*6e4)/864e5)},e_e=e=>new Date(e).toLocaleTimeString(void 0,{hour:`numeric`,minute:`2-digit`});function K7({author:e,at:t,messages:n,people:r,reactions:i,me:a,onReact:o,onOpen:s,open:c}){let l=G5(r,e),u=r.find(e=>e.name===l);return(0,R.jsxs)(V,{px:24,pt:12,gap:12,items:`flex-start`,children:[(0,R.jsxs)(xF,{circular:!0,size:36,children:[u?.avatar?(0,R.jsx)(SF,{src:u.avatar,alt:``}):null,(0,R.jsx)(CF,{bg:`$raised`,children:(0,R.jsx)(H,{fontSize:`$2`,color:`$quiet`,children:Yhe(l)})})]}),(0,R.jsxs)(B,{flex:1,minW:0,gap:2,children:[(0,R.jsxs)(V,{gap:8,items:`baseline`,children:[(0,R.jsx)(H,{fontSize:`$3`,fontWeight:`600`,color:`$ink`,children:l}),(0,R.jsx)(H,{fontSize:`$1`,color:`$dim`,children:e_e(t)})]}),n.map(e=>(0,R.jsx)(t_e,{message:e,reactions:i.filter(t=>t.message===e.id),me:a,onReact:o,onOpen:s,open:c===e.id},e.id))]})]})}function t_e({message:e,reactions:t,me:n,onReact:r,onOpen:i,open:a}){let o=J7(t);return(0,R.jsxs)(B,{group:!0,position:`relative`,pr:72,py:2,rounded:`$1`,bg:a?`$hover`:`transparent`,hoverStyle:{background:`$hover`},children:[e.lines.map((e,t)=>(0,R.jsx)(H,{fontSize:`$3`,lineHeight:22,color:`$ink`,children:Dhe(e).map((e,t)=>e.kind===`text`?(0,R.jsx)(H,{fontSize:`$3`,lineHeight:22,color:`$ink`,children:e.value},t):(0,R.jsx)(H,{fontSize:`$3`,lineHeight:22,style:{color:e.kind===`mention`?Z.alert:Z.accent},fontWeight:e.kind===`mention`?`500`:`400`,...e.kind===`link`?{tag:`a`,href:e.value,target:`_blank`,rel:`noreferrer`}:{},children:e.value},t))},t)),o.length>0?(0,R.jsx)(V,{gap:4,pt:4,flexWrap:`wrap`,children:o.map(t=>(0,R.jsx)(n_e,{emoji:t.emoji,count:t.by.length,mine:t.by.includes(n),onPress:()=>r(e,t.emoji)},t.emoji))}):null,e.replies>0?(0,R.jsxs)(V,{items:`center`,gap:5,pt:4,...t7(()=>i(e)),children:[(0,R.jsx)(EM,{size:13,color:Z.accent}),(0,R.jsx)(H,{fontSize:`$1`,style:{color:Z.accent},children:e.replies===1?`1 reply`:`${e.replies} replies`})]}):null,(0,R.jsxs)(V,{position:`absolute`,t:0,r:8,gap:2,opacity:0,"$group-hover":{opacity:1},focusWithinStyle:{opacity:1},children:[(0,R.jsx)(q7,{label:`React`,onPress:()=>r(e,`👍`),children:(0,R.jsx)(hoe,{size:15,color:`$soft`})}),(0,R.jsx)(q7,{label:`Reply in thread`,onPress:()=>i(e),children:(0,R.jsx)(EM,{size:15,color:`$soft`})})]})]})}var q7=({label:e,onPress:t,children:n})=>(0,R.jsx)(B,{width:26,height:26,items:`center`,justify:`center`,rounded:`$1`,bg:`$panel`,borderWidth:1,borderColor:`$edge`,...t7(t,e),hoverStyle:{background:`$hover`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:n}),n_e=({emoji:e,count:t,mine:n,onPress:r})=>(0,R.jsxs)(V,{"aria-pressed":n,height:22,items:`center`,gap:4,px:7,rounded:11,borderWidth:1,borderColor:n?`$bound`:`$edge`,bg:n?`$hover`:`$raised`,...t7(r),hoverStyle:{borderColor:`$bound`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:[(0,R.jsx)(H,{fontSize:12,lineHeight:14,children:e}),(0,R.jsx)(H,{fontSize:`$1`,color:n?`$ink`:`$quiet`,children:t})]}),J7=e=>{let t=[];for(let n of e){let e=t.find(e=>e.emoji===n.emoji);e?e.by.push(n.by):t.push({emoji:n.emoji,by:[n.by]})}return t};function Y7({room:e,phase:t,error:n,messages:r,people:i,reactions:a,me:o,onRetry:s,onReact:c,onOpen:l,open:u}){return t===`loading`?(0,R.jsx)(Z7,{}):t===`failure`?(0,R.jsx)(Q7,{error:n,onRetry:s}):r.length===0?(0,R.jsx)(a_e,{room:e}):(0,R.jsx)(r_e,{messages:r,people:i,reactions:a,me:o,onReact:c,onOpen:l,open:u})}function r_e({messages:e,people:t,reactions:n,me:r,onReact:i,onOpen:a,open:o}){let s=(0,b.useRef)(null),c=e[e.length-1]?.id;return(0,b.useEffect)(()=>{s.current?.scrollIntoView({block:`end`})},[c]),(0,R.jsx)(B,{flex:1,minH:0,style:{overflowY:`auto`},children:(0,R.jsxs)(B,{pt:4,pb:12,children:[Xge(e).map(e=>e.kind===`day`?(0,R.jsx)(i_e,{at:e.at},e.id):(0,R.jsx)(K7,{author:e.author,at:e.at,messages:e.messages,people:t,reactions:n,me:r,onReact:i,onOpen:a,open:o},e.id)),(0,R.jsx)(`div`,{ref:e=>void(s.current=e)})]})})}var i_e=({at:e})=>(0,R.jsx)(B,{px:24,pt:20,pb:4,children:(0,R.jsx)(B,{height:1,bg:`$edge`,position:`relative`,justify:`center`,children:(0,R.jsx)(H,{position:`absolute`,self:`center`,px:10,bg:`$panel`,fontSize:`$1`,color:`$dim`,children:$ge(e)})})}),X7=({children:e})=>(0,R.jsx)(B,{flex:1,minH:0,items:`center`,justify:`center`,p:24,children:e}),Z7=()=>(0,R.jsx)(X7,{children:(0,R.jsx)(LL,{size:16})}),Q7=({error:e,onRetry:t})=>(0,R.jsx)(X7,{children:(0,R.jsx)(spe,{state:ape(e),onRetry:t})}),a_e=({room:e})=>(0,R.jsx)(X7,{children:(0,R.jsxs)(B,{gap:6,maxW:340,items:`center`,children:[(0,R.jsx)(H,{fontSize:`$4`,fontWeight:`500`,color:`$ink`,children:e.kind===`direct`?e.name:`#${e.name}`}),(0,R.jsx)(H,{fontSize:`$2`,color:`$dim`,text:`center`,children:e.topic?e.topic:e.kind===`direct`?`The beginning of your conversation.`:`This is the beginning of the channel. Say something.`})]})}),$7=({people:e,size:t=28,show:n=3,ground:r=Z.ground})=>{if(e.length===0)return null;let i=e.slice(0,n),a=e.length-i.length,o=Math.round(t*.575);return(0,R.jsxs)(V,{items:`center`,"aria-label":`${e.length} assigned`,children:[i.map((e,n)=>(0,R.jsx)(B,{ml:n===0?0:o-t,rounded:9999,borderWidth:2,style:{backgroundColor:r,borderColor:r},children:(0,R.jsxs)(xF,{size:t,"aria-label":e.name,children:[e.face?(0,R.jsx)(SF,{src:e.face,alt:``}):null,(0,R.jsx)(CF,{children:o_e(e.name)})]})},e.id)),a>0?(0,R.jsxs)(H,{fontSize:`$2`,color:`$quiet`,ml:6,children:[`+`,a]}):null]})},o_e=e=>(e[0]??``).toUpperCase();function s_e({members:e,people:t}){return e.length===0?null:(0,R.jsx)($7,{people:e.map(e=>({id:e,name:G5(t,e),face:c_e(t,e)})),size:28,show:4,ground:`$panel`})}var c_e=(e,t)=>{let n=t.startsWith(`hanzo:`)?t.slice(6):t;return e.find(e=>e.id===n||e.id===t)?.avatar};function l_e({room:e,parent:t,replies:n,phase:r,error:i,people:a,reactions:o,me:s,onClose:c,onRetry:l,onReact:u,onSend:d}){return(0,R.jsxs)(B,{width:360,shrink:0,minH:0,borderLeftWidth:1,borderLeftColor:`$edge`,children:[(0,R.jsxs)(V,{height:56,items:`center`,px:20,gap:8,children:[(0,R.jsx)(H,{flex:1,fontSize:`$4`,fontWeight:`500`,color:`$ink`,children:`Thread`}),(0,R.jsx)(B,{width:28,height:28,items:`center`,justify:`center`,rounded:`$1`,...t7(c,`Close the thread`),hoverStyle:{background:`$hover`},focusVisibleStyle:{outlineColor:`$outlineColor`,outlineWidth:2,outlineStyle:`solid`},children:(0,R.jsx)(HM,{size:16,color:`$soft`})})]}),(0,R.jsx)(B,{pb:8,borderBottomWidth:1,borderBottomColor:`$edge`,children:(0,R.jsx)(K7,{author:t.author,at:t.at,messages:[t],people:a,reactions:o,me:s,onReact:u,onOpen:()=>{}})}),(0,R.jsx)(Y7,{room:e,phase:r,error:i,messages:n,people:a,reactions:o,me:s,onRetry:l,onReact:u,onOpen:()=>{}}),(0,R.jsx)(W7,{placeholder:`Reply…`,onSend:d})]})}var u_e={"dm-algo":`dm-sci`,"dm-cal":`dm-mana`,"dm-core":`dm-opera`,"dm-db":`dm-data`,"dm-sec":`dm-cyber`};function e9(){let{id:e}=$i(),t=e&&(u_e[e]??e),{plane:n,current:r}=s3(),i=U5(),a=W5(),o=E5(t),s=(0,b.useMemo)(()=>o?(a.data??[]).find(e=>e.id===o):void 0,[o,a.data]),c=r?.uuid??``,l=L4(`chat:dm:${c}:${s?.id??`-`}`,()=>Kge(c,s),{enabled:!!(n&&s&&c)}),u=(0,b.useMemo)(()=>(i.data??[]).find(e=>e.id===t)??null,[i.data,t]),d=o?l.data??null:u,f=d?O5(d,a.data??[]):void 0,p=Whe(d?.id??null),m=p.data??[],h=Ghe((0,b.useMemo)(()=>m.map(e=>e.id),[m]));qhe(d?.id??null);let[g,_]=(0,b.useState)(null),v=m.find(e=>e.id===g)??null,y=Khe(v?.id??null),x=n?.account??``,S=a.data??[],C=h.data??[],w=(0,b.useCallback)((e,t)=>{if(!n||!d)return;let r=J7(C.filter(t=>t.message===e.id)).find(e=>e.emoji===t),i=C.find(n=>n.message===e.id&&n.emoji===t&&n.by===x);(r&&i?Vhe(n,d,i):Bhe(n,d,e,t)).then(()=>R4(`chat:reactions:`))},[n,d,C,x]);if(!t)return(0,R.jsx)(f_e,{});if(o){if(a.phase===`failure`)return(0,R.jsx)(Q7,{error:a.error,onRetry:a.reload});if(a.phase===`loading`||!n)return(0,R.jsx)(Z7,{});if(!s)return(0,R.jsx)(t9,{});if(l.phase===`failure`)return(0,R.jsx)(Q7,{error:l.error,onRetry:l.reload});if(!d)return(0,R.jsx)(Z7,{})}else if(i.phase===`failure`)return(0,R.jsx)(Q7,{error:i.error,onRetry:i.reload});else if(i.phase===`loading`||!n)return(0,R.jsx)(Z7,{});return d?(0,R.jsxs)(V,{flex:1,minH:0,children:[(0,R.jsxs)(B,{flex:1,minW:0,minH:0,children:[(0,R.jsx)(d_e,{room:d,people:S,agent:f}),(0,R.jsx)(Y7,{room:d,phase:p.phase,error:p.error,messages:m,people:S,reactions:C,me:x,onRetry:p.reload,onReact:w,onOpen:e=>_(e.id),open:g??void 0}),(0,R.jsx)(W7,{placeholder:d.kind===`direct`?`Message ${N5(d,S)}`:`Message #${d.name}`,onSend:e=>Rhe(n,d,e,S)})]}),v?(0,R.jsx)(l_e,{room:d,parent:v,replies:y.data??[],phase:y.phase,error:y.error,people:S,reactions:C,me:x,onClose:()=>_(null),onRetry:y.reload,onReact:w,onSend:e=>zhe(n,d,v,e,S)}):null]}):(0,R.jsx)(t9,{})}function d_e({room:e,people:t,agent:n}){let r=u7(),i=$3(),a=e6();return(0,R.jsx)(B,{borderBottomWidth:1,borderBottomColor:`$edge`,bg:`$panel`,children:(0,R.jsxs)(V,{px:20,py:10,items:`center`,justify:`space-between`,gap:12,children:[n?(0,R.jsxs)(V,{flex:1,minW:0,items:`center`,gap:12,children:[(0,R.jsx)(V7,{person:n,size:34}),(0,R.jsxs)(V,{items:`center`,gap:8,flexWrap:`wrap`,children:[(0,R.jsx)(H,{fontSize:Q.row,fontWeight:`600`,color:`$ink`,children:n.name}),(0,R.jsx)(V,{px:7,py:2,rounded:Q5.field,bg:`$raised`,borderWidth:1,borderColor:`$edge`,children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`500`,color:`$quiet`,children:`Agent`})})]})]}):(0,R.jsxs)(V,{flex:1,minW:0,items:`center`,gap:10,children:[(0,R.jsxs)(V,{items:`center`,gap:6,shrink:0,children:[e.kind===`direct`?null:e.private?(0,R.jsx)(CM,{size:16,color:`$quiet`}):(0,R.jsx)(_M,{size:17,color:`$quiet`}),(0,R.jsx)(H,{fontSize:Q.row,fontWeight:`600`,color:`$ink`,numberOfLines:1,children:N5(e,t??[])})]}),e.topic?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(B,{width:1,height:14,bg:`$edge`,shrink:0}),(0,R.jsx)(H,{fontSize:Q.small,color:`$dim`,numberOfLines:1,flex:1,children:e.topic})]}):null]}),(0,R.jsxs)(V,{items:`center`,gap:8,shrink:0,children:[n?null:(0,R.jsx)(s_e,{members:e.members,people:t??[]}),(0,R.jsxs)(V,{...t7(()=>Z3(`inbox`),`Toggle Inbox drawer`),"aria-pressed":i&&a===`inbox`,px:9,py:5,rounded:Q5.field,bg:i&&a===`inbox`?`$hover`:`$raised`,borderWidth:1,borderColor:i&&a===`inbox`?`$bound`:`$edge`,items:`center`,gap:6,hoverStyle:{background:`$hover`},focusVisibleStyle:e7,children:[(0,R.jsx)(nM,{size:13,color:i&&a===`inbox`?`$ink`:`$quiet`}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`500`,color:i&&a===`inbox`?`$ink`:`$quiet`,children:`Inbox`}),r>0?(0,R.jsx)(B,{minW:16,height:16,px:4,rounded:Q5.pill,items:`center`,justify:`center`,style:{background:Z.alert},children:(0,R.jsx)(H,{fontSize:10,lineHeight:12,fontWeight:`700`,style:{color:Z.panel},children:r})}):null]})]})]})})}var f_e=()=>(0,R.jsx)(X7,{children:(0,R.jsx)(j6,{icon:DM,title:`Chat`,description:`Choose a channel or a conversation to read it.`})}),t9=()=>(0,R.jsx)(X7,{children:(0,R.jsx)(j6,{icon:DM,title:`No such room`,description:`It may have been archived, or it may belong to another space.`})});function p_e(){let{pathname:e}=Yi(),t=Zi(),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!0),[o,s]=(0,b.useState)(!0),[c,l]=(0,b.useState)(!0),u=U5(),d=W5().data??[],f=u.data??[],p=n.trim().toLowerCase(),m=p?f.filter(e=>e.name.toLowerCase().includes(p)):f,h=m.filter(e=>e.kind===`channel`),g=h.filter(e=>!e.connectedOrgs||e.connectedOrgs.length===0),_=h.filter(e=>e.connectedOrgs&&e.connectedOrgs.length>0),v=m.filter(e=>e.kind===`direct`&&!O5(e,d)),y=D5(d).filter(e=>!p||e.name.toLowerCase().includes(p));return(0,R.jsxs)(_7,{title:f7(e)?.label??`Chat`,children:[(0,R.jsx)(v7,{value:n,onChange:r}),(0,R.jsx)(B,{height:8}),(0,R.jsx)(y7,{}),(0,R.jsxs)(S7,{children:[u.phase===`loading`?(0,R.jsx)(B,{px:14,py:12,children:(0,R.jsx)(LL,{size:16})}):null,u.phase===`failure`?(0,R.jsx)(r9,{children:`Your rooms could not be read.`}):null,u.phase===`ready`&&f.length===0&&y.length===0?(0,R.jsx)(r9,{children:`No rooms yet.`}):null,u.phase===`ready`&&f.length>0&&m.length===0&&y.length===0?(0,R.jsx)(r9,{children:`Nothing matches “${n.trim()}”.`}):null,g.length>0?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(b7,{count:g.length,open:i,onToggle:()=>a(e=>!e),children:`Channels`}),i?g.map(e=>(0,R.jsx)(n9,{room:e,roster:d},e.id)):null]}):null,u.phase===`ready`&&(!p||_.length>0)?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(y7,{}),(0,R.jsx)(b7,{count:_.length,open:o,onToggle:()=>s(e=>!e),children:`Hanzo Connect`}),o?(0,R.jsxs)(R.Fragment,{children:[_.map(e=>(0,R.jsx)(n9,{room:e,roster:d},e.id)),(0,R.jsxs)(V,{...t7(()=>i7(`connect`),`Connect external organization channel`),px:14,py:6,mx:4,gap:8,items:`center`,rounded:Q5.field,hoverStyle:{background:`$hover`},"data-testid":`hanzo-connect-add-trigger`,children:[(0,R.jsx)(AM,{size:14,color:`$soft`}),(0,R.jsx)(H,{fontSize:Q.body,color:`$quiet`,fontWeight:`500`,children:`Connect organization…`})]})]}):null]}):null,y.length>0?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(y7,{}),(0,R.jsx)(b7,{count:y.length,open:c,onToggle:()=>l(e=>!e),children:`Bots`}),c?y.map(n=>{let r=T5(n),i=e===r;return(0,R.jsxs)(V,{...t7(()=>t(r),n.name),px:12,py:6,mx:4,gap:10,items:`center`,rounded:Q5.field,bg:i?`$hover`:`transparent`,hoverStyle:{background:`$hover`},children:[(0,R.jsx)(V7,{person:n,size:26}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`600`,color:`$ink`,numberOfLines:1,flex:1,children:n.name})]},n.id)}):null]}):null,v.length>0?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(y7,{}),(0,R.jsx)(b7,{count:v.length,children:`Direct`}),v.map(e=>(0,R.jsx)(n9,{room:e,roster:d},e.id))]}):null]})]})}var n9=({room:e,roster:t})=>{let n=e.connectedOrgs&&e.connectedOrgs.length>0?`${e.name} · ${e.connectedOrgs.join(`, `)}`:N5(e,t);return(0,R.jsx)(x7,{to:`/chat/${e.id}`,icon:(0,R.jsx)(m_e,{room:e}),children:n})},m_e=({room:e})=>e.kind===`direct`?null:e.connectedOrgs&&e.connectedOrgs.length>0?(0,R.jsx)(MM,{size:14,color:`$soft`}):e.private?(0,R.jsx)(CM,{size:14,color:`$soft`}):(0,R.jsx)(_M,{size:16,color:`$soft`}),r9=({children:e})=>(0,R.jsx)(H,{px:14,py:8,fontSize:`$2`,color:`$faint`,children:e});k8();var h_e=`https://api.hanzo.ai`,i9=e=>Y4(`${h_e}${e}`),g_e=[`investors`,`funds`,`customers`,`leads`,`feedback`,`errors`,`lists`],a9=[{value:`NEW`,label:`New`,color:`pink`},{value:`SCREENING`,label:`Screening`,color:`purple`},{value:`MEETING`,label:`Meeting`,color:`blue`},{value:`PROPOSAL`,label:`Proposal`,color:`amber`},{value:`CUSTOMER`,label:`Customer`,color:`green`}],__e=[{name:`name`,label:`Investor`,type:`text`,metadata:{avatar:`circle`}},{name:`company`,label:`Firm / Fund`,type:`relation`,metadata:{labelField:`name`,shape:`square`}},{name:`category`,label:`Category`,type:`select`,metadata:{options:[{value:`vc`,label:`Institutional VC`,color:`blue`},{value:`crypto_vc`,label:`Crypto / Web3 VC`,color:`purple`},{value:`accredited`,label:`Accredited High-Check`,color:`green`},{value:`angel`,label:`Angel Investor`,color:`amber`},{value:`family_office`,label:`Family Office`,color:`cyan`},{value:`crowdfunding_republic`,label:`Republic / Reg CF`,color:`orange`}]}},{name:`stage`,label:`Stage`,type:`select`,metadata:{options:a9}},{name:`email`,label:`Email`,type:`email`},{name:`title`,label:`Title`,type:`text`},{name:`checkSize`,label:`Check Size`,type:`text`},{name:`location`,label:`Location`,type:`text`}],v_e=[{name:`name`,label:`Fund / Firm`,type:`text`,metadata:{avatar:`square`}},{name:`stage`,label:`Stage`,type:`select`,metadata:{options:a9}},{name:`aum`,label:`AUM`,type:`text`},{name:`checkSize`,label:`Check Size`,type:`text`},{name:`primaryEmail`,label:`Primary Email`,type:`email`},{name:`website`,label:`Url`,type:`url`},{name:`location`,label:`Location`,type:`text`}],y_e=[{name:`name`,label:`Customer`,type:`text`,metadata:{avatar:`circle`}},{name:`email`,label:`Email`,type:`email`},{name:`product`,label:`Product`,type:`text`},{name:`totalSpent`,label:`Total Spent`,type:`currency`,metadata:{currencyCode:`USD`,decimals:0}},{name:`stage`,label:`Stage`,type:`select`,metadata:{options:a9}},{name:`location`,label:`Location`,type:`text`}],b_e=[{name:`name`,label:`Developer`,type:`text`,metadata:{avatar:`circle`}},{name:`handle`,label:`GitHub`,type:`text`},{name:`email`,label:`Email`,type:`email`},{name:`company`,label:`Company`,type:`relation`,metadata:{labelField:`name`,shape:`square`}},{name:`stars`,label:`Stars`,type:`number`},{name:`followers`,label:`Followers`,type:`number`},{name:`location`,label:`Location`,type:`text`}],x_e=[{name:`name`,label:`Audience / Segment`,type:`text`,metadata:{avatar:`square`}},{name:`purpose`,label:`Engine`,type:`text`},{name:`totalCount`,label:`Total Contacts`,type:`number`},{name:`eligibleCount`,label:`Deliverable`,type:`number`},{name:`description`,label:`Description`,type:`text`}],S_e=[{name:`name`,label:`Subject / Summary`,type:`text`,metadata:{avatar:`square`}},{name:`program`,label:`Kind`,type:`text`},{name:`email`,label:`Submitter`,type:`email`},{name:`company`,label:`Organization`,type:`text`},{name:`source`,label:`Source`,type:`text`},{name:`recordCode`,label:`Ref / Report ID`,type:`text`,readOnly:!0},{name:`closeDate`,label:`Submitted At`,type:`date`}],C_e=[{name:`name`,label:`Exception / Fault`,type:`text`,metadata:{avatar:`square`}},{name:`program`,label:`Class / Type`,type:`text`},{name:`company`,label:`Service / App`,type:`text`},{name:`location`,label:`Origin / File`,type:`text`},{name:`source`,label:`Env & Release`,type:`text`},{name:`recordCode`,label:`Event / Issue ID`,type:`text`,readOnly:!0},{name:`closeDate`,label:`Occurred At`,type:`date`}],w_e={name:(0,R.jsx)(aM,{size:14,color:`$color10`}),domainName:(0,R.jsx)(bM,{size:14,color:`$color10`}),website:(0,R.jsx)(bM,{size:14,color:`$color10`}),createdBy:(0,R.jsx)(BM,{size:14,color:`$color10`}),city:(0,R.jsx)(TM,{size:14,color:`$color10`}),location:(0,R.jsx)(TM,{size:14,color:`$color10`}),country:(0,R.jsx)(gM,{size:14,color:`$color10`}),employees:(0,R.jsx)(VM,{size:14,color:`$color10`}),arr:(0,R.jsx)(pM,{size:14,color:`$color10`}),amount:(0,R.jsx)(pM,{size:14,color:`$color10`}),totalSpent:(0,R.jsx)(pM,{size:14,color:`$color10`}),company:(0,R.jsx)(aM,{size:14,color:`$color10`}),pointOfContact:(0,R.jsx)(BM,{size:14,color:`$color10`}),rating:(0,R.jsx)(FM,{size:14,color:`$color10`}),closeDate:(0,R.jsx)(sM,{size:14,color:`$color10`}),recordCode:(0,R.jsx)(_M,{size:14,color:`$color10`}),email:(0,R.jsx)(wM,{size:14,color:`$color10`}),primaryEmail:(0,R.jsx)(wM,{size:14,color:`$color10`}),jobTitle:(0,R.jsx)(iM,{size:14,color:`$color10`}),title:(0,R.jsx)(iM,{size:14,color:`$color10`})};function T_e(){let[e,t]=(0,b.useState)(``),n=e.trim().toLowerCase(),r=[{to:`investors`,label:`Investors`,icon:(0,R.jsx)(LM,{size:15,color:X5(`investors`)}),group:`Audiences`},{to:`funds`,label:`Funds`,icon:(0,R.jsx)(iM,{size:15,color:X5(`funds`)}),group:`Audiences`},{to:`customers`,label:`Customers`,icon:(0,R.jsx)(VM,{size:15,color:X5(`customers`)}),group:`Audiences`},{to:`leads`,label:`Developer Leads`,icon:(0,R.jsx)(UM,{size:15,color:X5(`leads`)}),group:`Audiences`},{to:`feedback`,label:`Feedback, Bugs & Forms`,icon:(0,R.jsx)(hM,{size:15,color:X5(`feedback`)}),group:`Inbound`},{to:`errors`,label:`Runtime & CLI Errors`,icon:(0,R.jsx)(Zj,{size:15,color:X5(`errors`)}),group:`Inbound`},{to:`lists`,label:`Lists & Segments`,icon:(0,R.jsx)(vM,{size:15,color:`$soft`}),group:`Engagement`}].filter(e=>!n||e.label.toLowerCase().includes(n)),i=[...new Set(r.map(e=>e.group))];return(0,R.jsxs)(_7,{title:`CRM`,children:[(0,R.jsx)(v7,{value:e,onChange:t}),(0,R.jsx)(B,{height:12}),(0,R.jsx)(S7,{children:i.map((e,t)=>(0,R.jsxs)(B,{children:[t>0?(0,R.jsx)(y7,{}):null,(0,R.jsx)(b7,{children:e}),r.filter(t=>t.group===e).map(e=>(0,R.jsx)(x7,{to:`/crm/${e.to}`,icon:e.icon,children:e.label},e.to))]},e))})]})}var o9=e=>[e.city,e.state,e.country].filter(Boolean).join(`, `)||String(e.location??``),s9=e=>typeof e==`string`?e.slice(0,10):``,E_e=async(e,t,n)=>{switch(e){case`investors`:{let e=await i9(`/v1/crm/investors?limit=250&category=${n===`all`?`vc`:n}`),t=(e.items??[]).filter(e=>e.name||e.email).map(e=>({id:String(e.id),name:String(e.name??e.email),company:String(e.company??e.fund_name??``),category:String(e.category??``),stage:String(e.stage??``).toUpperCase(),email:String(e.email??``),title:String(e.title??``),checkSize:String(e.check_size??``),location:o9(e)}));return{rows:t,total:e.total??t.length}}case`funds`:{let e=await i9(`/v1/crm/funds?limit=250`),t=(e.items??[]).map(e=>({id:String(e.id),name:String(e.name??``),stage:String(e.stage??``).toUpperCase(),aum:String(e.aum??``),checkSize:String(e.check_size??``),primaryEmail:String(e.primary_email??``),website:String(e.website??``),location:String(e.location??e.country??``)}));return{rows:t,total:e.total??t.length}}case`customers`:{let e=await i9(`/v1/crm/customers?limit=250`),t=(e.items??[]).map(e=>({id:String(e.id),name:String(e.name??e.email??``),email:String(e.email??``),product:String(e.products??e.product??``),totalSpent:Number(e.total_spent??e.amount??0),stage:`CUSTOMER`,location:o9(e)}));return{rows:t,total:e.total??t.length}}case`leads`:{let e=new URLSearchParams({limit:`200`}),[n,r]=t===`all`?[]:t.endsWith(`+`)?[t.slice(0,-1)]:t.split(`-`);n&&e.set(`min_stars`,n===`0`?`1`:n),r&&e.set(`max_stars`,r);let i=await i9(`/v1/crm/leads?${e}`),a=(i.leads??[]).map((e,t)=>({id:String(e.id??e.github_login??t),name:String(e.name??e.github_login??e.email??``),handle:e.github_login?`@${e.github_login}`:``,email:String(e.email??``),company:String(e.company??``),stars:Number(e.total_stars??e.stars??0),followers:Number(e.followers??0),location:String(e.location??e.country??``)}));return{rows:a,total:i.total??a.length}}case`feedback`:{let[e,t]=await Promise.all([i9(`/v1/base/collections/activities/records?perPage=150&sort=-at,-created`),i9(`/v1/base/collections/people/records?perPage=250`)]),n=new Map((t.items??[]).map(e=>[String(e.id),e])),r=(e.items??[]).filter(e=>e.kind===`form`||e.data?.program).map((e,t)=>{let r=e.data??{},i=n.get(String(e.person_id??``))??{};return{id:String(e.id??t),name:String(e.subject??r.need??r.description??``),program:String(r.program??r.kind??`feedback`),email:String(i.email??r.email??``),company:String(i.company??i.name??r.company??``),source:String(r.source??e.channel??``),recordCode:String(r.public_ref??e.source_id??e.id??``),closeDate:s9(e.at??e.created)}});return{rows:r,total:e.totalItems??r.length}}case`errors`:{let e=await i9(`/v1/event/errors?limit=100`),t=(Array.isArray(e)?e:e.items??e.errors??[]).map((e,t)=>{let n=String(e.environment??e.env??``),r=String(e.release??``);return{id:String(e.id??e.event_id??t),name:String(e.value??e.message??e.title??``),program:String(e.type??e.class??e.name??``),company:String(e.app??e.service??e.product??``),location:String(e.culprit??e.origin??e.path??``),source:[n,r].filter(Boolean).join(` · `),recordCode:String(e.issue??e.id??e.event_id??``),closeDate:s9(e.timestamp??e.time??e.created_at)}});return{rows:t,total:t.length}}case`lists`:{let e=await i9(`/v1/crm/lists`),t=(e.items??[]).map(e=>({id:String(e.id),name:String(e.name??``),purpose:String(e.purpose??e.kind??``),totalCount:Number(e.total_count??e.eligible_count??0),eligibleCount:Number(e.eligible_count??e.total_count??0),description:String(e.description??``)}));return{rows:t,total:e.total??t.length}}}},D_e={investors:__e,funds:v_e,customers:y_e,leads:b_e,feedback:S_e,errors:C_e,lists:x_e},O_e={investors:{title:`Investors`,icon:(0,R.jsx)(LM,{size:14})},funds:{title:`Funds`,icon:(0,R.jsx)(iM,{size:14})},customers:{title:`Customers`,icon:(0,R.jsx)(VM,{size:14})},leads:{title:`Developer Leads`,icon:(0,R.jsx)(UM,{size:14})},feedback:{title:`Feedback, Bugs & Forms`,icon:(0,R.jsx)(hM,{size:14})},errors:{title:`Runtime & CLI Errors`,icon:(0,R.jsx)(Zj,{size:14})},lists:{title:`Lists & Segments`,icon:(0,R.jsx)(vM,{size:14})}},k_e=[{id:`all`,label:`Institutional VCs`},{id:`crypto_vc`,label:`Crypto / Web3 VCs`},{id:`accredited`,label:`Accredited High-Check`},{id:`family_office`,label:`Family Offices`},{id:`crowdfunding_republic`,label:`Republic / Reg CF`}],A_e=[`all`,`0-100`,`100-500`,`500-1000`,`1000-5000`,`5000-15000`,`15000+`];function j_e(){let{section:e}=$i(),t=g_e.includes(e)?e:`investors`,[n,r]=(0,b.useState)(`all`),[i,a]=(0,b.useState)(`all`),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(null),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(null),m=(0,b.useCallback)(async()=>{d(!0),p(null),l(null);try{s(await E_e(t,n,i))}catch(e){s(null),l(e instanceof Error?e.message:`The read failed.`)}finally{d(!1)}},[t,n,i]);(0,b.useEffect)(()=>{m()},[m]);let h=D_e[t],g=(0,b.useMemo)(()=>Y5(t),[t]),{title:_,icon:v}=O_e[t],y=(e,t,n)=>(0,R.jsx)(V,{height:36,px:`$3`,items:`center`,gap:`$1.5`,borderBottomWidth:1,borderColor:`$borderColor`,bg:`$background`,children:e.map(e=>(0,R.jsx)(sF,{size:`xs`,height:24,px:`$2`,rounded:`$2`,chromeless:t!==e.id,bg:t===e.id?`$color3`:`transparent`,onPress:()=>n(e.id),children:(0,R.jsx)(H,{fontSize:11,fontWeight:t===e.id?`600`:`400`,color:t===e.id?`$color12`:`$color10`,children:e.label})},e.id))});return(0,R.jsx)(mP,{value:`compact`,children:(0,R.jsxs)(B,{flex:1,minH:0,bg:`$background`,children:[(0,R.jsxs)(V,{height:44,px:`$3`,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$borderColor`,gap:`$2`,children:[(0,R.jsxs)(V,{items:`center`,gap:`$2`,children:[(0,R.jsx)(V,{width:22,height:22,rounded:`$2`,items:`center`,justify:`center`,style:{backgroundColor:g.background,color:g.color},children:v}),(0,R.jsx)(H,{fontSize:14,fontWeight:`600`,color:`$color12`,children:_}),o?(0,R.jsx)(H,{fontSize:12,color:`$color10`,children:`${o.total.toLocaleString()} total`}):null]}),(0,R.jsx)(sF,{size:`xs`,height:24,px:`$2`,chromeless:!0,startIcon:(0,R.jsx)(foe,{size:12}),onPress:()=>void m(),children:(0,R.jsx)(H,{fontSize:12,color:`$color10`,children:`Refresh`})})]}),t===`leads`?y(A_e.map(e=>({id:e,label:e===`all`?`All`:`★ ${e}`})),n,r):null,t===`investors`?y(k_e,i,a):null,c?(0,R.jsxs)(B,{p:`$4`,gap:`$2`,children:[(0,R.jsx)(H,{fontSize:13,fontWeight:`600`,color:`$color12`,children:`This list could not be read.`}),(0,R.jsx)(H,{fontSize:12,color:`$color10`,children:c})]}):(0,R.jsxs)(V,{flex:1,minW:0,minH:0,children:[(0,R.jsx)(TL,{flex:1,minW:0,minH:0,children:(0,R.jsx)(_he,{fields:h,records:o?.rows??[],loading:u,editable:!1,selectable:!1,defaultKind:`table`,boardDisabled:!0,fieldIcons:w_e,onOpen:e=>p(e),empty:`No records.`},t)}),f?(0,R.jsxs)(B,{width:380,shrink:0,borderLeftWidth:1,borderColor:`$borderColor`,bg:`$background`,children:[(0,R.jsxs)(V,{height:44,px:`$3`,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$borderColor`,children:[(0,R.jsx)(H,{fontSize:13,fontWeight:`600`,color:`$color12`,numberOfLines:1,children:String(f.name||f.email||`Record`)}),(0,R.jsx)(sF,{size:`xs`,width:26,height:26,p:`$0`,chromeless:!0,onPress:()=>p(null),children:(0,R.jsx)(HM,{size:14,color:`$color10`})})]}),(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsx)(B,{p:`$3`,children:(0,R.jsx)(qme,{fields:h,record:f})})})]}):null]})]})})}var M_e=[`issues`,`components`,`milestones`,`templates`],N_e=e=>e[0].toUpperCase()+e.slice(1),P_e=()=>{let[e,t]=(0,b.useState)(``),{pathname:n}=Yi(),{plane:r}=s3(),i=L4(F3.projects(),()=>k3(r),{enabled:!!r}),a=(i.data??[]).filter(t=>t.name.toLowerCase().includes(e.trim().toLowerCase()));return(0,R.jsxs)(_7,{title:f7(n)?.label??`Tracker`,children:[(0,R.jsx)(v7,{value:e,onChange:t}),(0,R.jsx)(B,{height:24}),(0,R.jsx)(x7,{to:`/mine`,icon:(0,R.jsx)(noe,{size:16,color:`$soft`}),children:`My issues`}),(0,R.jsx)(x7,{to:`/issues`,icon:(0,R.jsx)(PM,{size:16,color:`$soft`}),children:`All issues`}),(0,R.jsx)(y7,{}),(0,R.jsx)(x7,{to:`/projects`,icon:(0,R.jsx)(Rae,{size:16,color:`$soft`}),children:`All projects`}),(0,R.jsx)(y7,{}),(0,R.jsxs)(S7,{children:[(0,R.jsx)(b7,{children:`Your projects`}),i.phase===`loading`?(0,R.jsx)(B,{px:14,py:12,children:(0,R.jsx)(LL,{size:16})}):null,i.phase===`failure`?(0,R.jsx)(l9,{children:`Your projects could not be read.`}):null,i.phase===`ready`&&a.length===0?(0,R.jsx)(l9,{children:e.trim()?`No project by that name.`:`No projects yet.`}):null,a.map(e=>(0,R.jsx)(F_e,{project:e},e._id))]})]})},F_e=({project:e})=>{let t=$i().id===e._id,[n,r]=(0,b.useState)(t);return(0,R.jsxs)(B,{children:[(0,R.jsx)(_ge,{open:n,onPress:()=>r(!n),icon:(0,R.jsx)(I_e,{id:e._id}),children:e.name}),n?(0,R.jsx)(vge,{children:M_e.map(t=>(0,R.jsx)(x7,{to:`/projects/${e._id}/${t}`,indent:!0,children:N_e(t)},t))}):null]})},c9=[`M8 1.5 14.5 8 8 14.5 1.5 8Z`,`M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z`,`M8 1.5 15 14.5H1Z`,`M2 2h12v12H2Z`],I_e=({id:e})=>(0,R.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,children:(0,R.jsx)(`path`,{d:c9[J5(e)%c9.length],stroke:X5(e),strokeWidth:1.5,strokeLinejoin:`round`})}),l9=({children:e})=>(0,R.jsx)(H,{px:14,py:8,fontSize:Q.small,color:`$faint`,children:e}),u9=({glyph:e,n:t,label:n})=>t>0?(0,R.jsxs)(V,{items:`center`,gap:4,"aria-label":`${t} ${n}`,children:[e,(0,R.jsx)(H,{fontSize:`$3`,color:`$dim`,children:t})]}):null,d9=[`backlog`,`todo`,`progress`,`done`],f9=[`low`,`medium`,`high`,`urgent`],p9={backlog:`Backlog`,todo:`To do`,progress:`In progress`,done:`Done`},L_e={urgent:1,high:2,medium:3,low:4},m9=(e,t)=>t&&e.toLowerCase()===t?Qhe(L_e[t]):Y5(e),h9={backlog:q5.backlog,todo:q5.todo,progress:q5.doing,done:q5.done},g9={arc:Z.accent,track:Z.rule},_9=({done:e,size:t=16,width:n=2})=>{let r=Math.min(1,Math.max(0,e)),i=(t-n)/2,a=2*Math.PI*i;return(0,R.jsxs)(`svg`,{width:t,height:t,viewBox:`0 0 ${t} ${t}`,role:`img`,"aria-label":`${Math.round(r*100)}% done`,children:[(0,R.jsx)(`circle`,{cx:t/2,cy:t/2,r:i,fill:`none`,stroke:g9.track,strokeWidth:n}),r>0?(0,R.jsx)(`circle`,{cx:t/2,cy:t/2,r:i,fill:`none`,stroke:g9.arc,strokeWidth:n,strokeLinecap:`round`,strokeDasharray:`${a*r} ${a}`,transform:`rotate(-90 ${t/2} ${t/2})`}):null]})},v9=12,R_e=48,z_e=({issue:e,dragging:t,onOpen:n,...r})=>{let i=e.priority?[V_e(e.priority),...e.labels]:e.labels;return(0,R.jsxs)(B,{"data-slot":`issue`,"data-issue":e.id,bg:`$raised`,rounded:Q5.card,overflow:`hidden`,opacity:t?.4:1,cursor:n?`pointer`:`grab`,hoverStyle:{background:`$hover`},role:`article`,tabIndex:0,"aria-label":`${e.key} ${e.title}`,onPress:()=>n?.(e),...H_e(r),children:[(0,R.jsxs)(B,{p:v9,gap:Z5.tight,children:[e.cover?(0,R.jsx)(gS,{src:e.cover,alt:``,width:`100%`,aspectRatio:1.44,rounded:`$1`,mb:4}):null,(0,R.jsx)(V,{items:`center`,justify:`space-between`,gap:6,children:(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`600`,color:`$dim`,children:e.key})}),(0,R.jsx)(H,{fontSize:Q.body,lineHeight:20,color:`$ink`,style:W_e,children:e.title}),i.length>0?(0,R.jsx)(V,{gap:Z5.tight,flexWrap:`wrap`,children:i.map(t=>{let{background:n,color:r}=m9(t,e.priority);return(0,R.jsx)(AF,{variant:`default`,style:{...B_e,backgroundColor:n},children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,style:{color:r},children:t})},t)})}):null,e.done!==void 0||e.origin?(0,R.jsxs)(V,{items:`center`,gap:`$4`,mt:`$2`,children:[e.done===void 0?null:(0,R.jsxs)(V,{items:`center`,gap:4,children:[(0,R.jsx)(_9,{done:e.done}),(0,R.jsxs)(H,{fontSize:Q.body,color:`$soft`,children:[Math.round(e.done*100),`%`]})]}),e.origin?(0,R.jsx)(U_e,{name:e.origin.name,mark:e.origin.mark}):null]}):null]}),(0,R.jsx)(AD,{}),(0,R.jsxs)(V,{height:R_e,px:v9,items:`center`,justify:`space-between`,children:[(0,R.jsx)($7,{people:e.people}),(0,R.jsxs)(V,{items:`center`,gap:`$3`,children:[(0,R.jsx)(u9,{glyph:(0,R.jsx)(kM,{size:12,color:`$dim`}),n:e.files,label:`attachments`}),(0,R.jsx)(u9,{glyph:(0,R.jsx)(EM,{size:12,color:`$dim`}),n:e.replies,label:`replies`})]})]})]})},B_e={minHeight:18,height:18,paddingHorizontal:8,borderRadius:9999},V_e=e=>e[0].toUpperCase()+e.slice(1),H_e=e=>({draggable:!0,...e}),U_e=({name:e,mark:t})=>(0,R.jsxs)(V,{items:`center`,gap:6,children:[t?(0,R.jsx)(gS,{src:t,alt:``,width:20,height:20,rounded:9999}):(0,R.jsx)(V,{width:20,height:20,rounded:9999,bg:`$edge`,items:`center`,justify:`center`,children:(0,R.jsx)(H,{fontSize:`$1`,color:`$quiet`,children:e[0]?.toUpperCase()})}),(0,R.jsx)(H,{fontSize:`$2`,color:`$quiet`,children:e})]}),W_e={display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:3,overflow:`hidden`},G_e=({column:e,drag:t,over:n,onOver:r,onDrop:i,onAdd:a,onOpen:o,onLift:s,onLand:c})=>{let l=t=>n=>{n.preventDefault(),n.stopPropagation(),i(e.status,t)},u=t=>n=>{n.preventDefault(),r(e.status,t)};return(0,R.jsxs)(B,{"data-slot":`column`,"data-status":e.status,width:208,shrink:0,gap:Z5.tight,role:`list`,"aria-label":e.name,onDragOver:u(`end`),onDrop:l(),children:[(0,R.jsxs)(V,{items:`center`,gap:Z5.tight,height:24,children:[(0,R.jsx)(B,{width:8,height:8,rounded:9999,shrink:0,style:{backgroundColor:h9[e.status]}}),(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`700`,color:`$ink`,...$5,children:e.name}),(0,R.jsxs)(H,{fontSize:Q.small,color:`$dim`,children:[`– `,e.issues.length]}),(0,R.jsx)(V,{flex:1}),a?(0,R.jsxs)(yI,{children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(sF,{variant:`ghost`,size:`icon-sm`,"aria-label":`${e.name} actions`,children:(0,R.jsx)(Fae,{size:14})})}),(0,R.jsx)(TI,{align:`end`,children:(0,R.jsx)(kI,{onSelect:()=>a(e.status),children:`Add issue`})})]}):null]}),a?(0,R.jsx)(sF,{variant:`ghost`,height:36,width:`100%`,borderWidth:1,borderStyle:`dashed`,borderColor:`$edge`,rounded:Q5.card,"aria-label":`Add issue to ${e.name}`,onPress:()=>a(e.status),children:(0,R.jsx)(AM,{size:16})}):null,e.issues.map(e=>(0,R.jsxs)(B,{role:`listitem`,gap:Z5.tight,onDragOver:u(e.id),onDrop:l(e.id),children:[t&&n===e.id?(0,R.jsx)(y9,{height:t.cover?260:176}):null,(0,R.jsx)(z_e,{issue:e,dragging:t?.id===e.id,onOpen:o,onDragStart:()=>s(e),onDragEnd:c})]},e.id)),t&&n===`end`?(0,R.jsx)(y9,{height:t.cover?260:176}):null,(0,R.jsx)(B,{flex:1,minH:24})]})},y9=({height:e})=>(0,R.jsx)(B,{height:e,rounded:Q5.card,borderWidth:1,borderStyle:`dashed`,borderColor:`$edge`}),b9=e=>d9.map(t=>({status:t,name:p9[t],issues:e.filter(e=>e.status===t)})),x9=(e,t,n,r)=>{let i=e.find(e=>e.id===t);if(!i||i.status===n&&r===void 0&&K_e(e,n)?.id===t||t===r)return e;let a=e.filter(e=>e.id!==t),o={...i,status:n},s=r?a.findIndex(e=>e.id===r):-1;if(s<0){let e=a.map(e=>e.status===n).lastIndexOf(!0);return S9(a,e<0?a.length:e+1,o)}return S9(a,s,o)},S9=(e,t,n)=>[...e.slice(0,t),n,...e.slice(t)],K_e=(e,t)=>e.filter(e=>e.status===t).at(-1),C9=16,w9=24,q_e=({source:e,only:t,onOpen:n,onCreateIn:r})=>{let[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(null),[u,d]=(0,b.useState)(null),[f,p]=(0,b.useState)(0);(0,b.useEffect)(()=>(a(null),s(null),e.watch(e=>{a(e),s(null)},s)),[e,f]);let m=(0,b.useCallback)((t,n)=>{d(null);let r=c;l(null),r&&i&&(a(x9(i,r.id,t,n)),e.move(r.id,t,n).catch(s))},[c,i,e]),h=e.add?.bind(e),g=r??(h?e=>{h(e,`New issue`).catch(s)}:void 0);if(o)return(0,R.jsx)(X_e,{why:o.message,onRetry:()=>p(e=>e+1)});if(!i)return(0,R.jsx)(J_e,{});if(i.length===0)return(0,R.jsx)(Y_e,{onAdd:g&&(()=>g(`backlog`))});let _=t?.length?i.filter(e=>e.priority&&t.includes(e.priority)):i;return(0,R.jsx)(cD,{horizontal:!0,contentContainerStyle:{p:w9,gap:C9,shrink:0},children:b9(_).map(e=>(0,R.jsx)(G_e,{column:e,drag:c,over:u?.status===e.status?u.before:null,onOver:(e,t)=>d({status:e,before:t}),onDrop:m,onAdd:g,onOpen:n,onLift:l,onLand:()=>{l(null),d(null)}},e.status))})},J_e=()=>(0,R.jsx)(V,{p:w9,gap:C9,"aria-busy":!0,"aria-label":`Loading issues`,children:[0,1,2,3].map(e=>(0,R.jsxs)(B,{width:208,gap:`$2`,children:[(0,R.jsx)(gV,{height:12,width:96}),(0,R.jsx)(gV,{height:36}),[0,1,2].map(e=>(0,R.jsx)(gV,{height:176},e))]},e))}),Y_e=({onAdd:e})=>(0,R.jsx)(B,{p:w9,items:`flex-start`,children:(0,R.jsx)(j6,{icon:yM,title:`No issues yet`,description:`Issues you open appear here, one column per status.`,primary:e?{label:`New issue`,onPress:e}:void 0})}),X_e=({why:e,onRetry:t})=>(0,R.jsxs)(B,{p:w9,gap:`$3`,items:`flex-start`,role:`alert`,children:[(0,R.jsx)(H,{fontSize:`$4`,color:`$ink`,children:e}),(0,R.jsx)(sF,{variant:`outline`,size:`sm`,onPress:t,children:`Try again`})]}),Z_e=()=>new Promise(()=>{}),T9=e=>({watch(t,n){return e===`refused`&&n(Error(`Your workspace is not answering.`)),e===`nowhere`&&t([]),()=>{}},move:Z_e}),E9=24,Q_e=20,$_e=20,eve=8,tve=28,nve=20,rve=36,D9=[{id:`kanban`,label:`Kanban`,icon:aoe},{id:`list`,label:`List`,icon:SM},{id:`timeline`,label:`Timeline`,icon:oM}],ive=({trail:e,title:t,base:n,here:r,people:i,only:a,onOnly:o,onAdd:s})=>(0,R.jsxs)(B,{"data-parity-key":`board.head`,pt:Q_e,children:[(0,R.jsxs)(V,{px:E9,height:$_e,items:`center`,gap:8,children:[(0,R.jsx)(ave,{steps:e}),(0,R.jsx)(V,{flex:1,minW:0}),i.length>0?(0,R.jsx)(V,{rounded:Q5.pill,bg:`$hover`,px:6,py:2,items:`center`,children:(0,R.jsx)($7,{people:i,size:24,show:4,ground:Z.card})}):null,s?(0,R.jsx)(lve,{onAdd:s}):null]}),(0,R.jsx)(B,{height:eve}),(0,R.jsx)(V,{px:E9,height:tve,items:`center`,children:(0,R.jsx)(H,{fontSize:Q.title,fontWeight:`500`,color:`$ink`,children:t})}),(0,R.jsx)(B,{height:nve}),(0,R.jsxs)(V,{px:18,height:rve,items:`flex-end`,gap:4,children:[D9.map(e=>(0,R.jsxs)(sve,{to:e.id===`kanban`?n:`${n}/${e.id}`,here:e.id===r,children:[(0,R.jsx)(e.icon,{size:16,color:e.id===r?`$ink`:`$soft`}),(0,R.jsx)(H,{fontSize:Q.row,color:e.id===r?`$ink`:`$soft`,children:e.label})]},e.id)),(0,R.jsx)(V,{flex:1,minW:0}),(0,R.jsx)(cve,{only:a,onOnly:o}),s?(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,height:28,mb:3,px:10,items:`center`,gap:6,rounded:Q5.field,style:{backgroundColor:Z.accent},focusVisibleStyle:e7,"aria-label":`New issue`,onPress:s,children:[(0,R.jsx)(AM,{size:14,color:Z.ground}),(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`600`,style:{color:Z.ground},children:`New issue`})]}):null]}),(0,R.jsx)(AD,{borderColor:`$edge`})]}),ave=({steps:e})=>(0,R.jsx)(V,{items:`center`,gap:8,minW:0,children:e.map((e,t)=>(0,R.jsxs)(V,{items:`center`,gap:8,minW:0,children:[t>0?(0,R.jsx)(H,{fontSize:Q.small,color:`$faint`,children:`/`}):null,e.to?(0,R.jsx)(V,{asChild:!0,style:ove,rounded:Q5.field,focusVisibleStyle:e7,children:(0,R.jsx)(lo,{to:e.to,children:(0,R.jsx)(H,{fontSize:Q.small,color:`$soft`,numberOfLines:1,hoverStyle:{color:`$ink`},children:e.label})})}):(0,R.jsx)(H,{fontSize:Q.small,numberOfLines:1,"aria-current":`page`,style:{color:Z.accent},children:e.label})]},`${e.label}-${t}`))}),ove={flexDirection:`row`,alignItems:`center`},sve=({to:e,here:t,children:n})=>(0,R.jsx)(B,{asChild:!0,style:{alignItems:`center`},rounded:Q5.field,focusVisibleStyle:e7,children:(0,R.jsxs)(lo,{to:e,"aria-current":t?`page`:void 0,children:[(0,R.jsx)(V,{height:32,px:6,items:`center`,gap:8,children:n}),(0,R.jsx)(B,{height:2,width:`100%`,rounded:Q5.pill,style:{backgroundColor:t?Z.accent:`transparent`}})]})}),cve=({only:e,onOnly:t})=>{let n=new Set(e),r=r=>t(n.has(r)?e.filter(e=>e!==r):[...e,r]);return(0,R.jsxs)(yI,{children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,height:32,px:8,items:`center`,gap:8,rounded:Q5.field,hoverStyle:{background:`$hover`},focusVisibleStyle:e7,"aria-label":`Filter issues`,children:[(0,R.jsx)(NM,{size:16,color:e.length?`$ink`:`$soft`}),(0,R.jsx)(H,{fontSize:Q.row,color:e.length?`$ink`:`$soft`,children:e.length?`Filter · ${e.length}`:`Filter`})]})}),(0,R.jsxs)(TI,{align:`end`,children:[(0,R.jsx)(KI,{children:`Priority`}),f9.map(e=>(0,R.jsx)(AI,{checked:n.has(e),onCheckedChange:()=>r(e),children:(0,R.jsx)(H,{...$5,fontSize:Q.small,children:e})},e)),e.length?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(qI,{}),(0,R.jsx)(kI,{onSelect:()=>t([]),children:`Show every priority`})]}):null]})]})},lve=({onAdd:e})=>(0,R.jsxs)(yI,{children:[(0,R.jsx)(xI,{asChild:!0,children:(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,width:24,height:24,items:`center`,justify:`center`,rounded:Q5.field,hoverStyle:{background:`$hover`},focusVisibleStyle:e7,"aria-label":`Board actions`,children:(0,R.jsx)(Zae,{size:16,color:`$soft`})})}),(0,R.jsx)(TI,{align:`end`,children:(0,R.jsx)(kI,{onSelect:e,children:`New issue`})})]}),O9=[`Backend`,`Frontend`,`Devops`,`Feature`,`Design`,`Sales`,`Marketing`,`QA`,`Research`],uve=[0,.25,.5,.75,1],k9=e=>e[0].toUpperCase()+e.slice(1);function dve({issue:e,source:t,people:n,onClose:r}){let[i,a]=(0,b.useState)(e.title),[o,s]=(0,b.useState)(e.description??``),[c,l]=(0,b.useState)(``),[u,d]=(0,b.useState)(!1);(0,b.useEffect)(()=>{a(e.title),s(e.description??``)},[e.id,e.title,e.description]);let f=n=>{t.update?t.update(e.id,n):n.status&&t.move(e.id,n.status),d(!0),setTimeout(()=>d(!1),1200)},p=()=>{let t=i.trim()||e.title;f({title:t,description:o.trim()})},m=t=>{let n=e.labels.includes(t)?e.labels.filter(e=>e!==t):[...e.labels,t];f({labels:n})},h=()=>{let t=c.trim();t&&(e.labels.includes(t)||f({labels:[...e.labels,t]}),l(``))},g=e.people[0]?.id??null;return(0,R.jsxs)(B,{"data-slot":`issue-drawer`,width:420,shrink:0,borderLeftWidth:1,borderColor:`$edge`,bg:`$panel`,height:`100%`,children:[(0,R.jsxs)(V,{height:48,px:16,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$edge`,gap:8,children:[(0,R.jsxs)(V,{items:`center`,gap:8,children:[(0,R.jsx)(B,{width:8,height:8,rounded:9999,style:{backgroundColor:h9[e.status]}}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`700`,color:`$ink`,children:e.key}),e.origin?(0,R.jsx)(V,{px:8,height:20,rounded:9999,bg:`$raised`,borderWidth:1,borderColor:`$edge`,items:`center`,children:(0,R.jsx)(H,{fontSize:Q.chip,color:`$soft`,children:e.origin.name})}):null,u?(0,R.jsxs)(V,{items:`center`,gap:4,px:6,py:2,rounded:Q5.pill,bg:`$hover`,children:[(0,R.jsx)(cM,{size:11,color:`$ink`}),(0,R.jsx)(H,{fontSize:Q.chip,color:`$ink`,children:`Saved`})]}):null]}),(0,R.jsxs)(V,{items:`center`,gap:4,children:[t.remove?(0,R.jsx)(sF,{variant:`ghost`,size:`icon-sm`,"aria-label":`Delete issue`,onPress:()=>{t.remove?.(e.id),r()},children:(0,R.jsx)(boe,{size:14,color:`$soft`})}):null,(0,R.jsx)(sF,{variant:`ghost`,size:`icon-sm`,"aria-label":`Close issue drawer`,onPress:r,children:(0,R.jsx)(HM,{size:15,color:`$soft`})})]})]}),(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsxs)(B,{p:16,gap:16,children:[(0,R.jsxs)(B,{gap:8,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Title`}),(0,R.jsx)(dL,{height:32,value:i,onChangeText:a,onBlur:p,fontSize:13,fontWeight:`600`,bg:`$raised`,borderColor:`$edge`})]}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Specification & Notes`}),(0,R.jsx)(sF,{size:`xs`,height:22,px:8,rounded:Q5.field,style:{backgroundColor:Z.accent},onPress:p,children:(0,R.jsx)(H,{fontSize:11,fontWeight:`600`,style:{color:Z.ground},children:`Save`})})]}),(0,R.jsx)(dL,{height:32,value:o,onChangeText:s,onBlur:p,placeholder:`Add acceptance criteria, PR links, or technical context...`,fontSize:12,bg:`$raised`,borderColor:`$edge`})]}),(0,R.jsx)(AD,{borderColor:`$edge`}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Workflow Status`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:d9.map(t=>{let n=e.status===t;return(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:10,height:28,rounded:Q5.field,items:`center`,gap:6,bg:n?`$hover`:`$raised`,borderWidth:1,borderColor:n?`$ink`:`$edge`,focusVisibleStyle:e7,onPress:()=>f({status:t}),children:[(0,R.jsx)(B,{width:7,height:7,rounded:9999,style:{backgroundColor:h9[t]}}),(0,R.jsx)(H,{fontSize:Q.small,fontWeight:n?`700`:`500`,color:n?`$ink`:`$soft`,children:p9[t]})]},t)})})]}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Priority`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:f9.map(t=>{let n=e.priority===t,{background:r,color:i}=m9(k9(t),t);return(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:10,height:26,rounded:Q5.pill,items:`center`,borderWidth:1,borderColor:n?`$ink`:`transparent`,style:{backgroundColor:r},onPress:()=>f({priority:n?null:t}),children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,style:{color:i},children:k9(t)})},t)})})]}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Completion Progress`}),(0,R.jsxs)(V,{items:`center`,gap:6,children:[(0,R.jsx)(_9,{done:e.done??0}),(0,R.jsxs)(H,{fontSize:Q.small,fontWeight:`600`,color:`$ink`,children:[Math.round((e.done??0)*100),`%`]})]})]}),(0,R.jsx)(V,{gap:6,children:uve.map(t=>{let n=Math.round(t*100),r=Math.round((e.done??0)*100)===n;return(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,flex:1,height:26,rounded:Q5.field,items:`center`,justify:`center`,bg:r?`$hover`:`$raised`,borderWidth:1,borderColor:r?`$ink`:`$edge`,onPress:()=>f({done:t}),children:(0,R.jsxs)(H,{fontSize:Q.chip,fontWeight:r?`700`:`500`,color:r?`$ink`:`$soft`,children:[n,`%`]})},n)})})]}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsxs)(V,{items:`center`,gap:6,children:[(0,R.jsx)(BM,{size:12,color:`$dim`}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Assignee`})]}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:n.slice(0,10).map(e=>{let t=g===e.id;return(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:8,height:28,rounded:Q5.pill,items:`center`,gap:6,bg:t?`$hover`:`$raised`,borderWidth:1,borderColor:t?`$ink`:`$edge`,onPress:()=>f({assigneeId:e.id}),children:[(0,R.jsx)($7,{people:[e],size:18,show:1}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:t?`700`:`500`,color:t?`$ink`:`$soft`,children:e.name.split(` `)[0]})]},e.id)})})]}),(0,R.jsxs)(B,{gap:8,children:[(0,R.jsxs)(V,{items:`center`,gap:6,children:[(0,R.jsx)(voe,{size:12,color:`$dim`}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Labels`})]}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:O9.map(t=>{let n=e.labels.includes(t),{background:r,color:i}=m9(t);return(0,R.jsx)(AF,{variant:`default`,style:{minHeight:22,height:22,paddingLeft:9,paddingRight:9,borderRadius:9999,cursor:`pointer`,backgroundColor:n?r:`transparent`,borderWidth:1,borderStyle:`solid`,borderColor:n?i:Z.rule,opacity:n?1:.7},onClick:()=>m(t),children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,style:{color:n?i:Z.mute},children:n?`✓ ${t}`:t})},t)})}),(0,R.jsxs)(V,{gap:6,children:[(0,R.jsx)(dL,{flex:1,height:26,fontSize:11,placeholder:`Add custom label...`,value:c,onChangeText:l,bg:`$raised`,borderColor:`$edge`}),(0,R.jsx)(sF,{size:`xs`,height:26,px:10,variant:`outline`,onPress:h,children:(0,R.jsx)(AM,{size:12})})]})]})]})})]})}function fve({initialStatus:e=`backlog`,people:t,onCreate:n,onClose:r}){let[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(``),[c,l]=(0,b.useState)(e),[u,d]=(0,b.useState)(`medium`),[f,p]=(0,b.useState)(t[0]?.id??null),[m,h]=(0,b.useState)([`Feature`]),[g,_]=(0,b.useState)(!1),v=e=>{h(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},y=async()=>{let e=i.trim();if(e&&!g){_(!0);try{await n(c,e,{description:o.trim()||void 0,priority:u,assigneeId:f,labels:m}),r()}finally{_(!1)}}};return(0,R.jsx)(B,{position:`fixed`,t:0,l:0,r:0,b:0,z:1e3,bg:Z.ground,items:`center`,justify:`center`,p:16,children:(0,R.jsxs)(B,{width:`100%`,maxW:520,rounded:Q5.card,borderWidth:1,borderColor:`$edge`,bg:`$panel`,overflow:`hidden`,children:[(0,R.jsxs)(V,{height:46,px:16,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:`$edge`,children:[(0,R.jsxs)(V,{items:`center`,gap:8,children:[(0,R.jsx)(rM,{size:15,color:`$ink`}),(0,R.jsx)(H,{fontSize:Q.body,fontWeight:`700`,color:`$ink`,children:`Create New Issue`})]}),(0,R.jsx)(sF,{variant:`ghost`,size:`icon-sm`,"aria-label":`Close modal`,onPress:r,children:(0,R.jsx)(HM,{size:15,color:`$soft`})})]}),(0,R.jsxs)(B,{p:16,gap:14,children:[(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Issue Title`}),(0,R.jsx)(dL,{autoFocus:!0,placeholder:`e.g. Wire real-time webhook retry metrics in hanzo/cloud`,value:i,onChangeText:a,fontSize:13,bg:`$raised`,borderColor:`$edge`})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Description & Acceptance Criteria`}),(0,R.jsx)(dL,{placeholder:`Context, repository, and target milestone...`,value:o,onChangeText:s,fontSize:12,bg:`$raised`,borderColor:`$edge`})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Status`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:d9.map(e=>{let t=c===e;return(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:10,height:26,rounded:Q5.field,items:`center`,gap:6,bg:t?`$hover`:`$raised`,borderWidth:1,borderColor:t?`$ink`:`$edge`,onPress:()=>l(e),children:[(0,R.jsx)(B,{width:7,height:7,rounded:9999,style:{backgroundColor:h9[e]}}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:t?`700`:`500`,color:t?`$ink`:`$soft`,children:p9[e]})]},e)})})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Priority`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:f9.map(e=>{let t=u===e,{background:n,color:r}=m9(k9(e),e);return(0,R.jsx)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:10,height:24,rounded:Q5.pill,items:`center`,borderWidth:1,borderColor:t?`$ink`:`transparent`,style:{backgroundColor:n},onPress:()=>d(e),children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,style:{color:r},children:k9(e)})},e)})})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Assign to a team member`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:t.slice(0,8).map(e=>{let t=f===e.id;return(0,R.jsxs)(V,{role:`button`,tabIndex:0,cursor:`pointer`,px:8,height:26,rounded:Q5.pill,items:`center`,gap:6,bg:t?`$hover`:`$raised`,borderWidth:1,borderColor:t?`$ink`:`$edge`,onPress:()=>p(e.id),children:[(0,R.jsx)($7,{people:[e],size:16,show:1}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:t?`700`:`500`,color:t?`$ink`:`$soft`,children:e.name.split(` `)[0]})]},e.id)})})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,color:`$dim`,...$5,children:`Labels`}),(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:O9.slice(0,6).map(e=>{let t=m.includes(e),{background:n,color:r}=m9(e);return(0,R.jsx)(AF,{variant:`default`,style:{minHeight:20,height:20,paddingLeft:8,paddingRight:8,borderRadius:9999,cursor:`pointer`,backgroundColor:t?n:`transparent`,borderWidth:1,borderStyle:`solid`,borderColor:t?r:Z.rule},onClick:()=>v(e),children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,style:{color:t?r:Z.mute},children:e})},e)})})]})]}),(0,R.jsxs)(V,{px:16,py:12,items:`center`,justify:`flex-end`,gap:8,borderTopWidth:1,borderColor:`$edge`,bg:`$raised`,children:[(0,R.jsx)(sF,{size:`sm`,variant:`ghost`,onPress:r,children:`Cancel`}),(0,R.jsx)(sF,{size:`sm`,style:{backgroundColor:Z.accent},disabled:!i.trim()||g,onPress:()=>void y(),children:(0,R.jsx)(H,{fontSize:12,fontWeight:`600`,style:{color:Z.ground},children:g?`Creating…`:`Create issue`})})]})]})})}var pve={minHeight:18,height:18,paddingHorizontal:8,borderRadius:9999},mve=e=>e[0].toUpperCase()+e.slice(1),A9=e=>d9[(d9.indexOf(e)+1)%d9.length]??`backlog`,hve=({source:e,only:t,mine:n,onOpen:r,onCreateIn:i})=>{let[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(0);(0,b.useEffect)(()=>(o(null),c(null),e.watch(e=>{o(e),c(null)},c)),[e,l]);let d=e.add?.bind(e),f=i??(d?e=>void d(e,`New issue`).catch(c):void 0),p=t=>{if(!a)return;let n=A9(t.status);o(x9(a,t.id,n)),e.move(t.id,n).catch(c)};if(s)return(0,R.jsxs)(B,{p:24,gap:`$3`,items:`flex-start`,role:`alert`,children:[(0,R.jsx)(H,{fontSize:`$4`,color:`$ink`,children:s.message}),(0,R.jsx)(sF,{variant:`outline`,size:`sm`,onPress:()=>u(e=>e+1),children:`Try again`})]});if(!a)return(0,R.jsx)(B,{p:24,gap:`$3`,"aria-busy":!0,"aria-label":`Loading issue list`,children:[0,1,2,3,4,5].map(e=>(0,R.jsx)(gV,{height:44},e))});let m=t?.length?a.filter(e=>e.priority&&t.includes(e.priority)):a,h=n?m.filter((e,t)=>t%2==0||m.length<=6):m;return h.length===0?(0,R.jsx)(B,{p:24,items:`flex-start`,children:(0,R.jsx)(j6,{icon:SM,title:`No matching issues`,description:`Issues appear here grouped by workflow status.`,primary:f?{label:`New issue`,onPress:()=>f(`backlog`)}:void 0})}):(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsx)(B,{p:24,gap:20,children:b9(h).map(e=>(0,R.jsxs)(B,{rounded:Q5.card,borderWidth:1,borderColor:`$edge`,bg:`$background`,overflow:`hidden`,children:[(0,R.jsxs)(V,{px:16,height:40,items:`center`,gap:Z5.tight,bg:`$panel`,borderBottomWidth:+(e.issues.length>0),borderColor:`$edge`,children:[(0,R.jsx)(B,{width:8,height:8,rounded:9999,shrink:0,style:{backgroundColor:h9[e.status]}}),(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`700`,color:`$ink`,...$5,children:e.name}),(0,R.jsx)(H,{fontSize:Q.small,color:`$dim`,children:e.issues.length}),(0,R.jsx)(V,{flex:1}),f?(0,R.jsx)(sF,{variant:`ghost`,size:`icon-sm`,"aria-label":`Add issue to ${e.name}`,onPress:()=>f(e.status),children:(0,R.jsx)(AM,{size:14})}):null]}),e.issues.map((e,t)=>{let n=e.priority?[mve(e.priority),...e.labels]:e.labels;return(0,R.jsxs)(B,{children:[t>0?(0,R.jsx)(AD,{borderColor:`$edge`}):null,(0,R.jsxs)(V,{px:16,py:10,items:`center`,gap:12,cursor:r?`pointer`:`default`,hoverStyle:{background:`$hover`},onPress:()=>r?.(e),children:[(0,R.jsx)(V,{...t7(t=>{t?.stopPropagation?.(),p(e)},`Advance ${e.key} status`),width:20,height:20,rounded:9999,items:`center`,justify:`center`,borderWidth:1,borderColor:`$edge`,bg:`$panel`,children:(0,R.jsx)(B,{width:8,height:8,rounded:9999,style:{backgroundColor:h9[e.status]}})}),(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`600`,color:`$soft`,width:68,shrink:0,children:e.key}),(0,R.jsx)(H,{fontSize:Q.body,color:`$ink`,flex:1,minW:160,numberOfLines:1,children:e.title}),(0,R.jsxs)(V,{gap:Z5.tight,items:`center`,flexWrap:`wrap`,children:[n.map(t=>{let{background:n,color:r}=m9(t,e.priority);return(0,R.jsx)(AF,{variant:`default`,style:{...pve,backgroundColor:n},children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,style:{color:r},children:t})},t)}),e.origin?(0,R.jsx)(V,{px:8,height:18,rounded:9999,bg:`$panel`,borderWidth:1,borderColor:`$edge`,items:`center`,children:(0,R.jsx)(H,{fontSize:Q.chip,color:`$quiet`,children:e.origin.name})}):null]}),(0,R.jsx)(V,{width:64,items:`center`,justify:`flex-end`,gap:4,shrink:0,children:e.done===void 0?null:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(_9,{done:e.done}),(0,R.jsxs)(H,{fontSize:Q.small,color:`$soft`,children:[Math.round(e.done*100),`%`]})]})}),(0,R.jsxs)(V,{width:64,items:`center`,justify:`flex-end`,gap:`$2`,shrink:0,children:[(0,R.jsx)(u9,{glyph:(0,R.jsx)(kM,{size:12,color:`$dim`}),n:e.files,label:`attachments`}),(0,R.jsx)(u9,{glyph:(0,R.jsx)(EM,{size:12,color:`$dim`}),n:e.replies,label:`replies`})]}),(0,R.jsx)(V,{width:76,justify:`flex-end`,shrink:0,children:(0,R.jsx)($7,{people:e.people,size:24,show:3})})]})]},e.id)})]},e.status))})})},j9=[{id:`w1`,label:`W1 · Oct 20`,sub:`Sprint 14`},{id:`w2`,label:`W2 · Oct 27`,sub:`Sprint 14`},{id:`w3`,label:`W3 · Nov 03`,sub:`Current · Active`,now:!0},{id:`w4`,label:`W4 · Nov 10`,sub:`Sprint 15`},{id:`w5`,label:`W5 · Nov 17`,sub:`Sprint 15`},{id:`w6`,label:`W6 · Nov 24`,sub:`Release Cut`}],gve=(e,t)=>{switch(e){case`done`:return{start:t%2==0?0:1,span:2};case`progress`:return{start:1+t%2,span:2};case`todo`:return{start:2+t%2,span:2};default:return{start:3+t%2,span:2}}},_ve=({source:e,only:t,mine:n,onOpen:r})=>{let[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null);(0,b.useEffect)(()=>(a(null),s(null),e.watch(e=>{a(e),s(null)},s)),[e]);let c=t=>{if(!i)return;let n=A9(t.status);a(x9(i,t.id,n)),e.move(t.id,n).catch(s)};if(o)return(0,R.jsx)(B,{p:24,children:(0,R.jsx)(H,{fontSize:`$4`,color:`$ink`,children:o.message})});if(!i)return(0,R.jsx)(B,{p:24,gap:`$3`,"aria-busy":!0,"aria-label":`Loading timeline`,children:[0,1,2,3,4].map(e=>(0,R.jsx)(gV,{height:48},e))});let l=t?.length?i.filter(e=>e.priority&&t.includes(e.priority)):i,u=n?l.filter((e,t)=>t%2==0||l.length<=6):l;return u.length===0?(0,R.jsx)(B,{p:24,items:`flex-start`,children:(0,R.jsx)(j6,{icon:oM,title:`No issues on timeline`,description:`Scheduled issues and sprint milestones appear here across weeks.`})}):(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsx)(B,{p:24,gap:16,children:(0,R.jsxs)(B,{rounded:Q5.card,borderWidth:1,borderColor:`$edge`,bg:`$background`,overflow:`hidden`,children:[(0,R.jsxs)(V,{bg:`$panel`,borderBottomWidth:1,borderColor:`$edge`,height:48,items:`center`,children:[(0,R.jsxs)(V,{width:280,shrink:0,px:16,items:`center`,justify:`space-between`,borderRightWidth:1,borderColor:`$edge`,height:`100%`,children:[(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`700`,color:`$ink`,...$5,children:`Issue / Assignee`}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$soft`,children:[u.length,` tracked`]})]}),(0,R.jsx)(V,{flex:1,height:`100%`,children:j9.map(e=>(0,R.jsxs)(B,{flex:1,px:10,justify:`center`,borderRightWidth:1,borderColor:`$edge`,bg:`now`in e&&e.now?`$hover`:`transparent`,children:[(0,R.jsxs)(V,{items:`center`,gap:6,children:[`now`in e&&e.now?(0,R.jsx)(B,{width:6,height:6,rounded:9999,style:{backgroundColor:Z.accent}}):null,(0,R.jsx)(H,{fontSize:Q.small,fontWeight:`600`,color:`now`in e&&e.now?`$ink`:`$soft`,children:e.label})]}),(0,R.jsx)(H,{fontSize:Q.chip,color:`$quiet`,children:e.sub})]},e.id))})]}),u.map((e,t)=>{let{start:n,span:i}=gve(e.status,t),a=n/j9.length*100,o=i/j9.length*100,s=Math.round((e.done??(e.status===`done`?1:.25))*100);return(0,R.jsxs)(B,{children:[t>0?(0,R.jsx)(AD,{borderColor:`$edge`}):null,(0,R.jsxs)(V,{height:46,items:`center`,hoverStyle:{background:`$hover`},children:[(0,R.jsxs)(V,{width:280,shrink:0,px:16,gap:8,items:`center`,borderRightWidth:1,borderColor:`$edge`,height:`100%`,cursor:r?`pointer`:`default`,onPress:()=>r?.(e),children:[(0,R.jsx)(B,{width:8,height:8,rounded:9999,shrink:0,style:{backgroundColor:h9[e.status]}}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$soft`,width:54,shrink:0,children:e.key}),(0,R.jsx)(H,{fontSize:Q.small,color:`$ink`,flex:1,numberOfLines:1,children:e.title}),(0,R.jsx)($7,{people:e.people,size:20,show:1})]}),(0,R.jsxs)(V,{flex:1,height:`100%`,position:`relative`,items:`center`,children:[j9.map(e=>(0,R.jsx)(B,{flex:1,height:`100%`,borderRightWidth:1,borderColor:`$edge`,bg:`now`in e&&e.now?`$panel`:`transparent`},e.id)),(0,R.jsxs)(V,{...t7(()=>c(e),`${e.key} (${s}% done) — click to advance status`),position:`absolute`,style:{left:`${a+1}%`,width:`${o-2}%`},height:26,rounded:Q5.field,bg:`$panel`,borderWidth:1,borderColor:`$edge`,overflow:`hidden`,items:`center`,px:8,justify:`space-between`,children:[(0,R.jsx)(B,{position:`absolute`,l:0,t:0,b:0,width:`${s}%`,opacity:.22,pointerEvents:`none`,style:{backgroundColor:h9[e.status]}}),(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$ink`,numberOfLines:1,z:1,children:e.title}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$soft`,shrink:0,ml:6,z:1,children:[s,`%`]})]})]})]})]},e.id)})]})})})},vve=e=>D9.find(t=>t.id===e)?.id??`kanban`,M9=({mine:e=!1})=>{let{id:t,view:n}=$i(),r=Ege(t),{standing:i}=s3(),a=D7(t)??T9(k7(i)),o=a.add?.bind(a),s=O7(t),[c,l]=(0,b.useState)([]),[u,d]=(0,b.useState)(null),[f,p]=(0,b.useState)([]),[m,h]=(0,b.useState)(null),g=vve(n);(0,b.useEffect)(()=>a.watch(e=>p(e),()=>{}),[a]);let _=u?f.find(e=>e.id===u)??null:null,v=e?`/mine`:t?`/projects/${t}/issues`:`/issues`,y=[{label:`Your projects`,to:`/projects`},...t?[{label:r?.name??`…`,to:v}]:[],{label:e?`My issues`:t?`Issues`:`All issues`}];return(0,R.jsxs)(B,{flex:1,minH:0,children:[(0,R.jsx)(ive,{trail:y,title:e?`My issues`:t?`Issues`:`All issues`,base:v,here:g,people:s,only:c,onOnly:l,onAdd:o?()=>h(`backlog`):void 0}),(0,R.jsxs)(V,{flex:1,minH:0,minW:0,children:[(0,R.jsx)(B,{flex:1,minH:0,minW:0,children:g===`kanban`?(0,R.jsx)(q_e,{source:a,only:c,onOpen:e=>d(e.id),onCreateIn:o?e=>h(e):void 0}):g===`list`?(0,R.jsx)(hve,{source:a,only:c,mine:e,onOpen:e=>d(e.id),onCreateIn:o?e=>h(e):void 0}):(0,R.jsx)(_ve,{source:a,only:c,mine:e,onOpen:e=>d(e.id)})}),_?(0,R.jsx)(dve,{issue:_,source:a,people:s,onClose:()=>d(null)}):null]}),m&&o?(0,R.jsx)(fve,{initialStatus:m,people:s,onCreate:async(e,t,n)=>{await o(e,t,n)},onClose:()=>h(null)}):null]})};function yve(){let e=Zi(),{current:t,standing:n}=s3(),r=A7(),i=D7()??T9(k7(n)),a=O7(),[o,s]=(0,b.useState)([]);(0,b.useEffect)(()=>i.watch(e=>s(e),()=>{}),[i]);let c=r.data??[];return(0,R.jsx)(TL,{flex:1,minH:0,children:(0,R.jsxs)(B,{p:24,gap:20,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:12,children:[(0,R.jsxs)(B,{gap:4,children:[(0,R.jsxs)(H,{...$5,fontSize:Q.chip,fontWeight:`600`,color:`$soft`,children:[t?.name??`Hanzo AI`,` · Portfolio & Tracker`]}),(0,R.jsxs)(H,{fontSize:Q.title,fontWeight:`600`,color:`$ink`,children:[`All projects (`,c.length,`)`]}),(0,R.jsx)(H,{fontSize:Q.body,color:`$quiet`,children:`The projects in this space and the issues on their boards.`})]}),(0,R.jsxs)(V,{gap:8,items:`center`,children:[(0,R.jsx)($7,{people:a,size:26,show:5}),(0,R.jsxs)(sF,{onPress:()=>e(`/issues`),children:[`All Issues (`,o.length,`)`]})]})]}),(0,R.jsx)(V,{flexWrap:`wrap`,gap:16,children:c.map(t=>{let n=t.identifier.toUpperCase(),r=o.filter(e=>e.key.startsWith(`${n}-`)),i=r.length||t.sequence,a=r.filter(e=>e.status===`done`).length,s=r.filter(e=>e.status===`progress`).length,c=r.filter(e=>e.status===`todo`).length,l=r.filter(e=>e.status===`backlog`).length,u=r.length>0?a/r.length:0;return(0,R.jsxs)(B,{width:380,grow:1,p:20,rounded:Q5.card,bg:`$background`,borderWidth:1,borderColor:`$edge`,gap:14,children:[(0,R.jsxs)(V,{items:`center`,justify:`space-between`,gap:10,children:[(0,R.jsxs)(V,{items:`center`,gap:10,children:[(0,R.jsx)(B,{width:36,height:36,rounded:Q5.field,items:`center`,justify:`center`,bg:`$panel`,borderWidth:1,borderColor:`$edge`,children:(0,R.jsx)(eoe,{size:18,color:`$ink`})}),(0,R.jsxs)(B,{children:[(0,R.jsxs)(V,{items:`center`,gap:8,children:[(0,R.jsx)(H,{fontSize:Q.row,fontWeight:`600`,color:`$ink`,children:t.name}),(0,R.jsx)(V,{px:8,py:2,rounded:Q5.pill,style:Y5(t.identifier),children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`700`,style:{color:Y5(t.identifier).color},children:t.identifier})})]}),(0,R.jsxs)(H,{fontSize:Q.small,color:`$soft`,children:[r.length,` active issues · `,(t.members??[]).length,` members`]})]})]}),(0,R.jsxs)(V,{items:`center`,gap:6,children:[(0,R.jsx)(_9,{done:u,size:20,width:2.5}),(0,R.jsxs)(H,{fontSize:Q.small,fontWeight:`600`,color:`$ink`,children:[Math.round(u*100),`%`]})]})]}),(0,R.jsxs)(B,{gap:6,children:[(0,R.jsxs)(V,{height:6,rounded:Q5.pill,bg:`$panel`,overflow:`hidden`,gap:2,children:[(0,R.jsx)(B,{flex:Math.max(1,a),style:{backgroundColor:q5.done}}),(0,R.jsx)(B,{flex:Math.max(1,s),style:{backgroundColor:q5.doing}}),(0,R.jsx)(B,{flex:Math.max(1,c),style:{backgroundColor:q5.todo}}),(0,R.jsx)(B,{flex:Math.max(1,l),style:{backgroundColor:q5.backlog}})]}),(0,R.jsxs)(V,{justify:`space-between`,flexWrap:`wrap`,gap:8,children:[(0,R.jsxs)(H,{fontSize:Q.chip,color:`$quiet`,children:[`Backlog: `,l]}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$quiet`,children:[`To do: `,c]}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$quiet`,children:[`In progress: `,s]}),(0,R.jsxs)(H,{fontSize:Q.chip,color:`$quiet`,children:[`Done: `,a,` / `,i]})]})]}),(0,R.jsxs)(V,{items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:8,children:[(0,R.jsx)(V,{gap:6,flexWrap:`wrap`,children:[[`issues`,`Board`],[`issues/list`,`List`],[`issues/timeline`,`Timeline`]].map(([n,r])=>(0,R.jsx)(V,{...t7(()=>e(`/projects/${t._id}/${n}`),`${t.name} ${r}`),px:10,py:5,rounded:Q5.field,bg:`$panel`,borderWidth:1,borderColor:`$edge`,hoverStyle:{background:`$hover`},children:(0,R.jsx)(H,{fontSize:Q.chip,fontWeight:`600`,color:`$soft`,children:r})},n))}),(0,R.jsx)(sF,{size:`sm`,onPress:()=>e(`/projects/${t._id}/issues`),children:`Open Board →`})]})]},t._id)})})]})})}var N9=()=>{let{id:e}=$i();return(0,R.jsx)(xa,{to:e?`/projects/${e}/issues`:`/projects`,replace:!0})},P9=()=>{let e=A7();if(e.phase===`loading`)return F9(null);let t=[...e.data??[]].sort((e,t)=>e.name.localeCompare(t.name))[0];return(0,R.jsx)(xa,{to:t?`/projects/${t._id}/issues`:`/issues`,replace:!0})},F9=e=>(0,R.jsx)(m7,{nav:(0,R.jsx)(P_e,{}),aside:(0,R.jsx)(B7,{}),children:e}),I9=e=>(0,R.jsx)(m7,{nav:(0,R.jsx)(p_e,{}),aside:(0,R.jsx)(Gge,{}),children:e}),bve=[{path:`/`,element:(0,R.jsx)(P9,{})},{path:`/login`,element:(0,R.jsx)(P9,{})},{path:`/auth`,element:(0,R.jsx)(P9,{})},{path:`/auth/callback`,element:(0,R.jsx)(P9,{})},{path:`/issues`,element:F9((0,R.jsx)(M9,{}))},{path:`/issues/:view`,element:F9((0,R.jsx)(M9,{}))},{path:`/mine`,element:F9((0,R.jsx)(M9,{mine:!0}))},{path:`/mine/:view`,element:F9((0,R.jsx)(M9,{mine:!0}))},{path:`/projects`,element:F9((0,R.jsx)(yve,{}))},{path:`/projects/:id`,element:(0,R.jsx)(N9,{})},{path:`/projects/:id/issues`,element:F9((0,R.jsx)(M9,{}))},{path:`/projects/:id/issues/:view`,element:F9((0,R.jsx)(M9,{}))},{path:`/projects/:id/:page`,element:(0,R.jsx)(N9,{})},{path:`/chat`,element:I9((0,R.jsx)(e9,{}))},{path:`/chat/:id`,element:I9((0,R.jsx)(e9,{}))},{path:`/crm`,element:(0,R.jsx)(xa,{to:`/crm/investors`,replace:!0})},{path:`/crm/:section`,element:(e=>(0,R.jsx)(m7,{nav:(0,R.jsx)(T_e,{}),children:e}))((0,R.jsx)(j_e,{}))},{path:`/overview`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/bots`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/agents`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/agents/:id`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/apps`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/apps/:appId`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/calendar`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/cal`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/time`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/meet`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/inbox`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/docs`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/files`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/mail`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/admin`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/settings`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})},{path:`/people`,element:(0,R.jsx)(xa,{to:`/crm/investors`,replace:!0})},{path:`*`,element:(0,R.jsx)(xa,{to:`/chat`,replace:!0})}],xve=`<svg role="img" aria-label="Hanzo" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
164
- <!-- Origami fold-in → hover: one 3-D turn → press: squash. Pure CSS, no JS. Canonical 7-path shaded H. -->
165
-
166
- <style>.o{fill:#fff;opacity:0;transform-box:fill-box;transform-origin:left center;animation:fold 0.42s cubic-bezier(.16,1,.3,1) forwards}
167
- .s{fill:#ddd}
168
- @keyframes fold{from{opacity:0;transform:perspective(320px) rotateY(90deg)}to{opacity:1;transform:none}}
169
- .o0{animation-delay:0.00s}.o1{animation-delay:0.06s}.o2{animation-delay:0.12s}.o3{animation-delay:0.18s}.o4{animation-delay:0.24s}
170
- /* interaction — pure CSS, no JS: hover = one graceful turn (returns to rest), press = squash */
171
- .hanzo-hov{transform-box:view-box;transform-origin:33.5px 33.5px}
172
- .hanzo-prs{transform-box:view-box;transform-origin:33.5px 33.5px;transition:transform .22s cubic-bezier(.22,1,.36,1)}
173
- svg:hover .hanzo-hov{animation:hanzoTurn 0.85s cubic-bezier(.45,0,.2,1)}
174
- svg:active .hanzo-prs{transform:scale(.92)}
175
- @keyframes hanzoTurn{0%{transform:perspective(300px) rotateY(0)}100%{transform:perspective(300px) rotateY(360deg)}}
176
- @media (prefers-reduced-motion:reduce){.hanzo-hov,.hanzo-prs{animation:none!important;transform:none!important}.o{opacity:1;animation:none;transform:none}}
177
- </style>
178
- <g class="hanzo-hov"><g class="hanzo-prs">
179
- <path class="o o0" d="M22.21 0H0V22.3184H22.21V0Z"/>
180
- <path class="o o1" d="M66.7198 0H44.5098V22.3184H66.7198V0Z"/>
181
- <path class="o o1 s" d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z"/>
182
- <path class="o o2" d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z"/>
183
- <path class="o o3" d="M22.21 67V44.6369H0V67H22.21Z"/>
184
- <path class="o o3 s" d="M0 44.6369L22.21 46.8285V44.6369H0Z"/>
185
- <path class="o o4" d="M66.7198 67V44.6369H44.5098V67H66.7198Z"/>
186
- </g></g>
187
- </svg>`;function Sve(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
188
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/>
189
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/>
190
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/>
191
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/>
192
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
193
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/>
194
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
195
- </svg>`}function Cve(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
196
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#000000"/>
197
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#222222"/>
198
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#000000"/>
199
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#000000"/>
200
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#000000"/>
201
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#222222"/>
202
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#000000"/>
203
- </svg>`}function wve(){return`<svg viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg">
204
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/>
205
- <path d="M0 44.6369L22.21 46.8285V44.6369H0Z" fill="#DDDDDD"/>
206
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/>
207
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/>
208
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
209
- <path d="M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" fill="#DDDDDD"/>
210
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
211
- </svg>`}function Tve(){return`<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
212
- <rect width="64" height="64" rx="8" fill="#000000"/>
213
- <g transform="translate(8, 8) scale(0.716)">
214
- <path d="M22.21 67V44.6369H0V67H22.21Z" fill="#ffffff"/>
215
- <path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" fill="#ffffff"/>
216
- <path d="M22.21 0H0V22.3184H22.21V0Z" fill="#ffffff"/>
217
- <path d="M66.7198 0H44.5098V22.3184H66.7198V0Z" fill="#ffffff"/>
218
- <path d="M66.7198 67V44.6369H44.5098V67H66.7198Z" fill="#ffffff"/>
219
- </g>
220
- </svg>`}function L9(e={}){let{variant:t=`color`}=e,n=``;switch(t){case`mono`:n=Cve();break;case`white`:n=wve();break;case`favicon`:n=Tve();break;default:n=Sve()}return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(n)))}`}L9(),L9({variant:`mono`}),L9({variant:`white`}),L9({variant:`favicon`});function Eve(){return`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(xve)))}Eve();var R9=`hanzo_iam_`;`${R9}`;var Dve=`${R9}code_verifier`;`${R9}`,`${R9}`,`${R9}`,`${R9}`,`${Dve}`;var z9=(0,b.createContext)(null);z9.displayName=`IamContext`;function Ove(){let e=(0,b.useContext)(z9);if(!e)throw Error(`useIam() must be used within an <IamProvider>`);return e}var kve=`#181717`,Ave=b.forwardRef(function({title:e=`GitHub`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=kve),(0,R.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,R.jsx)(`title`,{children:e}),(0,R.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})]})}),jve=`#4285F4`,Mve=b.forwardRef(function({title:e=`Google`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=jve),(0,R.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,R.jsx)(`title`,{children:e}),(0,R.jsx)(`path`,{d:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`})]})}),B9=`https://hanzo.ai`;function Nve(e,t,n=B9){let r=new URL(e).searchParams,i=n.replace(/\/+$/,``);switch(t.kind){case`provider`:return r.set(`provider`,t.provider),`${i}/v1/iam/oauth/authorize?${r}`;case`email`:return r.set(`login_hint`,t.email),`${i}/login?${r}`;case`another`:return r.set(`prompt`,`select_account`),`${i}/login?${r}`;case`signup`:return`${i}/signup?${r}`;case`login`:return`${i}/login?${r}`}}function Pve(e){let t=e.trim();return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?t:null}var Fve={google:`Google`,github:`GitHub`},V9=`[data-slot="signin-panel"]`,H9=`var(--popover,var(--panel))`,U9=`var(--border,var(--edge))`,W9=`var(--border-strong,var(--bound))`,G9=`var(--foreground,var(--ink))`,K9=`var(--muted-foreground,var(--quiet))`,Ive=`${V9} [data-signin-body]{container-type:inline-size;display:flex;flex-direction:column;gap:10px;width:100%}${V9} [data-signin-pair]{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}@container (max-width:379.98px){${V9} [data-signin-pair]{grid-template-columns:1fr}}${V9} [data-signin-btn]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:46px;margin:0;padding:0 14px;border-radius:14px;border:1px solid ${U9};background:${H9};color:${G9};font-family:var(--font-sans,Zen,system-ui,sans-serif);font-size:14px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s,background-color .2s,opacity .2s}${V9} [data-signin-btn]:hover:not(:disabled){border-color:${W9};transform:translateY(-2px)}${V9} [data-signin-btn]:active:not(:disabled){transform:scale(.98)}${V9} [data-signin-btn]:disabled{opacity:.55;cursor:not-allowed}${V9} [data-signin-btn][data-solid]{background:${G9};color:var(--background);border-color:${G9}}${V9} [data-signin-btn][data-solid]:hover:not(:disabled){opacity:.92;transform:none}${V9} [data-signin-btn] svg{flex-shrink:0}${V9} [data-signin-or]{display:flex;align-items:center;gap:12px;font-size:12.5px;color:${K9}}${V9} [data-signin-or]::before,${V9} [data-signin-or]::after{content:'';flex:1;height:1px;background:${U9}}${V9} [data-signin-form]{display:flex;flex-direction:column;gap:10px;margin:0}${V9} [data-signin-field]{box-sizing:border-box;width:100%;height:46px;margin:0;padding:0 16px;border-radius:14px;border:1px solid ${U9};background-color:${H9};color:${G9};font-family:var(--font-sans,Zen,system-ui,sans-serif);font-size:14px;outline:none}${V9} [data-signin-field]::placeholder{color:${K9}}${V9} [data-signin-field]:focus-visible{border-color:${W9};box-shadow:0 0 0 2px var(--ring,${W9})}${V9} [data-signin-wrong]{margin:0;font-size:13px;color:var(--destructive,#e5484d)}${V9} [data-signin-quiet]{margin:0;font-size:13px;color:${K9}}${V9} [data-signin-quiet] button{padding:0;border:0;background:none;color:${G9};font:inherit;cursor:pointer}${V9} [data-signin-quiet] button:hover:not(:disabled){text-decoration:underline}${V9} [data-signin-terms]{margin:0;max-width:400px;text-align:center;font-size:12px;line-height:18px;color:${K9}}${V9} [data-signin-terms] a{color:${G9};text-decoration:none}${V9} [data-signin-terms] a:hover{text-decoration:underline;text-underline-offset:2px}`;function Lve(e){return e.request?(0,R.jsx)(q9,{...e,mint:e.request}):(0,R.jsx)(Rve,{...e})}function Rve(e){let{sdk:t}=Ove();return(0,R.jsx)(q9,{...e,mint:e=>t.getSigninUrl(e)})}function q9({title:e,line:t,providers:n=[`google`,`github`],signin:r=B9,signup:i=!1,termsHref:a=`https://hanzo.ai/terms`,privacyHref:o=`https://hanzo.ai/privacy`,authorize:s=e=>e,track:c,mint:l,background:u=`$background`,borderColor:d=`$borderColor`,bare:f=!1}){let{t:p}=_N(),[m,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(!1),[v,y]=(0,b.useState)(null),[x,S]=(0,b.useState)(null);async function C(e,t,n){S(null),y(e),c?.(`signin_started`,{method:e});try{let e=await l(n?{additionalParams:{login_hint:n}}:void 0);window.location.assign(s(Nve(e,t,r)))}catch(e){S(e instanceof Error&&e.message?e.message:`Signing in could not start. Try again.`),y(null)}}function w(e){e.preventDefault();let t=Pve(m);if(!t){S(`Enter your email address.`);return}C(`email`,{kind:`email`,email:t},t)}let T=f?{}:{bg:u,borderWidth:1,borderColor:d,rounded:`$6`,p:`$6`},E=p(v===`email`?`One moment…`:`Continue with email`);return(0,R.jsxs)(B,{"data-slot":`signin-panel`,"data-surface":f?`bare`:`card`,width:`100%`,maxW:f?400:464,items:`center`,gap:`$3`,...T,children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Ive}}),e?(0,R.jsx)(fh,{render:`h1`,size:`$8`,fontWeight:`500`,color:`$ink`,m:0,text:`center`,children:e}):null,t?(0,R.jsx)(dh,{size:`$3`,color:`$quiet`,m:0,text:`center`,maxW:360,children:t}):null,(0,R.jsxs)(`div`,{"data-signin-body":``,style:e||t?{marginTop:12}:void 0,children:[n.length?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{"data-signin-pair":``,children:n.map(e=>(0,R.jsxs)(`button`,{"data-signin-btn":``,type:`button`,disabled:v!==null,onClick:()=>void C(e,{kind:`provider`,provider:e}),children:[e===`google`?(0,R.jsx)(Mve,{size:17,"aria-hidden":!0}):(0,R.jsx)(Ave,{size:17,"aria-hidden":!0}),p(`Continue with {provider}`,{provider:Fve[e]})]},e))}),(0,R.jsx)(`div`,{"data-signin-or":``,children:p(`or`)})]}):null,g?(0,R.jsxs)(`form`,{"data-signin-form":``,onSubmit:w,noValidate:!0,children:[(0,R.jsx)(`input`,{id:`hanzo-signin-email`,"data-signin-field":``,type:`email`,name:`email`,autoComplete:`username`,"aria-label":p(`Email`),"aria-invalid":x?!0:void 0,value:m,onChange:e=>h(e.target.value),placeholder:`you@company.com`,autoFocus:!0}),x?(0,R.jsx)(`p`,{"data-signin-wrong":``,role:`alert`,children:p(x)}):null,(0,R.jsx)(`button`,{"data-signin-btn":``,"data-solid":``,type:`submit`,disabled:v!==null,children:E})]}):(0,R.jsxs)(R.Fragment,{children:[x?(0,R.jsx)(`p`,{"data-signin-wrong":``,role:`alert`,children:p(x)}):null,(0,R.jsx)(`button`,{"data-signin-btn":``,"data-solid":``,type:`button`,disabled:v!==null,onClick:()=>{S(null),_(!0)},children:E})]})]}),i?(0,R.jsxs)(`p`,{"data-signin-quiet":``,children:[`${p(`New to Hanzo?`)} `,(0,R.jsx)(`button`,{type:`button`,disabled:v!==null,onClick:()=>void C(`signup`,{kind:`signup`}),children:p(`Create account`)})]}):null,(0,R.jsx)(`p`,{"data-signin-terms":``,children:p(`By continuing, you agree to Hanzo's {terms} and {privacy}.`,{terms:(0,R.jsx)(`a`,{href:a,children:p(`Terms`)}),privacy:(0,R.jsx)(`a`,{href:o,children:p(`Privacy Policy`)})})})]})}var zve=()=>{let{land:e}=H4(),[t,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>{e().then(e=>window.location.replace(e)).catch(e=>n(e instanceof Error?e.message:String(e)))},[e]),(0,R.jsx)(B,{flex:1,items:`center`,justify:`center`,gap:Z5.inset,bg:Z.ground,children:t?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(H,{size:Q.body,color:Z.alert,children:t}),(0,R.jsx)(H,{size:Q.small,color:Z.mute,onPress:()=>window.location.replace(`/login`),children:`Try again`})]}):(0,R.jsx)(LL,{})})},Bve=520,Vve=[`general`,`engineering`,`revenue`,`support`],J9=`engineering`,Hve=()=>{let[e,t]=(0,b.useState)(!0);return(0,R.jsx)(`div`,{"aria-hidden":`true`,style:{width:`100%`,maxWidth:780},children:(0,R.jsxs)(B,{width:`100%`,rounded:Q5.panel,bg:Z.panel,borderWidth:1,borderColor:Z.rule,overflow:`hidden`,onLayout:e=>t(e.nativeEvent.layout.width>=Bve),children:[(0,R.jsxs)(V,{px:Z5.inset,py:Z5.tight,gap:Z5.tight,items:`center`,borderBottomWidth:1,borderColor:Z.rule,children:[[0,1,2].map(e=>(0,R.jsx)(B,{width:8,height:8,rounded:Q5.pill,bg:Z.rule},e)),(0,R.jsx)(H,{size:Q.chip,color:Z.dim,ml:Z5.tight,children:`hanzo.team`})]}),(0,R.jsxs)(V,{children:[e?(0,R.jsxs)(B,{width:168,p:Z5.inset,gap:Z5.tight,borderRightWidth:1,borderColor:Z.rule,children:[(0,R.jsx)(H,{...$5,size:Q.chip,color:Z.dim,children:`Channels`}),Vve.map(e=>(0,R.jsx)(V,{px:Z5.tight,py:4,rounded:Q5.field,bg:e===J9?Z.card:void 0,children:(0,R.jsxs)(H,{size:Q.small,color:e===J9?Z.ink:Z.mute,children:[`# `,e]})},e))]}):null,(0,R.jsxs)(B,{flex:1,minW:0,p:Z5.inset,gap:Z5.inset,children:[(0,R.jsxs)(H,{size:Q.small,color:Z.ink,fontWeight:`600`,children:[`# `,J9]}),(0,R.jsx)(Y9,{who:`Ana`,text:`@dev refunds are missing from the checkout webhook. Can you take it?`}),(0,R.jsx)(Y9,{who:`Dev`,agent:!0,text:`On it. Fixed the handler and opened a pull request: 14 of 14 checks pass.`,children:(0,R.jsxs)(V,{mt:Z5.tight,p:Z5.tight,gap:Z5.tight,items:`center`,rounded:Q5.card,bg:Z.card,borderWidth:1,borderColor:Z.rule,children:[(0,R.jsx)(B,{width:8,height:8,rounded:Q5.pill,bg:q5.doing}),(0,R.jsx)(H,{size:Q.chip,color:Z.dim,children:`TEAM-142`}),(0,R.jsx)(H,{size:Q.small,color:Z.ink,flex:1,minW:0,numberOfLines:1,children:`Refunds missing from checkout webhook`}),(0,R.jsx)(H,{size:Q.chip,color:Z.mute,children:`In review`})]})}),(0,R.jsxs)(V,{items:`center`,gap:Z5.tight,children:[(0,R.jsx)(LL,{size:16}),(0,R.jsx)(H,{size:Q.small,color:Z.dim,children:`Dev is deploying the fix…`})]})]})]})]})})},Y9=({who:e,agent:t=!1,text:n,children:r})=>(0,R.jsxs)(V,{gap:Z5.tight,items:`flex-start`,children:[(0,R.jsx)(B,{width:26,height:26,rounded:Q5.pill,items:`center`,justify:`center`,style:Y5(e),shrink:0,children:(0,R.jsx)(H,{size:Q.chip,fontWeight:`700`,style:{color:Y5(e).color},children:e[0]})}),(0,R.jsxs)(B,{flex:1,minW:0,gap:2,children:[(0,R.jsxs)(V,{items:`center`,gap:Z5.tight,children:[(0,R.jsx)(H,{size:Q.small,color:Z.ink,fontWeight:`600`,children:e}),t?(0,R.jsx)(V,{px:6,py:1,rounded:Q5.field,borderWidth:1,borderColor:Z.rule,children:(0,R.jsx)(H,{size:Q.chip,color:Z.mute,children:`Agent`})}):null]}),(0,R.jsx)(H,{size:Q.small,color:Z.mute,children:n}),r]})]}),Uve=[[`Channels`,`Your people and your agents, in one conversation.`],[`Agents`,`Hand an agent the work; it reports back when it is done.`],[`Issue boards`,`Every task from backlog to done, on one board.`]],Wve=()=>(0,R.jsx)(V,{width:`100%`,maxW:780,gap:Z5.wide,flexWrap:`wrap`,children:Uve.map(([e,t])=>(0,R.jsxs)(B,{flex:1,minW:200,gap:4,children:[(0,R.jsx)(H,{size:Q.body,color:Z.ink,fontWeight:`600`,children:e}),(0,R.jsx)(H,{size:Q.small,color:Z.mute,children:t})]},e))}),Gve=`https://pay.hanzo.ai/cart`,Kve=(e,t)=>{let n=new URL(Gve);return new URLSearchParams(e).forEach((e,t)=>n.searchParams.set(t,e)),n.searchParams.get(`plan`)||n.searchParams.set(`plan`,`team`),n.searchParams.set(`returnUrl`,`${t}/`),n.toString()},qve=`/auth/callback`,$=`https://hanzo.ai`,X9=`https://docs.hanzo.ai`,Jve=`https://github.com/hanzoai`,Yve=`https://status.hanzo.ai`,Xve=`https://hanzo.agency`,Zve=`https://hanzo.university`,Qve=[{label:`Features`,href:`https://hanzo.ai/team`},{label:`Docs`,href:`https://docs.hanzo.ai`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo App`,href:`https://hanzo.app`},{label:`API Platform`,href:`https://platform.hanzo.ai`},{label:`Hanzo AI`,href:`https://hanzo.ai`}],$ve=[{id:`damon`,name:`Damon Motorcycles`,logo:`/logos/customers/damon-motorcycles.svg`,href:`${$}/customers/damon-motorcycles`},{id:`kanoa`,name:`KANOA`,logo:`/logos/customers/kanoa.png`,href:`${$}/customers/kanoa`},{id:`skully`,name:`SKULLY`,logo:`/logos/customers/skully.png`,href:`${$}/customers#skully`},{id:`bellabeat`,name:`Bellabeat`,logo:`/logos/customers/bellabeat.svg`,href:`${$}/customers#bellabeat`},{id:`stoned`,name:`STONED Audio`,logo:`/logos/customers/stoned.svg`,href:`${$}/customers#stoned`},{id:`unikrn`,name:`Unikrn`,logo:`/logos/customers/unikoin-gold.svg`,href:`${$}/customers#unikoin-gold`},{id:`arca`,name:`Arca`,logo:`/logos/customers/arca.png`,href:`${$}/customers#arca`},{id:`casper`,name:`Casper Labs`,logo:`/logos/customers/casper-blockchain.svg`,href:`${$}/customers#casper-blockchain`},{id:`triller`,name:`Triller`,logo:`/logos/customers/trillerfest.png`,href:`${$}/customers#trillerfest`},{id:`cover`,name:`Cover Build`,logo:`/logos/customers/cover-build.svg`,href:`${$}/customers#cover-build`},{id:`myle`,name:`Myle Tap`,logo:`/logos/customers/myle-tap.png`,href:`${$}/customers#myle-tap`},{id:`keek`,name:`Personas Social`,logo:`/logos/customers/keek-social.svg`,href:`${$}/customers#keek-social`}],eye=[[{title:`Products`,href:`${$}/products`,links:[{label:`Hanzo App`,href:`https://hanzo.app`},{label:`Hanzo Dev`,href:`${$}/dev`},{label:`Hanzo Bot`,href:`https://hanzo.bot`},{label:`Hanzo Team`,href:`https://hanzo.team`},{label:`Hanzo Science`,href:`${$}/science`},{label:`Hanzo Security`,href:`${$}/security`},{label:`Download app`,href:`${$}/download`},{label:`Pricing`,href:`${$}/pricing`},{label:`Log in`,href:`/login`}]},{title:`Capabilities`,links:[{label:`Hanzo Design`,href:`${$}/design`},{label:`MCP`,href:`${$}/mcp`},{label:`Skills`,href:`${$}/skills`},{label:`Integrations`,href:`${$}/integrations`},{label:`Hanzo CLI`,href:`${$}/cli`}]},{title:`Extensions`,links:[{label:`Hanzo in Chrome`,href:`${$}/extension`},{label:`Desktop app`,href:`${$}/desktop`},{label:`Hanzo IDE`,href:`${$}/ide`}]},{title:`Models`,href:`${$}/models`,links:[{label:`All models`,href:`${$}/models`},{label:`Zen`,href:`${$}/zen`},{label:`Enso`,href:`${$}/enso`},{label:`Kai`,href:`${$}/kai`},{label:`Video · Koma`,href:`${$}/koma`},{label:`Images · Iro`,href:`${$}/iro`},{label:`3D · Mori`,href:`${$}/mori`},{label:`Voice · Koe`,href:`${$}/koe`},{label:`Benchmarks`,href:`${$}/benchmarks`}]}],[{title:`Enterprise`,href:`${$}/enterprise`,links:[{label:`Overview`,href:`${$}/enterprise`},{label:`All solutions`,href:`${$}/solutions`},{label:`Customer stories`,href:`${$}/customers`},{label:`Contact sales`,href:`${$}/contact-sales`}]},{title:`Teams`,href:`${$}/solutions`,links:[{label:`Engineering`,href:`${$}/solutions/engineering`},{label:`Operations`,href:`${$}/solutions/operations`},{label:`Finance`,href:`${$}/solutions/finance`},{label:`Data`,href:`${$}/solutions/data`},{label:`Sales`,href:`${$}/solutions/sales`},{label:`Marketing`,href:`${$}/solutions/marketing`},{label:`Design`,href:`${$}/solutions/design`}]},{title:`Industries`,href:`${$}/solutions`,links:[{label:`Cybersecurity`,href:`${$}/solutions/cybersecurity`},{label:`Financial services`,href:`${$}/solutions/financial-services`},{label:`Government`,href:`${$}/solutions/government`},{label:`Healthcare`,href:`${$}/solutions/healthcare`},{label:`Education`,href:`${$}/solutions/education`},{label:`Law`,href:`${$}/solutions/law`},{label:`Retail`,href:`${$}/solutions/retail`}]},{title:`Programs`,href:`${$}/startups`,links:[{label:`Startups`,href:`${$}/startups`},{label:`Affiliate program`,href:`${$}/affiliate`},{label:`Referral program`,href:`${$}/referral`},{label:`Reserved tier`,href:`${$}/solutions/reserved`},{label:`OSS grants`,href:`${$}/open-source`}]}],[{title:`Developers`,href:X9,links:[{label:`Developer docs`,href:X9},{label:`API reference`,href:`${X9}/docs/openapi/`},{label:`Quickstart`,href:`${X9}/docs/quickstart/`},{label:`SDKs`,href:`${$}/sdks`},{label:`Console`,href:`https://platform.hanzo.ai`},{label:`GitHub`,href:Jve}]},{title:`API Platform`,href:`${$}/platform`,links:[{label:`Overview`,href:`${$}/platform`},{label:`API keys`,href:`https://platform.hanzo.ai/settings/organization/keys`},{label:`Gateway`,href:`${$}/gateway`},{label:`Agents`,href:`${$}/agents`},{label:`Playground`,href:`${$}/playground`}]},{title:`Cloud`,href:`${$}/products`,links:[{label:`Base`,href:`${$}/base`},{label:`Machines`,href:`${$}/machines`},{label:`Search`,href:`${$}/search`},{label:`Datastore`,href:`${$}/datastore`},{label:`Memory`,href:`${$}/products/memory`},{label:`Realtime`,href:`${$}/realtime`},{label:`Observability`,href:`${$}/o11y`},{label:`Insights`,href:`${$}/insights`},{label:`Commerce`,href:`${$}/commerce`}]},{title:`Help and security`,links:[{label:`Availability`,href:Yve},{label:`Help center`,href:`${$}/support`},{label:`Security and compliance`,href:`${$}/security`},{label:`Trust & transparency`,href:`${$}/trust`}]}],[{title:`Company`,href:`${$}/about`,links:[{label:`Hanzo AI`,href:`${$}/about`},{label:`Careers`,href:`${$}/careers`},{label:`Philosophy`,href:`${$}/philosophy`},{label:`Research`,href:`${$}/research`},{label:`News`,href:`${$}/press`},{label:`Investors`,href:`${$}/investors`},{label:`Brand`,href:`${$}/brand`},{label:`Open source`,href:`${$}/open-source`},{label:`Contact`,href:`${$}/contact`}]},{title:`Resources`,href:`${$}/learn`,links:[{label:`Blog`,href:`${$}/blog`},{label:`Guides`,href:`${X9}/docs/guides/`},{label:`Cookbook`,href:`${X9}/docs/guides/cookbook/`},{label:`Hanzo University`,href:Zve},{label:`Hanzo Agency`,href:Xve},{label:`Cost calculator`,href:`${$}/calculator`}]},{title:`Terms and policies`,href:`${$}/legal`,links:[{label:`Privacy choices`,href:`${$}/privacy#choices`},{label:`Privacy policy`,href:`${$}/privacy`},{label:`Terms of service`,href:`${$}/terms`},{label:`Usage policy`,href:`${$}/aup`},{label:`Cookie policy`,href:`${$}/cookies`},{label:`Other policies`,href:`${$}/legal`}]}]],tye=[{label:`Discord`,href:`https://discord.gg/XthHQQj`},{label:`Telegram`,href:`https://t.me/hanzoai`},{label:`X`,href:`https://x.com/hanzoai`},{label:`GitHub`,href:`https://github.com/hanzoai`},{label:`LinkedIn`,href:`https://linkedin.com/company/hanzo-ai`},{label:`Facebook`,href:`https://facebook.com/hanzoinc`},{label:`Bluesky`,href:`https://bsky.app/profile/hanzoai.bsky.social`},{label:`Reddit`,href:`https://www.reddit.com/r/HanzoAI/`},{label:`TikTok`,href:`https://www.tiktok.com/@hanzoinc`},{label:`Instagram`,href:`https://www.instagram.com/hanzoinc`}];function nye(){let e=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let t=e.current,n=t?.parentElement;if(!t||!n)return;let r=t.getContext(`2d`);if(!r)return;let i=.14,a=0,o=0,s=1,c=0,l={x:-9999,y:-9999},u={x:-9999,y:-9999},d=()=>{let e=n.getBoundingClientRect();s=Math.min(window.devicePixelRatio||1,2),a=e.width,o=e.height,t.width=Math.max(1,Math.round(a*s)),t.height=Math.max(1,Math.round(o*s)),r.setTransform(s,0,0,s,0,0)},f=e=>{let n=(e||0)*.001;r.clearRect(0,0,a,o),r.fillStyle=getComputedStyle(t).color;let i=Math.ceil(a/14),s=Math.ceil(o/14),c=(a-(i-1)*14)*.5,u=(o-(s-1)*14)*.5,d=a*.5,f=o*.45,p=a*.56,m=o*.58,h=l.x,g=l.y,_=h>-999,v=a*(.5+.28*Math.cos(n*.42)),y=o*(.45+.22*Math.sin(n*.31)),b=a*(.5+.32*Math.sin(n*.27+1.8)),x=o*(.48+.24*Math.cos(n*.36+.9)),S=Math.max(a,o)*.28,C=1/(S*S);for(let e=0;e<s;e++){let t=u+e*14,a=(t-f)/m;for(let o=0;o<i;o++){let i=c+o*14,s=(i-d)/p,l=Math.hypot(s,a),u=Math.max(0,Math.min(1,(l-.16)/.88)),f=Math.max(0,1-Math.max(0,l-.72)*1.45),m=.5+.5*Math.sin(o*.18+e*.14-n*1.15+Math.cos(o*.09-e*.11+n*.65)*1.3),S=(i-v)*(i-v)+(t-y)*(t-y),w=(i-b)*(i-b)+(t-x)*(t-x),T=Math.exp(-S*C)*.65+Math.exp(-w*C)*.55,E=(.7+u*2.1+m*.42+T*.95)*(.45+f*.55),D=(.045+u*.18+m*.035+T*.11)*f;if(_){let e=i-h,n=t-g,r=e*e+n*n;if(r<36100){let e=1-Math.sqrt(r)/190,t=e*e*(3-2*e);E+=t*1.9,D=Math.min(.68,D+t*.34)}}D<.01||E<.3||(r.globalAlpha=D,r.beginPath(),r.arc(i,t,E,0,Math.PI*2),r.fill())}}r.globalAlpha=1},p=e=>{l.x+=(u.x-l.x)*i,l.y+=(u.y-l.y)*i,f(e),c=requestAnimationFrame(p)},m=e=>{let t=n.getBoundingClientRect();u.x=e.clientX-t.left,u.y=e.clientY-t.top,l.x<-999&&(l.x=u.x,l.y=u.y)},h=()=>{u.x=-9999,u.y=-9999};d(),c=requestAnimationFrame(p);let g=new ResizeObserver(()=>d());return g.observe(n),n.addEventListener(`pointermove`,m,{passive:!0}),n.addEventListener(`pointerleave`,h,{passive:!0}),()=>{cancelAnimationFrame(c),g.disconnect(),n.removeEventListener(`pointermove`,m),n.removeEventListener(`pointerleave`,h)}},[]),(0,R.jsx)(`canvas`,{ref:e,"aria-hidden":`true`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,pointerEvents:`none`,zIndex:0,color:`var(--foreground)`}})}var rye=()=>{let{standing:e,depart:t,request:n}=H4(),[r,i]=(0,b.useState)(null);if(e===`in`)return null;let a=(e,n)=>{i(e),t(n).catch(()=>i(null))},o=r!==null;return(0,R.jsxs)(B,{flex:1,bg:Z.ground,overflow:`scroll`,children:[(0,R.jsxs)(V,{width:`100%`,minH:68,px:Z5.wide,py:Z5.tight,items:`center`,justify:`space-between`,borderBottomWidth:1,borderColor:Z.rule,bg:Z.panel,style:{position:`sticky`,top:0,zIndex:40},children:[(0,R.jsx)(V,{items:`center`,gap:Z5.tight,cursor:`pointer`,onPress:()=>window.location.assign(`/`),children:(0,R.jsx)(H,{size:Q.row,color:Z.ink,fontWeight:`600`,children:i4.title})}),(0,R.jsxs)(V,{items:`center`,gap:Z5.tight,flexWrap:`wrap`,children:[Qve.map(e=>(0,R.jsx)(sF,{size:`sm`,chromeless:!0,rounded:Q5.pill,onPress:()=>window.location.assign(e.href),children:(0,R.jsx)(H,{size:Q.small,color:Z.mute,children:e.label})},e.label)),(0,R.jsx)(sF,{size:`sm`,variant:`outline`,rounded:Q5.field,onPress:()=>window.location.assign(`https://hanzo.ai/contact-sales`),children:(0,R.jsx)(H,{size:Q.small,color:Z.ink,children:`Contact sales`})}),(0,R.jsx)(sF,{size:`sm`,chromeless:!0,rounded:Q5.field,disabled:o,onPress:()=>a(`nav`,`login`),children:(0,R.jsx)(H,{size:Q.small,color:Z.ink,children:`Log in`})}),(0,R.jsx)(sF,{size:`sm`,rounded:Q5.field,disabled:o,onPress:()=>a(`open`,`login`),children:(0,R.jsx)(H,{size:Q.small,color:Z.ink,fontWeight:`600`,children:((e,t)=>r===e?`One moment…`:t)(`open`,`Open Hanzo Team`)})})]})]}),(0,R.jsxs)(`main`,{className:`hz-signin`,children:[(0,R.jsx)(nye,{}),(0,R.jsxs)(`div`,{className:`hz-signin-row`,children:[(0,R.jsx)(`div`,{className:`hz-signin-copy`,children:(0,R.jsx)(Lve,{title:`Sign in to Hanzo ${i4.title}`,line:`AI cockpit, live streams, issue boards, channels, and bots for your team.`,request:n,termsHref:`${$}/terms`,privacyHref:`${$}/privacy`})}),(0,R.jsxs)(`div`,{className:`hz-signin-figure`,children:[(0,R.jsx)(Hve,{}),(0,R.jsx)(Wve,{})]})]})]}),(0,R.jsxs)(B,{width:`100%`,items:`center`,px:Z5.wide,py:Z5.edge,gap:Z5.inset,bg:Z.ground,children:[(0,R.jsx)(H,{size:Q.small,color:Z.mute,fontWeight:`500`,style:{textAlign:`center`},children:`Companies building with the Hanzo API`}),(0,R.jsx)(`div`,{className:`hz-mq-view`,children:(0,R.jsx)(`div`,{className:`hz-mq-track`,children:[0,1].map(e=>$ve.map(t=>{let n=e>0;return(0,R.jsx)(`a`,{href:t.href,className:`hz-logo`,"aria-label":n?void 0:t.name,"aria-hidden":n||void 0,tabIndex:n?-1:void 0,target:`_blank`,rel:`noopener noreferrer`,title:t.name,children:(0,R.jsx)(`img`,{src:t.logo,alt:n?``:t.name,loading:`lazy`})},`${e}-${t.id}`)}))})})]}),(0,R.jsx)(B,{width:`100%`,borderTopWidth:1,borderColor:Z.rule,bg:Z.panel,px:Z5.wide,py:Z5.edge,children:(0,R.jsxs)(B,{width:`100%`,maxW:1240,mx:`auto`,gap:Z5.edge,children:[(0,R.jsxs)(V,{justify:`space-between`,items:`flex-start`,gap:Z5.edge,flexWrap:`wrap`,children:[(0,R.jsx)(B,{minW:160,gap:Z5.tight,children:(0,R.jsxs)(V,{items:`center`,gap:Z5.tight,cursor:`pointer`,onPress:()=>window.location.assign($),children:[(0,R.jsx)(B,{width:22,height:22,rounded:Q5.field,bg:Z.ink,items:`center`,justify:`center`,children:(0,R.jsx)(H,{size:Q.small,color:Z.ground,fontWeight:`700`,children:`H`})}),(0,R.jsx)(H,{size:Q.row,color:Z.ink,fontWeight:`600`,children:`Hanzo`})]})}),(0,R.jsx)(V,{gap:Z5.edge,flexWrap:`wrap`,grow:1,justify:`space-between`,children:eye.map((e,t)=>(0,R.jsx)(B,{minW:150,gap:Z5.inset,children:e.map(e=>(0,R.jsxs)(B,{gap:Z5.tight,children:[(0,R.jsx)(H,{size:Q.small,color:Z.ink,fontWeight:`600`,cursor:e.href?`pointer`:void 0,onPress:e.href?()=>window.location.assign(e.href):void 0,style:{lineHeight:`1.35`},children:e.title}),(0,R.jsx)(B,{style:{gap:`2.5px`},children:e.links.map(e=>(0,R.jsx)(H,{size:Q.small,color:Z.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.32`},children:e.label},e.href+e.label))})]},e.title))},t))})]}),(0,R.jsx)(V,{pt:Z5.inset,borderTopWidth:1,borderColor:Z.rule,items:`center`,flexWrap:`wrap`,style:{columnGap:`24px`,rowGap:`8px`},children:tye.map(e=>(0,R.jsxs)(H,{size:Q.small,color:Z.mute,cursor:`pointer`,onPress:()=>window.location.assign(e.href),style:{lineHeight:`1.35`},children:[e.label,` ↗`]},e.label))}),(0,R.jsxs)(V,{pt:Z5.inset,borderTopWidth:1,borderColor:Z.rule,items:`center`,justify:`space-between`,flexWrap:`wrap`,gap:Z5.tight,children:[(0,R.jsx)(H,{size:Q.chip,color:Z.dim,children:`© 2026 Hanzo AI, Inc. All rights reserved.`}),(0,R.jsx)(V,{gap:Z5.inset,flexWrap:`wrap`,children:[[`Terms`,`${$}/terms`],[`Privacy`,`${$}/privacy`],[`Usage policy`,`${$}/aup`],[`Privacy choices`,`${$}/privacy#choices`]].map(([e,t])=>(0,R.jsx)(H,{size:Q.chip,color:Z.dim,cursor:`pointer`,onPress:()=>window.location.assign(t),children:e},e))})]})]})})]})},iye=({children:e})=>{let{standing:t}=H4(),{standing:n,refusal:r,enrolment:i}=s3();return window.location.pathname===qve?(0,R.jsx)(zve,{}):window.location.pathname===`/start`?(0,R.jsx)(aye,{to:Kve(window.location.search,window.location.origin)}):t===`unknown`?(0,R.jsx)(Z9,{}):t===`out`?(0,R.jsx)(rye,{}):n===`stranger`?(0,R.jsx)(Q9,{title:`One more step`,body:`Set up your workspace to see your projects.`,children:(0,R.jsx)(sF,{onPress:()=>window.location.assign(i),children:`Set up`})}):n===`refused`?(0,R.jsx)(Q9,{title:`Your workspace is not answering`,body:r?.message??``,children:(0,R.jsx)(sF,{onPress:()=>window.location.reload(),children:`Try again`})}):n===`unknown`?(0,R.jsx)(Z9,{}):(0,R.jsx)(R.Fragment,{children:e})},aye=({to:e})=>((0,b.useEffect)(()=>window.location.replace(e),[e]),(0,R.jsx)(Z9,{})),Z9=()=>(0,R.jsx)(B,{flex:1,items:`center`,justify:`center`,bg:Z.ground,children:(0,R.jsx)(LL,{})}),Q9=({title:e,body:t,children:n})=>(0,R.jsxs)(B,{flex:1,items:`center`,justify:`center`,gap:Z5.inset,bg:Z.ground,p:Z5.wide,children:[(0,R.jsx)(H,{size:Q.title,color:Z.ink,children:e}),t?(0,R.jsx)(H,{size:Q.body,color:Z.mute,children:t}):null,n]}),oye=()=>ta(bve),sye=200,cye=()=>(0,R.jsxs)(mde,{children:[(0,R.jsx)(DP,{delay:sye,children:(0,R.jsx)(Zde,{children:(0,R.jsxs)(_fe,{children:[(0,R.jsx)(Age,{}),(0,R.jsx)(iye,{children:(0,R.jsx)(co,{children:(0,R.jsx)(oye,{})})})]})})}),(0,R.jsx)(Zoe,{theme:`dark`,position:`top-center`}),(0,R.jsx)(Tde,{floating:!1})]});vr({token:()=>A4().getAccessToken()??void 0});var $9=document.getElementById(`root`);if(!$9)throw Error(`no #root`);(0,x.createRoot)($9).render((0,R.jsx)(b.StrictMode,{children:(0,R.jsx)(cye,{})}));export{_ as a,u as c,So as i,Jp as n,p as o,Ho as r,s,D6 as t};
221
- //# sourceMappingURL=index-B-xfsR5K.js.map