qtype 0.0.15__py3-none-any.whl → 0.1.0__py3-none-any.whl

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 (126) hide show
  1. qtype/application/commons/tools.py +1 -1
  2. qtype/application/converters/tools_from_api.py +5 -5
  3. qtype/application/converters/tools_from_module.py +2 -2
  4. qtype/application/converters/types.py +14 -43
  5. qtype/application/documentation.py +1 -1
  6. qtype/application/facade.py +92 -71
  7. qtype/base/types.py +227 -7
  8. qtype/commands/convert.py +20 -8
  9. qtype/commands/generate.py +19 -27
  10. qtype/commands/run.py +54 -36
  11. qtype/commands/serve.py +74 -54
  12. qtype/commands/validate.py +34 -8
  13. qtype/commands/visualize.py +46 -22
  14. qtype/dsl/__init__.py +6 -5
  15. qtype/dsl/custom_types.py +1 -1
  16. qtype/dsl/domain_types.py +65 -5
  17. qtype/dsl/linker.py +384 -0
  18. qtype/dsl/loader.py +315 -0
  19. qtype/dsl/model.py +612 -363
  20. qtype/dsl/parser.py +200 -0
  21. qtype/dsl/types.py +50 -0
  22. qtype/interpreter/api.py +58 -135
  23. qtype/interpreter/auth/aws.py +19 -9
  24. qtype/interpreter/auth/generic.py +93 -16
  25. qtype/interpreter/base/base_step_executor.py +429 -0
  26. qtype/interpreter/base/batch_step_executor.py +171 -0
  27. qtype/interpreter/base/exceptions.py +50 -0
  28. qtype/interpreter/base/executor_context.py +74 -0
  29. qtype/interpreter/base/factory.py +117 -0
  30. qtype/interpreter/base/progress_tracker.py +75 -0
  31. qtype/interpreter/base/secrets.py +339 -0
  32. qtype/interpreter/base/step_cache.py +73 -0
  33. qtype/interpreter/base/stream_emitter.py +469 -0
  34. qtype/interpreter/conversions.py +455 -21
  35. qtype/interpreter/converters.py +73 -0
  36. qtype/interpreter/endpoints.py +355 -0
  37. qtype/interpreter/executors/agent_executor.py +242 -0
  38. qtype/interpreter/executors/aggregate_executor.py +93 -0
  39. qtype/interpreter/executors/decoder_executor.py +163 -0
  40. qtype/interpreter/executors/doc_to_text_executor.py +112 -0
  41. qtype/interpreter/executors/document_embedder_executor.py +75 -0
  42. qtype/interpreter/executors/document_search_executor.py +122 -0
  43. qtype/interpreter/executors/document_source_executor.py +118 -0
  44. qtype/interpreter/executors/document_splitter_executor.py +105 -0
  45. qtype/interpreter/executors/echo_executor.py +63 -0
  46. qtype/interpreter/executors/field_extractor_executor.py +160 -0
  47. qtype/interpreter/executors/file_source_executor.py +101 -0
  48. qtype/interpreter/executors/file_writer_executor.py +110 -0
  49. qtype/interpreter/executors/index_upsert_executor.py +228 -0
  50. qtype/interpreter/executors/invoke_embedding_executor.py +92 -0
  51. qtype/interpreter/executors/invoke_flow_executor.py +51 -0
  52. qtype/interpreter/executors/invoke_tool_executor.py +353 -0
  53. qtype/interpreter/executors/llm_inference_executor.py +272 -0
  54. qtype/interpreter/executors/prompt_template_executor.py +78 -0
  55. qtype/interpreter/executors/sql_source_executor.py +106 -0
  56. qtype/interpreter/executors/vector_search_executor.py +91 -0
  57. qtype/interpreter/flow.py +147 -22
  58. qtype/interpreter/metadata_api.py +115 -0
  59. qtype/interpreter/resource_cache.py +5 -4
  60. qtype/interpreter/stream/chat/__init__.py +15 -0
  61. qtype/interpreter/stream/chat/converter.py +391 -0
  62. qtype/interpreter/{chat → stream/chat}/file_conversions.py +2 -2
  63. qtype/interpreter/stream/chat/ui_request_to_domain_type.py +140 -0
  64. qtype/interpreter/stream/chat/vercel.py +609 -0
  65. qtype/interpreter/stream/utils/__init__.py +15 -0
  66. qtype/interpreter/stream/utils/build_vercel_ai_formatter.py +74 -0
  67. qtype/interpreter/stream/utils/callback_to_stream.py +66 -0
  68. qtype/interpreter/stream/utils/create_streaming_response.py +18 -0
  69. qtype/interpreter/stream/utils/default_chat_extract_text.py +20 -0
  70. qtype/interpreter/stream/utils/error_streaming_response.py +20 -0
  71. qtype/interpreter/telemetry.py +135 -8
  72. qtype/interpreter/tools/__init__.py +5 -0
  73. qtype/interpreter/tools/function_tool_helper.py +265 -0
  74. qtype/interpreter/types.py +328 -0
  75. qtype/interpreter/typing.py +83 -89
  76. qtype/interpreter/ui/404/index.html +1 -1
  77. qtype/interpreter/ui/404.html +1 -1
  78. qtype/interpreter/ui/_next/static/{nUaw6_IwRwPqkzwe5s725 → 20HoJN6otZ_LyHLHpCPE6}/_buildManifest.js +1 -1
  79. qtype/interpreter/ui/_next/static/chunks/{393-8fd474427f8e19ce.js → 434-b2112d19f25c44ff.js} +3 -3
  80. qtype/interpreter/ui/_next/static/chunks/app/page-8c67d16ac90d23cb.js +1 -0
  81. qtype/interpreter/ui/_next/static/chunks/ba12c10f-546f2714ff8abc66.js +1 -0
  82. qtype/interpreter/ui/_next/static/css/8a8d1269e362fef7.css +3 -0
  83. qtype/interpreter/ui/icon.png +0 -0
  84. qtype/interpreter/ui/index.html +1 -1
  85. qtype/interpreter/ui/index.txt +4 -4
  86. qtype/semantic/checker.py +583 -0
  87. qtype/semantic/generate.py +262 -83
  88. qtype/semantic/loader.py +95 -0
  89. qtype/semantic/model.py +436 -159
  90. qtype/semantic/resolver.py +59 -17
  91. qtype/semantic/visualize.py +28 -31
  92. {qtype-0.0.15.dist-info → qtype-0.1.0.dist-info}/METADATA +16 -3
  93. qtype-0.1.0.dist-info/RECORD +134 -0
  94. qtype/dsl/base_types.py +0 -38
  95. qtype/dsl/validator.py +0 -465
  96. qtype/interpreter/batch/__init__.py +0 -0
  97. qtype/interpreter/batch/file_sink_source.py +0 -162
  98. qtype/interpreter/batch/flow.py +0 -95
  99. qtype/interpreter/batch/sql_source.py +0 -92
  100. qtype/interpreter/batch/step.py +0 -74
  101. qtype/interpreter/batch/types.py +0 -41
  102. qtype/interpreter/batch/utils.py +0 -178
  103. qtype/interpreter/chat/chat_api.py +0 -237
  104. qtype/interpreter/chat/vercel.py +0 -314
  105. qtype/interpreter/exceptions.py +0 -10
  106. qtype/interpreter/step.py +0 -67
  107. qtype/interpreter/steps/__init__.py +0 -0
  108. qtype/interpreter/steps/agent.py +0 -114
  109. qtype/interpreter/steps/condition.py +0 -36
  110. qtype/interpreter/steps/decoder.py +0 -88
  111. qtype/interpreter/steps/llm_inference.py +0 -171
  112. qtype/interpreter/steps/prompt_template.py +0 -54
  113. qtype/interpreter/steps/search.py +0 -24
  114. qtype/interpreter/steps/tool.py +0 -219
  115. qtype/interpreter/streaming_helpers.py +0 -123
  116. qtype/interpreter/ui/_next/static/chunks/app/page-7e26b6156cfb55d3.js +0 -1
  117. qtype/interpreter/ui/_next/static/chunks/ba12c10f-22556063851a6df2.js +0 -1
  118. qtype/interpreter/ui/_next/static/css/b40532b0db09cce3.css +0 -3
  119. qtype/interpreter/ui/favicon.ico +0 -0
  120. qtype/loader.py +0 -390
  121. qtype-0.0.15.dist-info/RECORD +0 -106
  122. /qtype/interpreter/ui/_next/static/{nUaw6_IwRwPqkzwe5s725 → 20HoJN6otZ_LyHLHpCPE6}/_ssgManifest.js +0 -0
  123. {qtype-0.0.15.dist-info → qtype-0.1.0.dist-info}/WHEEL +0 -0
  124. {qtype-0.0.15.dist-info → qtype-0.1.0.dist-info}/entry_points.txt +0 -0
  125. {qtype-0.0.15.dist-info → qtype-0.1.0.dist-info}/licenses/LICENSE +0 -0
  126. {qtype-0.0.15.dist-info → qtype-0.1.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[393],{239:(e,t,n)=>{"use strict";n.d(t,{bL:()=>k,zi:()=>x});var r=n(2115),i=n(5185),a=n(6101),o=n(6081),s=n(5845),l=n(1275),u=n(3655),c=n(5155),d="Switch",[f,p]=(0,o.A)(d),[h,m]=f(d),g=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:o,checked:l,defaultChecked:f,required:p,disabled:m,value:g="on",onCheckedChange:y,form:v,...k}=e,[x,_]=r.useState(null),S=(0,a.s)(t,e=>_(e)),E=r.useRef(!1),C=!x||v||!!x.closest("form"),[A,T]=(0,s.i)({prop:l,defaultProp:null!=f&&f,onChange:y,caller:d});return(0,c.jsxs)(h,{scope:n,checked:A,disabled:m,children:[(0,c.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":A,"aria-required":p,"data-state":w(A),"data-disabled":m?"":void 0,disabled:m,value:g,...k,ref:S,onClick:(0,i.m)(e.onClick,e=>{T(e=>!e),C&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),C&&(0,c.jsx)(b,{control:x,bubbles:!E.current,name:o,value:g,checked:A,required:p,disabled:m,form:v,style:{transform:"translateX(-100%)"}})]})});g.displayName=d;var y="SwitchThumb",v=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=m(y,n);return(0,c.jsx)(u.sG.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});v.displayName=y;var b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:i,checked:o,bubbles:s=!0,...u}=e,d=r.useRef(null),f=(0,a.s)(d,t),p=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(o),h=(0,l.X)(i);return r.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==o&&t){let n=new Event("click",{bubbles:s});t.call(e,o),e.dispatchEvent(n)}},[p,o,s]),(0,c.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...u,tabIndex:-1,ref:f,style:{...u.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function w(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var k=g,x=v},492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},540:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(4423);function i(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},713:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(9072);function i(){let e={};for(let t in r.UI)e[r.UI[t]]=`rdp-${r.UI[t]}`;for(let t in r.pL)e[r.pL[t]]=`rdp-${r.pL[t]}`;for(let t in r.wc)e[r.wc[t]]=`rdp-${r.wc[t]}`;for(let t in r.X5)e[r.X5[t]]=`rdp-${r.X5[t]}`;return e}},838:(e,t,n)=>{"use strict";let r;n.d(t,{Ay:()=>K});var i=n(2115),a=n(9033),o=Object.prototype.hasOwnProperty;let s=new WeakMap,l=()=>{},u=l(),c=Object,d=e=>e===u,f=(e,t)=>({...e,...t}),p={},h={},m="undefined",g=typeof window!=m,y=typeof document!=m,v=g&&"Deno"in window,b=(e,t)=>{let n=s.get(e);return[()=>!d(t)&&e.get(t)||p,r=>{if(!d(t)){let i=e.get(t);t in h||(h[t]=i),n[5](t,f(i,r),i||p)}},n[6],()=>!d(t)&&t in h?h[t]:!d(t)&&e.get(t)||p]},w=!0,[k,x]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],_={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},n=()=>{w=!1};return k("online",t),k("offline",n),()=>{x("online",t),x("offline",n)}}},S=!i.useId,E=!g||v,C=E?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!E&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),O=new WeakMap,P=(e,t)=>e==="[object ".concat(t,"]"),I=0,M=e=>{let t,n,r=typeof e,i=c.prototype.toString.call(e),a=P(i,"Date"),o=P(i,"RegExp"),s=P(i,"Object");if(c(e)!==e||a||o)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=O.get(e))return t;if(t=++I+"~",O.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=M(e[n])+",";O.set(e,t)}if(s){t="#";let r=c.keys(e).sort();for(;!d(n=r.pop());)d(e[n])||(t+=n+":"+M(e[n])+",");O.set(e,t)}}return t},z=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?M(e):"",t]},N=0,D=()=>++N;async function L(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,a,o]=t,l=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),c=l.populateCache,p=l.rollbackOnError,h=l.optimisticData,m=l.throwOnError;if("function"==typeof i){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&i(r.get(t)._k)&&e.push(t);return Promise.all(e.map(g))}return g(i);async function g(e){let n,[i]=z(e);if(!i)return;let[o,f]=b(r,i),[g,y,v,w]=s.get(r),k=()=>{let t=g[i];return("function"==typeof l.revalidate?l.revalidate(o().data,e):!1!==l.revalidate)&&(delete v[i],delete w[i],t&&t[0])?t[0](2).then(()=>o().data):o().data};if(t.length<3)return k();let x=a,_=!1,S=D();y[i]=[S,0];let E=!d(h),C=o(),A=C.data,T=C._c,O=d(T)?A:T;if(E&&f({data:h="function"==typeof h?h(O,A):h,_c:O}),"function"==typeof x)try{x=x(O)}catch(e){n=e,_=!0}if(x&&"function"==typeof x.then){let e;if(x=await x.catch(e=>{n=e,_=!0}),S!==y[i][0]){if(_)throw n;return x}_&&E&&(e=n,"function"==typeof p?p(e):!1!==p)&&(c=!0,f({data:O,_c:u}))}if(c&&!_&&("function"==typeof c?f({data:c(x,O),error:u,_c:u}):f({data:x,error:u,_c:u})),y[i][1]=D(),Promise.resolve(k()).then(()=>{f({_c:u})}),_){if(m)throw n;return}return x}}let j=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!s.has(e)){let n=f(_,t),r=Object.create(null),i=L.bind(u,e),a=l,o=Object.create(null),c=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},p=()=>{if(!s.has(e)&&(s.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,d,c]),!E)){let t=n.initFocus(setTimeout.bind(u,j.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,j.bind(u,r,1)));a=()=>{t&&t(),i&&i(),s.delete(e)}}};return p(),[e,i,p,a]}return[e,s.get(e)[4]]},[F,$]=R(new Map),Z=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(d(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(o.call(t,r)&&++i&&!o.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:F,mutate:$,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=y&&document.visibilityState;return d(e)||"hidden"!==e}}),W=(e,t)=>{let n=f(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=f(i,o))}return n},U=(0,i.createContext)({}),H=g&&window.__SWR_DEVTOOLS_USE__,B=(H?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=z(t),[,,,i]=s.get(F);if(r.startsWith("$inf$"))return n(...e);let a=i[r];return d(a)?n(...e):(delete i[r],a)});return e(t,i,r)});H&&(window.__SWR_DEVTOOLS_REACT__=i);let V=()=>{},q=V();new WeakMap;let Y=i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),J={dedupe:!0},G=Promise.resolve(u);c.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r="function"==typeof t,a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:W(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(u);s&&!l.current&&(l.current=R(s(o.cache||F),a));let c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),C(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,i.createElement)(U.Provider,f(e,{value:o}))},"defaultValue",{value:Z});let K=(r=(e,t,n)=>{let{cache:r,compare:o,suspense:l,fallbackData:c,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:y,refreshWhenHidden:v,refreshWhenOffline:w,keepPreviousData:k}=n,[x,_,A,T]=s.get(r),[O,P]=z(e),I=(0,i.useRef)(!1),M=(0,i.useRef)(!1),N=(0,i.useRef)(O),j=(0,i.useRef)(t),R=(0,i.useRef)(n),F=()=>R.current.isVisible()&&R.current.isOnline(),[$,Z,W,U]=b(r,O),H=(0,i.useRef)({}).current,B=d(c)?d(n.fallback)?u:n.fallback[O]:c,V=(e,t)=>{for(let n in H)if("data"===n){if(!o(e[n],t[n])&&(!d(e[n])||!o(ei,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},q=(0,i.useMemo)(()=>{let e=!!O&&!!t&&(d(p)?!R.current.isPaused()&&!l&&!1!==h:p),n=t=>{let n=f(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=$(),i=U(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n($());return V(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[r,O]),K=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>W(O,(t,n)=>{V(n,t)||e()}),[r,O]),q[0],q[1]),X=!I.current,Q=x[O]&&x[O].length>0,ee=K.data,et=d(ee)?B&&"function"==typeof B.then?Y(B):B:ee,en=K.error,er=(0,i.useRef)(et),ei=k?d(ee)?d(er.current)?et:er.current:ee:et,ea=(!Q||!!d(en))&&(X&&!d(p)?p:!R.current.isPaused()&&(l?!d(et)&&h:d(et)||h)),eo=!!(O&&t&&X&&ea),es=d(K.isValidating)?eo:K.isValidating,el=d(K.isLoading)?eo:K.isLoading,eu=(0,i.useCallback)(async e=>{let t,r,i=j.current;if(!O||!i||M.current||R.current.isPaused())return!1;let a=!0,s=e||{},l=!A[O]||!s.dedupe,c=()=>S?!M.current&&O===N.current&&I.current:O===N.current,f={isValidating:!1,isLoading:!1},p=()=>{Z(f)},h=()=>{let e=A[O];e&&e[1]===r&&delete A[O]},m={isValidating:!0};d($().data)&&(m.isLoading=!0);try{if(l&&(Z(m),n.loadingTimeout&&d($().data)&&setTimeout(()=>{a&&c()&&R.current.onLoadingSlow(O,n)},n.loadingTimeout),A[O]=[i(P),D()]),[t,r]=A[O],t=await t,l&&setTimeout(h,n.dedupingInterval),!A[O]||A[O][1]!==r)return l&&c()&&R.current.onDiscarded(O),!1;f.error=u;let e=_[O];if(!d(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&c()&&R.current.onDiscarded(O),!1;let s=$().data;f.data=o(s,t)?s:t,l&&c()&&R.current.onSuccess(t,O,n)}catch(n){h();let e=R.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,l&&c())&&(e.onError(n,O,e),(!0===t||"function"==typeof t&&t(n))&&(!R.current.revalidateOnFocus||!R.current.revalidateOnReconnect||F())&&e.onErrorRetry(n,O,e,e=>{let t=x[O];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return a=!1,p(),!0},[O,r]),ec=(0,i.useCallback)((...e)=>L(r,N.current,...e),[]);if(C(()=>{j.current=t,R.current=n,d(ee)||(er.current=ee)}),C(()=>{if(!O)return;let e=eu.bind(u,J),t=0;R.current.revalidateOnFocus&&(t=Date.now()+R.current.focusThrottleInterval);let n=((e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(O,x,(n,r={})=>{if(0==n){let n=Date.now();R.current.revalidateOnFocus&&n>t&&F()&&(t=n+R.current.focusThrottleInterval,e())}else if(1==n)R.current.revalidateOnReconnect&&F()&&e();else if(2==n)return eu();else if(3==n)return eu(r)});return M.current=!1,N.current=O,I.current=!0,Z({_k:P}),ea&&!A[O]&&(d(et)||E?e():(e=>g&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{M.current=!0,n()}},[O]),C(()=>{let e;function t(){let t="function"==typeof y?y($().data):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!$().error&&(v||R.current.isVisible())&&(w||R.current.isOnline())?eu(J).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,v,w,O]),(0,i.useDebugValue)(ei),l){if(!S&&E)throw Error("Fallback data is required when using Suspense in SSR.");let e=O&&d(et);e&&(j.current=t,R.current=n,M.current=!1);let r=T[O];if(Y(!d(r)&&e?ec(r):G),!d(en)&&e)throw en;let i=e?eu(J):G;!d(ei)&&e&&(i.status="fulfilled",i.value=!0),Y(i)}return{mutate:ec,get data(){return H.data=!0,ei},get error(){return H.error=!0,en},get isValidating(){return H.isValidating=!0,es},get isLoading(){return H.isLoading=!0,el}}},function(...e){let t=(()=>{let e=(0,i.useContext)(U);return(0,i.useMemo)(()=>f(Z,e),[e])})(),[n,a,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],s=W(t,o),l=r,{use:u}=s,c=(u||[]).concat(B);for(let e=c.length;e--;)l=c[e](l);return l(n,a||s.fetcher||null,s)})},1007:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1154:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1182:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(7239),i=n(540),a=n(9447);function o(e,t){let n=(0,a.a)(e,null==t?void 0:t.in),o=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let l=(0,i.b)(s),u=(0,r.w)(n,0);u.setFullYear(o,0,4),u.setHours(0,0,0,0);let c=(0,i.b)(u);return n.getTime()>=l.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}},1183:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(7239);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let a=r.w.bind(null,e||n.find(e=>"object"==typeof e));return n.map(a)}},1275:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(2115),i=n(2712);function a(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},1285:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r,i=n(2115),a=n(2712),o=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(o());return(0,a.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},1300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},1391:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(5703),i=n(4423),a=n(5490),o=n(7239),s=n(9315),l=n(9447);function u(e,t){let n=(0,l.a)(e,null==t?void 0:t.in);return Math.round(((0,i.k)(n,t)-function(e,t){var n,r,l,u,c,d,f,p;let h=(0,a.q)(),m=null!=(p=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?d:h.firstWeekContainsDate)?f:null==(u=h.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?p:1,g=(0,s.h)(e,t),y=(0,o.w)((null==t?void 0:t.in)||e,0);return y.setFullYear(g,0,m),y.setHours(0,0,0,0),(0,i.k)(y,t)}(n,t))/r.my)+1}},1414:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1603:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},1649:e=>{e.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let a=Date.now(),o=t-(a-r);o<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},o)}}},1877:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},1922:(e,t,n)=>{"use strict";n.d(t,{dc:()=>a,VG:()=>o});var r=n(7915);let i=[],a=!1;function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let l=(0,r.C)(s),u=o?-1:1;(function e(r,s,c){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var d;let f,p,h,m=i;if((!t||l(r,s,c[c.length-1]||void 0))&&(m=Array.isArray(d=n(r,c))?d:"number"==typeof d?[!0,d]:null==d?i:[d])[0]===a)return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(p=(o?r.children.length:-1)+u,h=c.concat(r);p>-1&&p<r.children.length;){if((f=e(r.children[p],p,h)())[0]===a)return f;p="number"==typeof f[1]?f[1]:p+u}return m}})(e,void 0,[])()}},2085:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(2596);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,o=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(r);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},2355:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2436:(e,t,n)=>{"use strict";var r=n(2115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2486:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},2556:(e,t,n)=>{"use strict";n.d(t,{BM:()=>s,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>o,Ny:()=>h,On:()=>f,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>l,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function f(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),h=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},2596:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r})},2712:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},3008:(e,t,n)=>{"use strict";n.d(t,{GP:()=>I});var r=n(8093),i=n(5490),a=n(8637),o=n(7386),s=n(9447),l=n(7519),u=n(1182),c=n(1391),d=n(9315);function f(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let p={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){let n=t.length;return f(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){let i=(0,d.h)(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=(0,c.N)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):f(i,t.length)},I:function(e,t,n){let r=(0,l.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,s.a)(e,void 0);return(0,a.m)(n,(0,o.D)(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?h.noon:0===i?h.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?h.evening:i>=12?h.afternoon:i>=4?h.morning:h.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return v(r);default:return v(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return v(r);default:return v(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},t:function(e,t,n){return f(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+f(a,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+f(Math.trunc(n/60),2)+t+f(n%60,2)}let b=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},k={p:w,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",w(a,t))}},x=/^D+$/,_=/^Y+$/,S=["D","DD","YY","YYYY"];var E=n(9026);let C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,O=/''/g,P=/[a-zA-Z]/;function I(e,t,n){var a,o,l,u,c,d,f,p,h,g,y,v,b,w,I,M,z,N;let D=(0,i.q)(),L=null!=(g=null!=(h=null==n?void 0:n.locale)?h:D.locale)?g:r.c,j=null!=(w=null!=(b=null!=(v=null!=(y=null==n?void 0:n.firstWeekContainsDate)?y:null==n||null==(o=n.locale)||null==(a=o.options)?void 0:a.firstWeekContainsDate)?v:D.firstWeekContainsDate)?b:null==(u=D.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?w:1,R=null!=(N=null!=(z=null!=(M=null!=(I=null==n?void 0:n.weekStartsOn)?I:null==n||null==(d=n.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?M:D.weekStartsOn)?z:null==(p=D.locale)||null==(f=p.options)?void 0:f.weekStartsOn)?N:0,F=(0,s.a)(e,null==n?void 0:n.in);if(!(0,E.$)(F)&&"number"!=typeof F||isNaN(+(0,s.a)(F)))throw RangeError("Invalid time value");let $=t.match(A).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,k[t])(e,L.formatLong):e}).join("").match(C).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(T);return t?t[1].replace(O,"'"):e}(e)};if(m[t])return{isToken:!0,value:e};if(t.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});L.localize.preprocessor&&($=L.localize.preprocessor(F,$));let Z={firstWeekContainsDate:j,weekStartsOn:R,locale:L};return $.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&x.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),S.includes(e))throw RangeError(r)}(i,t,String(e)),(0,m[i[0]])(F,i,L.localize,Z)}).join("")}},3052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3201:(e,t,n)=>{"use strict";n.d(t,{EB:()=>ty,YO:()=>tK,K3:()=>tN,zM:()=>tU,Ie:()=>ny,gM:()=>t5,Nl:()=>nv,RZ:()=>nm,eu:()=>nt,_H:()=>t1,ch:()=>tB,ai:()=>tF,Ik:()=>tQ,lq:()=>ni,g1:()=>t8,re:()=>t0,Yj:()=>tg,KC:()=>t4,L5:()=>tq});var r=n(4193);let i=/^[cC][^\s-]{8,}$/,a=/^[0-9a-z]+$/,o=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s=/^[0-9a-vA-V]{20}$/,l=/^[A-Za-z0-9]{27}$/,u=/^[a-zA-Z0-9_-]{21}$/,c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,f=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,p=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,h=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,m=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,g=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,v=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,b=/^[A-Za-z0-9_-]*$/,w=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,k=/^\+(?:[0-9]){6,14}[0-9]$/,x="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_=RegExp(`^${x}$`);function S(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let E=/^\d+$/,C=/^-?\d+(?:\.\d+)?/i,A=/true|false/i,T=/null/i,O=/^[^A-Z]*$/,P=/^[^a-z]*$/;var I=n(4398);let M=r.xI("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),z={number:"number",bigint:"bigint",object:"date"},N=r.xI("$ZodCheckLessThan",(e,t)=>{M.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),D=r.xI("$ZodCheckGreaterThan",(e,t)=>{M.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),L=r.xI("$ZodCheckMultipleOf",(e,t)=>{M.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===I.LG(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),j=r.xI("$ZodCheckNumberFormat",(e,t)=>{M.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,a]=I.zH[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=E)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s))return void o.issues.push({expected:r,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),R=r.xI("$ZodCheckMaxLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=I.Rc(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),F=r.xI("$ZodCheckMinLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=I.Rc(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$=r.xI("$ZodCheckLengthEquals",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=I.Rc(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Z=r.xI("$ZodCheckStringFormat",(e,t)=>{var n,r;M.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),W=r.xI("$ZodCheckRegex",(e,t)=>{Z.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U=r.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=O),Z.init(e,t)}),H=r.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=P),Z.init(e,t)}),B=r.xI("$ZodCheckIncludes",(e,t)=>{M.init(e,t);let n=I.$f(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),V=r.xI("$ZodCheckStartsWith",(e,t)=>{M.init(e,t);let n=RegExp(`^${I.$f(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),q=r.xI("$ZodCheckEndsWith",(e,t)=>{M.init(e,t);let n=RegExp(`.*${I.$f(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Y=r.xI("$ZodCheckOverwrite",(e,t)=>{M.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class J{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}var G=n(8753);let K={major:4,minor:0,patch:0},X=r.xI("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=K;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let i,a=I.QH(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(a)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&n?.async===!1)throw new r.GT;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(a||(a=I.QH(e,t)))});else{if(e.issues.length===t)continue;a||(a=I.QH(e,t))}}return i?i.then(()=>e):e};e._zod.run=(n,a)=>{let o=e._zod.parse(n,a);if(o instanceof Promise){if(!1===a.async)throw new r.GT;return o.then(e=>t(e,i,a))}return t(o,i,a)}}e["~standard"]={validate:t=>{try{let n=(0,G.xL)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,G.bp)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),Q=r.xI("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ee=r.xI("$ZodStringFormat",(e,t)=>{Z.init(e,t),Q.init(e,t)}),et=r.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=d),ee.init(e,t)}),en=r.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=f(e))}else t.pattern??(t.pattern=f());ee.init(e,t)}),er=r.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=p),ee.init(e,t)}),ei=r.xI("$ZodURL",(e,t)=>{ee.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:w.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&a.endsWith("/")?n.value=a.slice(0,-1):n.value=a;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ea=r.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ee.init(e,t)}),eo=r.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=u),ee.init(e,t)}),es=r.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=i),ee.init(e,t)}),el=r.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a),ee.init(e,t)}),eu=r.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=o),ee.init(e,t)}),ec=r.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=s),ee.init(e,t)}),ed=r.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=l),ee.init(e,t)}),ef=r.xI("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=S({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${x}T(?:${r})$`)}(t)),ee.init(e,t)}),ep=r.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_),ee.init(e,t)}),eh=r.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${S(t)}$`)),ee.init(e,t)}),em=r.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=c),ee.init(e,t)}),eg=r.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=h),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),ey=r.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=m),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ev=r.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=g),ee.init(e,t)}),eb=r.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=y),ee.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ew(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ek=r.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=v),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ew(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ex=r.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=b),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{!function(e){if(!b.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return ew(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),e_=r.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=k),ee.init(e,t)}),eS=r.xI("$ZodJWT",(e,t)=>{ee.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),eE=r.xI("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),eC=r.xI("$ZodNumber",(e,t)=>{j.init(e,t),eE.init(e,t)}),eA=r.xI("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=A,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),eT=r.xI("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=T,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),eO=r.xI("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=e=>e}),eP=r.xI("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function eI(e,t,n){e.issues.length&&t.issues.push(...I.lQ(n,e.issues)),t.value[n]=e.value}let eM=r.xI("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>eI(t,n,e))):eI(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ez(e,t,n){e.issues.length&&t.issues.push(...I.lQ(n,e.issues)),t.value[n]=e.value}function eN(e,t,n,r){e.issues.length?void 0===r[n]?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...I.lQ(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}let eD=r.xI("$ZodObject",(e,t)=>{let n,i;X.init(e,t);let a=I.PO(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof X))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=I.NM(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});I.gJ(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let o=I.Gv,s=!r.cr.jitless,l=I.hI,u=s&&l.value,c=t.catchall;e._zod.parse=(r,l)=>{i??(i=a.value);let d=r.value;if(!o(d))return r.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),r;let f=[];if(s&&u&&l?.async===!1&&!0!==l.jitless)n||(n=(e=>{let t=new J(["shape","payload","ctx"]),n=a.value,r=e=>{let t=I.UQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let e of(t.write("const newResult = {}"),n.keys))if(n.optionalKeys.has(e)){let n=i[e];t.write(`const ${n} = ${r(e)};`);let a=I.UQ(e);t.write(`
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{239:(e,t,n)=>{"use strict";n.d(t,{bL:()=>k,zi:()=>x});var r=n(2115),i=n(5185),a=n(6101),o=n(6081),s=n(5845),l=n(1275),u=n(3655),c=n(5155),d="Switch",[f,p]=(0,o.A)(d),[h,m]=f(d),g=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:o,checked:l,defaultChecked:f,required:p,disabled:m,value:g="on",onCheckedChange:y,form:v,...k}=e,[x,_]=r.useState(null),S=(0,a.s)(t,e=>_(e)),E=r.useRef(!1),C=!x||v||!!x.closest("form"),[A,T]=(0,s.i)({prop:l,defaultProp:null!=f&&f,onChange:y,caller:d});return(0,c.jsxs)(h,{scope:n,checked:A,disabled:m,children:[(0,c.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":A,"aria-required":p,"data-state":w(A),"data-disabled":m?"":void 0,disabled:m,value:g,...k,ref:S,onClick:(0,i.m)(e.onClick,e=>{T(e=>!e),C&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),C&&(0,c.jsx)(b,{control:x,bubbles:!E.current,name:o,value:g,checked:A,required:p,disabled:m,form:v,style:{transform:"translateX(-100%)"}})]})});g.displayName=d;var y="SwitchThumb",v=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=m(y,n);return(0,c.jsx)(u.sG.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});v.displayName=y;var b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,control:i,checked:o,bubbles:s=!0,...u}=e,d=r.useRef(null),f=(0,a.s)(d,t),p=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(o),h=(0,l.X)(i);return r.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==o&&t){let n=new Event("click",{bubbles:s});t.call(e,o),e.dispatchEvent(n)}},[p,o,s]),(0,c.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...u,tabIndex:-1,ref:f,style:{...u.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function w(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var k=g,x=v},492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},540:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(4423);function i(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},713:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(9072);function i(){let e={};for(let t in r.UI)e[r.UI[t]]=`rdp-${r.UI[t]}`;for(let t in r.pL)e[r.pL[t]]=`rdp-${r.pL[t]}`;for(let t in r.wc)e[r.wc[t]]=`rdp-${r.wc[t]}`;for(let t in r.X5)e[r.X5[t]]=`rdp-${r.X5[t]}`;return e}},838:(e,t,n)=>{"use strict";let r;n.d(t,{Ay:()=>K});var i=n(2115),a=n(1414),o=Object.prototype.hasOwnProperty;let s=new WeakMap,l=()=>{},u=l(),c=Object,d=e=>e===u,f=(e,t)=>({...e,...t}),p={},h={},m="undefined",g=typeof window!=m,y=typeof document!=m,v=g&&"Deno"in window,b=(e,t)=>{let n=s.get(e);return[()=>!d(t)&&e.get(t)||p,r=>{if(!d(t)){let i=e.get(t);t in h||(h[t]=i),n[5](t,f(i,r),i||p)}},n[6],()=>!d(t)&&t in h?h[t]:!d(t)&&e.get(t)||p]},w=!0,[k,x]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],_={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},n=()=>{w=!1};return k("online",t),k("offline",n),()=>{x("online",t),x("offline",n)}}},S=!i.useId,E=!g||v,C=E?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!E&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),O=new WeakMap,P=(e,t)=>e==="[object ".concat(t,"]"),I=0,M=e=>{let t,n,r=typeof e,i=c.prototype.toString.call(e),a=P(i,"Date"),o=P(i,"RegExp"),s=P(i,"Object");if(c(e)!==e||a||o)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=O.get(e))return t;if(t=++I+"~",O.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=M(e[n])+",";O.set(e,t)}if(s){t="#";let r=c.keys(e).sort();for(;!d(n=r.pop());)d(e[n])||(t+=n+":"+M(e[n])+",");O.set(e,t)}}return t},z=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?M(e):"",t]},N=0,D=()=>++N;async function L(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,a,o]=t,l=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),c=l.populateCache,p=l.rollbackOnError,h=l.optimisticData,m=l.throwOnError;if("function"==typeof i){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&i(r.get(t)._k)&&e.push(t);return Promise.all(e.map(g))}return g(i);async function g(e){let n,[i]=z(e);if(!i)return;let[o,f]=b(r,i),[g,y,v,w]=s.get(r),k=()=>{let t=g[i];return("function"==typeof l.revalidate?l.revalidate(o().data,e):!1!==l.revalidate)&&(delete v[i],delete w[i],t&&t[0])?t[0](2).then(()=>o().data):o().data};if(t.length<3)return k();let x=a,_=!1,S=D();y[i]=[S,0];let E=!d(h),C=o(),A=C.data,T=C._c,O=d(T)?A:T;if(E&&f({data:h="function"==typeof h?h(O,A):h,_c:O}),"function"==typeof x)try{x=x(O)}catch(e){n=e,_=!0}if(x&&"function"==typeof x.then){let e;if(x=await x.catch(e=>{n=e,_=!0}),S!==y[i][0]){if(_)throw n;return x}_&&E&&(e=n,"function"==typeof p?p(e):!1!==p)&&(c=!0,f({data:O,_c:u}))}if(c&&!_&&("function"==typeof c?f({data:c(x,O),error:u,_c:u}):f({data:x,error:u,_c:u})),y[i][1]=D(),Promise.resolve(k()).then(()=>{f({_c:u})}),_){if(m)throw n;return}return x}}let j=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!s.has(e)){let n=f(_,t),r=Object.create(null),i=L.bind(u,e),a=l,o=Object.create(null),c=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},p=()=>{if(!s.has(e)&&(s.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,d,c]),!E)){let t=n.initFocus(setTimeout.bind(u,j.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,j.bind(u,r,1)));a=()=>{t&&t(),i&&i(),s.delete(e)}}};return p(),[e,i,p,a]}return[e,s.get(e)[4]]},[F,$]=R(new Map),Z=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(d(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(o.call(t,r)&&++i&&!o.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:F,mutate:$,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=y&&document.visibilityState;return d(e)||"hidden"!==e}}),W=(e,t)=>{let n=f(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=f(i,o))}return n},U=(0,i.createContext)({}),H=g&&window.__SWR_DEVTOOLS_USE__,B=(H?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=z(t),[,,,i]=s.get(F);if(r.startsWith("$inf$"))return n(...e);let a=i[r];return d(a)?n(...e):(delete i[r],a)});return e(t,i,r)});H&&(window.__SWR_DEVTOOLS_REACT__=i);let V=()=>{},q=V();new WeakMap;let Y=i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),J={dedupe:!0},G=Promise.resolve(u);c.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r="function"==typeof t,a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:W(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(u);s&&!l.current&&(l.current=R(s(o.cache||F),a));let c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),C(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,i.createElement)(U.Provider,f(e,{value:o}))},"defaultValue",{value:Z});let K=(r=(e,t,n)=>{let{cache:r,compare:o,suspense:l,fallbackData:c,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:y,refreshWhenHidden:v,refreshWhenOffline:w,keepPreviousData:k}=n,[x,_,A,T]=s.get(r),[O,P]=z(e),I=(0,i.useRef)(!1),M=(0,i.useRef)(!1),N=(0,i.useRef)(O),j=(0,i.useRef)(t),R=(0,i.useRef)(n),F=()=>R.current.isVisible()&&R.current.isOnline(),[$,Z,W,U]=b(r,O),H=(0,i.useRef)({}).current,B=d(c)?d(n.fallback)?u:n.fallback[O]:c,V=(e,t)=>{for(let n in H)if("data"===n){if(!o(e[n],t[n])&&(!d(e[n])||!o(ei,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},q=(0,i.useMemo)(()=>{let e=!!O&&!!t&&(d(p)?!R.current.isPaused()&&!l&&!1!==h:p),n=t=>{let n=f(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=$(),i=U(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n($());return V(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[r,O]),K=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>W(O,(t,n)=>{V(n,t)||e()}),[r,O]),q[0],q[1]),X=!I.current,Q=x[O]&&x[O].length>0,ee=K.data,et=d(ee)?B&&"function"==typeof B.then?Y(B):B:ee,en=K.error,er=(0,i.useRef)(et),ei=k?d(ee)?d(er.current)?et:er.current:ee:et,ea=(!Q||!!d(en))&&(X&&!d(p)?p:!R.current.isPaused()&&(l?!d(et)&&h:d(et)||h)),eo=!!(O&&t&&X&&ea),es=d(K.isValidating)?eo:K.isValidating,el=d(K.isLoading)?eo:K.isLoading,eu=(0,i.useCallback)(async e=>{let t,r,i=j.current;if(!O||!i||M.current||R.current.isPaused())return!1;let a=!0,s=e||{},l=!A[O]||!s.dedupe,c=()=>S?!M.current&&O===N.current&&I.current:O===N.current,f={isValidating:!1,isLoading:!1},p=()=>{Z(f)},h=()=>{let e=A[O];e&&e[1]===r&&delete A[O]},m={isValidating:!0};d($().data)&&(m.isLoading=!0);try{if(l&&(Z(m),n.loadingTimeout&&d($().data)&&setTimeout(()=>{a&&c()&&R.current.onLoadingSlow(O,n)},n.loadingTimeout),A[O]=[i(P),D()]),[t,r]=A[O],t=await t,l&&setTimeout(h,n.dedupingInterval),!A[O]||A[O][1]!==r)return l&&c()&&R.current.onDiscarded(O),!1;f.error=u;let e=_[O];if(!d(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&c()&&R.current.onDiscarded(O),!1;let s=$().data;f.data=o(s,t)?s:t,l&&c()&&R.current.onSuccess(t,O,n)}catch(n){h();let e=R.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,l&&c())&&(e.onError(n,O,e),(!0===t||"function"==typeof t&&t(n))&&(!R.current.revalidateOnFocus||!R.current.revalidateOnReconnect||F())&&e.onErrorRetry(n,O,e,e=>{let t=x[O];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return a=!1,p(),!0},[O,r]),ec=(0,i.useCallback)((...e)=>L(r,N.current,...e),[]);if(C(()=>{j.current=t,R.current=n,d(ee)||(er.current=ee)}),C(()=>{if(!O)return;let e=eu.bind(u,J),t=0;R.current.revalidateOnFocus&&(t=Date.now()+R.current.focusThrottleInterval);let n=((e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(O,x,(n,r={})=>{if(0==n){let n=Date.now();R.current.revalidateOnFocus&&n>t&&F()&&(t=n+R.current.focusThrottleInterval,e())}else if(1==n)R.current.revalidateOnReconnect&&F()&&e();else if(2==n)return eu();else if(3==n)return eu(r)});return M.current=!1,N.current=O,I.current=!0,Z({_k:P}),ea&&!A[O]&&(d(et)||E?e():(e=>g&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{M.current=!0,n()}},[O]),C(()=>{let e;function t(){let t="function"==typeof y?y($().data):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!$().error&&(v||R.current.isVisible())&&(w||R.current.isOnline())?eu(J).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,v,w,O]),(0,i.useDebugValue)(ei),l){if(!S&&E)throw Error("Fallback data is required when using Suspense in SSR.");let e=O&&d(et);e&&(j.current=t,R.current=n,M.current=!1);let r=T[O];if(Y(!d(r)&&e?ec(r):G),!d(en)&&e)throw en;let i=e?eu(J):G;!d(ei)&&e&&(i.status="fulfilled",i.value=!0),Y(i)}return{mutate:ec,get data(){return H.data=!0,ei},get error(){return H.error=!0,en},get isValidating(){return H.isValidating=!0,es},get isLoading(){return H.isLoading=!0,el}}},function(...e){let t=(()=>{let e=(0,i.useContext)(U);return(0,i.useMemo)(()=>f(Z,e),[e])})(),[n,a,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],s=W(t,o),l=r,{use:u}=s,c=(u||[]).concat(B);for(let e=c.length;e--;)l=c[e](l);return l(n,a||s.fetcher||null,s)})},1007:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1154:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1182:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(7239),i=n(540),a=n(9447);function o(e,t){let n=(0,a.a)(e,null==t?void 0:t.in),o=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let l=(0,i.b)(s),u=(0,r.w)(n,0);u.setFullYear(o,0,4),u.setHours(0,0,0,0);let c=(0,i.b)(u);return n.getTime()>=l.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}},1183:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(7239);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let a=r.w.bind(null,e||n.find(e=>"object"==typeof e));return n.map(a)}},1275:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(2115),i=n(2712);function a(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},1285:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r,i=n(2115),a=n(2712),o=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(o());return(0,a.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},1300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},1391:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(5703),i=n(4423),a=n(5490),o=n(7239),s=n(9315),l=n(9447);function u(e,t){let n=(0,l.a)(e,null==t?void 0:t.in);return Math.round(((0,i.k)(n,t)-function(e,t){var n,r,l,u,c,d,f,p;let h=(0,a.q)(),m=null!=(p=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?d:h.firstWeekContainsDate)?f:null==(u=h.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?p:1,g=(0,s.h)(e,t),y=(0,o.w)((null==t?void 0:t.in)||e,0);return y.setFullYear(g,0,m),y.setHours(0,0,0,0),(0,i.k)(y,t)}(n,t))/r.my)+1}},1414:(e,t,n)=>{"use strict";e.exports=n(2436)},1603:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},1649:e=>{e.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let a=Date.now(),o=t-(a-r);o<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},o)}}},1877:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},1922:(e,t,n)=>{"use strict";n.d(t,{dc:()=>a,VG:()=>o});var r=n(7915);let i=[],a=!1;function o(e,t,n,o){let s;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):s=t;let l=(0,r.C)(s),u=o?-1:1;(function e(r,s,c){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var d;let f,p,h,m=i;if((!t||l(r,s,c[c.length-1]||void 0))&&(m=Array.isArray(d=n(r,c))?d:"number"==typeof d?[!0,d]:null==d?i:[d])[0]===a)return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(p=(o?r.children.length:-1)+u,h=c.concat(r);p>-1&&p<r.children.length;){if((f=e(r.children[p],p,h)())[0]===a)return f;p="number"==typeof f[1]?f[1]:p+u}return m}})(e,void 0,[])()}},2085:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(2596);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,o=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(r);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},2355:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2436:(e,t,n)=>{"use strict";var r=n(2115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2486:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},2556:(e,t,n)=>{"use strict";n.d(t,{BM:()=>s,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>o,Ny:()=>h,On:()=>f,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>l,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function f(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),h=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},2596:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r})},2712:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},3008:(e,t,n)=>{"use strict";n.d(t,{GP:()=>I});var r=n(8093),i=n(5490),a=n(8637),o=n(7386),s=n(9447),l=n(7519),u=n(1182),c=n(1391),d=n(9315);function f(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let p={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){let n=t.length;return f(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){let i=(0,d.h)(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=(0,c.N)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):f(i,t.length)},I:function(e,t,n){let r=(0,l.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,s.a)(e,void 0);return(0,a.m)(n,(0,o.D)(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?h.noon:0===i?h.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?h.evening:i>=12?h.afternoon:i>=4?h.morning:h.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return v(r);default:return v(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return v(r);default:return v(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},t:function(e,t,n){return f(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+f(a,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+f(Math.trunc(n/60),2)+t+f(n%60,2)}let b=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},k={p:w,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",w(a,t))}},x=/^D+$/,_=/^Y+$/,S=["D","DD","YY","YYYY"];var E=n(9026);let C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,O=/''/g,P=/[a-zA-Z]/;function I(e,t,n){var a,o,l,u,c,d,f,p,h,g,y,v,b,w,I,M,z,N;let D=(0,i.q)(),L=null!=(g=null!=(h=null==n?void 0:n.locale)?h:D.locale)?g:r.c,j=null!=(w=null!=(b=null!=(v=null!=(y=null==n?void 0:n.firstWeekContainsDate)?y:null==n||null==(o=n.locale)||null==(a=o.options)?void 0:a.firstWeekContainsDate)?v:D.firstWeekContainsDate)?b:null==(u=D.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?w:1,R=null!=(N=null!=(z=null!=(M=null!=(I=null==n?void 0:n.weekStartsOn)?I:null==n||null==(d=n.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?M:D.weekStartsOn)?z:null==(p=D.locale)||null==(f=p.options)?void 0:f.weekStartsOn)?N:0,F=(0,s.a)(e,null==n?void 0:n.in);if(!(0,E.$)(F)&&"number"!=typeof F||isNaN(+(0,s.a)(F)))throw RangeError("Invalid time value");let $=t.match(A).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,k[t])(e,L.formatLong):e}).join("").match(C).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(T);return t?t[1].replace(O,"'"):e}(e)};if(m[t])return{isToken:!0,value:e};if(t.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});L.localize.preprocessor&&($=L.localize.preprocessor(F,$));let Z={firstWeekContainsDate:j,weekStartsOn:R,locale:L};return $.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&x.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),S.includes(e))throw RangeError(r)}(i,t,String(e)),(0,m[i[0]])(F,i,L.localize,Z)}).join("")}},3052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3201:(e,t,n)=>{"use strict";n.d(t,{EB:()=>ty,YO:()=>tK,K3:()=>tN,zM:()=>tU,Ie:()=>ny,gM:()=>t5,Nl:()=>nv,RZ:()=>nm,eu:()=>nt,_H:()=>t1,ch:()=>tB,ai:()=>tF,Ik:()=>tQ,lq:()=>ni,g1:()=>t8,re:()=>t0,Yj:()=>tg,KC:()=>t4,L5:()=>tq});var r=n(4193);let i=/^[cC][^\s-]{8,}$/,a=/^[0-9a-z]+$/,o=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s=/^[0-9a-vA-V]{20}$/,l=/^[A-Za-z0-9]{27}$/,u=/^[a-zA-Z0-9_-]{21}$/,c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,f=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,p=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,h=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,m=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,g=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,v=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,b=/^[A-Za-z0-9_-]*$/,w=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,k=/^\+(?:[0-9]){6,14}[0-9]$/,x="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_=RegExp(`^${x}$`);function S(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let E=/^\d+$/,C=/^-?\d+(?:\.\d+)?/i,A=/true|false/i,T=/null/i,O=/^[^A-Z]*$/,P=/^[^a-z]*$/;var I=n(4398);let M=r.xI("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),z={number:"number",bigint:"bigint",object:"date"},N=r.xI("$ZodCheckLessThan",(e,t)=>{M.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),D=r.xI("$ZodCheckGreaterThan",(e,t)=>{M.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),L=r.xI("$ZodCheckMultipleOf",(e,t)=>{M.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===I.LG(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),j=r.xI("$ZodCheckNumberFormat",(e,t)=>{M.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,a]=I.zH[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=E)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s))return void o.issues.push({expected:r,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),R=r.xI("$ZodCheckMaxLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=I.Rc(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),F=r.xI("$ZodCheckMinLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=I.Rc(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$=r.xI("$ZodCheckLengthEquals",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!I.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=I.Rc(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Z=r.xI("$ZodCheckStringFormat",(e,t)=>{var n,r;M.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),W=r.xI("$ZodCheckRegex",(e,t)=>{Z.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U=r.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=O),Z.init(e,t)}),H=r.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=P),Z.init(e,t)}),B=r.xI("$ZodCheckIncludes",(e,t)=>{M.init(e,t);let n=I.$f(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),V=r.xI("$ZodCheckStartsWith",(e,t)=>{M.init(e,t);let n=RegExp(`^${I.$f(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),q=r.xI("$ZodCheckEndsWith",(e,t)=>{M.init(e,t);let n=RegExp(`.*${I.$f(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Y=r.xI("$ZodCheckOverwrite",(e,t)=>{M.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class J{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}var G=n(8753);let K={major:4,minor:0,patch:0},X=r.xI("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=K;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let i,a=I.QH(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(a)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&n?.async===!1)throw new r.GT;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(a||(a=I.QH(e,t)))});else{if(e.issues.length===t)continue;a||(a=I.QH(e,t))}}return i?i.then(()=>e):e};e._zod.run=(n,a)=>{let o=e._zod.parse(n,a);if(o instanceof Promise){if(!1===a.async)throw new r.GT;return o.then(e=>t(e,i,a))}return t(o,i,a)}}e["~standard"]={validate:t=>{try{let n=(0,G.xL)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,G.bp)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),Q=r.xI("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ee=r.xI("$ZodStringFormat",(e,t)=>{Z.init(e,t),Q.init(e,t)}),et=r.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=d),ee.init(e,t)}),en=r.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=f(e))}else t.pattern??(t.pattern=f());ee.init(e,t)}),er=r.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=p),ee.init(e,t)}),ei=r.xI("$ZodURL",(e,t)=>{ee.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:w.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&a.endsWith("/")?n.value=a.slice(0,-1):n.value=a;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ea=r.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ee.init(e,t)}),eo=r.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=u),ee.init(e,t)}),es=r.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=i),ee.init(e,t)}),el=r.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a),ee.init(e,t)}),eu=r.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=o),ee.init(e,t)}),ec=r.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=s),ee.init(e,t)}),ed=r.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=l),ee.init(e,t)}),ef=r.xI("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=S({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${x}T(?:${r})$`)}(t)),ee.init(e,t)}),ep=r.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_),ee.init(e,t)}),eh=r.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${S(t)}$`)),ee.init(e,t)}),em=r.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=c),ee.init(e,t)}),eg=r.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=h),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),ey=r.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=m),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ev=r.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=g),ee.init(e,t)}),eb=r.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=y),ee.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ew(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ek=r.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=v),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ew(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ex=r.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=b),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{!function(e){if(!b.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return ew(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),e_=r.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=k),ee.init(e,t)}),eS=r.xI("$ZodJWT",(e,t)=>{ee.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),eE=r.xI("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),eC=r.xI("$ZodNumber",(e,t)=>{j.init(e,t),eE.init(e,t)}),eA=r.xI("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=A,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),eT=r.xI("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=T,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),eO=r.xI("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=e=>e}),eP=r.xI("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function eI(e,t,n){e.issues.length&&t.issues.push(...I.lQ(n,e.issues)),t.value[n]=e.value}let eM=r.xI("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>eI(t,n,e))):eI(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ez(e,t,n){e.issues.length&&t.issues.push(...I.lQ(n,e.issues)),t.value[n]=e.value}function eN(e,t,n,r){e.issues.length?void 0===r[n]?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...I.lQ(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}let eD=r.xI("$ZodObject",(e,t)=>{let n,i;X.init(e,t);let a=I.PO(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof X))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=I.NM(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});I.gJ(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let o=I.Gv,s=!r.cr.jitless,l=I.hI,u=s&&l.value,c=t.catchall;e._zod.parse=(r,l)=>{i??(i=a.value);let d=r.value;if(!o(d))return r.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),r;let f=[];if(s&&u&&l?.async===!1&&!0!==l.jitless)n||(n=(e=>{let t=new J(["shape","payload","ctx"]),n=a.value,r=e=>{let t=I.UQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let e of(t.write("const newResult = {}"),n.keys))if(n.optionalKeys.has(e)){let n=i[e];t.write(`const ${n} = ${r(e)};`);let a=I.UQ(e);t.write(`
2
2
  if (${n}.issues.length) {
3
3
  if (input[${a}] === undefined) {
4
4
  if (${a} in input) {
@@ -21,7 +21,7 @@
21
21
  if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
22
22
  ...iss,
23
23
  path: iss.path ? [${I.UQ(e)}, ...iss.path] : [${I.UQ(e)}]
24
- })));`),t.write(`newResult[${I.UQ(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),r=n(r,l);else{r.value={};let e=i.shape;for(let t of i.keys){let n=e[t],i=n._zod.run({value:d[t],issues:[]},l),a="optional"===n._zod.optin&&"optional"===n._zod.optout;i instanceof Promise?f.push(i.then(e=>a?eN(e,r,t,d):ez(e,r,t))):a?eN(i,r,t,d):ez(i,r,t)}}if(!c)return f.length?Promise.all(f).then(()=>r):r;let p=[],h=i.keySet,m=c._zod,g=m.def.type;for(let e of Object.keys(d)){if(h.has(e))continue;if("never"===g){p.push(e);continue}let t=m.run({value:d[e],issues:[]},l);t instanceof Promise?f.push(t.then(t=>ez(t,r,e))):ez(t,r,e)}return(p.length&&r.issues.push({code:"unrecognized_keys",keys:p,input:d,inst:e}),f.length)?Promise.all(f).then(()=>r):r}});function eL(e,t,n,i){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>I.iR(e,i,r.$W())))}),t}let ej=r.xI("$ZodUnion",(e,t)=>{X.init(e,t),I.gJ(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),I.gJ(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),I.gJ(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),I.gJ(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>I.p6(e.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>eL(t,n,e,r)):eL(a,n,e,r)}}),eR=r.xI("$ZodDiscriminatedUnion",(e,t)=>{ej.init(e,t);let n=e._zod.parse;I.gJ(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=I.PO(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!I.Gv(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[t.discriminator],inst:e}),i)}}),eF=r.xI("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>e$(e,t,n)):e$(e,i,a)}});function e$(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),I.QH(e))return e;let r=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(I.Qd(t)&&I.Qd(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}let eZ=r.xI("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let a=n.value;if(!I.Qd(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let o=[];if(t.keyType._zod.values){let r,s=t.keyType._zod.values;for(let e of(n.value={},s))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let r=t.valueType._zod.run({value:a[e],issues:[]},i);r instanceof Promise?o.push(r.then(t=>{t.issues.length&&n.issues.push(...I.lQ(e,t.issues)),n.value[e]=t.value})):(r.issues.length&&n.issues.push(...I.lQ(e,r.issues)),n.value[e]=r.value)}for(let e in a)s.has(e)||(r=r??[]).push(e);r&&r.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:r})}else for(let s of(n.value={},Reflect.ownKeys(a))){if("__proto__"===s)continue;let l=t.keyType._zod.run({value:s,issues:[]},i);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(e=>I.iR(e,i,r.$W())),input:s,path:[s],inst:e}),n.value[l.value]=l.value;continue}let u=t.valueType._zod.run({value:a[s],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&n.issues.push(...I.lQ(s,e.issues)),n.value[l.value]=e.value})):(u.issues.length&&n.issues.push(...I.lQ(s,u.issues)),n.value[l.value]=u.value)}return o.length?Promise.all(o).then(()=>n):n}}),eW=r.xI("$ZodEnum",(e,t)=>{X.init(e,t);let n=I.w5(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>I.qQ.has(typeof e)).map(e=>"string"==typeof e?I.$f(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),eU=r.xI("$ZodLiteral",(e,t)=>{X.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?I.$f(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),eH=r.xI("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let i=t.transform(e.value,e);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(t=>(e.value=t,e));if(i instanceof Promise)throw new r.GT;return e.value=i,e}}),eB=r.xI("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),I.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${I.p6(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),eV=r.xI("$ZodNullable",(e,t)=>{X.init(e,t),I.gJ(e._zod,"optin",()=>t.innerType._zod.optin),I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),I.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${I.p6(e.source)}|null)$`):void 0}),I.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eq=r.xI("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eY(e,t)):eY(r,t)}});function eY(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let eJ=r.xI("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eG=r.xI("$ZodNonOptional",(e,t)=>{X.init(e,t),I.gJ(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eK(t,e)):eK(i,e)}});function eK(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let eX=r.xI("$ZodCatch",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>I.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>I.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)}}),eQ=r.xI("$ZodPipe",(e,t)=>{X.init(e,t),I.gJ(e._zod,"values",()=>t.in._zod.values),I.gJ(e._zod,"optin",()=>t.in._zod.optin),I.gJ(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>e0(e,t,n)):e0(r,t,n)}});function e0(e,t,n){return I.QH(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}let e1=r.xI("$ZodReadonly",(e,t)=>{X.init(e,t),I.gJ(e._zod,"propValues",()=>t.innerType._zod.propValues),I.gJ(e._zod,"values",()=>t.innerType._zod.values),I.gJ(e._zod,"optin",()=>t.innerType._zod.optin),I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e2):e2(r)}});function e2(e){return e.value=Object.freeze(e.value),e}let e4=r.xI("$ZodLazy",(e,t)=>{X.init(e,t),I.gJ(e._zod,"innerType",()=>t.getter()),I.gJ(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),I.gJ(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),I.gJ(e._zod,"optin",()=>e._zod.innerType._zod.optin),I.gJ(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),e9=r.xI("$ZodCustom",(e,t)=>{M.init(e,t),X.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>e5(t,n,r,e));e5(i,n,r,e)}});function e5(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(I.sn(e))}}var e3=n(9985);function e6(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I.A2(t)})}function e8(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I.A2(t)})}function e7(e,t){return new N({check:"less_than",...I.A2(t),value:e,inclusive:!1})}function te(e,t){return new N({check:"less_than",...I.A2(t),value:e,inclusive:!0})}function tt(e,t){return new D({check:"greater_than",...I.A2(t),value:e,inclusive:!1})}function tn(e,t){return new D({check:"greater_than",...I.A2(t),value:e,inclusive:!0})}function tr(e,t){return new L({check:"multiple_of",...I.A2(t),value:e})}function ti(e,t){return new R({check:"max_length",...I.A2(t),maximum:e})}function ta(e,t){return new F({check:"min_length",...I.A2(t),minimum:e})}function to(e,t){return new $({check:"length_equals",...I.A2(t),length:e})}function ts(e){return new Y({check:"overwrite",tx:e})}let tl=r.xI("ZodISODateTime",(e,t)=>{ef.init(e,t),ty.init(e,t)}),tu=r.xI("ZodISODate",(e,t)=>{ep.init(e,t),ty.init(e,t)}),tc=r.xI("ZodISOTime",(e,t)=>{eh.init(e,t),ty.init(e,t)}),td=r.xI("ZodISODuration",(e,t)=>{em.init(e,t),ty.init(e,t)});var tf=n(7486);let tp=r.xI("ZodType",(e,t)=>(X.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>I.o8(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>tf.qg(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>tf.xL(e,t,n),e.parseAsync=async(t,n)=>tf.EJ(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>tf.bp(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(function(e,t={}){return new ng({type:"custom",check:"custom",fn:e,...I.A2(t)})}(t,n)),e.superRefine=t=>e.check(function(e){let t=function(e){let t=new M({check:"custom"});return t._zod.check=e,t}(n=>(n.addIssue=e=>{"string"==typeof e?n.issues.push(I.sn(e,n.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),n.issues.push(I.sn(e)))},e(n.value,n)));return t}(t)),e.overwrite=t=>e.check(ts(t)),e.optional=()=>ni(e),e.nullable=()=>no(e),e.nullish=()=>ni(no(e)),e.nonoptional=t=>{var n,r;return n=e,r=t,new nu({type:"nonoptional",innerType:n,...I.A2(r)})},e.array=()=>tK(e),e.or=t=>t4([e,t]),e.and=t=>new t3({type:"intersection",left:e,right:t}),e.transform=t=>nf(e,new nn({type:"transform",transform:t})),e.default=t=>(function(e,t){return new ns({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.prefault=t=>(function(e,t){return new nl({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.catch=t=>(function(e,t){return new nc({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>nf(e,t),e.readonly=()=>new np({type:"readonly",innerType:e}),e.describe=t=>{let n=e.clone();return e3.fd.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>e3.fd.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return e3.fd.get(e);let n=e.clone();return e3.fd.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),th=r.xI("_ZodString",(e,t)=>{Q.init(e,t),tp.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new W({check:"string_format",format:"regex",...I.A2(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new B({check:"string_format",format:"includes",...I.A2(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new V({check:"string_format",format:"starts_with",...I.A2(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new q({check:"string_format",format:"ends_with",...I.A2(t),suffix:e})}(...t)),e.min=(...t)=>e.check(ta(...t)),e.max=(...t)=>e.check(ti(...t)),e.length=(...t)=>e.check(to(...t)),e.nonempty=(...t)=>e.check(ta(1,...t)),e.lowercase=t=>e.check(new U({check:"string_format",format:"lowercase",...I.A2(t)})),e.uppercase=t=>e.check(new H({check:"string_format",format:"uppercase",...I.A2(t)})),e.trim=()=>e.check(ts(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return ts(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(ts(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(ts(e=>e.toUpperCase()))}),tm=r.xI("ZodString",(e,t)=>{Q.init(e,t),th.init(e,t),e.email=t=>e.check(new tv({type:"string",format:"email",check:"string_format",abort:!1,...I.A2(t)})),e.url=t=>e.check(new tk({type:"string",format:"url",check:"string_format",abort:!1,...I.A2(t)})),e.jwt=t=>e.check(new tj({type:"string",format:"jwt",check:"string_format",abort:!1,...I.A2(t)})),e.emoji=t=>e.check(new tx({type:"string",format:"emoji",check:"string_format",abort:!1,...I.A2(t)})),e.guid=t=>e.check(e6(tb,t)),e.uuid=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,...I.A2(t)})),e.uuidv4=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I.A2(t)})),e.uuidv6=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I.A2(t)})),e.uuidv7=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I.A2(t)})),e.nanoid=t=>e.check(new t_({type:"string",format:"nanoid",check:"string_format",abort:!1,...I.A2(t)})),e.guid=t=>e.check(e6(tb,t)),e.cuid=t=>e.check(new tS({type:"string",format:"cuid",check:"string_format",abort:!1,...I.A2(t)})),e.cuid2=t=>e.check(new tE({type:"string",format:"cuid2",check:"string_format",abort:!1,...I.A2(t)})),e.ulid=t=>e.check(new tC({type:"string",format:"ulid",check:"string_format",abort:!1,...I.A2(t)})),e.base64=t=>e.check(e8(tz,t)),e.base64url=t=>e.check(new tD({type:"string",format:"base64url",check:"string_format",abort:!1,...I.A2(t)})),e.xid=t=>e.check(new tA({type:"string",format:"xid",check:"string_format",abort:!1,...I.A2(t)})),e.ksuid=t=>e.check(new tT({type:"string",format:"ksuid",check:"string_format",abort:!1,...I.A2(t)})),e.ipv4=t=>e.check(new tO({type:"string",format:"ipv4",check:"string_format",abort:!1,...I.A2(t)})),e.ipv6=t=>e.check(new tP({type:"string",format:"ipv6",check:"string_format",abort:!1,...I.A2(t)})),e.cidrv4=t=>e.check(new tI({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I.A2(t)})),e.cidrv6=t=>e.check(new tM({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I.A2(t)})),e.e164=t=>e.check(new tL({type:"string",format:"e164",check:"string_format",abort:!1,...I.A2(t)})),e.datetime=t=>e.check(function(e){return new tl({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I.A2(e)})}(t)),e.date=t=>e.check(function(e){return new tu({type:"string",format:"date",check:"string_format",...I.A2(e)})}(t)),e.time=t=>e.check(function(e){return new tc({type:"string",format:"time",check:"string_format",precision:null,...I.A2(e)})}(t)),e.duration=t=>e.check(function(e){return new td({type:"string",format:"duration",check:"string_format",...I.A2(e)})}(t))});function tg(e){return new tm({type:"string",...I.A2(e)})}let ty=r.xI("ZodStringFormat",(e,t)=>{ee.init(e,t),th.init(e,t)}),tv=r.xI("ZodEmail",(e,t)=>{er.init(e,t),ty.init(e,t)}),tb=r.xI("ZodGUID",(e,t)=>{et.init(e,t),ty.init(e,t)}),tw=r.xI("ZodUUID",(e,t)=>{en.init(e,t),ty.init(e,t)}),tk=r.xI("ZodURL",(e,t)=>{ei.init(e,t),ty.init(e,t)}),tx=r.xI("ZodEmoji",(e,t)=>{ea.init(e,t),ty.init(e,t)}),t_=r.xI("ZodNanoID",(e,t)=>{eo.init(e,t),ty.init(e,t)}),tS=r.xI("ZodCUID",(e,t)=>{es.init(e,t),ty.init(e,t)}),tE=r.xI("ZodCUID2",(e,t)=>{el.init(e,t),ty.init(e,t)}),tC=r.xI("ZodULID",(e,t)=>{eu.init(e,t),ty.init(e,t)}),tA=r.xI("ZodXID",(e,t)=>{ec.init(e,t),ty.init(e,t)}),tT=r.xI("ZodKSUID",(e,t)=>{ed.init(e,t),ty.init(e,t)}),tO=r.xI("ZodIPv4",(e,t)=>{eg.init(e,t),ty.init(e,t)}),tP=r.xI("ZodIPv6",(e,t)=>{ey.init(e,t),ty.init(e,t)}),tI=r.xI("ZodCIDRv4",(e,t)=>{ev.init(e,t),ty.init(e,t)}),tM=r.xI("ZodCIDRv6",(e,t)=>{eb.init(e,t),ty.init(e,t)}),tz=r.xI("ZodBase64",(e,t)=>{ek.init(e,t),ty.init(e,t)});function tN(e){return e8(tz,e)}let tD=r.xI("ZodBase64URL",(e,t)=>{ex.init(e,t),ty.init(e,t)}),tL=r.xI("ZodE164",(e,t)=>{e_.init(e,t),ty.init(e,t)}),tj=r.xI("ZodJWT",(e,t)=>{eS.init(e,t),ty.init(e,t)}),tR=r.xI("ZodNumber",(e,t)=>{eE.init(e,t),tp.init(e,t),e.gt=(t,n)=>e.check(tt(t,n)),e.gte=(t,n)=>e.check(tn(t,n)),e.min=(t,n)=>e.check(tn(t,n)),e.lt=(t,n)=>e.check(e7(t,n)),e.lte=(t,n)=>e.check(te(t,n)),e.max=(t,n)=>e.check(te(t,n)),e.int=t=>e.check(tZ(t)),e.safe=t=>e.check(tZ(t)),e.positive=t=>e.check(tt(0,t)),e.nonnegative=t=>e.check(tn(0,t)),e.negative=t=>e.check(e7(0,t)),e.nonpositive=t=>e.check(te(0,t)),e.multipleOf=(t,n)=>e.check(tr(t,n)),e.step=(t,n)=>e.check(tr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function tF(e){return new tR({type:"number",checks:[],...I.A2(e)})}let t$=r.xI("ZodNumberFormat",(e,t)=>{eC.init(e,t),tR.init(e,t)});function tZ(e){return new t$({type:"number",check:"number_format",abort:!1,format:"safeint",...I.A2(e)})}let tW=r.xI("ZodBoolean",(e,t)=>{eA.init(e,t),tp.init(e,t)});function tU(e){return new tW({type:"boolean",...I.A2(e)})}let tH=r.xI("ZodNull",(e,t)=>{eT.init(e,t),tp.init(e,t)});function tB(e){return new tH({type:"null",...I.A2(e)})}let tV=r.xI("ZodUnknown",(e,t)=>{eO.init(e,t),tp.init(e,t)});function tq(){return new tV({type:"unknown"})}let tY=r.xI("ZodNever",(e,t)=>{eP.init(e,t),tp.init(e,t)});function tJ(e){return new tY({type:"never",...I.A2(e)})}let tG=r.xI("ZodArray",(e,t)=>{eM.init(e,t),tp.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(ta(t,n)),e.nonempty=t=>e.check(ta(1,t)),e.max=(t,n)=>e.check(ti(t,n)),e.length=(t,n)=>e.check(to(t,n)),e.unwrap=()=>e.element});function tK(e,t){return new tG({type:"array",element:e,...I.A2(t)})}let tX=r.xI("ZodObject",(e,t)=>{eD.init(e,t),tp.init(e,t),I.gJ(e,"shape",()=>t.shape),e.keyof=()=>(function(e,t){return new t7({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...I.A2(void 0)})})(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:tq()}),e.loose=()=>e.clone({...e._zod.def,catchall:tq()}),e.strict=()=>e.clone({...e._zod.def,catchall:tJ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>I.X$(e,t),e.merge=t=>I.h1(e,t),e.pick=t=>I.Up(e,t),e.omit=t=>I.cJ(e,t),e.partial=(...t)=>I.OH(nr,e,t[0]),e.required=(...t)=>I.mw(nu,e,t[0])});function tQ(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},...I.A2(t)})}function t0(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},catchall:tJ(),...I.A2(t)})}function t1(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},catchall:tq(),...I.A2(t)})}let t2=r.xI("ZodUnion",(e,t)=>{ej.init(e,t),tp.init(e,t),e.options=t.options});function t4(e,t){return new t2({type:"union",options:e,...I.A2(t)})}let t9=r.xI("ZodDiscriminatedUnion",(e,t)=>{t2.init(e,t),eR.init(e,t)});function t5(e,t,n){return new t9({type:"union",options:t,discriminator:e,...I.A2(n)})}let t3=r.xI("ZodIntersection",(e,t)=>{eF.init(e,t),tp.init(e,t)}),t6=r.xI("ZodRecord",(e,t)=>{eZ.init(e,t),tp.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function t8(e,t,n){return new t6({type:"record",keyType:e,valueType:t,...I.A2(n)})}let t7=r.xI("ZodEnum",(e,t)=>{eW.init(e,t),tp.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new t7({...t,checks:[],...I.A2(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new t7({...t,checks:[],...I.A2(r),entries:i})}}),ne=r.xI("ZodLiteral",(e,t)=>{eU.init(e,t),tp.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nt(e,t){return new ne({type:"literal",values:Array.isArray(e)?e:[e],...I.A2(t)})}let nn=r.xI("ZodTransform",(e,t)=>{eH.init(e,t),tp.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{"string"==typeof r?n.issues.push(I.sn(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!0),n.issues.push(I.sn(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),nr=r.xI("ZodOptional",(e,t)=>{eB.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ni(e){return new nr({type:"optional",innerType:e})}let na=r.xI("ZodNullable",(e,t)=>{eV.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function no(e){return new na({type:"nullable",innerType:e})}let ns=r.xI("ZodDefault",(e,t)=>{eq.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),nl=r.xI("ZodPrefault",(e,t)=>{eJ.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nu=r.xI("ZodNonOptional",(e,t)=>{eG.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nc=r.xI("ZodCatch",(e,t)=>{eX.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nd=r.xI("ZodPipe",(e,t)=>{eQ.init(e,t),tp.init(e,t),e.in=t.in,e.out=t.out});function nf(e,t){return new nd({type:"pipe",in:e,out:t})}let np=r.xI("ZodReadonly",(e,t)=>{e1.init(e,t),tp.init(e,t)}),nh=r.xI("ZodLazy",(e,t)=>{e4.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.getter()});function nm(e){return new nh({type:"lazy",getter:e})}let ng=r.xI("ZodCustom",(e,t)=>{e9.init(e,t),tp.init(e,t)});function ny(e,t){let n=I.A2(t);return n.abort??(n.abort=!0),new ng({type:"custom",check:"custom",fn:e??(()=>!0),...n})}function nv(e,t={error:`Input not instance of ${e.name}`}){let n=new ng({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...I.A2(t)});return n._zod.bag.Class=e,n}},3360:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(o(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&o(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},3386:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},3655:(e,t,n)=>{"use strict";n.d(t,{hO:()=>l,sG:()=>s});var r=n(2115),i=n(7650),a=n(9708),o=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},3724:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7924)),i=n(1300);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},3793:(e,t,n)=>{"use strict";n.d(t,{JM:()=>l,Kd:()=>s,Wk:()=>u,a$:()=>o});var r=n(4193),i=n(4398);let a=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,i.k8,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},o=(0,r.xI)("$ZodError",a),s=(0,r.xI)("$ZodError",a,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function u(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}},4011:(e,t,n)=>{"use strict";n.d(t,{H4:()=>x,bL:()=>k});var r=n(2115),i=n(6081),a=n(1414),o=n(2712),s=n(3655),l=n(9033);function u(){return()=>{}}var c=n(5155),d="Avatar",[f,p]=(0,i.A)(d),[h,m]=f(d),g=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...i}=e,[a,o]=r.useState("idle");return(0,c.jsx)(h,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:(0,c.jsx)(s.sG.span,{...i,ref:t})})});g.displayName=d;var y="AvatarImage";r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:i,onLoadingStatusChange:d=()=>{},...f}=e,p=m(y,n),h=function(e,t){let{referrerPolicy:n,crossOrigin:i}=t,a=(0,l.useSyncExternalStore)(u,()=>!0,()=>!1),s=r.useRef(null),c=a?(s.current||(s.current=new window.Image),s.current):null,[d,f]=r.useState(()=>w(c,e));return(0,o.N)(()=>{f(w(c,e))},[c,e]),(0,o.N)(()=>{let e=e=>()=>{f(e)};if(!c)return;let t=e("loaded"),r=e("error");return c.addEventListener("load",t),c.addEventListener("error",r),n&&(c.referrerPolicy=n),"string"==typeof i&&(c.crossOrigin=i),()=>{c.removeEventListener("load",t),c.removeEventListener("error",r)}},[c,i,n]),d}(i,f),g=(0,a.c)(e=>{d(e),p.onImageLoadingStatusChange(e)});return(0,o.N)(()=>{"idle"!==h&&g(h)},[h,g]),"loaded"===h?(0,c.jsx)(s.sG.img,{...f,ref:t,src:i}):null}).displayName=y;var v="AvatarFallback",b=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:i,...a}=e,o=m(v,n),[l,u]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(e)}},[i]),l&&"loaded"!==o.imageLoadingStatus?(0,c.jsx)(s.sG.span,{...a,ref:t}):null});function w(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}b.displayName=v;var k=g,x=b},4056:(e,t,n)=>{"use strict";n.d(t,{UC:()=>en,B8:()=>ee,bL:()=>Q,l9:()=>et});var r,i=n(2115),a=n(5185),o=n(6081);function s(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function l(e,t){var n=s(e,t,"get");return n.get?n.get.call(e):n.value}function u(e,t,n){var r=s(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var c=n(6101),d=n(9708),f=n(5155),p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?l(this,r)[l(this,r).indexOf(e)]=e:l(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let i,a=this.has(t),o=l(this,r).length,s=m(e),u=s>=0?s:o+s,c=u<0||u>=o?-1:u;if(c===this.size||a&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!a;s<0&&u++;let f=[...l(this,r)],p=!1;for(let e=u;e<d;e++)if(u===e){let r=f[e];f[e]===t&&(r=f[e+1]),a&&this.delete(t),i=this.get(r),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=l(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=l(this,r).indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=l(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=l(this,r).indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return u(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&l(this,r).splice(l(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(l(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(l(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return l(this,r).indexOf(e)}keyAt(e){return h(l(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,a=0,o=null!=i?i:this.at(0);for(let e of this)o=0===a&&1===t.length?e:Reflect.apply(r,this,[o,e,a,this]),a++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,a=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);a=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[a,n,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,r,{writable:!0,value:void 0}),u(this,r,[...super.keys()]),p.set(this,!0)}};var g=n(1285),y=n(3655),v=n(1414),b=n(5845),w=n(4315),k="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[S,E,C]=function(e){let t=e+"CollectionProvider",[n,r]=(0,o.A)(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,f.jsx)(a,{scope:t,itemMap:o,collectionRef:r,children:n})};l.displayName=t;let u=e+"CollectionSlot",p=(0,d.TL)(u),h=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=s(u,n),a=(0,c.s)(t,i.collectionRef);return(0,f.jsx)(p,{ref:a,children:r})});h.displayName=u;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,d.TL)(m),v=i.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=i.useRef(null),l=(0,c.s)(t,o),u=s(m,n);return i.useEffect(()=>(u.itemMap.set(o,{ref:o,...a}),()=>void u.itemMap.delete(o))),(0,f.jsx)(y,{...{[g]:""},ref:l,children:r})});return v.displayName=m,[{Provider:l,Slot:h,ItemSlot:v},function(t){let n=s(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(_),[A,T]=(0,o.A)(_,[C]),[O,P]=A(_),I=i.forwardRef((e,t)=>(0,f.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(M,{...e,ref:t})})}));I.displayName=_;var M=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...m}=e,g=i.useRef(null),S=(0,c.s)(t,g),C=(0,w.jH)(s),[A,T]=(0,b.i)({prop:l,defaultProp:null!=u?u:null,onChange:d,caller:_}),[P,I]=i.useState(!1),M=(0,v.c)(p),z=E(n),N=i.useRef(!1),[D,j]=i.useState(0);return i.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(k,M),()=>e.removeEventListener(k,M)},[M]),(0,f.jsx)(O,{scope:n,orientation:r,dir:C,loop:o,currentTabStopId:A,onItemFocus:i.useCallback(e=>T(e),[T]),onItemShiftTab:i.useCallback(()=>I(!0),[]),onFocusableItemAdd:i.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>j(e=>e-1),[]),children:(0,f.jsx)(y.sG.div,{tabIndex:P||0===D?-1:0,"data-orientation":r,...m,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(k,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);L([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),h)}}N.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>I(!1))})})}),z="RovingFocusGroupItem",N=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...u}=e,c=(0,g.B)(),d=s||c,p=P(z,n),h=p.currentTabStopId===d,m=E(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=p;return i.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),(0,f.jsx)(S.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:(0,f.jsx)(y.sG.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>L(n))}}),children:"function"==typeof l?l({isCurrentTabStop:h,hasTabStop:null!=w}):l})})});N.displayName=z;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function L(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var j=n(8905),R="Tabs",[F,$]=(0,o.A)(R,[T]),Z=T(),[W,U]=F(R),H=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=(0,w.jH)(s),[d,p]=(0,b.i)({prop:r,onChange:i,defaultProp:null!=a?a:"",caller:R});return(0,f.jsx)(W,{scope:n,baseId:(0,g.B)(),value:d,onValueChange:p,orientation:o,dir:c,activationMode:l,children:(0,f.jsx)(y.sG.div,{dir:c,"data-orientation":o,...u,ref:t})})});H.displayName=R;var B="TabsList",V=i.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=U(B,n),o=Z(n);return(0,f.jsx)(I,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(y.sG.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});V.displayName=B;var q="TabsTrigger",Y=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=U(q,n),l=Z(n),u=K(s.baseId,r),c=X(s.baseId,r),d=r===s.value;return(0,f.jsx)(N,{asChild:!0,...l,focusable:!i,active:d,children:(0,f.jsx)(y.sG.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,a.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;d||i||!e||s.onValueChange(r)})})})});Y.displayName=q;var J="TabsContent",G=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:a,children:o,...s}=e,l=U(J,n),u=K(l.baseId,r),c=X(l.baseId,r),d=r===l.value,p=i.useRef(d);return i.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(j.C,{present:a||d,children:n=>{let{present:r}=n;return(0,f.jsx)(y.sG.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&o})}})});function K(e,t){return"".concat(e,"-trigger-").concat(t)}function X(e,t){return"".concat(e,"-content-").concat(t)}G.displayName=J;var Q=H,ee=V,et=Y,en=G},4093:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},4193:(e,t,n)=>{"use strict";function r(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),o.prototype)a in n||Object.defineProperty(n,a,{value:o.prototype[a].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}function o(e){var t;let i=n?.Parent?new a:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}n.d(t,{$W:()=>o,GT:()=>i,cr:()=>a,xI:()=>r}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let a={};function o(e){return e&&Object.assign(a,e),a}},4315:(e,t,n)=>{"use strict";n.d(t,{jH:()=>a});var r=n(2115);n(5155);var i=r.createContext(void 0);function a(e){let t=r.useContext(i);return e||t||"ltr"}},4392:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},4398:(e,t,n)=>{"use strict";function r(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function i(e,t){return"bigint"==typeof t?t.toString():t}function a(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function o(e){return null==e}function s(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function u(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function c(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function d(e){return JSON.stringify(e)}n.d(t,{$f:()=>y,A2:()=>b,Gv:()=>p,LG:()=>l,NM:()=>w,OH:()=>C,PO:()=>a,QH:()=>T,Qd:()=>m,Rc:()=>M,UQ:()=>d,Up:()=>x,Vy:()=>c,X$:()=>S,cJ:()=>_,cl:()=>o,gJ:()=>u,gx:()=>f,h1:()=>E,hI:()=>h,iR:()=>I,k8:()=>i,lQ:()=>O,mw:()=>A,o8:()=>v,p6:()=>s,qQ:()=>g,sn:()=>z,w5:()=>r,zH:()=>k});let f=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let h=a(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function m(e){if(!1===p(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==p(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}let g=new Set(["string","number","symbol"]);function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function w(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let k={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function x(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return v(e,{...e._zod.def,shape:n,checks:[]})}function _(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return v(e,{...e._zod.def,shape:n,checks:[]})}function S(e,t){if(!m(t))throw Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return c(this,"shape",n),n},checks:[]};return v(e,n)}function E(e,t){return v(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return c(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function C(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return v(t,{...t._zod.def,shape:i,checks:[]})}function A(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return v(t,{...t._zod.def,shape:i,checks:[]})}function T(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function O(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function P(e){return"string"==typeof e?e:e?.message}function I(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=P(e.inst?._zod.def?.error?.(e))??P(t?.error?.(e))??P(n.customError?.(e))??P(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function M(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function z(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}},4416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4423:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(5490),i=n(9447);function a(e,t){var n,a,o,s,l,u,c,d;let f=(0,r.q)(),p=null!=(d=null!=(c=null!=(u=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(a=t.locale)||null==(n=a.options)?void 0:n.weekStartsOn)?u:f.weekStartsOn)?c:null==(s=f.locale)||null==(o=s.options)?void 0:o.weekStartsOn)?d:0,h=(0,i.a)(e,null==t?void 0:t.in),m=h.getDay();return h.setDate(h.getDate()-(7*(m<p)+m-p)),h.setHours(0,0,0,0),h}},4581:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2556);function i(e,t,n,i){let a=i?i-1:1/0,o=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(s){return(0,r.On)(s)&&o++<a?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},4823:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{A:()=>ez});var i=n(4093),a=n(2556),o=n(1922),s=n(7915);let l="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function f(e){this.config.exit.autolinkProtocol.call(this,e)}function p(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function h(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,s.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,o.VG)(e,"text",l);function l(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,v]],{ignore:["link","linkReference"]})}function y(e,t,n,i,a){let o="";if(!b(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=r(e,"("),o=r(e,")");for(;-1!==i&&a>o;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),o++;return[e,n]}(n+i);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function v(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.Ny)(n)||(0,a.es)(n))&&(!t||47!==n)}var w=n(3386);function k(){this.buffer()}function x(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _(){this.buffer()}function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function E(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,w.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C(e){this.exit(e)}function A(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,w.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function T(e){this.exit(e)}function O(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function P(e,t,n){return 0===t?e:I(e,t,n)}function I(e,t,n){return(n?"":" ")+e}O.peek=function(){return"["};let M=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function z(e){this.enter({type:"delete",children:[]},e)}function N(e){this.exit(e)}function D(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function L(e){return e.length}function j(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}D.peek=function(){return"~"};var R=n(9535);n(8428);n(4392);function F(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}F.peek=function(){return"`"};(0,s.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let $={inlineCode:F,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),u}};function Z(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function W(e){this.exit(e),this.data.inTable=void 0}function U(e){this.enter({type:"tableRow",children:[]},e)}function H(e){this.exit(e)}function B(e){this.enter({type:"tableCell",children:[]},e)}function V(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,q));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function q(e,t){return"|"===t?t:e}function Y(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function J(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function G(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=$.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}var K=n(9381);let X={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},Q={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(et,u,l)(t):null===t||(0,a.Ee)(t)||(0,a.Ny)(t)||45!==t&&(0,a.es)(t)?u(t):(o=!0,e.consume(t),s)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function u(e){return i||r||!o?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(et,t,o)(s):null===s||(0,a.Ee)(s)||(0,a.Ny)(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},et={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||(0,a.Ee)(s)||(0,a.Ny)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,a.Ee)(e)||(0,a.Ny)(e)?t(e):r(e)}function o(t){return(0,a.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},en={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.lV)(e)?n(e):t(e)}},partial:!0},er={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!el.call(r,r.previous)||ef(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(X,e.attempt(Q,e.attempt(ee,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:el},ei={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&eu.call(r,r.previous)&&!ef(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,a.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),o)?u:(o=!0,l):n(t)}function u(t){return null===t||(0,a.JQ)(t)||(0,a.Ee)(t)||(0,a.Ny)(t)||(0,a.es)(t)?n(t):e.attempt(Q,e.attempt(ee,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eu},ea={name:"emailAutolink",tokenize:function(e,t,n){let r,i,o=this;return function(t){return!ed(t)||!ec.call(o,o.previous)||ef(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ed(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(en,u,l)(t):45===t||95===t||(0,a.lV)(t)?(i=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),r=!0,s}function u(s){return i&&r&&(0,a.CW)(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:ec},eo={},es=48;for(;es<123;)eo[es]=ea,58==++es?es=65:91===es&&(es=97);function el(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.Ee)(e)}function eu(e){return!(0,a.CW)(e)}function ec(e){return!(47===e||ed(e))}function ed(e){return 43===e||45===e||46===e||95===e||(0,a.lV)(e)}function ef(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eo[43]=ea,eo[45]=ea,eo[46]=ea,eo[95]=ea,eo[72]=[ea,ei],eo[104]=[ea,ei],eo[87]=[ea,er],eo[119]=[ea,er];var ep=n(5333),eh=n(4581);let em={tokenize:function(e,t,n){let r=this;return(0,eh.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eg(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=(0,w.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function ey(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function ev(e,t,n){let r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(s>999||93===l&&!r||null===l||91===l||(0,a.Ee)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,w.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,a.Ee)(l)||(r=!0),s++,e.consume(l),92===l?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function eb(e,t,n){let r,i,o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!i||null===t||91===t||(0,a.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,w.B)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return(0,a.Ee)(t)||(i=!0),l++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,eh.N)(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function ew(e,t,n){return e.check(ep.B,t,e.attempt(em,t,n))}function ek(e){e.exit("gfmFootnoteDefinition")}var ex=n(1603),e_=n(1877);class eS{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function eE(e,t,n){let r,i=this,o=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:l;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function l(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),u(n)}function u(t){return null===t?n(t):(0,a.HP)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):(0,a.On)(t)?(0,eh.N)(e,u,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.On)(t))?(0,eh.N)(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,a.On)(t)?(0,eh.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||(0,a.HP)(t)?v(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.On)(t)?(0,eh.N)(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return p(i);if(null===i||(0,a.HP)(i))return r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,a.HP)(n)?(e.exit("tableRow"),t(n)):(0,a.On)(n)?(0,eh.N)(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function eC(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new eS;for(;++a<e.length;){let p=e[a],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(eT(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(a,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=eA(f,t,l,s,void 0,i),l=[0,0,0,0]),u[2]=a)):"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(u[0]=u[1],i=eA(f,t,l,s,void 0,i)),u=[(l=u)[1],a,0,0])):"tableHead"===h.type?(c=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(u[0]=u[1],i=eA(f,t,l,s,a,i)):0!==u[1]&&(i=eA(f,t,u,s,a,i)),s=0):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=a)}for(0!==d&&eT(f,t,d,n,r),f.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function eA(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eO(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=eO(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eO(t.events,n[2]),a=eO(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},eO(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eT(e,t,n,r,i){let a=[],o=eO(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function eO(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eP={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,a.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,a.HP)(r)?t(r):(0,a.On)(r)?e.check({tokenize:eI},t,n)(r):n(r)}}};function eI(e,t,n){return(0,eh.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eM={};function ez(e){let t,n=e||eM,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,K.y)([{text:eo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:eb,continuation:{tokenize:ew},exit:ek}},text:{91:{name:"gfmFootnoteCall",tokenize:ev},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:ey}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=(0,R.S)(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,R.S)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,ex.m)(o,o.length,0,(0,e_.W)(s,e.slice(r+1,n),t)),(0,ex.m)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,ex.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:eE,resolveAll:eC}}},{text:{91:eP}}])),a.push([{transforms:[g],enter:{literalAutolink:c,literalAutolinkEmail:d,literalAutolinkHttp:d,literalAutolinkWww:d},exit:{literalAutolink:m,literalAutolinkEmail:h,literalAutolinkHttp:f,literalAutolinkWww:p}},{enter:{gfmFootnoteCallString:k,gfmFootnoteCall:x,gfmFootnoteDefinitionLabelString:_,gfmFootnoteDefinition:S},exit:{gfmFootnoteCallString:E,gfmFootnoteCall:C,gfmFootnoteDefinitionLabelString:A,gfmFootnoteDefinition:T}},{canContainEols:["delete"],enter:{strikethrough:z},exit:{strikethrough:N}},{enter:{table:Z,tableData:B,tableHeader:B,tableRow:U},exit:{codeText:V,table:W,tableData:H,tableHeader:H,tableRow:H}},{exit:{taskListCheckValueChecked:Y,taskListCheckValueUnchecked:Y,paragraph:J}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:l,notInConstruct:u}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?I:P))),s(),o},footnoteReference:O},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:M}],handlers:{delete:D}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=$.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||L,a=[],o=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var d;let o=null==(d=e[c][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[c]=t,s[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)a[f]=j(r[f]);else{let e=j(r);for(;++f<u;)a[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=a[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[f]&&(l[f]=i),h[f]=i),p[f]=o}o.splice(1,0,p),s.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=s[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[f]-(t[f]||0),n=a[f];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:G}}]})}},5185:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},5333:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(4581),i=n(2556);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},5339:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},5490:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let r={};function i(){return r}},5657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},5703:(e,t,n)=>{"use strict";n.d(t,{_P:()=>a,my:()=>r,w4:()=>i});let r=6048e5,i=864e5,a=Symbol.for("constructDateFrom")},5736:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("message-square-plus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]])},5845:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r,i=n(2115),a=n(2712),o=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||a.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),s=i.useRef(t);return o(()=>{s.current=t},[t]),i.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},5933:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:()=>r})},6059:(e,t,n)=>{"use strict";n.d(t,{UC:()=>n_,ZL:()=>nx,bL:()=>nw,l9:()=>nk});var r,i,a,o=n(2115),s=n(5185),l=n(6101),u=n(6081),c=n(3655),d=n(1414),f=n(5155),p="dismissableLayer.update",h=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...k}=e,x=o.useContext(h),[_,S]=o.useState(null),E=null!=(r=null==_?void 0:_.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,C]=o.useState({}),A=(0,l.s)(t,e=>S(e)),T=Array.from(x.layers),[O]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),P=T.indexOf(O),I=_?T.indexOf(_):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,z=I>=P,N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));z&&!n&&(null==m||m(e),null==b||b(e),e.defaultPrevented||null==w||w())},E),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},E);return!function(e,t=globalThis?.document){let n=(0,d.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{I===x.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},E),o.useEffect(()=>{if(_)return a&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(i=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(_)),x.layers.add(_),g(),()=>{a&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=i)}},[_,E,a,x]),o.useEffect(()=>()=>{_&&(x.layers.delete(_),x.layersWithOutsidePointerEventsDisabled.delete(_),g())},[_,x]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,f.jsx)(c.sG.div,{...k,ref:A,style:{pointerEvents:M?z?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,s.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,s.m)(e.onPointerDownCapture,N.onPointerDownCapture)})});function g(){let e=new CustomEvent(p);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:i}=r,a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?(0,c.hO)(a,o):a.dispatchEvent(o)}m.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(h),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(c.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var v=0;function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var w="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},_=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[u,p]=o.useState(null),h=(0,d.c)(i),m=(0,d.c)(a),g=o.useRef(null),y=(0,l.s)(t,e=>p(e)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:C(g.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||C(g.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),o.useEffect(()=>{if(u){A.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(w,x);u.addEventListener(w,h),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(w,h),setTimeout(()=>{let t=new CustomEvent(k,x);u.addEventListener(k,m),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(k,m),A.remove(v)},0)}}},[u,h,m,v]);let b=o.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=S(e);return[E(t,e),E(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&C(a,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,f.jsx)(c.sG.div,{tabIndex:-1,...s,ref:y,onKeyDown:b})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;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 E(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var A=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=T(e,t)).unshift(t)},remove(t){var n;null==(n=(e=T(e,t))[0])||n.resume()}}}();function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(1285);let P=["top","right","bottom","left"],I=Math.min,M=Math.max,z=Math.round,N=Math.floor,D=e=>({x:e,y:e}),L={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function F(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function W(e){return"y"===e?"height":"width"}let U=new Set(["top","bottom"]);function H(e){return U.has(F(e))?"y":"x"}function B(e){return e.replace(/start|end/g,e=>j[e])}let V=["left","right"],q=["right","left"],Y=["top","bottom"],J=["bottom","top"];function G(e){return e.replace(/left|right|bottom|top/g,e=>L[e])}function K(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function X(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 Q(e,t,n){let r,{reference:i,floating:a}=e,o=H(t),s=Z(H(t)),l=W(s),u=F(t),c="y"===o,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-a.width,y:f};break;default:r={x:i.x,y:i.y}}switch($(t)){case"start":r[s]-=p*(n&&c?-1:1);break;case"end":r[s]+=p*(n&&c?-1:1)}return r}let ee=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Q(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=Q(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function et(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=R(t,e),h=K(p),m=s[f?"floating"===d?"reference":"floating":d],g=X(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await (null==a.isElement?void 0:a.isElement(v))&&await (null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=X(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function en(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function er(e){return P.some(t=>e[t]>=0)}let ei=new Set(["left","top"]);async function ea(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=F(n),s=$(n),l="y"===H(n),u=ei.has(o)?-1:1,c=a&&l?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eo(){return"undefined"!=typeof window}function es(e){return ec(e)?(e.nodeName||"").toLowerCase():"#document"}function el(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eu(e){var t;return null==(t=(ec(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ec(e){return!!eo()&&(e instanceof Node||e instanceof el(e).Node)}function ed(e){return!!eo()&&(e instanceof Element||e instanceof el(e).Element)}function ef(e){return!!eo()&&(e instanceof HTMLElement||e instanceof el(e).HTMLElement)}function ep(e){return!!eo()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof el(e).ShadowRoot)}let eh=new Set(["inline","contents"]);function em(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eh.has(i)}let eg=new Set(["table","td","th"]),ey=[":popover-open",":modal"];function ev(e){return ey.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eb=["transform","translate","scale","rotate","perspective"],ew=["transform","translate","scale","rotate","perspective","filter"],ek=["paint","layout","strict","content"];function ex(e){let t=e_(),n=ed(e)?eC(e):e;return eb.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ew.some(e=>(n.willChange||"").includes(e))||ek.some(e=>(n.contain||"").includes(e))}function e_(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eS=new Set(["html","body","#document"]);function eE(e){return eS.has(es(e))}function eC(e){return el(e).getComputedStyle(e)}function eA(e){return ed(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eT(e){if("html"===es(e))return e;let t=e.assignedSlot||e.parentNode||ep(e)&&e.host||eu(e);return ep(t)?t.host:t}function eO(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eT(t);return eE(n)?t.ownerDocument?t.ownerDocument.body:t.body:ef(n)&&em(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=el(i);if(a){let e=eP(o);return t.concat(o,o.visualViewport||[],em(i)?i:[],e&&n?eO(e):[])}return t.concat(i,eO(i,[],n))}function eP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eI(e){let t=eC(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ef(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=z(n)!==a||z(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function eM(e){return ed(e)?e:e.contextElement}function ez(e){let t=eM(e);if(!ef(t))return D(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eI(t),o=(a?z(n.width):n.width)/r,s=(a?z(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let eN=D(0);function eD(e){let t=el(e);return e_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eN}function eL(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=eM(e),s=D(1);t&&(r?ed(r)&&(s=ez(r)):s=ez(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===el(o))&&i)?eD(o):D(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(o){let e=el(o),t=r&&ed(r)?el(r):r,n=e,i=eP(n);for(;i&&r&&t!==n;){let e=ez(i),t=i.getBoundingClientRect(),r=eC(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=o,i=eP(n=el(i))}}return X({width:d,height:f,x:u,y:c})}function ej(e,t){let n=eA(e).scrollLeft;return t?t.left+n:eL(eu(e)).left+n}function eR(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ej(e,r)),y:r.top+t.scrollTop}}let eF=new Set(["absolute","fixed"]);function e$(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=el(e),r=eu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=e_();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=eu(e),n=eA(e),r=e.ownerDocument.body,i=M(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ej(e),s=-n.scrollTop;return"rtl"===eC(r).direction&&(o+=M(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(eu(e));else if(ed(t))r=function(e,t){let n=eL(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ef(e)?ez(e):D(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:i*a.x,y:r*a.y}}(t,n);else{let n=eD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X(r)}function eZ(e){return"static"===eC(e).position}function eW(e,t){if(!ef(e)||"fixed"===eC(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eu(e)===n&&(n=n.ownerDocument.body),n}function eU(e,t){var n;let r=el(e);if(ev(e))return r;if(!ef(e)){let t=eT(e);for(;t&&!eE(t);){if(ed(t)&&!eZ(t))return t;t=eT(t)}return r}let i=eW(e,t);for(;i&&(n=i,eg.has(es(n)))&&eZ(i);)i=eW(i,t);return i&&eE(i)&&eZ(i)&&!ex(i)?r:i||function(e){let t=eT(e);for(;ef(t)&&!eE(t);){if(ex(t))return t;if(ev(t))break;t=eT(t)}return null}(e)||r}let eH=async function(e){let t=this.getOffsetParent||eU,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ef(t),i=eu(t),a="fixed"===n,o=eL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=D(0);if(r||!r&&!a)if(("body"!==es(t)||em(i))&&(s=eA(t)),r){let e=eL(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ej(i));a&&!r&&i&&(l.x=ej(i));let u=!i||r||a?D(0):eR(i,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=eu(r),s=!!t&&ev(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=D(1),c=D(0),d=ef(r);if((d||!d&&!a)&&(("body"!==es(r)||em(o))&&(l=eA(r)),ef(r))){let e=eL(r);u=ez(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!o||d||a?D(0):eR(o,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:eu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?ev(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eO(e,[],!1).filter(e=>ed(e)&&"body"!==es(e)),i=null,a="fixed"===eC(e).position,o=a?eT(e):e;for(;ed(o)&&!eE(o);){let t=eC(o),n=ex(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&eF.has(i.position)||em(o)&&!n&&function e(t,n){let r=eT(t);return!(r===n||!ed(r)||eE(r))&&("fixed"===eC(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=eT(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=e$(t,n,i);return e.top=M(r.top,e.top),e.right=I(r.right,e.right),e.bottom=I(r.bottom,e.bottom),e.left=M(r.left,e.left),e},e$(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eU,getElementRects:eH,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eI(e);return{width:t,height:n}},getScale:ez,isElement:ed,isRTL:function(e){return"rtl"===eC(e).direction}};function eV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eq=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=R(e,t)||{};if(null==u)return{};let d=K(c),f={x:n,y:r},p=Z(H(i)),h=W(p),m=await o.getDimensions(u),g="y"===p,y=g?"clientHeight":"clientWidth",v=a.reference[h]+a.reference[p]-f[p]-a.floating[h],b=f[p]-a.reference[p],w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),k=w?w[y]:0;k&&await (null==o.isElement?void 0:o.isElement(w))||(k=s.floating[y]||a.floating[h]);let x=k/2-m[h]/2-1,_=I(d[g?"top":"left"],x),S=I(d[g?"bottom":"right"],x),E=k-m[h]-S,C=k/2-m[h]/2+(v/2-b/2),A=M(_,I(C,E)),T=!l.arrow&&null!=$(i)&&C!==A&&a.reference[h]/2-(C<_?_:S)-m[h]/2<0,O=T?C<_?C-_:C-E:0;return{[p]:f[p]+O,data:{[p]:A,centerOffset:C-A-O,...T&&{alignmentOffset:O}},reset:T}}});var eY=n(7650),eJ="undefined"!=typeof document?o.useLayoutEffect:function(){};function eG(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eG(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eG(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eK(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eX(e,t){let n=eK(e);return Math.round(t*n)/n}function eQ(e){let t=o.useRef(e);return eJ(()=>{t.current=e}),t}var e0=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,f.jsx)(c.sG.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName="Arrow";var e1=n(2712),e2=n(1275),e4="Popper",[e9,e5]=(0,u.A)(e4),[e3,e6]=e9(e4),e8=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,f.jsx)(e3,{scope:t,anchor:r,onAnchorChange:i,children:n})};e8.displayName=e4;var e7="PopperAnchor",te=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=e6(e7,n),s=o.useRef(null),u=(0,l.s)(t,s);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,f.jsx)(c.sG.div,{...i,ref:u})});te.displayName=e7;var tt="PopperContent",[tn,tr]=e9(tt),ti=o.forwardRef((e,t)=>{var n,r,i,a,s,u,p,h;let{__scopePopper:m,side:g="bottom",sideOffset:y=0,align:v="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:k=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:S="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:A,...T}=e,O=e6(tt,m),[P,z]=o.useState(null),D=(0,l.s)(t,e=>z(e)),[L,j]=o.useState(null),U=(0,e2.X)(L),K=null!=(p=null==U?void 0:U.width)?p:0,X=null!=(h=null==U?void 0:U.height)?h:0,Q="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},eo=Array.isArray(x)?x:[x],es=eo.length>0,el={padding:Q,boundary:eo.filter(tl),altBoundary:es},{refs:ec,floatingStyles:ed,placement:ef,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eG(p,r)||h(r);let[m,g]=o.useState(null),[y,v]=o.useState(null),b=o.useCallback(e=>{e!==_.current&&(_.current=e,g(e))},[]),w=o.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),k=a||m,x=s||y,_=o.useRef(null),S=o.useRef(null),E=o.useRef(d),C=null!=u,A=eQ(u),T=eQ(i),O=eQ(c),P=o.useCallback(()=>{if(!_.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),((e,t,n)=>{let r=new Map,i={platform:eB,...n},a={...i.platform,_c:r};return ee(e,t,{...i,platform:a})})(_.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};I.current&&!eG(E.current,t)&&(E.current=t,eY.flushSync(()=>{f(t)}))})},[p,t,n,T,O]);eJ(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let I=o.useRef(!1);eJ(()=>(I.current=!0,()=>{I.current=!1}),[]),eJ(()=>{if(k&&(_.current=k),x&&(S.current=x),k&&x){if(A.current)return A.current(k,x,P);P()}},[k,x,P,A,C]);let M=o.useMemo(()=>({reference:_,floating:S,setReference:b,setFloating:w}),[b,w]),z=o.useMemo(()=>({reference:k,floating:x}),[k,x]),N=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=eX(z.floating,d.x),r=eX(z.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eK(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,z.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:P,refs:M,elements:z,floatingStyles:N}),[d,P,M,z,N])}({strategy:"fixed",placement:g+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eM(e),d=a||o?[...c?eO(c):[],...eO(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=eu(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;let h=N(d),m=N(i.clientWidth-(c+f)),g={rootMargin:-h+"px "+-m+"px "+-N(i.clientHeight-(d+p))+"px "+-N(c)+"px",threshold:M(0,I(1,l))||1},y=!0;function v(t){let r=t[0].intersectionRatio;if(r!==l){if(!y)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||eV(u,e.getBoundingClientRect())||o(),y=!1}try{r=new IntersectionObserver(v,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),a}(c,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eL(e):null;return u&&function t(){let r=eL(e);m&&!eV(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===C})},elements:{reference:O.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await ea(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}}(e),options:[e,t]}))({mainAxis:y+X,alignmentAxis:b}),k&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=R(e,t),u={x:n,y:r},c=await et(t,l),d=H(F(i)),f=Z(d),p=u[f],h=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=M(n,I(p,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=M(n,I(h,r))}let m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:o}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=R(e,t),c={x:n,y:r},d=H(i),f=Z(d),p=c[f],h=c[d],m=R(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;let e="y"===f?"width":"height",t=ei.has(F(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=o.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}))():void 0,...el}),k&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=R(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let w=F(s),k=H(c),x=F(c)===c,_=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=m||(x||!v?[G(c)]:function(e){let t=G(e);return[B(e),t,B(t)]}(c)),E="none"!==y;!m&&E&&S.push(...function(e,t,n,r){let i=$(e),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?q:V;return t?V:q;case"left":case"right":return t?Y:J;default:return[]}}(F(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(B)))),a}(c,v,y,_));let C=[c,...S],A=await et(t,b),T=[],O=(null==(r=l.flip)?void 0:r.overflows)||[];if(p&&T.push(A[w]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=$(e),i=Z(H(e)),a=W(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=G(o)),[o,G(o)]}(s,u,_);T.push(A[e[0]],A[e[1]])}if(O=[...O,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=C[e];if(t&&("alignment"!==h||k===H(t)||O.every(e=>H(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(a=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(o=O.filter(e=>{if(E){let t=H(e.placement);return t===k||"y"===t}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])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...el}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,a,{placement:o,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=R(e,t),f=await et(t,d),p=F(o),h=$(o),m="y"===H(o),{width:g,height:y}=s.floating;"top"===p||"bottom"===p?(i=p,a=h===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=p,i="end"===h?"top":"bottom");let v=y-f.top-f.bottom,b=g-f.left-f.right,w=I(y-f[i],v),k=I(g-f[a],b),x=!t.middlewareData.shift,_=w,S=k;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=v),x&&!h){let e=M(f.left,0),t=M(f.right,0),n=M(f.top,0),r=M(f.bottom,0);m?S=g-2*(0!==e||0!==t?e+t:M(f.left,f.right)):_=y-2*(0!==n||0!==r?n+r:M(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:_});let E=await l.getDimensions(u.floating);return g!==E.width||y!==E.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...el,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:a,height:o}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),L&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eq({element:n.current,padding:r}).fn(t):{}:n?eq({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:L,padding:w}),tu({arrowWidth:K,arrowHeight:X}),E&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=R(e,t);switch(r){case"referenceHidden":{let e=en(await et(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:er(e)}}}case"escaped":{let e=en(await et(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:er(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...el})]}),[em,eg]=tc(ef),ey=(0,d.c)(A);(0,e1.N)(()=>{ep&&(null==ey||ey())},[ep,ey]);let ev=null==(n=eh.arrow)?void 0:n.x,eb=null==(r=eh.arrow)?void 0:r.y,ew=(null==(i=eh.arrow)?void 0:i.centerOffset)!==0,[ek,ex]=o.useState();return(0,e1.N)(()=>{P&&ex(window.getComputedStyle(P).zIndex)},[P]),(0,f.jsx)("div",{ref:ec.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:ep?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(a=eh.transformOrigin)?void 0:a.x,null==(s=eh.transformOrigin)?void 0:s.y].join(" "),...(null==(u=eh.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(tn,{scope:m,placedSide:em,onArrowChange:j,arrowX:ev,arrowY:eb,shouldHideArrow:ew,children:(0,f.jsx)(c.sG.div,{"data-side":em,"data-align":eg,...T,ref:D,style:{...T.style,animation:ep?void 0:"none"}})})})});ti.displayName=tt;var ta="PopperArrow",to={top:"bottom",right:"left",bottom:"top",left:"right"},ts=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tr(ta,n),a=to[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(e0,{...r,ref:t,style:{...r.style,display:"block"}})})});function tl(e){return null!==e}ts.displayName=ta;var tu=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=tc(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+d/2,y=(null!=(o=null==(i=u.arrow)?void 0:i.y)?o:0)+f/2,v="",b="";return"bottom"===p?(v=c?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===p?(v=c?m:"".concat(g,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(v="".concat(-f,"px"),b=c?m:"".concat(y,"px")):"left"===p&&(v="".concat(l.floating.width+f,"px"),b=c?m:"".concat(y,"px")),{data:{x:v,y:b}}}});function tc(e){let[t,n="center"]=e.split("-");return[t,n]}var td=o.forwardRef((e,t)=>{var n,r;let{container:i,...a}=e,[s,l]=o.useState(!1);(0,e1.N)(()=>l(!0),[]);let u=i||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return u?eY.createPortal((0,f.jsx)(c.sG.div,{...a,ref:t}),u):null});td.displayName="Portal";var tf=n(8905),tp=n(9708),th=n(5845),tm=new WeakMap,tg=new WeakMap,ty={},tv=0,tb=function(e){return e&&(e.host||tb(e.parentNode))},tw=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tb(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ty[n]||(ty[n]=new WeakMap);var a=ty[n],o=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tm.get(e)||0)+1,u=(a.get(e)||0)+1;tm.set(e,l),a.set(e,u),o.push(e),1===l&&i&&tg.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),tv++,function(){o.forEach(function(e){var t=tm.get(e)-1,i=a.get(e)-1;tm.set(e,t),a.set(e,i),t||(tg.has(e)||e.removeAttribute(r),tg.delete(e)),i||e.removeAttribute(n)}),--tv||(tm=new WeakMap,tm=new WeakMap,tg=new WeakMap,ty={})}},tk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tw(r,i,n,"aria-hidden")):function(){return null}},tx=function(){return(tx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function t_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var tS=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tE="width-before-scroll-bar";function tC(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tA="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,tT=new WeakMap;function tO(e){return e}var tP=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=tO),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return i.options=tx({async:!0,ssr:!1},e),i}(),tI=function(){},tM=o.forwardRef(function(e,t){var n,r,i,a,s=o.useRef(null),l=o.useState({onScrollCapture:tI,onWheelCapture:tI,onTouchMoveCapture:tI}),u=l[0],c=l[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,k=e.allowPinchZoom,x=e.as,_=e.gapMode,S=t_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(n=[s,t],r=function(e){return n.forEach(function(t){return tC(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,tA(function(){var e=tT.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||tC(e,null)}),r.forEach(function(e){t.has(e)||tC(e,i)})}tT.set(a,n)},[n]),a),C=tx(tx({},S),u);return o.createElement(o.Fragment,null,m&&o.createElement(y,{sideCar:tP,removeScrollBar:h,shards:g,noRelative:v,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!k,lockRef:s,gapMode:_}),d?o.cloneElement(o.Children.only(f),tx(tx({},C),{ref:E})):o.createElement(void 0===x?"div":x,tx({},C,{className:p,ref:E}),f))});tM.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tM.classNames={fullWidth:tE,zeroRight:tS};var tz=function(e){var t=e.sideCar,n=t_(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return o.createElement(r,tx({},n))};tz.isSideCarExport=!0;var tN=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tD=function(){var e=tN();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tL=function(){var e=tD();return function(t){return e(t.styles,t.dynamic),null}},tj={left:0,top:0,right:0,gap:0},tR=function(e){return parseInt(e||"",10)||0},tF=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tR(n),tR(r),tR(i)]},t$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tj;var t=tF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tZ=tL(),tW="data-scroll-locked",tU=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(tW,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tS," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tE," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tS," .").concat(tS," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tE," .").concat(tE," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tW,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},tH=function(){var e=parseInt(document.body.getAttribute(tW)||"0",10);return isFinite(e)?e:0},tB=function(){o.useEffect(function(){return document.body.setAttribute(tW,(tH()+1).toString()),function(){var e=tH()-1;e<=0?document.body.removeAttribute(tW):document.body.setAttribute(tW,e.toString())}},[])},tV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tB();var a=o.useMemo(function(){return t$(i)},[i]);return o.createElement(tZ,{styles:tU(a,!t,i,n?"":"!important")})},tq=!1;if("undefined"!=typeof window)try{var tY=Object.defineProperty({},"passive",{get:function(){return tq=!0,!0}});window.addEventListener("test",tY,tY),window.removeEventListener("test",tY,tY)}catch(e){tq=!1}var tJ=!!tq&&{passive:!1},tG=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tK=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tX(e,r)){var i=tQ(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tX=function(e,t){return"v"===e?tG(t,"overflowY"):tG(t,"overflowX")},tQ=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t0=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var h=tQ(e,l),m=h[0],g=h[1]-h[2]-o*m;(m||g)&&tX(e,l)&&(f+=g,p+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},t1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t2=function(e){return[e.deltaX,e.deltaY]},t4=function(e){return e&&"current"in e?e.current:e},t9=0,t5=[];let t3=(r=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(t9++)[0],a=o.useState(tL)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(t4),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=t1(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tK(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=tK(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return t0(p,t,e,"h"===p?l:u,!0)},[]),u=o.useCallback(function(e){if(t5.length&&t5[t5.length-1]===a){var n="deltaY"in e?t2(e):t1(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(t4).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=t1(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,t2(t),t.target,l(t,e.lockRef.current))},[]),p=o.useCallback(function(t){c(t.type,t1(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return t5.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,tJ),document.addEventListener("touchmove",u,tJ),document.addEventListener("touchstart",d,tJ),function(){t5=t5.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,tJ),document.removeEventListener("touchmove",u,tJ),document.removeEventListener("touchstart",d,tJ)}},[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?o.createElement(tV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tP.useMedium(r),tz);var t6=o.forwardRef(function(e,t){return o.createElement(tM,tx({},e,{ref:t,sideCar:t3}))});t6.classNames=tM.classNames;var t8="Popover",[t7,ne]=(0,u.A)(t8,[e5]),nt=e5(),[nn,nr]=t7(t8),ni=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=nt(t),u=o.useRef(null),[c,d]=o.useState(!1),[p,h]=(0,th.i)({prop:r,defaultProp:null!=i&&i,onChange:a,caller:t8});return(0,f.jsx)(e8,{...l,children:(0,f.jsx)(nn,{scope:t,contentId:(0,O.B)(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:c,onCustomAnchorAdd:o.useCallback(()=>d(!0),[]),onCustomAnchorRemove:o.useCallback(()=>d(!1),[]),modal:s,children:n})})};ni.displayName=t8;var na="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(na,n),a=nt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect(()=>(s(),()=>l()),[s,l]),(0,f.jsx)(te,{...a,...r,ref:t})}).displayName=na;var no="PopoverTrigger",ns=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(no,n),a=nt(n),o=(0,l.s)(t,i.triggerRef),u=(0,f.jsx)(c.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nb(i.open),...r,ref:o,onClick:(0,s.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,f.jsx)(te,{asChild:!0,...a,children:u})});ns.displayName=no;var nl="PopoverPortal",[nu,nc]=t7(nl,{forceMount:void 0}),nd=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=nr(nl,t);return(0,f.jsx)(nu,{scope:t,forceMount:n,children:(0,f.jsx)(tf.C,{present:n||a.open,children:(0,f.jsx)(td,{asChild:!0,container:i,children:r})})})};nd.displayName=nl;var nf="PopoverContent",np=o.forwardRef((e,t)=>{let n=nc(nf,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=nr(nf,e.__scopePopover);return(0,f.jsx)(tf.C,{present:r||a.open,children:a.modal?(0,f.jsx)(nm,{...i,ref:t}):(0,f.jsx)(ng,{...i,ref:t})})});np.displayName=nf;var nh=(0,tp.TL)("PopoverContent.RemoveScroll"),nm=o.forwardRef((e,t)=>{let n=nr(nf,e.__scopePopover),r=o.useRef(null),i=(0,l.s)(t,r),a=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return tk(e)},[]),(0,f.jsx)(t6,{as:nh,allowPinchZoom:!0,children:(0,f.jsx)(ny,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,s.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,s.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ng=o.forwardRef((e,t)=>{let n=nr(nf,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return(0,f.jsx)(ny,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var a,o;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),ny=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=nr(nf,n),g=nt(n);return o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:b()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:b()),v++,()=>{1===v&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),v--}},[]),(0,f.jsx)(_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(m,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,f.jsx)(ti,{"data-state":nb(h.open),role:"dialog",id:h.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nv="PopoverClose";function nb(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(nv,n);return(0,f.jsx)(c.sG.button,{type:"button",...r,ref:t,onClick:(0,s.m)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=nv,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nt(n);return(0,f.jsx)(ts,{...i,...r,ref:t})}).displayName="PopoverArrow";var nw=ni,nk=ns,nx=nd,n_=np},6081:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2115),i=n(5155);function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let l=t=>{let{scope:n,children:a,...l}=t,u=n?.[e]?.[s]||o,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||o,u=r.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},6101:(e,t,n)=>{"use strict";n.d(t,{s:()=>o,t:()=>a});var r=n(2115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function o(...e){return r.useCallback(a(...e),e)}},6301:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var w,k=[];for(v(k);w=function(){var e=p(),n=y(i);if(n){if(b(),!y(a))return g("property missing ':'");var r=y(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(s),l}}();)!1!==w&&(k.push(w),v(k));return k}},6474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7013:(e,t,n)=>{"use strict";let r,i;n.d(t,{mD:()=>tn,Z9:()=>ta,n_:()=>to,hK:()=>e0,$C:()=>e1,_Z:()=>e8,hd:()=>e7,N8:()=>e6,ZZ:()=>e3,k5:()=>e5});var a,o,s,l,u=n(9143);class c extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function d(e){}class f extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=d,onError:n=d,onRetry:r=d,onComment:i}=e,a="",o=!0,s,l="",u="";function f(e){if(""===e)return void(l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(`
24
+ })));`),t.write(`newResult[${I.UQ(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),r=n(r,l);else{r.value={};let e=i.shape;for(let t of i.keys){let n=e[t],i=n._zod.run({value:d[t],issues:[]},l),a="optional"===n._zod.optin&&"optional"===n._zod.optout;i instanceof Promise?f.push(i.then(e=>a?eN(e,r,t,d):ez(e,r,t))):a?eN(i,r,t,d):ez(i,r,t)}}if(!c)return f.length?Promise.all(f).then(()=>r):r;let p=[],h=i.keySet,m=c._zod,g=m.def.type;for(let e of Object.keys(d)){if(h.has(e))continue;if("never"===g){p.push(e);continue}let t=m.run({value:d[e],issues:[]},l);t instanceof Promise?f.push(t.then(t=>ez(t,r,e))):ez(t,r,e)}return(p.length&&r.issues.push({code:"unrecognized_keys",keys:p,input:d,inst:e}),f.length)?Promise.all(f).then(()=>r):r}});function eL(e,t,n,i){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>I.iR(e,i,r.$W())))}),t}let ej=r.xI("$ZodUnion",(e,t)=>{X.init(e,t),I.gJ(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),I.gJ(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),I.gJ(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),I.gJ(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>I.p6(e.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>eL(t,n,e,r)):eL(a,n,e,r)}}),eR=r.xI("$ZodDiscriminatedUnion",(e,t)=>{ej.init(e,t);let n=e._zod.parse;I.gJ(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=I.PO(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!I.Gv(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[t.discriminator],inst:e}),i)}}),eF=r.xI("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>e$(e,t,n)):e$(e,i,a)}});function e$(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),I.QH(e))return e;let r=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(I.Qd(t)&&I.Qd(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}let eZ=r.xI("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let a=n.value;if(!I.Qd(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let o=[];if(t.keyType._zod.values){let r,s=t.keyType._zod.values;for(let e of(n.value={},s))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let r=t.valueType._zod.run({value:a[e],issues:[]},i);r instanceof Promise?o.push(r.then(t=>{t.issues.length&&n.issues.push(...I.lQ(e,t.issues)),n.value[e]=t.value})):(r.issues.length&&n.issues.push(...I.lQ(e,r.issues)),n.value[e]=r.value)}for(let e in a)s.has(e)||(r=r??[]).push(e);r&&r.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:r})}else for(let s of(n.value={},Reflect.ownKeys(a))){if("__proto__"===s)continue;let l=t.keyType._zod.run({value:s,issues:[]},i);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(e=>I.iR(e,i,r.$W())),input:s,path:[s],inst:e}),n.value[l.value]=l.value;continue}let u=t.valueType._zod.run({value:a[s],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&n.issues.push(...I.lQ(s,e.issues)),n.value[l.value]=e.value})):(u.issues.length&&n.issues.push(...I.lQ(s,u.issues)),n.value[l.value]=u.value)}return o.length?Promise.all(o).then(()=>n):n}}),eW=r.xI("$ZodEnum",(e,t)=>{X.init(e,t);let n=I.w5(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>I.qQ.has(typeof e)).map(e=>"string"==typeof e?I.$f(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),eU=r.xI("$ZodLiteral",(e,t)=>{X.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?I.$f(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),eH=r.xI("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let i=t.transform(e.value,e);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(t=>(e.value=t,e));if(i instanceof Promise)throw new r.GT;return e.value=i,e}}),eB=r.xI("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),I.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${I.p6(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),eV=r.xI("$ZodNullable",(e,t)=>{X.init(e,t),I.gJ(e._zod,"optin",()=>t.innerType._zod.optin),I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),I.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${I.p6(e.source)}|null)$`):void 0}),I.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eq=r.xI("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eY(e,t)):eY(r,t)}});function eY(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let eJ=r.xI("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eG=r.xI("$ZodNonOptional",(e,t)=>{X.init(e,t),I.gJ(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eK(t,e)):eK(i,e)}});function eK(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let eX=r.xI("$ZodCatch",(e,t)=>{X.init(e,t),e._zod.optin="optional",I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),I.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>I.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>I.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)}}),eQ=r.xI("$ZodPipe",(e,t)=>{X.init(e,t),I.gJ(e._zod,"values",()=>t.in._zod.values),I.gJ(e._zod,"optin",()=>t.in._zod.optin),I.gJ(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>e0(e,t,n)):e0(r,t,n)}});function e0(e,t,n){return I.QH(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}let e1=r.xI("$ZodReadonly",(e,t)=>{X.init(e,t),I.gJ(e._zod,"propValues",()=>t.innerType._zod.propValues),I.gJ(e._zod,"values",()=>t.innerType._zod.values),I.gJ(e._zod,"optin",()=>t.innerType._zod.optin),I.gJ(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e2):e2(r)}});function e2(e){return e.value=Object.freeze(e.value),e}let e4=r.xI("$ZodLazy",(e,t)=>{X.init(e,t),I.gJ(e._zod,"innerType",()=>t.getter()),I.gJ(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),I.gJ(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),I.gJ(e._zod,"optin",()=>e._zod.innerType._zod.optin),I.gJ(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),e9=r.xI("$ZodCustom",(e,t)=>{M.init(e,t),X.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>e5(t,n,r,e));e5(i,n,r,e)}});function e5(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(I.sn(e))}}var e3=n(9985);function e6(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I.A2(t)})}function e8(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I.A2(t)})}function e7(e,t){return new N({check:"less_than",...I.A2(t),value:e,inclusive:!1})}function te(e,t){return new N({check:"less_than",...I.A2(t),value:e,inclusive:!0})}function tt(e,t){return new D({check:"greater_than",...I.A2(t),value:e,inclusive:!1})}function tn(e,t){return new D({check:"greater_than",...I.A2(t),value:e,inclusive:!0})}function tr(e,t){return new L({check:"multiple_of",...I.A2(t),value:e})}function ti(e,t){return new R({check:"max_length",...I.A2(t),maximum:e})}function ta(e,t){return new F({check:"min_length",...I.A2(t),minimum:e})}function to(e,t){return new $({check:"length_equals",...I.A2(t),length:e})}function ts(e){return new Y({check:"overwrite",tx:e})}let tl=r.xI("ZodISODateTime",(e,t)=>{ef.init(e,t),ty.init(e,t)}),tu=r.xI("ZodISODate",(e,t)=>{ep.init(e,t),ty.init(e,t)}),tc=r.xI("ZodISOTime",(e,t)=>{eh.init(e,t),ty.init(e,t)}),td=r.xI("ZodISODuration",(e,t)=>{em.init(e,t),ty.init(e,t)});var tf=n(7486);let tp=r.xI("ZodType",(e,t)=>(X.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>I.o8(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>tf.qg(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>tf.xL(e,t,n),e.parseAsync=async(t,n)=>tf.EJ(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>tf.bp(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(function(e,t={}){return new ng({type:"custom",check:"custom",fn:e,...I.A2(t)})}(t,n)),e.superRefine=t=>e.check(function(e){let t=function(e){let t=new M({check:"custom"});return t._zod.check=e,t}(n=>(n.addIssue=e=>{"string"==typeof e?n.issues.push(I.sn(e,n.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),n.issues.push(I.sn(e)))},e(n.value,n)));return t}(t)),e.overwrite=t=>e.check(ts(t)),e.optional=()=>ni(e),e.nullable=()=>no(e),e.nullish=()=>ni(no(e)),e.nonoptional=t=>{var n,r;return n=e,r=t,new nu({type:"nonoptional",innerType:n,...I.A2(r)})},e.array=()=>tK(e),e.or=t=>t4([e,t]),e.and=t=>new t3({type:"intersection",left:e,right:t}),e.transform=t=>nf(e,new nn({type:"transform",transform:t})),e.default=t=>(function(e,t){return new ns({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.prefault=t=>(function(e,t){return new nl({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.catch=t=>(function(e,t){return new nc({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>nf(e,t),e.readonly=()=>new np({type:"readonly",innerType:e}),e.describe=t=>{let n=e.clone();return e3.fd.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>e3.fd.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return e3.fd.get(e);let n=e.clone();return e3.fd.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),th=r.xI("_ZodString",(e,t)=>{Q.init(e,t),tp.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new W({check:"string_format",format:"regex",...I.A2(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new B({check:"string_format",format:"includes",...I.A2(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new V({check:"string_format",format:"starts_with",...I.A2(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new q({check:"string_format",format:"ends_with",...I.A2(t),suffix:e})}(...t)),e.min=(...t)=>e.check(ta(...t)),e.max=(...t)=>e.check(ti(...t)),e.length=(...t)=>e.check(to(...t)),e.nonempty=(...t)=>e.check(ta(1,...t)),e.lowercase=t=>e.check(new U({check:"string_format",format:"lowercase",...I.A2(t)})),e.uppercase=t=>e.check(new H({check:"string_format",format:"uppercase",...I.A2(t)})),e.trim=()=>e.check(ts(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return ts(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(ts(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(ts(e=>e.toUpperCase()))}),tm=r.xI("ZodString",(e,t)=>{Q.init(e,t),th.init(e,t),e.email=t=>e.check(new tv({type:"string",format:"email",check:"string_format",abort:!1,...I.A2(t)})),e.url=t=>e.check(new tk({type:"string",format:"url",check:"string_format",abort:!1,...I.A2(t)})),e.jwt=t=>e.check(new tj({type:"string",format:"jwt",check:"string_format",abort:!1,...I.A2(t)})),e.emoji=t=>e.check(new tx({type:"string",format:"emoji",check:"string_format",abort:!1,...I.A2(t)})),e.guid=t=>e.check(e6(tb,t)),e.uuid=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,...I.A2(t)})),e.uuidv4=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I.A2(t)})),e.uuidv6=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I.A2(t)})),e.uuidv7=t=>e.check(new tw({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I.A2(t)})),e.nanoid=t=>e.check(new t_({type:"string",format:"nanoid",check:"string_format",abort:!1,...I.A2(t)})),e.guid=t=>e.check(e6(tb,t)),e.cuid=t=>e.check(new tS({type:"string",format:"cuid",check:"string_format",abort:!1,...I.A2(t)})),e.cuid2=t=>e.check(new tE({type:"string",format:"cuid2",check:"string_format",abort:!1,...I.A2(t)})),e.ulid=t=>e.check(new tC({type:"string",format:"ulid",check:"string_format",abort:!1,...I.A2(t)})),e.base64=t=>e.check(e8(tz,t)),e.base64url=t=>e.check(new tD({type:"string",format:"base64url",check:"string_format",abort:!1,...I.A2(t)})),e.xid=t=>e.check(new tA({type:"string",format:"xid",check:"string_format",abort:!1,...I.A2(t)})),e.ksuid=t=>e.check(new tT({type:"string",format:"ksuid",check:"string_format",abort:!1,...I.A2(t)})),e.ipv4=t=>e.check(new tO({type:"string",format:"ipv4",check:"string_format",abort:!1,...I.A2(t)})),e.ipv6=t=>e.check(new tP({type:"string",format:"ipv6",check:"string_format",abort:!1,...I.A2(t)})),e.cidrv4=t=>e.check(new tI({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I.A2(t)})),e.cidrv6=t=>e.check(new tM({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I.A2(t)})),e.e164=t=>e.check(new tL({type:"string",format:"e164",check:"string_format",abort:!1,...I.A2(t)})),e.datetime=t=>e.check(function(e){return new tl({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I.A2(e)})}(t)),e.date=t=>e.check(function(e){return new tu({type:"string",format:"date",check:"string_format",...I.A2(e)})}(t)),e.time=t=>e.check(function(e){return new tc({type:"string",format:"time",check:"string_format",precision:null,...I.A2(e)})}(t)),e.duration=t=>e.check(function(e){return new td({type:"string",format:"duration",check:"string_format",...I.A2(e)})}(t))});function tg(e){return new tm({type:"string",...I.A2(e)})}let ty=r.xI("ZodStringFormat",(e,t)=>{ee.init(e,t),th.init(e,t)}),tv=r.xI("ZodEmail",(e,t)=>{er.init(e,t),ty.init(e,t)}),tb=r.xI("ZodGUID",(e,t)=>{et.init(e,t),ty.init(e,t)}),tw=r.xI("ZodUUID",(e,t)=>{en.init(e,t),ty.init(e,t)}),tk=r.xI("ZodURL",(e,t)=>{ei.init(e,t),ty.init(e,t)}),tx=r.xI("ZodEmoji",(e,t)=>{ea.init(e,t),ty.init(e,t)}),t_=r.xI("ZodNanoID",(e,t)=>{eo.init(e,t),ty.init(e,t)}),tS=r.xI("ZodCUID",(e,t)=>{es.init(e,t),ty.init(e,t)}),tE=r.xI("ZodCUID2",(e,t)=>{el.init(e,t),ty.init(e,t)}),tC=r.xI("ZodULID",(e,t)=>{eu.init(e,t),ty.init(e,t)}),tA=r.xI("ZodXID",(e,t)=>{ec.init(e,t),ty.init(e,t)}),tT=r.xI("ZodKSUID",(e,t)=>{ed.init(e,t),ty.init(e,t)}),tO=r.xI("ZodIPv4",(e,t)=>{eg.init(e,t),ty.init(e,t)}),tP=r.xI("ZodIPv6",(e,t)=>{ey.init(e,t),ty.init(e,t)}),tI=r.xI("ZodCIDRv4",(e,t)=>{ev.init(e,t),ty.init(e,t)}),tM=r.xI("ZodCIDRv6",(e,t)=>{eb.init(e,t),ty.init(e,t)}),tz=r.xI("ZodBase64",(e,t)=>{ek.init(e,t),ty.init(e,t)});function tN(e){return e8(tz,e)}let tD=r.xI("ZodBase64URL",(e,t)=>{ex.init(e,t),ty.init(e,t)}),tL=r.xI("ZodE164",(e,t)=>{e_.init(e,t),ty.init(e,t)}),tj=r.xI("ZodJWT",(e,t)=>{eS.init(e,t),ty.init(e,t)}),tR=r.xI("ZodNumber",(e,t)=>{eE.init(e,t),tp.init(e,t),e.gt=(t,n)=>e.check(tt(t,n)),e.gte=(t,n)=>e.check(tn(t,n)),e.min=(t,n)=>e.check(tn(t,n)),e.lt=(t,n)=>e.check(e7(t,n)),e.lte=(t,n)=>e.check(te(t,n)),e.max=(t,n)=>e.check(te(t,n)),e.int=t=>e.check(tZ(t)),e.safe=t=>e.check(tZ(t)),e.positive=t=>e.check(tt(0,t)),e.nonnegative=t=>e.check(tn(0,t)),e.negative=t=>e.check(e7(0,t)),e.nonpositive=t=>e.check(te(0,t)),e.multipleOf=(t,n)=>e.check(tr(t,n)),e.step=(t,n)=>e.check(tr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function tF(e){return new tR({type:"number",checks:[],...I.A2(e)})}let t$=r.xI("ZodNumberFormat",(e,t)=>{eC.init(e,t),tR.init(e,t)});function tZ(e){return new t$({type:"number",check:"number_format",abort:!1,format:"safeint",...I.A2(e)})}let tW=r.xI("ZodBoolean",(e,t)=>{eA.init(e,t),tp.init(e,t)});function tU(e){return new tW({type:"boolean",...I.A2(e)})}let tH=r.xI("ZodNull",(e,t)=>{eT.init(e,t),tp.init(e,t)});function tB(e){return new tH({type:"null",...I.A2(e)})}let tV=r.xI("ZodUnknown",(e,t)=>{eO.init(e,t),tp.init(e,t)});function tq(){return new tV({type:"unknown"})}let tY=r.xI("ZodNever",(e,t)=>{eP.init(e,t),tp.init(e,t)});function tJ(e){return new tY({type:"never",...I.A2(e)})}let tG=r.xI("ZodArray",(e,t)=>{eM.init(e,t),tp.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(ta(t,n)),e.nonempty=t=>e.check(ta(1,t)),e.max=(t,n)=>e.check(ti(t,n)),e.length=(t,n)=>e.check(to(t,n)),e.unwrap=()=>e.element});function tK(e,t){return new tG({type:"array",element:e,...I.A2(t)})}let tX=r.xI("ZodObject",(e,t)=>{eD.init(e,t),tp.init(e,t),I.gJ(e,"shape",()=>t.shape),e.keyof=()=>(function(e,t){return new t7({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...I.A2(void 0)})})(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:tq()}),e.loose=()=>e.clone({...e._zod.def,catchall:tq()}),e.strict=()=>e.clone({...e._zod.def,catchall:tJ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>I.X$(e,t),e.merge=t=>I.h1(e,t),e.pick=t=>I.Up(e,t),e.omit=t=>I.cJ(e,t),e.partial=(...t)=>I.OH(nr,e,t[0]),e.required=(...t)=>I.mw(nu,e,t[0])});function tQ(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},...I.A2(t)})}function t0(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},catchall:tJ(),...I.A2(t)})}function t1(e,t){return new tX({type:"object",get shape(){return I.Vy(this,"shape",{...e}),this.shape},catchall:tq(),...I.A2(t)})}let t2=r.xI("ZodUnion",(e,t)=>{ej.init(e,t),tp.init(e,t),e.options=t.options});function t4(e,t){return new t2({type:"union",options:e,...I.A2(t)})}let t9=r.xI("ZodDiscriminatedUnion",(e,t)=>{t2.init(e,t),eR.init(e,t)});function t5(e,t,n){return new t9({type:"union",options:t,discriminator:e,...I.A2(n)})}let t3=r.xI("ZodIntersection",(e,t)=>{eF.init(e,t),tp.init(e,t)}),t6=r.xI("ZodRecord",(e,t)=>{eZ.init(e,t),tp.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function t8(e,t,n){return new t6({type:"record",keyType:e,valueType:t,...I.A2(n)})}let t7=r.xI("ZodEnum",(e,t)=>{eW.init(e,t),tp.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new t7({...t,checks:[],...I.A2(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new t7({...t,checks:[],...I.A2(r),entries:i})}}),ne=r.xI("ZodLiteral",(e,t)=>{eU.init(e,t),tp.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nt(e,t){return new ne({type:"literal",values:Array.isArray(e)?e:[e],...I.A2(t)})}let nn=r.xI("ZodTransform",(e,t)=>{eH.init(e,t),tp.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{"string"==typeof r?n.issues.push(I.sn(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!0),n.issues.push(I.sn(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),nr=r.xI("ZodOptional",(e,t)=>{eB.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ni(e){return new nr({type:"optional",innerType:e})}let na=r.xI("ZodNullable",(e,t)=>{eV.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function no(e){return new na({type:"nullable",innerType:e})}let ns=r.xI("ZodDefault",(e,t)=>{eq.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),nl=r.xI("ZodPrefault",(e,t)=>{eJ.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nu=r.xI("ZodNonOptional",(e,t)=>{eG.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nc=r.xI("ZodCatch",(e,t)=>{eX.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nd=r.xI("ZodPipe",(e,t)=>{eQ.init(e,t),tp.init(e,t),e.in=t.in,e.out=t.out});function nf(e,t){return new nd({type:"pipe",in:e,out:t})}let np=r.xI("ZodReadonly",(e,t)=>{e1.init(e,t),tp.init(e,t)}),nh=r.xI("ZodLazy",(e,t)=>{e4.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.getter()});function nm(e){return new nh({type:"lazy",getter:e})}let ng=r.xI("ZodCustom",(e,t)=>{e9.init(e,t),tp.init(e,t)});function ny(e,t){let n=I.A2(t);return n.abort??(n.abort=!0),new ng({type:"custom",check:"custom",fn:e??(()=>!0),...n})}function nv(e,t={error:`Input not instance of ${e.name}`}){let n=new ng({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...I.A2(t)});return n._zod.bag.Class=e,n}},3360:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(o(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&o(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},3386:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},3655:(e,t,n)=>{"use strict";n.d(t,{hO:()=>l,sG:()=>s});var r=n(2115),i=n(7650),a=n(9708),o=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},3724:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7924)),i=n(1300);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},3793:(e,t,n)=>{"use strict";n.d(t,{JM:()=>l,Kd:()=>s,Wk:()=>u,a$:()=>o});var r=n(4193),i=n(4398);let a=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,i.k8,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},o=(0,r.xI)("$ZodError",a),s=(0,r.xI)("$ZodError",a,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function u(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}},4011:(e,t,n)=>{"use strict";n.d(t,{H4:()=>x,bL:()=>k});var r=n(2115),i=n(6081),a=n(9033),o=n(2712),s=n(3655),l=n(1414);function u(){return()=>{}}var c=n(5155),d="Avatar",[f,p]=(0,i.A)(d),[h,m]=f(d),g=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...i}=e,[a,o]=r.useState("idle");return(0,c.jsx)(h,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:(0,c.jsx)(s.sG.span,{...i,ref:t})})});g.displayName=d;var y="AvatarImage";r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:i,onLoadingStatusChange:d=()=>{},...f}=e,p=m(y,n),h=function(e,t){let{referrerPolicy:n,crossOrigin:i}=t,a=(0,l.useSyncExternalStore)(u,()=>!0,()=>!1),s=r.useRef(null),c=a?(s.current||(s.current=new window.Image),s.current):null,[d,f]=r.useState(()=>w(c,e));return(0,o.N)(()=>{f(w(c,e))},[c,e]),(0,o.N)(()=>{let e=e=>()=>{f(e)};if(!c)return;let t=e("loaded"),r=e("error");return c.addEventListener("load",t),c.addEventListener("error",r),n&&(c.referrerPolicy=n),"string"==typeof i&&(c.crossOrigin=i),()=>{c.removeEventListener("load",t),c.removeEventListener("error",r)}},[c,i,n]),d}(i,f),g=(0,a.c)(e=>{d(e),p.onImageLoadingStatusChange(e)});return(0,o.N)(()=>{"idle"!==h&&g(h)},[h,g]),"loaded"===h?(0,c.jsx)(s.sG.img,{...f,ref:t,src:i}):null}).displayName=y;var v="AvatarFallback",b=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:i,...a}=e,o=m(v,n),[l,u]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(e)}},[i]),l&&"loaded"!==o.imageLoadingStatus?(0,c.jsx)(s.sG.span,{...a,ref:t}):null});function w(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}b.displayName=v;var k=g,x=b},4056:(e,t,n)=>{"use strict";n.d(t,{UC:()=>en,B8:()=>ee,bL:()=>Q,l9:()=>et});var r,i=n(2115),a=n(5185),o=n(6081);function s(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function l(e,t){var n=s(e,t,"get");return n.get?n.get.call(e):n.value}function u(e,t,n){var r=s(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var c=n(6101),d=n(9708),f=n(5155),p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?l(this,r)[l(this,r).indexOf(e)]=e:l(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let i,a=this.has(t),o=l(this,r).length,s=m(e),u=s>=0?s:o+s,c=u<0||u>=o?-1:u;if(c===this.size||a&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!a;s<0&&u++;let f=[...l(this,r)],p=!1;for(let e=u;e<d;e++)if(u===e){let r=f[e];f[e]===t&&(r=f[e+1]),a&&this.delete(t),i=this.get(r),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=l(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=l(this,r).indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=l(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=l(this,r).indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return u(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&l(this,r).splice(l(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(l(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(l(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return l(this,r).indexOf(e)}keyAt(e){return h(l(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,a=0,o=null!=i?i:this.at(0);for(let e of this)o=0===a&&1===t.length?e:Reflect.apply(r,this,[o,e,a,this]),a++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,a=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);a=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[a,n,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,r,{writable:!0,value:void 0}),u(this,r,[...super.keys()]),p.set(this,!0)}};var g=n(1285),y=n(3655),v=n(9033),b=n(5845),w=n(4315),k="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[S,E,C]=function(e){let t=e+"CollectionProvider",[n,r]=(0,o.A)(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,f.jsx)(a,{scope:t,itemMap:o,collectionRef:r,children:n})};l.displayName=t;let u=e+"CollectionSlot",p=(0,d.TL)(u),h=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=s(u,n),a=(0,c.s)(t,i.collectionRef);return(0,f.jsx)(p,{ref:a,children:r})});h.displayName=u;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,d.TL)(m),v=i.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=i.useRef(null),l=(0,c.s)(t,o),u=s(m,n);return i.useEffect(()=>(u.itemMap.set(o,{ref:o,...a}),()=>void u.itemMap.delete(o))),(0,f.jsx)(y,{...{[g]:""},ref:l,children:r})});return v.displayName=m,[{Provider:l,Slot:h,ItemSlot:v},function(t){let n=s(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(_),[A,T]=(0,o.A)(_,[C]),[O,P]=A(_),I=i.forwardRef((e,t)=>(0,f.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(M,{...e,ref:t})})}));I.displayName=_;var M=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...m}=e,g=i.useRef(null),S=(0,c.s)(t,g),C=(0,w.jH)(s),[A,T]=(0,b.i)({prop:l,defaultProp:null!=u?u:null,onChange:d,caller:_}),[P,I]=i.useState(!1),M=(0,v.c)(p),z=E(n),N=i.useRef(!1),[D,j]=i.useState(0);return i.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(k,M),()=>e.removeEventListener(k,M)},[M]),(0,f.jsx)(O,{scope:n,orientation:r,dir:C,loop:o,currentTabStopId:A,onItemFocus:i.useCallback(e=>T(e),[T]),onItemShiftTab:i.useCallback(()=>I(!0),[]),onFocusableItemAdd:i.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>j(e=>e-1),[]),children:(0,f.jsx)(y.sG.div,{tabIndex:P||0===D?-1:0,"data-orientation":r,...m,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(k,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);L([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),h)}}N.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>I(!1))})})}),z="RovingFocusGroupItem",N=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...u}=e,c=(0,g.B)(),d=s||c,p=P(z,n),h=p.currentTabStopId===d,m=E(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=p;return i.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),(0,f.jsx)(S.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:(0,f.jsx)(y.sG.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>L(n))}}),children:"function"==typeof l?l({isCurrentTabStop:h,hasTabStop:null!=w}):l})})});N.displayName=z;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function L(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var j=n(8905),R="Tabs",[F,$]=(0,o.A)(R,[T]),Z=T(),[W,U]=F(R),H=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=(0,w.jH)(s),[d,p]=(0,b.i)({prop:r,onChange:i,defaultProp:null!=a?a:"",caller:R});return(0,f.jsx)(W,{scope:n,baseId:(0,g.B)(),value:d,onValueChange:p,orientation:o,dir:c,activationMode:l,children:(0,f.jsx)(y.sG.div,{dir:c,"data-orientation":o,...u,ref:t})})});H.displayName=R;var B="TabsList",V=i.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=U(B,n),o=Z(n);return(0,f.jsx)(I,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(y.sG.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});V.displayName=B;var q="TabsTrigger",Y=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=U(q,n),l=Z(n),u=K(s.baseId,r),c=X(s.baseId,r),d=r===s.value;return(0,f.jsx)(N,{asChild:!0,...l,focusable:!i,active:d,children:(0,f.jsx)(y.sG.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,a.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;d||i||!e||s.onValueChange(r)})})})});Y.displayName=q;var J="TabsContent",G=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:a,children:o,...s}=e,l=U(J,n),u=K(l.baseId,r),c=X(l.baseId,r),d=r===l.value,p=i.useRef(d);return i.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(j.C,{present:a||d,children:n=>{let{present:r}=n;return(0,f.jsx)(y.sG.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&o})}})});function K(e,t){return"".concat(e,"-trigger-").concat(t)}function X(e,t){return"".concat(e,"-content-").concat(t)}G.displayName=J;var Q=H,ee=V,et=Y,en=G},4093:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},4193:(e,t,n)=>{"use strict";function r(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),o.prototype)a in n||Object.defineProperty(n,a,{value:o.prototype[a].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}function o(e){var t;let i=n?.Parent?new a:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}n.d(t,{$W:()=>o,GT:()=>i,cr:()=>a,xI:()=>r}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let a={};function o(e){return e&&Object.assign(a,e),a}},4315:(e,t,n)=>{"use strict";n.d(t,{jH:()=>a});var r=n(2115);n(5155);var i=r.createContext(void 0);function a(e){let t=r.useContext(i);return e||t||"ltr"}},4392:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},4398:(e,t,n)=>{"use strict";function r(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function i(e,t){return"bigint"==typeof t?t.toString():t}function a(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function o(e){return null==e}function s(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function u(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function c(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function d(e){return JSON.stringify(e)}n.d(t,{$f:()=>y,A2:()=>b,Gv:()=>p,LG:()=>l,NM:()=>w,OH:()=>C,PO:()=>a,QH:()=>T,Qd:()=>m,Rc:()=>M,UQ:()=>d,Up:()=>x,Vy:()=>c,X$:()=>S,cJ:()=>_,cl:()=>o,gJ:()=>u,gx:()=>f,h1:()=>E,hI:()=>h,iR:()=>I,k8:()=>i,lQ:()=>O,mw:()=>A,o8:()=>v,p6:()=>s,qQ:()=>g,sn:()=>z,w5:()=>r,zH:()=>k});let f=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let h=a(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function m(e){if(!1===p(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==p(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}let g=new Set(["string","number","symbol"]);function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function w(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let k={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function x(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return v(e,{...e._zod.def,shape:n,checks:[]})}function _(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return v(e,{...e._zod.def,shape:n,checks:[]})}function S(e,t){if(!m(t))throw Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return c(this,"shape",n),n},checks:[]};return v(e,n)}function E(e,t){return v(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return c(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function C(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return v(t,{...t._zod.def,shape:i,checks:[]})}function A(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return v(t,{...t._zod.def,shape:i,checks:[]})}function T(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function O(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function P(e){return"string"==typeof e?e:e?.message}function I(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=P(e.inst?._zod.def?.error?.(e))??P(t?.error?.(e))??P(n.customError?.(e))??P(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function M(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function z(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}},4416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4423:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(5490),i=n(9447);function a(e,t){var n,a,o,s,l,u,c,d;let f=(0,r.q)(),p=null!=(d=null!=(c=null!=(u=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(a=t.locale)||null==(n=a.options)?void 0:n.weekStartsOn)?u:f.weekStartsOn)?c:null==(s=f.locale)||null==(o=s.options)?void 0:o.weekStartsOn)?d:0,h=(0,i.a)(e,null==t?void 0:t.in),m=h.getDay();return h.setDate(h.getDate()-(7*(m<p)+m-p)),h.setHours(0,0,0,0),h}},4581:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2556);function i(e,t,n,i){let a=i?i-1:1/0,o=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(s){return(0,r.On)(s)&&o++<a?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},4823:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{A:()=>ez});var i=n(4093),a=n(2556),o=n(1922),s=n(7915);let l="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function f(e){this.config.exit.autolinkProtocol.call(this,e)}function p(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function h(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,s.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,o.VG)(e,"text",l);function l(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,v]],{ignore:["link","linkReference"]})}function y(e,t,n,i,a){let o="";if(!b(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=r(e,"("),o=r(e,")");for(;-1!==i&&a>o;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),o++;return[e,n]}(n+i);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function v(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.Ny)(n)||(0,a.es)(n))&&(!t||47!==n)}var w=n(3386);function k(){this.buffer()}function x(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _(){this.buffer()}function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function E(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,w.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C(e){this.exit(e)}function A(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,w.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function T(e){this.exit(e)}function O(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function P(e,t,n){return 0===t?e:I(e,t,n)}function I(e,t,n){return(n?"":" ")+e}O.peek=function(){return"["};let M=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function z(e){this.enter({type:"delete",children:[]},e)}function N(e){this.exit(e)}function D(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function L(e){return e.length}function j(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}D.peek=function(){return"~"};var R=n(9535);n(8428);n(4392);function F(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}F.peek=function(){return"`"};(0,s.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let $={inlineCode:F,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),u}};function Z(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function W(e){this.exit(e),this.data.inTable=void 0}function U(e){this.enter({type:"tableRow",children:[]},e)}function H(e){this.exit(e)}function B(e){this.enter({type:"tableCell",children:[]},e)}function V(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,q));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function q(e,t){return"|"===t?t:e}function Y(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function J(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function G(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=$.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}var K=n(9381);let X={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},Q={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(et,u,l)(t):null===t||(0,a.Ee)(t)||(0,a.Ny)(t)||45!==t&&(0,a.es)(t)?u(t):(o=!0,e.consume(t),s)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function u(e){return i||r||!o?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(et,t,o)(s):null===s||(0,a.Ee)(s)||(0,a.Ny)(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},et={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||(0,a.Ee)(s)||(0,a.Ny)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,a.Ee)(e)||(0,a.Ny)(e)?t(e):r(e)}function o(t){return(0,a.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},en={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.lV)(e)?n(e):t(e)}},partial:!0},er={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!el.call(r,r.previous)||ef(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(X,e.attempt(Q,e.attempt(ee,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:el},ei={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&eu.call(r,r.previous)&&!ef(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,a.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),o)?u:(o=!0,l):n(t)}function u(t){return null===t||(0,a.JQ)(t)||(0,a.Ee)(t)||(0,a.Ny)(t)||(0,a.es)(t)?n(t):e.attempt(Q,e.attempt(ee,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eu},ea={name:"emailAutolink",tokenize:function(e,t,n){let r,i,o=this;return function(t){return!ed(t)||!ec.call(o,o.previous)||ef(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ed(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(en,u,l)(t):45===t||95===t||(0,a.lV)(t)?(i=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),r=!0,s}function u(s){return i&&r&&(0,a.CW)(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:ec},eo={},es=48;for(;es<123;)eo[es]=ea,58==++es?es=65:91===es&&(es=97);function el(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.Ee)(e)}function eu(e){return!(0,a.CW)(e)}function ec(e){return!(47===e||ed(e))}function ed(e){return 43===e||45===e||46===e||95===e||(0,a.lV)(e)}function ef(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eo[43]=ea,eo[45]=ea,eo[46]=ea,eo[95]=ea,eo[72]=[ea,ei],eo[104]=[ea,ei],eo[87]=[ea,er],eo[119]=[ea,er];var ep=n(5333),eh=n(4581);let em={tokenize:function(e,t,n){let r=this;return(0,eh.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eg(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=(0,w.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function ey(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function ev(e,t,n){let r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(s>999||93===l&&!r||null===l||91===l||(0,a.Ee)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,w.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,a.Ee)(l)||(r=!0),s++,e.consume(l),92===l?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function eb(e,t,n){let r,i,o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!i||null===t||91===t||(0,a.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,w.B)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return(0,a.Ee)(t)||(i=!0),l++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,eh.N)(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function ew(e,t,n){return e.check(ep.B,t,e.attempt(em,t,n))}function ek(e){e.exit("gfmFootnoteDefinition")}var ex=n(1603),e_=n(1877);class eS{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function eE(e,t,n){let r,i=this,o=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:l;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function l(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),u(n)}function u(t){return null===t?n(t):(0,a.HP)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):(0,a.On)(t)?(0,eh.N)(e,u,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.On)(t))?(0,eh.N)(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,a.On)(t)?(0,eh.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||(0,a.HP)(t)?v(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.On)(t)?(0,eh.N)(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return p(i);if(null===i||(0,a.HP)(i))return r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,a.HP)(n)?(e.exit("tableRow"),t(n)):(0,a.On)(n)?(0,eh.N)(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function eC(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new eS;for(;++a<e.length;){let p=e[a],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(eT(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(a,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=eA(f,t,l,s,void 0,i),l=[0,0,0,0]),u[2]=a)):"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(u[0]=u[1],i=eA(f,t,l,s,void 0,i)),u=[(l=u)[1],a,0,0])):"tableHead"===h.type?(c=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(u[0]=u[1],i=eA(f,t,l,s,a,i)):0!==u[1]&&(i=eA(f,t,u,s,a,i)),s=0):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=a)}for(0!==d&&eT(f,t,d,n,r),f.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function eA(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eO(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=eO(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eO(t.events,n[2]),a=eO(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},eO(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eT(e,t,n,r,i){let a=[],o=eO(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function eO(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eP={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,a.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,a.HP)(r)?t(r):(0,a.On)(r)?e.check({tokenize:eI},t,n)(r):n(r)}}};function eI(e,t,n){return(0,eh.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eM={};function ez(e){let t,n=e||eM,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,K.y)([{text:eo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:eb,continuation:{tokenize:ew},exit:ek}},text:{91:{name:"gfmFootnoteCall",tokenize:ev},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:ey}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=(0,R.S)(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,R.S)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,ex.m)(o,o.length,0,(0,e_.W)(s,e.slice(r+1,n),t)),(0,ex.m)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,ex.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:eE,resolveAll:eC}}},{text:{91:eP}}])),a.push([{transforms:[g],enter:{literalAutolink:c,literalAutolinkEmail:d,literalAutolinkHttp:d,literalAutolinkWww:d},exit:{literalAutolink:m,literalAutolinkEmail:h,literalAutolinkHttp:f,literalAutolinkWww:p}},{enter:{gfmFootnoteCallString:k,gfmFootnoteCall:x,gfmFootnoteDefinitionLabelString:_,gfmFootnoteDefinition:S},exit:{gfmFootnoteCallString:E,gfmFootnoteCall:C,gfmFootnoteDefinitionLabelString:A,gfmFootnoteDefinition:T}},{canContainEols:["delete"],enter:{strikethrough:z},exit:{strikethrough:N}},{enter:{table:Z,tableData:B,tableHeader:B,tableRow:U},exit:{codeText:V,table:W,tableData:H,tableHeader:H,tableRow:H}},{exit:{taskListCheckValueChecked:Y,taskListCheckValueUnchecked:Y,paragraph:J}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:l,notInConstruct:u}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?I:P))),s(),o},footnoteReference:O},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:M}],handlers:{delete:D}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=$.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||L,a=[],o=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var d;let o=null==(d=e[c][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[c]=t,s[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)a[f]=j(r[f]);else{let e=j(r);for(;++f<u;)a[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=a[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[f]&&(l[f]=i),h[f]=i),p[f]=o}o.splice(1,0,p),s.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=s[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[f]-(t[f]||0),n=a[f];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:G}}]})}},5185:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},5333:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(4581),i=n(2556);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},5339:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},5490:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let r={};function i(){return r}},5657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},5703:(e,t,n)=>{"use strict";n.d(t,{_P:()=>a,my:()=>r,w4:()=>i});let r=6048e5,i=864e5,a=Symbol.for("constructDateFrom")},5736:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("message-square-plus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]])},5845:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r,i=n(2115),a=n(2712),o=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||a.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),s=i.useRef(t);return o(()=>{s.current=t},[t]),i.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},5933:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:()=>r})},6059:(e,t,n)=>{"use strict";n.d(t,{UC:()=>n_,ZL:()=>nx,bL:()=>nw,l9:()=>nk});var r,i,a,o=n(2115),s=n(5185),l=n(6101),u=n(6081),c=n(3655),d=n(9033),f=n(5155),p="dismissableLayer.update",h=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:b,onDismiss:w,...k}=e,x=o.useContext(h),[_,S]=o.useState(null),E=null!=(r=null==_?void 0:_.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,C]=o.useState({}),A=(0,l.s)(t,e=>S(e)),T=Array.from(x.layers),[O]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),P=T.indexOf(O),I=_?T.indexOf(_):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,z=I>=P,N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));z&&!n&&(null==m||m(e),null==b||b(e),e.defaultPrevented||null==w||w())},E),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},E);return!function(e,t=globalThis?.document){let n=(0,d.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{I===x.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},E),o.useEffect(()=>{if(_)return a&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(i=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(_)),x.layers.add(_),g(),()=>{a&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=i)}},[_,E,a,x]),o.useEffect(()=>()=>{_&&(x.layers.delete(_),x.layersWithOutsidePointerEventsDisabled.delete(_),g())},[_,x]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,f.jsx)(c.sG.div,{...k,ref:A,style:{pointerEvents:M?z?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,s.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,s.m)(e.onPointerDownCapture,N.onPointerDownCapture)})});function g(){let e=new CustomEvent(p);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:i}=r,a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?(0,c.hO)(a,o):a.dispatchEvent(o)}m.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(h),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(c.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var v=0;function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var w="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},_=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[u,p]=o.useState(null),h=(0,d.c)(i),m=(0,d.c)(a),g=o.useRef(null),y=(0,l.s)(t,e=>p(e)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:C(g.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||C(g.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),o.useEffect(()=>{if(u){A.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(w,x);u.addEventListener(w,h),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(w,h),setTimeout(()=>{let t=new CustomEvent(k,x);u.addEventListener(k,m),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(k,m),A.remove(v)},0)}}},[u,h,m,v]);let b=o.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=S(e);return[E(t,e),E(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&C(a,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,f.jsx)(c.sG.div,{tabIndex:-1,...s,ref:y,onKeyDown:b})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;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 E(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var A=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=T(e,t)).unshift(t)},remove(t){var n;null==(n=(e=T(e,t))[0])||n.resume()}}}();function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(1285);let P=["top","right","bottom","left"],I=Math.min,M=Math.max,z=Math.round,N=Math.floor,D=e=>({x:e,y:e}),L={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function F(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function W(e){return"y"===e?"height":"width"}let U=new Set(["top","bottom"]);function H(e){return U.has(F(e))?"y":"x"}function B(e){return e.replace(/start|end/g,e=>j[e])}let V=["left","right"],q=["right","left"],Y=["top","bottom"],J=["bottom","top"];function G(e){return e.replace(/left|right|bottom|top/g,e=>L[e])}function K(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function X(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 Q(e,t,n){let r,{reference:i,floating:a}=e,o=H(t),s=Z(H(t)),l=W(s),u=F(t),c="y"===o,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-a.width,y:f};break;default:r={x:i.x,y:i.y}}switch($(t)){case"start":r[s]-=p*(n&&c?-1:1);break;case"end":r[s]+=p*(n&&c?-1:1)}return r}let ee=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Q(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=Q(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function et(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=R(t,e),h=K(p),m=s[f?"floating"===d?"reference":"floating":d],g=X(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await (null==a.isElement?void 0:a.isElement(v))&&await (null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=X(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function en(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function er(e){return P.some(t=>e[t]>=0)}let ei=new Set(["left","top"]);async function ea(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=F(n),s=$(n),l="y"===H(n),u=ei.has(o)?-1:1,c=a&&l?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eo(){return"undefined"!=typeof window}function es(e){return ec(e)?(e.nodeName||"").toLowerCase():"#document"}function el(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eu(e){var t;return null==(t=(ec(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ec(e){return!!eo()&&(e instanceof Node||e instanceof el(e).Node)}function ed(e){return!!eo()&&(e instanceof Element||e instanceof el(e).Element)}function ef(e){return!!eo()&&(e instanceof HTMLElement||e instanceof el(e).HTMLElement)}function ep(e){return!!eo()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof el(e).ShadowRoot)}let eh=new Set(["inline","contents"]);function em(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eh.has(i)}let eg=new Set(["table","td","th"]),ey=[":popover-open",":modal"];function ev(e){return ey.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eb=["transform","translate","scale","rotate","perspective"],ew=["transform","translate","scale","rotate","perspective","filter"],ek=["paint","layout","strict","content"];function ex(e){let t=e_(),n=ed(e)?eC(e):e;return eb.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ew.some(e=>(n.willChange||"").includes(e))||ek.some(e=>(n.contain||"").includes(e))}function e_(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eS=new Set(["html","body","#document"]);function eE(e){return eS.has(es(e))}function eC(e){return el(e).getComputedStyle(e)}function eA(e){return ed(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eT(e){if("html"===es(e))return e;let t=e.assignedSlot||e.parentNode||ep(e)&&e.host||eu(e);return ep(t)?t.host:t}function eO(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eT(t);return eE(n)?t.ownerDocument?t.ownerDocument.body:t.body:ef(n)&&em(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=el(i);if(a){let e=eP(o);return t.concat(o,o.visualViewport||[],em(i)?i:[],e&&n?eO(e):[])}return t.concat(i,eO(i,[],n))}function eP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eI(e){let t=eC(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ef(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=z(n)!==a||z(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function eM(e){return ed(e)?e:e.contextElement}function ez(e){let t=eM(e);if(!ef(t))return D(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eI(t),o=(a?z(n.width):n.width)/r,s=(a?z(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let eN=D(0);function eD(e){let t=el(e);return e_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eN}function eL(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=eM(e),s=D(1);t&&(r?ed(r)&&(s=ez(r)):s=ez(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===el(o))&&i)?eD(o):D(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(o){let e=el(o),t=r&&ed(r)?el(r):r,n=e,i=eP(n);for(;i&&r&&t!==n;){let e=ez(i),t=i.getBoundingClientRect(),r=eC(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=o,i=eP(n=el(i))}}return X({width:d,height:f,x:u,y:c})}function ej(e,t){let n=eA(e).scrollLeft;return t?t.left+n:eL(eu(e)).left+n}function eR(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ej(e,r)),y:r.top+t.scrollTop}}let eF=new Set(["absolute","fixed"]);function e$(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=el(e),r=eu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=e_();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=eu(e),n=eA(e),r=e.ownerDocument.body,i=M(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ej(e),s=-n.scrollTop;return"rtl"===eC(r).direction&&(o+=M(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(eu(e));else if(ed(t))r=function(e,t){let n=eL(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ef(e)?ez(e):D(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:i*a.x,y:r*a.y}}(t,n);else{let n=eD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X(r)}function eZ(e){return"static"===eC(e).position}function eW(e,t){if(!ef(e)||"fixed"===eC(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eu(e)===n&&(n=n.ownerDocument.body),n}function eU(e,t){var n;let r=el(e);if(ev(e))return r;if(!ef(e)){let t=eT(e);for(;t&&!eE(t);){if(ed(t)&&!eZ(t))return t;t=eT(t)}return r}let i=eW(e,t);for(;i&&(n=i,eg.has(es(n)))&&eZ(i);)i=eW(i,t);return i&&eE(i)&&eZ(i)&&!ex(i)?r:i||function(e){let t=eT(e);for(;ef(t)&&!eE(t);){if(ex(t))return t;if(ev(t))break;t=eT(t)}return null}(e)||r}let eH=async function(e){let t=this.getOffsetParent||eU,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ef(t),i=eu(t),a="fixed"===n,o=eL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=D(0);if(r||!r&&!a)if(("body"!==es(t)||em(i))&&(s=eA(t)),r){let e=eL(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ej(i));a&&!r&&i&&(l.x=ej(i));let u=!i||r||a?D(0):eR(i,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=eu(r),s=!!t&&ev(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=D(1),c=D(0),d=ef(r);if((d||!d&&!a)&&(("body"!==es(r)||em(o))&&(l=eA(r)),ef(r))){let e=eL(r);u=ez(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!o||d||a?D(0):eR(o,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:eu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?ev(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eO(e,[],!1).filter(e=>ed(e)&&"body"!==es(e)),i=null,a="fixed"===eC(e).position,o=a?eT(e):e;for(;ed(o)&&!eE(o);){let t=eC(o),n=ex(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&eF.has(i.position)||em(o)&&!n&&function e(t,n){let r=eT(t);return!(r===n||!ed(r)||eE(r))&&("fixed"===eC(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=eT(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=e$(t,n,i);return e.top=M(r.top,e.top),e.right=I(r.right,e.right),e.bottom=I(r.bottom,e.bottom),e.left=M(r.left,e.left),e},e$(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eU,getElementRects:eH,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eI(e);return{width:t,height:n}},getScale:ez,isElement:ed,isRTL:function(e){return"rtl"===eC(e).direction}};function eV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eq=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=R(e,t)||{};if(null==u)return{};let d=K(c),f={x:n,y:r},p=Z(H(i)),h=W(p),m=await o.getDimensions(u),g="y"===p,y=g?"clientHeight":"clientWidth",v=a.reference[h]+a.reference[p]-f[p]-a.floating[h],b=f[p]-a.reference[p],w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),k=w?w[y]:0;k&&await (null==o.isElement?void 0:o.isElement(w))||(k=s.floating[y]||a.floating[h]);let x=k/2-m[h]/2-1,_=I(d[g?"top":"left"],x),S=I(d[g?"bottom":"right"],x),E=k-m[h]-S,C=k/2-m[h]/2+(v/2-b/2),A=M(_,I(C,E)),T=!l.arrow&&null!=$(i)&&C!==A&&a.reference[h]/2-(C<_?_:S)-m[h]/2<0,O=T?C<_?C-_:C-E:0;return{[p]:f[p]+O,data:{[p]:A,centerOffset:C-A-O,...T&&{alignmentOffset:O}},reset:T}}});var eY=n(7650),eJ="undefined"!=typeof document?o.useLayoutEffect:function(){};function eG(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eG(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eG(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eK(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eX(e,t){let n=eK(e);return Math.round(t*n)/n}function eQ(e){let t=o.useRef(e);return eJ(()=>{t.current=e}),t}var e0=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,f.jsx)(c.sG.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName="Arrow";var e1=n(2712),e2=n(1275),e4="Popper",[e9,e5]=(0,u.A)(e4),[e3,e6]=e9(e4),e8=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,f.jsx)(e3,{scope:t,anchor:r,onAnchorChange:i,children:n})};e8.displayName=e4;var e7="PopperAnchor",te=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=e6(e7,n),s=o.useRef(null),u=(0,l.s)(t,s);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,f.jsx)(c.sG.div,{...i,ref:u})});te.displayName=e7;var tt="PopperContent",[tn,tr]=e9(tt),ti=o.forwardRef((e,t)=>{var n,r,i,a,s,u,p,h;let{__scopePopper:m,side:g="bottom",sideOffset:y=0,align:v="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:k=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:S="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:A,...T}=e,O=e6(tt,m),[P,z]=o.useState(null),D=(0,l.s)(t,e=>z(e)),[L,j]=o.useState(null),U=(0,e2.X)(L),K=null!=(p=null==U?void 0:U.width)?p:0,X=null!=(h=null==U?void 0:U.height)?h:0,Q="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},eo=Array.isArray(x)?x:[x],es=eo.length>0,el={padding:Q,boundary:eo.filter(tl),altBoundary:es},{refs:ec,floatingStyles:ed,placement:ef,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eG(p,r)||h(r);let[m,g]=o.useState(null),[y,v]=o.useState(null),b=o.useCallback(e=>{e!==_.current&&(_.current=e,g(e))},[]),w=o.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),k=a||m,x=s||y,_=o.useRef(null),S=o.useRef(null),E=o.useRef(d),C=null!=u,A=eQ(u),T=eQ(i),O=eQ(c),P=o.useCallback(()=>{if(!_.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),((e,t,n)=>{let r=new Map,i={platform:eB,...n},a={...i.platform,_c:r};return ee(e,t,{...i,platform:a})})(_.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};I.current&&!eG(E.current,t)&&(E.current=t,eY.flushSync(()=>{f(t)}))})},[p,t,n,T,O]);eJ(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let I=o.useRef(!1);eJ(()=>(I.current=!0,()=>{I.current=!1}),[]),eJ(()=>{if(k&&(_.current=k),x&&(S.current=x),k&&x){if(A.current)return A.current(k,x,P);P()}},[k,x,P,A,C]);let M=o.useMemo(()=>({reference:_,floating:S,setReference:b,setFloating:w}),[b,w]),z=o.useMemo(()=>({reference:k,floating:x}),[k,x]),N=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=eX(z.floating,d.x),r=eX(z.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eK(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,z.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:P,refs:M,elements:z,floatingStyles:N}),[d,P,M,z,N])}({strategy:"fixed",placement:g+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eM(e),d=a||o?[...c?eO(c):[],...eO(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=eu(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;let h=N(d),m=N(i.clientWidth-(c+f)),g={rootMargin:-h+"px "+-m+"px "+-N(i.clientHeight-(d+p))+"px "+-N(c)+"px",threshold:M(0,I(1,l))||1},y=!0;function v(t){let r=t[0].intersectionRatio;if(r!==l){if(!y)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||eV(u,e.getBoundingClientRect())||o(),y=!1}try{r=new IntersectionObserver(v,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),a}(c,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eL(e):null;return u&&function t(){let r=eL(e);m&&!eV(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===C})},elements:{reference:O.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await ea(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}}(e),options:[e,t]}))({mainAxis:y+X,alignmentAxis:b}),k&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=R(e,t),u={x:n,y:r},c=await et(t,l),d=H(F(i)),f=Z(d),p=u[f],h=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=M(n,I(p,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=M(n,I(h,r))}let m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:o}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=R(e,t),c={x:n,y:r},d=H(i),f=Z(d),p=c[f],h=c[d],m=R(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;let e="y"===f?"width":"height",t=ei.has(F(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=o.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}))():void 0,...el}),k&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=R(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let w=F(s),k=H(c),x=F(c)===c,_=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=m||(x||!v?[G(c)]:function(e){let t=G(e);return[B(e),t,B(t)]}(c)),E="none"!==y;!m&&E&&S.push(...function(e,t,n,r){let i=$(e),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?q:V;return t?V:q;case"left":case"right":return t?Y:J;default:return[]}}(F(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(B)))),a}(c,v,y,_));let C=[c,...S],A=await et(t,b),T=[],O=(null==(r=l.flip)?void 0:r.overflows)||[];if(p&&T.push(A[w]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=$(e),i=Z(H(e)),a=W(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=G(o)),[o,G(o)]}(s,u,_);T.push(A[e[0]],A[e[1]])}if(O=[...O,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=C[e];if(t&&("alignment"!==h||k===H(t)||O.every(e=>H(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(a=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(o=O.filter(e=>{if(E){let t=H(e.placement);return t===k||"y"===t}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])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...el}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,a,{placement:o,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=R(e,t),f=await et(t,d),p=F(o),h=$(o),m="y"===H(o),{width:g,height:y}=s.floating;"top"===p||"bottom"===p?(i=p,a=h===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=p,i="end"===h?"top":"bottom");let v=y-f.top-f.bottom,b=g-f.left-f.right,w=I(y-f[i],v),k=I(g-f[a],b),x=!t.middlewareData.shift,_=w,S=k;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=v),x&&!h){let e=M(f.left,0),t=M(f.right,0),n=M(f.top,0),r=M(f.bottom,0);m?S=g-2*(0!==e||0!==t?e+t:M(f.left,f.right)):_=y-2*(0!==n||0!==r?n+r:M(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:_});let E=await l.getDimensions(u.floating);return g!==E.width||y!==E.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...el,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:a,height:o}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),L&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eq({element:n.current,padding:r}).fn(t):{}:n?eq({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:L,padding:w}),tu({arrowWidth:K,arrowHeight:X}),E&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=R(e,t);switch(r){case"referenceHidden":{let e=en(await et(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:er(e)}}}case"escaped":{let e=en(await et(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:er(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...el})]}),[em,eg]=tc(ef),ey=(0,d.c)(A);(0,e1.N)(()=>{ep&&(null==ey||ey())},[ep,ey]);let ev=null==(n=eh.arrow)?void 0:n.x,eb=null==(r=eh.arrow)?void 0:r.y,ew=(null==(i=eh.arrow)?void 0:i.centerOffset)!==0,[ek,ex]=o.useState();return(0,e1.N)(()=>{P&&ex(window.getComputedStyle(P).zIndex)},[P]),(0,f.jsx)("div",{ref:ec.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:ep?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(a=eh.transformOrigin)?void 0:a.x,null==(s=eh.transformOrigin)?void 0:s.y].join(" "),...(null==(u=eh.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(tn,{scope:m,placedSide:em,onArrowChange:j,arrowX:ev,arrowY:eb,shouldHideArrow:ew,children:(0,f.jsx)(c.sG.div,{"data-side":em,"data-align":eg,...T,ref:D,style:{...T.style,animation:ep?void 0:"none"}})})})});ti.displayName=tt;var ta="PopperArrow",to={top:"bottom",right:"left",bottom:"top",left:"right"},ts=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tr(ta,n),a=to[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(e0,{...r,ref:t,style:{...r.style,display:"block"}})})});function tl(e){return null!==e}ts.displayName=ta;var tu=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=tc(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+d/2,y=(null!=(o=null==(i=u.arrow)?void 0:i.y)?o:0)+f/2,v="",b="";return"bottom"===p?(v=c?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===p?(v=c?m:"".concat(g,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(v="".concat(-f,"px"),b=c?m:"".concat(y,"px")):"left"===p&&(v="".concat(l.floating.width+f,"px"),b=c?m:"".concat(y,"px")),{data:{x:v,y:b}}}});function tc(e){let[t,n="center"]=e.split("-");return[t,n]}var td=o.forwardRef((e,t)=>{var n,r;let{container:i,...a}=e,[s,l]=o.useState(!1);(0,e1.N)(()=>l(!0),[]);let u=i||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return u?eY.createPortal((0,f.jsx)(c.sG.div,{...a,ref:t}),u):null});td.displayName="Portal";var tf=n(8905),tp=n(9708),th=n(5845),tm=new WeakMap,tg=new WeakMap,ty={},tv=0,tb=function(e){return e&&(e.host||tb(e.parentNode))},tw=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tb(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ty[n]||(ty[n]=new WeakMap);var a=ty[n],o=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tm.get(e)||0)+1,u=(a.get(e)||0)+1;tm.set(e,l),a.set(e,u),o.push(e),1===l&&i&&tg.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),tv++,function(){o.forEach(function(e){var t=tm.get(e)-1,i=a.get(e)-1;tm.set(e,t),a.set(e,i),t||(tg.has(e)||e.removeAttribute(r),tg.delete(e)),i||e.removeAttribute(n)}),--tv||(tm=new WeakMap,tm=new WeakMap,tg=new WeakMap,ty={})}},tk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tw(r,i,n,"aria-hidden")):function(){return null}},tx=function(){return(tx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function t_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var tS=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tE="width-before-scroll-bar";function tC(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tA="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,tT=new WeakMap;function tO(e){return e}var tP=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=tO),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return i.options=tx({async:!0,ssr:!1},e),i}(),tI=function(){},tM=o.forwardRef(function(e,t){var n,r,i,a,s=o.useRef(null),l=o.useState({onScrollCapture:tI,onWheelCapture:tI,onTouchMoveCapture:tI}),u=l[0],c=l[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,k=e.allowPinchZoom,x=e.as,_=e.gapMode,S=t_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(n=[s,t],r=function(e){return n.forEach(function(t){return tC(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,tA(function(){var e=tT.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||tC(e,null)}),r.forEach(function(e){t.has(e)||tC(e,i)})}tT.set(a,n)},[n]),a),C=tx(tx({},S),u);return o.createElement(o.Fragment,null,m&&o.createElement(y,{sideCar:tP,removeScrollBar:h,shards:g,noRelative:v,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!k,lockRef:s,gapMode:_}),d?o.cloneElement(o.Children.only(f),tx(tx({},C),{ref:E})):o.createElement(void 0===x?"div":x,tx({},C,{className:p,ref:E}),f))});tM.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tM.classNames={fullWidth:tE,zeroRight:tS};var tz=function(e){var t=e.sideCar,n=t_(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return o.createElement(r,tx({},n))};tz.isSideCarExport=!0;var tN=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tD=function(){var e=tN();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tL=function(){var e=tD();return function(t){return e(t.styles,t.dynamic),null}},tj={left:0,top:0,right:0,gap:0},tR=function(e){return parseInt(e||"",10)||0},tF=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tR(n),tR(r),tR(i)]},t$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tj;var t=tF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tZ=tL(),tW="data-scroll-locked",tU=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(tW,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tS," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tE," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tS," .").concat(tS," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tE," .").concat(tE," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tW,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},tH=function(){var e=parseInt(document.body.getAttribute(tW)||"0",10);return isFinite(e)?e:0},tB=function(){o.useEffect(function(){return document.body.setAttribute(tW,(tH()+1).toString()),function(){var e=tH()-1;e<=0?document.body.removeAttribute(tW):document.body.setAttribute(tW,e.toString())}},[])},tV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tB();var a=o.useMemo(function(){return t$(i)},[i]);return o.createElement(tZ,{styles:tU(a,!t,i,n?"":"!important")})},tq=!1;if("undefined"!=typeof window)try{var tY=Object.defineProperty({},"passive",{get:function(){return tq=!0,!0}});window.addEventListener("test",tY,tY),window.removeEventListener("test",tY,tY)}catch(e){tq=!1}var tJ=!!tq&&{passive:!1},tG=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tK=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tX(e,r)){var i=tQ(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tX=function(e,t){return"v"===e?tG(t,"overflowY"):tG(t,"overflowX")},tQ=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t0=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var h=tQ(e,l),m=h[0],g=h[1]-h[2]-o*m;(m||g)&&tX(e,l)&&(f+=g,p+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},t1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t2=function(e){return[e.deltaX,e.deltaY]},t4=function(e){return e&&"current"in e?e.current:e},t9=0,t5=[];let t3=(r=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(t9++)[0],a=o.useState(tL)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(t4),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=t1(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tK(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=tK(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return t0(p,t,e,"h"===p?l:u,!0)},[]),u=o.useCallback(function(e){if(t5.length&&t5[t5.length-1]===a){var n="deltaY"in e?t2(e):t1(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(t4).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=t1(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,t2(t),t.target,l(t,e.lockRef.current))},[]),p=o.useCallback(function(t){c(t.type,t1(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return t5.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,tJ),document.addEventListener("touchmove",u,tJ),document.addEventListener("touchstart",d,tJ),function(){t5=t5.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,tJ),document.removeEventListener("touchmove",u,tJ),document.removeEventListener("touchstart",d,tJ)}},[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?o.createElement(tV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tP.useMedium(r),tz);var t6=o.forwardRef(function(e,t){return o.createElement(tM,tx({},e,{ref:t,sideCar:t3}))});t6.classNames=tM.classNames;var t8="Popover",[t7,ne]=(0,u.A)(t8,[e5]),nt=e5(),[nn,nr]=t7(t8),ni=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=nt(t),u=o.useRef(null),[c,d]=o.useState(!1),[p,h]=(0,th.i)({prop:r,defaultProp:null!=i&&i,onChange:a,caller:t8});return(0,f.jsx)(e8,{...l,children:(0,f.jsx)(nn,{scope:t,contentId:(0,O.B)(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:c,onCustomAnchorAdd:o.useCallback(()=>d(!0),[]),onCustomAnchorRemove:o.useCallback(()=>d(!1),[]),modal:s,children:n})})};ni.displayName=t8;var na="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(na,n),a=nt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect(()=>(s(),()=>l()),[s,l]),(0,f.jsx)(te,{...a,...r,ref:t})}).displayName=na;var no="PopoverTrigger",ns=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(no,n),a=nt(n),o=(0,l.s)(t,i.triggerRef),u=(0,f.jsx)(c.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nb(i.open),...r,ref:o,onClick:(0,s.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,f.jsx)(te,{asChild:!0,...a,children:u})});ns.displayName=no;var nl="PopoverPortal",[nu,nc]=t7(nl,{forceMount:void 0}),nd=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=nr(nl,t);return(0,f.jsx)(nu,{scope:t,forceMount:n,children:(0,f.jsx)(tf.C,{present:n||a.open,children:(0,f.jsx)(td,{asChild:!0,container:i,children:r})})})};nd.displayName=nl;var nf="PopoverContent",np=o.forwardRef((e,t)=>{let n=nc(nf,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=nr(nf,e.__scopePopover);return(0,f.jsx)(tf.C,{present:r||a.open,children:a.modal?(0,f.jsx)(nm,{...i,ref:t}):(0,f.jsx)(ng,{...i,ref:t})})});np.displayName=nf;var nh=(0,tp.TL)("PopoverContent.RemoveScroll"),nm=o.forwardRef((e,t)=>{let n=nr(nf,e.__scopePopover),r=o.useRef(null),i=(0,l.s)(t,r),a=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return tk(e)},[]),(0,f.jsx)(t6,{as:nh,allowPinchZoom:!0,children:(0,f.jsx)(ny,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,s.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,s.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ng=o.forwardRef((e,t)=>{let n=nr(nf,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return(0,f.jsx)(ny,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var a,o;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),ny=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=nr(nf,n),g=nt(n);return o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:b()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:b()),v++,()=>{1===v&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),v--}},[]),(0,f.jsx)(_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(m,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,f.jsx)(ti,{"data-state":nb(h.open),role:"dialog",id:h.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nv="PopoverClose";function nb(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nr(nv,n);return(0,f.jsx)(c.sG.button,{type:"button",...r,ref:t,onClick:(0,s.m)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=nv,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nt(n);return(0,f.jsx)(ts,{...i,...r,ref:t})}).displayName="PopoverArrow";var nw=ni,nk=ns,nx=nd,n_=np},6081:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2115),i=n(5155);function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let l=t=>{let{scope:n,children:a,...l}=t,u=n?.[e]?.[s]||o,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||o,u=r.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},6101:(e,t,n)=>{"use strict";n.d(t,{s:()=>o,t:()=>a});var r=n(2115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function o(...e){return r.useCallback(a(...e),e)}},6301:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var w,k=[];for(v(k);w=function(){var e=p(),n=y(i);if(n){if(b(),!y(a))return g("property missing ':'");var r=y(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(s),l}}();)!1!==w&&(k.push(w),v(k));return k}},6474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7013:(e,t,n)=>{"use strict";let r,i;n.d(t,{mD:()=>tn,Z9:()=>ta,n_:()=>to,hK:()=>e0,$C:()=>e1,_Z:()=>e8,hd:()=>e7,N8:()=>e6,ZZ:()=>e3,k5:()=>e5});var a,o,s,l,u=n(9143);class c extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function d(e){}class f extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=d,onError:n=d,onRetry:r=d,onComment:i}=e,a="",o=!0,s,l="",u="";function f(e){if(""===e)return void(l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(`
25
25
  `)?l.slice(0,-1):l}),s=void 0,l="",u="");if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let n=e.indexOf(":");if(-1!==n){let t=e.slice(0,n),r=" "===e[n+1]?2:1;p(t,e.slice(n+r),e);return}p(e,"",e)}function p(e,t,i){switch(e){case"event":u=t;break;case"data":l=`${l}${t}
26
26
  `;break;case"id":s=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?r(parseInt(t,10)):n(new c(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:n(new c(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=o?e.replace(/^\xEF\xBB\xBF/,""):e,[n,r]=function(e){let t=[],n="",r=0;for(;r<e.length;){let i=e.indexOf("\r",r),a=e.indexOf(`
27
27
  `,r),o=-1;if(-1!==i&&-1!==a?o=Math.min(i,a):-1!==i?o=i:-1!==a&&(o=a),-1===o){n=e.slice(r);break}{let n=e.slice(r,o);t.push(n),"\r"===e[(r=o+1)-1]&&e[r]===`
@@ -31,6 +31,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31
31
  ]))`;continue}else if("$"===r[e]){i+=`($|(?=[\r
32
32
  ]))`;continue}}if(n.s&&"."===r[e]){i+=o?`${r[e]}\r
33
33
  `:`[${r[e]}\r
34
- ]`;continue}i+=r[e],"\\"===r[e]?a=!0:o&&"]"===r[e]?o=!1:o||"["!==r[e]||(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function eY(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===l.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??ej(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===l.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=eW(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===l.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===l.ZodBranded&&e.keyType._def.type._def.typeName===l.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=e$(e.keyType._def,t);return{...n,propertyNames:i}}return n}let eJ={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},eG=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>eK(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function eK(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.(e,t,r,n);if(i!==y)return i}if(r&&!n){let e=eX(r,t);if(void 0!==e)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=((e,t,n)=>{switch(t){case l.ZodString:return eW(e,n);case l.ZodNumber:var r,i,a,o,s,u,c,d,f,p=e,h=n;let m={type:"number"};if(!p.checks)return m;for(let e of p.checks)switch(e.kind){case"int":m.type="integer",eR(m,"type",e.message,h);break;case"min":"jsonSchema7"===h.target?e.inclusive?eF(m,"minimum",e.value,e.message,h):eF(m,"exclusiveMinimum",e.value,e.message,h):(e.inclusive||(m.exclusiveMinimum=!0),eF(m,"minimum",e.value,e.message,h));break;case"max":"jsonSchema7"===h.target?e.inclusive?eF(m,"maximum",e.value,e.message,h):eF(m,"exclusiveMaximum",e.value,e.message,h):(e.inclusive||(m.exclusiveMaximum=!0),eF(m,"maximum",e.value,e.message,h));break;case"multipleOf":eF(m,"multipleOf",e.value,e.message,h)}return m;case l.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],a=e.shape();for(let e in a){let o=a[e];if(void 0===o||void 0===o._def)continue;let s=function(e){try{return e.isOptional()}catch{return!0}}(o);s&&n&&("ZodOptional"===o._def.typeName&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);let l=eK(o._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,s||i.push(e))}i.length&&(r.required=i);let o=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return eK(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==o&&(r.additionalProperties=o),r}(e,n);case l.ZodBigInt:var g=e,y=n;let v={type:"integer",format:"int64"};if(!g.checks)return v;for(let e of g.checks)switch(e.kind){case"min":"jsonSchema7"===y.target?e.inclusive?eF(v,"minimum",e.value,e.message,y):eF(v,"exclusiveMinimum",e.value,e.message,y):(e.inclusive||(v.exclusiveMinimum=!0),eF(v,"minimum",e.value,e.message,y));break;case"max":"jsonSchema7"===y.target?e.inclusive?eF(v,"maximum",e.value,e.message,y):eF(v,"exclusiveMaximum",e.value,e.message,y):(e.inclusive||(v.exclusiveMaximum=!0),eF(v,"maximum",e.value,e.message,y));break;case"multipleOf":eF(v,"multipleOf",e.value,e.message,y)}return v;case l.ZodBoolean:return{type:"boolean"};case l.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t,o=n;let s={type:"integer",format:"unix-time"};if("openApi3"===o.target)return s;for(let e of a.checks)switch(e.kind){case"min":eF(s,"minimum",e.value,e.message,o);break;case"max":eF(s,"maximum",e.value,e.message,o)}return s}}(e,n);case l.ZodUndefined:return{not:ej(n)};case l.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case l.ZodArray:var b=e,w=n;let k={type:"array"};return b.type?._def&&b.type?._def?.typeName!==l.ZodAny&&(k.items=eK(b.type._def,{...w,currentPath:[...w.currentPath,"items"]})),b.minLength&&eF(k,"minItems",b.minLength.value,b.minLength.message,w),b.maxLength&&eF(k,"maxItems",b.maxLength.value,b.maxLength.message,w),b.exactLength&&(eF(k,"minItems",b.exactLength.value,b.exactLength.message,w),eF(k,"maxItems",b.exactLength.value,b.exactLength.message,w)),k;case l.ZodUnion:case l.ZodDiscriminatedUnion:var x=e,_=n;if("openApi3"===_.target)return eG(x,_);let S=x.options instanceof Map?Array.from(x.options.values()):x.options;if(S.every(e=>e._def.typeName in eJ&&(!e._def.checks||!e._def.checks.length))){let e=S.reduce((e,t)=>{let n=eJ[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(S.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=S.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===S.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:S.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(S.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:S.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return eG(x,_);case l.ZodIntersection:var E=e,C=n;let A=[eK(E.left._def,{...C,currentPath:[...C.currentPath,"allOf","0"]}),eK(E.right._def,{...C,currentPath:[...C.currentPath,"allOf","1"]})].filter(e=>!!e),T="jsonSchema2019-09"===C.target?{unevaluatedProperties:!1}:void 0,O=[];return A.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)O.push(...e.allOf),void 0===e.unevaluatedProperties&&(T=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else T=void 0;O.push(t)}}),O.length?{allOf:O,...T}:void 0;case l.ZodTuple:return r=e,i=n,r.rest?{type:"array",minItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:eK(r.rest._def,{...i,currentPath:[...i.currentPath,"additionalItems"]})}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case l.ZodRecord:return eY(e,n);case l.ZodLiteral:var P=e,I=n;let M=typeof P.value;return"bigint"!==M&&"number"!==M&&"boolean"!==M&&"string"!==M?{type:Array.isArray(P.value)?"array":"object"}:"openApi3"===I.target?{type:"bigint"===M?"integer":M,enum:[P.value]}:{type:"bigint"===M?"integer":M,const:P.value};case l.ZodEnum:return{type:"string",enum:Array.from(e.values)};case l.ZodNativeEnum:var z=e;let N=z.values,D=Object.keys(z.values).filter(e=>"number"!=typeof N[N[e]]).map(e=>N[e]),L=Array.from(new Set(D.map(e=>typeof e)));return{type:1===L.length?"string"===L[0]?"string":"number":["string","number"],enum:D};case l.ZodNullable:var j=e,R=n;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(j.innerType._def.typeName)&&(!j.innerType._def.checks||!j.innerType._def.checks.length))return"openApi3"===R.target?{type:eJ[j.innerType._def.typeName],nullable:!0}:{type:[eJ[j.innerType._def.typeName],"null"]};if("openApi3"===R.target){let e=eK(j.innerType._def,{...R,currentPath:[...R.currentPath]});return e&&"$ref"in e?{allOf:[e],nullable:!0}:e&&{...e,nullable:!0}}let F=eK(j.innerType._def,{...R,currentPath:[...R.currentPath,"anyOf","0"]});return F&&{anyOf:[F,{type:"null"}]};case l.ZodOptional:var $=e,Z=n;if(Z.currentPath.toString()===Z.propertyPath?.toString())return eK($.innerType._def,Z);let W=eK($.innerType._def,{...Z,currentPath:[...Z.currentPath,"anyOf","1"]});return W?{anyOf:[{not:ej(Z)},W]}:ej(Z);case l.ZodMap:return a=e,"record"===(o=n).mapStrategy?eY(a,o):{type:"array",maxItems:125,items:{type:"array",items:[eK(a.keyType._def,{...o,currentPath:[...o.currentPath,"items","items","0"]})||ej(o),eK(a.valueType._def,{...o,currentPath:[...o.currentPath,"items","items","1"]})||ej(o)],minItems:2,maxItems:2}};case l.ZodSet:var U=e,H=n;let B={type:"array",uniqueItems:!0,items:eK(U.valueType._def,{...H,currentPath:[...H.currentPath,"items"]})};return U.minSize&&eF(B,"minItems",U.minSize.value,U.minSize.message,H),U.maxSize&&eF(B,"maxItems",U.maxSize.value,U.maxSize.message,H),B;case l.ZodLazy:return()=>e.getter()._def;case l.ZodPromise:return eK(e.type._def,n);case l.ZodNaN:case l.ZodNever:return"openAi"===(s=n).target?void 0:{not:ej({...s,currentPath:[...s.currentPath,"not"]})};case l.ZodEffects:return u=e,"input"===(c=n).effectStrategy?eK(u.schema._def,c):ej(c);case l.ZodAny:case l.ZodUnknown:return ej(n);case l.ZodDefault:return d=e,f=n,{...eK(d.innerType._def,f),default:d.defaultValue()};case l.ZodBranded:return e$(e,n);case l.ZodReadonly:case l.ZodCatch:return eK(e.innerType._def,n);case l.ZodPipeline:var V=e,q=n;if("input"===q.pipeStrategy)return eK(V.in._def,q);if("output"===q.pipeStrategy)return eK(V.out._def,q);let Y=eK(V.in._def,{...q,currentPath:[...q.currentPath,"allOf","0"]}),J=eK(V.out._def,{...q,currentPath:[...q.currentPath,"allOf",Y?"1":"0"]});return{allOf:[Y,J].filter(e=>void 0!==e)};case l.ZodFunction:case l.ZodVoid:case l.ZodSymbol:default:return}})(e,e.typeName,t),o="function"==typeof a?eK(a(),t):a;if(o&&eQ(e,t,o),t.postProcess){let n=t.postProcess(o,e,t);return i.jsonSchema=o,n}return i.jsonSchema=o,o}let eX=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:eL(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ej(t);return"seen"===t.$refStrategy?ej(t):void 0}},eQ=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n);n(9509);var e0=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new u.Di({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},e1=e0(),e2=/"__proto__"\s*:/,e4=/"constructor"\s*:/,e9=Symbol.for("vercel.ai.validator");async function e5({value:e,schema:t}){let n=await e3({value:e,schema:t});if(!n.success)throw u.iM.wrap({value:e,cause:n.error});return n.value}async function e3({value:e,schema:t}){var n;let r="object"==typeof t&&null!==t&&e9 in t&&!0===t[e9]&&"validate"in t?t:(n=t,{[e9]:!0,validate:async e=>{let t=await n["~standard"].validate(e);return null==t.issues?{success:!0,value:t.value}:{success:!1,error:new u.iM({value:e,cause:t.issues})}}});try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:u.iM.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:u.iM.wrap({value:e,cause:t}),rawValue:e}}}async function e6({text:e,schema:t}){try{let n=function(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===e2.test(e)&&!1===e4.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}finally{Error.stackTraceLimit=t}}(e);if(null==t)return{success:!0,value:n,rawValue:n};return await e3({value:n,schema:t})}catch(t){return{success:!1,error:u.u6.isInstance(t)?t:new u.u6({text:e,cause:t}),rawValue:void 0}}}function e8({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new f).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await e6({text:e,schema:t}))}}))}async function e7(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var te=Symbol.for("vercel.ai.schema");function tt(e,{validate:t}={}){return{[te]:!0,_type:void 0,[e9]:!0,jsonSchema:e,validate:t}}function tn(e){return null==e?tt({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&te in e&&!0===e[te]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var n;return"_zod"in e?tt(function(e,t){if(e instanceof p.rs){let n=new m(t),r={};for(let t of e._idmap.entries()){let[e,r]=t;n.process(r)}let i={},a={registry:e,uri:t?.uri,defs:r};for(let r of e._idmap.entries()){let[e,o]=r;i[e]=n.emit(o,{...t,external:a})}return Object.keys(r).length>0&&(i.__shared={["draft-2020-12"===n.target?"$defs":"definitions"]:r}),{schemas:i}}let n=new m(t);return n.process(e),n.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let n=await g.bp(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}}):tt(((e,t)=>{let n=(e=>{let t,n="string"==typeof(t=e)?{...v,name:t}:{...v,...t},r=void 0!==n.name?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:eK(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??ej(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=eK(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??ej(n),o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let s=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?s.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s})(e,{$refStrategy:(n=void 0,"none"),target:"jsonSchema7"}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}(e)}var{btoa:tr,atob:ti}=globalThis;function ta(e){let t=ti(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}function to(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return tr(t)}},7239:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(5703);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},7386:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(9447);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},7486:(e,t,n)=>{"use strict";n.d(t,{qg:()=>l,EJ:()=>u,xL:()=>c,bp:()=>d});var r=n(8753),i=n(3793),a=n(4193);let o=(e,t)=>{i.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>i.Wk(e,t)},flatten:{value:t=>i.JM(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};a.xI("ZodError",o);let s=a.xI("ZodError",o,{Parent:Error}),l=r.Tj(s),u=r.Rb(s),c=r.Od(s),d=r.wG(s)},7519:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(5703),i=n(540),a=n(7239),o=n(1182),s=n(9447);function l(e,t){let n=(0,s.a)(e,null==t?void 0:t.in);return Math.round(((0,i.b)(n)-function(e,t){let n=(0,o.p)(e,void 0),r=(0,a.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,i.b)(r)}(n))/r.my)+1}},7915:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},7924:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(6301))},8093:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let i,a=r[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:a,formatRelative:(e,t,n,r)=>o[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},8240:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nc});var r={};n.r(r),n.d(r,{boolean:()=>y,booleanish:()=>v,commaOrSpaceSeparated:()=>_,commaSeparated:()=>x,number:()=>w,overloadedBoolean:()=>b,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tp,contentInitial:()=>ts,disable:()=>th,document:()=>to,flow:()=>tu,flowInitial:()=>tl,insideSpan:()=>tf,string:()=>tc,text:()=>td});var a=n(4093);let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function u(e,t){return((t||l).jsx?s:o).test(e)}let c=/[ \t\n\f\r]/g;function d(e){return""===e.replace(c,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function h(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class m{constructor(e,t){this.attribute=t,this.property=e}}m.prototype.attribute="",m.prototype.booleanish=!1,m.prototype.boolean=!1,m.prototype.commaOrSpaceSeparated=!1,m.prototype.commaSeparated=!1,m.prototype.defined=!1,m.prototype.mustUseProperty=!1,m.prototype.number=!1,m.prototype.overloadedBoolean=!1,m.prototype.property="",m.prototype.spaceSeparated=!1,m.prototype.space=void 0;let g=0,y=S(),v=S(),b=S(),w=S(),k=S(),x=S(),_=S();function S(){return 2**++g}let E=Object.keys(r);class C extends m{constructor(e,t,n,i){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++a<E.length;){let e=E[a];!function(e,t,n){n&&(e[t]=n)}(this,E[a],(n&r[e])===r[e])}}}function A(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new C(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[h(r)]=r,n[h(a.attribute)]=r}return new f(t,n,e.space)}C.prototype.defined=!0;let T=A({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:v,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:k,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:w,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:k,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:v,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function P(e,t){return O(e,t.toLowerCase())}let I=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:k,autoFocus:y,autoPlay:y,blocking:k,capture:null,charSet:null,checked:y,cite:null,className:k,cols:w,colSpan:null,content:null,contentEditable:v,controls:y,controlsList:k,coords:w|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:b,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:k,height:w,hidden:b,high:w,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:k,itemRef:k,itemScope:y,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:w,pattern:null,ping:k,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:k,required:y,reversed:y,rows:w,rowSpan:w,sandbox:k,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:P}),M=A({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:_,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_,rev:_,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_,requiredFeatures:_,requiredFonts:_,requiredFormats:_,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:_,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),z=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),N=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:P}),D=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),L=p([T,I,z,N,D],"html"),j=p([T,M,z,N,D],"svg"),R=/[A-Z]/g,F=/-[a-z]/g,$=/^data[-\w.:]+$/i;function Z(e){return"-"+e.toLowerCase()}function W(e){return e.charAt(1).toUpperCase()}let U={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var H=n(3724);let B=q("end"),V=q("start");function q(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Y(e){return e&&"object"==typeof e?"position"in e||"type"in e?G(e.position):"start"in e||"end"in e?G(e):"line"in e||"column"in e?J(e):"":""}function J(e){return K(e&&e.line)+":"+K(e&&e.column)}function G(e){return J(e&&e.start)+"-"+J(e&&e.end)}function K(e){return e&&"number"==typeof e?e:1}class X extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Y(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}X.prototype.file="",X.prototype.name="",X.prototype.reason="",X.prototype.message="",X.prototype.stack="",X.prototype.column=void 0,X.prototype.line=void 0,X.prototype.ancestors=void 0,X.prototype.cause=void 0,X.prototype.fatal=void 0,X.prototype.place=void 0,X.prototype.ruleId=void 0,X.prototype.source=void 0;let Q={}.hasOwnProperty,ee=new Map,et=/[A-Z]/g,en=new Set(["table","tbody","thead","tfoot","tr"]),er=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ea(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=j),e.ancestors.push(t);let i=eu(e,t.tagName,!1),a=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Q.call(t.properties,r)){let a=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=m;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&$.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(F,W);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!F.test(e)){let n=e.replace(R,Z);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=C}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return H(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new X("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ei+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Q.call(e,t)&&(n[function(e){let t=e.replace(et,ed);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&er.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=el(e,t);return en.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),eo(e,a,i,t),es(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,a.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ec(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=j),e.ancestors.push(t);let i=null===t.name?e.Fragment:eu(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,a.ok)("ObjectExpression"===i.type);let o=i.properties[0];(0,a.ok)("SpreadElement"===o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ec(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else ec(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=el(e,t);return eo(e,o,i,t),es(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ec(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return es(r,el(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,i=e.passKeys?new Map:ee;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=ea(e,o,a);void 0!==s&&n.push(s)}return n}function eu(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=u(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,a.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return Q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ec(e)}function ec(e,t){let n=new X("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ed(e){return"-"+e.toLowerCase()}let ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ep=n(5155);n(2115);var eh=n(4392),em=n(1603);class eg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ey(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ey(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ey(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);ey(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ey(this.left,t.reverse())}}}function ey(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ev(e){let t,n,r,i,a,o,s,l={},u=-1,c=new eg(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);s.push(o),!p._tokenizer&&(n=a.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return(0,em.m)(e,0,1/0,c.slice(0)),!s}var eb=n(9381),ew=n(4581),ek=n(2556);let ex={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,ek.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},e_={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,em.m)(i.events,a+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(o===a.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eS,c,d)(n)}function c(e){return t&&y(),g(o),f(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(eS,p,h)(t)}function p(e){return o++,a.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,ek.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;(0,em.m)(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eS={tokenize:function(e,t,n){return(0,ew.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var eE=n(5333);let eC={resolve:function(e){return ev(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,ek.HP)(t)?e.check(eA,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eA={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,ek.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eT={tokenize:function(e){let t=this,n=e.attempt(eE.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,ew.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eC,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eO={resolveAll:ez()},eP=eM("string"),eI=eM("text");function eM(e){return{resolveAll:ez("text"===e?eN:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ez(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let eD={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,ek.On)(n)?(0,ew.N)(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||(0,ek.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},eL={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eE.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,ew.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,ek.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eR,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,ew.N)(e,e.attempt(eL,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,ek.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eD,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,ek.BM)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eE.B,r.interrupt?n:l,e.attempt(ej,c,u))}function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return(0,ek.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ej={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,ek.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eR={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eF={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,ek.On)(t)?(0,ew.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eF,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,ek.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e$(e,t,n,r,i,a,o,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,ek.JQ)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,ek.HP)(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||(0,ek.Ee)(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||(0,ek.JQ)(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function eZ(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,ek.HP)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||(0,ek.HP)(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!(0,ek.On)(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function eW(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||(0,ek.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function eU(e,t){let n;return function r(i){return(0,ek.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,ek.On)(i)?(0,ew.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eH=n(3386);let eB={partial:!0,tokenize:function(e,t,n){return function(t){return(0,ek.Ee)(t)?eU(e,r)(t):n(t)};function r(t){return eW(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,ek.On)(t)?(0,ew.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,ek.HP)(e)?t(e):n(e)}}},eV={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,ew.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,ek.HP)(n)?e.attempt(eq,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,ek.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},eq={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,ew.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,ek.HP)(e)?i(e):n(e)}}},eY={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,ek.On)(n)?(0,ew.N)(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||(0,ek.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},eJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eG=["pre","script","style","textarea"],eK={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eE.B,t,n)}}},eX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e0={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,ek.On)(t)?(0,ew.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),(0,ek.On)(i)?(0,ew.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,ek.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a=t;let u=i.events[i.events.length-1];return o=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,ek.On)(i)?(0,ew.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,ek.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(eQ,c,h)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ek.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,ek.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,ew.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||(0,ek.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ek.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&(0,ek.On)(t)?(0,ew.N)(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||(0,ek.HP)(t)?e.check(eQ,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,ek.HP)(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},e1=document.createElement("i");function e2(e){let t="&"+e+";";e1.innerHTML=t;let n=e1.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e4={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=ek.lV,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ek.ok,u):(e.enter("characterReferenceValue"),r=7,i=ek.BM,u(t))}function u(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==ek.lV||e2(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),u):n(s)}}},e9={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,ek.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e5={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,ew.N)(e,t,"linePrefix")}}};var e3=n(1877);let e6={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,em.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=(0,em.V)(a,e.slice(r+1,r+s+3)),a=(0,em.V)(a,[["enter",c,t]]),a=(0,em.V)(a,(0,e3.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=(0,em.V)(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=(0,em.V)(a,e.slice(i+1)),a=(0,em.V)(a,[["exit",l,t]]),(0,em.m)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes((0,eH.B)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(e8,u,i?u:c)(t):91===t?e.attempt(e7,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(te,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},e8={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,ek.Ee)(t)?eU(e,i)(t):i(t)}function i(t){return 41===t?u(t):e$(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,ek.Ee)(t)?eU(e,s)(t):u(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?eW(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return(0,ek.Ee)(t)?eU(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},e7={tokenize:function(e,t,n){let r=this;return function(t){return eZ.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eH.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},te={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tt={name:"labelStartImage",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var tn=n(9535);let tr={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};ti(d,-s),ti(f,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[c][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,em.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,em.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,em.V)(l,(0,e3.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=(0,em.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=(0,em.V)(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,em.m)(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,tn.S)(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),u=(0,tn.S)(s),c=!u||2===u&&a||r.includes(s),d=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(o)}}};function ti(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ta={name:"labelStartLink",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},to={42:eL,43:eL,45:eL,48:eL,49:eL,50:eL,51:eL,52:eL,53:eL,54:eL,55:eL,56:eL,57:eL,62:eF},ts={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,eZ.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=(0,eH.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,ek.Ee)(t)?eU(e,s)(t):s(t)}function s(t){return e$(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(eB,u,u)(t)}function u(t){return(0,ek.On)(t)?(0,ew.N)(e,c,"whitespace")(t):c(t)}function c(a){return null===a||(0,ek.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},tl={[-2]:eV,[-1]:eV,32:eV},tu={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,em.m)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,ek.Ee)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,ek.HP)(r)?(e.exit("atxHeading"),t(r)):(0,ek.On)(r)?(0,ew.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,ek.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:eD,45:[eY,eD],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,l.interrupt?t:M):(0,ek.CW)(o)?(e.consume(o),a=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,f):(0,ek.CW)(i)?(e.consume(i),r=4,l.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:M):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:S:f:n(r)}function p(t){return(0,ek.CW)(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||(0,ek.Ee)(o)){let s=47===o,u=a.toLowerCase();return!s&&!i&&eG.includes(u)?(r=1,l.interrupt?t(o):S(o)):eJ.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):S(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return(0,ek.On)(n)?(e.consume(n),t):x(n)}(o):g(o))}return 45===o||(0,ek.lV)(o)?(e.consume(o),a+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,ek.CW)(t)?(e.consume(t),y):(0,ek.On)(t)?(e.consume(t),g):x(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,ek.lV)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):(0,ek.On)(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):(0,ek.On)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,ek.Ee)(n)?v(n):(e.consume(n),t)}(t)}function w(t){return t===s?(e.consume(t),s=null,k):null===t||(0,ek.HP)(t)?n(t):(e.consume(t),w)}function k(e){return 47===e||62===e||(0,ek.On)(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,ek.HP)(t)?S(t):(0,ek.On)(t)?(e.consume(t),_):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),I):(0,ek.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eK,N,E)(t)):null===t||(0,ek.HP)(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(eX,C,N)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||(0,ek.HP)(t)?E(t):(e.enter("htmlFlowData"),S(t))}function T(t){return 45===t?(e.consume(t),M):S(t)}function O(t){return 47===t?(e.consume(t),a="",P):S(t)}function P(t){if(62===t){let n=a.toLowerCase();return eG.includes(n)?(e.consume(t),z):S(t)}return(0,ek.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):S(t)}function I(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):S(t)}function z(t){return null===t||(0,ek.HP)(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),z)}function N(n){return e.exit("htmlFlow"),t(n)}}},61:eY,95:eD,96:e0,126:e0},tc={38:e4,92:e9},td={[-5]:e5,[-4]:e5,[-3]:e5,33:tt,38:e4,42:tr,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,ek.CW)(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||(0,ek.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,ek.lV)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,ek.JQ)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,ek.cx)(t)?(e.consume(t),s):n(t)}function l(i){return(0,ek.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,ek.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):(0,ek.CW)(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):(0,ek.CW)(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):(0,ek.HP)(t)?(a=c,P(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?O(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):(0,ek.HP)(t)?(a=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):(0,ek.HP)(t)?(a=y,P(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):(0,ek.HP)(t)?(a=v,P(t)):(e.consume(t),v)}function b(e){return 62===e?O(e):v(e)}function w(t){return(0,ek.CW)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,ek.lV)(t)?(e.consume(t),k):function t(n){return(0,ek.HP)(n)?(a=t,P(n)):(0,ek.On)(n)?(e.consume(n),t):O(n)}(t)}function x(t){return 45===t||(0,ek.lV)(t)?(e.consume(t),x):47===t||62===t||(0,ek.Ee)(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),O):58===t||95===t||(0,ek.CW)(t)?(e.consume(t),S):(0,ek.HP)(t)?(a=_,P(t)):(0,ek.On)(t)?(e.consume(t),_):O(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,ek.lV)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):(0,ek.HP)(n)?(a=t,P(n)):(0,ek.On)(n)?(e.consume(n),t):_(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,ek.HP)(t)?(a=E,P(t)):(0,ek.On)(t)?(e.consume(t),E):(e.consume(t),A)}function C(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):(0,ek.HP)(t)?(a=C,P(t)):(e.consume(t),C)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,ek.Ee)(t)?_(t):(e.consume(t),A)}function T(e){return 47===e||62===e||(0,ek.Ee)(e)?_(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,ek.On)(t)?(0,ew.N)(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),a(t)}}}],91:ta,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,ek.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e9],93:e6,95:tr,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):(0,ek.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,ek.HP)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},tf={null:[tr,eO]},tp={null:[42,95]},th={null:[]},tm=/[\0\t\n\r]/g;function tg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ty=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tv(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tg(n.slice(t?2:1),t?16:10)}return e2(n)||e}let tb={}.hasOwnProperty;function tw(e){return{line:e.line,column:e.column,offset:e.offset}}function tk(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is still open")}function tx(e){let t=this;t.parser=function(n){var r,a;let o,s,l,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e2(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tw(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eH.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ty,tv),n.identifier=(0,eH.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tw(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eH.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tb.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,o,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tb.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tk).call(o,void 0,e[0])}for(r.position={start:tw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tw(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tk).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): it’s not open");n.position.end=tw(e.end)}function l(){return(0,eh.d)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tw(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!ev(e););return e}((function(e){let t={constructs:(0,eb.y)([i,...(e||{}).extensions||[]]),content:n(ex),defined:[],document:n(e_),flow:n(eT),lazy:{},string:n(eP),text:n(eI)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){(0,ek.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=(0,em.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=(0,e3.W)(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function p(e,t){t.restore()}function h(e,t){return function(n,i,a){var o;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?a:y(e[d])}function y(e){return function(n){return(h=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,b)(n)}}function v(t){return e(p,h),i}function b(e){return(h.restore(),++d<c.length)?y(c[d]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,em.m)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,l="",u=!0,function(e,t,n){let r,i,a,c,d,f=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",u&&(65279===e.charCodeAt(0)&&a++,u=void 0);a<e.length;){if(tm.lastIndex=a,c=(r=tm.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){l=e.slice(a);break}if(10===d&&a===c&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),a<c&&(f.push(e.slice(a,c)),s+=c-a),d){case 0:f.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),f.push(-2);s++<i;)f.push(-1);break;case 10:f.push(-4),s=1;break;default:o=!0,s=1}a=c+1}return n&&(o&&f.push(-5),l&&f.push(l),f.push(null)),f})(n,r,!0))))}}let t_="object"==typeof self?self:globalThis,tS=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new t_[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new t_[a](o),i)};return r})(new Map,e)(0),{toString:tE}={},{keys:tC}=Object,tA=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tE.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tT=([e,t])=>0===e&&("function"===t||"symbol"===t),tO=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=tA(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of tC(r))(e||!tT(tA(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(tT(tA(n))||tT(tA(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!tT(tA(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},tP="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tS(tO(e,t)):structuredClone(e):(e,t)=>tS(tO(e,t));function tI(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&(0,ek.lV)(e.charCodeAt(n+1))&&(0,ek.lV)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tM(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tz(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var tN=n(8428);function tD(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function tL(e){let t=e.spread;return null==t?e.children.length>1:t}function tj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tR={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=tI(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tD(e,t);let i={src:tI(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:tI(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tD(e,t);let i={href:tI(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:tI(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}(n):tL(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=V(t.children[1]),o=B(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(tj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(tj(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tF,yaml:tF,definition:tF,footnoteDefinition:tF};function tF(){}let t$={}.hasOwnProperty,tZ={};function tW(e,t){e.position&&(t.position=function(e){let t=V(e),n=B(e);if(t&&n)return{start:t,end:n}}(e))}function tU(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tP(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tH(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tB(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tV(e,t){let n=function(e,t){let n=t||tZ,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tB(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tB(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tU,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tR,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(t$.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tP(n);return r.children=a.all(e),r}return tP(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t$.call(n,"hProperties")||t$.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:tW,wrap:tH};return(0,tN.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tM,r=e.options.footnoteBackLabel||tz,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),u=tI(o.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(o);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else a.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...tP(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,a.ok)("children"in o),o.children.push({type:"text",value:"\n"},i)),o}function tq(e,t){return e&&"run"in e?async function(n,r){let i=tV(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tV(n,{file:r,...e||t})}}function tY(e){if(e)throw e}var tJ=n(3360);function tG(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tK={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tX(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(tX(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tX(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)tX(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tX(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tX(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tQ={cwd:function(){return"/"}};function t0(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t1=["history","path","basename","stem","extname","dirname"];class t2{constructor(e){let t,n;t=e?t0(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tQ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t1.length;){let e=t1[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t1.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?tK.basename(this.path):void 0}set basename(e){t9(e,"basename"),t4(e,"basename"),this.path=tK.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?tK.dirname(this.path):void 0}set dirname(e){t5(this.basename,"dirname"),this.path=tK.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?tK.extname(this.path):void 0}set extname(e){if(t4(e,"extname"),t5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=tK.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t0(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t0(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),t9(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?tK.basename(this.path,this.extname):void 0}set stem(e){t9(e,"stem"),t4(e,"stem"),this.path=tK.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new X(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function t4(e,t){if(e&&e.includes(tK.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tK.sep+"`")}function t9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function t5(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let t3=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},t6={}.hasOwnProperty;class t8 extends t3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...o){let s=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a,o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new t8,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(tJ(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nn("data",this.frozen),this.namespace[e]=t,this):t6.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nn("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=na(e),n=this.parser||this.Parser;return ne("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ne("process",this.parser||this.Parser),nt("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=na(e),s=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,o,function(e,t,r){var i,a;if(e||!t||!r)return l(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=o,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ne("processSync",this.parser||this.Parser),nt("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,tY(e),t=r}),ni("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){nr(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=na(t);r.run(e,s,function(t,r,s){let l=r||e;t?o(t):i?i(l):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){tY(e),n=t,r=!0}),ni("runSync","run",r),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=na(t),r=this.compiler||this.Compiler;return nt("stringify",r),nr(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nn("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=tJ(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)o(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;o(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];tG(o)&&tG(r)&&(r=tJ(!0,o,r)),n[i]=[e,r,...a]}}}}let t7=new t8().freeze();function ne(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nt(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nn(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nr(e){if(!tG(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ni(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function na(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new t2(e)}let no=[],ns={allowDangerousHtml:!0},nl=/^(https?|ircs?|mailto|xmpp)$/i,nu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nc(e){let t=function(e){let t=e.rehypePlugins||no,n=e.remarkPlugins||no,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ns}:ns;return t7().use(tx).use(n).use(tq,r).use(t)}(e),n=function(e){let t=e.children||"",n=new t2;return"string"==typeof t?n.value=t:(0,a.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||nd;for(let e of nu)Object.hasOwn(t,e.from)&&(0,a.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&o&&(0,a.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,tN.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=V(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ea(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nd(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nl.test(e.slice(0,t))?e:""}},8428:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(1922);function i(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),(0,r.VG)(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},a)}},8637:(e,t,n)=>{"use strict";n.d(t,{m:()=>l});var r=n(9447);function i(e){let t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}var a=n(1183),o=n(5703),s=n(9092);function l(e,t,n){let[r,l]=(0,a.x)(null==n?void 0:n.in,e,t),u=(0,s.o)(r),c=(0,s.o)(l);return Math.round((u-i(u)-(c-i(c)))/o.w4)}},8753:(e,t,n)=>{"use strict";n.d(t,{Od:()=>l,Rb:()=>s,Tj:()=>o,bp:()=>d,wG:()=>c,xL:()=>u});var r=n(4193),i=n(3793),a=n(4398);let o=e=>(t,n,i,o)=>{let s=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>a.iR(e,s,r.$W())));throw a.gx(t,o?.callee),t}return l.value};i.Kd;let s=e=>async(t,n,i,o)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>a.iR(e,s,r.$W())));throw a.gx(t,o?.callee),t}return l.value};i.Kd;let l=e=>(t,n,o)=>{let s=o?{...o,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>a.iR(e,s,r.$W())))}:{success:!0,data:l.value}},u=l(i.Kd),c=e=>async(t,n,i)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>a.iR(e,o,r.$W())))}:{success:!0,data:s.value}},d=c(i.Kd)},8827:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>x});var r,i,a,o,s,l,u,c,d,f,p=n(2115),h=n(3736),m=n(1649),g=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},y=(e,t,n)=>(g(e,t,"read from private field"),n?n.call(e):t.get(e)),v=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},b=(e,t,n,r)=>(g(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),w=class{constructor(e=[]){v(this,r,void 0),v(this,i,"ready"),v(this,a,void 0),v(this,o,new Set),v(this,s,new Set),v(this,l,new Set),this.pushMessage=e=>{b(this,r,y(this,r).concat(e)),y(this,u).call(this)},this.popMessage=()=>{b(this,r,y(this,r).slice(0,-1)),y(this,u).call(this)},this.replaceMessage=(e,t)=>{b(this,r,[...y(this,r).slice(0,e),this.snapshot(t),...y(this,r).slice(e+1)]),y(this,u).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let n=t?function(e,t){return null!=t?m(e,t):e}(e,t):e;return y(this,o).add(n),()=>{y(this,o).delete(n)}},this["~registerStatusCallback"]=e=>(y(this,s).add(e),()=>{y(this,s).delete(e)}),this["~registerErrorCallback"]=e=>(y(this,l).add(e),()=>{y(this,l).delete(e)}),v(this,u,()=>{y(this,o).forEach(e=>e())}),v(this,c,()=>{y(this,s).forEach(e=>e())}),v(this,d,()=>{y(this,l).forEach(e=>e())}),b(this,r,e)}get status(){return y(this,i)}set status(e){b(this,i,e),y(this,c).call(this)}get error(){return y(this,a)}set error(e){b(this,a,e),y(this,d).call(this)}get messages(){return y(this,r)}set messages(e){b(this,r,[...e]),y(this,u).call(this)}};r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap;var k=class extends h.vl{constructor({messages:e,...t}){let n=new w(e);super({...t,state:n}),v(this,f,void 0),this["~registerMessagesCallback"]=(e,t)=>y(this,f)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>y(this,f)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>y(this,f)["~registerErrorCallback"](e),b(this,f,n)}};function x({experimental_throttle:e,resume:t=!1,...n}={}){let r=(0,p.useRef)("chat"in n?n.chat:new k(n));("chat"in n&&n.chat!==r.current||"id"in n&&r.current.id!==n.id)&&(r.current="chat"in n?n.chat:new k(n));let i="id"in n?n.id:null,a=(0,p.useCallback)(t=>r.current["~registerMessagesCallback"](t,e),[e,i]),o=(0,p.useSyncExternalStore)(a,()=>r.current.messages,()=>r.current.messages),s=(0,p.useSyncExternalStore)(r.current["~registerStatusCallback"],()=>r.current.status,()=>r.current.status),l=(0,p.useSyncExternalStore)(r.current["~registerErrorCallback"],()=>r.current.error,()=>r.current.error),u=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(r.current.messages)),r.current.messages=e},[r]);return(0,p.useEffect)(()=>{t&&r.current.resumeStream()},[t,r]),{id:r.current.id,messages:o,setMessages:u,sendMessage:r.current.sendMessage,regenerate:r.current.regenerate,clearError:r.current.clearError,stop:r.current.stop,error:l,resumeStream:r.current.resumeStream,status:s,addToolResult:r.current.addToolResult}}f=new WeakMap},8905:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(2115),i=n(6101),a=n(2712),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[i,o]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},a=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",a),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},8934:(e,t,n)=>{"use strict";n.d(t,{h:()=>e1});var r,i={};n.r(i),n.d(i,{Button:()=>q,CaptionLabel:()=>Y,Chevron:()=>J,Day:()=>G,DayButton:()=>K,Dropdown:()=>X,DropdownNav:()=>Q,Footer:()=>ee,Month:()=>et,MonthCaption:()=>en,MonthGrid:()=>er,Months:()=>ei,MonthsDropdown:()=>es,Nav:()=>el,NextMonthButton:()=>eu,Option:()=>ec,PreviousMonthButton:()=>ed,Root:()=>ef,Select:()=>ep,Week:()=>eh,WeekNumber:()=>ey,WeekNumberHeader:()=>ev,Weekday:()=>em,Weekdays:()=>eg,Weeks:()=>eb,YearsDropdown:()=>ew});var a={};n.r(a),n.d(a,{formatCaption:()=>ex,formatDay:()=>eS,formatMonthCaption:()=>e_,formatMonthDropdown:()=>eE,formatWeekNumber:()=>eC,formatWeekNumberHeader:()=>eA,formatWeekdayName:()=>eT,formatYearCaption:()=>eP,formatYearDropdown:()=>eO});var o={};n.r(o),n.d(o,{labelCaption:()=>eM,labelDay:()=>eD,labelDayButton:()=>eN,labelGrid:()=>eI,labelGridcell:()=>ez,labelMonthDropdown:()=>ej,labelNav:()=>eL,labelNext:()=>eR,labelPrevious:()=>eF,labelWeekNumber:()=>eZ,labelWeekNumberHeader:()=>eW,labelWeekday:()=>e$,labelYearDropdown:()=>eU});var s=n(2115);Symbol.for("constructDateFrom");let l={},u={};function c(e,t){try{let n=(l[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in u)return u[n];return f(n,n.split(":"))}catch{if(e in u)return u[e];let t=e?.match(d);if(t)return f(e,t.slice(1));return NaN}}let d=/([+-]\d\d):?(\d\d)?/;function f(e,t){let n=+(t[0]||0),r=+(t[1]||0);return u[e]=n>0?60*n+r:60*n-r}class p extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(c(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),g(this,NaN),m(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new p(...t,e):new p(Date.now(),e)}withTimeZone(e){return new p(+this,e)}getTimezoneOffset(){return-c(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),m(this),+this}[Symbol.for("constructDateFrom")](e){return new p(+new Date(e),this.timeZone)}}let h=/^(get|set)(?!UTC)/;function m(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function g(e){let t=c(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),i=r- -new Date(+n).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let o=r-t;o&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+o);let s=c(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-o;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);let t=s-c(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!h.test(e))return;let t=e.replace(h,"$1UTC");p.prototype[t]&&(e.startsWith("get")?p.prototype[e]=function(){return this.internal[t]()}:(p.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),g(e),+this},p.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),m(this),+this}))});class y extends p{static tz(e,...t){return t.length?new y(...t,e):new y(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new y(+this,e)}[Symbol.for("constructDateFrom")](e){return new y(+new Date(e),this.timeZone)}}var v=n(9072),b=n(8093),w=n(7239),k=n(9447);function x(e,t,n){let r=(0,k.a)(e,null==n?void 0:n.in);return isNaN(t)?(0,w.w)((null==n?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function _(e,t,n){let r=(0,k.a)(e,null==n?void 0:n.in);if(isNaN(t))return(0,w.w)((null==n?void 0:n.in)||e,NaN);if(!t)return r;let i=r.getDate(),a=(0,w.w)((null==n?void 0:n.in)||e,r.getTime());return(a.setMonth(r.getMonth()+t+1,0),i>=a.getDate())?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var S=n(8637),E=n(1183),C=n(5490);function A(e,t){var n,r,i,a,o,s,l,u;let c=(0,C.q)(),d=null!=(u=null!=(l=null!=(s=null!=(o=null==t?void 0:t.weekStartsOn)?o:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?s:c.weekStartsOn)?l:null==(a=c.locale)||null==(i=a.options)?void 0:i.weekStartsOn)?u:0,f=(0,k.a)(e,null==t?void 0:t.in),p=f.getDay();return f.setDate(f.getDate()+((p<d?-7:0)+6-(p-d))),f.setHours(23,59,59,999),f}var T=n(3008),O=n(7519),P=n(1391),I=n(9026),M=n(9092),z=n(540),N=n(4423),D=n(7386);function L(e,t){let n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class j{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?y.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new y(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):x(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):_(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):x(e,7*t,void 0),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):_(e,12*t,void 0),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):(0,S.m)(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return 12*(r.getFullYear()-i.getFullYear())+(r.getMonth()-i.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){var n;let{start:r,end:i}=function(e,t){let[n,r]=(0,E.x)(e,t.start,t.end);return{start:n,end:r}}(void 0,e),a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setDate(1);let l=(n=void 0,1);if(!l)return[];l<0&&(l=-l,a=!a);let u=[];for(;+s<=o;)u.push((0,w.w)(r,s)),s.setMonth(s.getMonth()+l);return a?u.reverse():u}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){let n=L(e,t),r=function(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):A(e,{...void 0,weekStartsOn:1}),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){let n=(0,k.a)(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):A(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){let n=(0,k.a)(e,void 0),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):(0,T.GP)(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):(0,O.s)(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return(0,k.a)(e,null==t?void 0:t.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return(0,k.a)(e,null==t?void 0:t.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):(0,P.N)(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):+(0,k.a)(e)>+(0,k.a)(t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):+(0,k.a)(e)<+(0,k.a)(t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):(0,I.$)(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return+(0,M.o)(r)==+(0,M.o)(i)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return r.getFullYear()===i.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=w.w.bind(null,e));let t=(0,k.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),(0,w.w)(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=w.w.bind(null,e));let t=(0,k.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),(0,w.w)(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):function(e,t,n){let r=(0,k.a)(e,void 0),i=r.getFullYear(),a=r.getDate(),o=(0,w.w)(e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=function(e,t){let n=(0,k.a)(e,void 0),r=n.getFullYear(),i=n.getMonth(),a=(0,w.w)(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return r.setMonth(t,Math.min(a,s)),r}(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){let r=(0,k.a)(e,void 0);return isNaN(+r)?(0,w.w)(e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):L(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):(0,M.o)(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):(0,z.b)(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){let n=(0,k.a)(e,void 0);return n.setDate(1),n.setHours(0,0,0,0),n}(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):(0,N.k)(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):(0,D.D)(e),this.options={locale:b.c,...e},this.overrides=t}getDigitMap(){let{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}}let R=new j;function F(e,t,n=!1,r=R){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(0>o(a,i)&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&!!i&&s(i,t)}function $(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}function Z(e){return!!(e&&"object"==typeof e&&"from"in e)}function W(e){return!!(e&&"object"==typeof e&&"after"in e)}function U(e){return!!(e&&"object"==typeof e&&"before"in e)}function H(e){return!!(e&&"object"==typeof e&&"dayOfWeek"in e)}function B(e,t){return Array.isArray(e)&&e.every(t.isDate)}function V(e,t,n=R){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return i(e,t);if(B(t,n))return t.includes(e);if(Z(t))return F(t,e,!1,n);if(H(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if($(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return W(t)?a(e,t.after)>0:U(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function q(e){return s.createElement("button",{...e})}function Y(e){return s.createElement("span",{...e})}function J(e){let{size:t=24,orientation:n="left",className:r}=e;return s.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&s.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&s.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&s.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&s.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function G(e){let{day:t,modifiers:n,...r}=e;return s.createElement("td",{...r})}function K(e){let{day:t,modifiers:n,...r}=e,i=s.useRef(null);return s.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),s.createElement("button",{ref:i,...r})}function X(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[v.UI.Dropdown],n].join(" "),l=t?.find(({value:e})=>e===a.value);return s.createElement("span",{"data-disabled":a.disabled,className:i[v.UI.DropdownRoot]},s.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>s.createElement(r.Option,{key:e,value:e,disabled:n},t))),s.createElement("span",{className:i[v.UI.CaptionLabel],"aria-hidden":!0},l?.label,s.createElement(r.Chevron,{orientation:"down",size:18,className:i[v.UI.Chevron]})))}function Q(e){return s.createElement("div",{...e})}function ee(e){return s.createElement("div",{...e})}function et(e){let{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r},e.children)}function en(e){let{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r})}function er(e){return s.createElement("table",{...e})}function ei(e){return s.createElement("div",{...e})}let ea=(0,s.createContext)(void 0);function eo(){let e=(0,s.useContext)(ea);if(void 0===e)throw Error("useDayPicker() must be used within a custom component.");return e}function es(e){let{components:t}=eo();return s.createElement(t.Dropdown,{...e})}function el(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:l,labels:{labelPrevious:u,labelNext:c}}=eo(),d=(0,s.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,s.useCallback)(e=>{r&&t?.(e)},[r,t]);return s.createElement("nav",{...a},s.createElement(o.PreviousMonthButton,{type:"button",className:l[v.UI.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":u(r),onClick:f},s.createElement(o.Chevron,{disabled:!r||void 0,className:l[v.UI.Chevron],orientation:"left"})),s.createElement(o.NextMonthButton,{type:"button",className:l[v.UI.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":c(i),onClick:d},s.createElement(o.Chevron,{disabled:!i||void 0,orientation:"right",className:l[v.UI.Chevron]})))}function eu(e){let{components:t}=eo();return s.createElement(t.Button,{...e})}function ec(e){return s.createElement("option",{...e})}function ed(e){let{components:t}=eo();return s.createElement(t.Button,{...e})}function ef(e){let{rootRef:t,...n}=e;return s.createElement("div",{...n,ref:t})}function ep(e){return s.createElement("select",{...e})}function eh(e){let{week:t,...n}=e;return s.createElement("tr",{...n})}function em(e){return s.createElement("th",{...e})}function eg(e){return s.createElement("thead",{"aria-hidden":!0},s.createElement("tr",{...e}))}function ey(e){let{week:t,...n}=e;return s.createElement("th",{...n})}function ev(e){return s.createElement("th",{...e})}function eb(e){return s.createElement("tbody",{...e})}function ew(e){let{components:t}=eo();return s.createElement(t.Dropdown,{...e})}var ek=n(713);function ex(e,t,n){return(n??new j(t)).format(e,"LLLL y")}let e_=ex;function eS(e,t,n){return(n??new j(t)).format(e,"d")}function eE(e,t=R){return t.format(e,"LLLL")}function eC(e,t=R){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function eA(){return""}function eT(e,t,n){return(n??new j(t)).format(e,"cccccc")}function eO(e,t=R){return t.format(e,"yyyy")}let eP=eO;function eI(e,t,n){return(n??new j(t)).format(e,"LLLL y")}let eM=eI;function ez(e,t,n,r){let i=(r??new j(n)).format(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i}function eN(e,t,n,r){let i=(r??new j(n)).format(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}let eD=eN;function eL(){return""}function ej(e){return"Choose the Month"}function eR(e){return"Go to the Next Month"}function eF(e){return"Go to the Previous Month"}function e$(e,t,n){return(n??new j(t)).format(e,"cccc")}function eZ(e,t){return`Week ${e}`}function eW(e){return"Week Number"}function eU(e){return"Choose the Year"}let eH=e=>e instanceof HTMLElement?e:null,eB=e=>[...e.querySelectorAll("[data-animated-month]")??[]],eV=e=>eH(e.querySelector("[data-animated-caption]")),eq=e=>eH(e.querySelector("[data-animated-weeks]"));function eY(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,l=i||a||o,{differenceInCalendarMonths:u,addMonths:c,startOfMonth:d}=r;return n&&u(n,l)<s-1&&(l=c(n,-1*(s-1))),t&&0>u(l,t)&&(l=t),d(l)}class eJ{constructor(e,t,n=R){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class eG{constructor(e,t){this.days=t,this.weekNumber=e}}class eK{constructor(e,t){this.date=e,this.weeks=t}}function eX(e,t){let[n,r]=(0,s.useState)(e);return[void 0===t?n:t,r]}function eQ(e){return!e[v.pL.disabled]&&!e[v.pL.hidden]&&!e[v.pL.outside]}function e0(e,t,n=R){return F(e,t.from,!1,n)||F(e,t.to,!1,n)||F(t,e.from,!1,n)||F(t,e.to,!1,n)}function e1(e){let t=e;t.timeZone&&((t={...e}).today&&(t.today=new y(t.today,t.timeZone)),t.month&&(t.month=new y(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new y(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new y(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new y(t.endMonth,t.timeZone)),"single"===t.mode&&t.selected?t.selected=new y(t.selected,t.timeZone):"multiple"===t.mode&&t.selected?t.selected=t.selected?.map(e=>new y(e,t.timeZone)):"range"===t.mode&&t.selected&&(t.selected={from:t.selected.from?new y(t.selected.from,t.timeZone):void 0,to:t.selected.to?new y(t.selected.to,t.timeZone):void 0}));let{components:n,formatters:l,labels:u,dateLib:c,locale:d,classNames:f}=(0,s.useMemo)(()=>{var e,n;let r={...b.c,...t.locale};return{dateLib:new j({locale:r,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:(e=t.components,{...i,...e}),formatters:(n=t.formatters,n?.formatMonthCaption&&!n.formatCaption&&(n.formatCaption=n.formatMonthCaption),n?.formatYearCaption&&!n.formatYearDropdown&&(n.formatYearDropdown=n.formatYearCaption),{...a,...n}),labels:{...o,...t.labels},locale:r,classNames:{...(0,ek.a)(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:p,mode:h,navLayout:m,numberOfMonths:g=1,onDayBlur:w,onDayClick:k,onDayFocus:x,onDayKeyDown:_,onDayMouseEnter:S,onDayMouseLeave:E,onNextClick:C,onPrevClick:A,showWeekNumber:T,styles:O}=t,{formatCaption:P,formatDay:I,formatMonthDropdown:M,formatWeekNumber:z,formatWeekNumberHeader:N,formatWeekdayName:D,formatYearDropdown:L}=l,q=function(e,t){let[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:l,endOfYear:u,newDate:c,today:d}=t,{fromYear:f,toYear:p,fromMonth:h,toMonth:m}=e;!n&&h&&(n=h),!n&&f&&(n=t.newDate(f,0,1)),!r&&m&&(r=m),!r&&p&&(r=c(p,11,31));let g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=o(n):f?n=c(f,0,1):!n&&g&&(n=i(l(e.today??d(),-100))),r?r=s(r):p?r=c(p,11,31):!r&&g&&(r=u(e.today??d())),[n?a(n):n,r?a(r):r]}(e,t),{startOfMonth:i,endOfMonth:a}=t,o=eY(e,n,r,t),[l,u]=eX(o,e.month?o:void 0);(0,s.useEffect)(()=>{u(eY(e,n,r,t))},[e.timeZone]);let c=function(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}(l,r,e,t),d=function(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:h,endOfWeek:m,isAfter:g,startOfBroadcastWeek:y,startOfISOWeek:v,startOfWeek:b}=r,w=l?y(i,r):o?v(i):b(i),k=c(l?f(a):o?p(h(a)):m(h(a)),w),x=d(a,i)+1,_=[];for(let e=0;e<=k;e++){let n=u(w,e);if(t&&g(n,t))break;_.push(n)}let S=(l?35:42)*x;if(s&&_.length<S){let e=S-_.length;for(let t=0;t<e;t++){let e=u(_[_.length-1],1);_.push(e)}}return _}(c,e.endMonth?a(e.endMonth):void 0,e,t),f=function(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,h=e.reduce((e,h)=>{let m=n.broadcastCalendar?d(h,r):n.ISOWeek?f(h):p(h),g=n.broadcastCalendar?a(h):n.ISOWeek?o(s(h)):l(s(h)),y=t.filter(e=>e>=m&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&y.length<v){let e=t.filter(e=>{let t=v-y.length;return e>g&&e<=i(g,t)});y.push(...e)}let b=y.reduce((e,t)=>{let i=n.ISOWeek?u(t):c(t),a=e.find(e=>e.weekNumber===i),o=new eJ(t,h,r);return a?a.days.push(o):e.push(new eG(i,[o])),e},[]),w=new eK(h,b);return e.push(w),e},[]);return n.reverseMonths?h.reverse():h}(c,d,e,t),p=f.reduce((e,t)=>[...e,...t.weeks],[]),h=function(e){let t=[];return e.reduce((e,n)=>[...e,...n.weeks.reduce((e,t)=>[...e,...t.days],t)],t)}(f),m=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=r,u=o(e);if(!t||!(0>=l(u,t)))return s(u,-(i?a??1:1))}(l,n,e,t),g=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=r,u=o(e);if(!t||!(l(t,e)<a))return s(u,i?a:1)}(l,r,e,t),{disableNavigation:y,onMonthChange:v}=e,b=e=>{if(y)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),u(t),v?.(t)};return{months:f,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:m,nextMonth:g,goToMonth:b,goToDay:e=>{p.some(t=>t.days.some(t=>t.isEqualTo(e)))||b(e.date)}}}(t,c),{days:Y,months:J,navStart:G,navEnd:K,previousMonth:X,nextMonth:Q,goToMonth:ee}=q,et=function(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:c}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:h,endOfMonth:m,isAfter:g}=i,y=n&&p(n),b=r&&m(r),w={[v.pL.focused]:[],[v.pL.outside]:[],[v.pL.disabled]:[],[v.pL.hidden]:[],[v.pL.today]:[]},k={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(y&&h(e,y)),m=!!(b&&g(e,b)),v=!!(a&&V(e,a,i)),x=!!(o&&V(e,o,i))||p||m||!u&&!l&&r||u&&!1===l&&r,_=d(e,c??i.today());r&&w.outside.push(t),v&&w.disabled.push(t),x&&w.hidden.push(t),_&&w.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&V(e,r,i)&&(k[n]?k[n].push(t):k[n]=[t])})}return e=>{let t={[v.pL.focused]:!1,[v.pL.disabled]:!1,[v.pL.hidden]:!1,[v.pL.outside]:!1,[v.pL.today]:!1},n={};for(let n in w){let r=w[n];t[n]=r.some(t=>t===e)}for(let t in k)n[t]=k[t].some(t=>t===e);return{...t,...n}}}(Y,t,G,K,c),{isSelected:en,select:er,selected:ei}=function(e,t){let n=function(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=eX(n,i?n:void 0),s=i?n:a,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&l(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>!!s&&l(s,e)}}(e,t),r=function(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=eX(n,i?n:void 0),s=i?n:a,{isSameDay:l}=t,u=e=>s?.some(t=>l(t,e))??!1,{min:c,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(u(e)){if(s?.length===c||r&&s?.length===1)return;a=s?.filter(t=>!l(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:u}}(e,t),i=function(e,t){let{disabled:n,excludeDisabled:r,selected:i,required:a,onSelect:o}=e,[s,l]=eX(i,o?i:void 0),u=o?i:s;return{selected:u,select:(i,s,c)=>{let{min:d,max:f}=e,p=i?function(e,t,n=0,r=0,i=!1,a=R){let o,{from:s,to:l}=t||{},{isSameDay:u,isAfter:c,isBefore:d}=a;if(s||l){if(s&&!l)o=u(s,e)?i?{from:s,to:void 0}:void 0:d(e,s)?{from:e,to:s}:{from:s,to:e};else if(s&&l)if(u(s,e)&&u(l,e))o=i?{from:s,to:l}:void 0;else if(u(s,e))o={from:s,to:n>0?void 0:e};else if(u(l,e))o={from:e,to:n>0?void 0:e};else if(d(e,s))o={from:e,to:l};else if(c(e,s))o={from:s,to:e};else if(c(e,l))o={from:s,to:e};else throw Error("Invalid range")}else o={from:e,to:n>0?void 0:e};if(o?.from&&o?.to){let t=a.differenceInCalendarDays(o.to,o.from);r>0&&t>r?o={from:e,to:void 0}:n>1&&t<n&&(o={from:e,to:void 0})}return o}(i,u,d,f,a,t):void 0;return r&&n&&p?.from&&p.to&&function(e,t,n=R){let r=Array.isArray(t)?t:[t];if(r.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?F(e,t,!1,n):B(t,n)?t.some(t=>F(e,t,!1,n)):Z(t)?!!t.from&&!!t.to&&e0(e,{from:t.from,to:t.to},n):H(t)?function(e,t,n=R){let r=Array.isArray(t)?t:[t],i=e.from,a=Math.min(n.differenceInCalendarDays(e.to,e.from),6);for(let e=0;e<=a;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}(e,t.dayOfWeek,n):$(t)?n.isAfter(t.before,t.after)?e0(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):V(e.from,t,n)||V(e.to,t,n):!!(W(t)||U(t))&&(V(e.from,t,n)||V(e.to,t,n))))return!0;let i=r.filter(e=>"function"==typeof e);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=i,p.to=void 0),o||l(p),o?.(p,i,s,c),p},isSelected:e=>u&&F(u,e,!1,t)}}(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return i;default:return}}(t,c)??{},{blur:eo,focused:es,isFocusTarget:el,moveFocus:eu,setFocused:ec}=function(e,t,n,i,a){let{autoFocus:o}=e,[l,u]=(0,s.useState)(),c=function(e,t,n,i){let a,o=-1;for(let s of e){let e=t(s);eQ(e)&&(e[v.pL.focused]&&o<r.FocusedModifier?(a=s,o=r.FocusedModifier):i?.isEqualTo(s)&&o<r.LastFocused?(a=s,o=r.LastFocused):n(s.date)&&o<r.Selected?(a=s,o=r.Selected):e[v.pL.today]&&o<r.Today&&(a=s,o=r.Today))}return a||(a=e.find(e=>eQ(t(e)))),a}(t.days,n,i||(()=>!1),l),[d,f]=(0,s.useState)(o?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:f,focused:d,blur:()=>{u(d),f(void 0)},moveFocus:(n,r)=>{if(!d)return;let i=function e(t,n,r,i,a,o,s,l=0){if(l>365)return;let u=function(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:l}=a,{addDays:u,addMonths:c,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:h,endOfWeek:m,max:g,min:y,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:w}=o,k=({day:u,week:d,month:c,year:f,startOfWeek:e=>l?v(e,o):s?b(e):w(e),endOfWeek:e=>l?p(e):s?h(e):m(e)})[e](n,"after"===t?1:-1);return"before"===t&&r?k=g([r,k]):"after"===t&&i&&(k=y([i,k])),k}(t,n,r.date,i,a,o,s),c=!!(o.disabled&&V(u,o.disabled,s)),d=!!(o.hidden&&V(u,o.hidden,s)),f=new eJ(u,u,s);return c||d?e(t,n,f,i,a,o,s,l+1):f}(n,r,d,t.navStart,t.navEnd,e,a);i&&(t.goToDay(i),f(i))}}}(t,q,et,en??(()=>!1),c),{labelDayButton:ed,labelGridcell:ef,labelGrid:ep,labelMonthDropdown:eh,labelNav:em,labelPrevious:eg,labelNext:ey,labelWeekday:ev,labelWeekNumber:eb,labelWeekNumberHeader:ew,labelYearDropdown:ex}=u,e_=(0,s.useMemo)(()=>(function(e,t,n){let r=e.today(),i=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let t=0;t<7;t++){let n=e.addDays(i,t);a.push(n)}return a})(c,t.ISOWeek),[c,t.ISOWeek]),eS=void 0!==h||void 0!==k,eE=(0,s.useCallback)(()=>{X&&(ee(X),A?.(X))},[X,ee,A]),eC=(0,s.useCallback)(()=>{Q&&(ee(Q),C?.(Q))},[ee,Q,C]),eA=(0,s.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ec(e),er?.(e.date,t,n),k?.(e.date,t,n)},[er,k,ec]),eT=(0,s.useCallback)((e,t)=>n=>{ec(e),x?.(e.date,t,n)},[x,ec]),eO=(0,s.useCallback)((e,t)=>n=>{eo(),w?.(e.date,t,n)},[eo,w]),eP=(0,s.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?"month":"day","rtl"===t.dir?"after":"before"],ArrowRight:[r.shiftKey?"month":"day","rtl"===t.dir?"before":"after"],ArrowDown:[r.shiftKey?"year":"week","after"],ArrowUp:[r.shiftKey?"year":"week","before"],PageUp:[r.shiftKey?"year":"month","before"],PageDown:[r.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];eu(e,t)}_?.(e.date,n,r)},[eu,_,t.dir]),eI=(0,s.useCallback)((e,t)=>n=>{S?.(e.date,t,n)},[S]),eM=(0,s.useCallback)((e,t)=>n=>{E?.(e.date,t,n)},[E]),ez=(0,s.useCallback)(e=>t=>{let n=Number(t.target.value);ee(c.setMonth(c.startOfMonth(e),n))},[c,ee]),eN=(0,s.useCallback)(e=>t=>{let n=Number(t.target.value);ee(c.setYear(c.startOfMonth(e),n))},[c,ee]),{className:eD,style:eL}=(0,s.useMemo)(()=>({className:[f[v.UI.Root],t.className].filter(Boolean).join(" "),style:{...O?.[v.UI.Root],...t.style}}),[f,t.className,t.style,O]),ej=function(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(t),eR=(0,s.useRef)(null);!function(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,s.useRef)(null),l=(0,s.useRef)(r),u=(0,s.useRef)(!1);(0,s.useLayoutEffect)(()=>{let s=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||0===r.length||0===s.length||r.length!==s.length)return;let c=a.isSameMonth(r[0].date,s[0].date),d=a.isAfter(r[0].date,s[0].date),f=d?n[v.X5.caption_after_enter]:n[v.X5.caption_before_enter],p=d?n[v.X5.weeks_after_enter]:n[v.X5.weeks_before_enter],h=o.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(eB(m).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=eH(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);let n=eV(e);n&&n.classList.remove(f);let r=eq(e);r&&r.classList.remove(p)}),o.current=m):o.current=null,u.current||c||i)return;let g=h instanceof HTMLElement?eB(h):[],y=eB(e.current);if(y&&y.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){u.current=!0;let t=[];e.current.style.isolation="isolate";let r=eH(e.current.querySelector("[data-animated-nav]"));r&&(r.style.zIndex="1"),y.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position="relative",i.style.overflow="hidden";let s=eV(i);s&&s.classList.add(f);let l=eq(i);l&&l.classList.add(p);let c=()=>{u.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position="",i.style.overflow="",i.contains(o)&&i.removeChild(o)};t.push(c),o.style.pointerEvents="none",o.style.position="absolute",o.style.overflow="hidden",o.setAttribute("aria-hidden","true");let h=eH(o.querySelector("[data-animated-weekdays]"));h&&(h.style.opacity="0");let m=eV(o);m&&(m.classList.add(d?n[v.X5.caption_before_exit]:n[v.X5.caption_after_exit]),m.addEventListener("animationend",c));let y=eq(o);y&&y.classList.add(d?n[v.X5.weeks_before_exit]:n[v.X5.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}(eR,!!t.animate,{classNames:f,months:J,focused:es,dateLib:c});let eF={dayPickerProps:t,selected:ei,select:er,isSelected:en,months:J,nextMonth:Q,previousMonth:X,goToMonth:ee,getModifiers:et,components:n,classNames:f,styles:O,labels:u,formatters:l};return s.createElement(ea.Provider,{value:eF},s.createElement(n.Root,{rootRef:t.animate?eR:void 0,className:eD,style:eL,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...ej},s.createElement(n.Months,{className:f[v.UI.Months],style:O?.[v.UI.Months]},!t.hideNavigation&&!m&&s.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[v.UI.Nav],style:O?.[v.UI.Nav],"aria-label":em(),onPreviousClick:eE,onNextClick:eC,previousMonth:X,nextMonth:Q}),J.map((e,r)=>{let i=function(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=i;return l({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:u(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}(e.date,G,K,l,c),a=function(e,t,n,r){if(!e||!t)return;let{startOfYear:i,endOfYear:a,addYears:o,getYear:s,isBefore:l,isSameYear:u}=r,c=i(e),d=a(t),f=[],p=c;for(;l(p,d)||u(p,d);)f.push(p),p=o(p,1);return f.map(e=>{let t=n.formatYearDropdown(e,r);return{value:s(e),label:t,disabled:!1}})}(G,K,l,c);return s.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:f[v.UI.Month],style:O?.[v.UI.Month],key:r,displayIndex:r,calendarMonth:e},"around"===m&&!t.hideNavigation&&0===r&&s.createElement(n.PreviousMonthButton,{type:"button",className:f[v.UI.PreviousMonthButton],tabIndex:X?void 0:-1,"aria-disabled":!X||void 0,"aria-label":eg(X),onClick:eE,"data-animated-button":t.animate?"true":void 0},s.createElement(n.Chevron,{disabled:!X||void 0,className:f[v.UI.Chevron],orientation:"rtl"===t.dir?"right":"left"})),s.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:f[v.UI.MonthCaption],style:O?.[v.UI.MonthCaption],calendarMonth:e,displayIndex:r},p?.startsWith("dropdown")?s.createElement(n.DropdownNav,{className:f[v.UI.Dropdowns],style:O?.[v.UI.Dropdowns]},"dropdown"===p||"dropdown-months"===p?s.createElement(n.MonthsDropdown,{className:f[v.UI.MonthsDropdown],"aria-label":eh(),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:ez(e.date),options:i,style:O?.[v.UI.Dropdown],value:c.getMonth(e.date)}):s.createElement("span",null,M(e.date,c)),"dropdown"===p||"dropdown-years"===p?s.createElement(n.YearsDropdown,{className:f[v.UI.YearsDropdown],"aria-label":ex(c.options),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:eN(e.date),options:a,style:O?.[v.UI.Dropdown],value:c.getYear(e.date)}):s.createElement("span",null,L(e.date,c)),s.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},P(e.date,c.options,c))):s.createElement(n.CaptionLabel,{className:f[v.UI.CaptionLabel],role:"status","aria-live":"polite"},P(e.date,c.options,c))),"around"===m&&!t.hideNavigation&&r===g-1&&s.createElement(n.NextMonthButton,{type:"button",className:f[v.UI.NextMonthButton],tabIndex:Q?void 0:-1,"aria-disabled":!Q||void 0,"aria-label":ey(Q),onClick:eC,"data-animated-button":t.animate?"true":void 0},s.createElement(n.Chevron,{disabled:!Q||void 0,className:f[v.UI.Chevron],orientation:"rtl"===t.dir?"left":"right"})),r===g-1&&"after"===m&&!t.hideNavigation&&s.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[v.UI.Nav],style:O?.[v.UI.Nav],"aria-label":em(),onPreviousClick:eE,onNextClick:eC,previousMonth:X,nextMonth:Q}),s.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===h||"range"===h,"aria-label":ep(e.date,c.options,c)||void 0,className:f[v.UI.MonthGrid],style:O?.[v.UI.MonthGrid]},!t.hideWeekdays&&s.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:f[v.UI.Weekdays],style:O?.[v.UI.Weekdays]},T&&s.createElement(n.WeekNumberHeader,{"aria-label":ew(c.options),className:f[v.UI.WeekNumberHeader],style:O?.[v.UI.WeekNumberHeader],scope:"col"},N()),e_.map((e,t)=>s.createElement(n.Weekday,{"aria-label":ev(e,c.options,c),className:f[v.UI.Weekday],key:t,style:O?.[v.UI.Weekday],scope:"col"},D(e,c.options,c)))),s.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:f[v.UI.Weeks],style:O?.[v.UI.Weeks]},e.weeks.map((e,r)=>s.createElement(n.Week,{className:f[v.UI.Week],key:e.weekNumber,style:O?.[v.UI.Week],week:e},T&&s.createElement(n.WeekNumber,{week:e,style:O?.[v.UI.WeekNumber],"aria-label":eb(e.weekNumber,{locale:d}),className:f[v.UI.WeekNumber],scope:"row",role:"rowheader"},z(e.weekNumber,c)),e.days.map(e=>{let{date:r}=e,i=et(e);if(i[v.pL.focused]=!i.hidden&&!!es?.isEqualTo(e),i[v.wc.selected]=en?.(r)||i.selected,Z(ei)){let{from:e,to:t}=ei;i[v.wc.range_start]=!!(e&&t&&c.isSameDay(r,e)),i[v.wc.range_end]=!!(e&&t&&c.isSameDay(r,t)),i[v.wc.range_middle]=F(ei,r,!0,c)}let a=function(e,t={},n={}){let r={...t?.[v.UI.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{r={...r,...n?.[e]}}),r}(i,O,t.modifiersStyles),o=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[r])=>(n[r]?e.push(n[r]):t[v.pL[r]]?e.push(t[v.pL[r]]):t[v.wc[r]]&&e.push(t[v.wc[r]]),e),[t[v.UI.Day]])}(i,f,t.modifiersClassNames),l=eS||i.hidden?void 0:ef(r,i,c.options,c);return s.createElement(n.Day,{key:`${c.format(r,"yyyy-MM-dd")}_${c.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:i,className:o.join(" "),style:a,role:"gridcell","aria-selected":i.selected||void 0,"aria-label":l,"data-day":c.format(r,"yyyy-MM-dd"),"data-month":e.outside?c.format(r,"yyyy-MM"):void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&eS?s.createElement(n.DayButton,{className:f[v.UI.DayButton],style:O?.[v.UI.DayButton],type:"button",day:e,modifiers:i,disabled:i.disabled||void 0,tabIndex:el(e)?0:-1,"aria-label":ed(r,i,c.options,c),onClick:eA(e,i),onBlur:eO(e,i),onFocus:eT(e,i),onKeyDown:eP(e,i),onMouseEnter:eI(e,i),onMouseLeave:eM(e,i)},I(r,c.options,c)):!i.hidden&&I(e.date,c.options,c))}))))))})),t.footer&&s.createElement(n.Footer,{className:f[v.UI.Footer],style:O?.[v.UI.Footer],role:"status","aria-live":"polite"},t.footer)))}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(r||(r={}))},9026:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},9033:(e,t,n)=>{"use strict";e.exports=n(2436)},9051:(e,t,n)=>{"use strict";n.d(t,{OK:()=>Y,bL:()=>V,VM:()=>x,lr:()=>z,LM:()=>q});var r=n(2115),i=n(3655),a=n(8905),o=n(6081),s=n(6101),l=n(1414),u=n(4315),c=n(2712),d=n(5185),f=n(5155),p="ScrollArea",[h,m]=(0,o.A)(p),[g,y]=h(p),v=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:a="hover",dir:o,scrollHideDelay:l=600,...c}=e,[d,p]=r.useState(null),[h,m]=r.useState(null),[y,v]=r.useState(null),[b,w]=r.useState(null),[k,x]=r.useState(null),[_,S]=r.useState(0),[E,C]=r.useState(0),[A,T]=r.useState(!1),[O,P]=r.useState(!1),I=(0,s.s)(t,e=>p(e)),M=(0,u.jH)(o);return(0,f.jsx)(g,{scope:n,type:a,dir:M,scrollHideDelay:l,scrollArea:d,viewport:h,onViewportChange:m,content:y,onContentChange:v,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:A,onScrollbarXEnabledChange:T,scrollbarY:k,onScrollbarYChange:x,scrollbarYEnabled:O,onScrollbarYEnabledChange:P,onCornerWidthChange:S,onCornerHeightChange:C,children:(0,f.jsx)(i.sG.div,{dir:M,...c,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});v.displayName=p;var b="ScrollAreaViewport",w=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:a,nonce:o,...l}=e,u=y(b,n),c=r.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});w.displayName=b;var k="ScrollAreaScrollbar",x=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=y(k,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=a,l="horizontal"===e.orientation;return r.useEffect(()=>(l?o(!0):s(!0),()=>{l?o(!1):s(!1)}),[l,o,s]),"hover"===a.type?(0,f.jsx)(_,{...i,ref:t,forceMount:n}):"scroll"===a.type?(0,f.jsx)(S,{...i,ref:t,forceMount:n}):"auto"===a.type?(0,f.jsx)(E,{...i,ref:t,forceMount:n}):"always"===a.type?(0,f.jsx)(C,{...i,ref:t}):null});x.displayName=k;var _=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=y(k,e.__scopeScrollArea),[s,l]=r.useState(!1);return r.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),(0,f.jsx)(a.C,{present:n||s,children:(0,f.jsx)(E,{"data-state":s?"visible":"hidden",...i,ref:t})})}),S=r.forwardRef((e,t)=>{var n;let{forceMount:i,...o}=e,s=y(k,e.__scopeScrollArea),l="horizontal"===e.orientation,u=H(()=>p("SCROLL_END"),100),[c,p]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,p]),r.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(p("SCROLL"),u()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,l,p,u]),(0,f.jsx)(a.C,{present:i||"hidden"!==c,children:(0,f.jsx)(C,{"data-state":"hidden"===c?"hidden":"visible",...o,ref:t,onPointerEnter:(0,d.m)(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:(0,d.m)(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),E=r.forwardRef((e,t)=>{let n=y(k,e.__scopeScrollArea),{forceMount:i,...o}=e,[s,l]=r.useState(!1),u="horizontal"===e.orientation,c=H(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return B(n.viewport,c),B(n.content,c),(0,f.jsx)(a.C,{present:i||s,children:(0,f.jsx)(C,{"data-state":s?"visible":"hidden",...o,ref:t})})}),C=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,a=y(k,e.__scopeScrollArea),o=r.useRef(null),s=r.useRef(0),[l,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=F(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=$(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return W([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===n?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=Z(a.viewport.scrollLeft,l,a.dir);o.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===n?(0,f.jsx)(T,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=Z(a.viewport.scrollTop,l);o.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null}),A=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=y(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,o.onScrollbarXChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(I,{"data-orientation":"horizontal",...a,ref:d,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&i({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:R(l.paddingLeft),paddingEnd:R(l.paddingRight)}})}})}),T=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=y(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,o.onScrollbarYChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(I,{"data-orientation":"vertical",...a,ref:d,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&i({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:R(l.paddingTop),paddingEnd:R(l.paddingBottom)}})}})}),[O,P]=h(k),I=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:a,hasThumb:o,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:p,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:g,onResize:v,...b}=e,w=y(k,n),[x,_]=r.useState(null),S=(0,s.s)(t,e=>_(e)),E=r.useRef(null),C=r.useRef(""),A=w.viewport,T=a.content-a.viewport,P=(0,l.c)(g),I=(0,l.c)(h),M=H(v,10);function z(e){E.current&&m({x:e.clientX-E.current.left,y:e.clientY-E.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&P(e,T)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,x,T,P]),r.useEffect(I,[a,I]),B(x,M),B(w.content,M),(0,f.jsx)(O,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:I,onThumbPointerDown:(0,l.c)(p),children:(0,f.jsx)(i.sG.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:(0,d.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),E.current=x.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),z(e))}),onPointerMove:(0,d.m)(e.onPointerMove,z),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,w.viewport&&(w.viewport.style.scrollBehavior=""),E.current=null})})})}),M="ScrollAreaThumb",z=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=P(M,e.__scopeScrollArea);return(0,f.jsx)(a.C,{present:n||i.hasThumb,children:(0,f.jsx)(N,{ref:t,...r})})}),N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:a,...o}=e,l=y(M,n),u=P(M,n),{onThumbPositionChange:c}=u,p=(0,s.s)(t,e=>u.onThumbChange(e)),h=r.useRef(void 0),m=H(()=>{h.current&&(h.current(),h.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),h.current||(h.current=U(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:(0,d.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,d.m)(e.onPointerUp,u.onThumbPointerUp)})});z.displayName=M;var D="ScrollAreaCorner",L=r.forwardRef((e,t)=>{let n=y(D,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,f.jsx)(j,{...e,ref:t}):null});L.displayName=D;var j=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...a}=e,o=y(D,n),[s,l]=r.useState(0),[u,c]=r.useState(0),d=!!(s&&u);return B(o.scrollbarX,()=>{var e;let t=(null==(e=o.scrollbarX)?void 0:e.offsetHeight)||0;o.onCornerHeightChange(t),c(t)}),B(o.scrollbarY,()=>{var e;let t=(null==(e=o.scrollbarY)?void 0:e.offsetWidth)||0;o.onCornerWidthChange(t),l(t)}),d?(0,f.jsx)(i.sG.div,{...a,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function R(e){return e?parseInt(e,10):0}function F(e,t){let n=e/t;return isNaN(n)?0:n}function $(e){let t=F(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=$(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return W([0,o],[0,a-r])(s)}function W(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function H(e,t){let n=(0,l.c)(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function B(e,t){let n=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var V=v,q=w,Y=L},9072:(e,t,n)=>{"use strict";var r,i,a,o;n.d(t,{UI:()=>r,X5:()=>o,pL:()=>i,wc:()=>a}),function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(r||(r={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(i||(i={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(a||(a={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(o||(o={}))},9074:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9092:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(9447);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}},9143:(e,t,n)=>{"use strict";n.d(t,{Di:()=>y,b8:()=>N,bD:()=>f,eM:()=>E,iM:()=>P,u1:()=>p,u6:()=>k});var r,i,a,o,s,l,u="vercel.ai.error",c=Symbol.for(u),d=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[r]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,u)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};r=c;var f=d;function p(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var h="AI_InvalidArgumentError",m=`vercel.ai.error.${h}`,g=Symbol.for(m),y=class extends f{constructor({message:e,cause:t,argument:n}){super({name:h,message:e,cause:t}),this[i]=!0,this.argument=n}static isInstance(e){return f.hasMarker(e,m)}};i=g,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var v="AI_JSONParseError",b=`vercel.ai.error.${v}`,w=Symbol.for(b),k=class extends f{constructor({text:e,cause:t}){super({name:v,message:`JSON parsing failed: Text: ${e}.
34
+ ]`;continue}i+=r[e],"\\"===r[e]?a=!0:o&&"]"===r[e]?o=!1:o||"["!==r[e]||(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function eY(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===l.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??ej(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===l.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=eW(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===l.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===l.ZodBranded&&e.keyType._def.type._def.typeName===l.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=e$(e.keyType._def,t);return{...n,propertyNames:i}}return n}let eJ={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},eG=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>eK(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function eK(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.(e,t,r,n);if(i!==y)return i}if(r&&!n){let e=eX(r,t);if(void 0!==e)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=((e,t,n)=>{switch(t){case l.ZodString:return eW(e,n);case l.ZodNumber:var r,i,a,o,s,u,c,d,f,p=e,h=n;let m={type:"number"};if(!p.checks)return m;for(let e of p.checks)switch(e.kind){case"int":m.type="integer",eR(m,"type",e.message,h);break;case"min":"jsonSchema7"===h.target?e.inclusive?eF(m,"minimum",e.value,e.message,h):eF(m,"exclusiveMinimum",e.value,e.message,h):(e.inclusive||(m.exclusiveMinimum=!0),eF(m,"minimum",e.value,e.message,h));break;case"max":"jsonSchema7"===h.target?e.inclusive?eF(m,"maximum",e.value,e.message,h):eF(m,"exclusiveMaximum",e.value,e.message,h):(e.inclusive||(m.exclusiveMaximum=!0),eF(m,"maximum",e.value,e.message,h));break;case"multipleOf":eF(m,"multipleOf",e.value,e.message,h)}return m;case l.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],a=e.shape();for(let e in a){let o=a[e];if(void 0===o||void 0===o._def)continue;let s=function(e){try{return e.isOptional()}catch{return!0}}(o);s&&n&&("ZodOptional"===o._def.typeName&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);let l=eK(o._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,s||i.push(e))}i.length&&(r.required=i);let o=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return eK(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==o&&(r.additionalProperties=o),r}(e,n);case l.ZodBigInt:var g=e,y=n;let v={type:"integer",format:"int64"};if(!g.checks)return v;for(let e of g.checks)switch(e.kind){case"min":"jsonSchema7"===y.target?e.inclusive?eF(v,"minimum",e.value,e.message,y):eF(v,"exclusiveMinimum",e.value,e.message,y):(e.inclusive||(v.exclusiveMinimum=!0),eF(v,"minimum",e.value,e.message,y));break;case"max":"jsonSchema7"===y.target?e.inclusive?eF(v,"maximum",e.value,e.message,y):eF(v,"exclusiveMaximum",e.value,e.message,y):(e.inclusive||(v.exclusiveMaximum=!0),eF(v,"maximum",e.value,e.message,y));break;case"multipleOf":eF(v,"multipleOf",e.value,e.message,y)}return v;case l.ZodBoolean:return{type:"boolean"};case l.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t,o=n;let s={type:"integer",format:"unix-time"};if("openApi3"===o.target)return s;for(let e of a.checks)switch(e.kind){case"min":eF(s,"minimum",e.value,e.message,o);break;case"max":eF(s,"maximum",e.value,e.message,o)}return s}}(e,n);case l.ZodUndefined:return{not:ej(n)};case l.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case l.ZodArray:var b=e,w=n;let k={type:"array"};return b.type?._def&&b.type?._def?.typeName!==l.ZodAny&&(k.items=eK(b.type._def,{...w,currentPath:[...w.currentPath,"items"]})),b.minLength&&eF(k,"minItems",b.minLength.value,b.minLength.message,w),b.maxLength&&eF(k,"maxItems",b.maxLength.value,b.maxLength.message,w),b.exactLength&&(eF(k,"minItems",b.exactLength.value,b.exactLength.message,w),eF(k,"maxItems",b.exactLength.value,b.exactLength.message,w)),k;case l.ZodUnion:case l.ZodDiscriminatedUnion:var x=e,_=n;if("openApi3"===_.target)return eG(x,_);let S=x.options instanceof Map?Array.from(x.options.values()):x.options;if(S.every(e=>e._def.typeName in eJ&&(!e._def.checks||!e._def.checks.length))){let e=S.reduce((e,t)=>{let n=eJ[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(S.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=S.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===S.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:S.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(S.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:S.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return eG(x,_);case l.ZodIntersection:var E=e,C=n;let A=[eK(E.left._def,{...C,currentPath:[...C.currentPath,"allOf","0"]}),eK(E.right._def,{...C,currentPath:[...C.currentPath,"allOf","1"]})].filter(e=>!!e),T="jsonSchema2019-09"===C.target?{unevaluatedProperties:!1}:void 0,O=[];return A.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)O.push(...e.allOf),void 0===e.unevaluatedProperties&&(T=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else T=void 0;O.push(t)}}),O.length?{allOf:O,...T}:void 0;case l.ZodTuple:return r=e,i=n,r.rest?{type:"array",minItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:eK(r.rest._def,{...i,currentPath:[...i.currentPath,"additionalItems"]})}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case l.ZodRecord:return eY(e,n);case l.ZodLiteral:var P=e,I=n;let M=typeof P.value;return"bigint"!==M&&"number"!==M&&"boolean"!==M&&"string"!==M?{type:Array.isArray(P.value)?"array":"object"}:"openApi3"===I.target?{type:"bigint"===M?"integer":M,enum:[P.value]}:{type:"bigint"===M?"integer":M,const:P.value};case l.ZodEnum:return{type:"string",enum:Array.from(e.values)};case l.ZodNativeEnum:var z=e;let N=z.values,D=Object.keys(z.values).filter(e=>"number"!=typeof N[N[e]]).map(e=>N[e]),L=Array.from(new Set(D.map(e=>typeof e)));return{type:1===L.length?"string"===L[0]?"string":"number":["string","number"],enum:D};case l.ZodNullable:var j=e,R=n;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(j.innerType._def.typeName)&&(!j.innerType._def.checks||!j.innerType._def.checks.length))return"openApi3"===R.target?{type:eJ[j.innerType._def.typeName],nullable:!0}:{type:[eJ[j.innerType._def.typeName],"null"]};if("openApi3"===R.target){let e=eK(j.innerType._def,{...R,currentPath:[...R.currentPath]});return e&&"$ref"in e?{allOf:[e],nullable:!0}:e&&{...e,nullable:!0}}let F=eK(j.innerType._def,{...R,currentPath:[...R.currentPath,"anyOf","0"]});return F&&{anyOf:[F,{type:"null"}]};case l.ZodOptional:var $=e,Z=n;if(Z.currentPath.toString()===Z.propertyPath?.toString())return eK($.innerType._def,Z);let W=eK($.innerType._def,{...Z,currentPath:[...Z.currentPath,"anyOf","1"]});return W?{anyOf:[{not:ej(Z)},W]}:ej(Z);case l.ZodMap:return a=e,"record"===(o=n).mapStrategy?eY(a,o):{type:"array",maxItems:125,items:{type:"array",items:[eK(a.keyType._def,{...o,currentPath:[...o.currentPath,"items","items","0"]})||ej(o),eK(a.valueType._def,{...o,currentPath:[...o.currentPath,"items","items","1"]})||ej(o)],minItems:2,maxItems:2}};case l.ZodSet:var U=e,H=n;let B={type:"array",uniqueItems:!0,items:eK(U.valueType._def,{...H,currentPath:[...H.currentPath,"items"]})};return U.minSize&&eF(B,"minItems",U.minSize.value,U.minSize.message,H),U.maxSize&&eF(B,"maxItems",U.maxSize.value,U.maxSize.message,H),B;case l.ZodLazy:return()=>e.getter()._def;case l.ZodPromise:return eK(e.type._def,n);case l.ZodNaN:case l.ZodNever:return"openAi"===(s=n).target?void 0:{not:ej({...s,currentPath:[...s.currentPath,"not"]})};case l.ZodEffects:return u=e,"input"===(c=n).effectStrategy?eK(u.schema._def,c):ej(c);case l.ZodAny:case l.ZodUnknown:return ej(n);case l.ZodDefault:return d=e,f=n,{...eK(d.innerType._def,f),default:d.defaultValue()};case l.ZodBranded:return e$(e,n);case l.ZodReadonly:case l.ZodCatch:return eK(e.innerType._def,n);case l.ZodPipeline:var V=e,q=n;if("input"===q.pipeStrategy)return eK(V.in._def,q);if("output"===q.pipeStrategy)return eK(V.out._def,q);let Y=eK(V.in._def,{...q,currentPath:[...q.currentPath,"allOf","0"]}),J=eK(V.out._def,{...q,currentPath:[...q.currentPath,"allOf",Y?"1":"0"]});return{allOf:[Y,J].filter(e=>void 0!==e)};case l.ZodFunction:case l.ZodVoid:case l.ZodSymbol:default:return}})(e,e.typeName,t),o="function"==typeof a?eK(a(),t):a;if(o&&eQ(e,t,o),t.postProcess){let n=t.postProcess(o,e,t);return i.jsonSchema=o,n}return i.jsonSchema=o,o}let eX=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:eL(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ej(t);return"seen"===t.$refStrategy?ej(t):void 0}},eQ=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n);n(9509);var e0=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new u.Di({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},e1=e0(),e2=/"__proto__"\s*:/,e4=/"constructor"\s*:/,e9=Symbol.for("vercel.ai.validator");async function e5({value:e,schema:t}){let n=await e3({value:e,schema:t});if(!n.success)throw u.iM.wrap({value:e,cause:n.error});return n.value}async function e3({value:e,schema:t}){var n;let r="object"==typeof t&&null!==t&&e9 in t&&!0===t[e9]&&"validate"in t?t:(n=t,{[e9]:!0,validate:async e=>{let t=await n["~standard"].validate(e);return null==t.issues?{success:!0,value:t.value}:{success:!1,error:new u.iM({value:e,cause:t.issues})}}});try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:u.iM.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:u.iM.wrap({value:e,cause:t}),rawValue:e}}}async function e6({text:e,schema:t}){try{let n=function(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===e2.test(e)&&!1===e4.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}finally{Error.stackTraceLimit=t}}(e);if(null==t)return{success:!0,value:n,rawValue:n};return await e3({value:n,schema:t})}catch(t){return{success:!1,error:u.u6.isInstance(t)?t:new u.u6({text:e,cause:t}),rawValue:void 0}}}function e8({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new f).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await e6({text:e,schema:t}))}}))}async function e7(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var te=Symbol.for("vercel.ai.schema");function tt(e,{validate:t}={}){return{[te]:!0,_type:void 0,[e9]:!0,jsonSchema:e,validate:t}}function tn(e){return null==e?tt({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&te in e&&!0===e[te]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var n;return"_zod"in e?tt(function(e,t){if(e instanceof p.rs){let n=new m(t),r={};for(let t of e._idmap.entries()){let[e,r]=t;n.process(r)}let i={},a={registry:e,uri:t?.uri,defs:r};for(let r of e._idmap.entries()){let[e,o]=r;i[e]=n.emit(o,{...t,external:a})}return Object.keys(r).length>0&&(i.__shared={["draft-2020-12"===n.target?"$defs":"definitions"]:r}),{schemas:i}}let n=new m(t);return n.process(e),n.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let n=await g.bp(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}}):tt(((e,t)=>{let n=(e=>{let t,n="string"==typeof(t=e)?{...v,name:t}:{...v,...t},r=void 0!==n.name?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:eK(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??ej(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=eK(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??ej(n),o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let s=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?s.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s})(e,{$refStrategy:(n=void 0,"none"),target:"jsonSchema7"}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}(e)}var{btoa:tr,atob:ti}=globalThis;function ta(e){let t=ti(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}function to(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return tr(t)}},7239:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(5703);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},7386:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(9447);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},7486:(e,t,n)=>{"use strict";n.d(t,{qg:()=>l,EJ:()=>u,xL:()=>c,bp:()=>d});var r=n(8753),i=n(3793),a=n(4193);let o=(e,t)=>{i.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>i.Wk(e,t)},flatten:{value:t=>i.JM(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};a.xI("ZodError",o);let s=a.xI("ZodError",o,{Parent:Error}),l=r.Tj(s),u=r.Rb(s),c=r.Od(s),d=r.wG(s)},7519:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(5703),i=n(540),a=n(7239),o=n(1182),s=n(9447);function l(e,t){let n=(0,s.a)(e,null==t?void 0:t.in);return Math.round(((0,i.b)(n)-function(e,t){let n=(0,o.p)(e,void 0),r=(0,a.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,i.b)(r)}(n))/r.my)+1}},7915:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},7924:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(6301))},8093:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let i,a=r[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:a,formatRelative:(e,t,n,r)=>o[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},8240:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nc});var r={};n.r(r),n.d(r,{boolean:()=>y,booleanish:()=>v,commaOrSpaceSeparated:()=>_,commaSeparated:()=>x,number:()=>w,overloadedBoolean:()=>b,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tp,contentInitial:()=>ts,disable:()=>th,document:()=>to,flow:()=>tu,flowInitial:()=>tl,insideSpan:()=>tf,string:()=>tc,text:()=>td});var a=n(4093);let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function u(e,t){return((t||l).jsx?s:o).test(e)}let c=/[ \t\n\f\r]/g;function d(e){return""===e.replace(c,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function h(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class m{constructor(e,t){this.attribute=t,this.property=e}}m.prototype.attribute="",m.prototype.booleanish=!1,m.prototype.boolean=!1,m.prototype.commaOrSpaceSeparated=!1,m.prototype.commaSeparated=!1,m.prototype.defined=!1,m.prototype.mustUseProperty=!1,m.prototype.number=!1,m.prototype.overloadedBoolean=!1,m.prototype.property="",m.prototype.spaceSeparated=!1,m.prototype.space=void 0;let g=0,y=S(),v=S(),b=S(),w=S(),k=S(),x=S(),_=S();function S(){return 2**++g}let E=Object.keys(r);class C extends m{constructor(e,t,n,i){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++a<E.length;){let e=E[a];!function(e,t,n){n&&(e[t]=n)}(this,E[a],(n&r[e])===r[e])}}}function A(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new C(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[h(r)]=r,n[h(a.attribute)]=r}return new f(t,n,e.space)}C.prototype.defined=!0;let T=A({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:v,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:k,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:w,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:k,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:v,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function P(e,t){return O(e,t.toLowerCase())}let I=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:k,autoFocus:y,autoPlay:y,blocking:k,capture:null,charSet:null,checked:y,cite:null,className:k,cols:w,colSpan:null,content:null,contentEditable:v,controls:y,controlsList:k,coords:w|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:b,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:k,height:w,hidden:b,high:w,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:k,itemRef:k,itemScope:y,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:w,pattern:null,ping:k,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:k,required:y,reversed:y,rows:w,rowSpan:w,sandbox:k,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:P}),M=A({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:_,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_,rev:_,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_,requiredFeatures:_,requiredFonts:_,requiredFormats:_,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:_,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),z=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),N=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:P}),D=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),L=p([T,I,z,N,D],"html"),j=p([T,M,z,N,D],"svg"),R=/[A-Z]/g,F=/-[a-z]/g,$=/^data[-\w.:]+$/i;function Z(e){return"-"+e.toLowerCase()}function W(e){return e.charAt(1).toUpperCase()}let U={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var H=n(3724);let B=q("end"),V=q("start");function q(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Y(e){return e&&"object"==typeof e?"position"in e||"type"in e?G(e.position):"start"in e||"end"in e?G(e):"line"in e||"column"in e?J(e):"":""}function J(e){return K(e&&e.line)+":"+K(e&&e.column)}function G(e){return J(e&&e.start)+"-"+J(e&&e.end)}function K(e){return e&&"number"==typeof e?e:1}class X extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Y(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}X.prototype.file="",X.prototype.name="",X.prototype.reason="",X.prototype.message="",X.prototype.stack="",X.prototype.column=void 0,X.prototype.line=void 0,X.prototype.ancestors=void 0,X.prototype.cause=void 0,X.prototype.fatal=void 0,X.prototype.place=void 0,X.prototype.ruleId=void 0,X.prototype.source=void 0;let Q={}.hasOwnProperty,ee=new Map,et=/[A-Z]/g,en=new Set(["table","tbody","thead","tfoot","tr"]),er=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ea(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=j),e.ancestors.push(t);let i=eu(e,t.tagName,!1),a=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Q.call(t.properties,r)){let a=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=m;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&$.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(F,W);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!F.test(e)){let n=e.replace(R,Z);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=C}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return H(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new X("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ei+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Q.call(e,t)&&(n[function(e){let t=e.replace(et,ed);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&er.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=el(e,t);return en.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),eo(e,a,i,t),es(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,a.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ec(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=j),e.ancestors.push(t);let i=null===t.name?e.Fragment:eu(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,a.ok)("ObjectExpression"===i.type);let o=i.properties[0];(0,a.ok)("SpreadElement"===o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ec(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,a.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else ec(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=el(e,t);return eo(e,o,i,t),es(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ec(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return es(r,el(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,i=e.passKeys?new Map:ee;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=ea(e,o,a);void 0!==s&&n.push(s)}return n}function eu(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=u(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,a.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return Q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ec(e)}function ec(e,t){let n=new X("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ed(e){return"-"+e.toLowerCase()}let ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ep=n(5155);n(2115);var eh=n(4392),em=n(1603);class eg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ey(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ey(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ey(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);ey(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ey(this.left,t.reverse())}}}function ey(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ev(e){let t,n,r,i,a,o,s,l={},u=-1,c=new eg(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);s.push(o),!p._tokenizer&&(n=a.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return(0,em.m)(e,0,1/0,c.slice(0)),!s}var eb=n(9381),ew=n(4581),ek=n(2556);let ex={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,ek.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},e_={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,em.m)(i.events,a+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(o===a.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eS,c,d)(n)}function c(e){return t&&y(),g(o),f(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(eS,p,h)(t)}function p(e){return o++,a.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,ek.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;(0,em.m)(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eS={tokenize:function(e,t,n){return(0,ew.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var eE=n(5333);let eC={resolve:function(e){return ev(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,ek.HP)(t)?e.check(eA,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eA={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,ek.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eT={tokenize:function(e){let t=this,n=e.attempt(eE.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,ew.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eC,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eO={resolveAll:ez()},eP=eM("string"),eI=eM("text");function eM(e){return{resolveAll:ez("text"===e?eN:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ez(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let eD={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,ek.On)(n)?(0,ew.N)(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||(0,ek.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},eL={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eE.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,ew.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,ek.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eR,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,ew.N)(e,e.attempt(eL,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,ek.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eD,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,ek.BM)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eE.B,r.interrupt?n:l,e.attempt(ej,c,u))}function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return(0,ek.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ej={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,ek.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eR={partial:!0,tokenize:function(e,t,n){let r=this;return(0,ew.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eF={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,ek.On)(t)?(0,ew.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eF,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,ek.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e$(e,t,n,r,i,a,o,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,ek.JQ)(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,ek.HP)(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||(0,ek.Ee)(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||(0,ek.JQ)(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function eZ(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,ek.HP)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||(0,ek.HP)(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!(0,ek.On)(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function eW(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,ew.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||(0,ek.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function eU(e,t){let n;return function r(i){return(0,ek.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,ek.On)(i)?(0,ew.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eH=n(3386);let eB={partial:!0,tokenize:function(e,t,n){return function(t){return(0,ek.Ee)(t)?eU(e,r)(t):n(t)};function r(t){return eW(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,ek.On)(t)?(0,ew.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,ek.HP)(e)?t(e):n(e)}}},eV={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,ew.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,ek.HP)(n)?e.attempt(eq,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,ek.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},eq={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,ew.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,ek.HP)(e)?i(e):n(e)}}},eY={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,ek.On)(n)?(0,ew.N)(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||(0,ek.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},eJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eG=["pre","script","style","textarea"],eK={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eE.B,t,n)}}},eX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,ek.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e0={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,ek.On)(t)?(0,ew.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),(0,ek.On)(i)?(0,ew.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,ek.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a=t;let u=i.events[i.events.length-1];return o=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,ek.On)(i)?(0,ew.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,ek.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(eQ,c,h)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ek.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,ek.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,ew.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||(0,ek.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ek.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&(0,ek.On)(t)?(0,ew.N)(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||(0,ek.HP)(t)?e.check(eQ,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,ek.HP)(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},e1=document.createElement("i");function e2(e){let t="&"+e+";";e1.innerHTML=t;let n=e1.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e4={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=ek.lV,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ek.ok,u):(e.enter("characterReferenceValue"),r=7,i=ek.BM,u(t))}function u(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==ek.lV||e2(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),u):n(s)}}},e9={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,ek.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e5={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,ew.N)(e,t,"linePrefix")}}};var e3=n(1877);let e6={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,em.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=(0,em.V)(a,e.slice(r+1,r+s+3)),a=(0,em.V)(a,[["enter",c,t]]),a=(0,em.V)(a,(0,e3.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=(0,em.V)(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=(0,em.V)(a,e.slice(i+1)),a=(0,em.V)(a,[["exit",l,t]]),(0,em.m)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes((0,eH.B)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(e8,u,i?u:c)(t):91===t?e.attempt(e7,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(te,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},e8={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,ek.Ee)(t)?eU(e,i)(t):i(t)}function i(t){return 41===t?u(t):e$(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,ek.Ee)(t)?eU(e,s)(t):u(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?eW(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return(0,ek.Ee)(t)?eU(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},e7={tokenize:function(e,t,n){let r=this;return function(t){return eZ.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eH.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},te={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tt={name:"labelStartImage",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var tn=n(9535);let tr={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};ti(d,-s),ti(f,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[c][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,em.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,em.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,em.V)(l,(0,e3.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=(0,em.V)(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=(0,em.V)(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,em.m)(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,tn.S)(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),u=(0,tn.S)(s),c=!u||2===u&&a||r.includes(s),d=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(o)}}};function ti(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ta={name:"labelStartLink",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},to={42:eL,43:eL,45:eL,48:eL,49:eL,50:eL,51:eL,52:eL,53:eL,54:eL,55:eL,56:eL,57:eL,62:eF},ts={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,eZ.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=(0,eH.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,ek.Ee)(t)?eU(e,s)(t):s(t)}function s(t){return e$(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(eB,u,u)(t)}function u(t){return(0,ek.On)(t)?(0,ew.N)(e,c,"whitespace")(t):c(t)}function c(a){return null===a||(0,ek.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},tl={[-2]:eV,[-1]:eV,32:eV},tu={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,em.m)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,ek.Ee)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,ek.HP)(r)?(e.exit("atxHeading"),t(r)):(0,ek.On)(r)?(0,ew.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,ek.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:eD,45:[eY,eD],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,l.interrupt?t:M):(0,ek.CW)(o)?(e.consume(o),a=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,f):(0,ek.CW)(i)?(e.consume(i),r=4,l.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:M):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:S:f:n(r)}function p(t){return(0,ek.CW)(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||(0,ek.Ee)(o)){let s=47===o,u=a.toLowerCase();return!s&&!i&&eG.includes(u)?(r=1,l.interrupt?t(o):S(o)):eJ.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):S(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return(0,ek.On)(n)?(e.consume(n),t):x(n)}(o):g(o))}return 45===o||(0,ek.lV)(o)?(e.consume(o),a+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,ek.CW)(t)?(e.consume(t),y):(0,ek.On)(t)?(e.consume(t),g):x(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,ek.lV)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):(0,ek.On)(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):(0,ek.On)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,ek.Ee)(n)?v(n):(e.consume(n),t)}(t)}function w(t){return t===s?(e.consume(t),s=null,k):null===t||(0,ek.HP)(t)?n(t):(e.consume(t),w)}function k(e){return 47===e||62===e||(0,ek.On)(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,ek.HP)(t)?S(t):(0,ek.On)(t)?(e.consume(t),_):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),I):(0,ek.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eK,N,E)(t)):null===t||(0,ek.HP)(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(eX,C,N)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||(0,ek.HP)(t)?E(t):(e.enter("htmlFlowData"),S(t))}function T(t){return 45===t?(e.consume(t),M):S(t)}function O(t){return 47===t?(e.consume(t),a="",P):S(t)}function P(t){if(62===t){let n=a.toLowerCase();return eG.includes(n)?(e.consume(t),z):S(t)}return(0,ek.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):S(t)}function I(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):S(t)}function z(t){return null===t||(0,ek.HP)(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),z)}function N(n){return e.exit("htmlFlow"),t(n)}}},61:eY,95:eD,96:e0,126:e0},tc={38:e4,92:e9},td={[-5]:e5,[-4]:e5,[-3]:e5,33:tt,38:e4,42:tr,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,ek.CW)(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||(0,ek.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,ek.lV)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,ek.JQ)(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):(0,ek.cx)(t)?(e.consume(t),s):n(t)}function l(i){return(0,ek.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,ek.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):(0,ek.CW)(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):(0,ek.CW)(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):(0,ek.HP)(t)?(a=c,P(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?O(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):(0,ek.HP)(t)?(a=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):(0,ek.HP)(t)?(a=y,P(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):(0,ek.HP)(t)?(a=v,P(t)):(e.consume(t),v)}function b(e){return 62===e?O(e):v(e)}function w(t){return(0,ek.CW)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,ek.lV)(t)?(e.consume(t),k):function t(n){return(0,ek.HP)(n)?(a=t,P(n)):(0,ek.On)(n)?(e.consume(n),t):O(n)}(t)}function x(t){return 45===t||(0,ek.lV)(t)?(e.consume(t),x):47===t||62===t||(0,ek.Ee)(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),O):58===t||95===t||(0,ek.CW)(t)?(e.consume(t),S):(0,ek.HP)(t)?(a=_,P(t)):(0,ek.On)(t)?(e.consume(t),_):O(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,ek.lV)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):(0,ek.HP)(n)?(a=t,P(n)):(0,ek.On)(n)?(e.consume(n),t):_(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,ek.HP)(t)?(a=E,P(t)):(0,ek.On)(t)?(e.consume(t),E):(e.consume(t),A)}function C(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):(0,ek.HP)(t)?(a=C,P(t)):(e.consume(t),C)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,ek.Ee)(t)?_(t):(e.consume(t),A)}function T(e){return 47===e||62===e||(0,ek.Ee)(e)?_(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,ek.On)(t)?(0,ew.N)(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),a(t)}}}],91:ta,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,ek.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e9],93:e6,95:tr,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):(0,ek.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,ek.HP)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},tf={null:[tr,eO]},tp={null:[42,95]},th={null:[]},tm=/[\0\t\n\r]/g;function tg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ty=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tv(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tg(n.slice(t?2:1),t?16:10)}return e2(n)||e}let tb={}.hasOwnProperty;function tw(e){return{line:e.line,column:e.column,offset:e.offset}}function tk(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is still open")}function tx(e){let t=this;t.parser=function(n){var r,a;let o,s,l,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e2(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tw(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eH.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ty,tv),n.identifier=(0,eH.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tw(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eH.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tb.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,o,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tb.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tk).call(o,void 0,e[0])}for(r.position={start:tw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tw(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tk).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): it’s not open");n.position.end=tw(e.end)}function l(){return(0,eh.d)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tw(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!ev(e););return e}((function(e){let t={constructs:(0,eb.y)([i,...(e||{}).extensions||[]]),content:n(ex),defined:[],document:n(e_),flow:n(eT),lazy:{},string:n(eP),text:n(eI)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){(0,ek.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=(0,em.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=(0,e3.W)(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function p(e,t){t.restore()}function h(e,t){return function(n,i,a){var o;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?a:y(e[d])}function y(e){return function(n){return(h=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,b)(n)}}function v(t){return e(p,h),i}function b(e){return(h.restore(),++d<c.length)?y(c[d]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,em.m)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,l="",u=!0,function(e,t,n){let r,i,a,c,d,f=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",u&&(65279===e.charCodeAt(0)&&a++,u=void 0);a<e.length;){if(tm.lastIndex=a,c=(r=tm.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){l=e.slice(a);break}if(10===d&&a===c&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),a<c&&(f.push(e.slice(a,c)),s+=c-a),d){case 0:f.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),f.push(-2);s++<i;)f.push(-1);break;case 10:f.push(-4),s=1;break;default:o=!0,s=1}a=c+1}return n&&(o&&f.push(-5),l&&f.push(l),f.push(null)),f})(n,r,!0))))}}let t_="object"==typeof self?self:globalThis,tS=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new t_[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new t_[a](o),i)};return r})(new Map,e)(0),{toString:tE}={},{keys:tC}=Object,tA=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tE.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tT=([e,t])=>0===e&&("function"===t||"symbol"===t),tO=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=tA(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of tC(r))(e||!tT(tA(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(tT(tA(n))||tT(tA(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!tT(tA(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},tP="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tS(tO(e,t)):structuredClone(e):(e,t)=>tS(tO(e,t));function tI(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&(0,ek.lV)(e.charCodeAt(n+1))&&(0,ek.lV)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tM(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tz(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var tN=n(8428);function tD(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function tL(e){let t=e.spread;return null==t?e.children.length>1:t}function tj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tR={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=tI(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tD(e,t);let i={src:tI(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:tI(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tD(e,t);let i={href:tI(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:tI(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}(n):tL(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=V(t.children[1]),o=B(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(tj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(tj(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tF,yaml:tF,definition:tF,footnoteDefinition:tF};function tF(){}let t$={}.hasOwnProperty,tZ={};function tW(e,t){e.position&&(t.position=function(e){let t=V(e),n=B(e);if(t&&n)return{start:t,end:n}}(e))}function tU(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tP(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tH(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tB(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tV(e,t){let n=function(e,t){let n=t||tZ,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tB(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tB(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tU,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tR,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(t$.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tP(n);return r.children=a.all(e),r}return tP(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t$.call(n,"hProperties")||t$.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:tW,wrap:tH};return(0,tN.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tM,r=e.options.footnoteBackLabel||tz,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),u=tI(o.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(o);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else a.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...tP(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,a.ok)("children"in o),o.children.push({type:"text",value:"\n"},i)),o}function tq(e,t){return e&&"run"in e?async function(n,r){let i=tV(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tV(n,{file:r,...e||t})}}function tY(e){if(e)throw e}var tJ=n(3360);function tG(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tK={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tX(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(tX(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tX(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)tX(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tX(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tX(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tQ={cwd:function(){return"/"}};function t0(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t1=["history","path","basename","stem","extname","dirname"];class t2{constructor(e){let t,n;t=e?t0(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tQ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t1.length;){let e=t1[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t1.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?tK.basename(this.path):void 0}set basename(e){t9(e,"basename"),t4(e,"basename"),this.path=tK.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?tK.dirname(this.path):void 0}set dirname(e){t5(this.basename,"dirname"),this.path=tK.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?tK.extname(this.path):void 0}set extname(e){if(t4(e,"extname"),t5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=tK.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t0(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t0(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),t9(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?tK.basename(this.path,this.extname):void 0}set stem(e){t9(e,"stem"),t4(e,"stem"),this.path=tK.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new X(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function t4(e,t){if(e&&e.includes(tK.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tK.sep+"`")}function t9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function t5(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let t3=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},t6={}.hasOwnProperty;class t8 extends t3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...o){let s=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a,o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new t8,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(tJ(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nn("data",this.frozen),this.namespace[e]=t,this):t6.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nn("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=na(e),n=this.parser||this.Parser;return ne("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ne("process",this.parser||this.Parser),nt("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=na(e),s=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,o,function(e,t,r){var i,a;if(e||!t||!r)return l(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=o,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ne("processSync",this.parser||this.Parser),nt("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,tY(e),t=r}),ni("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){nr(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=na(t);r.run(e,s,function(t,r,s){let l=r||e;t?o(t):i?i(l):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){tY(e),n=t,r=!0}),ni("runSync","run",r),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=na(t),r=this.compiler||this.Compiler;return nt("stringify",r),nr(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nn("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=tJ(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)o(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;o(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];tG(o)&&tG(r)&&(r=tJ(!0,o,r)),n[i]=[e,r,...a]}}}}let t7=new t8().freeze();function ne(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nt(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nn(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nr(e){if(!tG(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ni(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function na(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new t2(e)}let no=[],ns={allowDangerousHtml:!0},nl=/^(https?|ircs?|mailto|xmpp)$/i,nu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nc(e){let t=function(e){let t=e.rehypePlugins||no,n=e.remarkPlugins||no,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ns}:ns;return t7().use(tx).use(n).use(tq,r).use(t)}(e),n=function(e){let t=e.children||"",n=new t2;return"string"==typeof t?n.value=t:(0,a.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||nd;for(let e of nu)Object.hasOwn(t,e.from)&&(0,a.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&o&&(0,a.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,tN.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=V(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ea(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nd(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nl.test(e.slice(0,t))?e:""}},8428:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(1922);function i(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),(0,r.VG)(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},a)}},8637:(e,t,n)=>{"use strict";n.d(t,{m:()=>l});var r=n(9447);function i(e){let t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}var a=n(1183),o=n(5703),s=n(9092);function l(e,t,n){let[r,l]=(0,a.x)(null==n?void 0:n.in,e,t),u=(0,s.o)(r),c=(0,s.o)(l);return Math.round((u-i(u)-(c-i(c)))/o.w4)}},8753:(e,t,n)=>{"use strict";n.d(t,{Od:()=>l,Rb:()=>s,Tj:()=>o,bp:()=>d,wG:()=>c,xL:()=>u});var r=n(4193),i=n(3793),a=n(4398);let o=e=>(t,n,i,o)=>{let s=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>a.iR(e,s,r.$W())));throw a.gx(t,o?.callee),t}return l.value};i.Kd;let s=e=>async(t,n,i,o)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>a.iR(e,s,r.$W())));throw a.gx(t,o?.callee),t}return l.value};i.Kd;let l=e=>(t,n,o)=>{let s=o?{...o,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>a.iR(e,s,r.$W())))}:{success:!0,data:l.value}},u=l(i.Kd),c=e=>async(t,n,i)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>a.iR(e,o,r.$W())))}:{success:!0,data:s.value}},d=c(i.Kd)},8827:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>S,sQ:()=>E});var r,i,a,o,s,l,u,c,d,f,p=n(2115),h=n(3736),m=n(1649),g=n(838),y=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},v=(e,t,n)=>(y(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},w=(e,t,n,r)=>(y(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function k(e,t){return null!=t?m(e,t):e}var x=class{constructor(e=[]){b(this,r,void 0),b(this,i,"ready"),b(this,a,void 0),b(this,o,new Set),b(this,s,new Set),b(this,l,new Set),this.pushMessage=e=>{w(this,r,v(this,r).concat(e)),v(this,u).call(this)},this.popMessage=()=>{w(this,r,v(this,r).slice(0,-1)),v(this,u).call(this)},this.replaceMessage=(e,t)=>{w(this,r,[...v(this,r).slice(0,e),this.snapshot(t),...v(this,r).slice(e+1)]),v(this,u).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let n=t?k(e,t):e;return v(this,o).add(n),()=>{v(this,o).delete(n)}},this["~registerStatusCallback"]=e=>(v(this,s).add(e),()=>{v(this,s).delete(e)}),this["~registerErrorCallback"]=e=>(v(this,l).add(e),()=>{v(this,l).delete(e)}),b(this,u,()=>{v(this,o).forEach(e=>e())}),b(this,c,()=>{v(this,s).forEach(e=>e())}),b(this,d,()=>{v(this,l).forEach(e=>e())}),w(this,r,e)}get status(){return v(this,i)}set status(e){w(this,i,e),v(this,c).call(this)}get error(){return v(this,a)}set error(e){w(this,a,e),v(this,d).call(this)}get messages(){return v(this,r)}set messages(e){w(this,r,[...e]),v(this,u).call(this)}};r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap;var _=class extends h.vl{constructor({messages:e,...t}){let n=new x(e);super({...t,state:n}),b(this,f,void 0),this["~registerMessagesCallback"]=(e,t)=>v(this,f)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>v(this,f)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>v(this,f)["~registerErrorCallback"](e),w(this,f,n)}};function S({experimental_throttle:e,resume:t=!1,...n}={}){let r=(0,p.useRef)("chat"in n?n.chat:new _(n));("chat"in n&&n.chat!==r.current||"id"in n&&r.current.id!==n.id)&&(r.current="chat"in n?n.chat:new _(n));let i="id"in n?n.id:null,a=(0,p.useCallback)(t=>r.current["~registerMessagesCallback"](t,e),[e,i]),o=(0,p.useSyncExternalStore)(a,()=>r.current.messages,()=>r.current.messages),s=(0,p.useSyncExternalStore)(r.current["~registerStatusCallback"],()=>r.current.status,()=>r.current.status),l=(0,p.useSyncExternalStore)(r.current["~registerErrorCallback"],()=>r.current.error,()=>r.current.error),u=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(r.current.messages)),r.current.messages=e},[r]);return(0,p.useEffect)(()=>{t&&r.current.resumeStream()},[t,r]),{id:r.current.id,messages:o,setMessages:u,sendMessage:r.current.sendMessage,regenerate:r.current.regenerate,clearError:r.current.clearError,stop:r.current.stop,error:l,resumeStream:r.current.resumeStream,status:s,addToolResult:r.current.addToolResult}}function E({api:e="/api/completion",id:t,initialCompletion:n="",initialInput:r="",credentials:i,headers:a,body:o,streamProtocol:s="data",fetch:l,onFinish:u,onError:c,experimental_throttle:d}={}){let f=(0,p.useId)(),m=t||f,{data:y,mutate:v}=(0,g.Ay)([e,m],null,{fallbackData:n}),{data:b=!1,mutate:w}=(0,g.Ay)([m,"loading"],null),[x,_]=(0,p.useState)(void 0),[S,C]=(0,p.useState)(null),A=(0,p.useRef)({credentials:i,headers:a,body:o});(0,p.useEffect)(()=>{A.current={credentials:i,headers:a,body:o}},[i,a,o]);let T=(0,p.useCallback)(async(t,n)=>(0,h.$L)({api:e,prompt:t,credentials:A.current.credentials,headers:{...A.current.headers,...null==n?void 0:n.headers},body:{...A.current.body,...null==n?void 0:n.body},streamProtocol:s,fetch:l,setCompletion:k(e=>v(e,!1),d),setLoading:w,setError:_,setAbortController:C,onFinish:u,onError:c}),[v,w,e,A,C,u,c,_,s,l,d]),O=(0,p.useCallback)(()=>{S&&(S.abort(),C(null))},[S]),P=(0,p.useCallback)(e=>{v(e,!1)},[v]),I=(0,p.useCallback)(async(e,t)=>T(e,t),[T]),[M,z]=(0,p.useState)(r),N=(0,p.useCallback)(e=>{var t;return null==(t=null==e?void 0:e.preventDefault)||t.call(e),M?I(M):void 0},[M,I]),D=(0,p.useCallback)(e=>{z(e.target.value)},[z]);return{completion:y,complete:I,error:x,setCompletion:P,stop:O,input:M,setInput:z,handleInputChange:D,handleSubmit:N,isLoading:b}}f=new WeakMap},8905:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(2115),i=n(6101),a=n(2712),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[i,o]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},a=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",a),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},8934:(e,t,n)=>{"use strict";n.d(t,{h:()=>e1});var r,i={};n.r(i),n.d(i,{Button:()=>q,CaptionLabel:()=>Y,Chevron:()=>J,Day:()=>G,DayButton:()=>K,Dropdown:()=>X,DropdownNav:()=>Q,Footer:()=>ee,Month:()=>et,MonthCaption:()=>en,MonthGrid:()=>er,Months:()=>ei,MonthsDropdown:()=>es,Nav:()=>el,NextMonthButton:()=>eu,Option:()=>ec,PreviousMonthButton:()=>ed,Root:()=>ef,Select:()=>ep,Week:()=>eh,WeekNumber:()=>ey,WeekNumberHeader:()=>ev,Weekday:()=>em,Weekdays:()=>eg,Weeks:()=>eb,YearsDropdown:()=>ew});var a={};n.r(a),n.d(a,{formatCaption:()=>ex,formatDay:()=>eS,formatMonthCaption:()=>e_,formatMonthDropdown:()=>eE,formatWeekNumber:()=>eC,formatWeekNumberHeader:()=>eA,formatWeekdayName:()=>eT,formatYearCaption:()=>eP,formatYearDropdown:()=>eO});var o={};n.r(o),n.d(o,{labelCaption:()=>eM,labelDay:()=>eD,labelDayButton:()=>eN,labelGrid:()=>eI,labelGridcell:()=>ez,labelMonthDropdown:()=>ej,labelNav:()=>eL,labelNext:()=>eR,labelPrevious:()=>eF,labelWeekNumber:()=>eZ,labelWeekNumberHeader:()=>eW,labelWeekday:()=>e$,labelYearDropdown:()=>eU});var s=n(2115);Symbol.for("constructDateFrom");let l={},u={};function c(e,t){try{let n=(l[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in u)return u[n];return f(n,n.split(":"))}catch{if(e in u)return u[e];let t=e?.match(d);if(t)return f(e,t.slice(1));return NaN}}let d=/([+-]\d\d):?(\d\d)?/;function f(e,t){let n=+(t[0]||0),r=+(t[1]||0);return u[e]=n>0?60*n+r:60*n-r}class p extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(c(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),g(this,NaN),m(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new p(...t,e):new p(Date.now(),e)}withTimeZone(e){return new p(+this,e)}getTimezoneOffset(){return-c(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),m(this),+this}[Symbol.for("constructDateFrom")](e){return new p(+new Date(e),this.timeZone)}}let h=/^(get|set)(?!UTC)/;function m(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function g(e){let t=c(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),i=r- -new Date(+n).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let o=r-t;o&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+o);let s=c(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-o;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);let t=s-c(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!h.test(e))return;let t=e.replace(h,"$1UTC");p.prototype[t]&&(e.startsWith("get")?p.prototype[e]=function(){return this.internal[t]()}:(p.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),g(e),+this},p.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),m(this),+this}))});class y extends p{static tz(e,...t){return t.length?new y(...t,e):new y(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new y(+this,e)}[Symbol.for("constructDateFrom")](e){return new y(+new Date(e),this.timeZone)}}var v=n(9072),b=n(8093),w=n(7239),k=n(9447);function x(e,t,n){let r=(0,k.a)(e,null==n?void 0:n.in);return isNaN(t)?(0,w.w)((null==n?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function _(e,t,n){let r=(0,k.a)(e,null==n?void 0:n.in);if(isNaN(t))return(0,w.w)((null==n?void 0:n.in)||e,NaN);if(!t)return r;let i=r.getDate(),a=(0,w.w)((null==n?void 0:n.in)||e,r.getTime());return(a.setMonth(r.getMonth()+t+1,0),i>=a.getDate())?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var S=n(8637),E=n(1183),C=n(5490);function A(e,t){var n,r,i,a,o,s,l,u;let c=(0,C.q)(),d=null!=(u=null!=(l=null!=(s=null!=(o=null==t?void 0:t.weekStartsOn)?o:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?s:c.weekStartsOn)?l:null==(a=c.locale)||null==(i=a.options)?void 0:i.weekStartsOn)?u:0,f=(0,k.a)(e,null==t?void 0:t.in),p=f.getDay();return f.setDate(f.getDate()+((p<d?-7:0)+6-(p-d))),f.setHours(23,59,59,999),f}var T=n(3008),O=n(7519),P=n(1391),I=n(9026),M=n(9092),z=n(540),N=n(4423),D=n(7386);function L(e,t){let n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class j{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?y.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new y(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):x(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):_(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):x(e,7*t,void 0),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):_(e,12*t,void 0),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):(0,S.m)(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return 12*(r.getFullYear()-i.getFullYear())+(r.getMonth()-i.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){var n;let{start:r,end:i}=function(e,t){let[n,r]=(0,E.x)(e,t.start,t.end);return{start:n,end:r}}(void 0,e),a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setDate(1);let l=(n=void 0,1);if(!l)return[];l<0&&(l=-l,a=!a);let u=[];for(;+s<=o;)u.push((0,w.w)(r,s)),s.setMonth(s.getMonth()+l);return a?u.reverse():u}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){let n=L(e,t),r=function(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):A(e,{...void 0,weekStartsOn:1}),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){let n=(0,k.a)(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):A(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){let n=(0,k.a)(e,void 0),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):(0,T.GP)(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):(0,O.s)(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return(0,k.a)(e,null==t?void 0:t.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return(0,k.a)(e,null==t?void 0:t.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):(0,P.N)(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):+(0,k.a)(e)>+(0,k.a)(t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):+(0,k.a)(e)<+(0,k.a)(t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):(0,I.$)(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return+(0,M.o)(r)==+(0,M.o)(i)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){let[r,i]=(0,E.x)(void 0,e,t);return r.getFullYear()===i.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=w.w.bind(null,e));let t=(0,k.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),(0,w.w)(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r;return e.forEach(e=>{r||"object"!=typeof e||(r=w.w.bind(null,e));let t=(0,k.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),(0,w.w)(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):function(e,t,n){let r=(0,k.a)(e,void 0),i=r.getFullYear(),a=r.getDate(),o=(0,w.w)(e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=function(e,t){let n=(0,k.a)(e,void 0),r=n.getFullYear(),i=n.getMonth(),a=(0,w.w)(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return r.setMonth(t,Math.min(a,s)),r}(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){let r=(0,k.a)(e,void 0);return isNaN(+r)?(0,w.w)(e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):L(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):(0,M.o)(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):(0,z.b)(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){let n=(0,k.a)(e,void 0);return n.setDate(1),n.setHours(0,0,0,0),n}(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):(0,N.k)(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):(0,D.D)(e),this.options={locale:b.c,...e},this.overrides=t}getDigitMap(){let{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}}let R=new j;function F(e,t,n=!1,r=R){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(0>o(a,i)&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&!!i&&s(i,t)}function $(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}function Z(e){return!!(e&&"object"==typeof e&&"from"in e)}function W(e){return!!(e&&"object"==typeof e&&"after"in e)}function U(e){return!!(e&&"object"==typeof e&&"before"in e)}function H(e){return!!(e&&"object"==typeof e&&"dayOfWeek"in e)}function B(e,t){return Array.isArray(e)&&e.every(t.isDate)}function V(e,t,n=R){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return i(e,t);if(B(t,n))return t.includes(e);if(Z(t))return F(t,e,!1,n);if(H(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if($(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return W(t)?a(e,t.after)>0:U(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function q(e){return s.createElement("button",{...e})}function Y(e){return s.createElement("span",{...e})}function J(e){let{size:t=24,orientation:n="left",className:r}=e;return s.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&s.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&s.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&s.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&s.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function G(e){let{day:t,modifiers:n,...r}=e;return s.createElement("td",{...r})}function K(e){let{day:t,modifiers:n,...r}=e,i=s.useRef(null);return s.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),s.createElement("button",{ref:i,...r})}function X(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[v.UI.Dropdown],n].join(" "),l=t?.find(({value:e})=>e===a.value);return s.createElement("span",{"data-disabled":a.disabled,className:i[v.UI.DropdownRoot]},s.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>s.createElement(r.Option,{key:e,value:e,disabled:n},t))),s.createElement("span",{className:i[v.UI.CaptionLabel],"aria-hidden":!0},l?.label,s.createElement(r.Chevron,{orientation:"down",size:18,className:i[v.UI.Chevron]})))}function Q(e){return s.createElement("div",{...e})}function ee(e){return s.createElement("div",{...e})}function et(e){let{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r},e.children)}function en(e){let{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r})}function er(e){return s.createElement("table",{...e})}function ei(e){return s.createElement("div",{...e})}let ea=(0,s.createContext)(void 0);function eo(){let e=(0,s.useContext)(ea);if(void 0===e)throw Error("useDayPicker() must be used within a custom component.");return e}function es(e){let{components:t}=eo();return s.createElement(t.Dropdown,{...e})}function el(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:l,labels:{labelPrevious:u,labelNext:c}}=eo(),d=(0,s.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,s.useCallback)(e=>{r&&t?.(e)},[r,t]);return s.createElement("nav",{...a},s.createElement(o.PreviousMonthButton,{type:"button",className:l[v.UI.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":u(r),onClick:f},s.createElement(o.Chevron,{disabled:!r||void 0,className:l[v.UI.Chevron],orientation:"left"})),s.createElement(o.NextMonthButton,{type:"button",className:l[v.UI.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":c(i),onClick:d},s.createElement(o.Chevron,{disabled:!i||void 0,orientation:"right",className:l[v.UI.Chevron]})))}function eu(e){let{components:t}=eo();return s.createElement(t.Button,{...e})}function ec(e){return s.createElement("option",{...e})}function ed(e){let{components:t}=eo();return s.createElement(t.Button,{...e})}function ef(e){let{rootRef:t,...n}=e;return s.createElement("div",{...n,ref:t})}function ep(e){return s.createElement("select",{...e})}function eh(e){let{week:t,...n}=e;return s.createElement("tr",{...n})}function em(e){return s.createElement("th",{...e})}function eg(e){return s.createElement("thead",{"aria-hidden":!0},s.createElement("tr",{...e}))}function ey(e){let{week:t,...n}=e;return s.createElement("th",{...n})}function ev(e){return s.createElement("th",{...e})}function eb(e){return s.createElement("tbody",{...e})}function ew(e){let{components:t}=eo();return s.createElement(t.Dropdown,{...e})}var ek=n(713);function ex(e,t,n){return(n??new j(t)).format(e,"LLLL y")}let e_=ex;function eS(e,t,n){return(n??new j(t)).format(e,"d")}function eE(e,t=R){return t.format(e,"LLLL")}function eC(e,t=R){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function eA(){return""}function eT(e,t,n){return(n??new j(t)).format(e,"cccccc")}function eO(e,t=R){return t.format(e,"yyyy")}let eP=eO;function eI(e,t,n){return(n??new j(t)).format(e,"LLLL y")}let eM=eI;function ez(e,t,n,r){let i=(r??new j(n)).format(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i}function eN(e,t,n,r){let i=(r??new j(n)).format(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}let eD=eN;function eL(){return""}function ej(e){return"Choose the Month"}function eR(e){return"Go to the Next Month"}function eF(e){return"Go to the Previous Month"}function e$(e,t,n){return(n??new j(t)).format(e,"cccc")}function eZ(e,t){return`Week ${e}`}function eW(e){return"Week Number"}function eU(e){return"Choose the Year"}let eH=e=>e instanceof HTMLElement?e:null,eB=e=>[...e.querySelectorAll("[data-animated-month]")??[]],eV=e=>eH(e.querySelector("[data-animated-caption]")),eq=e=>eH(e.querySelector("[data-animated-weeks]"));function eY(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,l=i||a||o,{differenceInCalendarMonths:u,addMonths:c,startOfMonth:d}=r;return n&&u(n,l)<s-1&&(l=c(n,-1*(s-1))),t&&0>u(l,t)&&(l=t),d(l)}class eJ{constructor(e,t,n=R){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class eG{constructor(e,t){this.days=t,this.weekNumber=e}}class eK{constructor(e,t){this.date=e,this.weeks=t}}function eX(e,t){let[n,r]=(0,s.useState)(e);return[void 0===t?n:t,r]}function eQ(e){return!e[v.pL.disabled]&&!e[v.pL.hidden]&&!e[v.pL.outside]}function e0(e,t,n=R){return F(e,t.from,!1,n)||F(e,t.to,!1,n)||F(t,e.from,!1,n)||F(t,e.to,!1,n)}function e1(e){let t=e;t.timeZone&&((t={...e}).today&&(t.today=new y(t.today,t.timeZone)),t.month&&(t.month=new y(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new y(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new y(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new y(t.endMonth,t.timeZone)),"single"===t.mode&&t.selected?t.selected=new y(t.selected,t.timeZone):"multiple"===t.mode&&t.selected?t.selected=t.selected?.map(e=>new y(e,t.timeZone)):"range"===t.mode&&t.selected&&(t.selected={from:t.selected.from?new y(t.selected.from,t.timeZone):void 0,to:t.selected.to?new y(t.selected.to,t.timeZone):void 0}));let{components:n,formatters:l,labels:u,dateLib:c,locale:d,classNames:f}=(0,s.useMemo)(()=>{var e,n;let r={...b.c,...t.locale};return{dateLib:new j({locale:r,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:(e=t.components,{...i,...e}),formatters:(n=t.formatters,n?.formatMonthCaption&&!n.formatCaption&&(n.formatCaption=n.formatMonthCaption),n?.formatYearCaption&&!n.formatYearDropdown&&(n.formatYearDropdown=n.formatYearCaption),{...a,...n}),labels:{...o,...t.labels},locale:r,classNames:{...(0,ek.a)(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:p,mode:h,navLayout:m,numberOfMonths:g=1,onDayBlur:w,onDayClick:k,onDayFocus:x,onDayKeyDown:_,onDayMouseEnter:S,onDayMouseLeave:E,onNextClick:C,onPrevClick:A,showWeekNumber:T,styles:O}=t,{formatCaption:P,formatDay:I,formatMonthDropdown:M,formatWeekNumber:z,formatWeekNumberHeader:N,formatWeekdayName:D,formatYearDropdown:L}=l,q=function(e,t){let[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:l,endOfYear:u,newDate:c,today:d}=t,{fromYear:f,toYear:p,fromMonth:h,toMonth:m}=e;!n&&h&&(n=h),!n&&f&&(n=t.newDate(f,0,1)),!r&&m&&(r=m),!r&&p&&(r=c(p,11,31));let g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=o(n):f?n=c(f,0,1):!n&&g&&(n=i(l(e.today??d(),-100))),r?r=s(r):p?r=c(p,11,31):!r&&g&&(r=u(e.today??d())),[n?a(n):n,r?a(r):r]}(e,t),{startOfMonth:i,endOfMonth:a}=t,o=eY(e,n,r,t),[l,u]=eX(o,e.month?o:void 0);(0,s.useEffect)(()=>{u(eY(e,n,r,t))},[e.timeZone]);let c=function(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}(l,r,e,t),d=function(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:h,endOfWeek:m,isAfter:g,startOfBroadcastWeek:y,startOfISOWeek:v,startOfWeek:b}=r,w=l?y(i,r):o?v(i):b(i),k=c(l?f(a):o?p(h(a)):m(h(a)),w),x=d(a,i)+1,_=[];for(let e=0;e<=k;e++){let n=u(w,e);if(t&&g(n,t))break;_.push(n)}let S=(l?35:42)*x;if(s&&_.length<S){let e=S-_.length;for(let t=0;t<e;t++){let e=u(_[_.length-1],1);_.push(e)}}return _}(c,e.endMonth?a(e.endMonth):void 0,e,t),f=function(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,h=e.reduce((e,h)=>{let m=n.broadcastCalendar?d(h,r):n.ISOWeek?f(h):p(h),g=n.broadcastCalendar?a(h):n.ISOWeek?o(s(h)):l(s(h)),y=t.filter(e=>e>=m&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&y.length<v){let e=t.filter(e=>{let t=v-y.length;return e>g&&e<=i(g,t)});y.push(...e)}let b=y.reduce((e,t)=>{let i=n.ISOWeek?u(t):c(t),a=e.find(e=>e.weekNumber===i),o=new eJ(t,h,r);return a?a.days.push(o):e.push(new eG(i,[o])),e},[]),w=new eK(h,b);return e.push(w),e},[]);return n.reverseMonths?h.reverse():h}(c,d,e,t),p=f.reduce((e,t)=>[...e,...t.weeks],[]),h=function(e){let t=[];return e.reduce((e,n)=>[...e,...n.weeks.reduce((e,t)=>[...e,...t.days],t)],t)}(f),m=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=r,u=o(e);if(!t||!(0>=l(u,t)))return s(u,-(i?a??1:1))}(l,n,e,t),g=function(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=r,u=o(e);if(!t||!(l(t,e)<a))return s(u,i?a:1)}(l,r,e,t),{disableNavigation:y,onMonthChange:v}=e,b=e=>{if(y)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),u(t),v?.(t)};return{months:f,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:m,nextMonth:g,goToMonth:b,goToDay:e=>{p.some(t=>t.days.some(t=>t.isEqualTo(e)))||b(e.date)}}}(t,c),{days:Y,months:J,navStart:G,navEnd:K,previousMonth:X,nextMonth:Q,goToMonth:ee}=q,et=function(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:c}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:h,endOfMonth:m,isAfter:g}=i,y=n&&p(n),b=r&&m(r),w={[v.pL.focused]:[],[v.pL.outside]:[],[v.pL.disabled]:[],[v.pL.hidden]:[],[v.pL.today]:[]},k={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(y&&h(e,y)),m=!!(b&&g(e,b)),v=!!(a&&V(e,a,i)),x=!!(o&&V(e,o,i))||p||m||!u&&!l&&r||u&&!1===l&&r,_=d(e,c??i.today());r&&w.outside.push(t),v&&w.disabled.push(t),x&&w.hidden.push(t),_&&w.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&V(e,r,i)&&(k[n]?k[n].push(t):k[n]=[t])})}return e=>{let t={[v.pL.focused]:!1,[v.pL.disabled]:!1,[v.pL.hidden]:!1,[v.pL.outside]:!1,[v.pL.today]:!1},n={};for(let n in w){let r=w[n];t[n]=r.some(t=>t===e)}for(let t in k)n[t]=k[t].some(t=>t===e);return{...t,...n}}}(Y,t,G,K,c),{isSelected:en,select:er,selected:ei}=function(e,t){let n=function(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=eX(n,i?n:void 0),s=i?n:a,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&l(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>!!s&&l(s,e)}}(e,t),r=function(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=eX(n,i?n:void 0),s=i?n:a,{isSameDay:l}=t,u=e=>s?.some(t=>l(t,e))??!1,{min:c,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(u(e)){if(s?.length===c||r&&s?.length===1)return;a=s?.filter(t=>!l(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:u}}(e,t),i=function(e,t){let{disabled:n,excludeDisabled:r,selected:i,required:a,onSelect:o}=e,[s,l]=eX(i,o?i:void 0),u=o?i:s;return{selected:u,select:(i,s,c)=>{let{min:d,max:f}=e,p=i?function(e,t,n=0,r=0,i=!1,a=R){let o,{from:s,to:l}=t||{},{isSameDay:u,isAfter:c,isBefore:d}=a;if(s||l){if(s&&!l)o=u(s,e)?i?{from:s,to:void 0}:void 0:d(e,s)?{from:e,to:s}:{from:s,to:e};else if(s&&l)if(u(s,e)&&u(l,e))o=i?{from:s,to:l}:void 0;else if(u(s,e))o={from:s,to:n>0?void 0:e};else if(u(l,e))o={from:e,to:n>0?void 0:e};else if(d(e,s))o={from:e,to:l};else if(c(e,s))o={from:s,to:e};else if(c(e,l))o={from:s,to:e};else throw Error("Invalid range")}else o={from:e,to:n>0?void 0:e};if(o?.from&&o?.to){let t=a.differenceInCalendarDays(o.to,o.from);r>0&&t>r?o={from:e,to:void 0}:n>1&&t<n&&(o={from:e,to:void 0})}return o}(i,u,d,f,a,t):void 0;return r&&n&&p?.from&&p.to&&function(e,t,n=R){let r=Array.isArray(t)?t:[t];if(r.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?F(e,t,!1,n):B(t,n)?t.some(t=>F(e,t,!1,n)):Z(t)?!!t.from&&!!t.to&&e0(e,{from:t.from,to:t.to},n):H(t)?function(e,t,n=R){let r=Array.isArray(t)?t:[t],i=e.from,a=Math.min(n.differenceInCalendarDays(e.to,e.from),6);for(let e=0;e<=a;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}(e,t.dayOfWeek,n):$(t)?n.isAfter(t.before,t.after)?e0(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):V(e.from,t,n)||V(e.to,t,n):!!(W(t)||U(t))&&(V(e.from,t,n)||V(e.to,t,n))))return!0;let i=r.filter(e=>"function"==typeof e);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=i,p.to=void 0),o||l(p),o?.(p,i,s,c),p},isSelected:e=>u&&F(u,e,!1,t)}}(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return i;default:return}}(t,c)??{},{blur:eo,focused:es,isFocusTarget:el,moveFocus:eu,setFocused:ec}=function(e,t,n,i,a){let{autoFocus:o}=e,[l,u]=(0,s.useState)(),c=function(e,t,n,i){let a,o=-1;for(let s of e){let e=t(s);eQ(e)&&(e[v.pL.focused]&&o<r.FocusedModifier?(a=s,o=r.FocusedModifier):i?.isEqualTo(s)&&o<r.LastFocused?(a=s,o=r.LastFocused):n(s.date)&&o<r.Selected?(a=s,o=r.Selected):e[v.pL.today]&&o<r.Today&&(a=s,o=r.Today))}return a||(a=e.find(e=>eQ(t(e)))),a}(t.days,n,i||(()=>!1),l),[d,f]=(0,s.useState)(o?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:f,focused:d,blur:()=>{u(d),f(void 0)},moveFocus:(n,r)=>{if(!d)return;let i=function e(t,n,r,i,a,o,s,l=0){if(l>365)return;let u=function(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:l}=a,{addDays:u,addMonths:c,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:h,endOfWeek:m,max:g,min:y,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:w}=o,k=({day:u,week:d,month:c,year:f,startOfWeek:e=>l?v(e,o):s?b(e):w(e),endOfWeek:e=>l?p(e):s?h(e):m(e)})[e](n,"after"===t?1:-1);return"before"===t&&r?k=g([r,k]):"after"===t&&i&&(k=y([i,k])),k}(t,n,r.date,i,a,o,s),c=!!(o.disabled&&V(u,o.disabled,s)),d=!!(o.hidden&&V(u,o.hidden,s)),f=new eJ(u,u,s);return c||d?e(t,n,f,i,a,o,s,l+1):f}(n,r,d,t.navStart,t.navEnd,e,a);i&&(t.goToDay(i),f(i))}}}(t,q,et,en??(()=>!1),c),{labelDayButton:ed,labelGridcell:ef,labelGrid:ep,labelMonthDropdown:eh,labelNav:em,labelPrevious:eg,labelNext:ey,labelWeekday:ev,labelWeekNumber:eb,labelWeekNumberHeader:ew,labelYearDropdown:ex}=u,e_=(0,s.useMemo)(()=>(function(e,t,n){let r=e.today(),i=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let t=0;t<7;t++){let n=e.addDays(i,t);a.push(n)}return a})(c,t.ISOWeek),[c,t.ISOWeek]),eS=void 0!==h||void 0!==k,eE=(0,s.useCallback)(()=>{X&&(ee(X),A?.(X))},[X,ee,A]),eC=(0,s.useCallback)(()=>{Q&&(ee(Q),C?.(Q))},[ee,Q,C]),eA=(0,s.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ec(e),er?.(e.date,t,n),k?.(e.date,t,n)},[er,k,ec]),eT=(0,s.useCallback)((e,t)=>n=>{ec(e),x?.(e.date,t,n)},[x,ec]),eO=(0,s.useCallback)((e,t)=>n=>{eo(),w?.(e.date,t,n)},[eo,w]),eP=(0,s.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?"month":"day","rtl"===t.dir?"after":"before"],ArrowRight:[r.shiftKey?"month":"day","rtl"===t.dir?"before":"after"],ArrowDown:[r.shiftKey?"year":"week","after"],ArrowUp:[r.shiftKey?"year":"week","before"],PageUp:[r.shiftKey?"year":"month","before"],PageDown:[r.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];eu(e,t)}_?.(e.date,n,r)},[eu,_,t.dir]),eI=(0,s.useCallback)((e,t)=>n=>{S?.(e.date,t,n)},[S]),eM=(0,s.useCallback)((e,t)=>n=>{E?.(e.date,t,n)},[E]),ez=(0,s.useCallback)(e=>t=>{let n=Number(t.target.value);ee(c.setMonth(c.startOfMonth(e),n))},[c,ee]),eN=(0,s.useCallback)(e=>t=>{let n=Number(t.target.value);ee(c.setYear(c.startOfMonth(e),n))},[c,ee]),{className:eD,style:eL}=(0,s.useMemo)(()=>({className:[f[v.UI.Root],t.className].filter(Boolean).join(" "),style:{...O?.[v.UI.Root],...t.style}}),[f,t.className,t.style,O]),ej=function(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(t),eR=(0,s.useRef)(null);!function(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,s.useRef)(null),l=(0,s.useRef)(r),u=(0,s.useRef)(!1);(0,s.useLayoutEffect)(()=>{let s=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||0===r.length||0===s.length||r.length!==s.length)return;let c=a.isSameMonth(r[0].date,s[0].date),d=a.isAfter(r[0].date,s[0].date),f=d?n[v.X5.caption_after_enter]:n[v.X5.caption_before_enter],p=d?n[v.X5.weeks_after_enter]:n[v.X5.weeks_before_enter],h=o.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(eB(m).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=eH(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);let n=eV(e);n&&n.classList.remove(f);let r=eq(e);r&&r.classList.remove(p)}),o.current=m):o.current=null,u.current||c||i)return;let g=h instanceof HTMLElement?eB(h):[],y=eB(e.current);if(y&&y.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){u.current=!0;let t=[];e.current.style.isolation="isolate";let r=eH(e.current.querySelector("[data-animated-nav]"));r&&(r.style.zIndex="1"),y.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position="relative",i.style.overflow="hidden";let s=eV(i);s&&s.classList.add(f);let l=eq(i);l&&l.classList.add(p);let c=()=>{u.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position="",i.style.overflow="",i.contains(o)&&i.removeChild(o)};t.push(c),o.style.pointerEvents="none",o.style.position="absolute",o.style.overflow="hidden",o.setAttribute("aria-hidden","true");let h=eH(o.querySelector("[data-animated-weekdays]"));h&&(h.style.opacity="0");let m=eV(o);m&&(m.classList.add(d?n[v.X5.caption_before_exit]:n[v.X5.caption_after_exit]),m.addEventListener("animationend",c));let y=eq(o);y&&y.classList.add(d?n[v.X5.weeks_before_exit]:n[v.X5.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}(eR,!!t.animate,{classNames:f,months:J,focused:es,dateLib:c});let eF={dayPickerProps:t,selected:ei,select:er,isSelected:en,months:J,nextMonth:Q,previousMonth:X,goToMonth:ee,getModifiers:et,components:n,classNames:f,styles:O,labels:u,formatters:l};return s.createElement(ea.Provider,{value:eF},s.createElement(n.Root,{rootRef:t.animate?eR:void 0,className:eD,style:eL,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...ej},s.createElement(n.Months,{className:f[v.UI.Months],style:O?.[v.UI.Months]},!t.hideNavigation&&!m&&s.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[v.UI.Nav],style:O?.[v.UI.Nav],"aria-label":em(),onPreviousClick:eE,onNextClick:eC,previousMonth:X,nextMonth:Q}),J.map((e,r)=>{let i=function(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=i;return l({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:u(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}(e.date,G,K,l,c),a=function(e,t,n,r){if(!e||!t)return;let{startOfYear:i,endOfYear:a,addYears:o,getYear:s,isBefore:l,isSameYear:u}=r,c=i(e),d=a(t),f=[],p=c;for(;l(p,d)||u(p,d);)f.push(p),p=o(p,1);return f.map(e=>{let t=n.formatYearDropdown(e,r);return{value:s(e),label:t,disabled:!1}})}(G,K,l,c);return s.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:f[v.UI.Month],style:O?.[v.UI.Month],key:r,displayIndex:r,calendarMonth:e},"around"===m&&!t.hideNavigation&&0===r&&s.createElement(n.PreviousMonthButton,{type:"button",className:f[v.UI.PreviousMonthButton],tabIndex:X?void 0:-1,"aria-disabled":!X||void 0,"aria-label":eg(X),onClick:eE,"data-animated-button":t.animate?"true":void 0},s.createElement(n.Chevron,{disabled:!X||void 0,className:f[v.UI.Chevron],orientation:"rtl"===t.dir?"right":"left"})),s.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:f[v.UI.MonthCaption],style:O?.[v.UI.MonthCaption],calendarMonth:e,displayIndex:r},p?.startsWith("dropdown")?s.createElement(n.DropdownNav,{className:f[v.UI.Dropdowns],style:O?.[v.UI.Dropdowns]},"dropdown"===p||"dropdown-months"===p?s.createElement(n.MonthsDropdown,{className:f[v.UI.MonthsDropdown],"aria-label":eh(),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:ez(e.date),options:i,style:O?.[v.UI.Dropdown],value:c.getMonth(e.date)}):s.createElement("span",null,M(e.date,c)),"dropdown"===p||"dropdown-years"===p?s.createElement(n.YearsDropdown,{className:f[v.UI.YearsDropdown],"aria-label":ex(c.options),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:eN(e.date),options:a,style:O?.[v.UI.Dropdown],value:c.getYear(e.date)}):s.createElement("span",null,L(e.date,c)),s.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},P(e.date,c.options,c))):s.createElement(n.CaptionLabel,{className:f[v.UI.CaptionLabel],role:"status","aria-live":"polite"},P(e.date,c.options,c))),"around"===m&&!t.hideNavigation&&r===g-1&&s.createElement(n.NextMonthButton,{type:"button",className:f[v.UI.NextMonthButton],tabIndex:Q?void 0:-1,"aria-disabled":!Q||void 0,"aria-label":ey(Q),onClick:eC,"data-animated-button":t.animate?"true":void 0},s.createElement(n.Chevron,{disabled:!Q||void 0,className:f[v.UI.Chevron],orientation:"rtl"===t.dir?"left":"right"})),r===g-1&&"after"===m&&!t.hideNavigation&&s.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[v.UI.Nav],style:O?.[v.UI.Nav],"aria-label":em(),onPreviousClick:eE,onNextClick:eC,previousMonth:X,nextMonth:Q}),s.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===h||"range"===h,"aria-label":ep(e.date,c.options,c)||void 0,className:f[v.UI.MonthGrid],style:O?.[v.UI.MonthGrid]},!t.hideWeekdays&&s.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:f[v.UI.Weekdays],style:O?.[v.UI.Weekdays]},T&&s.createElement(n.WeekNumberHeader,{"aria-label":ew(c.options),className:f[v.UI.WeekNumberHeader],style:O?.[v.UI.WeekNumberHeader],scope:"col"},N()),e_.map((e,t)=>s.createElement(n.Weekday,{"aria-label":ev(e,c.options,c),className:f[v.UI.Weekday],key:t,style:O?.[v.UI.Weekday],scope:"col"},D(e,c.options,c)))),s.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:f[v.UI.Weeks],style:O?.[v.UI.Weeks]},e.weeks.map((e,r)=>s.createElement(n.Week,{className:f[v.UI.Week],key:e.weekNumber,style:O?.[v.UI.Week],week:e},T&&s.createElement(n.WeekNumber,{week:e,style:O?.[v.UI.WeekNumber],"aria-label":eb(e.weekNumber,{locale:d}),className:f[v.UI.WeekNumber],scope:"row",role:"rowheader"},z(e.weekNumber,c)),e.days.map(e=>{let{date:r}=e,i=et(e);if(i[v.pL.focused]=!i.hidden&&!!es?.isEqualTo(e),i[v.wc.selected]=en?.(r)||i.selected,Z(ei)){let{from:e,to:t}=ei;i[v.wc.range_start]=!!(e&&t&&c.isSameDay(r,e)),i[v.wc.range_end]=!!(e&&t&&c.isSameDay(r,t)),i[v.wc.range_middle]=F(ei,r,!0,c)}let a=function(e,t={},n={}){let r={...t?.[v.UI.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{r={...r,...n?.[e]}}),r}(i,O,t.modifiersStyles),o=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[r])=>(n[r]?e.push(n[r]):t[v.pL[r]]?e.push(t[v.pL[r]]):t[v.wc[r]]&&e.push(t[v.wc[r]]),e),[t[v.UI.Day]])}(i,f,t.modifiersClassNames),l=eS||i.hidden?void 0:ef(r,i,c.options,c);return s.createElement(n.Day,{key:`${c.format(r,"yyyy-MM-dd")}_${c.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:i,className:o.join(" "),style:a,role:"gridcell","aria-selected":i.selected||void 0,"aria-label":l,"data-day":c.format(r,"yyyy-MM-dd"),"data-month":e.outside?c.format(r,"yyyy-MM"):void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&eS?s.createElement(n.DayButton,{className:f[v.UI.DayButton],style:O?.[v.UI.DayButton],type:"button",day:e,modifiers:i,disabled:i.disabled||void 0,tabIndex:el(e)?0:-1,"aria-label":ed(r,i,c.options,c),onClick:eA(e,i),onBlur:eO(e,i),onFocus:eT(e,i),onKeyDown:eP(e,i),onMouseEnter:eI(e,i),onMouseLeave:eM(e,i)},I(r,c.options,c)):!i.hidden&&I(e.date,c.options,c))}))))))})),t.footer&&s.createElement(n.Footer,{className:f[v.UI.Footer],style:O?.[v.UI.Footer],role:"status","aria-live":"polite"},t.footer)))}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(r||(r={}))},9026:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},9033:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9051:(e,t,n)=>{"use strict";n.d(t,{OK:()=>Y,bL:()=>V,FK:()=>v,VM:()=>x,lr:()=>z,LM:()=>q});var r=n(2115),i=n(3655),a=n(8905),o=n(6081),s=n(6101),l=n(9033),u=n(4315),c=n(2712),d=n(5185),f=n(5155),p="ScrollArea",[h,m]=(0,o.A)(p),[g,y]=h(p),v=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:a="hover",dir:o,scrollHideDelay:l=600,...c}=e,[d,p]=r.useState(null),[h,m]=r.useState(null),[y,v]=r.useState(null),[b,w]=r.useState(null),[k,x]=r.useState(null),[_,S]=r.useState(0),[E,C]=r.useState(0),[A,T]=r.useState(!1),[O,P]=r.useState(!1),I=(0,s.s)(t,e=>p(e)),M=(0,u.jH)(o);return(0,f.jsx)(g,{scope:n,type:a,dir:M,scrollHideDelay:l,scrollArea:d,viewport:h,onViewportChange:m,content:y,onContentChange:v,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:A,onScrollbarXEnabledChange:T,scrollbarY:k,onScrollbarYChange:x,scrollbarYEnabled:O,onScrollbarYEnabledChange:P,onCornerWidthChange:S,onCornerHeightChange:C,children:(0,f.jsx)(i.sG.div,{dir:M,...c,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});v.displayName=p;var b="ScrollAreaViewport",w=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:a,nonce:o,...l}=e,u=y(b,n),c=r.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});w.displayName=b;var k="ScrollAreaScrollbar",x=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=y(k,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=a,l="horizontal"===e.orientation;return r.useEffect(()=>(l?o(!0):s(!0),()=>{l?o(!1):s(!1)}),[l,o,s]),"hover"===a.type?(0,f.jsx)(_,{...i,ref:t,forceMount:n}):"scroll"===a.type?(0,f.jsx)(S,{...i,ref:t,forceMount:n}):"auto"===a.type?(0,f.jsx)(E,{...i,ref:t,forceMount:n}):"always"===a.type?(0,f.jsx)(C,{...i,ref:t}):null});x.displayName=k;var _=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=y(k,e.__scopeScrollArea),[s,l]=r.useState(!1);return r.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),(0,f.jsx)(a.C,{present:n||s,children:(0,f.jsx)(E,{"data-state":s?"visible":"hidden",...i,ref:t})})}),S=r.forwardRef((e,t)=>{var n;let{forceMount:i,...o}=e,s=y(k,e.__scopeScrollArea),l="horizontal"===e.orientation,u=H(()=>p("SCROLL_END"),100),[c,p]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,p]),r.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(p("SCROLL"),u()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,l,p,u]),(0,f.jsx)(a.C,{present:i||"hidden"!==c,children:(0,f.jsx)(C,{"data-state":"hidden"===c?"hidden":"visible",...o,ref:t,onPointerEnter:(0,d.m)(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:(0,d.m)(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),E=r.forwardRef((e,t)=>{let n=y(k,e.__scopeScrollArea),{forceMount:i,...o}=e,[s,l]=r.useState(!1),u="horizontal"===e.orientation,c=H(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return B(n.viewport,c),B(n.content,c),(0,f.jsx)(a.C,{present:i||s,children:(0,f.jsx)(C,{"data-state":s?"visible":"hidden",...o,ref:t})})}),C=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,a=y(k,e.__scopeScrollArea),o=r.useRef(null),s=r.useRef(0),[l,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=F(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=$(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return W([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===n?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=Z(a.viewport.scrollLeft,l,a.dir);o.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===n?(0,f.jsx)(T,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=Z(a.viewport.scrollTop,l);o.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null}),A=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=y(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,o.onScrollbarXChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(I,{"data-orientation":"horizontal",...a,ref:d,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&i({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:R(l.paddingLeft),paddingEnd:R(l.paddingRight)}})}})}),T=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=y(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,o.onScrollbarYChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(I,{"data-orientation":"vertical",...a,ref:d,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&i({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:R(l.paddingTop),paddingEnd:R(l.paddingBottom)}})}})}),[O,P]=h(k),I=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:a,hasThumb:o,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:p,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:g,onResize:v,...b}=e,w=y(k,n),[x,_]=r.useState(null),S=(0,s.s)(t,e=>_(e)),E=r.useRef(null),C=r.useRef(""),A=w.viewport,T=a.content-a.viewport,P=(0,l.c)(g),I=(0,l.c)(h),M=H(v,10);function z(e){E.current&&m({x:e.clientX-E.current.left,y:e.clientY-E.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&P(e,T)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,x,T,P]),r.useEffect(I,[a,I]),B(x,M),B(w.content,M),(0,f.jsx)(O,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:I,onThumbPointerDown:(0,l.c)(p),children:(0,f.jsx)(i.sG.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:(0,d.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),E.current=x.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),z(e))}),onPointerMove:(0,d.m)(e.onPointerMove,z),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,w.viewport&&(w.viewport.style.scrollBehavior=""),E.current=null})})})}),M="ScrollAreaThumb",z=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=P(M,e.__scopeScrollArea);return(0,f.jsx)(a.C,{present:n||i.hasThumb,children:(0,f.jsx)(N,{ref:t,...r})})}),N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:a,...o}=e,l=y(M,n),u=P(M,n),{onThumbPositionChange:c}=u,p=(0,s.s)(t,e=>u.onThumbChange(e)),h=r.useRef(void 0),m=H(()=>{h.current&&(h.current(),h.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),h.current||(h.current=U(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:(0,d.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,d.m)(e.onPointerUp,u.onThumbPointerUp)})});z.displayName=M;var D="ScrollAreaCorner",L=r.forwardRef((e,t)=>{let n=y(D,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,f.jsx)(j,{...e,ref:t}):null});L.displayName=D;var j=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...a}=e,o=y(D,n),[s,l]=r.useState(0),[u,c]=r.useState(0),d=!!(s&&u);return B(o.scrollbarX,()=>{var e;let t=(null==(e=o.scrollbarX)?void 0:e.offsetHeight)||0;o.onCornerHeightChange(t),c(t)}),B(o.scrollbarY,()=>{var e;let t=(null==(e=o.scrollbarY)?void 0:e.offsetWidth)||0;o.onCornerWidthChange(t),l(t)}),d?(0,f.jsx)(i.sG.div,{...a,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function R(e){return e?parseInt(e,10):0}function F(e,t){let n=e/t;return isNaN(n)?0:n}function $(e){let t=F(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=$(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return W([0,o],[0,a-r])(s)}function W(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function H(e,t){let n=(0,l.c)(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function B(e,t){let n=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var V=v,q=w,Y=L},9072:(e,t,n)=>{"use strict";var r,i,a,o;n.d(t,{UI:()=>r,X5:()=>o,pL:()=>i,wc:()=>a}),function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(r||(r={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(i||(i={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(a||(a={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(o||(o={}))},9074:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9092:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(9447);function i(e,t){let n=(0,r.a)(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}},9143:(e,t,n)=>{"use strict";n.d(t,{Di:()=>y,b8:()=>N,bD:()=>f,eM:()=>E,iM:()=>P,u1:()=>p,u6:()=>k});var r,i,a,o,s,l,u="vercel.ai.error",c=Symbol.for(u),d=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[r]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,u)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};r=c;var f=d;function p(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var h="AI_InvalidArgumentError",m=`vercel.ai.error.${h}`,g=Symbol.for(m),y=class extends f{constructor({message:e,cause:t,argument:n}){super({name:h,message:e,cause:t}),this[i]=!0,this.argument=n}static isInstance(e){return f.hasMarker(e,m)}};i=g,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var v="AI_JSONParseError",b=`vercel.ai.error.${v}`,w=Symbol.for(b),k=class extends f{constructor({text:e,cause:t}){super({name:v,message:`JSON parsing failed: Text: ${e}.
35
35
  Error message: ${p(t)}`,cause:t}),this[a]=!0,this.text=e}static isInstance(e){return f.hasMarker(e,b)}};a=w,Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),Symbol.for("vercel.ai.error.AI_LoadSettingError"),Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");var x="AI_NoSuchModelError",_=`vercel.ai.error.${x}`,S=Symbol.for(_),E=class extends f{constructor({errorName:e=x,modelId:t,modelType:n,message:r=`No such ${n}: ${t}`}){super({name:e,message:r}),this[o]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return f.hasMarker(e,_)}};o=S,Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var C="AI_TypeValidationError",A=`vercel.ai.error.${C}`,T=Symbol.for(A),O=class e extends f{constructor({value:e,cause:t}){super({name:C,message:`Type validation failed: Value: ${JSON.stringify(e)}.
36
36
  Error message: ${p(t)}`,cause:t}),this[s]=!0,this.value=e}static isInstance(e){return f.hasMarker(e,A)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};s=T;var P=O,I="AI_UnsupportedFunctionalityError",M=`vercel.ai.error.${I}`,z=Symbol.for(M),N=class extends f{constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:I,message:t}),this[l]=!0,this.functionality=e}static isInstance(e){return f.hasMarker(e,M)}};l=z},9315:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(5490),i=n(7239),a=n(4423),o=n(9447);function s(e,t){var n,s,l,u,c,d,f,p;let h=(0,o.a)(e,null==t?void 0:t.in),m=h.getFullYear(),g=(0,r.q)(),y=null!=(p=null!=(f=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(s=t.locale)||null==(n=s.options)?void 0:n.firstWeekContainsDate)?d:g.firstWeekContainsDate)?f:null==(u=g.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?p:1,v=(0,i.w)((null==t?void 0:t.in)||e,0);v.setFullYear(m+1,0,y),v.setHours(0,0,0,0);let b=(0,a.k)(v,t),w=(0,i.w)((null==t?void 0:t.in)||e,0);w.setFullYear(m,0,y),w.setHours(0,0,0,0);let k=(0,a.k)(w,t);return+h>=+b?m+1:+h>=+k?m:m-1}},9381:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(1603);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,o=(i.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(a in s){i.call(o,a)||(o[a]=[]);let e=s[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(o[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},9447:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(7239);function i(e,t){return(0,r.w)(t||e,e)}},9535:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(2556);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},9688:(e,t,n)=>{"use strict";n.d(t,{QP:()=>ee});let r=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),a=i?r(e.slice(1),i):void 0;if(a)return a;if(0===t.validators.length)return;let o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},i=/^\[(.+)\]$/,a=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:o(t,e)).classGroupId=n;return}if("function"==typeof e)return s(e)?void a(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{a(i,o(t,e),n,r)})})},o=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},s=e=>e.isThemeGetter,l=/\s+/;function u(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=c(e))&&(r&&(r+=" "),r+=t);return r}let c=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=c(e[r]))&&(n&&(n+=" "),n+=t);return n},d=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},f=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,p=/^\((?:(\w[\w-]*):)?(.+)\)$/i,h=/^\d+\/\d+$/,m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,v=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w=e=>h.test(e),k=e=>!!e&&!Number.isNaN(Number(e)),x=e=>!!e&&Number.isInteger(Number(e)),_=e=>e.endsWith("%")&&k(e.slice(0,-1)),S=e=>m.test(e),E=()=>!0,C=e=>g.test(e)&&!y.test(e),A=()=>!1,T=e=>v.test(e),O=e=>b.test(e),P=e=>!M(e)&&!R(e),I=e=>B(e,J,A),M=e=>f.test(e),z=e=>B(e,G,C),N=e=>B(e,K,k),D=e=>B(e,q,A),L=e=>B(e,Y,O),j=e=>B(e,Q,T),R=e=>p.test(e),F=e=>V(e,G),$=e=>V(e,X),Z=e=>V(e,q),W=e=>V(e,J),U=e=>V(e,Y),H=e=>V(e,Q,!0),B=(e,t,n)=>{let r=f.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},V=(e,t,n=!1)=>{let r=p.exec(e);return!!r&&(r[1]?t(r[1]):n)},q=e=>"position"===e||"percentage"===e,Y=e=>"image"===e||"url"===e,J=e=>"length"===e||"size"===e||"bg-size"===e,G=e=>"length"===e,K=e=>"number"===e,X=e=>"family-name"===e,Q=e=>"shadow"===e;Symbol.toStringTag;let ee=function(e,...t){let n,o,s,c=function(l){let u;return o=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}})((u=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n,r=[],i=0,a=0,o=0;for(let n=0;n<e.length;n++){let s=e[n];if(0===i&&0===a){if(":"===s){r.push(e.slice(o,n)),o=n+1;continue}if("/"===s){t=n;continue}}"["===s?i++:"]"===s?i--:"("===s?a++:")"===s&&a--}let s=0===r.length?e:e.substring(o),l=(n=s).endsWith("!")?n.substring(0,n.length-1):n.startsWith("!")?n.substring(1):n;return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:t&&t>o?t-o:void 0}};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(u),sortModifiers:(e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}})(u),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)a(n[e],r,e,t);return r})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),r(n,t)||(e=>{if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}})(u)}).cache.get,s=n.cache.set,c=d,d(l)};function d(e){let t=o(e);if(t)return t;let r=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(l),u="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{isExternal:l,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){u=t+(u.length>0?" "+u:u);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h||!(m=r(f))){u=t+(u.length>0?" "+u:u);continue}h=!1}let g=a(c).join(":"),y=d?g+"!":g,v=y+m;if(o.includes(v))continue;o.push(v);let b=i(m,h);for(let e=0;e<b.length;++e){let t=b[e];o.push(y+t)}u=t+(u.length>0?" "+u:u)}return u})(e,n);return s(e,r),r}return function(){return c(u.apply(null,arguments))}}(()=>{let e=d("color"),t=d("font"),n=d("text"),r=d("font-weight"),i=d("tracking"),a=d("leading"),o=d("breakpoint"),s=d("container"),l=d("spacing"),u=d("radius"),c=d("shadow"),f=d("inset-shadow"),p=d("text-shadow"),h=d("drop-shadow"),m=d("blur"),g=d("perspective"),y=d("aspect"),v=d("ease"),b=d("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...A(),R,M],O=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],V=()=>[R,M,l],q=()=>[w,"full","auto",...V()],Y=()=>[x,"none","subgrid",R,M],J=()=>["auto",{span:["full",x,R,M]},x,R,M],G=()=>[x,"auto",R,M],K=()=>["auto","min","max","fr",R,M],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...V()],et=()=>[w,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],en=()=>[e,R,M],er=()=>[...A(),Z,D,{position:[R,M]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ea=()=>["auto","cover","contain",W,I,{size:[R,M]}],eo=()=>[_,F,z],es=()=>["","none","full",u,R,M],el=()=>["",k,F,z],eu=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[k,_,Z,D],ef=()=>["","none",m,R,M],ep=()=>["none",k,R,M],eh=()=>["none",k,R,M],em=()=>[k,R,M],eg=()=>[w,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[S],breakpoint:[S],color:[E],container:[S],"drop-shadow":[S],ease:["in","out","in-out"],font:[P],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[S],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[S],shadow:[S],spacing:["px",k],text:[S],"text-shadow":[S],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",w,M,R,y]}],container:["container"],columns:[{columns:[k,M,R,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[x,"auto",R,M]}],basis:[{basis:[w,"full","auto",s,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[k,w,"auto","initial","none",M]}],grow:[{grow:["",k,R,M]}],shrink:[{shrink:["",k,R,M]}],order:[{order:[x,"first","last","none",R,M]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[s,"screen",...et()]}],"min-w":[{"min-w":[s,"screen","none",...et()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",n,F,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,R,N]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_,M]}],"font-family":[{font:[$,M,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,R,M]}],"line-clamp":[{"line-clamp":[k,"none",R,N]}],leading:[{leading:[a,...V()]}],"list-image":[{"list-image":["none",R,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:en()}],"text-color":[{text:en()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[k,"from-font","auto",R,z]}],"text-decoration-color":[{decoration:en()}],"underline-offset":[{"underline-offset":[k,"auto",R,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:er()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:ea()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},x,R,M],radial:["",R,M],conic:[x,R,M]},U,L]}],"bg-color":[{bg:en()}],"gradient-from-pos":[{from:eo()}],"gradient-via-pos":[{via:eo()}],"gradient-to-pos":[{to:eo()}],"gradient-from":[{from:en()}],"gradient-via":[{via:en()}],"gradient-to":[{to:en()}],rounded:[{rounded:es()}],"rounded-s":[{"rounded-s":es()}],"rounded-e":[{"rounded-e":es()}],"rounded-t":[{"rounded-t":es()}],"rounded-r":[{"rounded-r":es()}],"rounded-b":[{"rounded-b":es()}],"rounded-l":[{"rounded-l":es()}],"rounded-ss":[{"rounded-ss":es()}],"rounded-se":[{"rounded-se":es()}],"rounded-ee":[{"rounded-ee":es()}],"rounded-es":[{"rounded-es":es()}],"rounded-tl":[{"rounded-tl":es()}],"rounded-tr":[{"rounded-tr":es()}],"rounded-br":[{"rounded-br":es()}],"rounded-bl":[{"rounded-bl":es()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:en()}],"border-color-x":[{"border-x":en()}],"border-color-y":[{"border-y":en()}],"border-color-s":[{"border-s":en()}],"border-color-e":[{"border-e":en()}],"border-color-t":[{"border-t":en()}],"border-color-r":[{"border-r":en()}],"border-color-b":[{"border-b":en()}],"border-color-l":[{"border-l":en()}],"divide-color":[{divide:en()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[k,R,M]}],"outline-w":[{outline:["",k,F,z]}],"outline-color":[{outline:en()}],shadow:[{shadow:["","none",c,H,j]}],"shadow-color":[{shadow:en()}],"inset-shadow":[{"inset-shadow":["none",f,H,j]}],"inset-shadow-color":[{"inset-shadow":en()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:en()}],"ring-offset-w":[{"ring-offset":[k,z]}],"ring-offset-color":[{"ring-offset":en()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":en()}],"text-shadow":[{"text-shadow":["none",p,H,j]}],"text-shadow-color":[{"text-shadow":en()}],opacity:[{opacity:[k,R,M]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[k]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":en()}],"mask-image-linear-to-color":[{"mask-linear-to":en()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":en()}],"mask-image-t-to-color":[{"mask-t-to":en()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":en()}],"mask-image-r-to-color":[{"mask-r-to":en()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":en()}],"mask-image-b-to-color":[{"mask-b-to":en()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":en()}],"mask-image-l-to-color":[{"mask-l-to":en()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":en()}],"mask-image-x-to-color":[{"mask-x-to":en()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":en()}],"mask-image-y-to-color":[{"mask-y-to":en()}],"mask-image-radial":[{"mask-radial":[R,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":en()}],"mask-image-radial-to-color":[{"mask-radial-to":en()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[k]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":en()}],"mask-image-conic-to-color":[{"mask-conic-to":en()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:er()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:ea()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,M]}],filter:[{filter:["","none",R,M]}],blur:[{blur:ef()}],brightness:[{brightness:[k,R,M]}],contrast:[{contrast:[k,R,M]}],"drop-shadow":[{"drop-shadow":["","none",h,H,j]}],"drop-shadow-color":[{"drop-shadow":en()}],grayscale:[{grayscale:["",k,R,M]}],"hue-rotate":[{"hue-rotate":[k,R,M]}],invert:[{invert:["",k,R,M]}],saturate:[{saturate:[k,R,M]}],sepia:[{sepia:["",k,R,M]}],"backdrop-filter":[{"backdrop-filter":["","none",R,M]}],"backdrop-blur":[{"backdrop-blur":ef()}],"backdrop-brightness":[{"backdrop-brightness":[k,R,M]}],"backdrop-contrast":[{"backdrop-contrast":[k,R,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",k,R,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k,R,M]}],"backdrop-invert":[{"backdrop-invert":["",k,R,M]}],"backdrop-opacity":[{"backdrop-opacity":[k,R,M]}],"backdrop-saturate":[{"backdrop-saturate":[k,R,M]}],"backdrop-sepia":[{"backdrop-sepia":["",k,R,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[k,"initial",R,M]}],ease:[{ease:["linear","initial",v,R,M]}],delay:[{delay:[k,R,M]}],animate:[{animate:["none",b,R,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,R,M]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:eh()}],"scale-x":[{"scale-x":eh()}],"scale-y":[{"scale-y":eh()}],"scale-z":[{"scale-z":eh()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[R,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:en()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:en()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,M]}],fill:[{fill:["none",...en()]}],"stroke-w":[{stroke:[k,F,z,N]}],stroke:[{stroke:["none",...en()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},9708:(e,t,n)=>{"use strict";n.d(t,{DX:()=>s,TL:()=>o});var r=n(2115),i=n(6101),a=n(5155);function o(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){var o;let e,s,l=(o=n,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,s=r.Children.toArray(i),l=s.find(u);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,a.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var s=o("Slot"),l=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},9946:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(2115);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...o,width:i,height:i,stroke:n,strokeWidth:l?24*Number(s)/Number(i):s,className:a("lucide",u),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"},...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:l,...u}=n;return(0,r.createElement)(s,{ref:o,iconNode:t,className:a("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...u})});return n.displayName=i(e),n}},9985:(e,t,n)=>{"use strict";n.d(t,{fd:()=>i,rs:()=>r}),Symbol("ZodOutput"),Symbol("ZodInput");class r{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}let i=new r}}]);