ocean-brain 0.8.0 → 0.8.1

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 (244) hide show
  1. package/package.json +3 -2
  2. package/server/client/dist/assets/{ArrowRight.es-C4zlc54Z.js → ArrowRight.es-CbA8ey6a.js} +1 -1
  3. package/server/client/dist/assets/{Calendar-COrN6Hjv.js → Calendar-CgWgr1BV.js} +1 -1
  4. package/server/client/dist/assets/{Callout-BK0K9E74.js → Callout-DKruIT0f.js} +1 -1
  5. package/server/client/dist/assets/{Copy.es-zm8f_XXX.js → Copy.es-DFbgpaNJ.js} +1 -1
  6. package/server/client/dist/assets/{Graph-BH1fzhue.js → Graph-kCltGRlY.js} +1 -1
  7. package/server/client/dist/assets/{Image-KXuHOG4b.js → Image-7W0DZwMo.js} +1 -1
  8. package/server/client/dist/assets/{Image.es-BKahRbIm.js → Image.es-5pXLx9TU.js} +1 -1
  9. package/server/client/dist/assets/Note-BW6Np_5g.js +20 -0
  10. package/server/client/dist/assets/{Plus.es-BqeC8T8h.js → Plus.es-B0sg64VJ.js} +1 -1
  11. package/server/client/dist/assets/{Reminders-BYG5rz1M.js → Reminders-C10fHQcl.js} +1 -1
  12. package/server/client/dist/assets/{Search-DBWsIMDP.js → Search-tf2nV4v0.js} +1 -1
  13. package/server/client/dist/assets/{SurfaceCard-CNSQfYfM.js → SurfaceCard-pydtvHfu.js} +1 -1
  14. package/server/client/dist/assets/{Tag-5aCfSO8Y.js → Tag-uCoYbISy.js} +1 -1
  15. package/server/client/dist/assets/{TagNotes-BPZjN-6l.js → TagNotes-CqOcQiRw.js} +1 -1
  16. package/server/client/dist/assets/{Trash.es-CRQkTnXZ.js → Trash.es-w32Goxfa.js} +1 -1
  17. package/server/client/dist/assets/{ViewNotes-DGLNF96x.js → ViewNotes-slPXXoOY.js} +1 -1
  18. package/server/client/dist/assets/{ViewSectionDialog-CzskgmMF.js → ViewSectionDialog-brTrsF6G.js} +1 -1
  19. package/server/client/dist/assets/{Views-DR5jT23G.js → Views-B_wsb-XJ.js} +1 -1
  20. package/server/client/dist/assets/{graph-vendor-UTvF2NS_.js → graph-vendor-BAF95C0g.js} +1 -1
  21. package/server/client/dist/assets/{image.api-8dlMwzMd.js → image.api-CYsjXiMr.js} +1 -1
  22. package/server/client/dist/assets/{index-VHp17GQX.js → index-BR05aSXr.js} +4 -4
  23. package/server/client/dist/assets/{index-DGIAh3ZY.js → index-D83QbOcw.js} +1 -1
  24. package/server/client/dist/assets/{index-BEUqDuAZ.css → index-DPI6YoDt.css} +1 -1
  25. package/server/client/dist/assets/{manage-image-RqtWKas2.js → manage-image-BYIhWu56.js} +1 -1
  26. package/server/client/dist/assets/{manage-image-detail-BTSIbLlQ.js → manage-image-detail-6KgmQvbN.js} +1 -1
  27. package/server/client/dist/assets/{mcp-EDurbggR.js → mcp-Dd98N9Hq.js} +2 -2
  28. package/server/client/dist/assets/{mcp-admin-adapter-DmGUo5G8.js → mcp-admin-adapter-DOgBsYpl.js} +1 -1
  29. package/server/client/dist/assets/note-core-CMGUaW1v.js +176 -0
  30. package/server/client/dist/assets/note-vendor-Hoz9Q4-4.js +54 -0
  31. package/server/client/dist/assets/{placeholder-DeKgSBnC.js → placeholder-siHGg9aK.js} +4 -4
  32. package/server/client/dist/assets/{properties-BjrZvOYn.js → properties-CyVRKgcT.js} +1 -1
  33. package/server/client/dist/assets/{tag.api-Dl8DQd0m.js → tag.api-CwmC8crB.js} +1 -1
  34. package/server/client/dist/assets/{trash-C5ntddLu.js → trash-wojQBK9Z.js} +1 -1
  35. package/server/client/dist/assets/{useReminderMutate-CoXXqJY2.js → useReminderMutate-DuVKxpBh.js} +1 -1
  36. package/server/client/dist/index.html +5 -5
  37. package/server/dist/app.js +0 -1
  38. package/server/dist/features/auth/http/api.js +0 -1
  39. package/server/dist/features/auth/http/login-page.js +272 -5
  40. package/server/dist/features/auth/http/pages.js +20 -3
  41. package/server/dist/features/auth/service.js +3 -2
  42. package/server/dist/features/cache/graphql/cache.field.resolver.js +0 -1
  43. package/server/dist/features/cache/graphql/cache.mutation.resolver.js +0 -1
  44. package/server/dist/features/cache/graphql/cache.query.resolver.js +0 -1
  45. package/server/dist/features/cache/graphql/cache.resolver.js +0 -1
  46. package/server/dist/features/cache/graphql/cache.type-defs.js +0 -1
  47. package/server/dist/features/cache/graphql/index.js +0 -1
  48. package/server/dist/features/image/graphql/image.field.resolver.js +0 -1
  49. package/server/dist/features/image/graphql/image.mutation.resolver.js +0 -1
  50. package/server/dist/features/image/graphql/image.query.resolver.js +0 -1
  51. package/server/dist/features/image/graphql/image.resolver.js +0 -1
  52. package/server/dist/features/image/graphql/image.type-defs.js +0 -1
  53. package/server/dist/features/image/graphql/index.js +0 -1
  54. package/server/dist/features/image/http/upload.js +0 -1
  55. package/server/dist/features/image/services/delete.js +0 -1
  56. package/server/dist/features/image/services/upload.js +0 -1
  57. package/server/dist/features/image/services/validation.js +0 -1
  58. package/server/dist/features/mcp-admin/http/handlers.js +0 -1
  59. package/server/dist/features/mcp-admin/service.js +0 -1
  60. package/server/dist/features/note/graphql/index.js +0 -1
  61. package/server/dist/features/note/graphql/note.field.resolver.js +0 -1
  62. package/server/dist/features/note/graphql/note.mutation.resolver.js +0 -1
  63. package/server/dist/features/note/graphql/note.query.resolver.js +0 -1
  64. package/server/dist/features/note/graphql/note.resolver.js +0 -1
  65. package/server/dist/features/note/graphql/note.type-defs.js +0 -1
  66. package/server/dist/features/note/http/mcp.js +0 -1
  67. package/server/dist/features/note/services/authoring.js +0 -1
  68. package/server/dist/features/note/services/cleanup.js +0 -1
  69. package/server/dist/features/note/services/content-blocks.js +0 -1
  70. package/server/dist/features/note/services/markdown-intent-write.js +0 -1
  71. package/server/dist/features/note/services/markdown-patch.js +0 -1
  72. package/server/dist/features/note/services/properties.js +0 -1
  73. package/server/dist/features/note/services/search-backfill.js +0 -1
  74. package/server/dist/features/note/services/search.js +0 -1
  75. package/server/dist/features/note/services/snapshot.js +0 -1
  76. package/server/dist/features/note/services/tag-filter.js +0 -1
  77. package/server/dist/features/note/services/trash.js +0 -1
  78. package/server/dist/features/note/services/write-conflict.js +0 -1
  79. package/server/dist/features/note/services/write.js +0 -1
  80. package/server/dist/features/placeholder/graphql/index.js +0 -1
  81. package/server/dist/features/placeholder/graphql/placeholder.field.resolver.js +0 -1
  82. package/server/dist/features/placeholder/graphql/placeholder.mutation.resolver.js +0 -1
  83. package/server/dist/features/placeholder/graphql/placeholder.query.resolver.js +0 -1
  84. package/server/dist/features/placeholder/graphql/placeholder.resolver.js +0 -1
  85. package/server/dist/features/placeholder/graphql/placeholder.type-defs.js +0 -1
  86. package/server/dist/features/reminder/graphql/index.js +0 -1
  87. package/server/dist/features/reminder/graphql/reminder.field.resolver.js +0 -1
  88. package/server/dist/features/reminder/graphql/reminder.mutation.resolver.js +0 -1
  89. package/server/dist/features/reminder/graphql/reminder.query.resolver.js +0 -1
  90. package/server/dist/features/reminder/graphql/reminder.resolver.js +0 -1
  91. package/server/dist/features/reminder/graphql/reminder.type-defs.js +0 -1
  92. package/server/dist/features/tag/graphql/index.js +0 -1
  93. package/server/dist/features/tag/graphql/tag.field.resolver.js +0 -1
  94. package/server/dist/features/tag/graphql/tag.mutation.resolver.js +0 -1
  95. package/server/dist/features/tag/graphql/tag.query.resolver.js +0 -1
  96. package/server/dist/features/tag/graphql/tag.resolver.js +0 -1
  97. package/server/dist/features/tag/graphql/tag.type-defs.js +0 -1
  98. package/server/dist/features/tag/http/mcp.js +0 -1
  99. package/server/dist/features/tag/services/organization.js +0 -1
  100. package/server/dist/features/view/graphql/index.js +0 -1
  101. package/server/dist/features/view/graphql/view.mutation.resolver.js +0 -1
  102. package/server/dist/features/view/graphql/view.query.resolver.js +0 -1
  103. package/server/dist/features/view/graphql/view.resolver.js +0 -1
  104. package/server/dist/features/view/graphql/view.type-defs.js +0 -1
  105. package/server/dist/features/view/services/workspace.js +0 -1
  106. package/server/dist/main.js +0 -1
  107. package/server/dist/models.js +0 -1
  108. package/server/dist/modules/app-version.js +0 -1
  109. package/server/dist/modules/auth-guard.js +0 -1
  110. package/server/dist/modules/auth-mode.js +0 -1
  111. package/server/dist/modules/auth-redirect.js +0 -1
  112. package/server/dist/modules/blocknote-markdown-editor.js +53 -0
  113. package/server/dist/modules/blocknote-tree.js +0 -1
  114. package/server/dist/modules/blocknote.js +10 -4
  115. package/server/dist/modules/data-maintenance.js +0 -1
  116. package/server/dist/modules/error-handler.js +0 -1
  117. package/server/dist/modules/graphql.js +0 -1
  118. package/server/dist/modules/logger.js +0 -1
  119. package/server/dist/modules/mcp-auth.js +0 -1
  120. package/server/dist/modules/mcp-token.js +0 -1
  121. package/server/dist/modules/prisma-runtime.js +0 -1
  122. package/server/dist/modules/rate-limit.js +0 -1
  123. package/server/dist/modules/recovery-retention.js +0 -1
  124. package/server/dist/modules/server-events-handler.js +0 -1
  125. package/server/dist/modules/server-events.js +0 -1
  126. package/server/dist/modules/session-store.js +0 -1
  127. package/server/dist/modules/use-async.js +0 -1
  128. package/server/dist/paths.js +0 -1
  129. package/server/dist/routes/api.js +0 -1
  130. package/server/dist/routes/auth-pages.js +0 -1
  131. package/server/dist/routes/client.js +0 -1
  132. package/server/dist/routes/graphql.js +0 -1
  133. package/server/dist/routes/index.js +0 -1
  134. package/server/dist/routes/mcp.js +0 -1
  135. package/server/dist/schema/index.js +0 -1
  136. package/server/dist/start.js +0 -1
  137. package/server/dist/types/index.js +0 -1
  138. package/server/dist/types/input.js +0 -1
  139. package/server/client/dist/assets/Note-C143cKKw.js +0 -12
  140. package/server/client/dist/assets/note-core-BklwyZHk.js +0 -180
  141. package/server/client/dist/assets/note-vendor-DkYKUmLo.js +0 -54
  142. package/server/client/dist/fonts/Pretendard-Bold.woff +0 -0
  143. package/server/client/dist/fonts/Pretendard-Regular.woff +0 -0
  144. package/server/dist/app.js.map +0 -1
  145. package/server/dist/features/auth/http/api.js.map +0 -1
  146. package/server/dist/features/auth/http/login-page.js.map +0 -1
  147. package/server/dist/features/auth/http/pages.js.map +0 -1
  148. package/server/dist/features/auth/service.js.map +0 -1
  149. package/server/dist/features/cache/graphql/cache.field.resolver.js.map +0 -1
  150. package/server/dist/features/cache/graphql/cache.mutation.resolver.js.map +0 -1
  151. package/server/dist/features/cache/graphql/cache.query.resolver.js.map +0 -1
  152. package/server/dist/features/cache/graphql/cache.resolver.js.map +0 -1
  153. package/server/dist/features/cache/graphql/cache.type-defs.js.map +0 -1
  154. package/server/dist/features/cache/graphql/index.js.map +0 -1
  155. package/server/dist/features/image/graphql/image.field.resolver.js.map +0 -1
  156. package/server/dist/features/image/graphql/image.mutation.resolver.js.map +0 -1
  157. package/server/dist/features/image/graphql/image.query.resolver.js.map +0 -1
  158. package/server/dist/features/image/graphql/image.resolver.js.map +0 -1
  159. package/server/dist/features/image/graphql/image.type-defs.js.map +0 -1
  160. package/server/dist/features/image/graphql/index.js.map +0 -1
  161. package/server/dist/features/image/http/upload.js.map +0 -1
  162. package/server/dist/features/image/services/delete.js.map +0 -1
  163. package/server/dist/features/image/services/upload.js.map +0 -1
  164. package/server/dist/features/image/services/validation.js.map +0 -1
  165. package/server/dist/features/mcp-admin/http/handlers.js.map +0 -1
  166. package/server/dist/features/mcp-admin/service.js.map +0 -1
  167. package/server/dist/features/note/graphql/index.js.map +0 -1
  168. package/server/dist/features/note/graphql/note.field.resolver.js.map +0 -1
  169. package/server/dist/features/note/graphql/note.mutation.resolver.js.map +0 -1
  170. package/server/dist/features/note/graphql/note.query.resolver.js.map +0 -1
  171. package/server/dist/features/note/graphql/note.resolver.js.map +0 -1
  172. package/server/dist/features/note/graphql/note.type-defs.js.map +0 -1
  173. package/server/dist/features/note/http/mcp.js.map +0 -1
  174. package/server/dist/features/note/services/authoring.js.map +0 -1
  175. package/server/dist/features/note/services/cleanup.js.map +0 -1
  176. package/server/dist/features/note/services/content-blocks.js.map +0 -1
  177. package/server/dist/features/note/services/markdown-intent-write.js.map +0 -1
  178. package/server/dist/features/note/services/markdown-patch.js.map +0 -1
  179. package/server/dist/features/note/services/properties.js.map +0 -1
  180. package/server/dist/features/note/services/search-backfill.js.map +0 -1
  181. package/server/dist/features/note/services/search.js.map +0 -1
  182. package/server/dist/features/note/services/snapshot.js.map +0 -1
  183. package/server/dist/features/note/services/tag-filter.js.map +0 -1
  184. package/server/dist/features/note/services/trash.js.map +0 -1
  185. package/server/dist/features/note/services/write-conflict.js.map +0 -1
  186. package/server/dist/features/note/services/write.js.map +0 -1
  187. package/server/dist/features/placeholder/graphql/index.js.map +0 -1
  188. package/server/dist/features/placeholder/graphql/placeholder.field.resolver.js.map +0 -1
  189. package/server/dist/features/placeholder/graphql/placeholder.mutation.resolver.js.map +0 -1
  190. package/server/dist/features/placeholder/graphql/placeholder.query.resolver.js.map +0 -1
  191. package/server/dist/features/placeholder/graphql/placeholder.resolver.js.map +0 -1
  192. package/server/dist/features/placeholder/graphql/placeholder.type-defs.js.map +0 -1
  193. package/server/dist/features/reminder/graphql/index.js.map +0 -1
  194. package/server/dist/features/reminder/graphql/reminder.field.resolver.js.map +0 -1
  195. package/server/dist/features/reminder/graphql/reminder.mutation.resolver.js.map +0 -1
  196. package/server/dist/features/reminder/graphql/reminder.query.resolver.js.map +0 -1
  197. package/server/dist/features/reminder/graphql/reminder.resolver.js.map +0 -1
  198. package/server/dist/features/reminder/graphql/reminder.type-defs.js.map +0 -1
  199. package/server/dist/features/tag/graphql/index.js.map +0 -1
  200. package/server/dist/features/tag/graphql/tag.field.resolver.js.map +0 -1
  201. package/server/dist/features/tag/graphql/tag.mutation.resolver.js.map +0 -1
  202. package/server/dist/features/tag/graphql/tag.query.resolver.js.map +0 -1
  203. package/server/dist/features/tag/graphql/tag.resolver.js.map +0 -1
  204. package/server/dist/features/tag/graphql/tag.type-defs.js.map +0 -1
  205. package/server/dist/features/tag/http/mcp.js.map +0 -1
  206. package/server/dist/features/tag/services/organization.js.map +0 -1
  207. package/server/dist/features/view/graphql/index.js.map +0 -1
  208. package/server/dist/features/view/graphql/view.mutation.resolver.js.map +0 -1
  209. package/server/dist/features/view/graphql/view.query.resolver.js.map +0 -1
  210. package/server/dist/features/view/graphql/view.resolver.js.map +0 -1
  211. package/server/dist/features/view/graphql/view.type-defs.js.map +0 -1
  212. package/server/dist/features/view/services/workspace.js.map +0 -1
  213. package/server/dist/main.js.map +0 -1
  214. package/server/dist/models.js.map +0 -1
  215. package/server/dist/modules/app-version.js.map +0 -1
  216. package/server/dist/modules/auth-guard.js.map +0 -1
  217. package/server/dist/modules/auth-mode.js.map +0 -1
  218. package/server/dist/modules/auth-redirect.js.map +0 -1
  219. package/server/dist/modules/blocknote-tree.js.map +0 -1
  220. package/server/dist/modules/blocknote.js.map +0 -1
  221. package/server/dist/modules/data-maintenance.js.map +0 -1
  222. package/server/dist/modules/error-handler.js.map +0 -1
  223. package/server/dist/modules/graphql.js.map +0 -1
  224. package/server/dist/modules/logger.js.map +0 -1
  225. package/server/dist/modules/mcp-auth.js.map +0 -1
  226. package/server/dist/modules/mcp-token.js.map +0 -1
  227. package/server/dist/modules/prisma-runtime.js.map +0 -1
  228. package/server/dist/modules/rate-limit.js.map +0 -1
  229. package/server/dist/modules/recovery-retention.js.map +0 -1
  230. package/server/dist/modules/server-events-handler.js.map +0 -1
  231. package/server/dist/modules/server-events.js.map +0 -1
  232. package/server/dist/modules/session-store.js.map +0 -1
  233. package/server/dist/modules/use-async.js.map +0 -1
  234. package/server/dist/paths.js.map +0 -1
  235. package/server/dist/routes/api.js.map +0 -1
  236. package/server/dist/routes/auth-pages.js.map +0 -1
  237. package/server/dist/routes/client.js.map +0 -1
  238. package/server/dist/routes/graphql.js.map +0 -1
  239. package/server/dist/routes/index.js.map +0 -1
  240. package/server/dist/routes/mcp.js.map +0 -1
  241. package/server/dist/schema/index.js.map +0 -1
  242. package/server/dist/start.js.map +0 -1
  243. package/server/dist/types/index.js.map +0 -1
  244. package/server/dist/types/input.js.map +0 -1
@@ -1,54 +0,0 @@
1
- import{r as Tc,g as Vy,a as x,R as Rc,N as Ve}from"./graph-vendor-UTvF2NS_.js";import{a as kC,f as VC,P as BC,b as $C,y as UC,g as GC,c as bm,D as Rd,d as ZC,M as PC,m as qC,e as YC,H as XC,N as IC,i as QC,h as FC,L as KC,A as JC,B as WC,_ as Eo,j as ht,k as kt,l as Ys,n as Wa,p as e4,o as Hl,q as Ke,r as Mc,S as ei,T as t4,s as Oc,t as Qn,I as xm,u as Pv,C as n4,v as o4,w as By,x as $y,z as Uy,E as l4,F as r4,R as ti,G as a4,J as i4,K as s4,O as c4,Q as Gy,U as u4,V as f4,W as qv,X as d4,Y as m4,Z as p4,$ as h4,a0 as g4,a1 as we,a2 as Sm}from"./note-core-BklwyZHk.js";var Md={exports:{}},qa={};var Yv;function v4(){if(Yv)return qa;Yv=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function r(a,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:t,type:a,key:u,ref:s!==void 0?s:null,props:c}}return qa.Fragment=o,qa.jsx=r,qa.jsxs=r,qa}var Xv;function y4(){return Xv||(Xv=1,Md.exports=v4()),Md.exports}var y=y4(),Od={exports:{}},Ya={},jd={exports:{}},_d={};var Iv;function b4(){return Iv||(Iv=1,(function(t){function o(z,L){var _=z.length;z.push(L);e:for(;0<_;){var Z=_-1>>>1,I=z[Z];if(0<s(I,L))z[Z]=L,z[_]=I,_=Z;else break e}}function r(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var L=z[0],_=z.pop();if(_!==L){z[0]=_;e:for(var Z=0,I=z.length,ae=I>>>1;Z<ae;){var ne=2*(Z+1)-1,re=z[ne],ve=ne+1,se=z[ve];if(0>s(re,_))ve<I&&0>s(se,re)?(z[Z]=se,z[ve]=_,Z=ve):(z[Z]=re,z[ne]=_,Z=ne);else if(ve<I&&0>s(se,_))z[Z]=se,z[ve]=_,Z=ve;else break e}}return L}function s(z,L){var _=z.sortIndex-L.sortIndex;return _!==0?_:z.id-L.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var m=[],h=[],g=1,v=null,b=3,C=!1,E=!1,w=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function N(z){for(var L=r(h);L!==null;){if(L.callback===null)a(h);else if(L.startTime<=z)a(h),L.sortIndex=L.expirationTime,o(m,L);else break;L=r(h)}}function D(z){if(w=!1,N(z),!E)if(r(m)!==null)E=!0,V||(V=!0,le());else{var L=r(h);L!==null&&W(D,L.startTime-z)}}var V=!1,$=-1,X=5,F=-1;function q(){return T?!0:!(t.unstable_now()-F<X)}function te(){if(T=!1,V){var z=t.unstable_now();F=z;var L=!0;try{e:{E=!1,w&&(w=!1,O($),$=-1),C=!0;var _=b;try{t:{for(N(z),v=r(m);v!==null&&!(v.expirationTime>z&&q());){var Z=v.callback;if(typeof Z=="function"){v.callback=null,b=v.priorityLevel;var I=Z(v.expirationTime<=z);if(z=t.unstable_now(),typeof I=="function"){v.callback=I,N(z),L=!0;break t}v===r(m)&&a(m),N(z)}else a(m);v=r(m)}if(v!==null)L=!0;else{var ae=r(h);ae!==null&&W(D,ae.startTime-z),L=!1}}break e}finally{v=null,b=_,C=!1}L=void 0}}finally{L?le():V=!1}}}var le;if(typeof j=="function")le=function(){j(te)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,H=ee.port2;ee.port1.onmessage=te,le=function(){H.postMessage(null)}}else le=function(){M(te,0)};function W(z,L){$=M(function(){z(t.unstable_now())},L)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(z){switch(b){case 1:case 2:case 3:var L=3;break;default:L=b}var _=b;b=L;try{return z()}finally{b=_}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var _=b;b=z;try{return L()}finally{b=_}},t.unstable_scheduleCallback=function(z,L,_){var Z=t.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?Z+_:Z):_=Z,z){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=_+I,z={id:g++,callback:L,priorityLevel:z,startTime:_,expirationTime:I,sortIndex:-1},_>Z?(z.sortIndex=_,o(h,z),r(m)===null&&z===r(h)&&(w?(O($),$=-1):w=!0,W(D,_-Z))):(z.sortIndex=I,o(m,z),E||C||(E=!0,V||(V=!0,le()))),z},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(z){var L=b;return function(){var _=b;b=L;try{return z.apply(this,arguments)}finally{b=_}}}})(_d)),_d}var Qv;function x4(){return Qv||(Qv=1,jd.exports=b4()),jd.exports}var Nd={exports:{}},Et={};var Fv;function S4(){if(Fv)return Et;Fv=1;var t=Tc();function o(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(o(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(m,h,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:m,containerInfo:h,implementation:g}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Et.createPortal=function(m,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return c(m,h,null,g)},Et.flushSync=function(m){var h=u.T,g=a.p;try{if(u.T=null,a.p=2,m)return m()}finally{u.T=h,a.p=g,a.d.f()}},Et.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Et.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Et.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var g=h.as,v=f(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:C}):g==="script"&&a.d.X(m,{crossOrigin:v,integrity:b,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Et.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Et.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,v=f(g,h.crossOrigin);a.d.L(m,g,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Et.preloadModule=function(m,h){if(typeof m=="string")if(h){var g=f(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Et.requestFormReset=function(m){a.d.r(m)},Et.unstable_batchedUpdates=function(m,h){return m(h)},Et.useFormState=function(m,h,g){return u.H.useFormState(m,h,g)},Et.useFormStatus=function(){return u.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var Kv;function Zy(){if(Kv)return Nd.exports;Kv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Nd.exports=S4(),Nd.exports}var Jv;function C4(){if(Jv)return Ya;Jv=1;var t=x4(),o=Tc(),r=Zy();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function u(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function f(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(a(188))}function h(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(a(188));return n!==e?null:e}for(var l=e,i=n;;){var d=l.return;if(d===null)break;var p=d.alternate;if(p===null){if(i=d.return,i!==null){l=i;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===l)return m(d),e;if(p===i)return m(d),n;p=p.sibling}throw Error(a(188))}if(l.return!==i.return)l=d,i=p;else{for(var S=!1,R=d.child;R;){if(R===l){S=!0,l=d,i=p;break}if(R===i){S=!0,i=d,l=p;break}R=R.sibling}if(!S){for(R=p.child;R;){if(R===l){S=!0,l=p,i=d;break}if(R===i){S=!0,i=p,l=d;break}R=R.sibling}if(!S)throw Error(a(189))}}if(l.alternate!==i)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:n}function g(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=g(e),n!==null)return n;e=e.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),j=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function H(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case D:return"Suspense";case V:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case j:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case N:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return n=e.displayName||null,n!==null?n:H(e.type)||"Memo";case X:n=e._payload,e=e._init;try{return H(e(n))}catch{}}return null}var W=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_={pending:!1,data:null,method:null,action:null},Z=[],I=-1;function ae(e){return{current:e}}function ne(e){0>I||(e.current=Z[I],Z[I]=null,I--)}function re(e,n){I++,Z[I]=e.current,e.current=n}var ve=ae(null),se=ae(null),be=ae(null),Le=ae(null);function Ee(e,n){switch(re(be,n),re(se,e),re(ve,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?mv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=mv(n),e=pv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ne(ve),re(ve,e)}function ye(){ne(ve),ne(se),ne(be)}function Je(e){e.memoizedState!==null&&re(Le,e);var n=ve.current,l=pv(n,e.type);n!==l&&(re(se,e),re(ve,l))}function nt(e){se.current===e&&(ne(ve),ne(se)),Le.current===e&&(ne(Le),Ua._currentValue=_)}var We,Ae;function tt(e){if(We===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);We=n&&n[1]||"",Ae=-1<l.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+We+e+Ae}var nn=!1;function An(e,n){if(!e||nn)return"";nn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Y){var P=Y}Reflect.construct(e,[],J)}else{try{J.call()}catch(Y){P=Y}e.call(J.prototype)}}else{try{throw Error()}catch(Y){P=Y}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(Y){if(Y&&P&&typeof Y.stack=="string")return[Y.stack,P.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=i.DetermineComponentFrameRoot(),S=p[0],R=p[1];if(S&&R){var A=S.split(`
4
- `),G=R.split(`
5
- `);for(d=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;d<G.length&&!G[d].includes("DetermineComponentFrameRoot");)d++;if(i===A.length||d===G.length)for(i=A.length-1,d=G.length-1;1<=i&&0<=d&&A[i]!==G[d];)d--;for(;1<=i&&0<=d;i--,d--)if(A[i]!==G[d]){if(i!==1||d!==1)do if(i--,d--,0>d||A[i]!==G[d]){var Q=`
6
- `+A[i].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=i&&0<=d);break}}}finally{nn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?tt(l):""}function No(e,n){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return e.child!==n&&n!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return An(e.type,!1);case 11:return An(e.type.render,!1);case 1:return An(e.type,!0);case 31:return tt("Activity");default:return""}}function Dn(e){try{var n="",l=null;do n+=No(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}}var wt=Object.prototype.hasOwnProperty,to=t.unstable_scheduleCallback,Bl=t.unstable_cancelCallback,su=t.unstable_shouldYield,cu=t.unstable_requestPaint,Ot=t.unstable_now,uu=t.unstable_getCurrentPriorityLevel,Jr=t.unstable_ImmediatePriority,ft=t.unstable_UserBlockingPriority,$l=t.unstable_NormalPriority,fu=t.unstable_LowPriority,yi=t.unstable_IdlePriority,du=t.log,no=t.unstable_setDisableYieldValue,Wr=null,Gt=null;function Ao(e){if(typeof du=="function"&&no(e),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Wr,e)}catch{}}var Zt=Math.clz32?Math.clz32:wx,Sx=Math.log,Cx=Math.LN2;function wx(e){return e>>>=0,e===0?32:31-(Sx(e)/Cx|0)|0}var bi=256,xi=262144,Si=4194304;function ml(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ci(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var d=0,p=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var R=i&134217727;return R!==0?(i=R&~p,i!==0?d=ml(i):(S&=R,S!==0?d=ml(S):l||(l=R&~e,l!==0&&(d=ml(l))))):(R=i&~p,R!==0?d=ml(R):S!==0?d=ml(S):l||(l=i&~e,l!==0&&(d=ml(l)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,l=n&-n,p>=l||p===32&&(l&4194048)!==0)?n:d}function ea(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ex(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ip(){var e=Si;return Si<<=1,(Si&62914560)===0&&(Si=4194304),e}function mu(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ta(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tx(e,n,l,i,d,p){var S=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var R=e.entanglements,A=e.expirationTimes,G=e.hiddenUpdates;for(l=S&~l;0<l;){var Q=31-Zt(l),J=1<<Q;R[Q]=0,A[Q]=-1;var P=G[Q];if(P!==null)for(G[Q]=null,Q=0;Q<P.length;Q++){var Y=P[Q];Y!==null&&(Y.lane&=-536870913)}l&=~J}i!==0&&Qp(e,i,0),p!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=p&~(S&~n))}function Qp(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Zt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Fp(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-Zt(l),d=1<<i;d&n|e[i]&n&&(e[i]|=n),l&=~d}}function Kp(e,n){var l=n&-n;return l=(l&42)!==0?1:pu(l),(l&(e.suspendedLanes|n))!==0?0:l}function pu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Jp(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:kv(e.type))}function Wp(e,n){var l=L.p;try{return L.p=e,n()}finally{L.p=l}}var Do=Math.random().toString(36).slice(2),vt="__reactFiber$"+Do,_t="__reactProps$"+Do,Ul="__reactContainer$"+Do,gu="__reactEvents$"+Do,Rx="__reactListeners$"+Do,Mx="__reactHandles$"+Do,eh="__reactResources$"+Do,na="__reactMarker$"+Do;function vu(e){delete e[vt],delete e[_t],delete e[gu],delete e[Rx],delete e[Mx]}function Gl(e){var n=e[vt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Ul]||l[vt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Sv(e);e!==null;){if(l=e[vt])return l;e=Sv(e)}return n}e=l,l=e.parentNode}return null}function Zl(e){if(e=e[vt]||e[Ul]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function oa(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function Pl(e){var n=e[eh];return n||(n=e[eh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function mt(e){e[na]=!0}var th=new Set,nh={};function pl(e,n){ql(e,n),ql(e+"Capture",n)}function ql(e,n){for(nh[e]=n,e=0;e<n.length;e++)th.add(n[e])}var Ox=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oh={},lh={};function jx(e){return wt.call(lh,e)?!0:wt.call(oh,e)?!1:Ox.test(e)?lh[e]=!0:(oh[e]=!0,!1)}function wi(e,n,l){if(jx(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function Ei(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function oo(e,n,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+i)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function _x(e,n,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,p=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(S){l=""+S,p.call(this,S)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function yu(e){if(!e._valueTracker){var n=rh(e)?"checked":"value";e._valueTracker=_x(e,n,""+e[n])}}function ah(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=rh(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Nx=/[\n"\\]/g;function ln(e){return e.replace(Nx,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function bu(e,n,l,i,d,p,S,R){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),n!=null?S==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+on(n)):e.value!==""+on(n)&&(e.value=""+on(n)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),n!=null?xu(e,S,on(n)):l!=null?xu(e,S,on(l)):i!=null&&e.removeAttribute("value"),d==null&&p!=null&&(e.defaultChecked=!!p),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+on(R):e.removeAttribute("name")}function ih(e,n,l,i,d,p,S,R){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){yu(e);return}l=l!=null?""+on(l):"",n=n!=null?""+on(n):l,R||n===e.value||(e.value=n),e.defaultValue=n}i=i??d,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=R?e.checked:!!i,e.defaultChecked=!!i,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),yu(e)}function xu(e,n,l){n==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Yl(e,n,l,i){if(e=e.options,n){n={};for(var d=0;d<l.length;d++)n["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=n.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&i&&(e[l].defaultSelected=!0)}else{for(l=""+on(l),n=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,i&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function sh(e,n,l){if(n!=null&&(n=""+on(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+on(l):""}function ch(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(a(92));if(W(i)){if(1<i.length)throw Error(a(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=on(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),yu(e)}function Xl(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var Ax=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uh(e,n,l){var i=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,l):typeof l!="number"||l===0||Ax.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function fh(e,n,l){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var d in n)i=n[d],n.hasOwnProperty(d)&&l[d]!==i&&uh(e,d,i)}else for(var p in n)n.hasOwnProperty(p)&&uh(e,p,n[p])}function Su(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ri(e){return Hx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lo(){}var Cu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Ql=null;function dh(e){var n=Zl(e);if(n&&(e=n.stateNode)){var l=e[_t]||null;e:switch(e=n.stateNode,n.type){case"input":if(bu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ln(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var d=i[_t]||null;if(!d)throw Error(a(90));bu(i,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<l.length;n++)i=l[n],i.form===e.form&&ah(i)}break e;case"textarea":sh(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Yl(e,!!l.multiple,n,!1)}}}var Eu=!1;function mh(e,n,l){if(Eu)return e(n,l);Eu=!0;try{var i=e(n);return i}finally{if(Eu=!1,(Il!==null||Ql!==null)&&(ms(),Il&&(n=Il,e=Ql,Ql=Il=null,dh(n),e)))for(n=0;n<e.length;n++)dh(e[n])}}function la(e,n){var l=e.stateNode;if(l===null)return null;var i=l[_t]||null;if(i===null)return null;l=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,n,typeof l));return l}var ro=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(ro)try{var ra={};Object.defineProperty(ra,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{Tu=!1}var Ho=null,Ru=null,Mi=null;function ph(){if(Mi)return Mi;var e,n=Ru,l=n.length,i,d="value"in Ho?Ho.value:Ho.textContent,p=d.length;for(e=0;e<l&&n[e]===d[e];e++);var S=l-e;for(i=1;i<=S&&n[l-i]===d[p-i];i++);return Mi=d.slice(e,1<i?1-i:void 0)}function Oi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function hh(){return!1}function Nt(e){function n(l,i,d,p,S){this._reactName=l,this._targetInst=d,this.type=i,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(l=e[R],this[R]=l?l(p):p[R]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ji:hh,this.isPropagationStopped=hh,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),n}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=Nt(hl),aa=v({},hl,{view:0,detail:0}),zx=Nt(aa),Mu,Ou,ia,Ni=v({},aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_u,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ia&&(ia&&e.type==="mousemove"?(Mu=e.screenX-ia.screenX,Ou=e.screenY-ia.screenY):Ou=Mu=0,ia=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),gh=Nt(Ni),Lx=v({},Ni,{dataTransfer:0}),kx=Nt(Lx),Vx=v({},aa,{relatedTarget:0}),ju=Nt(Vx),Bx=v({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),$x=Nt(Bx),Ux=v({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gx=Nt(Ux),Zx=v({},hl,{data:0}),vh=Nt(Zx),Px={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xx(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Yx[e])?!!n[e]:!1}function _u(){return Xx}var Ix=v({},aa,{key:function(e){if(e.key){var n=Px[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_u,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qx=Nt(Ix),Fx=v({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yh=Nt(Fx),Kx=v({},aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_u}),Jx=Nt(Kx),Wx=v({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),eS=Nt(Wx),tS=v({},Ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nS=Nt(tS),oS=v({},hl,{newState:0,oldState:0}),lS=Nt(oS),rS=[9,13,27,32],Nu=ro&&"CompositionEvent"in window,sa=null;ro&&"documentMode"in document&&(sa=document.documentMode);var aS=ro&&"TextEvent"in window&&!sa,bh=ro&&(!Nu||sa&&8<sa&&11>=sa),xh=" ",Sh=!1;function Ch(e,n){switch(e){case"keyup":return rS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function iS(e,n){switch(e){case"compositionend":return wh(n);case"keypress":return n.which!==32?null:(Sh=!0,xh);case"textInput":return e=n.data,e===xh&&Sh?null:e;default:return null}}function sS(e,n){if(Fl)return e==="compositionend"||!Nu&&Ch(e,n)?(e=ph(),Mi=Ru=Ho=null,Fl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return bh&&n.locale!=="ko"?null:n.data;default:return null}}var cS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Eh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!cS[e.type]:n==="textarea"}function Th(e,n,l,i){Il?Ql?Ql.push(i):Ql=[i]:Il=i,n=xs(n,"onChange"),0<n.length&&(l=new _i("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var ca=null,ua=null;function uS(e){iv(e,0)}function Ai(e){var n=oa(e);if(ah(n))return e}function Rh(e,n){if(e==="change")return n}var Mh=!1;if(ro){var Au;if(ro){var Du="oninput"in document;if(!Du){var Oh=document.createElement("div");Oh.setAttribute("oninput","return;"),Du=typeof Oh.oninput=="function"}Au=Du}else Au=!1;Mh=Au&&(!document.documentMode||9<document.documentMode)}function jh(){ca&&(ca.detachEvent("onpropertychange",_h),ua=ca=null)}function _h(e){if(e.propertyName==="value"&&Ai(ua)){var n=[];Th(n,ua,e,wu(e)),mh(uS,n)}}function fS(e,n,l){e==="focusin"?(jh(),ca=n,ua=l,ca.attachEvent("onpropertychange",_h)):e==="focusout"&&jh()}function dS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(ua)}function mS(e,n){if(e==="click")return Ai(n)}function pS(e,n){if(e==="input"||e==="change")return Ai(n)}function hS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Pt=typeof Object.is=="function"?Object.is:hS;function fa(e,n){if(Pt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),i=Object.keys(n);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var d=l[i];if(!wt.call(n,d)||!Pt(e[d],n[d]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ah(e,n){var l=Nh(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=n&&i>=n)return{node:l,offset:n-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nh(l)}}function Dh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Dh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Hh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ti(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Ti(e.document)}return n}function Hu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var gS=ro&&"documentMode"in document&&11>=document.documentMode,Kl=null,zu=null,da=null,Lu=!1;function zh(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lu||Kl==null||Kl!==Ti(i)||(i=Kl,"selectionStart"in i&&Hu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),da&&fa(da,i)||(da=i,i=xs(zu,"onSelect"),0<i.length&&(n=new _i("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=Kl)))}function gl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Jl={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionrun:gl("Transition","TransitionRun"),transitionstart:gl("Transition","TransitionStart"),transitioncancel:gl("Transition","TransitionCancel"),transitionend:gl("Transition","TransitionEnd")},ku={},Lh={};ro&&(Lh=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function vl(e){if(ku[e])return ku[e];if(!Jl[e])return e;var n=Jl[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Lh)return ku[e]=n[l];return e}var kh=vl("animationend"),Vh=vl("animationiteration"),Bh=vl("animationstart"),vS=vl("transitionrun"),yS=vl("transitionstart"),bS=vl("transitioncancel"),$h=vl("transitionend"),Uh=new Map,Vu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vu.push("scrollEnd");function yn(e,n){Uh.set(e,n),pl(n,[e])}var Di=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],Wl=0,Bu=0;function Hi(){for(var e=Wl,n=Bu=Wl=0;n<e;){var l=rn[n];rn[n++]=null;var i=rn[n];rn[n++]=null;var d=rn[n];rn[n++]=null;var p=rn[n];if(rn[n++]=null,i!==null&&d!==null){var S=i.pending;S===null?d.next=d:(d.next=S.next,S.next=d),i.pending=d}p!==0&&Gh(l,d,p)}}function zi(e,n,l,i){rn[Wl++]=e,rn[Wl++]=n,rn[Wl++]=l,rn[Wl++]=i,Bu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function $u(e,n,l,i){return zi(e,n,l,i),Li(e)}function yl(e,n){return zi(e,null,null,n),Li(e)}function Gh(e,n,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var d=!1,p=e.return;p!==null;)p.childLanes|=l,i=p.alternate,i!==null&&(i.childLanes|=l),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(d=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,d&&n!==null&&(d=31-Zt(l),e=p.hiddenUpdates,i=e[d],i===null?e[d]=[n]:i.push(n),n.lane=l|536870912),p):null}function Li(e){if(50<Ha)throw Ha=0,Ff=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var er={};function xS(e,n,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,n,l,i){return new xS(e,n,l,i)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ao(e,n){var l=e.alternate;return l===null?(l=qt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Zh(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ki(e,n,l,i,d,p){var S=0;if(i=e,typeof e=="function")Uu(e)&&(S=1);else if(typeof e=="string")S=TC(e,l,ve.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=qt(31,l,n,d),e.elementType=F,e.lanes=p,e;case w:return bl(l.children,d,p,n);case T:S=8,d|=24;break;case M:return e=qt(12,l,n,d|2),e.elementType=M,e.lanes=p,e;case D:return e=qt(13,l,n,d),e.elementType=D,e.lanes=p,e;case V:return e=qt(19,l,n,d),e.elementType=V,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:S=10;break e;case O:S=9;break e;case N:S=11;break e;case $:S=14;break e;case X:S=16,i=null;break e}S=29,l=Error(a(130,e===null?"null":typeof e,"")),i=null}return n=qt(S,l,n,d),n.elementType=e,n.type=i,n.lanes=p,n}function bl(e,n,l,i){return e=qt(7,e,i,n),e.lanes=l,e}function Gu(e,n,l){return e=qt(6,e,null,n),e.lanes=l,e}function Ph(e){var n=qt(18,null,null,0);return n.stateNode=e,n}function Zu(e,n,l){return n=qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var qh=new WeakMap;function an(e,n){if(typeof e=="object"&&e!==null){var l=qh.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Dn(n)},qh.set(e,n),n)}return{value:e,source:n,stack:Dn(n)}}var tr=[],nr=0,Vi=null,ma=0,sn=[],cn=0,zo=null,Hn=1,zn="";function io(e,n){tr[nr++]=ma,tr[nr++]=Vi,Vi=e,ma=n}function Yh(e,n,l){sn[cn++]=Hn,sn[cn++]=zn,sn[cn++]=zo,zo=e;var i=Hn;e=zn;var d=32-Zt(i)-1;i&=~(1<<d),l+=1;var p=32-Zt(n)+d;if(30<p){var S=d-d%5;p=(i&(1<<S)-1).toString(32),i>>=S,d-=S,Hn=1<<32-Zt(n)+d|l<<d|i,zn=p+e}else Hn=1<<p|l<<d|i,zn=e}function Pu(e){e.return!==null&&(io(e,1),Yh(e,1,0))}function qu(e){for(;e===Vi;)Vi=tr[--nr],tr[nr]=null,ma=tr[--nr],tr[nr]=null;for(;e===zo;)zo=sn[--cn],sn[cn]=null,zn=sn[--cn],sn[cn]=null,Hn=sn[--cn],sn[cn]=null}function Xh(e,n){sn[cn++]=Hn,sn[cn++]=zn,sn[cn++]=zo,Hn=n.id,zn=n.overflow,zo=e}var yt=null,Xe=null,je=!1,Lo=null,un=!1,Yu=Error(a(519));function ko(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pa(an(n,e)),Yu}function Ih(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[vt]=e,n[_t]=i,l){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(l=0;l<La.length;l++)Re(La[l],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),ih(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),ch(n,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||i.suppressHydrationWarning===!0||fv(n.textContent,l)?(i.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),i.onScroll!=null&&Re("scroll",n),i.onScrollEnd!=null&&Re("scrollend",n),i.onClick!=null&&(n.onclick=lo),n=!0):n=!1,n||ko(e,!0)}function Qh(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:yt=yt.return}}function or(e){if(e!==yt)return!1;if(!je)return Qh(e),je=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||fd(e.type,e.memoizedProps)),l=!l),l&&Xe&&ko(e),Qh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Xe=xv(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Xe=xv(e)}else n===27?(n=Xe,Ko(e.type)?(e=gd,gd=null,Xe=e):Xe=n):Xe=yt?dn(e.stateNode.nextSibling):null;return!0}function xl(){Xe=yt=null,je=!1}function Xu(){var e=Lo;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Lo=null),e}function pa(e){Lo===null?Lo=[e]:Lo.push(e)}var Iu=ae(null),Sl=null,so=null;function Vo(e,n,l){re(Iu,n._currentValue),n._currentValue=l}function co(e){e._currentValue=Iu.current,ne(Iu)}function Qu(e,n,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===l)break;e=e.return}}function Fu(e,n,l,i){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var p=d.dependencies;if(p!==null){var S=d.child;p=p.firstContext;e:for(;p!==null;){var R=p;p=d;for(var A=0;A<n.length;A++)if(R.context===n[A]){p.lanes|=l,R=p.alternate,R!==null&&(R.lanes|=l),Qu(p.return,l,e),i||(S=null);break e}p=R.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(a(341));S.lanes|=l,p=S.alternate,p!==null&&(p.lanes|=l),Qu(S,l,e),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===e){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function lr(e,n,l,i){e=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var R=d.type;Pt(d.pendingProps.value,S.value)||(e!==null?e.push(R):e=[R])}}else if(d===Le.current){if(S=d.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Ua):e=[Ua])}d=d.return}e!==null&&Fu(n,e,l,i),n.flags|=262144}function Bi(e){for(e=e.firstContext;e!==null;){if(!Pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cl(e){Sl=e,so=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return Fh(Sl,e)}function $i(e,n){return Sl===null&&Cl(e),Fh(e,n)}function Fh(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},so===null){if(e===null)throw Error(a(308));so=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else so=so.next=n;return l}var SS=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},CS=t.unstable_scheduleCallback,wS=t.unstable_NormalPriority,it={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ku(){return{controller:new SS,data:new Map,refCount:0}}function ha(e){e.refCount--,e.refCount===0&&CS(wS,function(){e.controller.abort()})}var ga=null,Ju=0,rr=0,ar=null;function ES(e,n){if(ga===null){var l=ga=[];Ju=0,rr=nd(),ar={status:"pending",value:void 0,then:function(i){l.push(i)}}}return Ju++,n.then(Kh,Kh),n}function Kh(){if(--Ju===0&&ga!==null){ar!==null&&(ar.status="fulfilled");var e=ga;ga=null,rr=0,ar=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function TS(e,n){var l=[],i={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var d=0;d<l.length;d++)(0,l[d])(n)},function(d){for(i.status="rejected",i.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),i}var Jh=z.S;z.S=function(e,n){z1=Ot(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&ES(e,n),Jh!==null&&Jh(e,n)};var wl=ae(null);function Wu(){var e=wl.current;return e!==null?e:Pe.pooledCache}function Ui(e,n){n===null?re(wl,wl.current):re(wl,n.pool)}function Wh(){var e=Wu();return e===null?null:{parent:it._currentValue,pool:e}}var ir=Error(a(460)),ef=Error(a(474)),Gi=Error(a(542)),Zi={then:function(){}};function eg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tg(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(lo,lo),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,og(e),e;default:if(typeof n.status=="string")n.then(lo,lo);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=i}},function(i){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,og(e),e}throw Tl=n,ir}}function El(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Tl=l,ir):l}}var Tl=null;function ng(){if(Tl===null)throw Error(a(459));var e=Tl;return Tl=null,e}function og(e){if(e===ir||e===Gi)throw Error(a(483))}var sr=null,va=0;function Pi(e){var n=va;return va+=1,sr===null&&(sr=[]),tg(sr,e,n)}function ya(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function qi(e,n){throw n.$$typeof===b?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function lg(e){function n(B,k){if(e){var U=B.deletions;U===null?(B.deletions=[k],B.flags|=16):U.push(k)}}function l(B,k){if(!e)return null;for(;k!==null;)n(B,k),k=k.sibling;return null}function i(B){for(var k=new Map;B!==null;)B.key!==null?k.set(B.key,B):k.set(B.index,B),B=B.sibling;return k}function d(B,k){return B=ao(B,k),B.index=0,B.sibling=null,B}function p(B,k,U){return B.index=U,e?(U=B.alternate,U!==null?(U=U.index,U<k?(B.flags|=67108866,k):U):(B.flags|=67108866,k)):(B.flags|=1048576,k)}function S(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function R(B,k,U,K){return k===null||k.tag!==6?(k=Gu(U,B.mode,K),k.return=B,k):(k=d(k,U),k.return=B,k)}function A(B,k,U,K){var fe=U.type;return fe===w?Q(B,k,U.props.children,K,U.key):k!==null&&(k.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===X&&El(fe)===k.type)?(k=d(k,U.props),ya(k,U),k.return=B,k):(k=ki(U.type,U.key,U.props,null,B.mode,K),ya(k,U),k.return=B,k)}function G(B,k,U,K){return k===null||k.tag!==4||k.stateNode.containerInfo!==U.containerInfo||k.stateNode.implementation!==U.implementation?(k=Zu(U,B.mode,K),k.return=B,k):(k=d(k,U.children||[]),k.return=B,k)}function Q(B,k,U,K,fe){return k===null||k.tag!==7?(k=bl(U,B.mode,K,fe),k.return=B,k):(k=d(k,U),k.return=B,k)}function J(B,k,U){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Gu(""+k,B.mode,U),k.return=B,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case C:return U=ki(k.type,k.key,k.props,null,B.mode,U),ya(U,k),U.return=B,U;case E:return k=Zu(k,B.mode,U),k.return=B,k;case X:return k=El(k),J(B,k,U)}if(W(k)||le(k))return k=bl(k,B.mode,U,null),k.return=B,k;if(typeof k.then=="function")return J(B,Pi(k),U);if(k.$$typeof===j)return J(B,$i(B,k),U);qi(B,k)}return null}function P(B,k,U,K){var fe=k!==null?k.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return fe!==null?null:R(B,k,""+U,K);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case C:return U.key===fe?A(B,k,U,K):null;case E:return U.key===fe?G(B,k,U,K):null;case X:return U=El(U),P(B,k,U,K)}if(W(U)||le(U))return fe!==null?null:Q(B,k,U,K,null);if(typeof U.then=="function")return P(B,k,Pi(U),K);if(U.$$typeof===j)return P(B,k,$i(B,U),K);qi(B,U)}return null}function Y(B,k,U,K,fe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return B=B.get(U)||null,R(k,B,""+K,fe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case C:return B=B.get(K.key===null?U:K.key)||null,A(k,B,K,fe);case E:return B=B.get(K.key===null?U:K.key)||null,G(k,B,K,fe);case X:return K=El(K),Y(B,k,U,K,fe)}if(W(K)||le(K))return B=B.get(U)||null,Q(k,B,K,fe,null);if(typeof K.then=="function")return Y(B,k,U,Pi(K),fe);if(K.$$typeof===j)return Y(B,k,U,$i(k,K),fe);qi(k,K)}return null}function ie(B,k,U,K){for(var fe=null,He=null,ue=k,Se=k=0,Oe=null;ue!==null&&Se<U.length;Se++){ue.index>Se?(Oe=ue,ue=null):Oe=ue.sibling;var ze=P(B,ue,U[Se],K);if(ze===null){ue===null&&(ue=Oe);break}e&&ue&&ze.alternate===null&&n(B,ue),k=p(ze,k,Se),He===null?fe=ze:He.sibling=ze,He=ze,ue=Oe}if(Se===U.length)return l(B,ue),je&&io(B,Se),fe;if(ue===null){for(;Se<U.length;Se++)ue=J(B,U[Se],K),ue!==null&&(k=p(ue,k,Se),He===null?fe=ue:He.sibling=ue,He=ue);return je&&io(B,Se),fe}for(ue=i(ue);Se<U.length;Se++)Oe=Y(ue,B,Se,U[Se],K),Oe!==null&&(e&&Oe.alternate!==null&&ue.delete(Oe.key===null?Se:Oe.key),k=p(Oe,k,Se),He===null?fe=Oe:He.sibling=Oe,He=Oe);return e&&ue.forEach(function(nl){return n(B,nl)}),je&&io(B,Se),fe}function pe(B,k,U,K){if(U==null)throw Error(a(151));for(var fe=null,He=null,ue=k,Se=k=0,Oe=null,ze=U.next();ue!==null&&!ze.done;Se++,ze=U.next()){ue.index>Se?(Oe=ue,ue=null):Oe=ue.sibling;var nl=P(B,ue,ze.value,K);if(nl===null){ue===null&&(ue=Oe);break}e&&ue&&nl.alternate===null&&n(B,ue),k=p(nl,k,Se),He===null?fe=nl:He.sibling=nl,He=nl,ue=Oe}if(ze.done)return l(B,ue),je&&io(B,Se),fe;if(ue===null){for(;!ze.done;Se++,ze=U.next())ze=J(B,ze.value,K),ze!==null&&(k=p(ze,k,Se),He===null?fe=ze:He.sibling=ze,He=ze);return je&&io(B,Se),fe}for(ue=i(ue);!ze.done;Se++,ze=U.next())ze=Y(ue,B,Se,ze.value,K),ze!==null&&(e&&ze.alternate!==null&&ue.delete(ze.key===null?Se:ze.key),k=p(ze,k,Se),He===null?fe=ze:He.sibling=ze,He=ze);return e&&ue.forEach(function(LC){return n(B,LC)}),je&&io(B,Se),fe}function Ze(B,k,U,K){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case C:e:{for(var fe=U.key;k!==null;){if(k.key===fe){if(fe=U.type,fe===w){if(k.tag===7){l(B,k.sibling),K=d(k,U.props.children),K.return=B,B=K;break e}}else if(k.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===X&&El(fe)===k.type){l(B,k.sibling),K=d(k,U.props),ya(K,U),K.return=B,B=K;break e}l(B,k);break}else n(B,k);k=k.sibling}U.type===w?(K=bl(U.props.children,B.mode,K,U.key),K.return=B,B=K):(K=ki(U.type,U.key,U.props,null,B.mode,K),ya(K,U),K.return=B,B=K)}return S(B);case E:e:{for(fe=U.key;k!==null;){if(k.key===fe)if(k.tag===4&&k.stateNode.containerInfo===U.containerInfo&&k.stateNode.implementation===U.implementation){l(B,k.sibling),K=d(k,U.children||[]),K.return=B,B=K;break e}else{l(B,k);break}else n(B,k);k=k.sibling}K=Zu(U,B.mode,K),K.return=B,B=K}return S(B);case X:return U=El(U),Ze(B,k,U,K)}if(W(U))return ie(B,k,U,K);if(le(U)){if(fe=le(U),typeof fe!="function")throw Error(a(150));return U=fe.call(U),pe(B,k,U,K)}if(typeof U.then=="function")return Ze(B,k,Pi(U),K);if(U.$$typeof===j)return Ze(B,k,$i(B,U),K);qi(B,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,k!==null&&k.tag===6?(l(B,k.sibling),K=d(k,U),K.return=B,B=K):(l(B,k),K=Gu(U,B.mode,K),K.return=B,B=K),S(B)):l(B,k)}return function(B,k,U,K){try{va=0;var fe=Ze(B,k,U,K);return sr=null,fe}catch(ue){if(ue===ir||ue===Gi)throw ue;var He=qt(29,ue,null,B.mode);return He.lanes=K,He.return=B,He}}}var Rl=lg(!0),rg=lg(!1),Bo=!1;function tf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Uo(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ke&2)!==0){var d=i.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),i.pending=n,n=Li(e),Gh(e,null,l),n}return zi(e,i,n,l),Li(e)}function ba(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,Fp(e,l)}}function of(e,n){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var d=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?d=p=S:p=p.next=S,l=l.next}while(l!==null);p===null?d=p=n:p=p.next=n}else d=p=n;l={baseState:i.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var lf=!1;function xa(){if(lf){var e=ar;if(e!==null)throw e}}function Sa(e,n,l,i){lf=!1;var d=e.updateQueue;Bo=!1;var p=d.firstBaseUpdate,S=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var A=R,G=A.next;A.next=null,S===null?p=G:S.next=G,S=A;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,R=Q.lastBaseUpdate,R!==S&&(R===null?Q.firstBaseUpdate=G:R.next=G,Q.lastBaseUpdate=A))}if(p!==null){var J=d.baseState;S=0,Q=G=A=null,R=p;do{var P=R.lane&-536870913,Y=P!==R.lane;if(Y?(Me&P)===P:(i&P)===P){P!==0&&P===rr&&(lf=!0),Q!==null&&(Q=Q.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ie=e,pe=R;P=n;var Ze=l;switch(pe.tag){case 1:if(ie=pe.payload,typeof ie=="function"){J=ie.call(Ze,J,P);break e}J=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=pe.payload,P=typeof ie=="function"?ie.call(Ze,J,P):ie,P==null)break e;J=v({},J,P);break e;case 2:Bo=!0}}P=R.callback,P!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=d.callbacks,Y===null?d.callbacks=[P]:Y.push(P))}else Y={lane:P,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Q===null?(G=Q=Y,A=J):Q=Q.next=Y,S|=P;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,d.lastBaseUpdate=Y,d.shared.pending=null}}while(!0);Q===null&&(A=J),d.baseState=A,d.firstBaseUpdate=G,d.lastBaseUpdate=Q,p===null&&(d.shared.lanes=0),Yo|=S,e.lanes=S,e.memoizedState=J}}function ag(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function ig(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ag(l[e],n)}var cr=ae(null),Yi=ae(0);function sg(e,n){e=bo,re(Yi,e),re(cr,n),bo=e|n.baseLanes}function rf(){re(Yi,bo),re(cr,cr.current)}function af(){bo=Yi.current,ne(cr),ne(Yi)}var Yt=ae(null),fn=null;function Go(e){var n=e.alternate;re(rt,rt.current&1),re(Yt,e),fn===null&&(n===null||cr.current!==null||n.memoizedState!==null)&&(fn=e)}function sf(e){re(rt,rt.current),re(Yt,e),fn===null&&(fn=e)}function cg(e){e.tag===22?(re(rt,rt.current),re(Yt,e),fn===null&&(fn=e)):Zo()}function Zo(){re(rt,rt.current),re(Yt,Yt.current)}function Xt(e){ne(Yt),fn===e&&(fn=null),ne(rt)}var rt=ae(0);function Xi(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pd(l)||hd(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var uo=0,xe=null,Ue=null,st=null,Ii=!1,ur=!1,Ml=!1,Qi=0,Ca=0,fr=null,RS=0;function ot(){throw Error(a(321))}function cf(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Pt(e[l],n[l]))return!1;return!0}function uf(e,n,l,i,d,p){return uo=p,xe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?Yg:Tf,Ml=!1,p=l(i,d),Ml=!1,ur&&(p=fg(n,l,i,d)),ug(e),p}function ug(e){z.H=Ta;var n=Ue!==null&&Ue.next!==null;if(uo=0,st=Ue=xe=null,Ii=!1,Ca=0,fr=null,n)throw Error(a(300));e===null||ct||(e=e.dependencies,e!==null&&Bi(e)&&(ct=!0))}function fg(e,n,l,i){xe=e;var d=0;do{if(ur&&(fr=null),Ca=0,ur=!1,25<=d)throw Error(a(301));if(d+=1,st=Ue=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}z.H=Xg,p=n(l,i)}while(ur);return p}function MS(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?wa(n):n,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(xe.flags|=1024),n}function ff(){var e=Qi!==0;return Qi=0,e}function df(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function mf(e){if(Ii){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ii=!1}uo=0,st=Ue=xe=null,ur=!1,Ca=Qi=0,fr=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?xe.memoizedState=st=e:st=st.next=e,st}function at(){if(Ue===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var n=st===null?xe.memoizedState:st.next;if(n!==null)st=n,Ue=e;else{if(e===null)throw xe.alternate===null?Error(a(467)):Error(a(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},st===null?xe.memoizedState=st=e:st=st.next=e}return st}function Fi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wa(e){var n=Ca;return Ca+=1,fr===null&&(fr=[]),e=tg(fr,e,n),n=xe,(st===null?n.memoizedState:st.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?Yg:Tf),e}function Ki(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wa(e);if(e.$$typeof===j)return bt(e)}throw Error(a(438,String(e)))}function pf(e){var n=null,l=xe.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Fi(),xe.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),i=0;i<e;i++)l[i]=q;return n.index++,l}function fo(e,n){return typeof n=="function"?n(e):n}function Ji(e){var n=at();return hf(n,Ue,e)}function hf(e,n,l){var i=e.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=l;var d=e.baseQueue,p=i.pending;if(p!==null){if(d!==null){var S=d.next;d.next=p.next,p.next=S}n.baseQueue=d=p,i.pending=null}if(p=e.baseState,d===null)e.memoizedState=p;else{n=d.next;var R=S=null,A=null,G=n,Q=!1;do{var J=G.lane&-536870913;if(J!==G.lane?(Me&J)===J:(uo&J)===J){var P=G.revertLane;if(P===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),J===rr&&(Q=!0);else if((uo&P)===P){G=G.next,P===rr&&(Q=!0);continue}else J={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},A===null?(R=A=J,S=p):A=A.next=J,xe.lanes|=P,Yo|=P;J=G.action,Ml&&l(p,J),p=G.hasEagerState?G.eagerState:l(p,J)}else P={lane:J,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},A===null?(R=A=P,S=p):A=A.next=P,xe.lanes|=J,Yo|=J;G=G.next}while(G!==null&&G!==n);if(A===null?S=p:A.next=R,!Pt(p,e.memoizedState)&&(ct=!0,Q&&(l=ar,l!==null)))throw l;e.memoizedState=p,e.baseState=S,e.baseQueue=A,i.lastRenderedState=p}return d===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function gf(e){var n=at(),l=n.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var i=l.dispatch,d=l.pending,p=n.memoizedState;if(d!==null){l.pending=null;var S=d=d.next;do p=e(p,S.action),S=S.next;while(S!==d);Pt(p,n.memoizedState)||(ct=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,i]}function dg(e,n,l){var i=xe,d=at(),p=je;if(p){if(l===void 0)throw Error(a(407));l=l()}else l=n();var S=!Pt((Ue||d).memoizedState,l);if(S&&(d.memoizedState=l,ct=!0),d=d.queue,bf(hg.bind(null,i,d,e),[e]),d.getSnapshot!==n||S||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,dr(9,{destroy:void 0},pg.bind(null,i,d,l,n),null),Pe===null)throw Error(a(349));p||(uo&127)!==0||mg(i,n,l)}return l}function mg(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=xe.updateQueue,n===null?(n=Fi(),xe.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function pg(e,n,l,i){n.value=l,n.getSnapshot=i,gg(n)&&vg(e)}function hg(e,n,l){return l(function(){gg(n)&&vg(e)})}function gg(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Pt(e,l)}catch{return!0}}function vg(e){var n=yl(e,2);n!==null&&Lt(n,e,2)}function vf(e){var n=jt();if(typeof e=="function"){var l=e;if(e=l(),Ml){Ao(!0);try{l()}finally{Ao(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},n}function yg(e,n,l,i){return e.baseState=l,hf(e,Ue,typeof i=="function"?i:fo)}function OS(e,n,l,i,d){if(ts(e))throw Error(a(485));if(e=n.action,e!==null){var p={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};z.T!==null?l(!0):p.isTransition=!1,i(p),l=n.pending,l===null?(p.next=n.pending=p,bg(n,p)):(p.next=l.next,n.pending=l.next=p)}}function bg(e,n){var l=n.action,i=n.payload,d=e.state;if(n.isTransition){var p=z.T,S={};z.T=S;try{var R=l(d,i),A=z.S;A!==null&&A(S,R),xg(e,n,R)}catch(G){yf(e,n,G)}finally{p!==null&&S.types!==null&&(p.types=S.types),z.T=p}}else try{p=l(d,i),xg(e,n,p)}catch(G){yf(e,n,G)}}function xg(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Sg(e,n,i)},function(i){return yf(e,n,i)}):Sg(e,n,l)}function Sg(e,n,l){n.status="fulfilled",n.value=l,Cg(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,bg(e,l)))}function yf(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,Cg(n),n=n.next;while(n!==i)}e.action=null}function Cg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function wg(e,n){return n}function Eg(e,n){if(je){var l=Pe.formState;if(l!==null){e:{var i=xe;if(je){if(Xe){t:{for(var d=Xe,p=un;d.nodeType!==8;){if(!p){d=null;break t}if(d=dn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){Xe=dn(d.nextSibling),i=d.data==="F!";break e}}ko(i)}i=!1}i&&(n=l[0])}}return l=jt(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wg,lastRenderedState:n},l.queue=i,l=Zg.bind(null,xe,i),i.dispatch=l,i=vf(!1),p=Ef.bind(null,xe,!1,i.queue),i=jt(),d={state:n,dispatch:null,action:e,pending:null},i.queue=d,l=OS.bind(null,xe,d,p,l),d.dispatch=l,i.memoizedState=e,[n,l,!1]}function Tg(e){var n=at();return Rg(n,Ue,e)}function Rg(e,n,l){if(n=hf(e,n,wg)[0],e=Ji(fo)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=wa(n)}catch(S){throw S===ir?Gi:S}else i=n;n=at();var d=n.queue,p=d.dispatch;return l!==n.memoizedState&&(xe.flags|=2048,dr(9,{destroy:void 0},jS.bind(null,d,l),null)),[i,p,e]}function jS(e,n){e.action=n}function Mg(e){var n=at(),l=Ue;if(l!==null)return Rg(n,l,e);at(),n=n.memoizedState,l=at();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function dr(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=xe.updateQueue,n===null&&(n=Fi(),xe.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,n.lastEffect=e),e}function Og(){return at().memoizedState}function Wi(e,n,l,i){var d=jt();xe.flags|=e,d.memoizedState=dr(1|n,{destroy:void 0},l,i===void 0?null:i)}function es(e,n,l,i){var d=at();i=i===void 0?null:i;var p=d.memoizedState.inst;Ue!==null&&i!==null&&cf(i,Ue.memoizedState.deps)?d.memoizedState=dr(n,p,l,i):(xe.flags|=e,d.memoizedState=dr(1|n,p,l,i))}function jg(e,n){Wi(8390656,8,e,n)}function bf(e,n){es(2048,8,e,n)}function _S(e){xe.flags|=4;var n=xe.updateQueue;if(n===null)n=Fi(),xe.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function _g(e){var n=at().memoizedState;return _S({ref:n,nextImpl:e}),function(){if((ke&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Ng(e,n){return es(4,2,e,n)}function Ag(e,n){return es(4,4,e,n)}function Dg(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Hg(e,n,l){l=l!=null?l.concat([e]):null,es(4,4,Dg.bind(null,n,e),l)}function xf(){}function zg(e,n){var l=at();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&cf(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function Lg(e,n){var l=at();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&cf(n,i[1]))return i[0];if(i=e(),Ml){Ao(!0);try{e()}finally{Ao(!1)}}return l.memoizedState=[i,n],i}function Sf(e,n,l){return l===void 0||(uo&1073741824)!==0&&(Me&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=k1(),xe.lanes|=e,Yo|=e,l)}function kg(e,n,l,i){return Pt(l,n)?l:cr.current!==null?(e=Sf(e,l,i),Pt(e,n)||(ct=!0),e):(uo&42)===0||(uo&1073741824)!==0&&(Me&261930)===0?(ct=!0,e.memoizedState=l):(e=k1(),xe.lanes|=e,Yo|=e,n)}function Vg(e,n,l,i,d){var p=L.p;L.p=p!==0&&8>p?p:8;var S=z.T,R={};z.T=R,Ef(e,!1,n,l);try{var A=d(),G=z.S;if(G!==null&&G(R,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Q=TS(A,i);Ea(e,n,Q,Ft(e))}else Ea(e,n,i,Ft(e))}catch(J){Ea(e,n,{then:function(){},status:"rejected",reason:J},Ft())}finally{L.p=p,S!==null&&R.types!==null&&(S.types=R.types),z.T=S}}function NS(){}function Cf(e,n,l,i){if(e.tag!==5)throw Error(a(476));var d=Bg(e).queue;Vg(e,d,n,_,l===null?NS:function(){return $g(e),l(i)})}function Bg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:_},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function $g(e){var n=Bg(e);n.next===null&&(n=e.alternate.memoizedState),Ea(e,n.next.queue,{},Ft())}function wf(){return bt(Ua)}function Ug(){return at().memoizedState}function Gg(){return at().memoizedState}function AS(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=Ft();e=$o(l);var i=Uo(n,e,l);i!==null&&(Lt(i,n,l),ba(i,n,l)),n={cache:Ku()},e.payload=n;return}n=n.return}}function DS(e,n,l){var i=Ft();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ts(e)?Pg(n,l):(l=$u(e,n,l,i),l!==null&&(Lt(l,e,i),qg(l,n,i)))}function Zg(e,n,l){var i=Ft();Ea(e,n,l,i)}function Ea(e,n,l,i){var d={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ts(e))Pg(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var S=n.lastRenderedState,R=p(S,l);if(d.hasEagerState=!0,d.eagerState=R,Pt(R,S))return zi(e,n,d,0),Pe===null&&Hi(),!1}catch{}if(l=$u(e,n,d,i),l!==null)return Lt(l,e,i),qg(l,n,i),!0}return!1}function Ef(e,n,l,i){if(i={lane:2,revertLane:nd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ts(e)){if(n)throw Error(a(479))}else n=$u(e,l,i,2),n!==null&&Lt(n,e,2)}function ts(e){var n=e.alternate;return e===xe||n!==null&&n===xe}function Pg(e,n){ur=Ii=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function qg(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,Fp(e,l)}}var Ta={readContext:bt,use:Ki,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};Ta.useEffectEvent=ot;var Yg={readContext:bt,use:Ki,useCallback:function(e,n){return jt().memoizedState=[e,n===void 0?null:n],e},useContext:bt,useEffect:jg,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,Wi(4194308,4,Dg.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Wi(4194308,4,e,n)},useInsertionEffect:function(e,n){Wi(4,2,e,n)},useMemo:function(e,n){var l=jt();n=n===void 0?null:n;var i=e();if(Ml){Ao(!0);try{e()}finally{Ao(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=jt();if(l!==void 0){var d=l(n);if(Ml){Ao(!0);try{l(n)}finally{Ao(!1)}}}else d=n;return i.memoizedState=i.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},i.queue=e,e=e.dispatch=DS.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var n=jt();return e={current:e},n.memoizedState=e},useState:function(e){e=vf(e);var n=e.queue,l=Zg.bind(null,xe,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:xf,useDeferredValue:function(e,n){var l=jt();return Sf(l,e,n)},useTransition:function(){var e=vf(!1);return e=Vg.bind(null,xe,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=xe,d=jt();if(je){if(l===void 0)throw Error(a(407));l=l()}else{if(l=n(),Pe===null)throw Error(a(349));(Me&127)!==0||mg(i,n,l)}d.memoizedState=l;var p={value:l,getSnapshot:n};return d.queue=p,jg(hg.bind(null,i,p,e),[e]),i.flags|=2048,dr(9,{destroy:void 0},pg.bind(null,i,p,l,n),null),l},useId:function(){var e=jt(),n=Pe.identifierPrefix;if(je){var l=zn,i=Hn;l=(i&~(1<<32-Zt(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Qi++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=RS++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:wf,useFormState:Eg,useActionState:Eg,useOptimistic:function(e){var n=jt();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Ef.bind(null,xe,!0,l),l.dispatch=n,[e,n]},useMemoCache:pf,useCacheRefresh:function(){return jt().memoizedState=AS.bind(null,xe)},useEffectEvent:function(e){var n=jt(),l={impl:e};return n.memoizedState=l,function(){if((ke&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Tf={readContext:bt,use:Ki,useCallback:zg,useContext:bt,useEffect:bf,useImperativeHandle:Hg,useInsertionEffect:Ng,useLayoutEffect:Ag,useMemo:Lg,useReducer:Ji,useRef:Og,useState:function(){return Ji(fo)},useDebugValue:xf,useDeferredValue:function(e,n){var l=at();return kg(l,Ue.memoizedState,e,n)},useTransition:function(){var e=Ji(fo)[0],n=at().memoizedState;return[typeof e=="boolean"?e:wa(e),n]},useSyncExternalStore:dg,useId:Ug,useHostTransitionStatus:wf,useFormState:Tg,useActionState:Tg,useOptimistic:function(e,n){var l=at();return yg(l,Ue,e,n)},useMemoCache:pf,useCacheRefresh:Gg};Tf.useEffectEvent=_g;var Xg={readContext:bt,use:Ki,useCallback:zg,useContext:bt,useEffect:bf,useImperativeHandle:Hg,useInsertionEffect:Ng,useLayoutEffect:Ag,useMemo:Lg,useReducer:gf,useRef:Og,useState:function(){return gf(fo)},useDebugValue:xf,useDeferredValue:function(e,n){var l=at();return Ue===null?Sf(l,e,n):kg(l,Ue.memoizedState,e,n)},useTransition:function(){var e=gf(fo)[0],n=at().memoizedState;return[typeof e=="boolean"?e:wa(e),n]},useSyncExternalStore:dg,useId:Ug,useHostTransitionStatus:wf,useFormState:Mg,useActionState:Mg,useOptimistic:function(e,n){var l=at();return Ue!==null?yg(l,Ue,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:pf,useCacheRefresh:Gg};Xg.useEffectEvent=_g;function Rf(e,n,l,i){n=e.memoizedState,l=l(i,n),l=l==null?n:v({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Mf={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=Ft(),d=$o(i);d.payload=n,l!=null&&(d.callback=l),n=Uo(e,d,i),n!==null&&(Lt(n,e,i),ba(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=Ft(),d=$o(i);d.tag=1,d.payload=n,l!=null&&(d.callback=l),n=Uo(e,d,i),n!==null&&(Lt(n,e,i),ba(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Ft(),i=$o(l);i.tag=2,n!=null&&(i.callback=n),n=Uo(e,i,l),n!==null&&(Lt(n,e,l),ba(n,e,l))}};function Ig(e,n,l,i,d,p,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,p,S):n.prototype&&n.prototype.isPureReactComponent?!fa(l,i)||!fa(d,p):!0}function Qg(e,n,l,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,i),n.state!==e&&Mf.enqueueReplaceState(n,n.state,null)}function Ol(e,n){var l=n;if("ref"in n){l={};for(var i in n)i!=="ref"&&(l[i]=n[i])}if(e=e.defaultProps){l===n&&(l=v({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Fg(e){Di(e)}function Kg(e){console.error(e)}function Jg(e){Di(e)}function ns(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function Wg(e,n,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Of(e,n,l){return l=$o(l),l.tag=3,l.payload={element:null},l.callback=function(){ns(e,n)},l}function e1(e){return e=$o(e),e.tag=3,e}function t1(e,n,l,i){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;e.payload=function(){return d(p)},e.callback=function(){Wg(n,l,i)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){Wg(n,l,i),typeof d!="function"&&(Xo===null?Xo=new Set([this]):Xo.add(this));var R=i.stack;this.componentDidCatch(i.value,{componentStack:R!==null?R:""})})}function HS(e,n,l,i,d){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&lr(n,l,d,!0),l=Yt.current,l!==null){switch(l.tag){case 31:case 13:return fn===null?ps():l.alternate===null&&lt===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=d,i===Zi?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),Wf(e,i,d)),!1;case 22:return l.flags|=65536,i===Zi?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([i]):l.add(i)),Wf(e,i,d)),!1}throw Error(a(435,l.tag))}return Wf(e,i,d),ps(),!1}if(je)return n=Yt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,i!==Yu&&(e=Error(a(422),{cause:i}),pa(an(e,l)))):(i!==Yu&&(n=Error(a(423),{cause:i}),pa(an(n,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,i=an(i,l),d=Of(e.stateNode,i,d),of(e,d),lt!==4&&(lt=2)),!1;var p=Error(a(520),{cause:i});if(p=an(p,l),Da===null?Da=[p]:Da.push(p),lt!==4&&(lt=2),n===null)return!0;i=an(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=Of(l.stateNode,i,e),of(l,e),!1;case 1:if(n=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Xo===null||!Xo.has(p))))return l.flags|=65536,d&=-d,l.lanes|=d,d=e1(d),t1(d,e,l,i),of(l,d),!1}l=l.return}while(l!==null);return!1}var jf=Error(a(461)),ct=!1;function xt(e,n,l,i){n.child=e===null?rg(n,null,l,i):Rl(n,e.child,l,i)}function n1(e,n,l,i,d){l=l.render;var p=n.ref;if("ref"in i){var S={};for(var R in i)R!=="ref"&&(S[R]=i[R])}else S=i;return Cl(n),i=uf(e,n,l,S,p,d),R=ff(),e!==null&&!ct?(df(e,n,d),mo(e,n,d)):(je&&R&&Pu(n),n.flags|=1,xt(e,n,i,d),n.child)}function o1(e,n,l,i,d){if(e===null){var p=l.type;return typeof p=="function"&&!Uu(p)&&p.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=p,l1(e,n,p,i,d)):(e=ki(l.type,null,i,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!kf(e,d)){var S=p.memoizedProps;if(l=l.compare,l=l!==null?l:fa,l(S,i)&&e.ref===n.ref)return mo(e,n,d)}return n.flags|=1,e=ao(p,i),e.ref=n.ref,e.return=n,n.child=e}function l1(e,n,l,i,d){if(e!==null){var p=e.memoizedProps;if(fa(p,i)&&e.ref===n.ref)if(ct=!1,n.pendingProps=i=p,kf(e,d))(e.flags&131072)!==0&&(ct=!0);else return n.lanes=e.lanes,mo(e,n,d)}return _f(e,n,l,i,d)}function r1(e,n,l,i){var d=i.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,e!==null){for(i=n.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;i=d&~p}else i=0,n.child=null;return a1(e,n,p,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(n,p!==null?p.cachePool:null),p!==null?sg(n,p):rf(),cg(n);else return i=n.lanes=536870912,a1(e,n,p!==null?p.baseLanes|l:l,l,i)}else p!==null?(Ui(n,p.cachePool),sg(n,p),Zo(),n.memoizedState=null):(e!==null&&Ui(n,null),rf(),Zo());return xt(e,n,d,l),n.child}function Ra(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function a1(e,n,l,i,d){var p=Wu();return p=p===null?null:{parent:it._currentValue,pool:p},n.memoizedState={baseLanes:l,cachePool:p},e!==null&&Ui(n,null),rf(),cg(n),e!==null&&lr(e,n,i,!0),n.childLanes=d,null}function os(e,n){return n=rs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function i1(e,n,l){return Rl(n,e.child,null,l),e=os(n,n.pendingProps),e.flags|=2,Xt(n),n.memoizedState=null,e}function zS(e,n,l){var i=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=os(n,i),n.lanes=536870912,Ra(null,e);if(sf(n),(e=Xe)?(e=bv(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zo!==null?{id:Hn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},l=Ph(e),l.return=n,n.child=l,yt=n,Xe=null)):e=null,e===null)throw ko(n);return n.lanes=536870912,null}return os(n,i)}var p=e.memoizedState;if(p!==null){var S=p.dehydrated;if(sf(n),d)if(n.flags&256)n.flags&=-257,n=i1(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(ct||lr(e,n,l,!1),d=(l&e.childLanes)!==0,ct||d){if(i=Pe,i!==null&&(S=Kp(i,l),S!==0&&S!==p.retryLane))throw p.retryLane=S,yl(e,S),Lt(i,e,S),jf;ps(),n=i1(e,n,l)}else e=p.treeContext,Xe=dn(S.nextSibling),yt=n,je=!0,Lo=null,un=!1,e!==null&&Xh(n,e),n=os(n,i),n.flags|=4096;return n}return e=ao(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ls(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function _f(e,n,l,i,d){return Cl(n),l=uf(e,n,l,i,void 0,d),i=ff(),e!==null&&!ct?(df(e,n,d),mo(e,n,d)):(je&&i&&Pu(n),n.flags|=1,xt(e,n,l,d),n.child)}function s1(e,n,l,i,d,p){return Cl(n),n.updateQueue=null,l=fg(n,i,l,d),ug(e),i=ff(),e!==null&&!ct?(df(e,n,p),mo(e,n,p)):(je&&i&&Pu(n),n.flags|=1,xt(e,n,l,p),n.child)}function c1(e,n,l,i,d){if(Cl(n),n.stateNode===null){var p=er,S=l.contextType;typeof S=="object"&&S!==null&&(p=bt(S)),p=new l(i,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Mf,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=i,p.state=n.memoizedState,p.refs={},tf(n),S=l.contextType,p.context=typeof S=="object"&&S!==null?bt(S):er,p.state=n.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Rf(n,l,S,i),p.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Mf.enqueueReplaceState(p,p.state,null),Sa(n,i,p,d),xa(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){p=n.stateNode;var R=n.memoizedProps,A=Ol(l,R);p.props=A;var G=p.context,Q=l.contextType;S=er,typeof Q=="object"&&Q!==null&&(S=bt(Q));var J=l.getDerivedStateFromProps;Q=typeof J=="function"||typeof p.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,Q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(R||G!==S)&&Qg(n,p,i,S),Bo=!1;var P=n.memoizedState;p.state=P,Sa(n,i,p,d),xa(),G=n.memoizedState,R||P!==G||Bo?(typeof J=="function"&&(Rf(n,l,J,i),G=n.memoizedState),(A=Bo||Ig(n,l,A,i,P,G,S))?(Q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=G),p.props=i,p.state=G,p.context=S,i=A):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{p=n.stateNode,nf(e,n),S=n.memoizedProps,Q=Ol(l,S),p.props=Q,J=n.pendingProps,P=p.context,G=l.contextType,A=er,typeof G=="object"&&G!==null&&(A=bt(G)),R=l.getDerivedStateFromProps,(G=typeof R=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==J||P!==A)&&Qg(n,p,i,A),Bo=!1,P=n.memoizedState,p.state=P,Sa(n,i,p,d),xa();var Y=n.memoizedState;S!==J||P!==Y||Bo||e!==null&&e.dependencies!==null&&Bi(e.dependencies)?(typeof R=="function"&&(Rf(n,l,R,i),Y=n.memoizedState),(Q=Bo||Ig(n,l,Q,i,P,Y,A)||e!==null&&e.dependencies!==null&&Bi(e.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(i,Y,A),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(i,Y,A)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=Y),p.props=i,p.state=Y,p.context=A,i=Q):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),i=!1)}return p=i,ls(e,n),i=(n.flags&128)!==0,p||i?(p=n.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&i?(n.child=Rl(n,e.child,null,d),n.child=Rl(n,null,l,d)):xt(e,n,l,d),n.memoizedState=p.state,e=n.child):e=mo(e,n,d),e}function u1(e,n,l,i){return xl(),n.flags|=256,xt(e,n,l,i),n.child}var Nf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Af(e){return{baseLanes:e,cachePool:Wh()}}function Df(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Qt),e}function f1(e,n,l){var i=n.pendingProps,d=!1,p=(n.flags&128)!==0,S;if((S=p)||(S=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),S&&(d=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,e===null){if(je){if(d?Go(n):Zo(),(e=Xe)?(e=bv(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:zo!==null?{id:Hn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},l=Ph(e),l.return=n,n.child=l,yt=n,Xe=null)):e=null,e===null)throw ko(n);return hd(e)?n.lanes=32:n.lanes=536870912,null}var R=i.children;return i=i.fallback,d?(Zo(),d=n.mode,R=rs({mode:"hidden",children:R},d),i=bl(i,d,l,null),R.return=n,i.return=n,R.sibling=i,n.child=R,i=n.child,i.memoizedState=Af(l),i.childLanes=Df(e,S,l),n.memoizedState=Nf,Ra(null,i)):(Go(n),Hf(n,R))}var A=e.memoizedState;if(A!==null&&(R=A.dehydrated,R!==null)){if(p)n.flags&256?(Go(n),n.flags&=-257,n=zf(e,n,l)):n.memoizedState!==null?(Zo(),n.child=e.child,n.flags|=128,n=null):(Zo(),R=i.fallback,d=n.mode,i=rs({mode:"visible",children:i.children},d),R=bl(R,d,l,null),R.flags|=2,i.return=n,R.return=n,i.sibling=R,n.child=i,Rl(n,e.child,null,l),i=n.child,i.memoizedState=Af(l),i.childLanes=Df(e,S,l),n.memoizedState=Nf,n=Ra(null,i));else if(Go(n),hd(R)){if(S=R.nextSibling&&R.nextSibling.dataset,S)var G=S.dgst;S=G,i=Error(a(419)),i.stack="",i.digest=S,pa({value:i,source:null,stack:null}),n=zf(e,n,l)}else if(ct||lr(e,n,l,!1),S=(l&e.childLanes)!==0,ct||S){if(S=Pe,S!==null&&(i=Kp(S,l),i!==0&&i!==A.retryLane))throw A.retryLane=i,yl(e,i),Lt(S,e,i),jf;pd(R)||ps(),n=zf(e,n,l)}else pd(R)?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,Xe=dn(R.nextSibling),yt=n,je=!0,Lo=null,un=!1,e!==null&&Xh(n,e),n=Hf(n,i.children),n.flags|=4096);return n}return d?(Zo(),R=i.fallback,d=n.mode,A=e.child,G=A.sibling,i=ao(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,G!==null?R=ao(G,R):(R=bl(R,d,l,null),R.flags|=2),R.return=n,i.return=n,i.sibling=R,n.child=i,Ra(null,i),i=n.child,R=e.child.memoizedState,R===null?R=Af(l):(d=R.cachePool,d!==null?(A=it._currentValue,d=d.parent!==A?{parent:A,pool:A}:d):d=Wh(),R={baseLanes:R.baseLanes|l,cachePool:d}),i.memoizedState=R,i.childLanes=Df(e,S,l),n.memoizedState=Nf,Ra(e.child,i)):(Go(n),l=e.child,e=l.sibling,l=ao(l,{mode:"visible",children:i.children}),l.return=n,l.sibling=null,e!==null&&(S=n.deletions,S===null?(n.deletions=[e],n.flags|=16):S.push(e)),n.child=l,n.memoizedState=null,l)}function Hf(e,n){return n=rs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function rs(e,n){return e=qt(22,e,null,n),e.lanes=0,e}function zf(e,n,l){return Rl(n,e.child,null,l),e=Hf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function d1(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),Qu(e.return,n,l)}function Lf(e,n,l,i,d,p){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:d,treeForkCount:p}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=i,S.tail=l,S.tailMode=d,S.treeForkCount=p)}function m1(e,n,l){var i=n.pendingProps,d=i.revealOrder,p=i.tail;i=i.children;var S=rt.current,R=(S&2)!==0;if(R?(S=S&1|2,n.flags|=128):S&=1,re(rt,S),xt(e,n,i,l),i=je?ma:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&d1(e,l,n);else if(e.tag===19)d1(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(l=n.child,d=null;l!==null;)e=l.alternate,e!==null&&Xi(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=n.child,n.child=null):(d=l.sibling,l.sibling=null),Lf(n,!1,d,l,p,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Xi(e)===null){n.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Lf(n,!0,l,null,p,i);break;case"together":Lf(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function mo(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Yo|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(lr(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,l=ao(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=ao(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function kf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Bi(e)))}function LS(e,n,l){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),Vo(n,it,e.memoizedState.cache),xl();break;case 27:case 5:Je(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:Vo(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,sf(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(Go(n),n.flags|=128,null):(l&n.child.childLanes)!==0?f1(e,n,l):(Go(n),e=mo(e,n,l),e!==null?e.sibling:null);Go(n);break;case 19:var d=(e.flags&128)!==0;if(i=(l&n.childLanes)!==0,i||(lr(e,n,l,!1),i=(l&n.childLanes)!==0),d){if(i)return m1(e,n,l);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),re(rt,rt.current),i)break;return null;case 22:return n.lanes=0,r1(e,n,l,n.pendingProps);case 24:Vo(n,it,e.memoizedState.cache)}return mo(e,n,l)}function p1(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)ct=!0;else{if(!kf(e,l)&&(n.flags&128)===0)return ct=!1,LS(e,n,l);ct=(e.flags&131072)!==0}else ct=!1,je&&(n.flags&1048576)!==0&&Yh(n,ma,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=El(n.elementType),n.type=e,typeof e=="function")Uu(e)?(i=Ol(e,i),n.tag=1,n=c1(null,n,e,i,l)):(n.tag=0,n=_f(null,n,e,i,l));else{if(e!=null){var d=e.$$typeof;if(d===N){n.tag=11,n=n1(null,n,e,i,l);break e}else if(d===$){n.tag=14,n=o1(null,n,e,i,l);break e}}throw n=H(e)||e,Error(a(306,n,""))}}return n;case 0:return _f(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,d=Ol(i,n.pendingProps),c1(e,n,i,d,l);case 3:e:{if(Ee(n,n.stateNode.containerInfo),e===null)throw Error(a(387));i=n.pendingProps;var p=n.memoizedState;d=p.element,nf(e,n),Sa(n,i,null,l);var S=n.memoizedState;if(i=S.cache,Vo(n,it,i),i!==p.cache&&Fu(n,[it],l,!0),xa(),i=S.element,p.isDehydrated)if(p={element:i,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=u1(e,n,i,l);break e}else if(i!==d){d=an(Error(a(424)),n),pa(d),n=u1(e,n,i,l);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Xe=dn(e.firstChild),yt=n,je=!0,Lo=null,un=!0,l=rg(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(xl(),i===d){n=mo(e,n,l);break e}xt(e,n,i,l)}n=n.child}return n;case 26:return ls(e,n),e===null?(l=Tv(n.type,null,n.pendingProps,null))?n.memoizedState=l:je||(l=n.type,e=n.pendingProps,i=Ss(be.current).createElement(l),i[vt]=n,i[_t]=e,St(i,l,e),mt(i),n.stateNode=i):n.memoizedState=Tv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Je(n),e===null&&je&&(i=n.stateNode=Cv(n.type,n.pendingProps,be.current),yt=n,un=!0,d=Xe,Ko(n.type)?(gd=d,Xe=dn(i.firstChild)):Xe=d),xt(e,n,n.pendingProps.children,l),ls(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&je&&((d=i=Xe)&&(i=dC(i,n.type,n.pendingProps,un),i!==null?(n.stateNode=i,yt=n,Xe=dn(i.firstChild),un=!1,d=!0):d=!1),d||ko(n)),Je(n),d=n.type,p=n.pendingProps,S=e!==null?e.memoizedProps:null,i=p.children,fd(d,p)?i=null:S!==null&&fd(d,S)&&(n.flags|=32),n.memoizedState!==null&&(d=uf(e,n,MS,null,null,l),Ua._currentValue=d),ls(e,n),xt(e,n,i,l),n.child;case 6:return e===null&&je&&((e=l=Xe)&&(l=mC(l,n.pendingProps,un),l!==null?(n.stateNode=l,yt=n,Xe=null,e=!0):e=!1),e||ko(n)),null;case 13:return f1(e,n,l);case 4:return Ee(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=Rl(n,null,i,l):xt(e,n,i,l),n.child;case 11:return n1(e,n,n.type,n.pendingProps,l);case 7:return xt(e,n,n.pendingProps,l),n.child;case 8:return xt(e,n,n.pendingProps.children,l),n.child;case 12:return xt(e,n,n.pendingProps.children,l),n.child;case 10:return i=n.pendingProps,Vo(n,n.type,i.value),xt(e,n,i.children,l),n.child;case 9:return d=n.type._context,i=n.pendingProps.children,Cl(n),d=bt(d),i=i(d),n.flags|=1,xt(e,n,i,l),n.child;case 14:return o1(e,n,n.type,n.pendingProps,l);case 15:return l1(e,n,n.type,n.pendingProps,l);case 19:return m1(e,n,l);case 31:return zS(e,n,l);case 22:return r1(e,n,l,n.pendingProps);case 24:return Cl(n),i=bt(it),e===null?(d=Wu(),d===null&&(d=Pe,p=Ku(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=l),d=p),n.memoizedState={parent:i,cache:d},tf(n),Vo(n,it,d)):((e.lanes&l)!==0&&(nf(e,n),Sa(n,null,null,l),xa()),d=e.memoizedState,p=n.memoizedState,d.parent!==i?(d={parent:i,cache:i},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Vo(n,it,i)):(i=p.cache,Vo(n,it,i),i!==d.cache&&Fu(n,[it],l,!0))),xt(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function po(e){e.flags|=4}function Vf(e,n,l,i,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(U1())e.flags|=8192;else throw Tl=Zi,ef}else e.flags&=-16777217}function h1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_v(n))if(U1())e.flags|=8192;else throw Tl=Zi,ef}function as(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ip():536870912,e.lanes|=n,gr|=n)}function Ma(e,n){if(!je)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ie(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(n)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,i|=d.subtreeFlags&65011712,i|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,i|=d.subtreeFlags,i|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=i,e.childLanes=l,n}function kS(e,n,l){var i=n.pendingProps;switch(qu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(n),null;case 1:return Ie(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),co(it),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(or(n)?po(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Xu())),Ie(n),null;case 26:var d=n.type,p=n.memoizedState;return e===null?(po(n),p!==null?(Ie(n),h1(n,p)):(Ie(n),Vf(n,d,null,i,l))):p?p!==e.memoizedState?(po(n),Ie(n),h1(n,p)):(Ie(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&po(n),Ie(n),Vf(n,d,e,i,l)),null;case 27:if(nt(n),l=be.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&po(n);else{if(!i){if(n.stateNode===null)throw Error(a(166));return Ie(n),null}e=ve.current,or(n)?Ih(n):(e=Cv(d,i,l),n.stateNode=e,po(n))}return Ie(n),null;case 5:if(nt(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&po(n);else{if(!i){if(n.stateNode===null)throw Error(a(166));return Ie(n),null}if(p=ve.current,or(n))Ih(n);else{var S=Ss(be.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof i.is=="string"?S.createElement("select",{is:i.is}):S.createElement("select"),i.multiple?p.multiple=!0:i.size&&(p.size=i.size);break;default:p=typeof i.is=="string"?S.createElement(d,{is:i.is}):S.createElement(d)}}p[vt]=n,p[_t]=i;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.stateNode=p;e:switch(St(p,d,i),d){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&po(n)}}return Ie(n),Vf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&po(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(a(166));if(e=be.current,or(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,d=yt,d!==null)switch(d.tag){case 27:case 5:i=d.memoizedProps}e[vt]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||fv(e.nodeValue,l)),e||ko(n,!0)}else e=Ss(e).createTextNode(i),e[vt]=n,n.stateNode=e}return Ie(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=or(n),l!==null){if(e===null){if(!i)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[vt]=n}else xl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ie(n),e=!1}else l=Xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(Xt(n),n):(Xt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return Ie(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=or(n),i!==null&&i.dehydrated!==null){if(e===null){if(!d)throw Error(a(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[vt]=n}else xl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ie(n),d=!1}else d=Xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Xt(n),n):(Xt(n),null)}return Xt(n),(n.flags&128)!==0?(n.lanes=l,n):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=n.child,d=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(d=i.alternate.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==d&&(i.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),as(n,n.updateQueue),Ie(n),null);case 4:return ye(),e===null&&ad(n.stateNode.containerInfo),Ie(n),null;case 10:return co(n.type),Ie(n),null;case 19:if(ne(rt),i=n.memoizedState,i===null)return Ie(n),null;if(d=(n.flags&128)!==0,p=i.rendering,p===null)if(d)Ma(i,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Xi(e),p!==null){for(n.flags|=128,Ma(i,!1),e=p.updateQueue,n.updateQueue=e,as(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Zh(l,e),l=l.sibling;return re(rt,rt.current&1|2),je&&io(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&Ot()>fs&&(n.flags|=128,d=!0,Ma(i,!1),n.lanes=4194304)}else{if(!d)if(e=Xi(p),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,as(n,e),Ma(i,!0),i.tail===null&&i.tailMode==="hidden"&&!p.alternate&&!je)return Ie(n),null}else 2*Ot()-i.renderingStartTime>fs&&l!==536870912&&(n.flags|=128,d=!0,Ma(i,!1),n.lanes=4194304);i.isBackwards?(p.sibling=n.child,n.child=p):(e=i.last,e!==null?e.sibling=p:n.child=p,i.last=p)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ot(),e.sibling=null,l=rt.current,re(rt,d?l&1|2:l&1),je&&io(n,i.treeForkCount),e):(Ie(n),null);case 22:case 23:return Xt(n),af(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(l&536870912)!==0&&(n.flags&128)===0&&(Ie(n),n.subtreeFlags&6&&(n.flags|=8192)):Ie(n),l=n.updateQueue,l!==null&&as(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048),e!==null&&ne(wl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),co(it),Ie(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function VS(e,n){switch(qu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return co(it),ye(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return nt(n),null;case 31:if(n.memoizedState!==null){if(Xt(n),n.alternate===null)throw Error(a(340));xl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Xt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));xl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ne(rt),null;case 4:return ye(),null;case 10:return co(n.type),null;case 22:case 23:return Xt(n),af(),e!==null&&ne(wl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return co(it),null;case 25:return null;default:return null}}function g1(e,n){switch(qu(n),n.tag){case 3:co(it),ye();break;case 26:case 27:case 5:nt(n);break;case 4:ye();break;case 31:n.memoizedState!==null&&Xt(n);break;case 13:Xt(n);break;case 19:ne(rt);break;case 10:co(n.type);break;case 22:case 23:Xt(n),af(),e!==null&&ne(wl);break;case 24:co(it)}}function Oa(e,n){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){i=void 0;var p=l.create,S=l.inst;i=p(),S.destroy=i}l=l.next}while(l!==d)}}catch(R){$e(n,n.return,R)}}function Po(e,n,l){try{var i=n.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var p=d.next;i=p;do{if((i.tag&e)===e){var S=i.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,d=n;var A=l,G=R;try{G()}catch(Q){$e(d,A,Q)}}}i=i.next}while(i!==p)}}catch(Q){$e(n,n.return,Q)}}function v1(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{ig(n,l)}catch(i){$e(e,e.return,i)}}}function y1(e,n,l){l.props=Ol(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){$e(e,n,i)}}function ja(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(d){$e(e,n,d)}}function Ln(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(d){$e(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){$e(e,n,d)}else l.current=null}function b1(e){var n=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(d){$e(e,e.return,d)}}function Bf(e,n,l){try{var i=e.stateNode;aC(i,e.type,l,n),i[_t]=n}catch(d){$e(e,e.return,d)}}function x1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ko(e.type)||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ko(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uf(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=lo));else if(i!==4&&(i===27&&Ko(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(Uf(e,n,l),e=e.sibling;e!==null;)Uf(e,n,l),e=e.sibling}function is(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(i!==4&&(i===27&&Ko(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(is(e,n,l),e=e.sibling;e!==null;)is(e,n,l),e=e.sibling}function S1(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);St(n,i,l),n[vt]=e,n[_t]=l}catch(p){$e(e,e.return,p)}}var ho=!1,ut=!1,Gf=!1,C1=typeof WeakSet=="function"?WeakSet:Set,pt=null;function BS(e,n){if(e=e.containerInfo,cd=Os,e=Hh(e),Hu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var d=i.anchorOffset,p=i.focusNode;i=i.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var S=0,R=-1,A=-1,G=0,Q=0,J=e,P=null;t:for(;;){for(var Y;J!==l||d!==0&&J.nodeType!==3||(R=S+d),J!==p||i!==0&&J.nodeType!==3||(A=S+i),J.nodeType===3&&(S+=J.nodeValue.length),(Y=J.firstChild)!==null;)P=J,J=Y;for(;;){if(J===e)break t;if(P===l&&++G===d&&(R=S),P===p&&++Q===i&&(A=S),(Y=J.nextSibling)!==null)break;J=P,P=J.parentNode}J=Y}l=R===-1||A===-1?null:{start:R,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(ud={focusedElem:e,selectionRange:l},Os=!1,pt=n;pt!==null;)if(n=pt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,pt=e;else for(;pt!==null;){switch(n=pt,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,l=n,d=p.memoizedProps,p=p.memoizedState,i=l.stateNode;try{var ie=Ol(l.type,d);e=i.getSnapshotBeforeUpdate(ie,p),i.__reactInternalSnapshotBeforeUpdate=e}catch(pe){$e(l,l.return,pe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)md(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,pt=e;break}pt=n.return}}function w1(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:vo(e,l),i&4&&Oa(5,l);break;case 1:if(vo(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(S){$e(l,l.return,S)}else{var d=Ol(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(S){$e(l,l.return,S)}}i&64&&v1(l),i&512&&ja(l,l.return);break;case 3:if(vo(e,l),i&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{ig(e,n)}catch(S){$e(l,l.return,S)}}break;case 27:n===null&&i&4&&S1(l);case 26:case 5:vo(e,l),n===null&&i&4&&b1(l),i&512&&ja(l,l.return);break;case 12:vo(e,l);break;case 31:vo(e,l),i&4&&R1(e,l);break;case 13:vo(e,l),i&4&&M1(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=IS.bind(null,l),pC(e,l))));break;case 22:if(i=l.memoizedState!==null||ho,!i){n=n!==null&&n.memoizedState!==null||ut,d=ho;var p=ut;ho=i,(ut=n)&&!p?yo(e,l,(l.subtreeFlags&8772)!==0):vo(e,l),ho=d,ut=p}break;case 30:break;default:vo(e,l)}}function E1(e){var n=e.alternate;n!==null&&(e.alternate=null,E1(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&vu(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,At=!1;function go(e,n,l){for(l=l.child;l!==null;)T1(e,n,l),l=l.sibling}function T1(e,n,l){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Wr,l)}catch{}switch(l.tag){case 26:ut||Ln(l,n),go(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ut||Ln(l,n);var i=et,d=At;Ko(l.type)&&(et=l.stateNode,At=!1),go(e,n,l),Va(l.stateNode),et=i,At=d;break;case 5:ut||Ln(l,n);case 6:if(i=et,d=At,et=null,go(e,n,l),et=i,At=d,et!==null)if(At)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(p){$e(l,n,p)}else try{et.removeChild(l.stateNode)}catch(p){$e(l,n,p)}break;case 18:et!==null&&(At?(e=et,vv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Er(e)):vv(et,l.stateNode));break;case 4:i=et,d=At,et=l.stateNode.containerInfo,At=!0,go(e,n,l),et=i,At=d;break;case 0:case 11:case 14:case 15:Po(2,l,n),ut||Po(4,l,n),go(e,n,l);break;case 1:ut||(Ln(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&y1(l,n,i)),go(e,n,l);break;case 21:go(e,n,l);break;case 22:ut=(i=ut)||l.memoizedState!==null,go(e,n,l),ut=i;break;default:go(e,n,l)}}function R1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Er(e)}catch(l){$e(n,n.return,l)}}}function M1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Er(e)}catch(l){$e(n,n.return,l)}}function $S(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new C1),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new C1),n;default:throw Error(a(435,e.tag))}}function ss(e,n){var l=$S(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var d=QS.bind(null,e,i);i.then(d,d)}})}function Dt(e,n){var l=n.deletions;if(l!==null)for(var i=0;i<l.length;i++){var d=l[i],p=e,S=n,R=S;e:for(;R!==null;){switch(R.tag){case 27:if(Ko(R.type)){et=R.stateNode,At=!1;break e}break;case 5:et=R.stateNode,At=!1;break e;case 3:case 4:et=R.stateNode.containerInfo,At=!0;break e}R=R.return}if(et===null)throw Error(a(160));T1(p,S,d),et=null,At=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)O1(n,e),n=n.sibling}var bn=null;function O1(e,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(n,e),Ht(e),i&4&&(Po(3,e,e.return),Oa(3,e),Po(5,e,e.return));break;case 1:Dt(n,e),Ht(e),i&512&&(ut||l===null||Ln(l,l.return)),i&64&&ho&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var d=bn;if(Dt(n,e),Ht(e),i&512&&(ut||l===null||Ln(l,l.return)),i&4){var p=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(i){case"title":p=d.getElementsByTagName("title")[0],(!p||p[na]||p[vt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(i),d.head.insertBefore(p,d.querySelector("head > title"))),St(p,i,l),p[vt]=e,mt(p),i=p;break e;case"link":var S=Ov("link","href",d).get(i+(l.href||""));if(S){for(var R=0;R<S.length;R++)if(p=S[R],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(R,1);break t}}p=d.createElement(i),St(p,i,l),d.head.appendChild(p);break;case"meta":if(S=Ov("meta","content",d).get(i+(l.content||""))){for(R=0;R<S.length;R++)if(p=S[R],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(R,1);break t}}p=d.createElement(i),St(p,i,l),d.head.appendChild(p);break;default:throw Error(a(468,i))}p[vt]=e,mt(p),i=p}e.stateNode=i}else jv(d,e.type,e.stateNode);else e.stateNode=Mv(d,i,e.memoizedProps);else p!==i?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,i===null?jv(d,e.type,e.stateNode):Mv(d,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Bf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Dt(n,e),Ht(e),i&512&&(ut||l===null||Ln(l,l.return)),l!==null&&i&4&&Bf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(n,e),Ht(e),i&512&&(ut||l===null||Ln(l,l.return)),e.flags&32){d=e.stateNode;try{Xl(d,"")}catch(ie){$e(e,e.return,ie)}}i&4&&e.stateNode!=null&&(d=e.memoizedProps,Bf(e,d,l!==null?l.memoizedProps:d)),i&1024&&(Gf=!0);break;case 6:if(Dt(n,e),Ht(e),i&4){if(e.stateNode===null)throw Error(a(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(ie){$e(e,e.return,ie)}}break;case 3:if(Es=null,d=bn,bn=Cs(n.containerInfo),Dt(n,e),bn=d,Ht(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Er(n.containerInfo)}catch(ie){$e(e,e.return,ie)}Gf&&(Gf=!1,j1(e));break;case 4:i=bn,bn=Cs(e.stateNode.containerInfo),Dt(n,e),Ht(e),bn=i;break;case 12:Dt(n,e),Ht(e);break;case 31:Dt(n,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 13:Dt(n,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(us=Ot()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 22:d=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,G=ho,Q=ut;if(ho=G||d,ut=Q||A,Dt(n,e),ut=Q,ho=G,Ht(e),i&8192)e:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(l===null||A||ho||ut||jl(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){A=l=n;try{if(p=A.stateNode,d)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{R=A.stateNode;var J=A.memoizedProps.style,P=J!=null&&J.hasOwnProperty("display")?J.display:null;R.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ie){$e(A,A.return,ie)}}}else if(n.tag===6){if(l===null){A=n;try{A.stateNode.nodeValue=d?"":A.memoizedProps}catch(ie){$e(A,A.return,ie)}}}else if(n.tag===18){if(l===null){A=n;try{var Y=A.stateNode;d?yv(Y,!0):yv(A.stateNode,!1)}catch(ie){$e(A,A.return,ie)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,ss(e,l))));break;case 19:Dt(n,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ss(e,i)));break;case 30:break;case 21:break;default:Dt(n,e),Ht(e)}}function Ht(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(x1(i)){l=i;break}i=i.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var d=l.stateNode,p=$f(e);is(e,p,d);break;case 5:var S=l.stateNode;l.flags&32&&(Xl(S,""),l.flags&=-33);var R=$f(e);is(e,R,S);break;case 3:case 4:var A=l.stateNode.containerInfo,G=$f(e);Uf(e,G,A);break;default:throw Error(a(161))}}catch(Q){$e(e,e.return,Q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function j1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;j1(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function vo(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)w1(e,n.alternate,n),n=n.sibling}function jl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Po(4,n,n.return),jl(n);break;case 1:Ln(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&y1(n,n.return,l),jl(n);break;case 27:Va(n.stateNode);case 26:case 5:Ln(n,n.return),jl(n);break;case 22:n.memoizedState===null&&jl(n);break;case 30:jl(n);break;default:jl(n)}e=e.sibling}}function yo(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,d=e,p=n,S=p.flags;switch(p.tag){case 0:case 11:case 15:yo(d,p,l),Oa(4,p);break;case 1:if(yo(d,p,l),i=p,d=i.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(G){$e(i,i.return,G)}if(i=p,d=i.updateQueue,d!==null){var R=i.stateNode;try{var A=d.shared.hiddenCallbacks;if(A!==null)for(d.shared.hiddenCallbacks=null,d=0;d<A.length;d++)ag(A[d],R)}catch(G){$e(i,i.return,G)}}l&&S&64&&v1(p),ja(p,p.return);break;case 27:S1(p);case 26:case 5:yo(d,p,l),l&&i===null&&S&4&&b1(p),ja(p,p.return);break;case 12:yo(d,p,l);break;case 31:yo(d,p,l),l&&S&4&&R1(d,p);break;case 13:yo(d,p,l),l&&S&4&&M1(d,p);break;case 22:p.memoizedState===null&&yo(d,p,l),ja(p,p.return);break;case 30:break;default:yo(d,p,l)}n=n.sibling}}function Zf(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ha(l))}function Pf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ha(e))}function xn(e,n,l,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)_1(e,n,l,i),n=n.sibling}function _1(e,n,l,i){var d=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n,l,i),d&2048&&Oa(9,n);break;case 1:xn(e,n,l,i);break;case 3:xn(e,n,l,i),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ha(e)));break;case 12:if(d&2048){xn(e,n,l,i),e=n.stateNode;try{var p=n.memoizedProps,S=p.id,R=p.onPostCommit;typeof R=="function"&&R(S,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){$e(n,n.return,A)}}else xn(e,n,l,i);break;case 31:xn(e,n,l,i);break;case 13:xn(e,n,l,i);break;case 23:break;case 22:p=n.stateNode,S=n.alternate,n.memoizedState!==null?p._visibility&2?xn(e,n,l,i):_a(e,n):p._visibility&2?xn(e,n,l,i):(p._visibility|=2,mr(e,n,l,i,(n.subtreeFlags&10256)!==0||!1)),d&2048&&Zf(S,n);break;case 24:xn(e,n,l,i),d&2048&&Pf(n.alternate,n);break;default:xn(e,n,l,i)}}function mr(e,n,l,i,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,S=n,R=l,A=i,G=S.flags;switch(S.tag){case 0:case 11:case 15:mr(p,S,R,A,d),Oa(8,S);break;case 23:break;case 22:var Q=S.stateNode;S.memoizedState!==null?Q._visibility&2?mr(p,S,R,A,d):_a(p,S):(Q._visibility|=2,mr(p,S,R,A,d)),d&&G&2048&&Zf(S.alternate,S);break;case 24:mr(p,S,R,A,d),d&&G&2048&&Pf(S.alternate,S);break;default:mr(p,S,R,A,d)}n=n.sibling}}function _a(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,i=n,d=i.flags;switch(i.tag){case 22:_a(l,i),d&2048&&Zf(i.alternate,i);break;case 24:_a(l,i),d&2048&&Pf(i.alternate,i);break;default:_a(l,i)}n=n.sibling}}var Na=8192;function pr(e,n,l){if(e.subtreeFlags&Na)for(e=e.child;e!==null;)N1(e,n,l),e=e.sibling}function N1(e,n,l){switch(e.tag){case 26:pr(e,n,l),e.flags&Na&&e.memoizedState!==null&&RC(l,bn,e.memoizedState,e.memoizedProps);break;case 5:pr(e,n,l);break;case 3:case 4:var i=bn;bn=Cs(e.stateNode.containerInfo),pr(e,n,l),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Na,Na=16777216,pr(e,n,l),Na=i):pr(e,n,l));break;default:pr(e,n,l)}}function A1(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Aa(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];pt=i,H1(i,e)}A1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)D1(e),e=e.sibling}function D1(e){switch(e.tag){case 0:case 11:case 15:Aa(e),e.flags&2048&&Po(9,e,e.return);break;case 3:Aa(e);break;case 12:Aa(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,cs(e)):Aa(e);break;default:Aa(e)}}function cs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];pt=i,H1(i,e)}A1(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Po(8,n,n.return),cs(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,cs(n));break;default:cs(n)}e=e.sibling}}function H1(e,n){for(;pt!==null;){var l=pt;switch(l.tag){case 0:case 11:case 15:Po(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ha(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,pt=i;else e:for(l=e;pt!==null;){i=pt;var d=i.sibling,p=i.return;if(E1(i),i===l){pt=null;break e}if(d!==null){d.return=p,pt=d;break e}pt=p}}}var US={getCacheForType:function(e){var n=bt(it),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return bt(it).controller.signal}},GS=typeof WeakMap=="function"?WeakMap:Map,ke=0,Pe=null,Te=null,Me=0,Be=0,It=null,qo=!1,hr=!1,qf=!1,bo=0,lt=0,Yo=0,_l=0,Yf=0,Qt=0,gr=0,Da=null,zt=null,Xf=!1,us=0,z1=0,fs=1/0,ds=null,Xo=null,dt=0,Io=null,vr=null,xo=0,If=0,Qf=null,L1=null,Ha=0,Ff=null;function Ft(){return(ke&2)!==0&&Me!==0?Me&-Me:z.T!==null?nd():Jp()}function k1(){if(Qt===0)if((Me&536870912)===0||je){var e=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Qt=e}else Qt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Qt}function Lt(e,n,l){(e===Pe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(yr(e,0),Qo(e,Me,Qt,!1)),ta(e,l),((ke&2)===0||e!==Pe)&&(e===Pe&&((ke&2)===0&&(_l|=l),lt===4&&Qo(e,Me,Qt,!1)),kn(e))}function V1(e,n,l){if((ke&6)!==0)throw Error(a(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||ea(e,n),d=i?qS(e,n):Jf(e,n,!0),p=i;do{if(d===0){hr&&!i&&Qo(e,n,0,!1);break}else{if(l=e.current.alternate,p&&!ZS(l)){d=Jf(e,n,!1),p=!1;continue}if(d===2){if(p=n,e.errorRecoveryDisabledLanes&p)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var R=e;d=Da;var A=R.current.memoizedState.isDehydrated;if(A&&(yr(R,S).flags|=256),S=Jf(R,S,!1),S!==2){if(qf&&!A){R.errorRecoveryDisabledLanes|=p,_l|=p,d=4;break e}p=zt,zt=d,p!==null&&(zt===null?zt=p:zt.push.apply(zt,p))}d=S}if(p=!1,d!==2)continue}}if(d===1){yr(e,0),Qo(e,n,0,!0);break}e:{switch(i=e,p=d,p){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Qo(i,n,Qt,!qo);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(d=us+300-Ot(),10<d)){if(Qo(i,n,Qt,!qo),Ci(i,0,!0)!==0)break e;xo=n,i.timeoutHandle=hv(B1.bind(null,i,l,zt,ds,Xf,n,Qt,_l,gr,qo,p,"Throttled",-0,0),d);break e}B1(i,l,zt,ds,Xf,n,Qt,_l,gr,qo,p,null,-0,0)}}break}while(!0);kn(e)}function B1(e,n,l,i,d,p,S,R,A,G,Q,J,P,Y){if(e.timeoutHandle=-1,J=n.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:lo},N1(n,p,J);var ie=(p&62914560)===p?us-Ot():(p&4194048)===p?z1-Ot():0;if(ie=MC(J,ie),ie!==null){xo=p,e.cancelPendingCommit=ie(X1.bind(null,e,n,p,l,i,d,S,R,A,Q,J,null,P,Y)),Qo(e,p,S,!G);return}}X1(e,n,p,l,i,d,S,R,A)}function ZS(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var d=l[i],p=d.getSnapshot;d=d.value;try{if(!Pt(p(),d))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Qo(e,n,l,i){n&=~Yf,n&=~_l,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var d=n;0<d;){var p=31-Zt(d),S=1<<p;i[p]=-1,d&=~S}l!==0&&Qp(e,l,n)}function ms(){return(ke&6)===0?(za(0),!1):!0}function Kf(){if(Te!==null){if(Be===0)var e=Te.return;else e=Te,so=Sl=null,mf(e),sr=null,va=0,e=Te;for(;e!==null;)g1(e.alternate,e),e=e.return;Te=null}}function yr(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cC(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),xo=0,Kf(),Pe=e,Te=l=ao(e.current,null),Me=n,Be=0,It=null,qo=!1,hr=ea(e,n),qf=!1,gr=Qt=Yf=_l=Yo=lt=0,zt=Da=null,Xf=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var d=31-Zt(i),p=1<<d;n|=e[d],i&=~p}return bo=n,Hi(),l}function $1(e,n){xe=null,z.H=Ta,n===ir||n===Gi?(n=ng(),Be=3):n===ef?(n=ng(),Be=4):Be=n===jf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,It=n,Te===null&&(lt=1,ns(e,an(n,e.current)))}function U1(){var e=Yt.current;return e===null?!0:(Me&4194048)===Me?fn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===fn:!1}function G1(){var e=z.H;return z.H=Ta,e===null?Ta:e}function Z1(){var e=z.A;return z.A=US,e}function ps(){lt=4,qo||(Me&4194048)!==Me&&Yt.current!==null||(hr=!0),(Yo&134217727)===0&&(_l&134217727)===0||Pe===null||Qo(Pe,Me,Qt,!1)}function Jf(e,n,l){var i=ke;ke|=2;var d=G1(),p=Z1();(Pe!==e||Me!==n)&&(ds=null,yr(e,n)),n=!1;var S=lt;e:do try{if(Be!==0&&Te!==null){var R=Te,A=It;switch(Be){case 8:Kf(),S=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(n=!0);var G=Be;if(Be=0,It=null,br(e,R,A,G),l&&hr){S=0;break e}break;default:G=Be,Be=0,It=null,br(e,R,A,G)}}PS(),S=lt;break}catch(Q){$1(e,Q)}while(!0);return n&&e.shellSuspendCounter++,so=Sl=null,ke=i,z.H=d,z.A=p,Te===null&&(Pe=null,Me=0,Hi()),S}function PS(){for(;Te!==null;)P1(Te)}function qS(e,n){var l=ke;ke|=2;var i=G1(),d=Z1();Pe!==e||Me!==n?(ds=null,fs=Ot()+500,yr(e,n)):hr=ea(e,n);e:do try{if(Be!==0&&Te!==null){n=Te;var p=It;t:switch(Be){case 1:Be=0,It=null,br(e,n,p,1);break;case 2:case 9:if(eg(p)){Be=0,It=null,q1(n);break}n=function(){Be!==2&&Be!==9||Pe!==e||(Be=7),kn(e)},p.then(n,n);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:eg(p)?(Be=0,It=null,q1(n)):(Be=0,It=null,br(e,n,p,7));break;case 5:var S=null;switch(Te.tag){case 26:S=Te.memoizedState;case 5:case 27:var R=Te;if(S?_v(S):R.stateNode.complete){Be=0,It=null;var A=R.sibling;if(A!==null)Te=A;else{var G=R.return;G!==null?(Te=G,hs(G)):Te=null}break t}}Be=0,It=null,br(e,n,p,5);break;case 6:Be=0,It=null,br(e,n,p,6);break;case 8:Kf(),lt=6;break e;default:throw Error(a(462))}}YS();break}catch(Q){$1(e,Q)}while(!0);return so=Sl=null,z.H=i,z.A=d,ke=l,Te!==null?0:(Pe=null,Me=0,Hi(),lt)}function YS(){for(;Te!==null&&!su();)P1(Te)}function P1(e){var n=p1(e.alternate,e,bo);e.memoizedProps=e.pendingProps,n===null?hs(e):Te=n}function q1(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=s1(l,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=s1(l,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:mf(n);default:g1(l,n),n=Te=Zh(n,bo),n=p1(l,n,bo)}e.memoizedProps=e.pendingProps,n===null?hs(e):Te=n}function br(e,n,l,i){so=Sl=null,mf(n),sr=null,va=0;var d=n.return;try{if(HS(e,d,n,l,Me)){lt=1,ns(e,an(l,e.current)),Te=null;return}}catch(p){if(d!==null)throw Te=d,p;lt=1,ns(e,an(l,e.current)),Te=null;return}n.flags&32768?(je||i===1?e=!0:hr||(Me&536870912)!==0?e=!1:(qo=e=!0,(i===2||i===9||i===3||i===6)&&(i=Yt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Y1(n,e)):hs(n)}function hs(e){var n=e;do{if((n.flags&32768)!==0){Y1(n,qo);return}e=n.return;var l=kS(n.alternate,n,bo);if(l!==null){Te=l;return}if(n=n.sibling,n!==null){Te=n;return}Te=n=e}while(n!==null);lt===0&&(lt=5)}function Y1(e,n){do{var l=VS(e.alternate,e);if(l!==null){l.flags&=32767,Te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){Te=e;return}Te=e=l}while(e!==null);lt=6,Te=null}function X1(e,n,l,i,d,p,S,R,A){e.cancelPendingCommit=null;do gs();while(dt!==0);if((ke&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(p=n.lanes|n.childLanes,p|=Bu,Tx(e,l,p,S,R,A),e===Pe&&(Te=Pe=null,Me=0),vr=n,Io=e,xo=l,If=p,Qf=d,L1=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FS($l,function(){return J1(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,d=L.p,L.p=2,S=ke,ke|=4;try{BS(e,n,l)}finally{ke=S,L.p=d,z.T=i}}dt=1,I1(),Q1(),F1()}}function I1(){if(dt===1){dt=0;var e=Io,n=vr,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var i=L.p;L.p=2;var d=ke;ke|=4;try{O1(n,e);var p=ud,S=Hh(e.containerInfo),R=p.focusedElem,A=p.selectionRange;if(S!==R&&R&&R.ownerDocument&&Dh(R.ownerDocument.documentElement,R)){if(A!==null&&Hu(R)){var G=A.start,Q=A.end;if(Q===void 0&&(Q=G),"selectionStart"in R)R.selectionStart=G,R.selectionEnd=Math.min(Q,R.value.length);else{var J=R.ownerDocument||document,P=J&&J.defaultView||window;if(P.getSelection){var Y=P.getSelection(),ie=R.textContent.length,pe=Math.min(A.start,ie),Ze=A.end===void 0?pe:Math.min(A.end,ie);!Y.extend&&pe>Ze&&(S=Ze,Ze=pe,pe=S);var B=Ah(R,pe),k=Ah(R,Ze);if(B&&k&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==k.node||Y.focusOffset!==k.offset)){var U=J.createRange();U.setStart(B.node,B.offset),Y.removeAllRanges(),pe>Ze?(Y.addRange(U),Y.extend(k.node,k.offset)):(U.setEnd(k.node,k.offset),Y.addRange(U))}}}}for(J=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&J.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<J.length;R++){var K=J[R];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Os=!!cd,ud=cd=null}finally{ke=d,L.p=i,z.T=l}}e.current=n,dt=2}}function Q1(){if(dt===2){dt=0;var e=Io,n=vr,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var i=L.p;L.p=2;var d=ke;ke|=4;try{w1(e,n.alternate,n)}finally{ke=d,L.p=i,z.T=l}}dt=3}}function F1(){if(dt===4||dt===3){dt=0,cu();var e=Io,n=vr,l=xo,i=L1;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,vr=Io=null,K1(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Xo=null),hu(l),n=n.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Wr,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=z.T,d=L.p,L.p=2,z.T=null;try{for(var p=e.onRecoverableError,S=0;S<i.length;S++){var R=i[S];p(R.value,{componentStack:R.stack})}}finally{z.T=n,L.p=d}}(xo&3)!==0&&gs(),kn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Ff?Ha++:(Ha=0,Ff=e):Ha=0,za(0)}}function K1(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ha(n)))}function gs(){return I1(),Q1(),F1(),J1()}function J1(){if(dt!==5)return!1;var e=Io,n=If;If=0;var l=hu(xo),i=z.T,d=L.p;try{L.p=32>l?32:l,z.T=null,l=Qf,Qf=null;var p=Io,S=xo;if(dt=0,vr=Io=null,xo=0,(ke&6)!==0)throw Error(a(331));var R=ke;if(ke|=4,D1(p.current),_1(p,p.current,S,l),ke=R,za(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Wr,p)}catch{}return!0}finally{L.p=d,z.T=i,K1(e,n)}}function W1(e,n,l){n=an(l,n),n=Of(e.stateNode,n,2),e=Uo(e,n,2),e!==null&&(ta(e,2),kn(e))}function $e(e,n,l){if(e.tag===3)W1(e,e,l);else for(;n!==null;){if(n.tag===3){W1(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Xo===null||!Xo.has(i))){e=an(l,e),l=e1(2),i=Uo(n,l,2),i!==null&&(t1(l,i,n,e),ta(i,2),kn(i));break}}n=n.return}}function Wf(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new GS;var d=new Set;i.set(n,d)}else d=i.get(n),d===void 0&&(d=new Set,i.set(n,d));d.has(l)||(qf=!0,d.add(l),e=XS.bind(null,e,n,l),n.then(e,e))}function XS(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Pe===e&&(Me&l)===l&&(lt===4||lt===3&&(Me&62914560)===Me&&300>Ot()-us?(ke&2)===0&&yr(e,0):Yf|=l,gr===Me&&(gr=0)),kn(e)}function ev(e,n){n===0&&(n=Ip()),e=yl(e,n),e!==null&&(ta(e,n),kn(e))}function IS(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),ev(e,l)}function QS(e,n){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(a(314))}i!==null&&i.delete(n),ev(e,l)}function FS(e,n){return to(e,n)}var vs=null,xr=null,ed=!1,ys=!1,td=!1,Fo=0;function kn(e){e!==xr&&e.next===null&&(xr===null?vs=xr=e:xr=xr.next=e),ys=!0,ed||(ed=!0,JS())}function za(e,n){if(!td&&ys){td=!0;do for(var l=!1,i=vs;i!==null;){if(e!==0){var d=i.pendingLanes;if(d===0)var p=0;else{var S=i.suspendedLanes,R=i.pingedLanes;p=(1<<31-Zt(42|e)+1)-1,p&=d&~(S&~R),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,lv(i,p))}else p=Me,p=Ci(i,i===Pe?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(p&3)===0||ea(i,p)||(l=!0,lv(i,p));i=i.next}while(l);td=!1}}function KS(){tv()}function tv(){ys=ed=!1;var e=0;Fo!==0&&sC()&&(e=Fo);for(var n=Ot(),l=null,i=vs;i!==null;){var d=i.next,p=nv(i,n);p===0?(i.next=null,l===null?vs=d:l.next=d,d===null&&(xr=l)):(l=i,(e!==0||(p&3)!==0)&&(ys=!0)),i=d}dt!==0&&dt!==5||za(e),Fo!==0&&(Fo=0)}function nv(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var S=31-Zt(p),R=1<<S,A=d[S];A===-1?((R&l)===0||(R&i)!==0)&&(d[S]=Ex(R,n)):A<=n&&(e.expiredLanes|=R),p&=~R}if(n=Pe,l=Me,l=Ci(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Bl(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ea(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&Bl(i),hu(l)){case 2:case 8:l=ft;break;case 32:l=$l;break;case 268435456:l=yi;break;default:l=$l}return i=ov.bind(null,e),l=to(l,i),e.callbackPriority=n,e.callbackNode=l,n}return i!==null&&i!==null&&Bl(i),e.callbackPriority=2,e.callbackNode=null,2}function ov(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(gs()&&e.callbackNode!==l)return null;var i=Me;return i=Ci(e,e===Pe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(V1(e,i,n),nv(e,Ot()),e.callbackNode!=null&&e.callbackNode===l?ov.bind(null,e):null)}function lv(e,n){if(gs())return null;V1(e,n,!0)}function JS(){uC(function(){(ke&6)!==0?to(Jr,KS):tv()})}function nd(){if(Fo===0){var e=rr;e===0&&(e=bi,bi<<=1,(bi&261888)===0&&(bi=256)),Fo=e}return Fo}function rv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ri(""+e)}function av(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function WS(e,n,l,i,d){if(n==="submit"&&l&&l.stateNode===d){var p=rv((d[_t]||null).action),S=i.submitter;S&&(n=(n=S[_t]||null)?rv(n.formAction):S.getAttribute("formAction"),n!==null&&(p=n,S=null));var R=new _i("action","action",null,i,d);e.push({event:R,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Fo!==0){var A=S?av(d,S):new FormData(d);Cf(l,{pending:!0,data:A,method:d.method,action:p},null,A)}}else typeof p=="function"&&(R.preventDefault(),A=S?av(d,S):new FormData(d),Cf(l,{pending:!0,data:A,method:d.method,action:p},p,A))},currentTarget:d}]})}}for(var od=0;od<Vu.length;od++){var ld=Vu[od],eC=ld.toLowerCase(),tC=ld[0].toUpperCase()+ld.slice(1);yn(eC,"on"+tC)}yn(kh,"onAnimationEnd"),yn(Vh,"onAnimationIteration"),yn(Bh,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(vS,"onTransitionRun"),yn(yS,"onTransitionStart"),yn(bS,"onTransitionCancel"),yn($h,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pl("onBeforeInput",["compositionend","keypress","textInput","paste"]),pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var La="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(La));function iv(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],d=i.event;i=i.listeners;e:{var p=void 0;if(n)for(var S=i.length-1;0<=S;S--){var R=i[S],A=R.instance,G=R.currentTarget;if(R=R.listener,A!==p&&d.isPropagationStopped())break e;p=R,d.currentTarget=G;try{p(d)}catch(Q){Di(Q)}d.currentTarget=null,p=A}else for(S=0;S<i.length;S++){if(R=i[S],A=R.instance,G=R.currentTarget,R=R.listener,A!==p&&d.isPropagationStopped())break e;p=R,d.currentTarget=G;try{p(d)}catch(Q){Di(Q)}d.currentTarget=null,p=A}}}}function Re(e,n){var l=n[gu];l===void 0&&(l=n[gu]=new Set);var i=e+"__bubble";l.has(i)||(sv(n,e,2,!1),l.add(i))}function rd(e,n,l){var i=0;n&&(i|=4),sv(l,e,i,n)}var bs="_reactListening"+Math.random().toString(36).slice(2);function ad(e){if(!e[bs]){e[bs]=!0,th.forEach(function(l){l!=="selectionchange"&&(nC.has(l)||rd(l,!1,e),rd(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[bs]||(n[bs]=!0,rd("selectionchange",!1,n))}}function sv(e,n,l,i){switch(kv(n)){case 2:var d=_C;break;case 8:d=NC;break;default:d=Sd}l=d.bind(null,n,l,e),d=void 0,!Tu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),i?d!==void 0?e.addEventListener(n,l,{capture:!0,passive:d}):e.addEventListener(n,l,!0):d!==void 0?e.addEventListener(n,l,{passive:d}):e.addEventListener(n,l,!1)}function id(e,n,l,i,d){var p=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var S=i.tag;if(S===3||S===4){var R=i.stateNode.containerInfo;if(R===d)break;if(S===4)for(S=i.return;S!==null;){var A=S.tag;if((A===3||A===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;R!==null;){if(S=Gl(R),S===null)return;if(A=S.tag,A===5||A===6||A===26||A===27){i=p=S;continue e}R=R.parentNode}}i=i.return}mh(function(){var G=p,Q=wu(l),J=[];e:{var P=Uh.get(e);if(P!==void 0){var Y=_i,ie=e;switch(e){case"keypress":if(Oi(l)===0)break e;case"keydown":case"keyup":Y=Qx;break;case"focusin":ie="focus",Y=ju;break;case"focusout":ie="blur",Y=ju;break;case"beforeblur":case"afterblur":Y=ju;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Jx;break;case kh:case Vh:case Bh:Y=$x;break;case $h:Y=eS;break;case"scroll":case"scrollend":Y=zx;break;case"wheel":Y=nS;break;case"copy":case"cut":case"paste":Y=Gx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=yh;break;case"toggle":case"beforetoggle":Y=lS}var pe=(n&4)!==0,Ze=!pe&&(e==="scroll"||e==="scrollend"),B=pe?P!==null?P+"Capture":null:P;pe=[];for(var k=G,U;k!==null;){var K=k;if(U=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||U===null||B===null||(K=la(k,B),K!=null&&pe.push(ka(k,K,U))),Ze)break;k=k.return}0<pe.length&&(P=new Y(P,ie,null,l,Q),J.push({event:P,listeners:pe}))}}if((n&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",P&&l!==Cu&&(ie=l.relatedTarget||l.fromElement)&&(Gl(ie)||ie[Ul]))break e;if((Y||P)&&(P=Q.window===Q?Q:(P=Q.ownerDocument)?P.defaultView||P.parentWindow:window,Y?(ie=l.relatedTarget||l.toElement,Y=G,ie=ie?Gl(ie):null,ie!==null&&(Ze=c(ie),pe=ie.tag,ie!==Ze||pe!==5&&pe!==27&&pe!==6)&&(ie=null)):(Y=null,ie=G),Y!==ie)){if(pe=gh,K="onMouseLeave",B="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(pe=yh,K="onPointerLeave",B="onPointerEnter",k="pointer"),Ze=Y==null?P:oa(Y),U=ie==null?P:oa(ie),P=new pe(K,k+"leave",Y,l,Q),P.target=Ze,P.relatedTarget=U,K=null,Gl(Q)===G&&(pe=new pe(B,k+"enter",ie,l,Q),pe.target=U,pe.relatedTarget=Ze,K=pe),Ze=K,Y&&ie)t:{for(pe=oC,B=Y,k=ie,U=0,K=B;K;K=pe(K))U++;K=0;for(var fe=k;fe;fe=pe(fe))K++;for(;0<U-K;)B=pe(B),U--;for(;0<K-U;)k=pe(k),K--;for(;U--;){if(B===k||k!==null&&B===k.alternate){pe=B;break t}B=pe(B),k=pe(k)}pe=null}else pe=null;Y!==null&&cv(J,P,Y,pe,!1),ie!==null&&Ze!==null&&cv(J,Ze,ie,pe,!0)}}e:{if(P=G?oa(G):window,Y=P.nodeName&&P.nodeName.toLowerCase(),Y==="select"||Y==="input"&&P.type==="file")var He=Rh;else if(Eh(P))if(Mh)He=pS;else{He=dS;var ue=fS}else Y=P.nodeName,!Y||Y.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?G&&Su(G.elementType)&&(He=Rh):He=mS;if(He&&(He=He(e,G))){Th(J,He,l,Q);break e}ue&&ue(e,P,G),e==="focusout"&&G&&P.type==="number"&&G.memoizedProps.value!=null&&xu(P,"number",P.value)}switch(ue=G?oa(G):window,e){case"focusin":(Eh(ue)||ue.contentEditable==="true")&&(Kl=ue,zu=G,da=null);break;case"focusout":da=zu=Kl=null;break;case"mousedown":Lu=!0;break;case"contextmenu":case"mouseup":case"dragend":Lu=!1,zh(J,l,Q);break;case"selectionchange":if(gS)break;case"keydown":case"keyup":zh(J,l,Q)}var Se;if(Nu)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Fl?Ch(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(bh&&l.locale!=="ko"&&(Fl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Fl&&(Se=ph()):(Ho=Q,Ru="value"in Ho?Ho.value:Ho.textContent,Fl=!0)),ue=xs(G,Oe),0<ue.length&&(Oe=new vh(Oe,e,null,l,Q),J.push({event:Oe,listeners:ue}),Se?Oe.data=Se:(Se=wh(l),Se!==null&&(Oe.data=Se)))),(Se=aS?iS(e,l):sS(e,l))&&(Oe=xs(G,"onBeforeInput"),0<Oe.length&&(ue=new vh("onBeforeInput","beforeinput",null,l,Q),J.push({event:ue,listeners:Oe}),ue.data=Se)),WS(J,e,G,l,Q)}iv(J,n)})}function ka(e,n,l){return{instance:e,listener:n,currentTarget:l}}function xs(e,n){for(var l=n+"Capture",i=[];e!==null;){var d=e,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=la(e,l),d!=null&&i.unshift(ka(e,d,p)),d=la(e,n),d!=null&&i.push(ka(e,d,p))),e.tag===3)return i;e=e.return}return[]}function oC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cv(e,n,l,i,d){for(var p=n._reactName,S=[];l!==null&&l!==i;){var R=l,A=R.alternate,G=R.stateNode;if(R=R.tag,A!==null&&A===i)break;R!==5&&R!==26&&R!==27||G===null||(A=G,d?(G=la(l,p),G!=null&&S.unshift(ka(l,G,A))):d||(G=la(l,p),G!=null&&S.push(ka(l,G,A)))),l=l.return}S.length!==0&&e.push({event:n,listeners:S})}var lC=/\r\n?/g,rC=/\u0000|\uFFFD/g;function uv(e){return(typeof e=="string"?e:""+e).replace(lC,`
9
- `).replace(rC,"")}function fv(e,n){return n=uv(n),uv(e)===n}function Ge(e,n,l,i,d,p){switch(l){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||Xl(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&Xl(e,""+i);break;case"className":Ei(e,"class",i);break;case"tabIndex":Ei(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ei(e,l,i);break;case"style":fh(e,i,p);break;case"data":if(n!=="object"){Ei(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ri(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(n!=="input"&&Ge(e,n,"name",d.name,d,null),Ge(e,n,"formEncType",d.formEncType,d,null),Ge(e,n,"formMethod",d.formMethod,d,null),Ge(e,n,"formTarget",d.formTarget,d,null)):(Ge(e,n,"encType",d.encType,d,null),Ge(e,n,"method",d.method,d,null),Ge(e,n,"target",d.target,d,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ri(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=lo);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(a(61));if(l=i.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Ri(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Re("beforetoggle",e),Re("toggle",e),wi(e,"popover",i);break;case"xlinkActuate":oo(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":oo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":oo(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":oo(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":oo(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":oo(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":oo(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":oo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":oo(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":wi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Dx.get(l)||l,wi(e,l,i))}}function sd(e,n,l,i,d,p){switch(l){case"style":fh(e,i,p);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(a(61));if(l=i.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Xl(e,i):(typeof i=="number"||typeof i=="bigint")&&Xl(e,""+i);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"onClick":i!=null&&(e.onclick=lo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),n=l.slice(2,d?l.length-7:void 0),p=e[_t]||null,p=p!=null?p[l]:null,typeof p=="function"&&e.removeEventListener(n,p,d),typeof i=="function")){typeof p!="function"&&p!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,i,d);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):wi(e,l,i)}}}function St(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var i=!1,d=!1,p;for(p in l)if(l.hasOwnProperty(p)){var S=l[p];if(S!=null)switch(p){case"src":i=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ge(e,n,p,S,l,null)}}d&&Ge(e,n,"srcSet",l.srcSet,l,null),i&&Ge(e,n,"src",l.src,l,null);return;case"input":Re("invalid",e);var R=p=S=d=null,A=null,G=null;for(i in l)if(l.hasOwnProperty(i)){var Q=l[i];if(Q!=null)switch(i){case"name":d=Q;break;case"type":S=Q;break;case"checked":A=Q;break;case"defaultChecked":G=Q;break;case"value":p=Q;break;case"defaultValue":R=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,n));break;default:Ge(e,n,i,Q,l,null)}}ih(e,p,R,A,G,S,d,!1);return;case"select":Re("invalid",e),i=S=p=null;for(d in l)if(l.hasOwnProperty(d)&&(R=l[d],R!=null))switch(d){case"value":p=R;break;case"defaultValue":S=R;break;case"multiple":i=R;default:Ge(e,n,d,R,l,null)}n=p,l=S,e.multiple=!!i,n!=null?Yl(e,!!i,n,!1):l!=null&&Yl(e,!!i,l,!0);return;case"textarea":Re("invalid",e),p=d=i=null;for(S in l)if(l.hasOwnProperty(S)&&(R=l[S],R!=null))switch(S){case"value":i=R;break;case"defaultValue":d=R;break;case"children":p=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(a(91));break;default:Ge(e,n,S,R,l,null)}ch(e,i,d,p);return;case"option":for(A in l)l.hasOwnProperty(A)&&(i=l[A],i!=null)&&(A==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Ge(e,n,A,i,l,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(i=0;i<La.length;i++)Re(La[i],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in l)if(l.hasOwnProperty(G)&&(i=l[G],i!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ge(e,n,G,i,l,null)}return;default:if(Su(n)){for(Q in l)l.hasOwnProperty(Q)&&(i=l[Q],i!==void 0&&sd(e,n,Q,i,l,void 0));return}}for(R in l)l.hasOwnProperty(R)&&(i=l[R],i!=null&&Ge(e,n,R,i,l,null))}function aC(e,n,l,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,S=null,R=null,A=null,G=null,Q=null;for(Y in l){var J=l[Y];if(l.hasOwnProperty(Y)&&J!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":A=J;default:i.hasOwnProperty(Y)||Ge(e,n,Y,null,i,J)}}for(var P in i){var Y=i[P];if(J=l[P],i.hasOwnProperty(P)&&(Y!=null||J!=null))switch(P){case"type":p=Y;break;case"name":d=Y;break;case"checked":G=Y;break;case"defaultChecked":Q=Y;break;case"value":S=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(a(137,n));break;default:Y!==J&&Ge(e,n,P,Y,i,J)}}bu(e,S,R,A,G,Q,p,d);return;case"select":Y=S=R=P=null;for(p in l)if(A=l[p],l.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":Y=A;default:i.hasOwnProperty(p)||Ge(e,n,p,null,i,A)}for(d in i)if(p=i[d],A=l[d],i.hasOwnProperty(d)&&(p!=null||A!=null))switch(d){case"value":P=p;break;case"defaultValue":R=p;break;case"multiple":S=p;default:p!==A&&Ge(e,n,d,p,i,A)}n=R,l=S,i=Y,P!=null?Yl(e,!!l,P,!1):!!i!=!!l&&(n!=null?Yl(e,!!l,n,!0):Yl(e,!!l,l?[]:"",!1));return;case"textarea":Y=P=null;for(R in l)if(d=l[R],l.hasOwnProperty(R)&&d!=null&&!i.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ge(e,n,R,null,i,d)}for(S in i)if(d=i[S],p=l[S],i.hasOwnProperty(S)&&(d!=null||p!=null))switch(S){case"value":P=d;break;case"defaultValue":Y=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==p&&Ge(e,n,S,d,i,p)}sh(e,P,Y);return;case"option":for(var ie in l)P=l[ie],l.hasOwnProperty(ie)&&P!=null&&!i.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Ge(e,n,ie,null,i,P));for(A in i)P=i[A],Y=l[A],i.hasOwnProperty(A)&&P!==Y&&(P!=null||Y!=null)&&(A==="selected"?e.selected=P&&typeof P!="function"&&typeof P!="symbol":Ge(e,n,A,P,i,Y));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in l)P=l[pe],l.hasOwnProperty(pe)&&P!=null&&!i.hasOwnProperty(pe)&&Ge(e,n,pe,null,i,P);for(G in i)if(P=i[G],Y=l[G],i.hasOwnProperty(G)&&P!==Y&&(P!=null||Y!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,n));break;default:Ge(e,n,G,P,i,Y)}return;default:if(Su(n)){for(var Ze in l)P=l[Ze],l.hasOwnProperty(Ze)&&P!==void 0&&!i.hasOwnProperty(Ze)&&sd(e,n,Ze,void 0,i,P);for(Q in i)P=i[Q],Y=l[Q],!i.hasOwnProperty(Q)||P===Y||P===void 0&&Y===void 0||sd(e,n,Q,P,i,Y);return}}for(var B in l)P=l[B],l.hasOwnProperty(B)&&P!=null&&!i.hasOwnProperty(B)&&Ge(e,n,B,null,i,P);for(J in i)P=i[J],Y=l[J],!i.hasOwnProperty(J)||P===Y||P==null&&Y==null||Ge(e,n,J,P,i,Y)}function dv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var d=l[i],p=d.transferSize,S=d.initiatorType,R=d.duration;if(p&&R&&dv(S)){for(S=0,R=d.responseEnd,i+=1;i<l.length;i++){var A=l[i],G=A.startTime;if(G>R)break;var Q=A.transferSize,J=A.initiatorType;Q&&dv(J)&&(A=A.responseEnd,S+=Q*(A<R?1:(R-G)/(A-G)))}if(--i,n+=8*(p+S)/(d.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cd=null,ud=null;function Ss(e){return e.nodeType===9?e:e.ownerDocument}function mv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pv(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function fd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var dd=null;function sC(){var e=window.event;return e&&e.type==="popstate"?e===dd?!1:(dd=e,!0):(dd=null,!1)}var hv=typeof setTimeout=="function"?setTimeout:void 0,cC=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,uC=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(e){return gv.resolve(null).then(e).catch(fC)}:hv;function fC(e){setTimeout(function(){throw e})}function Ko(e){return e==="head"}function vv(e,n){var l=n,i=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(d),Er(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Va(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Va(l);for(var p=l.firstChild;p;){var S=p.nextSibling,R=p.nodeName;p[na]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=S}}else l==="body"&&Va(e.ownerDocument.body);l=d}while(l);Er(n)}function yv(e,n){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function md(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":md(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function dC(e,n,l,i){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[na])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function mC(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dn(e.nextSibling),e===null))return null;return e}function bv(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function pd(e){return e.data==="$?"||e.data==="$~"}function hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pC(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var i=function(){n(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var gd=null;function xv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return dn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function Sv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function Cv(e,n,l){switch(n=Ss(l),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Va(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);vu(e)}var mn=new Map,wv=new Set;function Cs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var So=L.d;L.d={f:hC,r:gC,D:vC,C:yC,L:bC,m:xC,X:CC,S:SC,M:wC};function hC(){var e=So.f(),n=ms();return e||n}function gC(e){var n=Zl(e);n!==null&&n.tag===5&&n.type==="form"?$g(n):So.r(e)}var Sr=typeof document>"u"?null:document;function Ev(e,n,l){var i=Sr;if(i&&typeof n=="string"&&n){var d=ln(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),wv.has(d)||(wv.add(d),e={rel:e,crossOrigin:l,href:n},i.querySelector(d)===null&&(n=i.createElement("link"),St(n,"link",e),mt(n),i.head.appendChild(n)))}}function vC(e){So.D(e),Ev("dns-prefetch",e,null)}function yC(e,n){So.C(e,n),Ev("preconnect",e,n)}function bC(e,n,l){So.L(e,n,l);var i=Sr;if(i&&e&&n){var d='link[rel="preload"][as="'+ln(n)+'"]';n==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+ln(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+ln(l.imageSizes)+'"]')):d+='[href="'+ln(e)+'"]';var p=d;switch(n){case"style":p=Cr(e);break;case"script":p=wr(e)}mn.has(p)||(e=v({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),mn.set(p,e),i.querySelector(d)!==null||n==="style"&&i.querySelector(Ba(p))||n==="script"&&i.querySelector($a(p))||(n=i.createElement("link"),St(n,"link",e),mt(n),i.head.appendChild(n)))}}function xC(e,n){So.m(e,n);var l=Sr;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+ln(i)+'"][href="'+ln(e)+'"]',p=d;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=wr(e)}if(!mn.has(p)&&(e=v({rel:"modulepreload",href:e},n),mn.set(p,e),l.querySelector(d)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector($a(p)))return}i=l.createElement("link"),St(i,"link",e),mt(i),l.head.appendChild(i)}}}function SC(e,n,l){So.S(e,n,l);var i=Sr;if(i&&e){var d=Pl(i).hoistableStyles,p=Cr(e);n=n||"default";var S=d.get(p);if(!S){var R={loading:0,preload:null};if(S=i.querySelector(Ba(p)))R.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":n},l),(l=mn.get(p))&&vd(e,l);var A=S=i.createElement("link");mt(A),St(A,"link",e),A._p=new Promise(function(G,Q){A.onload=G,A.onerror=Q}),A.addEventListener("load",function(){R.loading|=1}),A.addEventListener("error",function(){R.loading|=2}),R.loading|=4,ws(S,n,i)}S={type:"stylesheet",instance:S,count:1,state:R},d.set(p,S)}}}function CC(e,n){So.X(e,n);var l=Sr;if(l&&e){var i=Pl(l).hoistableScripts,d=wr(e),p=i.get(d);p||(p=l.querySelector($a(d)),p||(e=v({src:e,async:!0},n),(n=mn.get(d))&&yd(e,n),p=l.createElement("script"),mt(p),St(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(d,p))}}function wC(e,n){So.M(e,n);var l=Sr;if(l&&e){var i=Pl(l).hoistableScripts,d=wr(e),p=i.get(d);p||(p=l.querySelector($a(d)),p||(e=v({src:e,async:!0,type:"module"},n),(n=mn.get(d))&&yd(e,n),p=l.createElement("script"),mt(p),St(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(d,p))}}function Tv(e,n,l,i){var d=(d=be.current)?Cs(d):null;if(!d)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Cr(l.href),l=Pl(d).hoistableStyles,i=l.get(n),i||(i={type:"style",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Cr(l.href);var p=Pl(d).hoistableStyles,S=p.get(e);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,S),(p=d.querySelector(Ba(e)))&&!p._p&&(S.instance=p,S.state.loading=5),mn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},mn.set(e,l),p||EC(d,e,l,S.state))),n&&i===null)throw Error(a(528,""));return S}if(n&&i!==null)throw Error(a(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=wr(l),l=Pl(d).hoistableScripts,i=l.get(n),i||(i={type:"script",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Cr(e){return'href="'+ln(e)+'"'}function Ba(e){return'link[rel="stylesheet"]['+e+"]"}function Rv(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function EC(e,n,l,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),St(n,"link",l),mt(n),e.head.appendChild(n))}function wr(e){return'[src="'+ln(e)+'"]'}function $a(e){return"script[async]"+e}function Mv(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+ln(l.href)+'"]');if(i)return n.instance=i,mt(i),i;var d=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),mt(i),St(i,"style",d),ws(i,l.precedence,e),n.instance=i;case"stylesheet":d=Cr(l.href);var p=e.querySelector(Ba(d));if(p)return n.state.loading|=4,n.instance=p,mt(p),p;i=Rv(l),(d=mn.get(d))&&vd(i,d),p=(e.ownerDocument||e).createElement("link"),mt(p);var S=p;return S._p=new Promise(function(R,A){S.onload=R,S.onerror=A}),St(p,"link",i),n.state.loading|=4,ws(p,l.precedence,e),n.instance=p;case"script":return p=wr(l.src),(d=e.querySelector($a(p)))?(n.instance=d,mt(d),d):(i=l,(d=mn.get(p))&&(i=v({},l),yd(i,d)),e=e.ownerDocument||e,d=e.createElement("script"),mt(d),St(d,"link",i),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,ws(i,l.precedence,e));return n.instance}function ws(e,n,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=i.length?i[i.length-1]:null,p=d,S=0;S<i.length;S++){var R=i[S];if(R.dataset.precedence===n)p=R;else if(p!==d)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function vd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function yd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Es=null;function Ov(e,n,l){if(Es===null){var i=new Map,d=Es=new Map;d.set(l,i)}else d=Es,i=d.get(l),i||(i=new Map,d.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var p=l[d];if(!(p[na]||p[vt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(n)||"";S=e+S;var R=i.get(S);R?R.push(p):i.set(S,[p])}}return i}function jv(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function TC(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function _v(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function RC(e,n,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=Cr(i.href),p=n.querySelector(Ba(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ts.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=p,mt(p);return}p=n.ownerDocument||n,i=Rv(i),(d=mn.get(d))&&vd(i,d),p=p.createElement("link"),mt(p);var S=p;S._p=new Promise(function(R,A){S.onload=R,S.onerror=A}),St(p,"link",i),l.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ts.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var bd=0;function MC(e,n){return e.stylesheets&&e.count===0&&Ms(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&bd===0&&(bd=62500*iC());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>bd?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(d)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ms(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rs=null;function Ms(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rs=new Map,n.forEach(OC,e),Rs=null,Ts.call(e))}function OC(e,n){if(!(n.state.loading&4)){var l=Rs.get(e);if(l)var i=l.get(null);else{l=new Map,Rs.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var S=d[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),i=S)}i&&l.set(null,i)}d=n.instance,S=d.getAttribute("data-precedence"),p=l.get(S)||i,p===i&&l.set(null,d),l.set(S,d),this.count++,i=Ts.bind(this),d.addEventListener("load",i),d.addEventListener("error",i),p?p.parentNode.insertBefore(d,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var Ua={$$typeof:j,Provider:null,Consumer:null,_currentValue:_,_currentValue2:_,_threadCount:0};function jC(e,n,l,i,d,p,S,R,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.hiddenUpdates=mu(null),this.identifierPrefix=i,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Nv(e,n,l,i,d,p,S,R,A,G,Q,J){return e=new jC(e,n,l,S,A,G,Q,J,R),n=1,p===!0&&(n|=24),p=qt(3,null,null,n),e.current=p,p.stateNode=e,n=Ku(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:i,isDehydrated:l,cache:n},tf(p),e}function Av(e){return e?(e=er,e):er}function Dv(e,n,l,i,d,p){d=Av(d),i.context===null?i.context=d:i.pendingContext=d,i=$o(n),i.payload={element:l},p=p===void 0?null:p,p!==null&&(i.callback=p),l=Uo(e,i,n),l!==null&&(Lt(l,e,n),ba(l,e,n))}function Hv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function xd(e,n){Hv(e,n),(e=e.alternate)&&Hv(e,n)}function zv(e){if(e.tag===13||e.tag===31){var n=yl(e,67108864);n!==null&&Lt(n,e,67108864),xd(e,67108864)}}function Lv(e){if(e.tag===13||e.tag===31){var n=Ft();n=pu(n);var l=yl(e,n);l!==null&&Lt(l,e,n),xd(e,n)}}var Os=!0;function _C(e,n,l,i){var d=z.T;z.T=null;var p=L.p;try{L.p=2,Sd(e,n,l,i)}finally{L.p=p,z.T=d}}function NC(e,n,l,i){var d=z.T;z.T=null;var p=L.p;try{L.p=8,Sd(e,n,l,i)}finally{L.p=p,z.T=d}}function Sd(e,n,l,i){if(Os){var d=Cd(i);if(d===null)id(e,n,i,js,l),Vv(e,i);else if(DC(d,e,n,l,i))i.stopPropagation();else if(Vv(e,i),n&4&&-1<AC.indexOf(e)){for(;d!==null;){var p=Zl(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=ml(p.pendingLanes);if(S!==0){var R=p;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var A=1<<31-Zt(S);R.entanglements[1]|=A,S&=~A}kn(p),(ke&6)===0&&(fs=Ot()+500,za(0))}}break;case 31:case 13:R=yl(p,2),R!==null&&Lt(R,p,2),ms(),xd(p,2)}if(p=Cd(i),p===null&&id(e,n,i,js,l),p===d)break;d=p}d!==null&&i.stopPropagation()}else id(e,n,i,null,l)}}function Cd(e){return e=wu(e),wd(e)}var js=null;function wd(e){if(js=null,e=Gl(e),e!==null){var n=c(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=u(n),e!==null)return e;e=null}else if(l===31){if(e=f(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return js=e,null}function kv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(uu()){case Jr:return 2;case ft:return 8;case $l:case fu:return 32;case yi:return 268435456;default:return 32}default:return 32}}var Ed=!1,Jo=null,Wo=null,el=null,Ga=new Map,Za=new Map,tl=[],AC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vv(e,n){switch(e){case"focusin":case"focusout":Jo=null;break;case"dragenter":case"dragleave":Wo=null;break;case"mouseover":case"mouseout":el=null;break;case"pointerover":case"pointerout":Ga.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Za.delete(n.pointerId)}}function Pa(e,n,l,i,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:i,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Zl(n),n!==null&&zv(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function DC(e,n,l,i,d){switch(n){case"focusin":return Jo=Pa(Jo,e,n,l,i,d),!0;case"dragenter":return Wo=Pa(Wo,e,n,l,i,d),!0;case"mouseover":return el=Pa(el,e,n,l,i,d),!0;case"pointerover":var p=d.pointerId;return Ga.set(p,Pa(Ga.get(p)||null,e,n,l,i,d)),!0;case"gotpointercapture":return p=d.pointerId,Za.set(p,Pa(Za.get(p)||null,e,n,l,i,d)),!0}return!1}function Bv(e){var n=Gl(e.target);if(n!==null){var l=c(n);if(l!==null){if(n=l.tag,n===13){if(n=u(l),n!==null){e.blockedOn=n,Wp(e.priority,function(){Lv(l)});return}}else if(n===31){if(n=f(l),n!==null){e.blockedOn=n,Wp(e.priority,function(){Lv(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _s(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Cd(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Cu=i,l.target.dispatchEvent(i),Cu=null}else return n=Zl(l),n!==null&&zv(n),e.blockedOn=l,!1;n.shift()}return!0}function $v(e,n,l){_s(e)&&l.delete(n)}function HC(){Ed=!1,Jo!==null&&_s(Jo)&&(Jo=null),Wo!==null&&_s(Wo)&&(Wo=null),el!==null&&_s(el)&&(el=null),Ga.forEach($v),Za.forEach($v)}function Ns(e,n){e.blockedOn===n&&(e.blockedOn=null,Ed||(Ed=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,HC)))}var As=null;function Uv(e){As!==e&&(As=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){As===e&&(As=null);for(var n=0;n<e.length;n+=3){var l=e[n],i=e[n+1],d=e[n+2];if(typeof i!="function"){if(wd(i||l)===null)continue;break}var p=Zl(l);p!==null&&(e.splice(n,3),n-=3,Cf(p,{pending:!0,data:d,method:l.method,action:i},i,d))}}))}function Er(e){function n(A){return Ns(A,e)}Jo!==null&&Ns(Jo,e),Wo!==null&&Ns(Wo,e),el!==null&&Ns(el,e),Ga.forEach(n),Za.forEach(n);for(var l=0;l<tl.length;l++){var i=tl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<tl.length&&(l=tl[0],l.blockedOn===null);)Bv(l),l.blockedOn===null&&tl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var d=l[i],p=l[i+1],S=d[_t]||null;if(typeof p=="function")S||Uv(l);else if(S){var R=null;if(p&&p.hasAttribute("formAction")){if(d=p,S=p[_t]||null)R=S.formAction;else if(wd(d)!==null)continue}else R=S.action;typeof R=="function"?l[i+1]=R:(l.splice(i,3),i-=3),Uv(l)}}}function Gv(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Td(e){this._internalRoot=e}Ds.prototype.render=Td.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var l=n.current,i=Ft();Dv(l,i,e,n,null,null)},Ds.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Dv(e.current,2,null,e,null,null),ms(),n[Ul]=null}};function Ds(e){this._internalRoot=e}Ds.prototype.unstable_scheduleHydration=function(e){if(e){var n=Jp();e={blockedOn:null,target:e,priority:n};for(var l=0;l<tl.length&&n!==0&&n<tl[l].priority;l++);tl.splice(l,0,e),l===0&&Bv(e)}};var Zv=o.version;if(Zv!=="19.2.4")throw Error(a(527,Zv,"19.2.4"));L.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=h(n),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var zC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{Wr=Hs.inject(zC),Gt=Hs}catch{}}return Ya.createRoot=function(e,n){if(!s(e))throw Error(a(299));var l=!1,i="",d=Fg,p=Kg,S=Jg;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=Nv(e,1,!1,null,null,l,i,null,d,p,S,Gv),e[Ul]=n.current,ad(e),new Td(n)},Ya.hydrateRoot=function(e,n,l){if(!s(e))throw Error(a(299));var i=!1,d="",p=Fg,S=Kg,R=Jg,A=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(R=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),n=Nv(e,1,!0,n,l??null,i,d,A,p,S,R,Gv),n.context=Av(null),l=n.current,i=Ft(),i=pu(i),d=$o(i),d.callback=null,Uo(l,d,i),l=i,n.current.lanes=l,ta(n,l),kn(n),e[Ul]=n.current,ad(e),new Ds(n)},Ya.version="19.2.4",Ya}var Wv;function w4(){if(Wv)return Od.exports;Wv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Od.exports=C4(),Od.exports}var Py=w4();const mO=Vy(Py);var Ad={exports:{}},Dd={},Hd={exports:{}},zd={};var e0;function E4(){if(e0)return zd;e0=1;var t=Tc();function o(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var r=typeof Object.is=="function"?Object.is:o,a=t.useState,s=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function f(v,b){var C=b(),E=a({inst:{value:C,getSnapshot:b}}),w=E[0].inst,T=E[1];return c(function(){w.value=C,w.getSnapshot=b,m(w)&&T({inst:w})},[v,C,b]),s(function(){return m(w)&&T({inst:w}),v(function(){m(w)&&T({inst:w})})},[v]),u(C),C}function m(v){var b=v.getSnapshot;v=v.value;try{var C=b();return!r(v,C)}catch{return!0}}function h(v,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return zd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,zd}var t0;function qy(){return t0||(t0=1,Hd.exports=E4()),Hd.exports}var n0;function T4(){if(n0)return Dd;n0=1;var t=Tc(),o=qy();function r(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var a=typeof Object.is=="function"?Object.is:r,s=o.useSyncExternalStore,c=t.useRef,u=t.useEffect,f=t.useMemo,m=t.useDebugValue;return Dd.useSyncExternalStoreWithSelector=function(h,g,v,b,C){var E=c(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=f(function(){function M(V){if(!O){if(O=!0,j=V,V=b(V),C!==void 0&&w.hasValue){var $=w.value;if(C($,V))return N=$}return N=V}if($=N,a(j,V))return $;var X=b(V);return C!==void 0&&C($,X)?(j=V,$):(j=V,N=X)}var O=!1,j,N,D=v===void 0?null:v;return[function(){return M(g())},D===null?void 0:function(){return M(D())}]},[g,v,b,C]);var T=s(h,E[0],E[1]);return u(function(){w.hasValue=!0,w.value=T},[T]),m(T),T},Dd}var o0;function R4(){return o0||(o0=1,Ad.exports=T4()),Ad.exports}var M4=R4(),wn=Zy();const Yy=Vy(wn);var Bn=function(){return Bn=Object.assign||function(o){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(o[c]=r[c])}return o},Bn.apply(this,arguments)};function Xy(t,o){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&o.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(r[a[s]]=t[a[s]]);return r}function O4(t,o,r){if(r||arguments.length===2)for(var a=0,s=o.length,c;a<s;a++)(c||!(a in o))&&(c||(c=Array.prototype.slice.call(o,0,a)),c[a]=o[a]);return t.concat(c||Array.prototype.slice.call(o))}var Xs="right-scroll-bar-position",Is="width-before-scroll-bar",j4="with-scroll-bars-hidden",_4="--removed-body-scroll-bar-size";function Ld(t,o){return typeof t=="function"?t(o):t&&(t.current=o),t}function N4(t,o){var r=x.useState(function(){return{value:t,callback:o,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=o,r.facade}var A4=typeof window<"u"?x.useLayoutEffect:x.useEffect,l0=new WeakMap;function D4(t,o){var r=N4(null,function(a){return t.forEach(function(s){return Ld(s,a)})});return A4(function(){var a=l0.get(r);if(a){var s=new Set(a),c=new Set(t),u=r.current;s.forEach(function(f){c.has(f)||Ld(f,null)}),c.forEach(function(f){s.has(f)||Ld(f,u)})}l0.set(r,t)},[t]),r}function H4(t){return t}function z4(t,o){o===void 0&&(o=H4);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(c){var u=o(c,a);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(a=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(f){return c(f)},filter:function(){return r}}},assignMedium:function(c){a=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(c),u=r}var m=function(){var g=u;u=[],g.forEach(c)},h=function(){return Promise.resolve().then(m)};h(),r={push:function(g){u.push(g),h()},filter:function(g){return u=u.filter(g),r}}}};return s}function L4(t){t===void 0&&(t={});var o=z4(null);return o.options=Bn({async:!0,ssr:!1},t),o}var Iy=function(t){var o=t.sideCar,r=Xy(t,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=o.read();if(!a)throw new Error("Sidecar medium not found");return x.createElement(a,Bn({},r))};Iy.isSideCarExport=!0;function k4(t,o){return t.useMedium(o),Iy}var Qy=L4(),kd=function(){},jc=x.forwardRef(function(t,o){var r=x.useRef(null),a=x.useState({onScrollCapture:kd,onWheelCapture:kd,onTouchMoveCapture:kd}),s=a[0],c=a[1],u=t.forwardProps,f=t.children,m=t.className,h=t.removeScrollBar,g=t.enabled,v=t.shards,b=t.sideCar,C=t.noRelative,E=t.noIsolation,w=t.inert,T=t.allowPinchZoom,M=t.as,O=M===void 0?"div":M,j=t.gapMode,N=Xy(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=b,V=D4([r,o]),$=Bn(Bn({},N),s);return x.createElement(x.Fragment,null,g&&x.createElement(D,{sideCar:Qy,removeScrollBar:h,shards:v,noRelative:C,noIsolation:E,inert:w,setCallbacks:c,allowPinchZoom:!!T,lockRef:r,gapMode:j}),u?x.cloneElement(x.Children.only(f),Bn(Bn({},$),{ref:V})):x.createElement(O,Bn({},$,{className:m,ref:V}),f))});jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jc.classNames={fullWidth:Is,zeroRight:Xs};var V4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B4(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var o=V4();return o&&t.setAttribute("nonce",o),t}function $4(t,o){t.styleSheet?t.styleSheet.cssText=o:t.appendChild(document.createTextNode(o))}function U4(t){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(t)}var G4=function(){var t=0,o=null;return{add:function(r){t==0&&(o=B4())&&($4(o,r),U4(o)),t++},remove:function(){t--,!t&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Z4=function(){var t=G4();return function(o,r){x.useEffect(function(){return t.add(o),function(){t.remove()}},[o&&r])}},Fy=function(){var t=Z4(),o=function(r){var a=r.styles,s=r.dynamic;return t(a,s),null};return o},P4={left:0,top:0,right:0,gap:0},Vd=function(t){return parseInt(t||"",10)||0},q4=function(t){var o=window.getComputedStyle(document.body),r=o[t==="padding"?"paddingLeft":"marginLeft"],a=o[t==="padding"?"paddingTop":"marginTop"],s=o[t==="padding"?"paddingRight":"marginRight"];return[Vd(r),Vd(a),Vd(s)]},Y4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return P4;var o=q4(t),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,a-r+o[2]-o[0])}},X4=Fy(),Dr="data-scroll-locked",I4=function(t,o,r,a){var s=t.left,c=t.top,u=t.right,f=t.gap;return r===void 0&&(r="margin"),`
10
- .`.concat(j4,` {
11
- overflow: hidden `).concat(a,`;
12
- padding-right: `).concat(f,"px ").concat(a,`;
13
- }
14
- body[`).concat(Dr,`] {
15
- overflow: hidden `).concat(a,`;
16
- overscroll-behavior: contain;
17
- `).concat([o&&"position: relative ".concat(a,";"),r==="margin"&&`
18
- padding-left: `.concat(s,`px;
19
- padding-top: `).concat(c,`px;
20
- padding-right: `).concat(u,`px;
21
- margin-left:0;
22
- margin-top:0;
23
- margin-right: `).concat(f,"px ").concat(a,`;
24
- `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),`
25
- }
26
-
27
- .`).concat(Xs,` {
28
- right: `).concat(f,"px ").concat(a,`;
29
- }
30
-
31
- .`).concat(Is,` {
32
- margin-right: `).concat(f,"px ").concat(a,`;
33
- }
34
-
35
- .`).concat(Xs," .").concat(Xs,` {
36
- right: 0 `).concat(a,`;
37
- }
38
-
39
- .`).concat(Is," .").concat(Is,` {
40
- margin-right: 0 `).concat(a,`;
41
- }
42
-
43
- body[`).concat(Dr,`] {
44
- `).concat(_4,": ").concat(f,`px;
45
- }
46
- `)},r0=function(){var t=parseInt(document.body.getAttribute(Dr)||"0",10);return isFinite(t)?t:0},Q4=function(){x.useEffect(function(){return document.body.setAttribute(Dr,(r0()+1).toString()),function(){var t=r0()-1;t<=0?document.body.removeAttribute(Dr):document.body.setAttribute(Dr,t.toString())}},[])},F4=function(t){var o=t.noRelative,r=t.noImportant,a=t.gapMode,s=a===void 0?"margin":a;Q4();var c=x.useMemo(function(){return Y4(s)},[s]);return x.createElement(X4,{styles:I4(c,!o,s,r?"":"!important")})},Cm=!1;if(typeof window<"u")try{var zs=Object.defineProperty({},"passive",{get:function(){return Cm=!0,!0}});window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch{Cm=!1}var Tr=Cm?{passive:!1}:!1,K4=function(t){return t.tagName==="TEXTAREA"},Ky=function(t,o){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[o]!=="hidden"&&!(r.overflowY===r.overflowX&&!K4(t)&&r[o]==="visible")},J4=function(t){return Ky(t,"overflowY")},W4=function(t){return Ky(t,"overflowX")},a0=function(t,o){var r=o.ownerDocument,a=o;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Jy(t,a);if(s){var c=Wy(t,a),u=c[1],f=c[2];if(u>f)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},e5=function(t){var o=t.scrollTop,r=t.scrollHeight,a=t.clientHeight;return[o,r,a]},t5=function(t){var o=t.scrollLeft,r=t.scrollWidth,a=t.clientWidth;return[o,r,a]},Jy=function(t,o){return t==="v"?J4(o):W4(o)},Wy=function(t,o){return t==="v"?e5(o):t5(o)},n5=function(t,o){return t==="h"&&o==="rtl"?-1:1},o5=function(t,o,r,a,s){var c=n5(t,window.getComputedStyle(o).direction),u=c*a,f=r.target,m=o.contains(f),h=!1,g=u>0,v=0,b=0;do{if(!f)break;var C=Wy(t,f),E=C[0],w=C[1],T=C[2],M=w-T-c*E;(E||M)&&Jy(t,f)&&(v+=M,b+=E);var O=f.parentNode;f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!m&&f!==document.body||m&&(o.contains(f)||o===f));return(g&&Math.abs(v)<1||!g&&Math.abs(b)<1)&&(h=!0),h},Ls=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},i0=function(t){return[t.deltaX,t.deltaY]},s0=function(t){return t&&"current"in t?t.current:t},l5=function(t,o){return t[0]===o[0]&&t[1]===o[1]},r5=function(t){return`
47
- .block-interactivity-`.concat(t,` {pointer-events: none;}
48
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
49
- `)},a5=0,Rr=[];function i5(t){var o=x.useRef([]),r=x.useRef([0,0]),a=x.useRef(),s=x.useState(a5++)[0],c=x.useState(Fy)[0],u=x.useRef(t);x.useEffect(function(){u.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=O4([t.lockRef.current],(t.shards||[]).map(s0),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var f=x.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var M=Ls(w),O=r.current,j="deltaX"in w?w.deltaX:O[0]-M[0],N="deltaY"in w?w.deltaY:O[1]-M[1],D,V=w.target,$=Math.abs(j)>Math.abs(N)?"h":"v";if("touches"in w&&$==="h"&&V.type==="range")return!1;var X=window.getSelection(),F=X&&X.anchorNode,q=F?F===V||F.contains(V):!1;if(q)return!1;var te=a0($,V);if(!te)return!0;if(te?D=$:(D=$==="v"?"h":"v",te=a0($,V)),!te)return!1;if(!a.current&&"changedTouches"in w&&(j||N)&&(a.current=D),!D)return!0;var le=a.current||D;return o5(le,T,w,le==="h"?j:N)},[]),m=x.useCallback(function(w){var T=w;if(!(!Rr.length||Rr[Rr.length-1]!==c)){var M="deltaY"in T?i0(T):Ls(T),O=o.current.filter(function(D){return D.name===T.type&&(D.target===T.target||T.target===D.shadowParent)&&l5(D.delta,M)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var j=(u.current.shards||[]).map(s0).filter(Boolean).filter(function(D){return D.contains(T.target)}),N=j.length>0?f(T,j[0]):!u.current.noIsolation;N&&T.cancelable&&T.preventDefault()}}},[]),h=x.useCallback(function(w,T,M,O){var j={name:w,delta:T,target:M,should:O,shadowParent:s5(M)};o.current.push(j),setTimeout(function(){o.current=o.current.filter(function(N){return N!==j})},1)},[]),g=x.useCallback(function(w){r.current=Ls(w),a.current=void 0},[]),v=x.useCallback(function(w){h(w.type,i0(w),w.target,f(w,t.lockRef.current))},[]),b=x.useCallback(function(w){h(w.type,Ls(w),w.target,f(w,t.lockRef.current))},[]);x.useEffect(function(){return Rr.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Tr),document.addEventListener("touchmove",m,Tr),document.addEventListener("touchstart",g,Tr),function(){Rr=Rr.filter(function(w){return w!==c}),document.removeEventListener("wheel",m,Tr),document.removeEventListener("touchmove",m,Tr),document.removeEventListener("touchstart",g,Tr)}},[]);var C=t.removeScrollBar,E=t.inert;return x.createElement(x.Fragment,null,E?x.createElement(c,{styles:r5(s)}):null,C?x.createElement(F4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function s5(t){for(var o=null;t!==null;)t instanceof ShadowRoot&&(o=t.host,t=t.host),t=t.parentNode;return o}const c5=k4(Qy,i5);var u5=x.forwardRef(function(t,o){return x.createElement(jc,Bn({},t,{ref:o,sideCar:c5}))});u5.classNames=jc.classNames;function eb(t){var o,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(o=0;o<s;o++)t[o]&&(r=eb(t[o]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function jo(){for(var t,o,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(o=eb(t))&&(a&&(a+=" "),a+=o);return a}const f5=["top","right","bottom","left"],En=Math.min,Tt=Math.max,ec=Math.round,ks=Math.floor,Zn=t=>({x:t,y:t}),d5={left:"right",right:"left",bottom:"top",top:"bottom"},m5={start:"end",end:"start"};function wm(t,o,r){return Tt(t,En(o,r))}function Fn(t,o){return typeof t=="function"?t(o):t}function Tn(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Um(t){return t==="x"?"y":"x"}function Gm(t){return t==="y"?"height":"width"}const p5=new Set(["top","bottom"]);function Sn(t){return p5.has(Tn(t))?"y":"x"}function Zm(t){return Um(Sn(t))}function h5(t,o,r){r===void 0&&(r=!1);const a=$r(t),s=Zm(t),c=Gm(s);let u=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(u=tc(u)),[u,tc(u)]}function g5(t){const o=tc(t);return[Em(t),o,Em(o)]}function Em(t){return t.replace(/start|end/g,o=>m5[o])}const c0=["left","right"],u0=["right","left"],v5=["top","bottom"],y5=["bottom","top"];function b5(t,o,r){switch(t){case"top":case"bottom":return r?o?u0:c0:o?c0:u0;case"left":case"right":return o?v5:y5;default:return[]}}function x5(t,o,r,a){const s=$r(t);let c=b5(Tn(t),r==="start",a);return s&&(c=c.map(u=>u+"-"+s),o&&(c=c.concat(c.map(Em)))),c}function tc(t){return t.replace(/left|right|bottom|top/g,o=>d5[o])}function S5(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pm(t){return typeof t!="number"?S5(t):{top:t,right:t,bottom:t,left:t}}function kr(t){const{x:o,y:r,width:a,height:s}=t;return{width:a,height:s,top:r,left:o,right:o+a,bottom:r+s,x:o,y:r}}function f0(t,o,r){let{reference:a,floating:s}=t;const c=Sn(o),u=Zm(o),f=Gm(u),m=Tn(o),h=c==="y",g=a.x+a.width/2-s.width/2,v=a.y+a.height/2-s.height/2,b=a[f]/2-s[f]/2;let C;switch(m){case"top":C={x:g,y:a.y-s.height};break;case"bottom":C={x:g,y:a.y+a.height};break;case"right":C={x:a.x+a.width,y:v};break;case"left":C={x:a.x-s.width,y:v};break;default:C={x:a.x,y:a.y}}switch($r(o)){case"start":C[u]-=b*(r&&h?-1:1);break;case"end":C[u]+=b*(r&&h?-1:1);break}return C}async function C5(t,o){var r;o===void 0&&(o={});const{x:a,y:s,platform:c,rects:u,elements:f,strategy:m}=t,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:C=0}=Fn(o,t),E=Pm(C),T=f[b?v==="floating"?"reference":"floating":v],M=kr(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:m})),O=v==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),N=await(c.isElement==null?void 0:c.isElement(j))?await(c.getScale==null?void 0:c.getScale(j))||{x:1,y:1}:{x:1,y:1},D=kr(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:j,strategy:m}):O);return{top:(M.top-D.top+E.top)/N.y,bottom:(D.bottom-M.bottom+E.bottom)/N.y,left:(M.left-D.left+E.left)/N.x,right:(D.right-M.right+E.right)/N.x}}const w5=async(t,o,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:u}=r,f=c.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(o));let h=await u.getElementRects({reference:t,floating:o,strategy:s}),{x:g,y:v}=f0(h,a,m),b=a,C={},E=0;for(let T=0;T<f.length;T++){var w;const{name:M,fn:O}=f[T],{x:j,y:N,data:D,reset:V}=await O({x:g,y:v,initialPlacement:a,placement:b,strategy:s,middlewareData:C,rects:h,platform:{...u,detectOverflow:(w=u.detectOverflow)!=null?w:C5},elements:{reference:t,floating:o}});g=j??g,v=N??v,C={...C,[M]:{...C[M],...D}},V&&E<=50&&(E++,typeof V=="object"&&(V.placement&&(b=V.placement),V.rects&&(h=V.rects===!0?await u.getElementRects({reference:t,floating:o,strategy:s}):V.rects),{x:g,y:v}=f0(h,b,m)),T=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:C}},E5=t=>({name:"arrow",options:t,async fn(o){const{x:r,y:a,placement:s,rects:c,platform:u,elements:f,middlewareData:m}=o,{element:h,padding:g=0}=Fn(t,o)||{};if(h==null)return{};const v=Pm(g),b={x:r,y:a},C=Zm(s),E=Gm(C),w=await u.getDimensions(h),T=C==="y",M=T?"top":"left",O=T?"bottom":"right",j=T?"clientHeight":"clientWidth",N=c.reference[E]+c.reference[C]-b[C]-c.floating[E],D=b[C]-c.reference[C],V=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let $=V?V[j]:0;(!$||!await(u.isElement==null?void 0:u.isElement(V)))&&($=f.floating[j]||c.floating[E]);const X=N/2-D/2,F=$/2-w[E]/2-1,q=En(v[M],F),te=En(v[O],F),le=q,ee=$-w[E]-te,H=$/2-w[E]/2+X,W=wm(le,H,ee),z=!m.arrow&&$r(s)!=null&&H!==W&&c.reference[E]/2-(H<le?q:te)-w[E]/2<0,L=z?H<le?H-le:H-ee:0;return{[C]:b[C]+L,data:{[C]:W,centerOffset:H-W-L,...z&&{alignmentOffset:L}},reset:z}}}),T5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var r,a;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:m,elements:h}=o,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...T}=Fn(t,o);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Tn(s),O=Sn(f),j=Tn(f)===f,N=await(m.isRTL==null?void 0:m.isRTL(h.floating)),D=b||(j||!w?[tc(f)]:g5(f)),V=E!=="none";!b&&V&&D.push(...x5(f,w,E,N));const $=[f,...D],X=await m.detectOverflow(o,T),F=[];let q=((a=c.flip)==null?void 0:a.overflows)||[];if(g&&F.push(X[M]),v){const H=h5(s,u,N);F.push(X[H[0]],X[H[1]])}if(q=[...q,{placement:s,overflows:F}],!F.every(H=>H<=0)){var te,le;const H=(((te=c.flip)==null?void 0:te.index)||0)+1,W=$[H];if(W&&(!(v==="alignment"?O!==Sn(W):!1)||q.every(_=>Sn(_.placement)===O?_.overflows[0]>0:!0)))return{data:{index:H,overflows:q},reset:{placement:W}};let z=(le=q.filter(L=>L.overflows[0]<=0).sort((L,_)=>L.overflows[1]-_.overflows[1])[0])==null?void 0:le.placement;if(!z)switch(C){case"bestFit":{var ee;const L=(ee=q.filter(_=>{if(V){const Z=Sn(_.placement);return Z===O||Z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(Z=>Z>0).reduce((Z,I)=>Z+I,0)]).sort((_,Z)=>_[1]-Z[1])[0])==null?void 0:ee[0];L&&(z=L);break}case"initialPlacement":z=f;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function d0(t,o){return{top:t.top-o.height,right:t.right-o.width,bottom:t.bottom-o.height,left:t.left-o.width}}function m0(t){return f5.some(o=>t[o]>=0)}const R5=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(o){const{rects:r,platform:a}=o,{strategy:s="referenceHidden",...c}=Fn(t,o);switch(s){case"referenceHidden":{const u=await a.detectOverflow(o,{...c,elementContext:"reference"}),f=d0(u,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:m0(f)}}}case"escaped":{const u=await a.detectOverflow(o,{...c,altBoundary:!0}),f=d0(u,r.floating);return{data:{escapedOffsets:f,escaped:m0(f)}}}default:return{}}}}};function tb(t){const o=En(...t.map(c=>c.left)),r=En(...t.map(c=>c.top)),a=Tt(...t.map(c=>c.right)),s=Tt(...t.map(c=>c.bottom));return{x:o,y:r,width:a-o,height:s-r}}function M5(t){const o=t.slice().sort((s,c)=>s.y-c.y),r=[];let a=null;for(let s=0;s<o.length;s++){const c=o[s];!a||c.y-a.y>a.height/2?r.push([c]):r[r.length-1].push(c),a=c}return r.map(s=>kr(tb(s)))}const O5=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(o){const{placement:r,elements:a,rects:s,platform:c,strategy:u}=o,{padding:f=2,x:m,y:h}=Fn(t,o),g=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(a.reference))||[]),v=M5(g),b=kr(tb(g)),C=Pm(f);function E(){if(v.length===2&&v[0].left>v[1].right&&m!=null&&h!=null)return v.find(T=>m>T.left-C.left&&m<T.right+C.right&&h>T.top-C.top&&h<T.bottom+C.bottom)||b;if(v.length>=2){if(Sn(r)==="y"){const q=v[0],te=v[v.length-1],le=Tn(r)==="top",ee=q.top,H=te.bottom,W=le?q.left:te.left,z=le?q.right:te.right,L=z-W,_=H-ee;return{top:ee,bottom:H,left:W,right:z,width:L,height:_,x:W,y:ee}}const T=Tn(r)==="left",M=Tt(...v.map(q=>q.right)),O=En(...v.map(q=>q.left)),j=v.filter(q=>T?q.left===O:q.right===M),N=j[0].top,D=j[j.length-1].bottom,V=O,$=M,X=$-V,F=D-N;return{top:N,bottom:D,left:V,right:$,width:X,height:F,x:V,y:N}}return b}const w=await c.getElementRects({reference:{getBoundingClientRect:E},floating:a.floating,strategy:u});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},nb=new Set(["left","top"]);async function j5(t,o){const{placement:r,platform:a,elements:s}=t,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=Tn(r),f=$r(r),m=Sn(r)==="y",h=nb.has(u)?-1:1,g=c&&m?-1:1,v=Fn(o,t);let{mainAxis:b,crossAxis:C,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof E=="number"&&(C=f==="end"?E*-1:E),m?{x:C*g,y:b*h}:{x:b*h,y:C*g}}const _5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var r,a;const{x:s,y:c,placement:u,middlewareData:f}=o,m=await j5(o,t);return u===((r=f.offset)==null?void 0:r.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+m.x,y:c+m.y,data:{...m,placement:u}}}}},N5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:r,y:a,placement:s,platform:c}=o,{mainAxis:u=!0,crossAxis:f=!1,limiter:m={fn:M=>{let{x:O,y:j}=M;return{x:O,y:j}}},...h}=Fn(t,o),g={x:r,y:a},v=await c.detectOverflow(o,h),b=Sn(Tn(s)),C=Um(b);let E=g[C],w=g[b];if(u){const M=C==="y"?"top":"left",O=C==="y"?"bottom":"right",j=E+v[M],N=E-v[O];E=wm(j,E,N)}if(f){const M=b==="y"?"top":"left",O=b==="y"?"bottom":"right",j=w+v[M],N=w-v[O];w=wm(j,w,N)}const T=m.fn({...o,[C]:E,[b]:w});return{...T,data:{x:T.x-r,y:T.y-a,enabled:{[C]:u,[b]:f}}}}}},A5=function(t){return t===void 0&&(t={}),{options:t,fn(o){const{x:r,y:a,placement:s,rects:c,middlewareData:u}=o,{offset:f=0,mainAxis:m=!0,crossAxis:h=!0}=Fn(t,o),g={x:r,y:a},v=Sn(s),b=Um(v);let C=g[b],E=g[v];const w=Fn(f,o),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(m){const j=b==="y"?"height":"width",N=c.reference[b]-c.floating[j]+T.mainAxis,D=c.reference[b]+c.reference[j]-T.mainAxis;C<N?C=N:C>D&&(C=D)}if(h){var M,O;const j=b==="y"?"width":"height",N=nb.has(Tn(s)),D=c.reference[v]-c.floating[j]+(N&&((M=u.offset)==null?void 0:M[v])||0)+(N?0:T.crossAxis),V=c.reference[v]+c.reference[j]+(N?0:((O=u.offset)==null?void 0:O[v])||0)-(N?T.crossAxis:0);E<D?E=D:E>V&&(E=V)}return{[b]:C,[v]:E}}}},D5=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(o){var r,a;const{placement:s,rects:c,platform:u,elements:f}=o,{apply:m=()=>{},...h}=Fn(t,o),g=await u.detectOverflow(o,h),v=Tn(s),b=$r(s),C=Sn(s)==="y",{width:E,height:w}=c.floating;let T,M;v==="top"||v==="bottom"?(T=v,M=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(M=v,T=b==="end"?"top":"bottom");const O=w-g.top-g.bottom,j=E-g.left-g.right,N=En(w-g[T],O),D=En(E-g[M],j),V=!o.middlewareData.shift;let $=N,X=D;if((r=o.middlewareData.shift)!=null&&r.enabled.x&&(X=j),(a=o.middlewareData.shift)!=null&&a.enabled.y&&($=O),V&&!b){const q=Tt(g.left,0),te=Tt(g.right,0),le=Tt(g.top,0),ee=Tt(g.bottom,0);C?X=E-2*(q!==0||te!==0?q+te:Tt(g.left,g.right)):$=w-2*(le!==0||ee!==0?le+ee:Tt(g.top,g.bottom))}await m({...o,availableWidth:X,availableHeight:$});const F=await u.getDimensions(f.floating);return E!==F.width||w!==F.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function Ur(t){return ob(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function Wn(t){var o;return(o=(ob(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function ob(t){return _c()?t instanceof Node||t instanceof Bt(t).Node:!1}function Qe(t){return _c()?t instanceof Element||t instanceof Bt(t).Element:!1}function en(t){return _c()?t instanceof HTMLElement||t instanceof Bt(t).HTMLElement:!1}function Tm(t){return!_c()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}const H5=new Set(["inline","contents"]);function ai(t){const{overflow:o,overflowX:r,overflowY:a,display:s}=hn(t);return/auto|scroll|overlay|hidden|clip/.test(o+a+r)&&!H5.has(s)}const z5=new Set(["table","td","th"]);function L5(t){return z5.has(Ur(t))}const k5=[":popover-open",":modal"];function Nc(t){return k5.some(o=>{try{return t.matches(o)}catch{return!1}})}const V5=["transform","translate","scale","rotate","perspective"],B5=["transform","translate","scale","rotate","perspective","filter"],$5=["paint","layout","strict","content"];function qm(t){const o=Ac(),r=Qe(t)?hn(t):t;return V5.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||B5.some(a=>(r.willChange||"").includes(a))||$5.some(a=>(r.contain||"").includes(a))}function U5(t){let o=Mo(t);for(;en(o)&&!To(o);){if(qm(o))return o;if(Nc(o))return null;o=Mo(o)}return null}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G5=new Set(["html","body","#document"]);function To(t){return G5.has(Ur(t))}function hn(t){return Bt(t).getComputedStyle(t)}function Dc(t){return Qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mo(t){if(Ur(t)==="html")return t;const o=t.assignedSlot||t.parentNode||Tm(t)&&t.host||Wn(t);return Tm(o)?o.host:o}function lb(t){const o=Mo(t);return To(o)?t.ownerDocument?t.ownerDocument.body:t.body:en(o)&&ai(o)?o:lb(o)}function Ro(t,o,r){var a;o===void 0&&(o=[]),r===void 0&&(r=!0);const s=lb(t),c=s===((a=t.ownerDocument)==null?void 0:a.body),u=Bt(s);if(c){const f=Rm(u);return o.concat(u,u.visualViewport||[],ai(s)?s:[],f&&r?Ro(f):[])}return o.concat(s,Ro(s,[],r))}function Rm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rb(t){const o=hn(t);let r=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const s=en(t),c=s?t.offsetWidth:r,u=s?t.offsetHeight:a,f=ec(r)!==c||ec(a)!==u;return f&&(r=c,a=u),{width:r,height:a,$:f}}function Ym(t){return Qe(t)?t:t.contextElement}function Hr(t){const o=Ym(t);if(!en(o))return Zn(1);const r=o.getBoundingClientRect(),{width:a,height:s,$:c}=rb(o);let u=(c?ec(r.width):r.width)/a,f=(c?ec(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const Z5=Zn(0);function ab(t){const o=Bt(t);return!Ac()||!o.visualViewport?Z5:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function P5(t,o,r){return o===void 0&&(o=!1),!r||o&&r!==Bt(t)?!1:o}function zl(t,o,r,a){o===void 0&&(o=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),c=Ym(t);let u=Zn(1);o&&(a?Qe(a)&&(u=Hr(a)):u=Hr(t));const f=P5(c,r,a)?ab(c):Zn(0);let m=(s.left+f.x)/u.x,h=(s.top+f.y)/u.y,g=s.width/u.x,v=s.height/u.y;if(c){const b=Bt(c),C=a&&Qe(a)?Bt(a):a;let E=b,w=Rm(E);for(;w&&a&&C!==E;){const T=Hr(w),M=w.getBoundingClientRect(),O=hn(w),j=M.left+(w.clientLeft+parseFloat(O.paddingLeft))*T.x,N=M.top+(w.clientTop+parseFloat(O.paddingTop))*T.y;m*=T.x,h*=T.y,g*=T.x,v*=T.y,m+=j,h+=N,E=Bt(w),w=Rm(E)}}return kr({width:g,height:v,x:m,y:h})}function Hc(t,o){const r=Dc(t).scrollLeft;return o?o.left+r:zl(Wn(t)).left+r}function ib(t,o){const r=t.getBoundingClientRect(),a=r.left+o.scrollLeft-Hc(t,r),s=r.top+o.scrollTop;return{x:a,y:s}}function q5(t){let{elements:o,rect:r,offsetParent:a,strategy:s}=t;const c=s==="fixed",u=Wn(a),f=o?Nc(o.floating):!1;if(a===u||f&&c)return r;let m={scrollLeft:0,scrollTop:0},h=Zn(1);const g=Zn(0),v=en(a);if((v||!v&&!c)&&((Ur(a)!=="body"||ai(u))&&(m=Dc(a)),en(a))){const C=zl(a);h=Hr(a),g.x=C.x+a.clientLeft,g.y=C.y+a.clientTop}const b=u&&!v&&!c?ib(u,m):Zn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-m.scrollLeft*h.x+g.x+b.x,y:r.y*h.y-m.scrollTop*h.y+g.y+b.y}}function Y5(t){return Array.from(t.getClientRects())}function X5(t){const o=Wn(t),r=Dc(t),a=t.ownerDocument.body,s=Tt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),c=Tt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+Hc(t);const f=-r.scrollTop;return hn(a).direction==="rtl"&&(u+=Tt(o.clientWidth,a.clientWidth)-s),{width:s,height:c,x:u,y:f}}const p0=25;function I5(t,o){const r=Bt(t),a=Wn(t),s=r.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,m=0;if(s){c=s.width,u=s.height;const g=Ac();(!g||g&&o==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const h=Hc(a);if(h<=0){const g=a.ownerDocument,v=g.body,b=getComputedStyle(v),C=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-C);E<=p0&&(c-=E)}else h<=p0&&(c+=h);return{width:c,height:u,x:f,y:m}}const Q5=new Set(["absolute","fixed"]);function F5(t,o){const r=zl(t,!0,o==="fixed"),a=r.top+t.clientTop,s=r.left+t.clientLeft,c=en(t)?Hr(t):Zn(1),u=t.clientWidth*c.x,f=t.clientHeight*c.y,m=s*c.x,h=a*c.y;return{width:u,height:f,x:m,y:h}}function h0(t,o,r){let a;if(o==="viewport")a=I5(t,r);else if(o==="document")a=X5(Wn(t));else if(Qe(o))a=F5(o,r);else{const s=ab(t);a={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return kr(a)}function sb(t,o){const r=Mo(t);return r===o||!Qe(r)||To(r)?!1:hn(r).position==="fixed"||sb(r,o)}function K5(t,o){const r=o.get(t);if(r)return r;let a=Ro(t,[],!1).filter(f=>Qe(f)&&Ur(f)!=="body"),s=null;const c=hn(t).position==="fixed";let u=c?Mo(t):t;for(;Qe(u)&&!To(u);){const f=hn(u),m=qm(u);!m&&f.position==="fixed"&&(s=null),(c?!m&&!s:!m&&f.position==="static"&&!!s&&Q5.has(s.position)||ai(u)&&!m&&sb(t,u))?a=a.filter(g=>g!==u):s=f,u=Mo(u)}return o.set(t,a),a}function J5(t){let{element:o,boundary:r,rootBoundary:a,strategy:s}=t;const u=[...r==="clippingAncestors"?Nc(o)?[]:K5(o,this._c):[].concat(r),a],f=u[0],m=u.reduce((h,g)=>{const v=h0(o,g,s);return h.top=Tt(v.top,h.top),h.right=En(v.right,h.right),h.bottom=En(v.bottom,h.bottom),h.left=Tt(v.left,h.left),h},h0(o,f,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function W5(t){const{width:o,height:r}=rb(t);return{width:o,height:r}}function ew(t,o,r){const a=en(o),s=Wn(o),c=r==="fixed",u=zl(t,!0,c,o);let f={scrollLeft:0,scrollTop:0};const m=Zn(0);function h(){m.x=Hc(s)}if(a||!a&&!c)if((Ur(o)!=="body"||ai(s))&&(f=Dc(o)),a){const C=zl(o,!0,c,o);m.x=C.x+o.clientLeft,m.y=C.y+o.clientTop}else s&&h();c&&!a&&s&&h();const g=s&&!a&&!c?ib(s,f):Zn(0),v=u.left+f.scrollLeft-m.x-g.x,b=u.top+f.scrollTop-m.y-g.y;return{x:v,y:b,width:u.width,height:u.height}}function Bd(t){return hn(t).position==="static"}function g0(t,o){if(!en(t)||hn(t).position==="fixed")return null;if(o)return o(t);let r=t.offsetParent;return Wn(t)===r&&(r=r.ownerDocument.body),r}function cb(t,o){const r=Bt(t);if(Nc(t))return r;if(!en(t)){let s=Mo(t);for(;s&&!To(s);){if(Qe(s)&&!Bd(s))return s;s=Mo(s)}return r}let a=g0(t,o);for(;a&&L5(a)&&Bd(a);)a=g0(a,o);return a&&To(a)&&Bd(a)&&!qm(a)?r:a||U5(t)||r}const tw=async function(t){const o=this.getOffsetParent||cb,r=this.getDimensions,a=await r(t.floating);return{reference:ew(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function nw(t){return hn(t).direction==="rtl"}const ow={convertOffsetParentRelativeRectToViewportRelativeRect:q5,getDocumentElement:Wn,getClippingRect:J5,getOffsetParent:cb,getElementRects:tw,getClientRects:Y5,getDimensions:W5,getScale:Hr,isElement:Qe,isRTL:nw};function ub(t,o){return t.x===o.x&&t.y===o.y&&t.width===o.width&&t.height===o.height}function lw(t,o){let r=null,a;const s=Wn(t);function c(){var f;clearTimeout(a),(f=r)==null||f.disconnect(),r=null}function u(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),c();const h=t.getBoundingClientRect(),{left:g,top:v,width:b,height:C}=h;if(f||o(),!b||!C)return;const E=ks(v),w=ks(s.clientWidth-(g+b)),T=ks(s.clientHeight-(v+C)),M=ks(g),j={rootMargin:-E+"px "+-w+"px "+-T+"px "+-M+"px",threshold:Tt(0,En(1,m))||1};let N=!0;function D(V){const $=V[0].intersectionRatio;if($!==m){if(!N)return u();$?u(!1,$):a=setTimeout(()=>{u(!1,1e-7)},1e3)}$===1&&!ub(h,t.getBoundingClientRect())&&u(),N=!1}try{r=new IntersectionObserver(D,{...j,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,j)}r.observe(t)}return u(!0),c}function Mm(t,o,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,h=Ym(t),g=s||c?[...h?Ro(h):[],...Ro(o)]:[];g.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),c&&M.addEventListener("resize",r)});const v=h&&f?lw(h,r):null;let b=-1,C=null;u&&(C=new ResizeObserver(M=>{let[O]=M;O&&O.target===h&&C&&(C.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=C)==null||j.observe(o)})),r()}),h&&!m&&C.observe(h),C.observe(o));let E,w=m?zl(t):null;m&&T();function T(){const M=zl(t);w&&!ub(w,M)&&r(),w=M,E=requestAnimationFrame(T)}return r(),()=>{var M;g.forEach(O=>{s&&O.removeEventListener("scroll",r),c&&O.removeEventListener("resize",r)}),v?.(),(M=C)==null||M.disconnect(),C=null,m&&cancelAnimationFrame(E)}}const rw=_5,aw=N5,iw=T5,sw=D5,cw=R5,v0=E5,uw=O5,fw=A5,dw=(t,o,r)=>{const a=new Map,s={platform:ow,...r},c={...s.platform,_c:a};return w5(t,o,{...s,platform:c})};var mw=typeof document<"u",pw=function(){},Qs=mw?x.useLayoutEffect:pw;function nc(t,o){if(t===o)return!0;if(typeof t!=typeof o)return!1;if(typeof t=="function"&&t.toString()===o.toString())return!0;let r,a,s;if(t&&o&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==o.length)return!1;for(a=r;a--!==0;)if(!nc(t[a],o[a]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(o).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(o,s[a]))return!1;for(a=r;a--!==0;){const c=s[a];if(!(c==="_owner"&&t.$$typeof)&&!nc(t[c],o[c]))return!1}return!0}return t!==t&&o!==o}function fb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function y0(t,o){const r=fb(t);return Math.round(o*r)/r}function $d(t){const o=x.useRef(t);return Qs(()=>{o.current=t}),o}function hw(t){t===void 0&&(t={});const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:m,open:h}=t,[g,v]=x.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[b,C]=x.useState(a);nc(b,a)||C(a);const[E,w]=x.useState(null),[T,M]=x.useState(null),O=x.useCallback(_=>{_!==V.current&&(V.current=_,w(_))},[]),j=x.useCallback(_=>{_!==$.current&&($.current=_,M(_))},[]),N=c||E,D=u||T,V=x.useRef(null),$=x.useRef(null),X=x.useRef(g),F=m!=null,q=$d(m),te=$d(s),le=$d(h),ee=x.useCallback(()=>{if(!V.current||!$.current)return;const _={placement:o,strategy:r,middleware:b};te.current&&(_.platform=te.current),dw(V.current,$.current,_).then(Z=>{const I={...Z,isPositioned:le.current!==!1};H.current&&!nc(X.current,I)&&(X.current=I,wn.flushSync(()=>{v(I)}))})},[b,o,r,te,le]);Qs(()=>{h===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,v(_=>({..._,isPositioned:!1})))},[h]);const H=x.useRef(!1);Qs(()=>(H.current=!0,()=>{H.current=!1}),[]),Qs(()=>{if(N&&(V.current=N),D&&($.current=D),N&&D){if(q.current)return q.current(N,D,ee);ee()}},[N,D,ee,q,F]);const W=x.useMemo(()=>({reference:V,floating:$,setReference:O,setFloating:j}),[O,j]),z=x.useMemo(()=>({reference:N,floating:D}),[N,D]),L=x.useMemo(()=>{const _={position:r,left:0,top:0};if(!z.floating)return _;const Z=y0(z.floating,g.x),I=y0(z.floating,g.y);return f?{..._,transform:"translate("+Z+"px, "+I+"px)",...fb(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:I}},[r,f,z.floating,g.x,g.y]);return x.useMemo(()=>({...g,update:ee,refs:W,elements:z,floatingStyles:L}),[g,ee,W,z,L])}const gw=t=>{function o(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:a,padding:s}=typeof t=="function"?t(r):t;return a&&o(a)?a.current!=null?v0({element:a.current,padding:s}).fn(r):{}:a?v0({element:a,padding:s}).fn(r):{}}}},db=(t,o)=>({...rw(t),options:[t,o]}),Xm=(t,o)=>({...aw(t),options:[t,o]}),b0=(t,o)=>({...fw(t),options:[t,o]}),oc=(t,o)=>({...iw(t),options:[t,o]}),vw=(t,o)=>({...sw(t),options:[t,o]}),yw=(t,o)=>({...cw(t),options:[t,o]}),Ka=(t,o)=>({...uw(t),options:[t,o]}),mb=(t,o)=>({...gw(t),options:[t,o]}),bw="modulepreload",xw=function(t){return"/"+t},x0={},lc=function(o,r,a){let s=Promise.resolve();if(r&&r.length>0){let m=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");s=m(r.map(h=>{if(h=xw(h),h in x0)return;x0[h]=!0;const g=h.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":bw,g||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),g)return new Promise((C,E)=>{b.addEventListener("load",C),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return o().catch(c)})};var Sw=Object.defineProperty,Cw=(t,o,r)=>o in t?Sw(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,S0=(t,o,r)=>Cw(t,typeof o!="symbol"?o+"":o,r);const C0=PC.create({name:"comment",excludes:"",inclusive:!1,keepOnSplit:!0,addAttributes(){return{orphan:{parseHTML:t=>!!t.getAttribute("data-orphan"),renderHTML:t=>t.orphan?{"data-orphan":"true"}:{},default:!1},threadId:{parseHTML:t=>t.getAttribute("data-bn-thread-id"),renderHTML:t=>({"data-bn-thread-id":t.threadId}),default:""}}},renderHTML({HTMLAttributes:t}){return["span",qC(t,{class:"bn-thread-mark"})]},parseHTML(){return[{tag:"span.bn-thread-mark"}]},extendMarkSchema(t){return t.name==="comment"?{blocknoteIgnore:!0}:{}}});let ww=class extends YC{constructor(o){super(),S0(this,"userCache",new Map),S0(this,"loadingUsers",new Set),this.resolveUsers=o}async loadUsers(o){const r=o.filter(a=>!this.userCache.has(a)&&!this.loadingUsers.has(a));if(r.length!==0){for(const a of r)this.loadingUsers.add(a);try{const a=await this.resolveUsers(r);for(const s of a)this.userCache.set(s.id,s);this.emit("update",this.userCache)}finally{for(const a of r)this.loadingUsers.delete(a)}}}getUser(o){return this.userCache.get(o)}subscribe(o){return this.on("update",o)}};const Vs=new BC("blocknote-comments");function Ew(t,o){const r=new Map;return t.descendants((a,s)=>{a.marks.forEach(c=>{if(c.type.name===o){const u=c.attrs.threadId;if(!u)return;const f=s,m=f+a.nodeSize,h=r.get(u)??{from:1/0,to:0};r.set(u,{from:Math.min(f,h.from),to:Math.max(m,h.to)})}})}),r}const gn=kC(({editor:t,options:{schema:o,threadStore:r,resolveUsers:a}})=>{if(!a)throw new Error("resolveUsers is required to be defined when using comments");if(!r)throw new Error("threadStore is required to be defined when using comments");const s=C0.name,c=new ww(a),u=VC({pendingComment:!1,selectedThreadId:void 0,threadPositions:new Map},{onUpdate(){u.state.selectedThreadId!==u.prevState.selectedThreadId&&t.transact(m=>m.setMeta(Vs,!0))}}),f=m=>{t.transact(h=>{h.doc.descendants((g,v)=>{g.marks.forEach(b=>{if(b.type.name===s){const C=b.type,E=b.attrs.threadId,w=m.get(E),T=!!(!w||w.resolved||w.deletedAt);if(T!==b.attrs.orphan){const M=Math.max(v,0),O=Math.min(v+g.nodeSize,h.doc.content.size-1,h.doc.content.size-1);h.removeMark(M,O,b),h.addMark(M,O,C.create({...b.attrs,orphan:T})),T&&u.state.selectedThreadId===E&&u.setState(j=>({...j,selectedThreadId:void 0}))}}})})})};return{key:"comments",store:u,prosemirrorPlugins:[new $C({key:Vs,state:{init(){return{decorations:Rd.empty}},apply(m,h){const g=m.getMeta(Vs);if(!m.docChanged&&!g)return h;const v=m.docChanged?Ew(m.doc,s):u.state.threadPositions;(v.size>0||u.state.threadPositions.size>0)&&u.setState(C=>({...C,threadPositions:v}));const b=[];if(u.state.selectedThreadId){const C=v.get(u.state.selectedThreadId);C&&b.push(ZC.inline(C.from,C.to,{class:"bn-thread-mark-selected"}))}return{decorations:Rd.create(m.doc,b)}}},props:{decorations(m){var h;return((h=Vs.getState(m))==null?void 0:h.decorations)??Rd.empty},handleClick:(m,h,g)=>{if(g.button!==0)return;const v=m.state.doc.nodeAt(h);if(!v){u.setState(E=>({...E,selectedThreadId:void 0}));return}const b=v.marks.find(E=>E.type.name===s&&E.attrs.orphan!==!0),C=b?.attrs.threadId;C!==u.state.selectedThreadId&&u.setState(E=>({...E,selectedThreadId:C}))}}})],threadStore:r,mount(){const m=r.subscribe(f);f(r.getThreads());const h=t.onSelectionChange(()=>{u.state.pendingComment&&u.setState(g=>({...g,pendingComment:!1}))});return()=>{m(),h()}},selectThread(m,h=!0){var g,v;if(u.state.selectedThreadId!==m&&(u.setState(b=>({...b,pendingComment:!1,selectedThreadId:m})),m&&h)){const b=u.state.threadPositions.get(m);if(!b)return;(v=(g=t.prosemirrorView)==null?void 0:g.domAtPos(b.from).node)==null||v.scrollIntoView({behavior:"smooth",block:"center"})}},startPendingComment(){var m;u.setState(h=>({...h,selectedThreadId:void 0,pendingComment:!0})),(m=t.getExtension(bm))==null||m.showSelection(!0,"comments")},stopPendingComment(){var m;u.setState(h=>({...h,selectedThreadId:void 0,pendingComment:!1})),(m=t.getExtension(bm))==null||m.showSelection(!1,"comments")},async createThread(m){const h=await r.createThread(m);if(r.addThreadToDocument){const g=t.prosemirrorView,v=g.state.selection,b=UC.getState(g.state),C={prosemirror:{head:v.head,anchor:v.anchor},yjs:b?GC(b.binding,g.state):void 0};await r.addThreadToDocument({threadId:h.id,selection:C})}else t._tiptapEditor.commands.setMark(s,{orphan:!1,threadId:h.id})},userStore:c,commentEditorSchema:o,tiptapExtensions:[C0]}});let Ud;async function Tw(){return Ud||(Ud=(async()=>{const[t,o]=await Promise.all([lc(()=>import("./module-RjUF93sV.js"),[]),lc(()=>import("./native-48B9X9Wg.js"),[])]),r="default"in t?t.default:t,a="default"in o?o.default:o;return await r.init({data:a}),{emojiMart:r,emojiData:a}})(),Ud)}async function Rw(t,o){if(!("text"in t.schema.inlineContentSchema)||t.schema.inlineContentSchema.text!==XC.text)return[];const{emojiData:r,emojiMart:a}=await Tw();return(o.trim()===""?Object.values(r.emojis):await a.SearchIndex.search(o)).map(s=>({id:s.skins[0].native,onItemClick:()=>t.insertInlineContent(s.skins[0].native+" ")}))}function zc(){return typeof window<"u"}function pb(t){return hb(t)?(t.nodeName||"").toLowerCase():"#document"}function ii(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function Mw(t){var o;return(o=(hb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function hb(t){return zc()?t instanceof Node||t instanceof ii(t).Node:!1}function Jt(t){return zc()?t instanceof Element||t instanceof ii(t).Element:!1}function Ow(t){return zc()?t instanceof HTMLElement||t instanceof ii(t).HTMLElement:!1}function rc(t){return!zc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ii(t).ShadowRoot}let Gd;function jw(){return Gd==null&&(Gd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gd}function Zd(t){return/^(html|body|#document)$/.test(pb(t))}function _w(t){return ii(t).getComputedStyle(t)}function Nw(t){if(pb(t)==="html")return t;const o=t.assignedSlot||t.parentNode||rc(t)&&t.host||Mw(t);return rc(o)?o.host:o}function Om(t,o){if(!t||!o)return!1;const r=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(r&&rc(r)){let a=o;for(;a;){if(t===a)return!0;a=a.parentNode||a.host}}return!1}function Xa(t){return"composedPath"in t?t.composedPath()[0]:t.target}function Pd(t,o){if(o==null)return!1;if("composedPath"in t)return t.composedPath().includes(o);const r=t;return r.target!=null&&o.contains(r.target)}function Aw(t){return t.matches("html,body")}function Ar(t){return t?.ownerDocument||document}function Fs(t,o,r){return r===void 0&&(r=!0),t.filter(s=>{var c;return s.parentId===o&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Fs(t,s.id,r)])}function Dw(t){return"nativeEvent"in t}function jm(t,o){const r=["mouse","pen"];return r.push("",void 0),r.includes(t)}var Hw=typeof document<"u",zw=function(){},rl=Hw?x.useLayoutEffect:zw;const Lw={...Rc};function ol(t){const o=x.useRef(t);return rl(()=>{o.current=t}),o}const kw=Lw.useInsertionEffect,Vw=kw||(t=>t());function $n(t){const o=x.useRef(()=>{});return Vw(()=>{o.current=t}),x.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o.current==null?void 0:o.current(...a)},[])}const Bw=["top","right","bottom","left"],w0=["start","end"],E0=Bw.reduce((t,o)=>t.concat(o,o+"-"+w0[0],o+"-"+w0[1]),[]),_m=Math.min,Al=Math.max,$w={left:"right",right:"left",bottom:"top",top:"bottom"};function T0(t,o,r){return Al(t,_m(o,r))}function Gr(t,o){return typeof t=="function"?t(o):t}function Kn(t){return t.split("-")[0]}function Pn(t){return t.split("-")[1]}function gb(t){return t==="x"?"y":"x"}function vb(t){return t==="y"?"height":"width"}function Co(t){const o=t[0];return o==="t"||o==="b"?"y":"x"}function yb(t){return gb(Co(t))}function bb(t,o,r){r===void 0&&(r=!1);const a=Pn(t),s=yb(t),c=vb(s);let u=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(u=ic(u)),[u,ic(u)]}function Uw(t){const o=ic(t);return[ac(t),o,ac(o)]}function ac(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const R0=["left","right"],M0=["right","left"],Gw=["top","bottom"],Zw=["bottom","top"];function Pw(t,o,r){switch(t){case"top":case"bottom":return r?o?M0:R0:o?R0:M0;case"left":case"right":return o?Gw:Zw;default:return[]}}function qw(t,o,r,a){const s=Pn(t);let c=Pw(Kn(t),r==="start",a);return s&&(c=c.map(u=>u+"-"+s),o&&(c=c.concat(c.map(ac)))),c}function ic(t){const o=Kn(t);return $w[o]+t.slice(o.length)}function Yw(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xw(t){return typeof t!="number"?Yw(t):{top:t,right:t,bottom:t,left:t}}function sc(t){const{x:o,y:r,width:a,height:s}=t;return{width:a,height:s,top:r,left:o,right:o+a,bottom:r+s,x:o,y:r}}function O0(t,o,r){let{reference:a,floating:s}=t;const c=Co(o),u=yb(o),f=vb(u),m=Kn(o),h=c==="y",g=a.x+a.width/2-s.width/2,v=a.y+a.height/2-s.height/2,b=a[f]/2-s[f]/2;let C;switch(m){case"top":C={x:g,y:a.y-s.height};break;case"bottom":C={x:g,y:a.y+a.height};break;case"right":C={x:a.x+a.width,y:v};break;case"left":C={x:a.x-s.width,y:v};break;default:C={x:a.x,y:a.y}}switch(Pn(o)){case"start":C[u]-=b*(r&&h?-1:1);break;case"end":C[u]+=b*(r&&h?-1:1);break}return C}async function Iw(t,o){var r;o===void 0&&(o={});const{x:a,y:s,platform:c,rects:u,elements:f,strategy:m}=t,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:C=0}=Gr(o,t),E=Xw(C),T=f[b?v==="floating"?"reference":"floating":v],M=sc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:m})),O=v==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),N=await(c.isElement==null?void 0:c.isElement(j))?await(c.getScale==null?void 0:c.getScale(j))||{x:1,y:1}:{x:1,y:1},D=sc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:j,strategy:m}):O);return{top:(M.top-D.top+E.top)/N.y,bottom:(D.bottom-M.bottom+E.bottom)/N.y,left:(M.left-D.left+E.left)/N.x,right:(D.right-M.right+E.right)/N.x}}const Qw=50,Fw=async(t,o,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:u}=r,f=u.detectOverflow?u:{...u,detectOverflow:Iw},m=await(u.isRTL==null?void 0:u.isRTL(o));let h=await u.getElementRects({reference:t,floating:o,strategy:s}),{x:g,y:v}=O0(h,a,m),b=a,C=0;const E={};for(let w=0;w<c.length;w++){const T=c[w];if(!T)continue;const{name:M,fn:O}=T,{x:j,y:N,data:D,reset:V}=await O({x:g,y:v,initialPlacement:a,placement:b,strategy:s,middlewareData:E,rects:h,platform:f,elements:{reference:t,floating:o}});g=j??g,v=N??v,E[M]={...E[M],...D},V&&C<Qw&&(C++,typeof V=="object"&&(V.placement&&(b=V.placement),V.rects&&(h=V.rects===!0?await u.getElementRects({reference:t,floating:o,strategy:s}):V.rects),{x:g,y:v}=O0(h,b,m)),w=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:E}};function Kw(t,o,r){return(t?[...r.filter(s=>Pn(s)===t),...r.filter(s=>Pn(s)!==t)]:r.filter(s=>Kn(s)===s)).filter(s=>t?Pn(s)===t||(o?ac(s)!==s:!1):!0)}const Jw=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(o){var r,a,s;const{rects:c,middlewareData:u,placement:f,platform:m,elements:h}=o,{crossAxis:g=!1,alignment:v,allowedPlacements:b=E0,autoAlignment:C=!0,...E}=Gr(t,o),w=v!==void 0||b===E0?Kw(v||null,C,b):b,T=await m.detectOverflow(o,E),M=((r=u.autoPlacement)==null?void 0:r.index)||0,O=w[M];if(O==null)return{};const j=bb(O,c,await(m.isRTL==null?void 0:m.isRTL(h.floating)));if(f!==O)return{reset:{placement:w[0]}};const N=[T[Kn(O)],T[j[0]],T[j[1]]],D=[...((a=u.autoPlacement)==null?void 0:a.overflows)||[],{placement:O,overflows:N}],V=w[M+1];if(V)return{data:{index:M+1,overflows:D},reset:{placement:V}};const $=D.map(q=>{const te=Pn(q.placement);return[q.placement,te&&g?q.overflows.slice(0,2).reduce((le,ee)=>le+ee,0):q.overflows[0],q.overflows]}).sort((q,te)=>q[1]-te[1]),F=((s=$.filter(q=>q[2].slice(0,Pn(q[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||$[0][0];return F!==f?{data:{index:M+1,overflows:D},reset:{placement:F}}:{}}}},Ww=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var r,a;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:m,elements:h}=o,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...T}=Gr(t,o);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Kn(s),O=Co(f),j=Kn(f)===f,N=await(m.isRTL==null?void 0:m.isRTL(h.floating)),D=b||(j||!w?[ic(f)]:Uw(f)),V=E!=="none";!b&&V&&D.push(...qw(f,w,E,N));const $=[f,...D],X=await m.detectOverflow(o,T),F=[];let q=((a=c.flip)==null?void 0:a.overflows)||[];if(g&&F.push(X[M]),v){const H=bb(s,u,N);F.push(X[H[0]],X[H[1]])}if(q=[...q,{placement:s,overflows:F}],!F.every(H=>H<=0)){var te,le;const H=(((te=c.flip)==null?void 0:te.index)||0)+1,W=$[H];if(W&&(!(v==="alignment"?O!==Co(W):!1)||q.every(_=>Co(_.placement)===O?_.overflows[0]>0:!0)))return{data:{index:H,overflows:q},reset:{placement:W}};let z=(le=q.filter(L=>L.overflows[0]<=0).sort((L,_)=>L.overflows[1]-_.overflows[1])[0])==null?void 0:le.placement;if(!z)switch(C){case"bestFit":{var ee;const L=(ee=q.filter(_=>{if(V){const Z=Co(_.placement);return Z===O||Z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(Z=>Z>0).reduce((Z,I)=>Z+I,0)]).sort((_,Z)=>_[1]-Z[1])[0])==null?void 0:ee[0];L&&(z=L);break}case"initialPlacement":z=f;break}if(s!==z)return{reset:{placement:z}}}return{}}}},e3=new Set(["left","top"]);async function t3(t,o){const{placement:r,platform:a,elements:s}=t,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=Kn(r),f=Pn(r),m=Co(r)==="y",h=e3.has(u)?-1:1,g=c&&m?-1:1,v=Gr(o,t);let{mainAxis:b,crossAxis:C,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof E=="number"&&(C=f==="end"?E*-1:E),m?{x:C*g,y:b*h}:{x:b*h,y:C*g}}const n3=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var r,a;const{x:s,y:c,placement:u,middlewareData:f}=o,m=await t3(o,t);return u===((r=f.offset)==null?void 0:r.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+m.x,y:c+m.y,data:{...m,placement:u}}}}},o3=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:r,y:a,placement:s,platform:c}=o,{mainAxis:u=!0,crossAxis:f=!1,limiter:m={fn:M=>{let{x:O,y:j}=M;return{x:O,y:j}}},...h}=Gr(t,o),g={x:r,y:a},v=await c.detectOverflow(o,h),b=Co(Kn(s)),C=gb(b);let E=g[C],w=g[b];if(u){const M=C==="y"?"top":"left",O=C==="y"?"bottom":"right",j=E+v[M],N=E-v[O];E=T0(j,E,N)}if(f){const M=b==="y"?"top":"left",O=b==="y"?"bottom":"right",j=w+v[M],N=w-v[O];w=T0(j,w,N)}const T=m.fn({...o,[C]:E,[b]:w});return{...T,data:{x:T.x-r,y:T.y-a,enabled:{[C]:u,[b]:f}}}}}},l3=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(o){var r,a;const{placement:s,rects:c,platform:u,elements:f}=o,{apply:m=()=>{},...h}=Gr(t,o),g=await u.detectOverflow(o,h),v=Kn(s),b=Pn(s),C=Co(s)==="y",{width:E,height:w}=c.floating;let T,M;v==="top"||v==="bottom"?(T=v,M=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(M=v,T=b==="end"?"top":"bottom");const O=w-g.top-g.bottom,j=E-g.left-g.right,N=_m(w-g[T],O),D=_m(E-g[M],j),V=!o.middlewareData.shift;let $=N,X=D;if((r=o.middlewareData.shift)!=null&&r.enabled.x&&(X=j),(a=o.middlewareData.shift)!=null&&a.enabled.y&&($=O),V&&!b){const q=Al(g.left,0),te=Al(g.right,0),le=Al(g.top,0),ee=Al(g.bottom,0);C?X=E-2*(q!==0||te!==0?q+te:Al(g.left,g.right)):$=w-2*(le!==0||ee!==0?le+ee:Al(g.top,g.bottom))}await m({...o,availableWidth:X,availableHeight:$});const F=await u.getDimensions(f.floating);return E!==F.width||w!==F.height?{reset:{rects:!0}}:{}}}},Nm=Math.min,zr=Math.max,cc=Math.round,Bs=Math.floor,qn=t=>({x:t,y:t});function Lc(){return typeof window<"u"}function Zr(t){return xb(t)?(t.nodeName||"").toLowerCase():"#document"}function Wt(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function eo(t){var o;return(o=(xb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function xb(t){return Lc()?t instanceof Node||t instanceof Wt(t).Node:!1}function Rn(t){return Lc()?t instanceof Element||t instanceof Wt(t).Element:!1}function _o(t){return Lc()?t instanceof HTMLElement||t instanceof Wt(t).HTMLElement:!1}function j0(t){return!Lc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Wt(t).ShadowRoot}function si(t){const{overflow:o,overflowX:r,overflowY:a,display:s}=Mn(t);return/auto|scroll|overlay|hidden|clip/.test(o+a+r)&&s!=="inline"&&s!=="contents"}function r3(t){return/^(table|td|th)$/.test(Zr(t))}function kc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const a3=/transform|translate|scale|rotate|perspective|filter/,i3=/paint|layout|strict|content/,Nl=t=>!!t&&t!=="none";let qd;function Im(t){const o=Rn(t)?Mn(t):t;return Nl(o.transform)||Nl(o.translate)||Nl(o.scale)||Nl(o.rotate)||Nl(o.perspective)||!Qm()&&(Nl(o.backdropFilter)||Nl(o.filter))||a3.test(o.willChange||"")||i3.test(o.contain||"")}function s3(t){let o=al(t);for(;_o(o)&&!Vr(o);){if(Im(o))return o;if(kc(o))return null;o=al(o)}return null}function Qm(){return qd==null&&(qd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qd}function Vr(t){return/^(html|body|#document)$/.test(Zr(t))}function Mn(t){return Wt(t).getComputedStyle(t)}function Vc(t){return Rn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function al(t){if(Zr(t)==="html")return t;const o=t.assignedSlot||t.parentNode||j0(t)&&t.host||eo(t);return j0(o)?o.host:o}function Sb(t){const o=al(t);return Vr(o)?t.ownerDocument?t.ownerDocument.body:t.body:_o(o)&&si(o)?o:Sb(o)}function ll(t,o,r){var a;o===void 0&&(o=[]),r===void 0&&(r=!0);const s=Sb(t),c=s===((a=t.ownerDocument)==null?void 0:a.body),u=Wt(s);if(c){const f=Am(u);return o.concat(u,u.visualViewport||[],si(s)?s:[],f&&r?ll(f):[])}else return o.concat(s,ll(s,[],r))}function Am(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cb(t){const o=Mn(t);let r=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const s=_o(t),c=s?t.offsetWidth:r,u=s?t.offsetHeight:a,f=cc(r)!==c||cc(a)!==u;return f&&(r=c,a=u),{width:r,height:a,$:f}}function Fm(t){return Rn(t)?t:t.contextElement}function Lr(t){const o=Fm(t);if(!_o(o))return qn(1);const r=o.getBoundingClientRect(),{width:a,height:s,$:c}=Cb(o);let u=(c?cc(r.width):r.width)/a,f=(c?cc(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const c3=qn(0);function wb(t){const o=Wt(t);return!Qm()||!o.visualViewport?c3:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function u3(t,o,r){return o===void 0&&(o=!1),!r||o&&r!==Wt(t)?!1:o}function Ll(t,o,r,a){o===void 0&&(o=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),c=Fm(t);let u=qn(1);o&&(a?Rn(a)&&(u=Lr(a)):u=Lr(t));const f=u3(c,r,a)?wb(c):qn(0);let m=(s.left+f.x)/u.x,h=(s.top+f.y)/u.y,g=s.width/u.x,v=s.height/u.y;if(c){const b=Wt(c),C=a&&Rn(a)?Wt(a):a;let E=b,w=Am(E);for(;w&&a&&C!==E;){const T=Lr(w),M=w.getBoundingClientRect(),O=Mn(w),j=M.left+(w.clientLeft+parseFloat(O.paddingLeft))*T.x,N=M.top+(w.clientTop+parseFloat(O.paddingTop))*T.y;m*=T.x,h*=T.y,g*=T.x,v*=T.y,m+=j,h+=N,E=Wt(w),w=Am(E)}}return sc({width:g,height:v,x:m,y:h})}function Bc(t,o){const r=Vc(t).scrollLeft;return o?o.left+r:Ll(eo(t)).left+r}function Eb(t,o){const r=t.getBoundingClientRect(),a=r.left+o.scrollLeft-Bc(t,r),s=r.top+o.scrollTop;return{x:a,y:s}}function f3(t){let{elements:o,rect:r,offsetParent:a,strategy:s}=t;const c=s==="fixed",u=eo(a),f=o?kc(o.floating):!1;if(a===u||f&&c)return r;let m={scrollLeft:0,scrollTop:0},h=qn(1);const g=qn(0),v=_o(a);if((v||!v&&!c)&&((Zr(a)!=="body"||si(u))&&(m=Vc(a)),v)){const C=Ll(a);h=Lr(a),g.x=C.x+a.clientLeft,g.y=C.y+a.clientTop}const b=u&&!v&&!c?Eb(u,m):qn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-m.scrollLeft*h.x+g.x+b.x,y:r.y*h.y-m.scrollTop*h.y+g.y+b.y}}function d3(t){return Array.from(t.getClientRects())}function m3(t){const o=eo(t),r=Vc(t),a=t.ownerDocument.body,s=zr(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),c=zr(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+Bc(t);const f=-r.scrollTop;return Mn(a).direction==="rtl"&&(u+=zr(o.clientWidth,a.clientWidth)-s),{width:s,height:c,x:u,y:f}}const _0=25;function p3(t,o){const r=Wt(t),a=eo(t),s=r.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,m=0;if(s){c=s.width,u=s.height;const g=Qm();(!g||g&&o==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const h=Bc(a);if(h<=0){const g=a.ownerDocument,v=g.body,b=getComputedStyle(v),C=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-C);E<=_0&&(c-=E)}else h<=_0&&(c+=h);return{width:c,height:u,x:f,y:m}}function h3(t,o){const r=Ll(t,!0,o==="fixed"),a=r.top+t.clientTop,s=r.left+t.clientLeft,c=_o(t)?Lr(t):qn(1),u=t.clientWidth*c.x,f=t.clientHeight*c.y,m=s*c.x,h=a*c.y;return{width:u,height:f,x:m,y:h}}function N0(t,o,r){let a;if(o==="viewport")a=p3(t,r);else if(o==="document")a=m3(eo(t));else if(Rn(o))a=h3(o,r);else{const s=wb(t);a={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return sc(a)}function Tb(t,o){const r=al(t);return r===o||!Rn(r)||Vr(r)?!1:Mn(r).position==="fixed"||Tb(r,o)}function g3(t,o){const r=o.get(t);if(r)return r;let a=ll(t,[],!1).filter(f=>Rn(f)&&Zr(f)!=="body"),s=null;const c=Mn(t).position==="fixed";let u=c?al(t):t;for(;Rn(u)&&!Vr(u);){const f=Mn(u),m=Im(u);!m&&f.position==="fixed"&&(s=null),(c?!m&&!s:!m&&f.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||si(u)&&!m&&Tb(t,u))?a=a.filter(g=>g!==u):s=f,u=al(u)}return o.set(t,a),a}function v3(t){let{element:o,boundary:r,rootBoundary:a,strategy:s}=t;const u=[...r==="clippingAncestors"?kc(o)?[]:g3(o,this._c):[].concat(r),a],f=N0(o,u[0],s);let m=f.top,h=f.right,g=f.bottom,v=f.left;for(let b=1;b<u.length;b++){const C=N0(o,u[b],s);m=zr(C.top,m),h=Nm(C.right,h),g=Nm(C.bottom,g),v=zr(C.left,v)}return{width:h-v,height:g-m,x:v,y:m}}function y3(t){const{width:o,height:r}=Cb(t);return{width:o,height:r}}function b3(t,o,r){const a=_o(o),s=eo(o),c=r==="fixed",u=Ll(t,!0,c,o);let f={scrollLeft:0,scrollTop:0};const m=qn(0);function h(){m.x=Bc(s)}if(a||!a&&!c)if((Zr(o)!=="body"||si(s))&&(f=Vc(o)),a){const C=Ll(o,!0,c,o);m.x=C.x+o.clientLeft,m.y=C.y+o.clientTop}else s&&h();c&&!a&&s&&h();const g=s&&!a&&!c?Eb(s,f):qn(0),v=u.left+f.scrollLeft-m.x-g.x,b=u.top+f.scrollTop-m.y-g.y;return{x:v,y:b,width:u.width,height:u.height}}function Yd(t){return Mn(t).position==="static"}function A0(t,o){if(!_o(t)||Mn(t).position==="fixed")return null;if(o)return o(t);let r=t.offsetParent;return eo(t)===r&&(r=r.ownerDocument.body),r}function Rb(t,o){const r=Wt(t);if(kc(t))return r;if(!_o(t)){let s=al(t);for(;s&&!Vr(s);){if(Rn(s)&&!Yd(s))return s;s=al(s)}return r}let a=A0(t,o);for(;a&&r3(a)&&Yd(a);)a=A0(a,o);return a&&Vr(a)&&Yd(a)&&!Im(a)?r:a||s3(t)||r}const x3=async function(t){const o=this.getOffsetParent||Rb,r=this.getDimensions,a=await r(t.floating);return{reference:b3(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function S3(t){return Mn(t).direction==="rtl"}const C3={convertOffsetParentRelativeRectToViewportRelativeRect:f3,getDocumentElement:eo,getClippingRect:v3,getOffsetParent:Rb,getElementRects:x3,getClientRects:d3,getDimensions:y3,getScale:Lr,isElement:Rn,isRTL:S3};function Mb(t,o){return t.x===o.x&&t.y===o.y&&t.width===o.width&&t.height===o.height}function w3(t,o){let r=null,a;const s=eo(t);function c(){var f;clearTimeout(a),(f=r)==null||f.disconnect(),r=null}function u(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),c();const h=t.getBoundingClientRect(),{left:g,top:v,width:b,height:C}=h;if(f||o(),!b||!C)return;const E=Bs(v),w=Bs(s.clientWidth-(g+b)),T=Bs(s.clientHeight-(v+C)),M=Bs(g),j={rootMargin:-E+"px "+-w+"px "+-T+"px "+-M+"px",threshold:zr(0,Nm(1,m))||1};let N=!0;function D(V){const $=V[0].intersectionRatio;if($!==m){if(!N)return u();$?u(!1,$):a=setTimeout(()=>{u(!1,1e-7)},1e3)}$===1&&!Mb(h,t.getBoundingClientRect())&&u(),N=!1}try{r=new IntersectionObserver(D,{...j,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,j)}r.observe(t)}return u(!0),c}function E3(t,o,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,h=Fm(t),g=s||c?[...h?ll(h):[],...o?ll(o):[]]:[];g.forEach(M=>{s&&M.addEventListener("scroll",r,{passive:!0}),c&&M.addEventListener("resize",r)});const v=h&&f?w3(h,r):null;let b=-1,C=null;u&&(C=new ResizeObserver(M=>{let[O]=M;O&&O.target===h&&C&&o&&(C.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=C)==null||j.observe(o)})),r()}),h&&!m&&C.observe(h),o&&C.observe(o));let E,w=m?Ll(t):null;m&&T();function T(){const M=Ll(t);w&&!Mb(w,M)&&r(),w=M,E=requestAnimationFrame(T)}return r(),()=>{var M;g.forEach(O=>{s&&O.removeEventListener("scroll",r),c&&O.removeEventListener("resize",r)}),v?.(),(M=C)==null||M.disconnect(),C=null,m&&cancelAnimationFrame(E)}}const T3=n3,R3=Jw,M3=o3,O3=Ww,j3=l3,_3=(t,o,r)=>{const a=new Map,s={platform:C3,...r},c={...s.platform,_c:a};return Fw(t,o,{...s,platform:c})};var N3=typeof document<"u",A3=function(){},Ks=N3?x.useLayoutEffect:A3;function uc(t,o){if(t===o)return!0;if(typeof t!=typeof o)return!1;if(typeof t=="function"&&t.toString()===o.toString())return!0;let r,a,s;if(t&&o&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==o.length)return!1;for(a=r;a--!==0;)if(!uc(t[a],o[a]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(o).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(o,s[a]))return!1;for(a=r;a--!==0;){const c=s[a];if(!(c==="_owner"&&t.$$typeof)&&!uc(t[c],o[c]))return!1}return!0}return t!==t&&o!==o}function Ob(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function D0(t,o){const r=Ob(t);return Math.round(o*r)/r}function Xd(t){const o=x.useRef(t);return Ks(()=>{o.current=t}),o}function D3(t){t===void 0&&(t={});const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:m,open:h}=t,[g,v]=x.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[b,C]=x.useState(a);uc(b,a)||C(a);const[E,w]=x.useState(null),[T,M]=x.useState(null),O=x.useCallback(_=>{_!==V.current&&(V.current=_,w(_))},[]),j=x.useCallback(_=>{_!==$.current&&($.current=_,M(_))},[]),N=c||E,D=u||T,V=x.useRef(null),$=x.useRef(null),X=x.useRef(g),F=m!=null,q=Xd(m),te=Xd(s),le=Xd(h),ee=x.useCallback(()=>{if(!V.current||!$.current)return;const _={placement:o,strategy:r,middleware:b};te.current&&(_.platform=te.current),_3(V.current,$.current,_).then(Z=>{const I={...Z,isPositioned:le.current!==!1};H.current&&!uc(X.current,I)&&(X.current=I,wn.flushSync(()=>{v(I)}))})},[b,o,r,te,le]);Ks(()=>{h===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,v(_=>({..._,isPositioned:!1})))},[h]);const H=x.useRef(!1);Ks(()=>(H.current=!0,()=>{H.current=!1}),[]),Ks(()=>{if(N&&(V.current=N),D&&($.current=D),N&&D){if(q.current)return q.current(N,D,ee);ee()}},[N,D,ee,q,F]);const W=x.useMemo(()=>({reference:V,floating:$,setReference:O,setFloating:j}),[O,j]),z=x.useMemo(()=>({reference:N,floating:D}),[N,D]),L=x.useMemo(()=>{const _={position:r,left:0,top:0};if(!z.floating)return _;const Z=D0(z.floating,g.x),I=D0(z.floating,g.y);return f?{..._,transform:"translate("+Z+"px, "+I+"px)",...Ob(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:I}},[r,f,z.floating,g.x,g.y]);return x.useMemo(()=>({...g,update:ee,refs:W,elements:z,floatingStyles:L}),[g,ee,W,z,L])}const Yn=(t,o)=>{const r=T3(t);return{name:r.name,fn:r.fn,options:[t,o]}},ci=(t,o)=>{const r=M3(t);return{name:r.name,fn:r.fn,options:[t,o]}},ui=(t,o)=>{const r=O3(t);return{name:r.name,fn:r.fn,options:[t,o]}},fc=(t,o)=>{const r=j3(t);return{name:r.name,fn:r.fn,options:[t,o]}},jb=(t,o)=>{const r=R3(t);return{name:r.name,fn:r.fn,options:[t,o]}};function H3(t){const o=x.useRef(void 0),r=x.useCallback(a=>{const s=t.map(c=>{if(c!=null){if(typeof c=="function"){const u=c,f=u(a);return typeof f=="function"?f:()=>{u(null)}}return c.current=a,()=>{c.current=null}}});return()=>{s.forEach(c=>c?.())}},t);return x.useMemo(()=>t.every(a=>a==null)?null:a=>{o.current&&(o.current(),o.current=void 0),a!=null&&(o.current=r(a))},t)}const z3="data-floating-ui-focusable",H0="active",z0="selected",L3={...Rc};let L0=!1,k3=0;const k0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+k3++;function V3(){const[t,o]=x.useState(()=>L0?k0():void 0);return rl(()=>{t==null&&o(k0())},[]),x.useEffect(()=>{L0=!0},[]),t}const B3=L3.useId,$3=B3||V3;function U3(){const t=new Map;return{emit(o,r){var a;(a=t.get(o))==null||a.forEach(s=>s(r))},on(o,r){t.has(o)||t.set(o,new Set),t.get(o).add(r)},off(o,r){var a;(a=t.get(o))==null||a.delete(r)}}}const G3=x.createContext(null),Z3=x.createContext(null),_b=()=>{var t;return((t=x.useContext(G3))==null?void 0:t.id)||null},Km=()=>x.useContext(Z3);function Nb(t){return"data-floating-ui-"+t}function Kt(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const V0=Nb("safe-polygon");function Id(t,o,r){if(r&&!jm(r))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const a=t();return typeof a=="number"?a:a?.[o]}return t?.[o]}function Qd(t){return typeof t=="function"?t():t}function P3(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,dataRef:s,events:c,elements:u}=t,{enabled:f=!0,delay:m=0,handleClose:h=null,mouseOnly:g=!1,restMs:v=0,move:b=!0}=o,C=Km(),E=_b(),w=ol(h),T=ol(m),M=ol(r),O=ol(v),j=x.useRef(),N=x.useRef(-1),D=x.useRef(),V=x.useRef(-1),$=x.useRef(!0),X=x.useRef(!1),F=x.useRef(()=>{}),q=x.useRef(!1),te=$n(()=>{var L;const _=(L=s.current.openEvent)==null?void 0:L.type;return _?.includes("mouse")&&_!=="mousedown"});x.useEffect(()=>{if(!f)return;function L(_){let{open:Z}=_;Z||(Kt(N),Kt(V),$.current=!0,q.current=!1)}return c.on("openchange",L),()=>{c.off("openchange",L)}},[f,c]),x.useEffect(()=>{if(!f||!w.current||!r)return;function L(Z){te()&&a(!1,Z,"hover")}const _=Ar(u.floating).documentElement;return _.addEventListener("mouseleave",L),()=>{_.removeEventListener("mouseleave",L)}},[u.floating,r,a,f,w,te]);const le=x.useCallback(function(L,_,Z){_===void 0&&(_=!0),Z===void 0&&(Z="hover");const I=Id(T.current,"close",j.current);I&&!D.current?(Kt(N),N.current=window.setTimeout(()=>a(!1,L,Z),I)):_&&(Kt(N),a(!1,L,Z))},[T,a]),ee=$n(()=>{F.current(),D.current=void 0}),H=$n(()=>{if(X.current){const L=Ar(u.floating).body;L.style.pointerEvents="",L.removeAttribute(V0),X.current=!1}}),W=$n(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!f)return;function L(ne){if(Kt(N),$.current=!1,g&&!jm(j.current)||Qd(O.current)>0&&!Id(T.current,"open"))return;const re=Id(T.current,"open",j.current);re?N.current=window.setTimeout(()=>{M.current||a(!0,ne,"hover")},re):r||a(!0,ne,"hover")}function _(ne){if(W()){H();return}F.current();const re=Ar(u.floating);if(Kt(V),q.current=!1,w.current&&s.current.floatingContext){r||Kt(N),D.current=w.current({...s.current.floatingContext,tree:C,x:ne.clientX,y:ne.clientY,onClose(){H(),ee(),W()||le(ne,!0,"safe-polygon")}});const se=D.current;re.addEventListener("mousemove",se),F.current=()=>{re.removeEventListener("mousemove",se)};return}(j.current!=="touch"||!Om(u.floating,ne.relatedTarget))&&le(ne)}function Z(ne){W()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:C,x:ne.clientX,y:ne.clientY,onClose(){H(),ee(),W()||le(ne)}})(ne))}function I(){Kt(N)}function ae(ne){W()||le(ne,!1)}if(Jt(u.domReference)){const ne=u.domReference,re=u.floating;return r&&ne.addEventListener("mouseleave",Z),b&&ne.addEventListener("mousemove",L,{once:!0}),ne.addEventListener("mouseenter",L),ne.addEventListener("mouseleave",_),re&&(re.addEventListener("mouseleave",Z),re.addEventListener("mouseenter",I),re.addEventListener("mouseleave",ae)),()=>{r&&ne.removeEventListener("mouseleave",Z),b&&ne.removeEventListener("mousemove",L),ne.removeEventListener("mouseenter",L),ne.removeEventListener("mouseleave",_),re&&(re.removeEventListener("mouseleave",Z),re.removeEventListener("mouseenter",I),re.removeEventListener("mouseleave",ae))}}},[u,f,t,g,b,le,ee,H,a,r,M,C,T,w,s,W,O]),rl(()=>{var L;if(f&&r&&(L=w.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&te()){X.current=!0;const Z=u.floating;if(Jt(u.domReference)&&Z){var _;const I=Ar(u.floating).body;I.setAttribute(V0,"");const ae=u.domReference,ne=C==null||(_=C.nodesRef.current.find(re=>re.id===E))==null||(_=_.context)==null?void 0:_.elements.floating;return ne&&(ne.style.pointerEvents=""),I.style.pointerEvents="none",ae.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{I.style.pointerEvents="",ae.style.pointerEvents="",Z.style.pointerEvents=""}}}},[f,r,E,u,C,w,te]),rl(()=>{r||(j.current=void 0,q.current=!1,ee(),H())},[r,ee,H]),x.useEffect(()=>()=>{ee(),Kt(N),Kt(V),H()},[f,u.domReference,ee,H]);const z=x.useMemo(()=>{function L(_){j.current=_.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(_){const{nativeEvent:Z}=_;function I(){!$.current&&!M.current&&a(!0,Z,"hover")}g&&!jm(j.current)||r||Qd(O.current)===0||q.current&&_.movementX**2+_.movementY**2<2||(Kt(V),j.current==="touch"?I():(q.current=!0,V.current=window.setTimeout(I,Qd(O.current))))}}},[g,a,r,M,O]);return x.useMemo(()=>f?{reference:z}:{},[f,z])}function Fd(t,o){if(!t||!o)return!1;const r=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(r&&rc(r)){let a=o;for(;a;){if(t===a)return!0;a=a.parentNode||a.host}}return!1}function q3(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Y3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},X3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},B0=t=>{var o,r;return{escapeKey:typeof t=="boolean"?t:(o=t?.escapeKey)!=null?o:!1,outsidePress:typeof t=="boolean"?t:(r=t?.outsidePress)!=null?r:!0}};function I3(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,elements:s,dataRef:c}=t,{enabled:u=!0,escapeKey:f=!0,outsidePress:m=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:v="pointerdown",ancestorScroll:b=!1,bubbles:C,capture:E}=o,w=Km(),T=$n(typeof m=="function"?m:()=>!1),M=typeof m=="function"?T:m,O=x.useRef(!1),{escapeKey:j,outsidePress:N}=B0(C),{escapeKey:D,outsidePress:V}=B0(E),$=x.useRef(!1),X=$n(H=>{var W;if(!r||!u||!f||H.key!=="Escape"||$.current)return;const z=(W=c.current.floatingContext)==null?void 0:W.nodeId,L=w?Fs(w.nodesRef.current,z):[];if(!j&&(H.stopPropagation(),L.length>0)){let _=!0;if(L.forEach(Z=>{var I;if((I=Z.context)!=null&&I.open&&!Z.context.dataRef.current.__escapeKeyBubbles){_=!1;return}}),!_)return}a(!1,Dw(H)?H.nativeEvent:H,"escape-key")}),F=$n(H=>{var W;const z=()=>{var L;X(H),(L=Xa(H))==null||L.removeEventListener("keydown",z)};(W=Xa(H))==null||W.addEventListener("keydown",z)}),q=$n(H=>{var W;const z=c.current.insideReactTree;c.current.insideReactTree=!1;const L=O.current;if(O.current=!1,h==="click"&&L||z||typeof M=="function"&&!M(H))return;const _=Xa(H),Z="["+Nb("inert")+"]",I=Ar(s.floating).querySelectorAll(Z);let ae=Jt(_)?_:null;for(;ae&&!Zd(ae);){const se=Nw(ae);if(Zd(se)||!Jt(se))break;ae=se}if(I.length&&Jt(_)&&!Aw(_)&&!Om(_,s.floating)&&Array.from(I).every(se=>!Om(ae,se)))return;if(Ow(_)&&ee){const se=Zd(_),be=_w(_),Le=/auto|scroll/,Ee=se||Le.test(be.overflowX),ye=se||Le.test(be.overflowY),Je=Ee&&_.clientWidth>0&&_.scrollWidth>_.clientWidth,nt=ye&&_.clientHeight>0&&_.scrollHeight>_.clientHeight,We=be.direction==="rtl",Ae=nt&&(We?H.offsetX<=_.offsetWidth-_.clientWidth:H.offsetX>_.clientWidth),tt=Je&&H.offsetY>_.clientHeight;if(Ae||tt)return}const ne=(W=c.current.floatingContext)==null?void 0:W.nodeId,re=w&&Fs(w.nodesRef.current,ne).some(se=>{var be;return Pd(H,(be=se.context)==null?void 0:be.elements.floating)});if(Pd(H,s.floating)||Pd(H,s.domReference)||re)return;const ve=w?Fs(w.nodesRef.current,ne):[];if(ve.length>0){let se=!0;if(ve.forEach(be=>{var Le;if((Le=be.context)!=null&&Le.open&&!be.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}a(!1,H,"outside-press")}),te=$n(H=>{var W;const z=()=>{var L;q(H),(L=Xa(H))==null||L.removeEventListener(h,z)};(W=Xa(H))==null||W.addEventListener(h,z)});x.useEffect(()=>{if(!r||!u)return;c.current.__escapeKeyBubbles=j,c.current.__outsidePressBubbles=N;let H=-1;function W(I){a(!1,I,"ancestor-scroll")}function z(){window.clearTimeout(H),$.current=!0}function L(){H=window.setTimeout(()=>{$.current=!1},jw()?5:0)}const _=Ar(s.floating);f&&(_.addEventListener("keydown",D?F:X,D),_.addEventListener("compositionstart",z),_.addEventListener("compositionend",L)),M&&_.addEventListener(h,V?te:q,V);let Z=[];return b&&(Jt(s.domReference)&&(Z=ll(s.domReference)),Jt(s.floating)&&(Z=Z.concat(ll(s.floating))),!Jt(s.reference)&&s.reference&&s.reference.contextElement&&(Z=Z.concat(ll(s.reference.contextElement)))),Z=Z.filter(I=>{var ae;return I!==((ae=_.defaultView)==null?void 0:ae.visualViewport)}),Z.forEach(I=>{I.addEventListener("scroll",W,{passive:!0})}),()=>{f&&(_.removeEventListener("keydown",D?F:X,D),_.removeEventListener("compositionstart",z),_.removeEventListener("compositionend",L)),M&&_.removeEventListener(h,V?te:q,V),Z.forEach(I=>{I.removeEventListener("scroll",W)}),window.clearTimeout(H)}},[c,s,f,M,h,r,a,b,u,j,N,X,D,F,q,V,te]),x.useEffect(()=>{c.current.insideReactTree=!1},[c,M,h]);const le=x.useMemo(()=>({onKeyDown:X,...g&&{[Y3[v]]:H=>{a(!1,H.nativeEvent,"reference-press")},...v!=="click"&&{onClick(H){a(!1,H.nativeEvent,"reference-press")}}}}),[X,a,g,v]),ee=x.useMemo(()=>{function H(W){W.button===0&&(O.current=!0)}return{onKeyDown:X,onMouseDown:H,onMouseUp:H,[X3[h]]:()=>{c.current.insideReactTree=!0}}},[X,h,c]);return x.useMemo(()=>u?{reference:le,floating:ee}:{},[u,le,ee])}function Q3(t){const{open:o=!1,onOpenChange:r,elements:a}=t,s=$3(),c=x.useRef({}),[u]=x.useState(()=>U3()),f=_b()!=null,[m,h]=x.useState(a.reference),g=$n((C,E,w)=>{c.current.openEvent=C?E:void 0,u.emit("openchange",{open:C,event:E,reason:w,nested:f}),r?.(C,E,w)}),v=x.useMemo(()=>({setPositionReference:h}),[]),b=x.useMemo(()=>({reference:m||a.reference||null,floating:a.floating||null,domReference:a.reference}),[m,a.reference,a.floating]);return x.useMemo(()=>({dataRef:c,open:o,onOpenChange:g,elements:b,events:u,floatingId:s,refs:v}),[o,g,b,u,s,v])}function F3(t){t===void 0&&(t={});const{nodeId:o}=t,r=Q3({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||r,s=a.elements,[c,u]=x.useState(null),[f,m]=x.useState(null),g=s?.domReference||c,v=x.useRef(null),b=Km();rl(()=>{g&&(v.current=g)},[g]);const C=D3({...t,elements:{...s,...f&&{reference:f}}}),E=x.useCallback(j=>{const N=Jt(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;m(N),C.refs.setReference(N)},[C.refs]),w=x.useCallback(j=>{(Jt(j)||j===null)&&(v.current=j,u(j)),(Jt(C.refs.reference.current)||C.refs.reference.current===null||j!==null&&!Jt(j))&&C.refs.setReference(j)},[C.refs]),T=x.useMemo(()=>({...C.refs,setReference:w,setPositionReference:E,domReference:v}),[C.refs,w,E]),M=x.useMemo(()=>({...C.elements,domReference:g}),[C.elements,g]),O=x.useMemo(()=>({...C,...a,refs:T,elements:M,nodeId:o}),[C,T,M,o,a]);return rl(()=>{a.dataRef.current.floatingContext=O;const j=b?.nodesRef.current.find(N=>N.id===o);j&&(j.context=O)}),x.useMemo(()=>({...C,context:O,refs:T,elements:M}),[C,T,M,O])}function Kd(t,o,r){const a=new Map,s=r==="item";let c=t;if(s&&t){const{[H0]:u,[z0]:f,...m}=t;c=m}return{...r==="floating"&&{tabIndex:-1,[z3]:""},...c,...o.map(u=>{const f=u?u[r]:null;return typeof f=="function"?t?f(t):null:f}).concat(t).reduce((u,f)=>(f&&Object.entries(f).forEach(m=>{let[h,g]=m;if(!(s&&[H0,z0].includes(h)))if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof g=="function"){var v;(v=a.get(h))==null||v.push(g),u[h]=function(){for(var b,C=arguments.length,E=new Array(C),w=0;w<C;w++)E[w]=arguments[w];return(b=a.get(h))==null?void 0:b.map(T=>T(...E)).find(T=>T!==void 0)}}}else u[h]=g}),u),{})}}function K3(t){t===void 0&&(t=[]);const o=t.map(f=>f?.reference),r=t.map(f=>f?.floating),a=t.map(f=>f?.item),s=x.useCallback(f=>Kd(f,t,"reference"),o),c=x.useCallback(f=>Kd(f,t,"floating"),r),u=x.useCallback(f=>Kd(f,t,"item"),a);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:u}),[s,c,u])}const $0=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,r)=>(r?"-":"")+o.toLowerCase());function Mr(t,o){return typeof t=="function"?t(o):t}function J3(t,o){const[r,a]=x.useState(t);return t&&!r&&a(!0),x.useEffect(()=>{if(!t&&r){const s=setTimeout(()=>a(!1),o);return()=>clearTimeout(s)}},[t,r,o]),r}function Ab(t,o){o===void 0&&(o={});const{open:r,elements:{floating:a}}=t,{duration:s=250}=o,u=(typeof s=="number"?s:s.close)||0,[f,m]=x.useState("unmounted"),h=J3(r,u);return!h&&f==="close"&&m("unmounted"),rl(()=>{if(a){if(r){m("initial");const g=requestAnimationFrame(()=>{wn.flushSync(()=>{m("open")})});return()=>{cancelAnimationFrame(g)}}m("close")}},[r,a]),{isMounted:h,status:f}}function W3(t,o){o===void 0&&(o={});const{initial:r={opacity:0},open:a,close:s,common:c,duration:u=250}=o,f=t.placement,m=f.split("-")[0],h=x.useMemo(()=>({side:m,placement:f}),[m,f]),g=typeof u=="number",v=(g?u:u.open)||0,b=(g?u:u.close)||0,[C,E]=x.useState(()=>({...Mr(c,h),...Mr(r,h)})),{isMounted:w,status:T}=Ab(t,{duration:u}),M=ol(r),O=ol(a),j=ol(s),N=ol(c);return rl(()=>{const D=Mr(M.current,h),V=Mr(j.current,h),$=Mr(N.current,h),X=Mr(O.current,h)||Object.keys(D).reduce((F,q)=>(F[q]="",F),{});if(T==="initial"&&E(F=>({transitionProperty:F.transitionProperty,...$,...D})),T==="open"&&E({transitionProperty:Object.keys(X).map($0).join(","),transitionDuration:v+"ms",...$,...X}),T==="close"){const F=V||D;E({transitionProperty:Object.keys(F).map($0).join(","),transitionDuration:b+"ms",...$,...F})}},[b,j,M,O,N,v,T,h]),{isMounted:w,styles:C}}function Db(t,o,r){return r===void 0&&(r=!0),t.filter(s=>{var c;return s.parentId===o&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Db(t,s.id,r)])}function U0(t,o){const[r,a]=t;let s=!1;const c=o.length;for(let u=0,f=c-1;u<c;f=u++){const[m,h]=o[u]||[0,0],[g,v]=o[f]||[0,0];h>=a!=v>=a&&r<=(g-m)*(a-h)/(v-h)+m&&(s=!s)}return s}function e8(t,o){return t[0]>=o.x&&t[0]<=o.x+o.width&&t[1]>=o.y&&t[1]<=o.y+o.height}function t8(t){t===void 0&&(t={});const{buffer:o=.5,blockPointerEvents:r=!1,requireIntent:a=!0}=t,s={current:-1};let c=!1,u=null,f=null,m=typeof performance<"u"?performance.now():0;function h(v,b){const C=performance.now(),E=C-m;if(u===null||f===null||E===0)return u=v,f=b,m=C,null;const w=v-u,T=b-f,O=Math.sqrt(w*w+T*T)/E;return u=v,f=b,m=C,O}const g=v=>{let{x:b,y:C,placement:E,elements:w,onClose:T,nodeId:M,tree:O}=v;return function(N){function D(){Kt(s),T()}if(Kt(s),!w.domReference||!w.floating||E==null||b==null||C==null)return;const{clientX:V,clientY:$}=N,X=[V,$],F=q3(N),q=N.type==="mouseleave",te=Fd(w.floating,F),le=Fd(w.domReference,F),ee=w.domReference.getBoundingClientRect(),H=w.floating.getBoundingClientRect(),W=E.split("-")[0],z=b>H.right-H.width/2,L=C>H.bottom-H.height/2,_=e8(X,ee),Z=H.width>ee.width,I=H.height>ee.height,ae=(Z?ee:H).left,ne=(Z?ee:H).right,re=(I?ee:H).top,ve=(I?ee:H).bottom;if(te&&(c=!0,!q))return;if(le&&(c=!1),le&&!q){c=!0;return}if(q&&Jt(N.relatedTarget)&&Fd(w.floating,N.relatedTarget)||O&&Db(O.nodesRef.current,M).length)return;if(W==="top"&&C>=ee.bottom-1||W==="bottom"&&C<=ee.top+1||W==="left"&&b>=ee.right-1||W==="right"&&b<=ee.left+1)return D();let se=[];switch(W){case"top":se=[[ae,ee.top+1],[ae,H.bottom-1],[ne,H.bottom-1],[ne,ee.top+1]];break;case"bottom":se=[[ae,H.top+1],[ae,ee.bottom-1],[ne,ee.bottom-1],[ne,H.top+1]];break;case"left":se=[[H.right-1,ve],[H.right-1,re],[ee.left+1,re],[ee.left+1,ve]];break;case"right":se=[[ee.right-1,ve],[ee.right-1,re],[H.left+1,re],[H.left+1,ve]];break}function be(Le){let[Ee,ye]=Le;switch(W){case"top":{const Je=[Z?Ee+o/2:z?Ee+o*4:Ee-o*4,ye+o+1],nt=[Z?Ee-o/2:z?Ee+o*4:Ee-o*4,ye+o+1],We=[[H.left,z||Z?H.bottom-o:H.top],[H.right,z?Z?H.bottom-o:H.top:H.bottom-o]];return[Je,nt,...We]}case"bottom":{const Je=[Z?Ee+o/2:z?Ee+o*4:Ee-o*4,ye-o],nt=[Z?Ee-o/2:z?Ee+o*4:Ee-o*4,ye-o],We=[[H.left,z||Z?H.top+o:H.bottom],[H.right,z?Z?H.top+o:H.bottom:H.top+o]];return[Je,nt,...We]}case"left":{const Je=[Ee+o+1,I?ye+o/2:L?ye+o*4:ye-o*4],nt=[Ee+o+1,I?ye-o/2:L?ye+o*4:ye-o*4];return[...[[L||I?H.right-o:H.left,H.top],[L?I?H.right-o:H.left:H.right-o,H.bottom]],Je,nt]}case"right":{const Je=[Ee-o,I?ye+o/2:L?ye+o*4:ye-o*4],nt=[Ee-o,I?ye-o/2:L?ye+o*4:ye-o*4],We=[[L||I?H.left+o:H.right,H.top],[L?I?H.left+o:H.right:H.left+o,H.bottom]];return[Je,nt,...We]}}}if(!U0([V,$],se)){if(c&&!_)return D();if(!q&&a){const Le=h(N.clientX,N.clientY);if(Le!==null&&Le<.1)return D()}U0([V,$],be([b,C]))?!c&&a&&(s.current=window.setTimeout(D,40)):D()}}};return g.__options={blockPointerEvents:r},g}function n8(t,o=r=>r){return M4.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,o,o8)}function o8(t,o){if(Object.is(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(const[a,s]of t)if(!o.has(a)||!Object.is(s,o.get(a)))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(const a of t)if(!o.has(a))return!1;return!0}if(t instanceof Date&&o instanceof Date)return t.getTime()===o.getTime();const r=G0(t);if(r.length!==G0(o).length)return!1;for(let a=0;a<r.length;a++)if(!Object.prototype.hasOwnProperty.call(o,r[a])||!Object.is(t[r[a]],o[r[a]]))return!1;return!0}function G0(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}var l8=qy(),r8=(...t)=>o=>{t.forEach(r=>{typeof r=="function"?r(o):r&&(r.current=o)})},a8=({contentComponent:t})=>{const o=l8.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return y.jsx(y.Fragment,{children:Object.values(o)})};function i8(){const t=new Set;let o={};return{subscribe(r){return t.add(r),()=>{t.delete(r)}},getSnapshot(){return o},getServerSnapshot(){return o},setRenderer(r,a){o={...o,[r]:Yy.createPortal(a.reactElement,a.element,r)},t.forEach(s=>s())},removeRenderer(r){const a={...o};delete a[r],o=a,t.forEach(s=>s())}}}var s8=class extends Ve.Component{constructor(t){super(t),this.editorContentRef=Ve.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const o=this.props.editor;if(o&&!o.isDestroyed&&((t=o.view.dom)!=null&&t.parentNode)){if(o.contentComponent)return;const r=this.editorContentRef.current;r.append(...o.view.dom.parentNode.childNodes),o.setOptions({element:r}),o.contentComponent=i8(),o.createNodeViews(),o.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var t;const o=this.props.editor;if(o){o.isEditorContentInitialized=!1,o.isDestroyed||o.view.setProps({nodeViews:{}}),o.contentComponent=null;try{if(!((t=o.view.dom)!=null&&t.parentNode))return;const r=document.createElement("div");r.append(...o.view.dom.parentNode.childNodes),o.setOptions({element:r})}catch{}}}render(){const{editor:t,innerRef:o,...r}=this.props;return y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:r8(o,this.editorContentRef),...r}),t?.contentComponent&&y.jsx(a8,{contentComponent:t.contentComponent})]})}},c8=x.forwardRef((t,o)=>{const r=Ve.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return Ve.createElement(s8,{key:r,innerRef:o,...t})}),u8=Ve.memo(c8),Hb=x.createContext({editor:null});Hb.Consumer;var zb=x.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Jm=()=>x.useContext(zb),Lb=Ve.forwardRef((t,o)=>{const{onDragStart:r}=Jm(),a=t.as||"div";return y.jsx(a,{...t,ref:o,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...t.style}})});function Z0(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function P0(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function f8(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function d8(t){if(Z0(t)||P0(t))return!0;if(f8(t)){const o=t.type;if(o)return Z0(o)||P0(o)}return!1}function m8(){try{if(x.version)return parseInt(x.version.split(".")[0],10)>=19}catch{}return!1}var p8=class{constructor(t,{editor:o,props:r={},as:a="div",className:s=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=o,this.props=r,this.element=document.createElement(a),this.element.classList.add("react-renderer"),s&&this.element.classList.add(...s.split(" ")),this.editor.isEditorContentInitialized?wn.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const o=this.component,r=this.props,a=this.editor,s=m8(),c=d8(o),u={...r};u.ref&&!(s||c)&&delete u.ref,!u.ref&&(s||c)&&(u.ref=f=>{this.ref=f}),this.reactElement=y.jsx(o,{...u}),(t=a?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){if(this.destroyed)return;let o=!1;const r=Object.keys(t);for(let a=0;a<r.length;a+=1){const s=r[a];if(t[s]!==this.props[s]){o=!0;break}}o&&(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const o=this.editor;(t=o?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(o=>{this.element.setAttribute(o,t[o])})}};Ve.createContext({markViewContentRef:()=>{}});var h8=class extends IC{constructor(t,o,r){if(super(t,o,r),this.selectionRafId=null,this.handlePositionUpdate=()=>{const a=this.getPos();typeof a!="number"||a===this.currentPos||(this.currentPos=a,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs=="function"&&this.updateElementAttributes())},this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const a=this.dom.querySelector("[data-node-view-content]");if(!a)return;a.appendChild(this.contentDOMElement)}this.options.trackNodeViewPosition&&this.editor.on("update",this.handlePositionUpdate)}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,o=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(o,{get(r,a,s){var c;return a==="storage"?(c=t.storage[o.name])!=null?c:{}:Reflect.get(r,a,s)}})}return this.cachedExtensionWithSyncedStorage}mount(){const o={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(h={})=>this.updateAttributes(h),deleteNode:()=>this.deleteNode(),ref:x.createRef()};if(!this.component.displayName){const h=g=>g.charAt(0).toUpperCase()+g.substring(1);this.component.displayName=h(this.extension.name)}const s={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:h=>{h&&this.contentDOMElement&&h.firstChild!==this.contentDOMElement&&(h.hasAttribute("data-node-view-wrapper")&&h.removeAttribute("data-node-view-wrapper"),h.appendChild(this.contentDOMElement))}},c=this.component,u=x.memo(h=>y.jsx(zb.Provider,{value:s,children:x.createElement(c,h)}));u.displayName="ReactNodeView";let f=this.node.isInline?"span":"div";this.options.as&&(f=this.options.as);const{className:m=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new p8(u,{editor:this.editor,props:o,as:f,className:`node-${this.node.type.name} ${m}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const t=this.currentPos;if(typeof t!="number")return;if(QC({selection:this.editor.state.selection,pos:t,nodeSize:this.node.nodeSize,selectedOnTextSelection:this.options.selectedOnTextSelection})){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,o,r){const a=f=>{this.renderer.updateProps(f),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const f=this.node,m=this.decorations,h=this.innerDecorations;return this.node=t,this.decorations=o,this.innerDecorations=r,this.currentPos=this.getPos(),this.options.update({oldNode:f,oldDecorations:m,newNode:t,newDecorations:o,oldInnerDecorations:h,innerDecorations:r,updateProps:()=>a({node:t,decorations:o,innerDecorations:r,extension:this.extensionWithSyncedStorage})})}if(!(t!==this.node))return this.node=t,this.decorations=o,this.innerDecorations=r,!0;const c=this.getPos();this.node=t,this.decorations=o,this.innerDecorations=r,this.currentPos=c;const u={node:t,decorations:o,innerDecorations:r,extension:this.extensionWithSyncedStorage};return this.options.trackNodeViewPosition&&(u.getPos=()=>this.getPos()),a(u),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.options.trackNodeViewPosition&&this.editor.off("update",this.handlePositionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const o=this.editor.extensionManager.attributes,r=FC(this.node,o);t=this.options.attrs({node:this.node,HTMLAttributes:r})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function kb(t,o){return r=>r.editor.contentComponent?new h8(t,r,o):{}}var Wm=x.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});Wm.displayName="TiptapContext";var g8=()=>x.useContext(Wm);function Vb({editor:t,instance:o,children:r}){const a=t??o;if(!a)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const s=x.useMemo(()=>({editor:a}),[a]),c=x.useMemo(()=>({editor:a}),[a]);return y.jsx(Hb.Provider,{value:c,children:y.jsx(Wm.Provider,{value:s,children:r})})}Vb.displayName="Tiptap";function Bb({...t}){const{editor:o}=g8();return y.jsx(u8,{editor:o,...t})}Bb.displayName="Tiptap.Content";Object.assign(Vb,{Content:Bb});var v8=Object.defineProperty,y8=(t,o,r)=>o in t?v8(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,Ia=(t,o,r)=>y8(t,typeof o!="symbol"?o+"":o,r);const $b=x.createContext(void 0);function On(t){return x.useContext($b)}const Ub=x.createContext(void 0);function de(){return x.useContext(Ub)}function he(t){const o=On();if(!(o!=null&&o.editor))throw new Error("useBlockNoteEditor was called outside of a BlockNoteContext provider or BlockNoteView component");return o.editor}function Ce(){return On().editor.dictionary}const b8=t=>{const o=de(),r=Ce(),a=he(),s=a.getBlock(t.blockId),[c,u]=x.useState(""),f=x.useCallback(g=>{u(g.currentTarget.value)},[]),m=x.useCallback(g=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&(g.preventDefault(),a.updateBlock(s.id,{props:{name:Pv(c),url:c}}))},[a,s.id,c]),h=x.useCallback(()=>{a.updateBlock(s.id,{props:{name:Pv(c),url:c}})},[a,s.id,c]);return y.jsxs(o.FilePanel.TabPanel,{className:"bn-tab-panel",children:[y.jsx(o.FilePanel.TextInput,{className:"bn-text-input",placeholder:r.file_panel.embed.url_placeholder,value:c,onChange:f,onKeyDown:m,"data-test":"embed-input"}),y.jsx(o.FilePanel.Button,{className:"bn-button",onClick:h,"data-test":"embed-input-button",children:r.file_panel.embed.embed_button[s.type]||r.file_panel.embed.embed_button.file})]})},x8=t=>{var o,r;const a=de(),s=Ce(),{setLoading:c}=t,u=he(),f=u.getBlock(t.blockId),[m,h]=x.useState(!1);x.useEffect(()=>{m&&setTimeout(()=>{h(!1)},3e3)},[m]);const g=x.useCallback(C=>{if(C===null)return;async function E(w){if(c(!0),u.uploadFile!==void 0)try{let T=await u.uploadFile(w,t.blockId);typeof T=="string"&&(T={props:{name:w.name,url:T}}),u.updateBlock(t.blockId,T)}catch{h(!0)}finally{c(!1)}}E(C)},[t.blockId,u,c]),v=u.schema.blockSpecs[f.type],b=(r=(o=v.implementation.meta)==null?void 0:o.fileBlockAccept)!=null&&r.length?v.implementation.meta.fileBlockAccept.join(","):"*/*";return y.jsxs(a.FilePanel.TabPanel,{className:"bn-tab-panel",children:[y.jsx(a.FilePanel.FileInput,{className:"bn-file-input","data-test":"upload-input",accept:b,placeholder:s.file_panel.upload.file_placeholder[f.type]||s.file_panel.upload.file_placeholder.file,value:null,onChange:g}),m&&y.jsx("div",{className:"bn-error-text",children:s.file_panel.upload.upload_error})]})},Gb=t=>{const o=de(),r=Ce(),a=he(),[s,c]=x.useState(!1),u=t.tabs??[...a.uploadFile!==void 0?[{name:r.file_panel.upload.title,tabPanel:y.jsx(x8,{blockId:t.blockId,setLoading:c})}]:[],{name:r.file_panel.embed.title,tabPanel:y.jsx(b8,{blockId:t.blockId})}],[f,m]=x.useState(t.defaultOpenTab||u[0].name);return y.jsx(o.FilePanel.Root,{className:"bn-panel",defaultOpenTab:f,openTab:f,setOpenTab:m,tabs:u,loading:s})};function S8(t){let o=new DOMRect;const r="getBoundingClientRect"in t?()=>t.getBoundingClientRect():()=>t.element.getBoundingClientRect();return()=>"element"in t&&(t.cacheMountedBoundingClientRect??!0)?(t.element.isConnected&&(o=r()),o):r()}const Un=t=>{var o,r,a;const{refs:s,floatingStyles:c,context:u}=F3({whileElementsMounted:E3,...t.useFloatingOptions}),{isMounted:f,styles:m}=W3(u,t.useTransitionStylesProps),{status:h}=Ab(u,t.useTransitionStatusProps),g=I3(u,t.useDismissProps),v=P3(u,{enabled:!1,...t.useHoverProps}),{getFloatingProps:b}=K3([g,v]),C=x.useRef(""),E=x.useRef(null),w=H3([E,s.setFloating]);if(x.useEffect(()=>{if(t.reference){const M="element"in t.reference?t.reference.element:void 0;M!==void 0&&s.setReference(M),s.setPositionReference({getBoundingClientRect:S8(t.reference),contextElement:M})}},[t.reference,s]),x.useEffect(()=>{var M;(h==="initial"||h==="open")&&(M=E.current)!=null&&M.innerHTML&&(C.current=E.current.innerHTML)},[h,t.reference,t.children]),!f)return!1;const T={...t.elementProps,style:{display:"flex",...(o=t.elementProps)==null?void 0:o.style,zIndex:`calc(var(--bn-ui-base-z-index) + ${((a=(r=t.elementProps)==null?void 0:r.style)==null?void 0:a.zIndex)||0})`,...c,...m},...b()};return h==="close"?y.jsx("div",{ref:w,...T,dangerouslySetInnerHTML:{__html:C.current}}):y.jsx("div",{ref:w,...T,children:t.children})},Zb=t=>{const{blockId:o,children:r,...a}=t,s=he(),c=x.useMemo(()=>s.transact(u=>{if(!o)return;const f=By(o,u.doc);if(!f)return;const{node:m}=s.prosemirrorView.domAtPos(f.posBeforeNode+1);if(m instanceof Element)return{element:m}}),[s,o]);return y.jsx(Un,{reference:c,...a,children:o!==void 0&&r})};function De(t,o){const r=(o?.editor??he()).getExtension(t);if(!r)throw new Error("Extension not found",{cause:{plugin:t}});return r}function qe(t,o){const{store:r}=De(t,o);if(!r)throw new Error("Store not found on plugin",{cause:{plugin:t}});return n8(r,o?.selector)}const C8=t=>{const o=he(),r=De(xm),a=qe(xm),s=x.useMemo(()=>{var u,f;return{...t.floatingUIOptions,useFloatingOptions:{open:!!a,onOpenChange:(m,h,g)=>{m||r.closeMenu(),g==="escape-key"&&o.focus()},middleware:[Yn(10),ui()],...(u=t.floatingUIOptions)==null?void 0:u.useFloatingOptions},elementProps:{style:{zIndex:90},...(f=t.floatingUIOptions)==null?void 0:f.elementProps}}},[a,o,r,t.floatingUIOptions]),c=t.filePanel||Gb;return y.jsx(Zb,{blockId:a,...s,children:a&&y.jsx(c,{blockId:a})})};function w8(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var E8=function t(o,r){if(o===r)return!0;if(o&&r&&typeof o=="object"&&typeof r=="object"){if(o.constructor!==r.constructor)return!1;var a,s,c;if(Array.isArray(o)){if(a=o.length,a!=r.length)return!1;for(s=a;s--!==0;)if(!t(o[s],r[s]))return!1;return!0}if(o instanceof Map&&r instanceof Map){if(o.size!==r.size)return!1;for(s of o.entries())if(!r.has(s[0]))return!1;for(s of o.entries())if(!t(s[1],r.get(s[0])))return!1;return!0}if(o instanceof Set&&r instanceof Set){if(o.size!==r.size)return!1;for(s of o.entries())if(!r.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(o)&&ArrayBuffer.isView(r)){if(a=o.length,a!=r.length)return!1;for(s=a;s--!==0;)if(o[s]!==r[s])return!1;return!0}if(o.constructor===RegExp)return o.source===r.source&&o.flags===r.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===r.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===r.toString();if(c=Object.keys(o),a=c.length,a!==Object.keys(r).length)return!1;for(s=a;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[s]))return!1;for(s=a;s--!==0;){var u=c[s];if(!(u==="_owner"&&o.$$typeof)&&!t(o[u],r[u]))return!1}return!0}return o!==o&&r!==r};const T8=w8(E8);var Pb={exports:{}},Jd={},q0={exports:{}},Wd={};var Y0;function R8(){if(Y0)return Wd;Y0=1;var t=Ve;function o(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var r=typeof Object.is=="function"?Object.is:o,a=t.useState,s=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function f(v,b){var C=b(),E=a({inst:{value:C,getSnapshot:b}}),w=E[0].inst,T=E[1];return c(function(){w.value=C,w.getSnapshot=b,m(w)&&T({inst:w})},[v,C,b]),s(function(){return m(w)&&T({inst:w}),v(function(){m(w)&&T({inst:w})})},[v]),u(C),C}function m(v){var b=v.getSnapshot;v=v.value;try{var C=b();return!r(v,C)}catch{return!0}}function h(v,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Wd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Wd}var X0;function M8(){return X0||(X0=1,q0.exports=R8()),q0.exports}var I0;function O8(){if(I0)return Jd;I0=1;var t=Ve,o=M8();function r(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var a=typeof Object.is=="function"?Object.is:r,s=o.useSyncExternalStore,c=t.useRef,u=t.useEffect,f=t.useMemo,m=t.useDebugValue;return Jd.useSyncExternalStoreWithSelector=function(h,g,v,b,C){var E=c(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=f(function(){function M(V){if(!O){if(O=!0,j=V,V=b(V),C!==void 0&&w.hasValue){var $=w.value;if(C($,V))return N=$}return N=V}if($=N,a(j,V))return $;var X=b(V);return C!==void 0&&C($,X)?(j=V,$):(j=V,N=X)}var O=!1,j,N,D=v===void 0?null:v;return[function(){return M(g())},D===null?void 0:function(){return M(D())}]},[g,v,b,C]);var T=s(h,E[0],E[1]);return u(function(){w.hasValue=!0,w.value=T},[T]),m(T),T},Jd}Pb.exports=O8();var j8=Pb.exports;const _8=typeof window<"u"?x.useLayoutEffect:x.useEffect;class N8{constructor(o){Ia(this,"transactionNumber",0),Ia(this,"lastTransactionNumber",0),Ia(this,"lastSnapshot"),Ia(this,"editor"),Ia(this,"subscribers",new Set),this.editor=o,this.lastSnapshot={editor:o,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(o){return this.subscribers.add(o),()=>{this.subscribers.delete(o)}}watch(o,r){if(this.editor=o,this.editor){const a=()=>{this.transactionNumber+=1,this.subscribers.forEach(u=>u())},s=this.editor._tiptapEditor,c={all:"transaction",selection:"selectionUpdate",change:"update"};return s.on(c[r],a),()=>{s.off(c[r],a)}}}}function gt(t){const o=On(),r=t.editor||o?.editor||null,a=t.on||"all",[s]=x.useState(()=>new N8(r)),c=j8.useSyncExternalStoreWithSelector(s.subscribe,s.getSnapshot,s.getServerSnapshot,t.selector,t.equalityFn??T8);return _8(()=>s.watch(r,a),[r,s,a]),x.useDebugValue(c),c}const ep=t=>{const{position:o,children:r,...a}=t,{from:s,to:c}=o||{},u=he(),f=x.useMemo(()=>{var m;if(!(s===void 0||c===void 0))return{element:((m=u.domElement)==null?void 0:m.firstElementChild)||void 0,getBoundingClientRect:()=>e4(u.prosemirrorView,s,c??s)}},[u,s,c]);return y.jsx(Un,{reference:f,...a,children:o!==void 0&&r})};var qb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Q0=Ve.createContext&&Ve.createContext(qb),A8=["attr","size","title"];function D8(t,o){if(t==null)return{};var r=H8(t,o),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)a=c[s],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function H8(t,o){if(t==null)return{};var r={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(o.indexOf(a)>=0)continue;r[a]=t[a]}return r}function dc(){return dc=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},dc.apply(this,arguments)}function F0(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,a)}return r}function mc(t){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?F0(Object(r),!0).forEach(function(a){z8(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F0(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function z8(t,o,r){return o=L8(o),o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function L8(t){var o=k8(t,"string");return typeof o=="symbol"?o:o+""}function k8(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,o);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function Yb(t){return t&&t.map((o,r)=>Ve.createElement(o.tag,mc({key:r},o.attr),Yb(o.child)))}function me(t){return o=>Ve.createElement(V8,dc({attr:mc({},t.attr)},o),Yb(t.child))}function V8(t){var o=r=>{var{attr:a,size:s,title:c}=t,u=D8(t,A8),f=s||r.size||"1em",m;return r.className&&(m=r.className),t.className&&(m=(m?m+" ":"")+t.className),Ve.createElement("svg",dc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,u,{className:m,style:mc(mc({color:t.color||r.color},r.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Ve.createElement("title",null,c),t.children)};return Q0!==void 0?Ve.createElement(Q0.Consumer,null,r=>o(r)):o(qb)}function B8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 7V11L2 6L8 1V5H13C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21H4V19H13C16.3137 19 19 16.3137 19 13C19 9.68629 16.3137 7 13 7H8Z"},child:[]}]})(t)}function Xb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z"},child:[]}]})(t)}function $8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7.24264 17.9967H3V13.754L14.435 2.319C14.8256 1.92848 15.4587 1.92848 15.8492 2.319L18.6777 5.14743C19.0682 5.53795 19.0682 6.17112 18.6777 6.56164L7.24264 17.9967ZM3 19.9967H21V21.9967H3V19.9967Z"},child:[]}]})(t)}function U8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M23 12L15.9289 19.0711L14.5147 17.6569L20.1716 12L14.5147 6.34317L15.9289 4.92896L23 12ZM3.82843 12L9.48528 17.6569L8.07107 19.0711L1 12L8.07107 4.92896L9.48528 6.34317L3.82843 12Z"},child:[]}]})(t)}function G8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"},child:[]}]})(t)}function Z8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"},child:[]}]})(t)}function P8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"},child:[]}]})(t)}function q8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"},child:[]}]})(t)}function Y8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"},child:[]}]})(t)}function X8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"},child:[]}]})(t)}function I8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3.41436 5.99995L5.70726 3.70706L4.29304 2.29285L0.585938 5.99995L4.29304 9.70706L5.70726 8.29285L3.41436 5.99995ZM9.58594 5.99995L7.29304 3.70706L8.70726 2.29285L12.4144 5.99995L8.70726 9.70706L7.29304 8.29285L9.58594 5.99995ZM14.0002 2.99995H21.0002C21.5524 2.99995 22.0002 3.44767 22.0002 3.99995V20C22.0002 20.5522 21.5524 21 21.0002 21H3.00015C2.44787 21 2.00015 20.5522 2.00015 20V12H4.00015V19H20.0002V4.99995H14.0002V2.99995Z"},child:[]}]})(t)}function K0(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.55397 22H3.3999L10.9999 3H12.9999L20.5999 22H18.4458L16.0458 16H7.95397L5.55397 22ZM8.75397 14H15.2458L11.9999 5.88517L8.75397 14Z"},child:[]}]})(t)}function pc(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z"},child:[]}]})(t)}function hc(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z"},child:[]}]})(t)}function gc(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"},child:[]}]})(t)}function Ib(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM22 8V16H23.5V18H22V20H20V18H14.5V16.66L19.5 8H22ZM20 11.133L17.19 16H20V11.133Z"},child:[]}]})(t)}function Qb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 8V10H17.6769L17.2126 12.6358C17.5435 12.5472 17.8912 12.5 18.25 12.5C20.4591 12.5 22.25 14.2909 22.25 16.5C22.25 18.7091 20.4591 20.5 18.25 20.5C16.4233 20.5 14.8827 19.2756 14.4039 17.6027L16.3271 17.0519C16.5667 17.8881 17.3369 18.5 18.25 18.5C19.3546 18.5 20.25 17.6046 20.25 16.5C20.25 15.3954 19.3546 14.5 18.25 14.5C17.6194 14.5 17.057 14.7918 16.6904 15.2478L14.8803 14.3439L16 8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"},child:[]}]})(t)}function Fb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21.097 8L18.499 12.5C20.7091 12.5 22.5 14.2909 22.5 16.5C22.5 18.7091 20.7091 20.5 18.5 20.5C16.2909 20.5 14.5 18.7091 14.5 16.5C14.5 15.7636 14.699 15.0737 15.0461 14.4811L18.788 8H21.097ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 14.5C17.3954 14.5 16.5 15.3954 16.5 16.5C16.5 17.6046 17.3954 18.5 18.5 18.5C19.6046 18.5 20.5 17.6046 20.5 16.5C20.5 15.3954 19.6046 14.5 18.5 14.5Z"},child:[]}]})(t)}function Q8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM3 12.5L7 9V16L3 12.5Z"},child:[]}]})(t)}function F8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM7 12.5L3 16V9L7 12.5Z"},child:[]}]})(t)}function J0(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z"},child:[]}]})(t)}function K8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"},child:[]}]})(t)}function J8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 17H22V19H19V22H17V17ZM7 7H2V5H5V2H7V7ZM18.364 15.5355L16.9497 14.1213L18.364 12.7071C20.3166 10.7545 20.3166 7.58866 18.364 5.63604C16.4113 3.68342 13.2455 3.68342 11.2929 5.63604L9.87868 7.05025L8.46447 5.63604L9.87868 4.22183C12.6123 1.48816 17.0445 1.48816 19.7782 4.22183C22.5118 6.9555 22.5118 11.3877 19.7782 14.1213L18.364 15.5355ZM15.5355 18.364L14.1213 19.7782C11.3877 22.5118 6.9555 22.5118 4.22183 19.7782C1.48816 17.0445 1.48816 12.6123 4.22183 9.87868L5.63604 8.46447L7.05025 9.87868L5.63604 11.2929C3.68342 13.2455 3.68342 16.4113 5.63604 18.364C7.58866 20.3166 10.7545 20.3166 12.7071 18.364L14.1213 16.9497L15.5355 18.364ZM14.8284 7.75736L16.2426 9.17157L9.17157 16.2426L7.75736 14.8284L14.8284 7.75736Z"},child:[]}]})(t)}function Kb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z"},child:[]}]})(t)}function Jb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z"},child:[]}]})(t)}function Wb(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"},child:[]}]})(t)}function e2(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"},child:[]}]})(t)}function W8(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"},child:[]}]})(t)}function e7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20C20.5523 3 21 3.44772 21 4V20ZM19 11V5H13.001V7H15L12 10L9 7H11V5H5V11H7V13H5V19H11V17H9L12 14L15 17H13.001V19H19V13H17V11H19ZM11 13H9V11H11V13ZM15 13H13V11H15V13Z"},child:[]}]})(t)}function t2(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 4H3V6H21V4ZM21 11H8V13H21V11ZM21 18H8V20H21V18ZM5 11H3V20H5V11Z"},child:[]}]})(t)}function t7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"},child:[]}]})(t)}function n7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 10V14H19V10H13ZM11 10H5V14H11V10ZM13 19H19V16H13V19ZM11 19V16H5V19H11ZM13 5V8H19V5H13ZM11 5H5V8H11V5ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"},child:[]}]})(t)}function tp(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(t)}function o7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"},child:[]}]})(t)}function l7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z"},child:[]}]})(t)}function r7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z"},child:[]}]})(t)}function a7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934L22.0007 13.3417C21.3749 13.1204 20.7015 13 20 13V5H4L4.001 19L13.2929 9.70715C13.6528 9.34604 14.22 9.31823 14.6123 9.62322L14.7065 9.70772L18.2521 13.2586C15.791 14.0069 14 16.2943 14 19C14 19.7015 14.1204 20.3749 14.3417 21.0007L2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"},child:[]}]})(t)}function i7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 3C20.5523 3 21 3.44772 21 4V5.757L19 7.757V5H5V13.1L9 9.1005L13.328 13.429L12.0012 14.7562L11.995 18.995L16.2414 19.0012L17.571 17.671L18.8995 19H19V16.242L21 14.242V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM21.7782 7.80761L23.1924 9.22183L15.4142 17L13.9979 16.9979L14 15.5858L21.7782 7.80761ZM15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7Z"},child:[]}]})(t)}function n2(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 18V20H2V18H22ZM2 3.5L10 8.5L2 13.5V3.5ZM22 11V13H12V11H22ZM22 4V6H12V4H22Z"},child:[]}]})(t)}function s7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"},child:[]}]})(t)}function c7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"},child:[]}]})(t)}function u7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"},child:[]}]})(t)}function f7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z"},child:[]}]})(t)}function d7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM9 11V17H11V11H9ZM13 11V17H15V11H13ZM9 4V6H15V4H9Z"},child:[]}]})(t)}function m7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z"},child:[]}]})(t)}function p7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V12L17.206 8.207L11.2071 14.2071L9.79289 12.7929L15.792 6.793L12 3H21Z"},child:[]}]})(t)}function h7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"},child:[]}]})(t)}function g7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11V13H19V11H5Z"},child:[]}]})(t)}function v7(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM8 13C8 15.2091 9.79086 17 12 17C14.2091 17 16 15.2091 16 13H8ZM8 11C8.82843 11 9.5 10.3284 9.5 9.5C9.5 8.67157 8.82843 8 8 8C7.17157 8 6.5 8.67157 6.5 9.5C6.5 10.3284 7.17157 11 8 11ZM16 11C16.8284 11 17.5 10.3284 17.5 9.5C17.5 8.67157 16.8284 8 16 8C15.1716 8 14.5 8.67157 14.5 9.5C14.5 10.3284 15.1716 11 16 11Z"},child:[]}]})(t)}function W0(t){return me({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8 13H16C16 15.2091 14.2091 17 12 17C9.79086 17 8 15.2091 8 13ZM8 11C7.17157 11 6.5 10.3284 6.5 9.5C6.5 8.67157 7.17157 8 8 8C8.82843 8 9.5 8.67157 9.5 9.5C9.5 10.3284 8.82843 11 8 11ZM16 11C15.1716 11 14.5 10.3284 14.5 9.5C14.5 8.67157 15.1716 8 16 8C16.8284 8 17.5 8.67157 17.5 9.5C17.5 10.3284 16.8284 11 16 11Z"},child:[]}]})(t)}const y7={bold:X8,italic:K8,underline:o7,strike:t7,code:U8};function b7(t,o){return t in o.schema.styleSchema&&o.schema.styleSchema[t].type===t&&o.schema.styleSchema[t].propSchema==="boolean"}const $s=t=>{const o=Ce(),r=de(),a=he(),s=gt({editor:a,selector:({editor:f})=>{var m;if(!(!f.isEditable||!b7(t.basicTextStyle,f)||!(((m=f.getSelection())==null?void 0:m.blocks)||[f.getTextCursorPosition().block]).find(h=>h.content!==void 0)))return t.basicTextStyle in f.getActiveStyles()?{active:!0}:{active:!1}}}),c=x.useCallback(f=>{a.focus(),a.toggleStyles({[f]:!0})},[a,t]);if(s===void 0)return null;const u=y7[t.basicTextStyle];return y.jsx(r.FormattingToolbar.Button,{className:"bn-button","data-test":t.basicTextStyle,onClick:()=>c(t.basicTextStyle),isSelected:s.active,label:o.formatting_toolbar[t.basicTextStyle].tooltip,mainTooltip:o.formatting_toolbar[t.basicTextStyle].tooltip,secondaryTooltip:Mc(o.formatting_toolbar[t.basicTextStyle].secondary_tooltip,o.generic.ctrl_shortcut),icon:y.jsx(u,{})})},Dm=t=>{const o=t.textColor||"default",r=t.backgroundColor||"default",a=t.size||16,s=x.useMemo(()=>({pointerEvents:"none",fontSize:(a*.75).toString()+"px",height:a.toString()+"px",lineHeight:a.toString()+"px",textAlign:"center",width:a.toString()+"px"}),[a]);return y.jsx("div",{className:"bn-color-icon","data-background-color":r,"data-text-color":o,style:s,children:"A"})},ey=["default","gray","brown","red","orange","yellow","green","blue","purple","pink"],$c=t=>{const o=de(),r=Ce();return y.jsxs(y.Fragment,{children:[y.jsx(()=>t.text?y.jsxs(y.Fragment,{children:[y.jsx(o.Generic.Menu.Label,{children:r.color_picker.text_title}),ey.map(a=>y.jsx(o.Generic.Menu.Item,{onClick:()=>{t.onClick&&t.onClick(),t.text.setColor(a)},"data-test":"text-color-"+a,icon:y.jsx(Dm,{textColor:a,size:t.iconSize}),checked:t.text.color===a,children:r.color_picker.colors[a]},"text-color-"+a))]}):null,{}),y.jsx(()=>t.background?y.jsxs(y.Fragment,{children:[y.jsx(o.Generic.Menu.Label,{children:r.color_picker.background_title}),ey.map(a=>y.jsx(o.Generic.Menu.Item,{onClick:()=>{t.onClick&&t.onClick(),t.background.setColor(a)},"data-test":"background-color-"+a,icon:y.jsx(Dm,{backgroundColor:a,size:t.iconSize}),checked:t.background.color===a,children:r.color_picker.colors[a]},"background-color-"+a))]}):null,{})]})};function Us(t,o){return`${t}Color`in o.schema.styleSchema&&o.schema.styleSchema[`${t}Color`].type===`${t}Color`&&o.schema.styleSchema[`${t}Color`].propSchema==="string"}const x7=()=>{const t=de(),o=Ce(),r=he(),a=Us("text",r),s=Us("background",r),c=gt({editor:r,selector:({editor:m})=>{var h;if(!m.isEditable||!(((h=m.getSelection())==null?void 0:h.blocks)||[m.getTextCursorPosition().block]).find(b=>b.content!==void 0))return;const g=Us("text",m),v=Us("background",m);if(!(!g&&!v))return{textColor:g?m.getActiveStyles().textColor||"default":void 0,backgroundColor:v?m.getActiveStyles().backgroundColor||"default":void 0}}}),u=x.useCallback(m=>{if(!a)throw Error("Tried to set text color, but style does not exist in editor schema.");m==="default"?r.removeStyles({textColor:m}):r.addStyles({textColor:m}),setTimeout(()=>{r.focus()})},[r,a]),f=x.useCallback(m=>{if(!s)throw Error("Tried to set background color, but style does not exist in editor schema.");m==="default"?r.removeStyles({backgroundColor:m}):r.addStyles({backgroundColor:m}),setTimeout(()=>{r.focus()})},[s,r]);return c===void 0?null:y.jsxs(t.Generic.Menu.Root,{children:[y.jsx(t.Generic.Menu.Trigger,{children:y.jsx(t.FormattingToolbar.Button,{className:"bn-button","data-test":"colors",label:o.formatting_toolbar.colors.tooltip,mainTooltip:o.formatting_toolbar.colors.tooltip,icon:y.jsx(Dm,{textColor:c.textColor,backgroundColor:c.backgroundColor,size:20})})}),y.jsx(t.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-color-picker-dropdown",children:y.jsx($c,{text:c.textColor?{color:c.textColor,setColor:u}:void 0,background:c.backgroundColor?{color:c.backgroundColor,setColor:f}:void 0})})]})},ty=t=>{for(const o of n4)if(t.startsWith(o))return t;return`${o4}://${t}`},o2=t=>{const o=de(),r=Ce(),{editLink:a}=De(Oc),{url:s,text:c,showTextField:u}=t,[f,m]=x.useState(s),[h,g]=x.useState(c);x.useEffect(()=>{m(s),g(c)},[c,s]);const v=x.useCallback(w=>{var T,M;w.key==="Enter"&&!w.nativeEvent.isComposing&&(w.preventDefault(),a(ty(f),h,t.range.from),(T=t.setToolbarOpen)==null||T.call(t,!1),(M=t.setToolbarPositionFrozen)==null||M.call(t,!1))},[a,f,h,t]),b=x.useCallback(w=>m(w.currentTarget.value),[]),C=x.useCallback(w=>g(w.currentTarget.value),[]),E=x.useCallback(()=>{var w,T;a(ty(f),h,t.range.from),(w=t.setToolbarOpen)==null||w.call(t,!1),(T=t.setToolbarPositionFrozen)==null||T.call(t,!1)},[a,f,h,t]);return y.jsxs(o.Generic.Form.Root,{children:[y.jsx(o.Generic.Form.TextInput,{className:"bn-text-input",name:"url",icon:y.jsx(Kb,{}),autoFocus:!0,placeholder:r.link_toolbar.form.url_placeholder,value:f,onKeyDown:v,onChange:b,onSubmit:E}),u!==!1&&y.jsx(o.Generic.Form.TextInput,{className:"bn-text-input",name:"title",icon:y.jsx(tp,{}),placeholder:r.link_toolbar.form.title_placeholder,value:h,onKeyDown:v,onChange:C,onSubmit:E})]})};function S7(t){return"link"in t.schema.inlineContentSchema&&t.schema.inlineContentSchema.link==="link"}const C7=()=>{const t=he(),o=de(),r=Ce(),a=De(Wa),{showSelection:s}=De(bm),[c,u]=x.useState(!1);x.useEffect(()=>(s(c,"createLinkButton"),()=>s(!1,"createLinkButton")),[c,s]);const f=gt({editor:t,selector:({editor:m})=>{var h;if(!(!m.isEditable||!S7(m)||t4(m.prosemirrorState.selection)||!(((h=m.getSelection())==null?void 0:h.blocks)||[m.getTextCursorPosition().block]).find(g=>g.content!==void 0)))return{url:m.getSelectedLinkUrl(),text:m.getSelectedText(),range:{from:m.prosemirrorState.selection.from,to:m.prosemirrorState.selection.to}}}});return x.useEffect(()=>{u(!1)},[f]),x.useEffect(()=>{const m=g=>{(g.ctrlKey||g.metaKey)&&g.key==="k"&&(u(!0),g.preventDefault())},h=t.domElement;return h?.addEventListener("keydown",m),()=>{h?.removeEventListener("keydown",m)}},[t.domElement]),f===void 0?null:y.jsxs(o.Generic.Popover.Root,{open:c,onOpenChange:u,children:[y.jsx(o.Generic.Popover.Trigger,{children:y.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"createLink",label:r.formatting_toolbar.link.tooltip,mainTooltip:r.formatting_toolbar.link.tooltip,secondaryTooltip:Mc(r.formatting_toolbar.link.secondary_tooltip,r.generic.ctrl_shortcut),icon:y.jsx(Kb,{}),onClick:()=>u(m=>!m)})}),y.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:y.jsx(o2,{url:f.url||"",text:f.text,range:f.range,showTextField:!1,setToolbarOpen:m=>a.store.setState(m)})})]})},w7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:m})=>{var h;if(!m.isEditable)return;const g=((h=m.getSelection())==null?void 0:h.blocks)||[m.getTextCursorPosition().block];if(g.length!==1)return;const v=g[0];if(kt(v,m,v.type,{url:"string",caption:"string"}))return v}}),[s,c]=x.useState();x.useEffect(()=>{a!==void 0&&c(a.props.caption)},[a]);const u=x.useCallback(m=>c(m.currentTarget.value),[]),f=x.useCallback(m=>{a!==void 0&&Hl(r,a.type,{caption:"string"})&&m.key==="Enter"&&!m.nativeEvent.isComposing&&(m.preventDefault(),r.updateBlock(a.id,{props:{caption:s}}))},[a,s,r]);return a===void 0?null:y.jsxs(o.Generic.Popover.Root,{children:[y.jsx(o.Generic.Popover.Trigger,{children:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_caption.tooltip,mainTooltip:t.formatting_toolbar.file_caption.tooltip,icon:y.jsx(J0,{})})}),y.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:y.jsx(o.Generic.Form.Root,{children:y.jsx(o.Generic.Form.TextInput,{name:"file-caption",icon:y.jsx(J0,{}),value:s||"",autoFocus:!0,placeholder:t.formatting_toolbar.file_caption.input_placeholder,onKeyDown:f,onChange:u})})})]})},E7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:c})=>{var u;if(!c.isEditable)return;const f=((u=c.getSelection())==null?void 0:u.blocks)||[c.getTextCursorPosition().block];if(f.length!==1)return;const m=f[0];if(kt(m,c,m.type,{url:"string"}))return m}}),s=x.useCallback(()=>{a!==void 0&&(r.focus(),r.removeBlocks([a.id]))},[a,r]);return a===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_delete.tooltip[a.type]||t.formatting_toolbar.file_delete.tooltip.file,mainTooltip:t.formatting_toolbar.file_delete.tooltip[a.type]||t.formatting_toolbar.file_delete.tooltip.file,icon:y.jsx(f7,{}),onClick:s})},T7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:m})=>{var h;if(!m.isEditable)return;const g=((h=m.getSelection())==null?void 0:h.blocks)||[m.getTextCursorPosition().block];if(g.length!==1)return;const v=g[0];if(kt(v,m,v.type,{url:"string",name:"string"}))return v}}),[s,c]=x.useState();x.useEffect(()=>{a!==void 0&&c(a.props.name)},[a]);const u=x.useCallback(m=>c(m.currentTarget.value),[]),f=x.useCallback(m=>{a!==void 0&&Hl(r,a.type,{name:"string"})&&m.key==="Enter"&&!m.nativeEvent.isComposing&&(m.preventDefault(),r.updateBlock(a.id,{props:{name:s}}))},[a,s,r]);return a===void 0?null:y.jsxs(o.Generic.Popover.Root,{children:[y.jsx(o.Generic.Popover.Trigger,{children:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_rename.tooltip[a.type]||t.formatting_toolbar.file_rename.tooltip.file,mainTooltip:t.formatting_toolbar.file_rename.tooltip[a.type]||t.formatting_toolbar.file_rename.tooltip.file,icon:y.jsx(K0,{})})}),y.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:y.jsx(o.Generic.Form.Root,{children:y.jsx(o.Generic.Form.TextInput,{name:"file-name",icon:y.jsx(K0,{}),value:s||"",autoFocus:!0,placeholder:t.formatting_toolbar.file_rename.input_placeholder[a.type]||t.formatting_toolbar.file_rename.input_placeholder.file,onKeyDown:f,onChange:u})})})]})},R7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:s})=>{var c;if(!s.isEditable)return;const u=((c=s.getSelection())==null?void 0:c.blocks)||[s.getTextCursorPosition().block];if(u.length!==1)return;const f=u[0];if(kt(f,s,f.type,{url:"string"}))return f}});return a===void 0?null:y.jsxs(o.Generic.Popover.Root,{position:"bottom",children:[y.jsx(o.Generic.Popover.Trigger,{children:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",mainTooltip:t.formatting_toolbar.file_replace.tooltip[a.type]||t.formatting_toolbar.file_replace.tooltip.file,label:t.formatting_toolbar.file_replace.tooltip[a.type]||t.formatting_toolbar.file_replace.tooltip.file,icon:y.jsx(i7,{})})}),y.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-panel-popover",variant:"panel-popover",children:y.jsx(Gb,{blockId:a.id})})]})},M7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:c})=>{var u;if(!(!c.isEditable||!(((u=c.getSelection())==null?void 0:u.blocks)||[c.getTextCursorPosition().block]).find(f=>f.content!==void 0)))return{canNestBlock:c.canNestBlock()}}}),s=x.useCallback(()=>{a!==void 0&&a.canNestBlock&&(r.focus(),r.nestBlock())},[r,a]);return a===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"nestBlock",onClick:s,isDisabled:!a.canNestBlock,label:t.formatting_toolbar.nest.tooltip,mainTooltip:t.formatting_toolbar.nest.tooltip,secondaryTooltip:Mc(t.formatting_toolbar.nest.secondary_tooltip,t.generic.ctrl_shortcut),icon:y.jsx(F8,{})})},O7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:c})=>{var u;if(!(!c.isEditable||!(((u=c.getSelection())==null?void 0:u.blocks)||[c.getTextCursorPosition().block]).find(f=>f.content!==void 0)))return{canUnnestBlock:c.canUnnestBlock()}}}),s=x.useCallback(()=>{a!==void 0&&a.canUnnestBlock&&(r.focus(),r.unnestBlock())},[r,a]);return a===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"unnestBlock",onClick:s,isDisabled:!a.canUnnestBlock,label:t.formatting_toolbar.unnest.tooltip,mainTooltip:t.formatting_toolbar.unnest.tooltip,secondaryTooltip:Mc(t.formatting_toolbar.unnest.secondary_tooltip,t.generic.ctrl_shortcut),icon:y.jsx(Q8,{})})},j7=t=>[{name:t.slash_menu.paragraph.title,type:"paragraph",icon:tp},{name:t.slash_menu.heading.title,type:"heading",props:{level:1,isToggleable:!1},icon:pc},{name:t.slash_menu.heading_2.title,type:"heading",props:{level:2,isToggleable:!1},icon:hc},{name:t.slash_menu.heading_3.title,type:"heading",props:{level:3,isToggleable:!1},icon:gc},{name:t.slash_menu.heading_4.title,type:"heading",props:{level:4,isToggleable:!1},icon:Ib},{name:t.slash_menu.heading_5.title,type:"heading",props:{level:5,isToggleable:!1},icon:Qb},{name:t.slash_menu.heading_6.title,type:"heading",props:{level:6,isToggleable:!1},icon:Fb},{name:t.slash_menu.toggle_heading.title,type:"heading",props:{level:1,isToggleable:!0},icon:pc},{name:t.slash_menu.toggle_heading_2.title,type:"heading",props:{level:2,isToggleable:!0},icon:hc},{name:t.slash_menu.toggle_heading_3.title,type:"heading",props:{level:3,isToggleable:!0},icon:gc},{name:t.slash_menu.quote.title,type:"quote",icon:t2},{name:t.slash_menu.toggle_list.title,type:"toggleListItem",icon:n2},{name:t.slash_menu.bullet_list.title,type:"bulletListItem",icon:e2},{name:t.slash_menu.numbered_list.title,type:"numberedListItem",icon:Wb},{name:t.slash_menu.check_list.title,type:"checkListItem",icon:Jb}],_7=t=>{const o=de(),r=he(),a=gt({editor:r,selector:({editor:f})=>{var m;return((m=f.getSelection())==null?void 0:m.blocks)||[f.getTextCursorPosition().block]}}),s=a[0],c=x.useMemo(()=>(t.items||j7(r.dictionary)).filter(f=>Hl(r,f.type,Object.fromEntries(Object.entries(f.props||{}).map(([m,h])=>[m,typeof h])))),[r,t.items]),u=x.useMemo(()=>c.map(f=>{const m=f.icon,h=f.type===s.type,g=Object.entries(f.props||{}).filter(([v,b])=>b!==s.props[v]).length===0;return{text:f.name,icon:y.jsx(m,{size:16}),onClick:()=>{r.focus(),r.transact(()=>{for(const v of a)r.updateBlock(v,{type:f.type,props:f.props})})},isSelected:h&&g}}),[r,c,s.props,s.type,a]);return!x.useMemo(()=>u.find(f=>f.isSelected)!==void 0,[u])||!r.isEditable?null:y.jsx(o.FormattingToolbar.Select,{className:"bn-select",items:u})},N7=()=>{const t=Ce(),o=de(),r=De("comments"),{store:a}=De(Wa),s=x.useCallback(()=>{r.startPendingComment(),a.setState(!1)},[r,a]);return y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.comment.tooltip,mainTooltip:t.formatting_toolbar.comment.tooltip,icon:y.jsx(Xb,{}),onClick:s})},A7=()=>he().getExtension("comments")?y.jsx(N7,{}):null,D7=()=>{const t=Ce(),o=de(),r=he(),a=x.useCallback(()=>{r._tiptapEditor.chain().focus().addPendingComment().run()},[r]);return!r._tiptapEditor.commands.addPendingComment||!r.isEditable?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.comment.tooltip,mainTooltip:t.formatting_toolbar.comment.tooltip,icon:y.jsx(Xb,{}),onClick:a})};function Hm(t,o){try{const r=new URL(t,o);if(r.protocol!=="javascript:")return r.href}catch{}return"#"}const H7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:c})=>{var u;const f=((u=c.getSelection())==null?void 0:u.blocks)||[c.getTextCursorPosition().block];if(f.length!==1)return;const m=f[0];if(kt(m,c,m.type,{url:"string"}))return m}}),s=x.useCallback(()=>{a!==void 0&&(r.focus(),r.resolveFileUrl?r.resolveFileUrl(a.props.url).then(c=>window.open(Hm(c,window.location.href))):window.open(Hm(a.props.url,window.location.href)))},[a,r]);return a===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_download.tooltip[a.type]||t.formatting_toolbar.file_download.tooltip.file,mainTooltip:t.formatting_toolbar.file_download.tooltip[a.type]||t.formatting_toolbar.file_download.tooltip.file,icon:y.jsx(m7,{}),onClick:s})},z7=()=>{const t=Ce(),o=de(),r=he(),a=gt({editor:r,selector:({editor:c})=>{var u;if(!c.isEditable)return;const f=((u=c.getSelection())==null?void 0:u.blocks)||[c.getTextCursorPosition().block];if(f.length!==1)return;const m=f[0];if(kt(m,c,m.type,{url:"string",showPreview:"boolean"}))return m}}),s=x.useCallback(()=>{a!==void 0&&Hl(r,a.type,{showPreview:"boolean"})&&r.updateBlock(a.id,{props:{showPreview:!a.props.showPreview}})},[a,r]);return a===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:"Toggle preview",mainTooltip:t.formatting_toolbar.file_preview_toggle.tooltip,icon:y.jsx(a7,{}),isSelected:a.props.showPreview,onClick:s})},L7=()=>{const t=Ce(),o=de(),r=he(),a=De(Ke),s=gt({editor:r,selector:({editor:u})=>{var f;if(!u.isEditable||!u.settings.tables.splitCells)return;const m=((f=u.getSelection())==null?void 0:f.blocks)||[u.getTextCursorPosition().block];if(m.length!==1)return;const h=m[0];if(h.type==="table")return{mergeDirection:a.getMergeDirection(h)}}}),c=x.useCallback(()=>{a?.mergeCells()},[a]);return s===void 0?null:y.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.table_cell_merge.tooltip,mainTooltip:t.formatting_toolbar.table_cell_merge.tooltip,icon:s.mergeDirection==="horizontal"?y.jsx(W8,{}):y.jsx(e7,{}),onClick:c})},k7=()=>he().getExtension(Ke)?y.jsx(L7,{}):null,V7={left:q8,center:Z8,right:Y8,justify:P8},em=t=>{const o=de(),r=Ce(),a=he(),s=gt({editor:a,selector:({editor:f})=>{var m,h;if(!f.isEditable)return;const g=((m=f.getSelection())==null?void 0:m.blocks)||[f.getTextCursorPosition().block],v=g[0];if(kt(v,f,v.type,{textAlignment:Ys.textAlignment}))return{textAlignment:v.props.textAlignment,blocks:g};if(g.length===1&&kt(v,f,"table"))return(h=f.getExtension(Ke))!=null&&h.getCellSelection()?{textAlignment:ei(v.content.rows[0].cells[0]).props.textAlignment,blocks:[v]}:void 0}}),c=x.useCallback(f=>{var m;if(s!==void 0){a.focus();for(const h of s.blocks)if(kt(h,a,h.type,{textAlignment:Ys.textAlignment})&&Hl(a,h.type,{textAlignment:Ys.textAlignment}))a.updateBlock(h,{props:{textAlignment:f}});else if(h.type==="table"){const g=(m=a.getExtension(Ke))==null?void 0:m.getCellSelection();if(!g)continue;const v=h.content.rows.map(b=>({...b,cells:b.cells.map(C=>ei(C))}));g.cells.forEach(({row:b,col:C})=>{v[b].cells[C].props.textAlignment=f}),a.updateBlock(h,{type:"table",content:{...h.content,type:"tableContent",rows:v}}),a.setTextCursorPosition(h)}}},[a,s]);if(s===void 0)return null;const u=V7[t.textAlignment];return y.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":`alignText${t.textAlignment.slice(0,1).toUpperCase()+t.textAlignment.slice(1)}`,onClick:()=>c(t.textAlignment),isSelected:s.textAlignment===t.textAlignment,label:r.formatting_toolbar[`align_${t.textAlignment}`].tooltip,mainTooltip:r.formatting_toolbar[`align_${t.textAlignment}`].tooltip,icon:y.jsx(u,{})})},l2=t=>[y.jsx(_7,{items:t},"blockTypeSelect"),y.jsx(k7,{},"tableCellMergeButton"),y.jsx(w7,{},"fileCaptionButton"),y.jsx(R7,{},"replaceFileButton"),y.jsx(T7,{},"fileRenameButton"),y.jsx(E7,{},"fileDeleteButton"),y.jsx(H7,{},"fileDownloadButton"),y.jsx(z7,{},"filePreviewButton"),y.jsx($s,{basicTextStyle:"bold"},"boldStyleButton"),y.jsx($s,{basicTextStyle:"italic"},"italicStyleButton"),y.jsx($s,{basicTextStyle:"underline"},"underlineStyleButton"),y.jsx($s,{basicTextStyle:"strike"},"strikeStyleButton"),y.jsx(em,{textAlignment:"left"},"textAlignLeftButton"),y.jsx(em,{textAlignment:"center"},"textAlignCenterButton"),y.jsx(em,{textAlignment:"right"},"textAlignRightButton"),y.jsx(x7,{},"colorStyleButton"),y.jsx(M7,{},"nestBlockButton"),y.jsx(O7,{},"unnestBlockButton"),y.jsx(C7,{},"createLinkButton"),y.jsx(A7,{},"addCommentButton"),y.jsx(D7,{},"addTiptapCommentButton")],r2=t=>{const o=de();return y.jsx(o.FormattingToolbar.Root,{className:"bn-toolbar bn-formatting-toolbar",children:t.children||l2(t.blockTypeSelectItems)})},B7=t=>{switch(t){case"left":return"top-start";case"center":return"top";case"right":return"top-end";default:return"top-start"}},a2=t=>{const o=he(),r=De(Wa,{editor:o}),a=qe(Wa,{editor:o}),s=gt({editor:o,selector:({editor:m})=>r.store.state?{from:m.prosemirrorState.selection.from,to:m.prosemirrorState.selection.to}:void 0}),c=gt({editor:o,selector:({editor:m})=>{const h=m.getTextCursorPosition().block;return kt(h,m,h.type,{textAlignment:Ys.textAlignment})?B7(h.props.textAlignment):"top-start"}}),u=x.useMemo(()=>{var m,h;return{...t.floatingUIOptions,useFloatingOptions:{open:a,onOpenChange:(g,v,b)=>{r.store.setState(g),b==="escape-key"&&o.focus()},placement:c,middleware:[Yn(10),ci(),ui()],...(m=t.floatingUIOptions)==null?void 0:m.useFloatingOptions},elementProps:{style:{zIndex:40},...(h=t.floatingUIOptions)==null?void 0:h.elementProps}}},[a,c,t.floatingUIOptions,r.store,o]),f=t.formattingToolbar||r2;return y.jsx(ep,{position:s,...u,children:a&&y.jsx(f,{})})},$7=t=>{const o=de(),r=Ce(),{deleteLink:a}=De(Oc);return y.jsx(o.LinkToolbar.Button,{className:"bn-button",label:r.link_toolbar.delete.tooltip,mainTooltip:r.link_toolbar.delete.tooltip,isSelected:!1,onClick:()=>{var s;a(t.range.from),(s=t.setToolbarOpen)==null||s.call(t,!1)},icon:y.jsx(J8,{})})},U7=t=>{const o=de(),r=Ce();return y.jsxs(o.Generic.Popover.Root,{onOpenChange:t.setToolbarPositionFrozen,children:[y.jsx(o.Generic.Popover.Trigger,{children:y.jsx(o.LinkToolbar.Button,{className:"bn-button",mainTooltip:r.link_toolbar.edit.tooltip,isSelected:!1,children:r.link_toolbar.edit.text})}),y.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:y.jsx(o2,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen})})]})},G7=t=>{const o=de(),r=Ce();return y.jsx(o.LinkToolbar.Button,{className:"bn-button",mainTooltip:r.link_toolbar.open.tooltip,label:r.link_toolbar.open.tooltip,isSelected:!1,onClick:()=>{window.open(Hm(t.url,window.location.href),"_blank")},icon:y.jsx(p7,{})})},Z7=t=>{const o=de();return y.jsx(o.LinkToolbar.Root,{className:"bn-toolbar bn-link-toolbar",children:t.children||y.jsxs(y.Fragment,{children:[y.jsx(U7,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen}),y.jsx(G7,{url:t.url}),y.jsx($7,{range:t.range,setToolbarOpen:t.setToolbarOpen})]})})},P7=t=>{const o=he(),[r,a]=x.useState(!1),[s,c]=x.useState(!1),u=De(Oc),[f,m]=x.useState(void 0);x.useEffect(()=>{const b=()=>{const M=u.getLinkAtSelection();if(!M){m(void 0),s||a(!1);return}m({cursorType:"text",url:M.mark.attrs.href,text:M.text,range:M.range,element:u.getLinkElementAtPos(M.range.from)}),s||a(!0)},C=M=>{if(f!==void 0&&f.cursorType==="text"||!(M.target instanceof HTMLElement))return;const O=u.getLinkAtElement(M.target);O&&m({cursorType:"mouse",url:O.mark.attrs.href,text:O.text,range:O.range,element:u.getLinkElementAtPos(O.range.from)})},E=o.onChange(b),w=o.onSelectionChange(b),T=o.domElement;return T?.addEventListener("mouseover",C),()=>{E(),w(),T?.removeEventListener("mouseover",C)}},[o,o.domElement,u,f,s]);const h=x.useMemo(()=>{var b,C,E;return{...t.floatingUIOptions,useFloatingOptions:{open:r,onOpenChange:(w,T,M)=>{s||f!==void 0&&f.cursorType==="text"&&M==="hover"||(M==="escape-key"&&o.focus(),a(w))},placement:"top-start",middleware:[Yn(10),ui()],...(b=t.floatingUIOptions)==null?void 0:b.useFloatingOptions},useHoverProps:{enabled:f!==void 0&&f.cursorType==="mouse",delay:{open:250,close:250},handleClose:t8(),...(C=t.floatingUIOptions)==null?void 0:C.useHoverProps},elementProps:{style:{zIndex:50},...(E=t.floatingUIOptions)==null?void 0:E.elementProps}}},[o,f,t.floatingUIOptions,r,s]),g=x.useMemo(()=>f!=null&&f.element?{element:f.element}:void 0,[f?.element]);if(!o.isEditable)return null;const v=t.linkToolbar||Z7;return y.jsx(Un,{reference:g,...h,children:f&&y.jsx(v,{url:f.url,text:f.text,range:f.range,setToolbarOpen:a,setToolbarPositionFrozen:c})})};function q7(t){return me({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(t)}const Y7=()=>{const t=de(),o=Ce(),r=he(),a=De(Eo),s=qe(Qn,{editor:r,selector:u=>u?.block}),c=x.useCallback(()=>{if(s===void 0)return;const u=s.content;if(u!==void 0&&Array.isArray(u)&&u.length===0)r.setTextCursorPosition(s),a.openSuggestionMenu("/");else{const f=r.insertBlocks([{type:"paragraph"}],s,"after")[0];r.setTextCursorPosition(f),a.openSuggestionMenu("/")}},[s,r,a]);return s===void 0?null:y.jsx(t.SideMenu.Button,{className:"bn-button",label:o.side_menu.add_block_label,icon:y.jsx(q7,{size:24,onClick:c,"data-test":"dragHandleAdd"})})};function i2(t){return me({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}function X7(t){return me({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m7 10 5 5 5-5z"},child:[]}]})(t)}const I7=t=>{const o=de(),r=he(),a=qe(Qn,{editor:r,selector:s=>s?.block});return a===void 0||!kt(a,r,a.type,{textColor:"string"})&&!kt(a,r,a.type,{backgroundColor:"string"})?null:y.jsxs(o.Generic.Menu.Root,{position:"right",sub:!0,children:[y.jsx(o.Generic.Menu.Trigger,{sub:!0,children:y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children})}),y.jsx(o.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:y.jsx($c,{iconSize:18,text:kt(a,r,a.type,{textColor:"string"})&&Hl(r,a.type,{textColor:"string"})?{color:a.props.textColor,setColor:s=>r.updateBlock(a,{type:a.type,props:{textColor:s}})}:void 0,background:kt(a,r,a.type,{backgroundColor:"string"})&&Hl(r,a.type,{backgroundColor:"string"})?{color:a.props.backgroundColor,setColor:s=>r.updateBlock(a,{props:{backgroundColor:s}})}:void 0})})]})},Q7=t=>{const o=de(),r=he(),a=qe(Qn,{editor:r,selector:s=>s?.block});return a===void 0?null:y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",onClick:()=>r.removeBlocks([a]),children:t.children})},F7=t=>{const o=de(),r=he(),a=qe(Qn,{editor:r,selector:c=>c?.block});if(a===void 0||a.type!=="table"||!r.settings.tables.headers)return null;const s=!!a.content.headerRows;return y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:s,onClick:()=>{r.updateBlock(a,{content:{...a.content,headerRows:s?void 0:1}})},children:t.children})},K7=t=>{const o=de(),r=he(),a=qe(Qn,{editor:r,selector:c=>c?.block});if(a===void 0||a.type!=="table"||!r.settings.tables.headers)return null;const s=!!a.content.headerCols;return y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:s,onClick:()=>{r.updateBlock(a,{content:{...a.content,headerCols:s?void 0:1}})},children:t.children})},J7=t=>{const o=de(),r=Ce();return y.jsx(o.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-drag-handle-menu",children:t.children||y.jsxs(y.Fragment,{children:[y.jsx(Q7,{children:r.drag_handle.delete_menuitem}),y.jsx(I7,{children:r.drag_handle.colors_menuitem}),y.jsx(F7,{children:r.drag_handle.header_row_menuitem}),y.jsx(K7,{children:r.drag_handle.header_column_menuitem})]})})},W7=t=>{const o=de(),r=Ce(),a=De(Qn),s=qe(Qn,{selector:u=>u?.block});if(s===void 0)return null;const c=t.dragHandleMenu||J7;return y.jsxs(o.Generic.Menu.Root,{onOpenChange:u=>{u?a.freezeMenu():a.unfreezeMenu()},position:"left",children:[y.jsx(o.Generic.Menu.Trigger,{children:y.jsx(o.SideMenu.Button,{label:r.side_menu.drag_handle_label,draggable:!0,onDragStart:u=>a.blockDragStart(u,s),onDragEnd:a.blockDragEnd,className:"bn-button",icon:y.jsx(i2,{size:24,"data-test":"dragHandle"})})}),y.jsx(c,{children:t.children})]})},e9=t=>{const o=de(),r=he(),a=qe(Qn,{editor:r,selector:c=>c?.block}),s=x.useMemo(()=>{var c;if(a===void 0)return{};const u={"data-block-type":a.type};return a.type==="heading"&&(u["data-level"]=a.props.level.toString()),(c=r.schema.blockSpecs[a.type].implementation.meta)!=null&&c.fileBlockAccept&&(a.props.url?u["data-url"]="true":u["data-url"]="false"),u},[a,r.schema.blockSpecs]);return y.jsx(o.SideMenu.Root,{className:"bn-side-menu",...s,children:t.children||y.jsxs(y.Fragment,{children:[y.jsx(Y7,{}),y.jsx(W7,{dragHandleMenu:t.dragHandleMenu})]})})},t9=t=>{const o=qe(Qn,{selector:u=>u!==void 0?{show:u.show,block:u.block}:void 0}),{show:r,block:a}=o||{},s=x.useMemo(()=>{var u,f,m;return{...t.floatingUIOptions,useFloatingOptions:{open:r,placement:"left-start",...(u=t.floatingUIOptions)==null?void 0:u.useFloatingOptions},useDismissProps:{enabled:!1,...(f=t.floatingUIOptions)==null?void 0:f.useDismissProps},elementProps:{style:{zIndex:20},...(m=t.floatingUIOptions)==null?void 0:m.elementProps}}},[t.floatingUIOptions,r]),c=t.sideMenu||e9;return y.jsx(Zb,{blockId:r?a?.id:void 0,...s,children:a?.id&&y.jsx(c,{})})};async function n9(t,o){return(await Rw(t,o)).map(({id:r,onItemClick:a})=>({id:r,onItemClick:a,icon:r}))}function o9(t){const o=de(),r=Ce(),{items:a,loadingState:s,selectedIndex:c,onItemClick:u,columns:f}=t,m=s==="loading-initial"||s==="loading"?y.jsx(o.GridSuggestionMenu.Loader,{className:"bn-grid-suggestion-menu-loader",columns:f}):null,h=x.useMemo(()=>{const g=[];for(let v=0;v<a.length;v++){const b=a[v];g.push(y.jsx(o.GridSuggestionMenu.Item,{className:"bn-grid-suggestion-menu-item",item:b,id:`bn-grid-suggestion-menu-item-${v}`,isSelected:v===c,onClick:()=>u?.(b)},b.id))}return g},[o,a,u,c]);return y.jsxs(o.GridSuggestionMenu.Root,{id:"bn-grid-suggestion-menu",columns:f,className:"bn-grid-suggestion-menu",children:[m,h,h.length===0&&t.loadingState==="loaded"&&y.jsx(o.GridSuggestionMenu.EmptyItem,{className:"bn-grid-suggestion-menu-empty-item",columns:f,children:r.suggestion_menu.no_items_title})]})}function s2(t,o,r,a=3){const s=x.useRef(0);x.useEffect(()=>{o!==void 0&&(t.length>0?s.current=o.length:o.length-s.current>a&&r())},[r,a,t.length,o])}function c2(t,o){const[r,a]=x.useState([]),[s,c]=x.useState(!1),u=x.useRef(void 0),f=x.useRef(void 0);return x.useEffect(()=>{const m=t;u.current=t,c(!0),o(t).then(h=>{u.current===m&&(a(h),c(!1),f.current=m)})},[t,o]),{items:r||[],usedQuery:f.current,loadingState:f.current===void 0?"loading-initial":s?"loading":"loaded"}}function l9(t,o,r,a,s){const[c,u]=x.useState(0),f=a!==void 0&&a>1;return x.useEffect(()=>{const m=g=>(g.key==="ArrowLeft"&&(g.preventDefault(),r.length&&u((c-1+r.length)%r.length)),g.key==="ArrowRight"&&(g.preventDefault(),r.length&&u((c+1+r.length)%r.length)),g.key==="ArrowUp"?(g.preventDefault(),r.length&&u((c-a+r.length)%r.length),!0):g.key==="ArrowDown"?(g.preventDefault(),r.length&&u((c+a)%r.length),!0):g.key==="Enter"&&!g.isComposing?(g.stopPropagation(),g.preventDefault(),r.length&&s?.(r[c]),!0):!1),h=t.domElement;return h?.addEventListener("keydown",m,!0),()=>{h?.removeEventListener("keydown",m,!0)}},[t.domElement,r,c,s,a,f]),x.useEffect(()=>{u(0)},[o]),{selectedIndex:r.length===0?void 0:c}}function r9(t){const o=On().setContentEditableProps,r=he(),{getItems:a,gridSuggestionMenuComponent:s,query:c,clearQuery:u,closeMenu:f,onItemClick:m,columns:h}=t,g=x.useCallback(w=>{f(),u(),m?.(w)},[m,f,u]),{items:v,usedQuery:b,loadingState:C}=c2(c,a);s2(v,b,f);const{selectedIndex:E}=l9(r,c,v,h,g);return x.useEffect(()=>(o(w=>({...w,"aria-expanded":!0,"aria-controls":"bn-suggestion-menu"})),()=>{o(w=>({...w,"aria-expanded":!1,"aria-controls":void 0}))}),[o]),x.useEffect(()=>(o(w=>({...w,"aria-activedescendant":E?"bn-suggestion-menu-item-"+E:void 0})),()=>{o(w=>({...w,"aria-activedescendant":void 0}))}),[o,E]),y.jsx(s,{items:v,onItemClick:g,loadingState:C,selectedIndex:E,columns:h})}function a9(t){const o=he(),{triggerCharacter:r,gridSuggestionMenuComponent:a,columns:s,minQueryLength:c,onItemClick:u,getItems:f}=t,m=x.useMemo(()=>u||(E=>{E.onItemClick(o)}),[o,u]),h=x.useMemo(()=>f||(async E=>await n9(o,E)),[o,f]),g=De(Eo);x.useEffect(()=>{g.addTriggerCharacter(r)},[g,r]);const v=qe(Eo),b=qe(Eo,{selector:E=>{var w;return{element:((w=o.domElement)==null?void 0:w.firstChild)||void 0,getBoundingClientRect:()=>E?.referencePos||new DOMRect}}}),C=x.useMemo(()=>{var E,w;return{...t.floatingUIOptions,useFloatingOptions:{open:v?.show&&v?.triggerCharacter===r,onOpenChange:T=>{T||g.closeMenu()},placement:"bottom-start",middleware:[Yn(10),jb({allowedPlacements:["bottom-start","top-start"],padding:10}),ci(),fc({apply({elements:T,availableHeight:M}){T.floating.style.maxHeight=`${Math.max(0,M)}px`},padding:10})],...(E=t.floatingUIOptions)==null?void 0:E.useFloatingOptions},elementProps:{onMouseDownCapture:T=>T.preventDefault(),style:{zIndex:70},...(w=t.floatingUIOptions)==null?void 0:w.elementProps}}},[t.floatingUIOptions,v?.show,v?.triggerCharacter,g,r]);return!v||!v.ignoreQueryLength&&c&&(v.query.startsWith(" ")||v.query.length<c)?null:y.jsx(Un,{reference:b,...C,children:r&&y.jsx(r9,{query:v.query,closeMenu:g.closeMenu,clearQuery:g.clearQuery,getItems:h,columns:s,gridSuggestionMenuComponent:a||o9,onItemClick:m})})}function i9(t){const o=de(),r=Ce(),{items:a,loadingState:s,selectedIndex:c,onItemClick:u}=t,f=s==="loading-initial"||s==="loading"?y.jsx(o.SuggestionMenu.Loader,{className:"bn-suggestion-menu-loader"}):null,m=x.useMemo(()=>{let h;const g=[];for(let v=0;v<a.length;v++){const b=a[v];b.group!==h&&(h=b.group,g.push(y.jsx(o.SuggestionMenu.Label,{className:"bn-suggestion-menu-label",children:h},h))),g.push(y.jsx(o.SuggestionMenu.Item,{className:ht("bn-suggestion-menu-item",b.size==="small"?"bn-suggestion-menu-item-small":""),item:b,id:`bn-suggestion-menu-item-${v}`,isSelected:v===c,onClick:()=>u?.(b)},b.title))}return g},[o,a,u,c]);return y.jsxs(o.SuggestionMenu.Root,{id:"bn-suggestion-menu",className:"bn-suggestion-menu",children:[m,m.length===0&&(t.loadingState==="loading"||t.loadingState==="loaded")&&y.jsx(o.SuggestionMenu.EmptyItem,{className:"bn-suggestion-menu-item",children:r.suggestion_menu.no_items_title}),f]})}function s9(t,o){const[r,a]=x.useState(0);return{selectedIndex:r,setSelectedIndex:a,handler:s=>{if(s.key==="ArrowUp")return s.preventDefault(),t.length&&a((r-1+t.length)%t.length),!0;if(s.key==="ArrowDown")return s.preventDefault(),t.length&&a((r+1)%t.length),!0;if(s.key==="PageUp")return s.preventDefault(),t.length&&a(0),!0;if(s.key==="PageDown")return s.preventDefault(),t.length&&a(t.length-1),!0;const c=c9(s)?s.nativeEvent.isComposing:s.isComposing;return s.key==="Enter"&&!c?(s.preventDefault(),s.stopPropagation(),t.length&&o?.(t[r]),!0):!1}}}function c9(t){return t.nativeEvent!==void 0}function u9(t,o,r,a,s){const{selectedIndex:c,setSelectedIndex:u,handler:f}=s9(r,a);return x.useEffect(()=>{const m=t.domElement;return m?.addEventListener("keydown",f,!0),()=>{m?.removeEventListener("keydown",f,!0)}},[t.domElement,r,c,a,s,f]),x.useEffect(()=>{u(0)},[o,u]),{selectedIndex:r.length===0?void 0:c}}function f9(t){const o=On().setContentEditableProps,r=he(),{getItems:a,suggestionMenuComponent:s,query:c,clearQuery:u,closeMenu:f,onItemClick:m}=t,h=x.useCallback(E=>{f(),u(),m?.(E)},[m,f,u]),{items:g,usedQuery:v,loadingState:b}=c2(c,a);s2(g,v,f);const{selectedIndex:C}=u9(r,c,g,h);return x.useEffect(()=>(o(E=>({...E,"aria-expanded":!0,"aria-controls":"bn-suggestion-menu"})),()=>{o(E=>({...E,"aria-expanded":!1,"aria-controls":void 0}))}),[o]),x.useEffect(()=>(o(E=>({...E,"aria-activedescendant":C?"bn-suggestion-menu-item-"+C:void 0})),()=>{o(E=>({...E,"aria-activedescendant":void 0}))}),[o,C]),y.jsx(s,{items:g,onItemClick:h,loadingState:b,selectedIndex:C})}const d9={heading:pc,heading_2:hc,heading_3:gc,heading_4:Ib,heading_5:Qb,heading_6:Fb,toggle_heading:pc,toggle_heading_2:hc,toggle_heading_3:gc,quote:t2,toggle_list:n2,numbered_list:Wb,bullet_list:e2,check_list:Jb,paragraph:tp,table:n7,image:r7,video:l7,audio:s7,file:G8,emoji:v7,code_block:I8,divider:g7};function m9(t){return WC(t).map(o=>{const r=d9[o.key];return{...o,icon:y.jsx(r,{size:18})}})}function p9(t){const o=he(),{triggerCharacter:r,suggestionMenuComponent:a,minQueryLength:s,onItemClick:c,getItems:u}=t,f=x.useMemo(()=>c||(C=>{C.onItemClick(o)}),[o,c]),m=x.useMemo(()=>u||(async C=>JC(m9(o),C)),[o,u]),h=De(Eo);x.useEffect(()=>{h.addTriggerCharacter(r)},[h,r]);const g=qe(Eo),v=qe(Eo,{selector:C=>{var E;return{element:((E=o.domElement)==null?void 0:E.firstChild)||void 0,getBoundingClientRect:()=>C?.referencePos||new DOMRect}}}),b=x.useMemo(()=>{var C,E;return{...t.floatingUIOptions,useFloatingOptions:{open:g?.show&&g?.triggerCharacter===r,onOpenChange:w=>{w||h.closeMenu()},placement:"bottom-start",middleware:[Yn(10),jb({allowedPlacements:["bottom-start","top-start"],padding:10}),ci(),fc({apply({elements:w,availableHeight:T}){w.floating.style.maxHeight=`${Math.max(0,T)}px`},padding:10})],...(C=t.floatingUIOptions)==null?void 0:C.useFloatingOptions},elementProps:{onMouseDownCapture:w=>w.preventDefault(),style:{zIndex:80},...(E=t.floatingUIOptions)==null?void 0:E.elementProps}}},[t.floatingUIOptions,g?.show,g?.triggerCharacter,h,r]);return!g||!g.ignoreQueryLength&&s&&(g.query.startsWith(" ")||g.query.length<s)?null:y.jsx(Un,{reference:v,...b,children:r&&y.jsx(f9,{query:g.query,closeMenu:h.closeMenu,clearQuery:h.clearQuery,getItems:m,suggestionMenuComponent:a||i9,onItemClick:f})})}const h9=(t,o=.3)=>{const r=Math.floor(t)+o,a=Math.ceil(t)-o;return t>=r&&t<=a?Math.round(t):t<r?Math.floor(t):Math.ceil(t)},g9=t=>{const o=de(),r=he(),a=De(Ke),s=qe(Ke,{selector:g=>g?.block}),c=x.useRef(!1),[u,f]=x.useState(),m=x.useCallback(g=>{a.freezeHandles(),t.hideOtherElements(!0),s&&(f({originalContent:s.content,originalCroppedContent:{rows:a.cropEmptyRowsOrColumns(s,t.orientation==="addOrRemoveColumns"?"columns":"rows")},startPos:t.orientation==="addOrRemoveColumns"?g.clientX:g.clientY}),c.current=!1,g.preventDefault())},[s,t,a]),h=x.useCallback(()=>{!s||c.current||r.updateBlock(s,{type:"table",content:{...s.content,rows:t.orientation==="addOrRemoveColumns"?a.addRowsOrColumns(s,"columns",1):a.addRowsOrColumns(s,"rows",1)}})},[s,r,t.orientation,a]);return x.useEffect(()=>{const g=v=>{var b,C;if(!s)return;if(!u)throw new Error("editingState is undefined");c.current=!0;const E=(t.orientation==="addOrRemoveColumns"?v.clientX:v.clientY)-u.startPos,w=t.orientation==="addOrRemoveColumns"?((b=u.originalCroppedContent.rows[0])==null?void 0:b.cells.length)??0:u.originalCroppedContent.rows.length,T=t.orientation==="addOrRemoveColumns"?((C=u.originalContent.rows[0])==null?void 0:C.cells.length)??0:u.originalContent.rows.length,M=t.orientation==="addOrRemoveColumns"?s.content.rows[0].cells.length:s.content.rows.length,O=T+h9(E/(t.orientation==="addOrRemoveColumns"?l4:r4),.3);O>=w&&O>0&&O!==M&&(r.updateBlock(s,{type:"table",content:{...s.content,rows:t.orientation==="addOrRemoveColumns"?a.addRowsOrColumns({type:"table",content:u.originalCroppedContent},"columns",O-w):a.addRowsOrColumns({type:"table",content:u.originalCroppedContent},"rows",O-w)}}),s.content&&r.setTextCursorPosition(s))};return u&&window.addEventListener("mousemove",g),()=>{window.removeEventListener("mousemove",g)}},[s,u,r,t.orientation,a]),x.useEffect(()=>{const g=()=>{t.hideOtherElements(!1),a.unfreezeHandles(),f(void 0)};return u&&window.addEventListener("mouseup",g),()=>{window.removeEventListener("mouseup",g)}},[u,t,a]),r.isEditable?y.jsx(o.TableHandle.ExtendButton,{className:ht("bn-extend-button",t.orientation==="addOrRemoveColumns"?"bn-extend-button-add-remove-columns":"bn-extend-button-add-remove-rows",u!==null?"bn-extend-button-editing":""),onClick:h,onMouseDown:m,children:t.children||y.jsx(c7,{size:18,"data-test":"extendButton"})}):null},ny=t=>{const o=de(),r=Ce(),a=De(Ke),s=qe(Ke,{selector:c=>t.orientation==="column"?c?.colIndex:c?.rowIndex});return a===void 0||s===void 0?null:y.jsx(o.Generic.Menu.Item,{onClick:()=>{a.addRowOrColumn(s,t.orientation==="row"?{orientation:"row",side:t.side}:{orientation:"column",side:t.side})},children:r.table_handle[`add_${t.side}_menuitem`]})},v9=t=>{const o=de(),r=Ce(),a=De(Ke),s=qe(Ke,{selector:c=>t.orientation==="column"?c?.colIndex:c?.rowIndex});return a===void 0||s===void 0?null:y.jsx(o.Generic.Menu.Item,{onClick:()=>a.removeRowOrColumn(s,t.orientation),children:t.orientation==="row"?r.table_handle.delete_row_menuitem:r.table_handle.delete_column_menuitem})},y9=t=>{const o=de(),r=Ce(),a=he(),s=De(Ke),{block:c,index:u}=qe(Ke,{selector:g=>({block:g?.block,index:t.orientation==="column"?g?.colIndex:g?.rowIndex})}),f=x.useMemo(()=>s===void 0||c===void 0||u===void 0?[]:t.orientation==="row"?s.getCellsAtRowHandle(c,u):s.getCellsAtColumnHandle(c,u),[c,u,t.orientation,s]),m=(g,v)=>{if(c===void 0)return;const b=c.content.rows.map(C=>({...C,cells:C.cells.map(E=>ei(E))}));f.forEach(({row:C,col:E})=>{v==="text"?b[C].cells[E].props.textColor=g:b[C].cells[E].props.backgroundColor=g}),a.updateBlock(c,{type:"table",content:{...c.content,rows:b}}),a.setTextCursorPosition(c)};if(!f||!f[0]||!s||a.settings.tables.cellTextColor===!1&&a.settings.tables.cellBackgroundColor===!1)return null;const h=ei(f[0].cell);return y.jsxs(o.Generic.Menu.Root,{position:"right",sub:!0,children:[y.jsx(o.Generic.Menu.Trigger,{sub:!0,children:y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children||r.drag_handle.colors_menuitem})}),y.jsx(o.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:y.jsx($c,{iconSize:18,text:a.settings.tables.cellTextColor?{color:f.every(({cell:g})=>ti(g)&&g.props.textColor===h.props.textColor)?h.props.textColor:"default",setColor:g=>{m(g,"text")}}:void 0,background:a.settings.tables.cellBackgroundColor?{color:f.every(({cell:g})=>ti(g)&&g.props.backgroundColor===h.props.backgroundColor)?h.props.backgroundColor:"default",setColor:g=>m(g,"background")}:void 0})})]})},b9=t=>{const o=de(),r=Ce(),a=he(),s=De(Ke),{block:c,index:u}=qe(Ke,{selector:m=>({block:m?.block,index:t.orientation==="column"?m?.colIndex:m?.rowIndex})});if(s===void 0||c===void 0||u!==0||t.orientation!=="row"||!a.settings.tables.headers)return null;const f=!!c.content.headerRows;return y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:f,onClick:()=>{a.updateBlock(c,{...c,content:{...c.content,headerRows:f?void 0:1}})},children:r.drag_handle.header_row_menuitem})},x9=t=>{const o=de(),r=Ce(),a=he(),s=De(Ke),c=qe(Ke,{selector:m=>m?.block}),u=qe(Ke,{selector:m=>t.orientation==="column"?m?.colIndex:m?.rowIndex});if(!s||u!==0||!c||t.orientation!=="column"||!a.settings.tables.headers)return null;const f=!!c.content.headerCols;return y.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:f,onClick:()=>{a.updateBlock(c,{...c,content:{...c.content,headerCols:f?void 0:1}})},children:r.drag_handle.header_column_menuitem})},S9=t=>{const o=de();return y.jsx(o.Generic.Menu.Dropdown,{className:"bn-table-handle-menu",children:t.children||y.jsxs(y.Fragment,{children:[y.jsx(v9,{orientation:t.orientation}),y.jsx(ny,{orientation:t.orientation,side:t.orientation==="row"?"above":"left"}),y.jsx(ny,{orientation:t.orientation,side:t.orientation==="row"?"below":"right"}),y.jsx(b9,{orientation:t.orientation}),y.jsx(x9,{orientation:t.orientation}),y.jsx(y9,{orientation:t.orientation})]})})},C9=t=>{const o=he(),r=de(),[a,s]=x.useState(!1),c=t.tableHandleMenu||S9,u=De(Ke),f=qe(Ke),m=x.useMemo(()=>!u||!f||!f.block||f.block.type!=="table"?!1:t.orientation==="column"?u.getCellsAtColumnHandle(f.block,f.colIndex).every(({cell:h})=>$y(h)===1):u.getCellsAtRowHandle(f.block,f.rowIndex).every(({cell:h})=>Uy(h)===1),[t.orientation,f,u]);return f?y.jsxs(r.Generic.Menu.Root,{onOpenChange:h=>{h?(u.freezeHandles(),t.hideOtherElements(!0)):(u.unfreezeHandles(),t.hideOtherElements(!1),o.focus())},position:"right",children:[y.jsx(r.Generic.Menu.Trigger,{children:y.jsx(r.TableHandle.Root,{className:ht("bn-table-handle",a?"bn-table-handle-dragging":"",m?"":"bn-table-handle-not-draggable"),draggable:m,onDragStart:h=>{s(!0),t.hideOtherElements(!0),t.orientation==="column"?u.colDragStart(h):u.rowDragStart(h)},onDragEnd:()=>{u.dragEnd(),t.hideOtherElements(!1),s(!1)},style:t.orientation==="column"?{transform:"rotate(0.25turn)"}:void 0,children:t.children||y.jsx(i2,{size:24,"data-test":"tableHandle"})})}),y.jsx(c,{orientation:t.orientation})]}):null},w9=t=>{var o,r;const a=de(),s=Ce(),c=he(),{block:u,colIndex:f,rowIndex:m}=qe(Ke,{selector:v=>({block:v?.block,colIndex:v?.colIndex,rowIndex:v?.rowIndex})}),h=(v,b)=>{if(u===void 0||f===void 0||m===void 0)return;const C=u.content.rows.map(E=>({...E,cells:E.cells.map(w=>ei(w))}));b==="text"?C[m].cells[f].props.textColor=v:C[m].cells[f].props.backgroundColor=v,c.updateBlock(u,{type:"table",content:{...u.content,rows:C}}),c.setTextCursorPosition(u)};if(u===void 0||f===void 0||m===void 0)return null;const g=(r=(o=u.content.rows[m])==null?void 0:o.cells)==null?void 0:r[f];return!g||c.settings.tables.cellTextColor===!1&&c.settings.tables.cellBackgroundColor===!1?null:y.jsxs(a.Generic.Menu.Root,{position:"right",sub:!0,children:[y.jsx(a.Generic.Menu.Trigger,{sub:!0,children:y.jsx(a.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children||s.drag_handle.colors_menuitem})}),y.jsx(a.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:y.jsx($c,{iconSize:18,text:c.settings.tables.cellTextColor?{color:ti(g)?g.props.textColor:"default",setColor:v=>h(v,"text")}:void 0,background:c.settings.tables.cellBackgroundColor?{color:ti(g)?g.props.backgroundColor:"default",setColor:v=>h(v,"background")}:void 0})})]})},E9=()=>{var t,o;const r=de(),a=Ce(),s=he(),c=De(Ke),{block:u,colIndex:f,rowIndex:m}=qe(Ke,{selector:g=>({block:g?.block,colIndex:g?.colIndex,rowIndex:g?.rowIndex})});if(u===void 0||f===void 0||m===void 0)return null;const h=(o=(t=u.content.rows[m])==null?void 0:t.cells)==null?void 0:o[f];return!h||!ti(h)||Uy(h)===1&&$y(h)===1||!s.settings.tables.splitCells?null:y.jsx(r.Generic.Menu.Item,{onClick:()=>{c.splitCell({row:m,col:f})},children:a.table_handle.split_cell_menuitem})},T9=t=>{const o=de();return y.jsx(o.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-table-handle-menu",children:t.children||y.jsxs(y.Fragment,{children:[y.jsx(E9,{}),y.jsx(w9,{})]})})},R9=t=>{const o=de(),r=he(),a=De(Ke),s=t.tableCellMenu||T9;return!r.settings.tables.splitCells&&!r.settings.tables.cellBackgroundColor&&!r.settings.tables.cellTextColor?null:y.jsxs(o.Generic.Menu.Root,{onOpenChange:c=>{c?(a.freezeHandles(),t.hideOtherElements(!0)):(a.unfreezeHandles(),t.hideOtherElements(!1),r.focus())},position:"right",children:[y.jsx(o.Generic.Menu.Trigger,{children:y.jsx(o.Generic.Menu.Button,{className:"bn-table-cell-handle",children:t.children||y.jsx(X7,{size:12,"data-test":"tableCellHandle"})})}),y.jsx(s,{})]})},M9=t=>{const o=he(),[r,a]=x.useState(),s=qe(Ke),c=x.useMemo(()=>{const g={};if(s===void 0)return{};const v=By(s.block.id,o.prosemirrorState.doc);if(!v)return{};const b=v.posBeforeNode+1,C=o.prosemirrorView.domAtPos(b+1).node;if(!(C instanceof Element))return{};if(g.tableReference={element:C},s.rowIndex===void 0||s.colIndex===void 0)return g;const E=o.prosemirrorState.doc.resolve(b+1).posAtIndex(s.rowIndex),w=o.prosemirrorState.doc.resolve(E+1).posAtIndex(s.colIndex),T=o.prosemirrorView.domAtPos(w+1).node;return T instanceof Element?(g.cellReference={element:T},g.rowReference={element:C,getBoundingClientRect:()=>{const M=C.getBoundingClientRect(),O=T.getBoundingClientRect();return new DOMRect(M.x,s.draggingState&&s.draggingState.draggedCellOrientation==="row"?s.draggingState.mousePos-O.height/2:O.y,M.width,O.height)}},g.columnReference={element:C,getBoundingClientRect:()=>{const M=C.getBoundingClientRect(),O=T.getBoundingClientRect();return new DOMRect(s.draggingState&&s.draggingState.draggedCellOrientation==="col"?s.draggingState.mousePos-O.width/2:O.x,M.y,O.width,M.height)}},g):{}},[o,s]),u=x.useMemo(()=>s!==void 0?{rowTableHandle:{useFloatingOptions:{open:s.show&&s.rowIndex!==void 0&&(!r||r==="rowTableHandle"),placement:"left",middleware:[Yn(-10)]},elementProps:{style:{zIndex:10}}},columnTableHandle:{useFloatingOptions:{open:s.show&&s.colIndex!==void 0&&(!r||r==="columnTableHandle"),placement:"top",middleware:[Yn(-12)]},elementProps:{style:{zIndex:10}}},tableCellHandle:{useFloatingOptions:{open:s.show&&s.rowIndex!==void 0&&s.colIndex!==void 0&&(!r||r==="tableCellHandle"),placement:"top-end",middleware:[Yn({mainAxis:-15,crossAxis:-1})]},elementProps:{style:{zIndex:10}}},extendRowsButton:{useFloatingOptions:{open:s.show&&s.showAddOrRemoveRowsButton&&(!r||r==="extendRowsButton"),placement:"bottom",middleware:[fc({apply({rects:g,elements:v}){Object.assign(v.floating.style,{width:`${g.reference.width}px`})}})]},elementProps:{style:{zIndex:10}}},extendColumnsButton:{useFloatingOptions:{open:s.show&&s.showAddOrRemoveColumnsButton&&(!r||r==="extendColumnsButton"),placement:"right",middleware:[fc({apply({rects:g,elements:v}){Object.assign(v.floating.style,{height:`${g.reference.height}px`})}})]},elementProps:{style:{zIndex:10}}}}:void 0,[r,s]);if(!s)return null;const f=t.tableHandle||C9,m=t.extendButton||g9,h=t.tableCellHandle||R9;return y.jsxs(y.Fragment,{children:[y.jsx(Un,{reference:c?.rowReference,...u?.rowTableHandle,children:s.show&&s.rowIndex!==void 0&&(!r||r==="rowTableHandle")&&y.jsx(f,{orientation:"row",hideOtherElements:g=>a(g?"rowTableHandle":void 0)})}),y.jsx(Un,{reference:c?.columnReference,...u?.columnTableHandle,children:s.show&&s.colIndex!==void 0&&(!r||r==="columnTableHandle")&&y.jsx(f,{orientation:"column",hideOtherElements:g=>a(g?"columnTableHandle":void 0)})}),y.jsx(Un,{reference:c?.cellReference,...u?.tableCellHandle,children:s.show&&s.rowIndex!==void 0&&s.colIndex!==void 0&&(!r||r==="tableCellHandle")&&y.jsx(h,{hideOtherElements:g=>a(g?"tableCellHandle":void 0)})}),y.jsx(Un,{reference:c?.tableReference,...u?.extendRowsButton,children:s.show&&s.showAddOrRemoveRowsButton&&(!r||r==="extendRowsButton")&&y.jsx(m,{orientation:"addOrRemoveRows",hideOtherElements:g=>a(g?"extendRowsButton":void 0)})}),y.jsx(Un,{reference:c?.tableReference,...u?.extendColumnsButton,children:s.show&&s.showAddOrRemoveColumnsButton&&(!r||r==="extendColumnsButton")&&y.jsx(m,{orientation:"addOrRemoveColumns",hideOtherElements:g=>a(g?"extendColumnsButton":void 0)})})]})},O9=x.lazy(()=>Promise.resolve().then(()=>K9)),j9=x.lazy(()=>Promise.resolve().then(()=>eE));function _9(t){const o=he();if(!o)throw new Error("BlockNoteDefaultUI must be used within a BlockNoteContext.Provider");return y.jsxs(y.Fragment,{children:[o.getExtension(Wa)&&t.formattingToolbar!==!1&&y.jsx(a2,{}),o.getExtension(Oc)&&t.linkToolbar!==!1&&y.jsx(P7,{}),o.getExtension(Eo)&&t.slashMenu!==!1&&y.jsx(p9,{triggerCharacter:"/"}),o.getExtension(Eo)&&t.emojiPicker!==!1&&y.jsx(a9,{triggerCharacter:":",columns:10,minQueryLength:2}),o.getExtension(Qn)&&t.sideMenu!==!1&&y.jsx(t9,{}),o.getExtension(xm)&&t.filePanel!==!1&&y.jsx(C8,{}),o.getExtension(Ke)&&t.tableHandles!==!1&&y.jsx(M9,{}),o.getExtension(gn)&&t.comments!==!1&&y.jsxs(x.Suspense,{children:[y.jsx(O9,{}),y.jsx(j9,{})]})]})}function N9(t,o){const r=On();o||(o=r?.editor),x.useEffect(()=>{if(!o)throw new Error("'editor' is required, either from BlockNoteContext or as a function argument");return o.onChange(t)},[t,o])}function A9(t,o,r){const a=On();o||(o=a?.editor),x.useEffect(()=>{if(!o)throw new Error("'editor' is required, either from BlockNoteContext or as a function argument");return o.onSelectionChange(t,r)},[t,o,r])}const u2=()=>{const t=x.useMemo(()=>{var u;return(u=window.matchMedia)==null?void 0:u.call(window,"(prefers-color-scheme: dark)")},[]),o=x.useMemo(()=>{var u;return(u=window.matchMedia)==null?void 0:u.call(window,"(prefers-color-scheme: light)")},[]),r=t?.matches,a=o?.matches,[s,c]=x.useState(r?"dark":a?"light":"no-preference");return x.useEffect(()=>{c(r?"dark":a?"light":"no-preference")},[r,a]),x.useEffect(()=>{if(typeof t?.addEventListener=="function"){const u=({matches:m})=>m&&c("dark"),f=({matches:m})=>m&&c("light");return t?.addEventListener("change",u),o?.addEventListener("change",f),()=>{t?.removeEventListener("change",u),o?.removeEventListener("change",f)}}else{const u=()=>c(t.matches?"dark":o.matches?"light":"no-preference");return t?.addEventListener("change",u),o?.addEventListener("change",u),()=>{t?.removeEventListener("change",u),o?.removeEventListener("change",u)}}},[t,o]),s},f2=x.createContext(void 0);function D9(){return x.useContext(f2)}function H9(){const t=new Set;let o={};return{subscribe(r){return t.add(r),()=>{t.delete(r)}},getSnapshot(){return o},getServerSnapshot(){return o},setRenderer(r,a){o={...o,[r]:wn.createPortal(a.reactElement,a.element,r)},t.forEach(s=>s())},removeRenderer(r){const a={...o};delete a[r],o=a,t.forEach(s=>s())}}}const z9=({contentComponent:t})=>{const o=x.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return y.jsx(y.Fragment,{children:Object.values(o)})},L9=x.forwardRef((t,o)=>{const[r,a]=x.useState();return x.useImperativeHandle(o,()=>(s,c)=>{wn.flushSync(()=>{a({node:s,container:c})}),a(void 0)},[]),y.jsx(y.Fragment,{children:r&&wn.createPortal(r.node,r.container)})}),oy=()=>{};function k9(t,o){const{editor:r,className:a,theme:s,children:c,editable:u,onSelectionChange:f,onChange:m,formattingToolbar:h,linkToolbar:g,slashMenu:v,emojiPicker:b,sideMenu:C,filePanel:E,tableHandles:w,comments:T,autoFocus:M,renderEditor:O=!0,...j}=t,[N,D]=x.useState(),V=On(),$=u2(),X=V?.colorSchemePreference||$,F=s||(X==="dark"?"dark":"light");N9(m||oy,r),A9(f||oy,r);const q=x.useCallback(ee=>{r.elementRenderer=ee},[r]),te=x.useMemo(()=>({...V,editor:r,setContentEditableProps:D,colorSchemePreference:F}),[V,r,F]),le=x.useMemo(()=>({editorProps:{autoFocus:M,contentEditableProps:N,editable:u},defaultUIProps:{formattingToolbar:h,linkToolbar:g,slashMenu:v,emojiPicker:b,sideMenu:C,filePanel:E,tableHandles:w,comments:T}}),[M,N,u,h,g,v,b,C,E,w,T]);return y.jsx($b.Provider,{value:te,children:y.jsxs(f2.Provider,{value:le,children:[y.jsx(L9,{ref:q}),y.jsx(V9,{className:a,renderEditor:O,editorColorScheme:F,ref:o,...j,children:c})]})})}const V9=Ve.forwardRef(({className:t,renderEditor:o,editorColorScheme:r,children:a,...s},c)=>y.jsx("div",{className:ht("bn-container",r,t),"data-color-scheme":r,...s,ref:c,children:o?y.jsx($9,{children:a}):a})),B9=Ve.forwardRef(k9),$9=t=>{const o=D9(),r=he(),a=x.useMemo(()=>H9(),[]),s=x.useCallback(c=>{r.isEditable=o.editorProps.editable!==!1,r._tiptapEditor.contentComponent=a,c?r.mount(c):r.unmount()},[o.editorProps.editable,r,a]);return y.jsxs(y.Fragment,{children:[y.jsx(z9,{contentComponent:a}),y.jsx(U9,{...o.editorProps,...t,mount:s}),y.jsx(_9,{...o.defaultUIProps}),t.children]})},U9=t=>{const{autoFocus:o,mount:r,contentEditableProps:a}=t;return y.jsx("div",{"aria-autocomplete":"list","aria-haspopup":"listbox","data-bn-autofocus":o,ref:r,...a})};function Ja(t,o){let r;const a=document.createElement("div");let s;if(o!=null&&o.elementRenderer)o.elementRenderer(t(m=>r=m||void 0),a);else{if(!(o!=null&&o.headless))throw new Error("elementRenderer not available, expected headless editor");s=Py.createRoot(a),wn.flushSync(()=>{s.render(t(m=>r=m||void 0))})}if(!a.childElementCount)return console.warn("ReactInlineContentSpec: renderHTML() failed"),{dom:document.createElement("span")};r?.setAttribute("data-tmp-find","true");const c=a.cloneNode(!0),u=c.firstElementChild,f=c.querySelector("[data-tmp-find]");return f?.removeAttribute("data-tmp-find"),s?.unmount(),{dom:u,contentDOM:f||void 0}}function tm(t){var o;return y.jsx(Lb,{onDragOver:r=>r.preventDefault(),...Object.fromEntries(Object.entries(t.domAttributes||{}).filter(([r])=>r!=="class")),className:ht("bn-block-content",((o=t.domAttributes)==null?void 0:o.class)||""),"data-content-type":t.blockType,...Object.fromEntries(Object.entries(t.blockProps).filter(([r,a])=>{const s=t.propSchema[r];return a!==s.default}).map(([r,a])=>[Gy(r),a])),"data-file-block":t.isFileBlock===!0||void 0,children:t.children})}function hO(t,o,r){return(a={})=>{const s=typeof t=="function"?t(a):t,c=typeof o=="function"?o(a):o,u=r?typeof r=="function"?r(a):r:void 0;return{config:s,implementation:{...c,toExternalHTML(f,m,h){const g=c.toExternalHTML||c.render;return Ja(v=>y.jsx(tm,{blockType:f.type,blockProps:f.props,propSchema:s.propSchema,domAttributes:this.blockContentDOMAttributes,children:y.jsx(g,{block:f,editor:m,contentRef:b=>{v(b),b&&(b.className=ht("bn-inline-content",b.className))},context:h})}),m)},render(f,m){if(this.renderType==="nodeView")return kb(h=>{var g;const v=c4(h.getPos,m,h.editor,s.type),b=Jm().nodeViewContentRef;if(!b)throw new Error("nodeViewContentRef is not set");const C=c.render;return y.jsx(tm,{blockType:v.type,blockProps:v.props,propSchema:s.propSchema,isFileBlock:!!((g=c.meta)!=null&&g.fileBlockAccept),domAttributes:this.blockContentDOMAttributes,children:y.jsx(C,{block:v,editor:m,contentRef:E=>{b(E),E&&(E.className=ht("bn-inline-content",E.className),E.dataset.nodeViewContent="")}})})},{className:"bn-react-node-view-renderer"})(this.props);{const h=c.render;return Ja(g=>y.jsx(tm,{blockType:f.type,blockProps:f.props,propSchema:s.propSchema,domAttributes:this.blockContentDOMAttributes,children:y.jsx(h,{block:f,editor:m,contentRef:v=>{g(v),v&&(v.className=ht("bn-inline-content",v.className))}})}),m)}}},extensions:u}}}const np=(t={},o=[])=>x.useMemo(()=>{const r=KC.create(t);return window&&(window.ProseMirror=r._tiptapEditor),r},o),op=t=>{const[o,r]=x.useState(!1),a=gt({editor:t.editor,selector:({editor:f})=>f.isEmpty}),s=de(),c=x.useCallback(()=>{r(!0)},[]),u=x.useCallback(()=>{r(!1)},[]);return x.useEffect(()=>{t.editable&&t.autoFocus&&t.editor.focus()},[t.autoFocus,t.editable,t.editor]),y.jsxs(y.Fragment,{children:[y.jsx(s.Comments.Editor,{autoFocus:t.autoFocus,className:"bn-comment-editor",editor:t.editor,onFocus:c,onBlur:u,editable:t.editable}),t.actions&&y.jsx("div",{className:"bn-comment-actions-wrapper",children:y.jsx(t.actions,{isFocused:o,isEmpty:a})})]})};let nm;async function G9(){return nm||(nm=(async()=>{const[t,o]=await Promise.all([lc(()=>import("./module-RjUF93sV.js"),[]),lc(()=>import("./native-48B9X9Wg.js"),[])]),r="default"in t?t.default:t,a="default"in o?o.default:o;return await r.init({data:a}),{emojiMart:r,emojiData:a}})(),nm)}function Z9(t){const o=x.useRef(null),r=x.useRef(null);return r.current&&r.current.update(t),x.useEffect(()=>((async()=>{const{emojiMart:a}=await G9();r.current=new a.Picker({...t,ref:o})})(),()=>{r.current=null}),[]),Ve.createElement("div",{ref:o})}const ly=t=>{var o;const[r,a]=x.useState(!1),s=de(),c=he(),u=On();return y.jsxs(s.Generic.Popover.Root,{open:r,children:[y.jsx(s.Generic.Popover.Trigger,{children:y.jsx("div",{onClick:f=>{var m;f.preventDefault(),f.stopPropagation(),a(!r),(m=t.onOpenChange)==null||m.call(t,!r)},style:{display:"flex",justifyContent:"center",alignItems:"center"},children:t.children})}),((o=c.domElement)==null?void 0:o.parentElement)&&wn.createPortal(y.jsx(s.Generic.Popover.Content,{className:"bn-emoji-picker-popover",variant:"panel-popover",children:y.jsx(Z9,{perLine:7,onClickOutside:()=>{var f;a(!1),(f=t.onOpenChange)==null||f.call(t,!1)},onEmojiSelect:f=>{var m;t.onEmojiSelect(f),a(!1),(m=t.onOpenChange)==null||m.call(t,!1)},theme:u?.colorSchemePreference})}),c.domElement.parentElement)]})};function P9(t){return lp([t]).get(t)}function lp(t){const o=De(gn).userStore,r=x.useCallback(()=>{const c=new Map;for(const u of t){const f=o.getUser(u);f&&c.set(u,f)}return c},[o,t]),a=x.useMemo(()=>({current:r()}),[r]),s=x.useCallback(c=>{const u=o.subscribe(f=>{a.current=r(),c()});return o.loadUsers(t),u},[o,r,t,a]);return x.useSyncExternalStore(s,()=>a.current)}const q9=t=>{const o=de(),r=Ce(),a=De(gn),s=t.comment.reactions.find(m=>m.emoji===t.emoji);if(!s)throw new Error("Trying to render reaction badge for non-existing reaction");const[c,u]=x.useState([]),f=lp(c);return y.jsx(o.Generic.Badge.Root,{className:ht("bn-badge","bn-comment-reaction"),text:s.userIds.length.toString(),icon:s.emoji,isSelected:a.threadStore.auth.canDeleteReaction(t.comment,s.emoji),onClick:()=>t.onReactionSelect(s.emoji),onMouseEnter:()=>u(s.userIds),mainTooltip:r.comments.reactions.reacted_by,secondaryTooltip:`${Array.from(f.values()).map(m=>m.username).join(`
50
- `)}`},s.emoji)},{textColor:gO,backgroundColor:vO,...Y9}=i4,rp=a4.create({blockSpecs:{paragraph:s4()},styleSpecs:Y9}),X9=({comment:t,thread:o,showResolveButton:r})=>{const a=De(gn),s=Ce(),c=np({initialContent:t.body,trailingBlock:!1,dictionary:{...s,placeholders:{emptyDocument:s.placeholders.edit_comment}},schema:a.commentEditorSchema||rp}),u=de(),[f,m]=x.useState(!1),[h,g]=x.useState(!1),v=a.threadStore,b=x.useCallback(()=>{m(!0)},[]),C=x.useCallback(()=>{c.replaceBlocks(c.document,t.body),m(!1)},[c,t.body]),E=x.useCallback(async q=>{await v.updateComment({commentId:t.id,comment:{body:c.document},threadId:o.id}),m(!1)},[t,o.id,c,v]),w=x.useCallback(async()=>{await v.deleteComment({commentId:t.id,threadId:o.id})},[t,o.id,v]),T=x.useCallback(async q=>{v.auth.canAddReaction(t,q)?await v.addReaction({threadId:o.id,commentId:t.id,emoji:q}):v.auth.canDeleteReaction(t,q)&&await v.deleteReaction({threadId:o.id,commentId:t.id,emoji:q})},[v,t,o.id]),M=x.useCallback(async()=>{await v.resolveThread({threadId:o.id})},[o.id,v]),O=x.useCallback(async()=>{await v.unresolveThread({threadId:o.id})},[o.id,v]),j=P9(t.userId);if(!t.body)return null;let N;const D=v.auth.canAddReaction(t),V=v.auth.canDeleteComment(t),$=v.auth.canUpdateComment(t),X=r&&(o.resolved?v.auth.canUnresolveThread(o):v.auth.canResolveThread(o));f||(N=y.jsxs(u.Generic.Toolbar.Root,{className:ht("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:[D&&y.jsx(ly,{onEmojiSelect:q=>T(q.native),onOpenChange:g,children:y.jsx(u.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.add_reaction,variant:"compact",children:y.jsx(W0,{size:16})},"add-reaction")}),X&&(o.resolved?y.jsx(u.Generic.Toolbar.Button,{mainTooltip:"Re-open",variant:"compact",onClick:O,children:y.jsx(B8,{size:16})},"reopen"):y.jsx(u.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.resolve,variant:"compact",onClick:M,children:y.jsx(u7,{size:16})},"resolve")),(V||$)&&y.jsxs(u.Generic.Menu.Root,{position:"bottom-start",children:[y.jsx(u.Generic.Menu.Trigger,{children:y.jsx(u.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.more_actions,variant:"compact",children:y.jsx(h7,{size:16})},"more-actions")}),y.jsxs(u.Generic.Menu.Dropdown,{className:"bn-menu-dropdown",children:[$&&y.jsx(u.Generic.Menu.Item,{icon:y.jsx($8,{}),onClick:b,children:s.comments.actions.edit_comment},"edit-comment"),V&&y.jsx(u.Generic.Menu.Item,{icon:y.jsx(d7,{}),onClick:w,children:s.comments.actions.delete_comment},"delete-comment")]})]})]}));const F=t.createdAt.toLocaleDateString(void 0,{month:"short",day:"numeric"});if(!t.body)throw new Error("soft deletes are not yet supported");return y.jsx(u.Comments.Comment,{authorInfo:j??"loading",timeString:F,edited:t.updatedAt.getTime()!==t.createdAt.getTime(),showActions:"hover",actions:N,className:"bn-thread-comment",emojiPickerOpen:h,children:y.jsx(op,{autoFocus:f,editor:c,editable:f,actions:t.reactions.length>0||f?({isEmpty:q})=>y.jsxs(y.Fragment,{children:[t.reactions.length>0&&!f&&y.jsxs(u.Generic.Badge.Group,{className:ht("bn-badge-group","bn-comment-reactions"),children:[t.reactions.map(te=>y.jsx(q9,{comment:t,emoji:te.emoji,onReactionSelect:T},te.emoji)),D&&y.jsx(ly,{onEmojiSelect:te=>T(te.native),onOpenChange:g,children:y.jsx(u.Generic.Badge.Root,{className:ht("bn-badge","bn-comment-add-reaction"),text:"+",icon:y.jsx(W0,{size:16}),mainTooltip:s.comments.actions.add_reaction})})]}),f&&y.jsxs(u.Generic.Toolbar.Root,{variant:"action-toolbar",className:ht("bn-action-toolbar","bn-comment-actions"),children:[y.jsx(u.Generic.Toolbar.Button,{mainTooltip:s.comments.save_button_text,variant:"compact",onClick:E,isDisabled:q,children:s.comments.save_button_text}),y.jsx(u.Generic.Toolbar.Button,{className:"bn-button",mainTooltip:s.comments.cancel_button_text,variant:"compact",onClick:C,children:s.comments.cancel_button_text})]})]}):void 0})})},I9=({thread:t,maxCommentsBeforeCollapse:o})=>{const r=de(),a=Ce(),s=lp(t.resolvedBy?[t.resolvedBy]:[]),c=t.comments.map((u,f)=>y.jsx(X9,{thread:t,comment:u,showResolveButton:f===0},u.id+JSON.stringify(u.body||"{}")));if(t.resolved&&t.resolvedUpdatedAt&&t.resolvedBy){if(!s.get(t.resolvedBy))throw new Error(`User ${t.resolvedBy} resolved thread ${t.id}, but their data could not be found.`);const u=t.comments.findLastIndex(f=>t.resolvedUpdatedAt.getTime()>f.createdAt.getTime())+1;c.splice(u,0,y.jsx(r.Comments.Comment,{className:"bn-thread-comment",authorInfo:t.resolvedBy&&s.get(t.resolvedBy)||"loading",timeString:t.resolvedUpdatedAt.toLocaleDateString(void 0,{month:"short",day:"numeric"}),edited:!1,showActions:!1,children:y.jsx("div",{className:"bn-resolved-text",children:a.comments.sidebar.marked_as_resolved})},"resolved-comment"))}return o&&c.length>o&&c.splice(1,c.length-2,y.jsx(r.Comments.ExpandSectionsPrompt,{className:"bn-thread-expand-prompt",children:a.comments.sidebar.more_replies(t.comments.length-2)},"expand-prompt")),c};function Q9(){const t=De(gn),o=de(),r=Ce(),a=np({trailingBlock:!1,dictionary:{...r,placeholders:{emptyDocument:r.placeholders.new_comment}},schema:t.commentEditorSchema||rp});return y.jsx(o.Comments.Card,{className:"bn-thread",children:y.jsx(op,{autoFocus:!0,editable:!0,editor:a,actions:({isEmpty:s})=>y.jsx(o.Generic.Toolbar.Root,{className:ht("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:y.jsx(o.Generic.Toolbar.Button,{className:"bn-button",mainTooltip:"Save",variant:"compact",isDisabled:s,onClick:async()=>{await t.createThread({initialComment:{body:a.document}}),t.stopPendingComment()},children:"Save"})})})})}function F9(t){const o=he(),r=De(gn),a=qe(gn,{editor:o,selector:f=>f.pendingComment}),s=gt({editor:o,selector:({editor:f})=>a?{from:f.prosemirrorState.selection.from,to:f.prosemirrorState.selection.to}:void 0}),c=x.useMemo(()=>{var f,m;return{...t.floatingUIOptions,useFloatingOptions:{open:!!a,onOpenChange:h=>{h||(r.stopPendingComment(),o.focus())},placement:"bottom",middleware:[Yn(10),ci(),ui()],...(f=t.floatingUIOptions)==null?void 0:f.useFloatingOptions},elementProps:{style:{zIndex:60},...(m=t.floatingUIOptions)==null?void 0:m.elementProps}}},[r,o,a,t.floatingUIOptions]),u=t.floatingComposer||Q9;return y.jsx(ep,{position:s,...c,children:y.jsx(u,{})})}const K9=Object.freeze(Object.defineProperty({__proto__:null,default:F9},Symbol.toStringTag,{value:"Module"})),d2=({thread:t,selected:o,referenceText:r,maxCommentsBeforeCollapse:a,onFocus:s,onBlur:c,tabIndex:u})=>{const f=de(),m=Ce(),h=De(gn),g=np({trailingBlock:!1,dictionary:{...m,placeholders:{emptyDocument:m.placeholders.comment_reply}},schema:h.commentEditorSchema||rp}),v=x.useCallback(async()=>{await h.threadStore.addComment({comment:{body:g.document},threadId:t.id}),g.removeBlocks(g.document)},[h,g,t.id]);return y.jsxs(f.Comments.Card,{className:"bn-thread",headerText:r,onFocus:s,onBlur:c,selected:o,tabIndex:u,children:[y.jsx(f.Comments.CardSection,{className:"bn-thread-comments",children:y.jsx(I9,{thread:t,maxCommentsBeforeCollapse:o?void 0:a||5})}),o&&y.jsx(f.Comments.CardSection,{className:"bn-thread-composer",children:y.jsx(op,{autoFocus:!1,editable:!0,editor:g,actions:({isEmpty:b})=>b?null:y.jsx(f.Generic.Toolbar.Root,{variant:"action-toolbar",className:ht("bn-action-toolbar","bn-comment-actions"),children:y.jsx(f.Generic.Toolbar.Button,{mainTooltip:m.comments.save_button_text,variant:"compact",isDisabled:b,onClick:v,children:m.comments.save_button_text})})})})]})};function J9(){const t=De(gn).threadStore,o=x.useRef(void 0);o.current||(o.current=t.getThreads());const r=x.useCallback(a=>t.subscribe(s=>{o.current=s,a()}),[t]);return x.useSyncExternalStore(r,()=>o.current)}function W9(t){const o=he(),r=De(gn),a=qe(gn,{editor:o,selector:m=>m.selectedThreadId?{id:m.selectedThreadId,position:m.threadPositions.get(m.selectedThreadId)}:void 0}),s=J9(),c=x.useMemo(()=>a?s.get(a.id):void 0,[a,s]),u=x.useMemo(()=>{var m,h;return{...t.floatingUIOptions,useFloatingOptions:{open:!!a,onOpenChange:(g,v,b)=>{b==="escape-key"&&o.focus(),g||r.selectThread(void 0)},placement:"bottom",middleware:[Yn(10),ci(),ui()],...(m=t.floatingUIOptions)==null?void 0:m.useFloatingOptions},elementProps:{style:{zIndex:30},...(h=t.floatingUIOptions)==null?void 0:h.elementProps}}},[r,o,t.floatingUIOptions,a]),f=t.floatingThread||d2;return y.jsx(ep,{position:a?.position,...u,children:c&&y.jsx(f,{thread:c,selected:!0})})}const eE=Object.freeze(Object.defineProperty({__proto__:null,default:W9},Symbol.toStringTag,{value:"Module"}));Ve.memo(({thread:t,selectedThreadId:o,maxCommentsBeforeCollapse:r,referenceText:a})=>{const s=De(gn),c=x.useCallback(f=>{f.target.closest(".bn-action-toolbar")||s.selectThread(t.id)},[s,t.id]),u=x.useCallback(f=>{if(!f.relatedTarget||f.relatedTarget.closest(".bn-action-toolbar"))return;const m=f.target instanceof Node?f.target:null,h=f.relatedTarget instanceof Node?f.relatedTarget.closest(".bn-thread"):null;(!m||!h||!h.contains(m))&&s.selectThread(void 0)},[s]);return y.jsx(d2,{thread:t,selected:t.id===o,referenceText:a,maxCommentsBeforeCollapse:r,onFocus:c,onBlur:u,tabIndex:0})});function om(t){return y.jsx(Lb,{as:"span",className:"bn-inline-content-section","data-inline-content-type":t.inlineContentType,...Object.fromEntries(Object.entries(t.inlineContentProps).filter(([o,r])=>{const a=t.propSchema[o];return r!==a.default}).map(([o,r])=>[Gy(o),r])),children:t.children})}function yO(t,o){var r;const a=u4.create({name:t.type,inline:!0,group:"inline",selectable:t.content==="styled",atom:t.content==="none",draggable:(r=o.meta)==null?void 0:r.draggable,content:t.content==="styled"?"inline*":"",addAttributes(){return h4(t.propSchema)},addKeyboardShortcuts(){return p4(t)},parseHTML(){return m4(t,o.parse)},renderHTML({node:s}){const c=this.options.editor,u=qv(s,c.schema.inlineContentSchema,c.schema.styleSchema),f=o.toExternalHTML||o.render,m=Ja(h=>y.jsx(f,{contentRef:g=>{h(g),g&&(g.dataset.editable="")},inlineContent:u,updateInlineContent:()=>{},editor:c}),c);return d4(m,t.type,s.attrs,t.propSchema)},addNodeView(){const s=this.options.editor;return c=>kb(u=>{const f=Jm().nodeViewContentRef;if(!f)throw new Error("nodeViewContentRef is not set");const m=o.render;return y.jsx(om,{inlineContentProps:u.node.attrs,inlineContentType:t.type,propSchema:t.propSchema,children:y.jsx(m,{contentRef:h=>{f(h),h&&(h.dataset.editable="")},editor:s,inlineContent:qv(u.node,s.schema.inlineContentSchema,s.schema.styleSchema),updateInlineContent:h=>{const g=f4([h],s.pmSchema),v=u.getPos();v!==void 0&&s.transact(b=>b.replaceWith(v,v+u.node.nodeSize,g))}})})},{className:"bn-ic-react-node-view-renderer",as:"span"})(c)}});return g4(t,{...o,node:a,render(s,c,u){const f=o.render;return Ja(m=>y.jsx(om,{inlineContentProps:s.props,inlineContentType:t.type,propSchema:t.propSchema,children:y.jsx(f,{contentRef:h=>{m(h),h&&(h.dataset.editable="")},editor:u,inlineContent:s,updateInlineContent:c})}),u)},toExternalHTML(s,c){const u=o.toExternalHTML||o.render;return Ja(f=>y.jsx(om,{inlineContentProps:s.props,inlineContentType:t.type,propSchema:t.propSchema,children:y.jsx(u,{contentRef:m=>{f(m),m&&(m.dataset.editable="")},editor:c,inlineContent:s,updateInlineContent:()=>{}})}),c)}})}function m2(t,o){const r=t.getBoundingClientRect(),a=o.getBoundingClientRect(),s=r.top<a.top,c=r.bottom>a.bottom;return s&&c?"both":s?"top":c?"bottom":"none"}function tE(t){return o=>{t.forEach(r=>{typeof r=="function"?r(o):r!=null&&(r.current=o)})}}function Xn(t){return Object.keys(t)}function lm(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ap(t,o){const r={...t},a=o;return lm(t)&&lm(o)&&Object.keys(o).forEach(s=>{lm(a[s])&&s in t?r[s]=ap(r[s],a[s]):r[s]=a[s]}),r}function nE(t){return t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}function oE(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function lE(t){const o=oE(t);return typeof o=="number"?o:typeof o=="string"?o.includes("calc")||o.includes("var")?o:o.includes("px")?Number(o.replace("px","")):o.includes("rem")?Number(o.replace("rem",""))*16:o.includes("em")?Number(o.replace("em",""))*16:Number(o):NaN}function ry(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function p2(t,{shouldScale:o=!1}={}){function r(a){if(a===0||a==="0")return`0${t}`;if(typeof a=="number"){const s=`${a/16}${t}`;return o?ry(s):s}if(typeof a=="string"){if(a===""||a.startsWith("calc(")||a.startsWith("clamp(")||a.includes("rgba("))return a;if(a.includes(","))return a.split(",").map(c=>r(c)).join(",");if(a.includes(" "))return a.split(" ").map(c=>r(c)).join(" ");const s=a.replace("px","");if(!Number.isNaN(Number(s))){const c=`${Number(s)/16}${t}`;return o?ry(c):c}}return a}return r}const oe=p2("rem",{shouldScale:!0}),ay=p2("em");function Uc(t){return Object.keys(t).reduce((o,r)=>(t[r]!==void 0&&(o[r]=t[r]),o),{})}function h2(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const o=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(a=>o.test(a))}return!1}function g2(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==x.Fragment:!1}function Gc(t){const o=x.createContext(null);return[({children:s,value:c})=>y.jsx(o.Provider,{value:c,children:s}),()=>{const s=x.useContext(o);if(s===null)throw new Error(t);return s}]}function Zc(t=null){const o=x.createContext(t);return[({children:s,value:c})=>y.jsx(o.Provider,{value:c,children:s}),()=>x.useContext(o)]}function iy(t,o){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(o);return`${t}-${r}`}}function vc(t,o){let r=t;for(;(r=r.parentElement)&&!r.matches(o););return r}function rE(t,o,r){for(let a=t-1;a>=0;a-=1)if(!o[a].disabled)return a;if(r){for(let a=o.length-1;a>-1;a-=1)if(!o[a].disabled)return a}return t}function aE(t,o,r){for(let a=t+1;a<o.length;a+=1)if(!o[a].disabled)return a;if(r){for(let a=0;a<o.length;a+=1)if(!o[a].disabled)return a}return t}function iE(t,o,r){return vc(t,r)===vc(o,r)}function ip({parentSelector:t,siblingSelector:o,onKeyDown:r,loop:a=!0,activateOnFocus:s=!1,dir:c="rtl",orientation:u}){return f=>{r?.(f);const m=Array.from(vc(f.currentTarget,t)?.querySelectorAll(o)||[]).filter(E=>iE(f.currentTarget,E,t)),h=m.findIndex(E=>f.currentTarget===E),g=aE(h,m,a),v=rE(h,m,a),b=c==="rtl"?v:g,C=c==="rtl"?g:v;switch(f.key){case"ArrowRight":{u==="horizontal"&&(f.stopPropagation(),f.preventDefault(),m[b].focus(),s&&m[b].click());break}case"ArrowLeft":{u==="horizontal"&&(f.stopPropagation(),f.preventDefault(),m[C].focus(),s&&m[C].click());break}case"ArrowUp":{u==="vertical"&&(f.stopPropagation(),f.preventDefault(),m[v].focus(),s&&m[v].click());break}case"ArrowDown":{u==="vertical"&&(f.stopPropagation(),f.preventDefault(),m[g].focus(),s&&m[g].click());break}case"Home":{f.stopPropagation(),f.preventDefault(),!m[0].disabled&&m[0].focus();break}case"End":{f.stopPropagation(),f.preventDefault();const E=m.length-1;!m[E].disabled&&m[E].focus();break}}}}const sE={app:100,modal:200,popover:300,overlay:400,max:9999};function fi(t){return sE[t]}const cE=()=>{};function uE(t,o={active:!0}){return typeof t!="function"||!o.active?o.onKeyDown||cE:r=>{r.key==="Escape"&&(t(r),o.onTrigger?.())}}function Ye(t,o="size",r=!0){if(t!==void 0)return h2(t)?r?oe(t):t:`var(--${o}-${t})`}function di(t){return Ye(t,"mantine-spacing")}function Rt(t){return t===void 0?"var(--mantine-radius-default)":Ye(t,"mantine-radius")}function $t(t){return Ye(t,"mantine-font-size")}function fE(t){return Ye(t,"mantine-line-height",!1)}function v2(t){if(t)return Ye(t,"mantine-shadow",!1)}function Vt(t,o){return r=>{t?.(r),o?.(r)}}function dE(t,o,r){return r?Array.from(vc(r,o)?.querySelectorAll(t)||[]).findIndex(a=>a===r):null}function mE(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function sy(t){const o=x.useRef(t);return x.useEffect(()=>{o.current=t}),x.useMemo(()=>((...r)=>o.current?.(...r)),[])}const pE=["mousedown","touchstart"];function hE(t,o,r){const a=x.useRef(null),s=o||pE;return x.useEffect(()=>{const c=u=>{const{target:f}=u??{};if(Array.isArray(r)){const m=!document.body.contains(f)&&f?.tagName!=="HTML";r.every(g=>!!g&&!u.composedPath().includes(g))&&!m&&t(u)}else a.current&&!a.current.contains(f)&&t(u)};return s.forEach(u=>document.addEventListener(u,c)),()=>{s.forEach(u=>document.removeEventListener(u,c))}},[a,t,r]),a}function gE(t,o){try{return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}catch{return t.addListener(o),()=>t.removeListener(o)}}function vE(t,o){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function yE(t,o,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[a,s]=x.useState(r?o:vE(t));return x.useEffect(()=>{try{const c=window.matchMedia(t);return s(c.matches),gE(c,u=>s(u.matches))}catch{return}},[t]),a||!1}const mi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ni(t,o){const r=x.useRef(!1);x.useEffect(()=>()=>{r.current=!1},[]),x.useEffect(()=>{if(r.current)return t();r.current=!0},o)}function bE({opened:t,shouldReturnFocus:o=!0}){const r=x.useRef(null),a=()=>{r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&r.current?.focus({preventScroll:!0})};return ni(()=>{let s=-1;const c=u=>{u.key==="Tab"&&window.clearTimeout(s)};return document.addEventListener("keydown",c),t?r.current=document.activeElement:o&&(s=window.setTimeout(a,10)),()=>{window.clearTimeout(s),document.removeEventListener("keydown",c)}},[t,o]),a}const xE=/input|select|textarea|button|object/,y2="a, input, select, textarea, button, object, [tabindex]";function SE(t){return t.style.display==="none"}function CE(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let r=t;for(;r&&!(r===document.body||r.nodeType===11);){if(SE(r))return!1;r=r.parentNode}return!0}function b2(t){let o=t.getAttribute("tabindex");return o===null&&(o=void 0),parseInt(o,10)}function zm(t){const o=t.nodeName.toLowerCase(),r=!Number.isNaN(b2(t));return(xE.test(o)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||r)&&CE(t)}function x2(t){const o=b2(t);return(Number.isNaN(o)||o>=0)&&zm(t)}function wE(t){return Array.from(t.querySelectorAll(y2)).filter(x2)}function EE(t,o){const r=wE(t);if(!r.length){o.preventDefault();return}const a=r[o.shiftKey?0:r.length-1],s=t.getRootNode();let c=a===s.activeElement||t===s.activeElement;const u=s.activeElement;if(u.tagName==="INPUT"&&u.getAttribute("type")==="radio"&&(c=r.filter(g=>g.getAttribute("type")==="radio"&&g.getAttribute("name")===u.getAttribute("name")).includes(a)),!c)return;o.preventDefault();const m=r[o.shiftKey?r.length-1:0];m&&m.focus()}function S2(t=!0){const o=x.useRef(null),r=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const u=Array.from(s.querySelectorAll(y2));c=u.find(x2)||u.find(zm)||null,!c&&zm(s)&&(c=s)}c&&c.focus({preventScroll:!0})},a=x.useCallback(s=>{t&&s!==null&&o.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&r(s)}),o.current=s):o.current=null)},[t]);return x.useEffect(()=>{if(!t)return;o.current&&setTimeout(()=>r(o.current));const s=c=>{c.key==="Tab"&&o.current&&EE(o.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),a}const TE=Ve.useId||(()=>{});function RE(){const t=TE();return t?`mantine-${t.replace(/:/g,"")}`:""}function Pr(t){const o=RE(),[r,a]=x.useState(o);return mi(()=>{a(mE())},[]),typeof t=="string"?t:typeof window>"u"?o:r}function yc(t,o){if(typeof t=="function")return t(o);typeof t=="object"&&t!==null&&"current"in t&&(t.current=o)}function Pc(...t){const o=new Map;return r=>{if(t.forEach(a=>{const s=yc(a,r);s&&o.set(a,s)}),o.size>0)return()=>{t.forEach(a=>{const s=o.get(a);s&&typeof s=="function"?s():yc(a,null)}),o.clear()}}}function jn(...t){return x.useCallback(Pc(...t),t)}function qr({value:t,defaultValue:o,finalValue:r,onChange:a=()=>{}}){const[s,c]=x.useState(o!==void 0?o:r),u=(f,...m)=>{c(f),a?.(f,...m)};return t!==void 0?[t,a,!0]:[s,u,!1]}function ME(t,o){return yE("(prefers-reduced-motion: reduce)",t,o)}function OE(){const[t,o]=x.useState(!1),r=x.useRef(null),a=x.useCallback(()=>{o(!0)},[]),s=x.useCallback(()=>{o(!1)},[]);return{ref:x.useCallback(u=>{r.current&&(r.current.removeEventListener("mouseenter",a),r.current.removeEventListener("mouseleave",s)),u&&(u.addEventListener("mouseenter",a),u.addEventListener("mouseleave",s)),r.current=u},[a,s]),hovered:t}}function jE(t=!1,o={}){const[r,a]=x.useState(t),s=x.useCallback(()=>{a(f=>f||(o.onOpen?.(),!0))},[o.onOpen]),c=x.useCallback(()=>{a(f=>f&&(o.onClose?.(),!1))},[o.onClose]),u=x.useCallback(()=>{r?c():s()},[c,s,r]);return[r,{open:s,close:c,toggle:u}]}function _E(t){return t.currentTarget instanceof HTMLElement&&t.relatedTarget instanceof HTMLElement?t.currentTarget.contains(t.relatedTarget):!1}function NE({onBlur:t,onFocus:o}={}){const[r,a]=x.useState(!1),s=x.useRef(!1),c=x.useRef(null),u=sy(o),f=sy(t),m=x.useCallback(b=>{a(b),s.current=b},[]),h=x.useCallback(b=>{s.current||(m(!0),u(b))},[]),g=x.useCallback(b=>{s.current&&!_E(b)&&(m(!1),f(b))},[]),v=x.useCallback(b=>{b&&(c.current&&(c.current.removeEventListener("focusin",h),c.current.removeEventListener("focusout",g)),b.addEventListener("focusin",h),b.addEventListener("focusout",g),c.current=b)},[h,g]);return x.useEffect(()=>()=>{c.current&&(c.current.removeEventListener("focusin",h),c.current.removeEventListener("focusout",g))},[]),{ref:v,focused:r}}function sp(t){const o=Ve.version;return typeof Ve.version!="string"||o.startsWith("18.")?t?.ref:t?.props?.ref}function pi(t){const o=x.Children.toArray(t);return o.length!==1||!g2(o[0])?null:o[0]}const AE={};function DE(t){const o={};return t.forEach(r=>{Object.entries(r).forEach(([a,s])=>{o[a]?o[a]=jo(o[a],s):o[a]=s})}),o}function qc({theme:t,classNames:o,props:r,stylesCtx:a}){const c=(Array.isArray(o)?o:[o]).map(u=>typeof u=="function"?u(t,r,a):u||AE);return DE(c)}function bc({theme:t,styles:o,props:r,stylesCtx:a}){return(Array.isArray(o)?o:[o]).reduce((c,u)=>typeof u=="function"?{...c,...u(t,r,a)}:{...c,...u},{})}const cp=x.createContext(null);function sl(){const t=x.useContext(cp);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function HE(){return sl().cssVariablesResolver}function zE(){return sl().classNamesPrefix}function up(){return sl().getStyleNonce}function LE(){return sl().withStaticClasses}function kE(){return sl().headless}function VE(){return sl().stylesTransform?.sx}function BE(){return sl().stylesTransform?.styles}function Yc(){return sl().env||"default"}function $E(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function UE(t){let o=t.replace("#","");if(o.length===3){const u=o.split("");o=[u[0],u[0],u[1],u[1],u[2],u[2]].join("")}if(o.length===8){const u=parseInt(o.slice(6,8),16)/255;return{r:parseInt(o.slice(0,2),16),g:parseInt(o.slice(2,4),16),b:parseInt(o.slice(4,6),16),a:u}}const r=parseInt(o,16),a=r>>16&255,s=r>>8&255,c=r&255;return{r:a,g:s,b:c,a:1}}function GE(t){const[o,r,a,s]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:o,g:r,b:a,a:s===void 0?1:s}}function ZE(t){const o=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,r=t.match(o);if(!r)return{r:0,g:0,b:0,a:1};const a=parseInt(r[1],10),s=parseInt(r[2],10)/100,c=parseInt(r[3],10)/100,u=r[5]?parseFloat(r[5]):void 0,f=(1-Math.abs(2*c-1))*s,m=a/60,h=f*(1-Math.abs(m%2-1)),g=c-f/2;let v,b,C;return m>=0&&m<1?(v=f,b=h,C=0):m>=1&&m<2?(v=h,b=f,C=0):m>=2&&m<3?(v=0,b=f,C=h):m>=3&&m<4?(v=0,b=h,C=f):m>=4&&m<5?(v=h,b=0,C=f):(v=f,b=0,C=h),{r:Math.round((v+g)*255),g:Math.round((b+g)*255),b:Math.round((C+g)*255),a:u||1}}function fp(t){return $E(t)?UE(t):t.startsWith("rgb")?GE(t):t.startsWith("hsl")?ZE(t):{r:0,g:0,b:0,a:1}}function Gs(t,o){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${o*100}%)`;const{r,g:a,b:s,a:c}=fp(t),u=1-o,f=m=>Math.round(m*u);return`rgba(${f(r)}, ${f(a)}, ${f(s)}, ${c})`}function oi(t,o){return typeof t.primaryShade=="number"?t.primaryShade:o==="dark"?t.primaryShade.dark:t.primaryShade.light}function rm(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function PE(t){const o=t.match(/oklch\((.*?)%\s/);return o?parseFloat(o[1]):null}function qE(t){if(t.startsWith("oklch("))return(PE(t)||0)/100;const{r:o,g:r,b:a}=fp(t),s=o/255,c=r/255,u=a/255,f=rm(s),m=rm(c),h=rm(u);return .2126*f+.7152*m+.0722*h}function Qa(t,o=.179){return t.startsWith("var(")?!1:qE(t)>o}function kl({color:t,theme:o,colorScheme:r}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:r==="dark"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Qa(r==="dark"?o.white:o.black,o.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:r==="dark"?o.colors.dark[2]:o.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Qa(r==="dark"?o.colors.dark[2]:o.colors.gray[6],o.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Qa(t==="white"?o.white:o.black,o.luminanceThreshold),variable:`--mantine-color-${t}`};const[a,s]=t.split("."),c=s?Number(s):void 0,u=a in o.colors;if(u){const f=c!==void 0?o.colors[a][c]:o.colors[a][oi(o,r||"light")];return{color:a,value:f,shade:c,isThemeColor:u,isLight:Qa(f,o.luminanceThreshold),variable:s?`--mantine-color-${a}-${c}`:`--mantine-color-${a}-filled`}}return{color:t,value:t,isThemeColor:u,isLight:Qa(t,o.luminanceThreshold),shade:c,variable:void 0}}function Oo(t,o){const r=kl({color:t||o.primaryColor,theme:o});return r.variable?`var(${r.variable})`:t}function Lm(t,o){const r={from:t?.from||o.defaultGradient.from,to:t?.to||o.defaultGradient.to,deg:t?.deg??o.defaultGradient.deg??0},a=Oo(r.from,o),s=Oo(r.to,o);return`linear-gradient(${r.deg}deg, ${a} 0%, ${s} 100%)`}function Vn(t,o){if(typeof t!="string"||o>1||o<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const c=(1-o)*100;return`color-mix(in srgb, ${t}, transparent ${c}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${o})`):t.replace(")",` / ${o})`);const{r,g:a,b:s}=fp(t);return`rgba(${r}, ${a}, ${s}, ${o})`}const Or=Vn,YE=({color:t,theme:o,variant:r,gradient:a,autoContrast:s})=>{const c=kl({color:t,theme:o}),u=typeof s=="boolean"?s:o.autoContrast;if(r==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(r==="filled"){const f=u&&c.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return c.isThemeColor?c.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:f,border:`${oe(1)} solid transparent`}:{background:`var(--mantine-color-${c.color}-${c.shade})`,hover:`var(--mantine-color-${c.color}-${c.shade===9?8:c.shade+1})`,color:f,border:`${oe(1)} solid transparent`}:{background:t,hover:Gs(t,.1),color:f,border:`${oe(1)} solid transparent`}}if(r==="light"){if(c.isThemeColor){if(c.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${oe(1)} solid transparent`};const f=o.colors[c.color][c.shade];return{background:Vn(f,.1),hover:Vn(f,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${oe(1)} solid transparent`}}return{background:Vn(t,.1),hover:Vn(t,.12),color:t,border:`${oe(1)} solid transparent`}}if(r==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${oe(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Vn(o.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${oe(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Vn(t,.05),color:t,border:`${oe(1)} solid ${t}`};if(r==="subtle"){if(c.isThemeColor){if(c.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${oe(1)} solid transparent`};const f=o.colors[c.color][c.shade];return{background:"transparent",hover:Vn(f,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${oe(1)} solid transparent`}}return{background:"transparent",hover:Vn(t,.12),color:t,border:`${oe(1)} solid transparent`}}return r==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${oe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${oe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${oe(1)} solid transparent`}:r==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:Gs(o.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${oe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gs(o.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${oe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gs(o.white,.01),color:t,border:`${oe(1)} solid transparent`}:r==="gradient"?{background:Lm(a,o),hover:Lm(a,o),color:"var(--mantine-color-white)",border:"none"}:r==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${oe(1)} solid var(--mantine-color-default-border)`}:{}},XE={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},cy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",dp={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:XE,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:YE,autoContrast:!1,luminanceThreshold:.3,fontFamily:cy,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:cy,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:oe(34),lineHeight:"1.3"},h2:{fontSize:oe(26),lineHeight:"1.35"},h3:{fontSize:oe(22),lineHeight:"1.4"},h4:{fontSize:oe(18),lineHeight:"1.45"},h5:{fontSize:oe(16),lineHeight:"1.5"},h6:{fontSize:oe(14),lineHeight:"1.5"}}},fontSizes:{xs:oe(12),sm:oe(14),md:oe(16),lg:oe(18),xl:oe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:oe(2),sm:oe(4),md:oe(8),lg:oe(16),xl:oe(32)},spacing:{xs:oe(10),sm:oe(12),md:oe(16),lg:oe(20),xl:oe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), 0 ${oe(1)} ${oe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(10)} ${oe(15)} ${oe(-5)}, rgba(0, 0, 0, 0.04) 0 ${oe(7)} ${oe(7)} ${oe(-5)}`,md:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(20)} ${oe(25)} ${oe(-5)}, rgba(0, 0, 0, 0.04) 0 ${oe(10)} ${oe(10)} ${oe(-5)}`,lg:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(28)} ${oe(23)} ${oe(-7)}, rgba(0, 0, 0, 0.04) 0 ${oe(12)} ${oe(12)} ${oe(-7)}`,xl:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(36)} ${oe(28)} ${oe(-7)}, rgba(0, 0, 0, 0.04) 0 ${oe(17)} ${oe(17)} ${oe(-7)}`},other:{},components:{}};function uy(t){return t==="auto"||t==="dark"||t==="light"}function IE({key:t="mantine-color-scheme-value"}={}){let o;return{get:r=>{if(typeof window>"u")return r;try{const a=window.localStorage.getItem(t);return uy(a)?a:r}catch{return r}},set:r=>{try{window.localStorage.setItem(t,r)}catch(a){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",a)}},subscribe:r=>{o=a=>{a.storageArea===window.localStorage&&a.key===t&&uy(a.newValue)&&r(a.newValue)},window.addEventListener("storage",o)},unsubscribe:()=>{window.removeEventListener("storage",o)},clear:()=>{window.localStorage.removeItem(t)}}}const QE="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",fy="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function am(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function dy(t){if(!(t.primaryColor in t.colors))throw new Error(QE);if(typeof t.primaryShade=="object"&&(!am(t.primaryShade.dark)||!am(t.primaryShade.light)))throw new Error(fy);if(typeof t.primaryShade=="number"&&!am(t.primaryShade))throw new Error(fy)}function FE(t,o){if(!o)return dy(t),t;const r=ap(t,o);return o.fontFamily&&!o.headings?.fontFamily&&(r.headings.fontFamily=o.fontFamily),dy(r),r}const mp=x.createContext(null),KE=()=>x.useContext(mp)||dp;function Ut(){const t=x.useContext(mp);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function C2({theme:t,children:o,inherit:r=!0}){const a=KE(),s=x.useMemo(()=>FE(r?a:dp,t),[t,a,r]);return y.jsx(mp.Provider,{value:s,children:o})}C2.displayName="@mantine/core/MantineThemeProvider";function JE(){const t=Ut(),o=up(),r=Xn(t.breakpoints).reduce((a,s)=>{const c=t.breakpoints[s].includes("px"),u=lE(t.breakpoints[s]),f=c?`${u-.1}px`:ay(u-.1),m=c?`${u}px`:ay(u);return`${a}@media (max-width: ${f}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${m}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:o?.(),dangerouslySetInnerHTML:{__html:r}})}function im(t){return Object.entries(t).map(([o,r])=>`${o}: ${r};`).join("")}function w2(t,o){const r=o?[o]:[":root",":host"],a=im(t.variables),s=a?`${r.join(", ")}{${a}}`:"",c=im(t.dark),u=im(t.light),f=g=>r.map(v=>v===":host"?`${v}([data-mantine-color-scheme="${g}"])`:`${v}[data-mantine-color-scheme="${g}"]`).join(", "),m=c?`${f("dark")}{${c}}`:"",h=u?`${f("light")}{${u}}`:"";return`${s}
51
-
52
- ${m}
53
-
54
- ${h}`}function E2({color:t,theme:o,autoContrast:r}){return(typeof r=="boolean"?r:o.autoContrast)&&kl({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function my(t,o){return E2({color:t.colors[t.primaryColor][oi(t,o)],theme:t,autoContrast:null})}function Zs({theme:t,color:o,colorScheme:r,name:a=o,withColorValues:s=!0}){if(!t.colors[o])return{};if(r==="light"){const f=oi(t,"light"),m={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-filled)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${f})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${f===9?8:f+1})`,[`--mantine-color-${a}-light`]:Or(t.colors[o][f],.1),[`--mantine-color-${a}-light-hover`]:Or(t.colors[o][f],.12),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${f})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${f})`,[`--mantine-color-${a}-outline-hover`]:Or(t.colors[o][f],.05)};return s?{[`--mantine-color-${a}-0`]:t.colors[o][0],[`--mantine-color-${a}-1`]:t.colors[o][1],[`--mantine-color-${a}-2`]:t.colors[o][2],[`--mantine-color-${a}-3`]:t.colors[o][3],[`--mantine-color-${a}-4`]:t.colors[o][4],[`--mantine-color-${a}-5`]:t.colors[o][5],[`--mantine-color-${a}-6`]:t.colors[o][6],[`--mantine-color-${a}-7`]:t.colors[o][7],[`--mantine-color-${a}-8`]:t.colors[o][8],[`--mantine-color-${a}-9`]:t.colors[o][9],...m}:m}const c=oi(t,"dark"),u={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-4)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${c})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${c===9?8:c+1})`,[`--mantine-color-${a}-light`]:Or(t.colors[o][Math.max(0,c-2)],.15),[`--mantine-color-${a}-light-hover`]:Or(t.colors[o][Math.max(0,c-2)],.2),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${Math.max(c-5,0)})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${Math.max(c-4,0)})`,[`--mantine-color-${a}-outline-hover`]:Or(t.colors[o][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${a}-0`]:t.colors[o][0],[`--mantine-color-${a}-1`]:t.colors[o][1],[`--mantine-color-${a}-2`]:t.colors[o][2],[`--mantine-color-${a}-3`]:t.colors[o][3],[`--mantine-color-${a}-4`]:t.colors[o][4],[`--mantine-color-${a}-5`]:t.colors[o][5],[`--mantine-color-${a}-6`]:t.colors[o][6],[`--mantine-color-${a}-7`]:t.colors[o][7],[`--mantine-color-${a}-8`]:t.colors[o][8],[`--mantine-color-${a}-9`]:t.colors[o][9],...u}:u}function WE(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function jr(t,o,r){Xn(o).forEach(a=>Object.assign(t,{[`--mantine-${r}-${a}`]:o[a]}))}const T2=t=>{const o=oi(t,"light"),r=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:oe(t.defaultRadius),a={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":my(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${o})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":my(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};jr(a.variables,t.breakpoints,"breakpoint"),jr(a.variables,t.spacing,"spacing"),jr(a.variables,t.fontSizes,"font-size"),jr(a.variables,t.lineHeights,"line-height"),jr(a.variables,t.shadows,"shadow"),jr(a.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,u)=>{a.variables[`--mantine-primary-color-${u}`]=`var(--mantine-color-${t.primaryColor}-${u})`}),Xn(t.colors).forEach(c=>{const u=t.colors[c];if(WE(u)){Object.assign(a.light,Zs({theme:t,name:u.name,color:u.light,colorScheme:"light",withColorValues:!0})),Object.assign(a.dark,Zs({theme:t,name:u.name,color:u.dark,colorScheme:"dark",withColorValues:!0}));return}u.forEach((f,m)=>{a.variables[`--mantine-color-${c}-${m}`]=f}),Object.assign(a.light,Zs({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(a.dark,Zs({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return Xn(s).forEach(c=>{a.variables[`--mantine-${c}-font-size`]=s[c].fontSize,a.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,a.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||t.headings.fontWeight}),a};function e6({theme:t,generator:o}){const r=T2(t),a=o?.(t);return a?ap(r,a):r}const sm=T2(dp);function t6(t){const o={variables:{},light:{},dark:{}};return Xn(t.variables).forEach(r=>{sm.variables[r]!==t.variables[r]&&(o.variables[r]=t.variables[r])}),Xn(t.light).forEach(r=>{sm.light[r]!==t.light[r]&&(o.light[r]=t.light[r])}),Xn(t.dark).forEach(r=>{sm.dark[r]!==t.dark[r]&&(o.dark[r]=t.dark[r])}),o}function n6(t){return w2({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function R2({cssVariablesSelector:t,deduplicateCssVariables:o}){const r=Ut(),a=up(),s=HE(),c=e6({theme:r,generator:s}),u=(t===void 0||t===":root"||t===":host")&&o,f=u?t6(c):c,m=w2(f,t);return m?y.jsx("style",{"data-mantine-styles":!0,nonce:a?.(),dangerouslySetInnerHTML:{__html:`${m}${u?"":n6(t)}`}}):null}R2.displayName="@mantine/CssVariables";function _r(t,o){const r=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,a=t!=="auto"?t:r?"dark":"light";o()?.setAttribute("data-mantine-color-scheme",a)}function o6({manager:t,defaultColorScheme:o,getRootElement:r,forceColorScheme:a}){const s=x.useRef(null),[c,u]=x.useState(()=>t.get(o)),f=a||c,m=x.useCallback(g=>{a||(_r(g,r),u(g),t.set(g))},[t.set,f,a]),h=x.useCallback(()=>{u(o),_r(o,r),t.clear()},[t.clear,o]);return x.useEffect(()=>(t.subscribe(m),t.unsubscribe),[t.subscribe,t.unsubscribe]),mi(()=>{_r(t.get(o),r)},[]),x.useEffect(()=>{if(a)return _r(a,r),()=>{};a===void 0&&_r(c,r),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const g=v=>{c==="auto"&&_r(v.matches?"dark":"light",r)};return s.current?.addEventListener("change",g),()=>s.current?.removeEventListener("change",g)},[c,a]),{colorScheme:f,setColorScheme:m,clearColorScheme:h}}function l6({respectReducedMotion:t,getRootElement:o}){mi(()=>{t&&o()?.setAttribute("data-respect-reduced-motion","true")},[t])}function M2({theme:t,children:o,getStyleNonce:r,withStaticClasses:a=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:u=!0,cssVariablesSelector:f,classNamesPrefix:m="mantine",colorSchemeManager:h=IE(),defaultColorScheme:g="light",getRootElement:v=()=>document.documentElement,cssVariablesResolver:b,forceColorScheme:C,stylesTransform:E,env:w}){const{colorScheme:T,setColorScheme:M,clearColorScheme:O}=o6({defaultColorScheme:g,forceColorScheme:C,manager:h,getRootElement:v});return l6({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:v}),y.jsx(cp.Provider,{value:{colorScheme:T,setColorScheme:M,clearColorScheme:O,getRootElement:v,classNamesPrefix:m,getStyleNonce:r,cssVariablesResolver:b,cssVariablesSelector:f??":root",withStaticClasses:a,stylesTransform:E,env:w},children:y.jsxs(C2,{theme:t,children:[u&&y.jsx(R2,{cssVariablesSelector:f,deduplicateCssVariables:c}),s&&y.jsx(JE,{}),o]})})}M2.displayName="@mantine/core/MantineProvider";function Xc({classNames:t,styles:o,props:r,stylesCtx:a}){const s=Ut();return{resolvedClassNames:qc({theme:s,classNames:t,props:r,stylesCtx:a||void 0}),resolvedStyles:bc({theme:s,styles:o,props:r,stylesCtx:a||void 0})}}const r6={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function a6({theme:t,options:o,unstyled:r}){return jo(o?.focusable&&!r&&(t.focusClassName||r6[t.focusRing]),o?.active&&!r&&t.activeClassName)}function i6({selector:t,stylesCtx:o,options:r,props:a,theme:s}){return qc({theme:s,classNames:r?.classNames,props:r?.props||a,stylesCtx:o})[t]}function py({selector:t,stylesCtx:o,theme:r,classNames:a,props:s}){return qc({theme:r,classNames:a,props:s,stylesCtx:o})[t]}function s6({rootSelector:t,selector:o,className:r}){return t===o?r:void 0}function c6({selector:t,classes:o,unstyled:r}){return r?void 0:o[t]}function u6({themeName:t,classNamesPrefix:o,selector:r,withStaticClass:a}){return a===!1?[]:t.map(s=>`${o}-${s}-${r}`)}function f6({themeName:t,theme:o,selector:r,props:a,stylesCtx:s}){return t.map(c=>qc({theme:o,classNames:o.components[c]?.classNames,props:a,stylesCtx:s})?.[r])}function d6({options:t,classes:o,selector:r,unstyled:a}){return t?.variant&&!a?o[`${r}--${t.variant}`]:void 0}function m6({theme:t,options:o,themeName:r,selector:a,classNamesPrefix:s,classNames:c,classes:u,unstyled:f,className:m,rootSelector:h,props:g,stylesCtx:v,withStaticClasses:b,headless:C,transformedStyles:E}){return jo(a6({theme:t,options:o,unstyled:f||C}),f6({theme:t,themeName:r,selector:a,props:g,stylesCtx:v}),d6({options:o,classes:u,selector:a,unstyled:f}),py({selector:a,stylesCtx:v,theme:t,classNames:c,props:g}),py({selector:a,stylesCtx:v,theme:t,classNames:E,props:g}),i6({selector:a,stylesCtx:v,options:o,props:g,theme:t}),s6({rootSelector:h,selector:a,className:m}),c6({selector:a,classes:u,unstyled:f||C}),b&&!C&&u6({themeName:r,classNamesPrefix:s,selector:a,withStaticClass:o?.withStaticClass}),o?.className)}function p6({theme:t,themeName:o,props:r,stylesCtx:a,selector:s}){return o.map(c=>bc({theme:t,styles:t.components[c]?.styles,props:r,stylesCtx:a})[s]).reduce((c,u)=>({...c,...u}),{})}function km({style:t,theme:o}){return Array.isArray(t)?[...t].reduce((r,a)=>({...r,...km({style:a,theme:o})}),{}):typeof t=="function"?t(o):t??{}}function h6(t){return t.reduce((o,r)=>(r&&Object.keys(r).forEach(a=>{o[a]={...o[a],...Uc(r[a])}}),o),{})}function g6({vars:t,varsResolver:o,theme:r,props:a,stylesCtx:s,selector:c,themeName:u,headless:f}){return h6([f?{}:o?.(r,a,s),...u.map(m=>r.components?.[m]?.vars?.(r,a,s)),t?.(r,a,s)])?.[c]}function v6({theme:t,themeName:o,selector:r,options:a,props:s,stylesCtx:c,rootSelector:u,styles:f,style:m,vars:h,varsResolver:g,headless:v,withStylesTransform:b}){return{...!b&&p6({theme:t,themeName:o,props:s,stylesCtx:c,selector:r}),...!b&&bc({theme:t,styles:f,props:s,stylesCtx:c})[r],...!b&&bc({theme:t,styles:a?.styles,props:a?.props||s,stylesCtx:c})[r],...g6({theme:t,props:s,stylesCtx:c,vars:h,varsResolver:g,selector:r,themeName:o,headless:v}),...u===r?km({style:m,theme:t}):null,...km({style:a?.style,theme:t})}}function y6({props:t,stylesCtx:o,themeName:r}){const a=Ut(),s=BE()?.();return{getTransformedStyles:u=>s?[...u.map(m=>s(m,{props:t,theme:a,ctx:o})),...r.map(m=>s(a.components[m]?.styles,{props:t,theme:a,ctx:o}))].filter(Boolean):[],withStylesTransform:!!s}}function _e({name:t,classes:o,props:r,stylesCtx:a,className:s,style:c,rootSelector:u="root",unstyled:f,classNames:m,styles:h,vars:g,varsResolver:v,attributes:b}){const C=Ut(),E=zE(),w=LE(),T=kE(),M=(Array.isArray(t)?t:[t]).filter(N=>N),{withStylesTransform:O,getTransformedStyles:j}=y6({props:r,stylesCtx:a,themeName:M});return(N,D)=>({className:m6({theme:C,options:D,themeName:M,selector:N,classNamesPrefix:E,classNames:m,classes:o,unstyled:f,className:s,rootSelector:u,props:r,stylesCtx:a,withStaticClasses:w,headless:T,transformedStyles:j([D?.styles,h])}),style:v6({theme:C,themeName:M,selector:N,options:D,props:r,stylesCtx:a,rootSelector:u,styles:h,style:c,vars:g,varsResolver:v,headless:T,withStylesTransform:O}),...b?.[N]})}function b6(t,o){return typeof t=="boolean"?t:o.autoContrast}function ce(t,o,r){const a=Ut(),s=a.components[t]?.defaultProps,c=typeof s=="function"?s(a):s;return{...o,...c,...Uc(r)}}function cm(t){return Xn(t).reduce((o,r)=>t[r]!==void 0?`${o}${nE(r)}:${t[r]};`:o,"").trim()}function x6({selector:t,styles:o,media:r,container:a}){const s=o?cm(o):"",c=Array.isArray(r)?r.map(f=>`@media${f.query}{${t}{${cm(f.styles)}}}`):[],u=Array.isArray(a)?a.map(f=>`@container ${f.query}{${t}{${cm(f.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${c.join("")}${u.join("")}`.trim()}function O2(t){const o=up();return y.jsx("style",{"data-mantine-styles":"inline",nonce:o?.(),dangerouslySetInnerHTML:{__html:x6(t)}})}function Ic(t){const{m:o,mx:r,my:a,mt:s,mb:c,ml:u,mr:f,me:m,ms:h,p:g,px:v,py:b,pt:C,pb:E,pl:w,pr:T,pe:M,ps:O,bd:j,bdrs:N,bg:D,c:V,opacity:$,ff:X,fz:F,fw:q,lts:te,ta:le,lh:ee,fs:H,tt:W,td:z,w:L,miw:_,maw:Z,h:I,mih:ae,mah:ne,bgsz:re,bgp:ve,bgr:se,bga:be,pos:Le,top:Ee,left:ye,bottom:Je,right:nt,inset:We,display:Ae,flex:tt,hiddenFrom:nn,visibleFrom:An,lightHidden:No,darkHidden:Dn,sx:wt,...to}=t;return{styleProps:Uc({m:o,mx:r,my:a,mt:s,mb:c,ml:u,mr:f,me:m,ms:h,p:g,px:v,py:b,pt:C,pb:E,pl:w,pr:T,pe:M,ps:O,bd:j,bg:D,c:V,opacity:$,ff:X,fz:F,fw:q,lts:te,ta:le,lh:ee,fs:H,tt:W,td:z,w:L,miw:_,maw:Z,h:I,mih:ae,mah:ne,bgsz:re,bgp:ve,bgr:se,bga:be,pos:Le,top:Ee,left:ye,bottom:Je,right:nt,inset:We,display:Ae,flex:tt,bdrs:N,hiddenFrom:nn,visibleFrom:An,lightHidden:No,darkHidden:Dn,sx:wt}),rest:to}}const S6={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function pp(t,o){const r=kl({color:t,theme:o});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function C6(t,o){const r=kl({color:t,theme:o});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:pp(t,o)}function w6(t,o){if(typeof t=="number")return oe(t);if(typeof t=="string"){const[r,a,...s]=t.split(" ").filter(u=>u.trim()!=="");let c=`${oe(r)}`;return a&&(c+=` ${a}`),s.length>0&&(c+=` ${pp(s.join(" "),o)}`),c.trim()}return t}const hy={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function E6(t){return typeof t=="string"&&t in hy?hy[t]:t}const T6=["h1","h2","h3","h4","h5","h6"];function R6(t,o){return typeof t=="string"&&t in o.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&T6.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?oe(t):t}function M6(t){return t}const O6=["h1","h2","h3","h4","h5","h6"];function j6(t,o){return typeof t=="string"&&t in o.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&O6.includes(t)?`var(--mantine-${t}-line-height)`:t}function _6(t,o){return typeof t=="string"&&t in o.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?oe(t):t}function N6(t){return typeof t=="number"?oe(t):t}function A6(t,o){if(typeof t=="number")return oe(t);if(typeof t=="string"){const r=t.replace("-","");if(!(r in o.spacing))return oe(t);const a=`--mantine-spacing-${r}`;return t.startsWith("-")?`calc(var(${a}) * -1)`:`var(${a})`}return t}const um={color:pp,textColor:C6,fontSize:R6,spacing:A6,radius:_6,identity:M6,size:N6,lineHeight:j6,fontFamily:E6,border:w6};function gy(t){return t.replace("(min-width: ","").replace("em)","")}function D6({media:t,...o}){const a=Object.keys(t).sort((s,c)=>Number(gy(s))-Number(gy(c))).map(s=>({query:s,styles:t[s]}));return{...o,media:a}}function H6(t){if(typeof t!="object"||t===null)return!1;const o=Object.keys(t);return!(o.length===1&&o[0]==="base")}function z6(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function L6(t){return typeof t=="object"&&t!==null?Xn(t).filter(o=>o!=="base"):[]}function k6(t,o){return typeof t=="object"&&t!==null&&o in t?t[o]:t}function j2({styleProps:t,data:o,theme:r}){return D6(Xn(t).reduce((a,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return a;const c=o[s],u=Array.isArray(c.property)?c.property:[c.property],f=z6(t[s]);if(!H6(t[s]))return u.forEach(h=>{a.inlineStyles[h]=um[c.type](f,r)}),a;a.hasResponsiveStyles=!0;const m=L6(t[s]);return u.forEach(h=>{f!=null&&(a.styles[h]=um[c.type](f,r)),m.forEach(g=>{const v=`(min-width: ${r.breakpoints[g]})`;a.media[v]={...a.media[v],[h]:um[c.type](k6(t[s],g),r)}})}),a},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function _2(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function N2(t,o){return Array.isArray(t)?[...t].reduce((r,a)=>({...r,...N2(a,o)}),{}):typeof t=="function"?t(o):t??{}}function A2(t){return t.startsWith("data-")?t:`data-${t}`}function V6(t){return Object.keys(t).reduce((o,r)=>{const a=t[r];return a===void 0||a===""||a===!1||a===null||(o[A2(r)]=t[r]),o},{})}function D2(t){return t?typeof t=="string"?{[A2(t)]:!0}:Array.isArray(t)?[...t].reduce((o,r)=>({...o,...D2(r)}),{}):V6(t):null}function Vm(t,o){return Array.isArray(t)?[...t].reduce((r,a)=>({...r,...Vm(a,o)}),{}):typeof t=="function"?t(o):t??{}}function B6({theme:t,style:o,vars:r,styleProps:a}){const s=Vm(o,t),c=Vm(r,t);return{...s,...c,...a}}const H2=x.forwardRef(({component:t,style:o,__vars:r,className:a,variant:s,mod:c,size:u,hiddenFrom:f,visibleFrom:m,lightHidden:h,darkHidden:g,renderRoot:v,__size:b,...C},E)=>{const w=Ut(),T=t||"div",{styleProps:M,rest:O}=Ic(C),N=VE()?.()?.(M.sx),D=_2(),V=j2({styleProps:M,theme:w,data:S6}),$={ref:E,style:B6({theme:w,style:o,vars:r,styleProps:V.inlineStyles}),className:jo(a,N,{[D]:V.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":g,[`mantine-hidden-from-${f}`]:f,[`mantine-visible-from-${m}`]:m}),"data-variant":s,"data-size":h2(u)?void 0:u||void 0,size:b,...D2(c),...O};return y.jsxs(y.Fragment,{children:[V.hasResponsiveStyles&&y.jsx(O2,{selector:`.${D}`,styles:V.styles,media:V.media}),typeof v=="function"?v($):y.jsx(T,{...$})]})});H2.displayName="@mantine/core/Box";const ge=H2;function z2(t){return t}function $6(t){const o=t;return r=>{const a=x.forwardRef((s,c)=>y.jsx(o,{...r,...s,ref:c}));return a.extend=o.extend,a.displayName=`WithProps(${o.displayName})`,a}}function Ne(t){const o=x.forwardRef(t);return o.extend=z2,o.withProps=r=>{const a=x.forwardRef((s,c)=>y.jsx(o,{...r,...s,ref:c}));return a.extend=o.extend,a.displayName=`WithProps(${o.displayName})`,a},o}function Mt(t){const o=x.forwardRef(t);return o.withProps=r=>{const a=x.forwardRef((s,c)=>y.jsx(o,{...r,...s,ref:c}));return a.extend=o.extend,a.displayName=`WithProps(${o.displayName})`,a},o.extend=z2,o}const U6=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Yr(){return x.useContext(U6)}function G6(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Z6(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(o=>{let{brand:r,version:a}=o;return r+"/"+a}).join(" "):navigator.userAgent}function P6(){return/apple/i.test(navigator.vendor)}function q6(){return G6().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Y6(){return Z6().includes("jsdom/")}const vy="data-floating-ui-focusable",X6="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function yy(t){let o=t.activeElement;for(;((r=o)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;o=o.shadowRoot.activeElement}return o}function li(t,o){if(!t||!o)return!1;const r=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(r&&Tm(r)){let a=o;for(;a;){if(t===a)return!0;a=a.parentNode||a.host}}return!1}function Nr(t){return"composedPath"in t?t.composedPath()[0]:t.target}function fm(t,o){if(o==null)return!1;if("composedPath"in t)return t.composedPath().includes(o);const r=t;return r.target!=null&&o.contains(r.target)}function I6(t){return t.matches("html,body")}function Dl(t){return t?.ownerDocument||document}function Q6(t){return en(t)&&t.matches(X6)}function F6(t){if(!t||Y6())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function K6(t){return t?t.hasAttribute(vy)?t:t.querySelector("["+vy+"]")||t:null}function Js(t,o,r){return r===void 0&&(r=!0),t.filter(s=>{var c;return s.parentId===o&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Js(t,s.id,r)])}function J6(t){return"nativeEvent"in t}function Bm(t,o){const r=["mouse","pen"];return r.push("",void 0),r.includes(t)}var W6=typeof document<"u",eT=function(){},In=W6?x.useLayoutEffect:eT;const tT={...Rc};function Ps(t){const o=x.useRef(t);return In(()=>{o.current=t}),o}const nT=tT.useInsertionEffect,oT=nT||(t=>t());function Gn(t){const o=x.useRef(()=>{});return oT(()=>{o.current=t}),x.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o.current==null?void 0:o.current(...a)},[])}const lT="data-floating-ui-focusable",by="active",xy="selected",rT={...Rc};let Sy=!1,aT=0;const Cy=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+aT++;function iT(){const[t,o]=x.useState(()=>Sy?Cy():void 0);return In(()=>{t==null&&o(Cy())},[]),x.useEffect(()=>{Sy=!0},[]),t}const sT=rT.useId,L2=sT||iT;function cT(){const t=new Map;return{emit(o,r){var a;(a=t.get(o))==null||a.forEach(s=>s(r))},on(o,r){t.has(o)||t.set(o,new Set),t.get(o).add(r)},off(o,r){var a;(a=t.get(o))==null||a.delete(r)}}}const uT=x.createContext(null),fT=x.createContext(null),hp=()=>{var t;return((t=x.useContext(uT))==null?void 0:t.id)||null},gp=()=>x.useContext(fT);function vp(t){return"data-floating-ui-"+t}function pn(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const wy=vp("safe-polygon");function Ws(t,o,r){if(r&&!Bm(r))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const a=t();return typeof a=="number"?a:a?.[o]}return t?.[o]}function dm(t){return typeof t=="function"?t():t}function dT(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,dataRef:s,events:c,elements:u}=t,{enabled:f=!0,delay:m=0,handleClose:h=null,mouseOnly:g=!1,restMs:v=0,move:b=!0}=o,C=gp(),E=hp(),w=Ps(h),T=Ps(m),M=Ps(r),O=Ps(v),j=x.useRef(),N=x.useRef(-1),D=x.useRef(),V=x.useRef(-1),$=x.useRef(!0),X=x.useRef(!1),F=x.useRef(()=>{}),q=x.useRef(!1),te=Gn(()=>{var L;const _=(L=s.current.openEvent)==null?void 0:L.type;return _?.includes("mouse")&&_!=="mousedown"});x.useEffect(()=>{if(!f)return;function L(_){let{open:Z}=_;Z||(pn(N),pn(V),$.current=!0,q.current=!1)}return c.on("openchange",L),()=>{c.off("openchange",L)}},[f,c]),x.useEffect(()=>{if(!f||!w.current||!r)return;function L(Z){te()&&a(!1,Z,"hover")}const _=Dl(u.floating).documentElement;return _.addEventListener("mouseleave",L),()=>{_.removeEventListener("mouseleave",L)}},[u.floating,r,a,f,w,te]);const le=x.useCallback(function(L,_,Z){_===void 0&&(_=!0),Z===void 0&&(Z="hover");const I=Ws(T.current,"close",j.current);I&&!D.current?(pn(N),N.current=window.setTimeout(()=>a(!1,L,Z),I)):_&&(pn(N),a(!1,L,Z))},[T,a]),ee=Gn(()=>{F.current(),D.current=void 0}),H=Gn(()=>{if(X.current){const L=Dl(u.floating).body;L.style.pointerEvents="",L.removeAttribute(wy),X.current=!1}}),W=Gn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!f)return;function L(ne){if(pn(N),$.current=!1,g&&!Bm(j.current)||dm(O.current)>0&&!Ws(T.current,"open"))return;const re=Ws(T.current,"open",j.current);re?N.current=window.setTimeout(()=>{M.current||a(!0,ne,"hover")},re):r||a(!0,ne,"hover")}function _(ne){if(W()){H();return}F.current();const re=Dl(u.floating);if(pn(V),q.current=!1,w.current&&s.current.floatingContext){r||pn(N),D.current=w.current({...s.current.floatingContext,tree:C,x:ne.clientX,y:ne.clientY,onClose(){H(),ee(),W()||le(ne,!0,"safe-polygon")}});const se=D.current;re.addEventListener("mousemove",se),F.current=()=>{re.removeEventListener("mousemove",se)};return}(j.current!=="touch"||!li(u.floating,ne.relatedTarget))&&le(ne)}function Z(ne){W()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:C,x:ne.clientX,y:ne.clientY,onClose(){H(),ee(),W()||le(ne)}})(ne))}function I(){pn(N)}function ae(ne){W()||le(ne,!1)}if(Qe(u.domReference)){const ne=u.domReference,re=u.floating;return r&&ne.addEventListener("mouseleave",Z),b&&ne.addEventListener("mousemove",L,{once:!0}),ne.addEventListener("mouseenter",L),ne.addEventListener("mouseleave",_),re&&(re.addEventListener("mouseleave",Z),re.addEventListener("mouseenter",I),re.addEventListener("mouseleave",ae)),()=>{r&&ne.removeEventListener("mouseleave",Z),b&&ne.removeEventListener("mousemove",L),ne.removeEventListener("mouseenter",L),ne.removeEventListener("mouseleave",_),re&&(re.removeEventListener("mouseleave",Z),re.removeEventListener("mouseenter",I),re.removeEventListener("mouseleave",ae))}}},[u,f,t,g,b,le,ee,H,a,r,M,C,T,w,s,W,O]),In(()=>{var L;if(f&&r&&(L=w.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&te()){X.current=!0;const Z=u.floating;if(Qe(u.domReference)&&Z){var _;const I=Dl(u.floating).body;I.setAttribute(wy,"");const ae=u.domReference,ne=C==null||(_=C.nodesRef.current.find(re=>re.id===E))==null||(_=_.context)==null?void 0:_.elements.floating;return ne&&(ne.style.pointerEvents=""),I.style.pointerEvents="none",ae.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{I.style.pointerEvents="",ae.style.pointerEvents="",Z.style.pointerEvents=""}}}},[f,r,E,u,C,w,te]),In(()=>{r||(j.current=void 0,q.current=!1,ee(),H())},[r,ee,H]),x.useEffect(()=>()=>{ee(),pn(N),pn(V),H()},[f,u.domReference,ee,H]);const z=x.useMemo(()=>{function L(_){j.current=_.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(_){const{nativeEvent:Z}=_;function I(){!$.current&&!M.current&&a(!0,Z,"hover")}g&&!Bm(j.current)||r||dm(O.current)===0||q.current&&_.movementX**2+_.movementY**2<2||(pn(V),j.current==="touch"?I():(q.current=!0,V.current=window.setTimeout(I,dm(O.current))))}}},[g,a,r,M,O]);return x.useMemo(()=>f?{reference:z}:{},[f,z])}const $m=()=>{},k2=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:$m,setState:$m,isInstantPhase:!1}),mT=()=>x.useContext(k2);function pT(t){const{children:o,delay:r,timeoutMs:a=0}=t,[s,c]=x.useReducer((m,h)=>({...m,...h}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),u=x.useRef(null),f=x.useCallback(m=>{c({currentId:m})},[]);return In(()=>{s.currentId?u.current===null?u.current=s.currentId:s.isInstantPhase||c({isInstantPhase:!0}):(s.isInstantPhase&&c({isInstantPhase:!1}),u.current=null)},[s.currentId,s.isInstantPhase]),y.jsx(k2.Provider,{value:x.useMemo(()=>({...s,setState:c,setCurrentId:f}),[s,f]),children:o})}function hT(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,floatingId:s}=t,{id:c,enabled:u=!0}=o,f=c??s,m=mT(),{currentId:h,setCurrentId:g,initialDelay:v,setState:b,timeoutMs:C}=m;return In(()=>{u&&h&&(b({delay:{open:1,close:Ws(v,"close")}}),h!==f&&a(!1))},[u,f,a,b,h,v]),In(()=>{function E(){a(!1),b({delay:v,currentId:null})}if(u&&h&&!r&&h===f){if(C){const w=window.setTimeout(E,C);return()=>{clearTimeout(w)}}E()}},[u,r,b,h,f,a,v,C]),In(()=>{u&&(g===$m||!r||g(f))},[u,r,g,f]),m}const gT={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vT={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ey=t=>{var o,r;return{escapeKey:typeof t=="boolean"?t:(o=t?.escapeKey)!=null?o:!1,outsidePress:typeof t=="boolean"?t:(r=t?.outsidePress)!=null?r:!0}};function yT(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,elements:s,dataRef:c}=t,{enabled:u=!0,escapeKey:f=!0,outsidePress:m=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:v="pointerdown",ancestorScroll:b=!1,bubbles:C,capture:E}=o,w=gp(),T=Gn(typeof m=="function"?m:()=>!1),M=typeof m=="function"?T:m,O=x.useRef(!1),{escapeKey:j,outsidePress:N}=Ey(C),{escapeKey:D,outsidePress:V}=Ey(E),$=x.useRef(!1),X=Gn(H=>{var W;if(!r||!u||!f||H.key!=="Escape"||$.current)return;const z=(W=c.current.floatingContext)==null?void 0:W.nodeId,L=w?Js(w.nodesRef.current,z):[];if(!j&&(H.stopPropagation(),L.length>0)){let _=!0;if(L.forEach(Z=>{var I;if((I=Z.context)!=null&&I.open&&!Z.context.dataRef.current.__escapeKeyBubbles){_=!1;return}}),!_)return}a(!1,J6(H)?H.nativeEvent:H,"escape-key")}),F=Gn(H=>{var W;const z=()=>{var L;X(H),(L=Nr(H))==null||L.removeEventListener("keydown",z)};(W=Nr(H))==null||W.addEventListener("keydown",z)}),q=Gn(H=>{var W;const z=c.current.insideReactTree;c.current.insideReactTree=!1;const L=O.current;if(O.current=!1,h==="click"&&L||z||typeof M=="function"&&!M(H))return;const _=Nr(H),Z="["+vp("inert")+"]",I=Dl(s.floating).querySelectorAll(Z);let ae=Qe(_)?_:null;for(;ae&&!To(ae);){const se=Mo(ae);if(To(se)||!Qe(se))break;ae=se}if(I.length&&Qe(_)&&!I6(_)&&!li(_,s.floating)&&Array.from(I).every(se=>!li(ae,se)))return;if(en(_)&&ee){const se=To(_),be=hn(_),Le=/auto|scroll/,Ee=se||Le.test(be.overflowX),ye=se||Le.test(be.overflowY),Je=Ee&&_.clientWidth>0&&_.scrollWidth>_.clientWidth,nt=ye&&_.clientHeight>0&&_.scrollHeight>_.clientHeight,We=be.direction==="rtl",Ae=nt&&(We?H.offsetX<=_.offsetWidth-_.clientWidth:H.offsetX>_.clientWidth),tt=Je&&H.offsetY>_.clientHeight;if(Ae||tt)return}const ne=(W=c.current.floatingContext)==null?void 0:W.nodeId,re=w&&Js(w.nodesRef.current,ne).some(se=>{var be;return fm(H,(be=se.context)==null?void 0:be.elements.floating)});if(fm(H,s.floating)||fm(H,s.domReference)||re)return;const ve=w?Js(w.nodesRef.current,ne):[];if(ve.length>0){let se=!0;if(ve.forEach(be=>{var Le;if((Le=be.context)!=null&&Le.open&&!be.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}a(!1,H,"outside-press")}),te=Gn(H=>{var W;const z=()=>{var L;q(H),(L=Nr(H))==null||L.removeEventListener(h,z)};(W=Nr(H))==null||W.addEventListener(h,z)});x.useEffect(()=>{if(!r||!u)return;c.current.__escapeKeyBubbles=j,c.current.__outsidePressBubbles=N;let H=-1;function W(I){a(!1,I,"ancestor-scroll")}function z(){window.clearTimeout(H),$.current=!0}function L(){H=window.setTimeout(()=>{$.current=!1},Ac()?5:0)}const _=Dl(s.floating);f&&(_.addEventListener("keydown",D?F:X,D),_.addEventListener("compositionstart",z),_.addEventListener("compositionend",L)),M&&_.addEventListener(h,V?te:q,V);let Z=[];return b&&(Qe(s.domReference)&&(Z=Ro(s.domReference)),Qe(s.floating)&&(Z=Z.concat(Ro(s.floating))),!Qe(s.reference)&&s.reference&&s.reference.contextElement&&(Z=Z.concat(Ro(s.reference.contextElement)))),Z=Z.filter(I=>{var ae;return I!==((ae=_.defaultView)==null?void 0:ae.visualViewport)}),Z.forEach(I=>{I.addEventListener("scroll",W,{passive:!0})}),()=>{f&&(_.removeEventListener("keydown",D?F:X,D),_.removeEventListener("compositionstart",z),_.removeEventListener("compositionend",L)),M&&_.removeEventListener(h,V?te:q,V),Z.forEach(I=>{I.removeEventListener("scroll",W)}),window.clearTimeout(H)}},[c,s,f,M,h,r,a,b,u,j,N,X,D,F,q,V,te]),x.useEffect(()=>{c.current.insideReactTree=!1},[c,M,h]);const le=x.useMemo(()=>({onKeyDown:X,...g&&{[gT[v]]:H=>{a(!1,H.nativeEvent,"reference-press")},...v!=="click"&&{onClick(H){a(!1,H.nativeEvent,"reference-press")}}}}),[X,a,g,v]),ee=x.useMemo(()=>({onKeyDown:X,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[vT[h]]:()=>{c.current.insideReactTree=!0}}),[X,h,c]);return x.useMemo(()=>u?{reference:le,floating:ee}:{},[u,le,ee])}function bT(t){const{open:o=!1,onOpenChange:r,elements:a}=t,s=L2(),c=x.useRef({}),[u]=x.useState(()=>cT()),f=hp()!=null,[m,h]=x.useState(a.reference),g=Gn((C,E,w)=>{c.current.openEvent=C?E:void 0,u.emit("openchange",{open:C,event:E,reason:w,nested:f}),r?.(C,E,w)}),v=x.useMemo(()=>({setPositionReference:h}),[]),b=x.useMemo(()=>({reference:m||a.reference||null,floating:a.floating||null,domReference:a.reference}),[m,a.reference,a.floating]);return x.useMemo(()=>({dataRef:c,open:o,onOpenChange:g,elements:b,events:u,floatingId:s,refs:v}),[o,g,b,u,s,v])}function yp(t){t===void 0&&(t={});const{nodeId:o}=t,r=bT({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||r,s=a.elements,[c,u]=x.useState(null),[f,m]=x.useState(null),g=s?.domReference||c,v=x.useRef(null),b=gp();In(()=>{g&&(v.current=g)},[g]);const C=hw({...t,elements:{...s,...f&&{reference:f}}}),E=x.useCallback(j=>{const N=Qe(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;m(N),C.refs.setReference(N)},[C.refs]),w=x.useCallback(j=>{(Qe(j)||j===null)&&(v.current=j,u(j)),(Qe(C.refs.reference.current)||C.refs.reference.current===null||j!==null&&!Qe(j))&&C.refs.setReference(j)},[C.refs]),T=x.useMemo(()=>({...C.refs,setReference:w,setPositionReference:E,domReference:v}),[C.refs,w,E]),M=x.useMemo(()=>({...C.elements,domReference:g}),[C.elements,g]),O=x.useMemo(()=>({...C,...a,refs:T,elements:M,nodeId:o}),[C,T,M,o,a]);return In(()=>{a.dataRef.current.floatingContext=O;const j=b?.nodesRef.current.find(N=>N.id===o);j&&(j.context=O)}),x.useMemo(()=>({...C,context:O,refs:T,elements:M}),[C,T,M,O])}function mm(){return q6()&&P6()}function xT(t,o){o===void 0&&(o={});const{open:r,onOpenChange:a,events:s,dataRef:c,elements:u}=t,{enabled:f=!0,visibleOnly:m=!0}=o,h=x.useRef(!1),g=x.useRef(-1),v=x.useRef(!0);x.useEffect(()=>{if(!f)return;const C=Bt(u.domReference);function E(){!r&&en(u.domReference)&&u.domReference===yy(Dl(u.domReference))&&(h.current=!0)}function w(){v.current=!0}function T(){v.current=!1}return C.addEventListener("blur",E),mm()&&(C.addEventListener("keydown",w,!0),C.addEventListener("pointerdown",T,!0)),()=>{C.removeEventListener("blur",E),mm()&&(C.removeEventListener("keydown",w,!0),C.removeEventListener("pointerdown",T,!0))}},[u.domReference,r,f]),x.useEffect(()=>{if(!f)return;function C(E){let{reason:w}=E;(w==="reference-press"||w==="escape-key")&&(h.current=!0)}return s.on("openchange",C),()=>{s.off("openchange",C)}},[s,f]),x.useEffect(()=>()=>{pn(g)},[]);const b=x.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(C){if(h.current)return;const E=Nr(C.nativeEvent);if(m&&Qe(E)){if(mm()&&!C.relatedTarget){if(!v.current&&!Q6(E))return}else if(!F6(E))return}a(!0,C.nativeEvent,"focus")},onBlur(C){h.current=!1;const E=C.relatedTarget,w=C.nativeEvent,T=Qe(E)&&E.hasAttribute(vp("focus-guard"))&&E.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var M;const O=yy(u.domReference?u.domReference.ownerDocument:document);!E&&O===u.domReference||li((M=c.current.floatingContext)==null?void 0:M.refs.floating.current,O)||li(u.domReference,O)||T||a(!1,w,"focus")})}}),[c,u.domReference,a,m]);return x.useMemo(()=>f?{reference:b}:{},[f,b])}function pm(t,o,r){const a=new Map,s=r==="item";let c=t;if(s&&t){const{[by]:u,[xy]:f,...m}=t;c=m}return{...r==="floating"&&{tabIndex:-1,[lT]:""},...c,...o.map(u=>{const f=u?u[r]:null;return typeof f=="function"?t?f(t):null:f}).concat(t).reduce((u,f)=>(f&&Object.entries(f).forEach(m=>{let[h,g]=m;if(!(s&&[by,xy].includes(h)))if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof g=="function"){var v;(v=a.get(h))==null||v.push(g),u[h]=function(){for(var b,C=arguments.length,E=new Array(C),w=0;w<C;w++)E[w]=arguments[w];return(b=a.get(h))==null?void 0:b.map(T=>T(...E)).find(T=>T!==void 0)}}}else u[h]=g}),u),{})}}function ST(t){t===void 0&&(t=[]);const o=t.map(f=>f?.reference),r=t.map(f=>f?.floating),a=t.map(f=>f?.item),s=x.useCallback(f=>pm(f,t,"reference"),o),c=x.useCallback(f=>pm(f,t,"floating"),r),u=x.useCallback(f=>pm(f,t,"item"),a);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:u}),[s,c,u])}const CT=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function wT(t,o){var r,a;o===void 0&&(o={});const{open:s,elements:c,floatingId:u}=t,{enabled:f=!0,role:m="dialog"}=o,h=L2(),g=((r=c.domReference)==null?void 0:r.id)||h,v=x.useMemo(()=>{var O;return((O=K6(c.floating))==null?void 0:O.id)||u},[c.floating,u]),b=(a=CT.get(m))!=null?a:m,E=hp()!=null,w=x.useMemo(()=>b==="tooltip"||m==="label"?{["aria-"+(m==="label"?"labelledby":"describedby")]:s?v:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":b==="alertdialog"?"dialog":b,"aria-controls":s?v:void 0,...b==="listbox"&&{role:"combobox"},...b==="menu"&&{id:g},...b==="menu"&&E&&{role:"menuitem"},...m==="select"&&{"aria-autocomplete":"none"},...m==="combobox"&&{"aria-autocomplete":"list"}},[b,v,E,s,g,m]),T=x.useMemo(()=>{const O={id:v,...b&&{role:b}};return b==="tooltip"||m==="label"?O:{...O,...b==="menu"&&{"aria-labelledby":g}}},[b,v,g,m]),M=x.useCallback(O=>{let{active:j,selected:N}=O;const D={role:"option",...j&&{id:v+"-fui-option"}};switch(m){case"select":case"combobox":return{...D,"aria-selected":N}}return{}},[v,m]);return x.useMemo(()=>f?{reference:w,floating:T,item:M}:{},[f,w,T,M])}var V2={root:"m_87cf2631"};const ET={__staticSelector:"UnstyledButton"},cl=Mt((t,o)=>{const r=ce("UnstyledButton",ET,t),{className:a,component:s="button",__staticSelector:c,unstyled:u,classNames:f,styles:m,style:h,attributes:g,...v}=r,b=_e({name:c,props:r,classes:V2,className:a,style:h,classNames:f,styles:m,unstyled:u,attributes:g});return y.jsx(ge,{...b("root",{focusable:!0}),component:s,ref:o,type:s==="button"?"button":void 0,...v})});cl.classes=V2;cl.displayName="@mantine/core/UnstyledButton";var B2={root:"m_515a97f8"};const bp=Ne((t,o)=>{const r=ce("VisuallyHidden",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,attributes:h,...g}=r,v=_e({name:"VisuallyHidden",classes:B2,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:h});return y.jsx(ge,{component:"span",ref:o,...v("root"),...g})});bp.classes=B2;bp.displayName="@mantine/core/VisuallyHidden";var $2={root:"m_1b7284a3"};const TT=(t,{radius:o,shadow:r})=>({root:{"--paper-radius":o===void 0?void 0:Rt(o),"--paper-shadow":v2(r)}}),xp=Mt((t,o)=>{const r=ce("Paper",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,withBorder:m,vars:h,radius:g,shadow:v,variant:b,mod:C,attributes:E,...w}=r,T=_e({name:"Paper",props:r,classes:$2,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:E,vars:h,varsResolver:TT});return y.jsx(ge,{ref:o,mod:[{"data-with-border":m},C],...T("root"),variant:b,...w})});xp.classes=$2;xp.displayName="@mantine/core/Paper";function Ty(t,o,r,a){return t==="center"||a==="center"?{top:o}:t==="end"?{bottom:r}:t==="start"?{top:r}:{}}function Ry(t,o,r,a,s){return t==="center"||a==="center"?{left:o}:t==="end"?{[s==="ltr"?"right":"left"]:r}:t==="start"?{[s==="ltr"?"left":"right"]:r}:{}}const RT={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function MT({position:t,arrowSize:o,arrowOffset:r,arrowRadius:a,arrowPosition:s,arrowX:c,arrowY:u,dir:f}){const[m,h="center"]=t.split("-"),g={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[RT[m]]:a},v=-o/2;return m==="left"?{...g,...Ty(h,u,r,s),right:v,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:m==="right"?{...g,...Ty(h,u,r,s),left:v,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:m==="top"?{...g,...Ry(h,c,r,s,f),bottom:v,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:m==="bottom"?{...g,...Ry(h,c,r,s,f),top:v,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const xc=x.forwardRef(({position:t,arrowSize:o,arrowOffset:r,arrowRadius:a,arrowPosition:s,visible:c,arrowX:u,arrowY:f,style:m,...h},g)=>{const{dir:v}=Yr();return c?y.jsx("div",{...h,ref:g,style:{...m,...MT({position:t,arrowSize:o,arrowOffset:r,arrowRadius:a,arrowPosition:s,dir:v,arrowX:u,arrowY:f})}}):null});xc.displayName="@mantine/core/FloatingArrow";function U2(t,o){if(t==="rtl"&&(o.includes("right")||o.includes("left"))){const[r,a]=o.split("-"),s=r==="right"?"left":"right";return a===void 0?s:`${s}-${a}`}return o}var G2={root:"m_9814e45f"};const OT={zIndex:fi("modal")},jT=(t,{gradient:o,color:r,backgroundOpacity:a,blur:s,radius:c,zIndex:u})=>({root:{"--overlay-bg":o||(r!==void 0||a!==void 0)&&Vn(r||"#000",a??.6)||void 0,"--overlay-filter":s?`blur(${oe(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Rt(c),"--overlay-z-index":u?.toString()}}),ri=Mt((t,o)=>{const r=ce("Overlay",OT,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,fixed:h,center:g,children:v,radius:b,zIndex:C,gradient:E,blur:w,color:T,backgroundOpacity:M,mod:O,attributes:j,...N}=r,D=_e({name:"Overlay",props:r,classes:G2,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:j,vars:m,varsResolver:jT});return y.jsx(ge,{ref:o,...D("root"),mod:[{center:g,fixed:h},O],...N,children:v})});ri.classes=G2;ri.displayName="@mantine/core/Overlay";function hm(t){const o=document.createElement("div");return o.setAttribute("data-portal","true"),typeof t.className=="string"&&o.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(o.style,t.style),typeof t.id=="string"&&o.setAttribute("id",t.id),o}function _T({target:t,reuseTargetNode:o,...r}){if(t)return typeof t=="string"?document.querySelector(t)||hm(r):t;if(o){const a=document.querySelector("[data-mantine-shared-portal-node]");if(a)return a;const s=hm(r);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return hm(r)}const NT={reuseTargetNode:!0},Z2=Ne((t,o)=>{const{children:r,target:a,reuseTargetNode:s,...c}=ce("Portal",NT,t),[u,f]=x.useState(!1),m=x.useRef(null);return mi(()=>(f(!0),m.current=_T({target:a,reuseTargetNode:s,...c}),yc(o,m.current),!a&&!s&&m.current&&document.body.appendChild(m.current),()=>{!a&&!s&&m.current&&document.body.removeChild(m.current)}),[a]),!u||!m.current?null:wn.createPortal(y.jsx(y.Fragment,{children:r}),m.current)});Z2.displayName="@mantine/core/Portal";const Br=Ne(({withinPortal:t=!0,children:o,...r},a)=>Yc()==="test"||!t?y.jsx(y.Fragment,{children:o}):y.jsx(Z2,{ref:a,...r,children:o}));Br.displayName="@mantine/core/OptionalPortal";const Fa=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),qs={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Fa("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Fa("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Fa("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Fa("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Fa("top"),common:{transformOrigin:"top right"}}},My={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function AT({transition:t,state:o,duration:r,timingFunction:a}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${r}ms`,transitionTimingFunction:a};return typeof t=="string"?t in qs?{transitionProperty:qs[t].transitionProperty,...s,...qs[t].common,...qs[t][My[o]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[My[o]]}}function DT({duration:t,exitDuration:o,timingFunction:r,mounted:a,onEnter:s,onExit:c,onEntered:u,onExited:f,enterDelay:m,exitDelay:h}){const g=Ut(),v=ME(),b=g.respectReducedMotion?v:!1,[C,E]=x.useState(b?0:t),[w,T]=x.useState(a?"entered":"exited"),M=x.useRef(-1),O=x.useRef(-1),j=x.useRef(-1);function N(){window.clearTimeout(M.current),window.clearTimeout(O.current),cancelAnimationFrame(j.current)}const D=$=>{N();const X=$?s:c,F=$?u:f,q=b?0:$?t:o;E(q),q===0?(typeof X=="function"&&X(),typeof F=="function"&&F(),T($?"entered":"exited")):j.current=requestAnimationFrame(()=>{Yy.flushSync(()=>{T($?"pre-entering":"pre-exiting")}),j.current=requestAnimationFrame(()=>{typeof X=="function"&&X(),T($?"entering":"exiting"),M.current=window.setTimeout(()=>{typeof F=="function"&&F(),T($?"entered":"exited")},q)})})},V=$=>{if(N(),typeof($?m:h)!="number"){D($);return}O.current=window.setTimeout(()=>{D($)},$?m:h)};return ni(()=>{V(a)},[a]),x.useEffect(()=>()=>{N()},[]),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:r||"ease"}}function il({keepMounted:t,transition:o="fade",duration:r=250,exitDuration:a=r,mounted:s,children:c,timingFunction:u="ease",onExit:f,onEntered:m,onEnter:h,onExited:g,enterDelay:v,exitDelay:b}){const C=Yc(),{transitionDuration:E,transitionStatus:w,transitionTimingFunction:T}=DT({mounted:s,exitDuration:a,duration:r,timingFunction:u,onExit:f,onEntered:m,onEnter:h,onExited:g,enterDelay:v,exitDelay:b});return E===0||C==="test"?s?y.jsx(y.Fragment,{children:c({})}):t?c({display:"none"}):null:w==="exited"?t?c({display:"none"}):null:y.jsx(y.Fragment,{children:c(AT({transition:o,duration:E,state:w,timingFunction:T}))})}il.displayName="@mantine/core/Transition";const[HT,P2]=Gc("Popover component was not found in the tree");var q2={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function Sp({children:t,active:o=!0,refProp:r="ref",innerRef:a}){const s=S2(o),c=jn(s,a),u=pi(t);return u?x.cloneElement(u,{[r]:c}):t}function Y2(t){return y.jsx(bp,{tabIndex:-1,"data-autofocus":!0,...t})}Sp.displayName="@mantine/core/FocusTrap";Y2.displayName="@mantine/core/FocusTrapInitialFocus";Sp.InitialFocus=Y2;const Qc=Ne((t,o)=>{const r=ce("PopoverDropdown",null,t),{className:a,style:s,vars:c,children:u,onKeyDownCapture:f,variant:m,classNames:h,styles:g,...v}=r,b=P2(),C=bE({opened:b.opened,shouldReturnFocus:b.returnFocus}),E=b.withRoles?{"aria-labelledby":b.getTargetId(),id:b.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=jn(o,b.floating);return b.disabled?null:y.jsx(Br,{...b.portalProps,withinPortal:b.withinPortal,children:y.jsx(il,{mounted:b.opened,...b.transitionProps,transition:b.transitionProps?.transition||"fade",duration:b.transitionProps?.duration??150,keepMounted:b.keepMounted,exitDuration:typeof b.transitionProps?.exitDuration=="number"?b.transitionProps.exitDuration:b.transitionProps?.duration,children:T=>y.jsx(Sp,{active:b.trapFocus&&b.opened,innerRef:w,children:y.jsxs(ge,{...E,...v,variant:m,onKeyDownCapture:uE(()=>{b.onClose?.(),b.onDismiss?.()},{active:b.closeOnEscape,onTrigger:C,onKeyDown:f}),"data-position":b.placement,"data-fixed":b.floatingStrategy==="fixed"||void 0,...b.getStyles("dropdown",{className:a,props:r,classNames:h,styles:g,style:[{...T,zIndex:b.zIndex,top:b.y??0,left:b.x??0,width:b.width==="target"?void 0:oe(b.width),...b.referenceHidden?{display:"none"}:null},b.resolvedStyles.dropdown,g?.dropdown,s]}),children:[u,y.jsx(xc,{ref:b.arrowRef,arrowX:b.arrowX,arrowY:b.arrowY,visible:b.withArrow,position:b.placement,arrowSize:b.arrowSize,arrowRadius:b.arrowRadius,arrowOffset:b.arrowOffset,arrowPosition:b.arrowPosition,...b.getStyles("arrow",{props:r,classNames:h,styles:g})})]})})})})});Qc.classes=q2;Qc.displayName="@mantine/core/PopoverDropdown";const zT={refProp:"ref",popupType:"dialog"},Cp=Ne((t,o)=>{const{children:r,refProp:a,popupType:s,...c}=ce("PopoverTarget",zT,t),u=pi(r);if(!u)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=c,m=P2(),h=jn(m.reference,sp(u),o),g=m.withRoles?{"aria-haspopup":s,"aria-expanded":m.opened,"aria-controls":m.opened?m.getDropdownId():void 0,id:m.getTargetId()}:{},v=u.props;return x.cloneElement(u,{...f,...g,...m.targetProps,className:jo(m.targetProps.className,f.className,v.className),[a]:h,...m.controlled?null:{onClick:()=>{m.onToggle(),v.onClick?.()}}})});Cp.displayName="@mantine/core/PopoverTarget";function LT(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function kT(t,o,r){const a=LT(t.middlewares),s=[db(t.offset),yw()];return t.dropdownVisible&&r!=="test"&&t.preventPositionChangeWhenVisible&&(a.flip=!1),a.flip&&s.push(typeof a.flip=="boolean"?oc():oc(a.flip)),a.shift&&s.push(Xm(typeof a.shift=="boolean"?{limiter:b0(),padding:5}:{limiter:b0(),padding:5,...a.shift})),a.inline&&s.push(typeof a.inline=="boolean"?Ka():Ka(a.inline)),s.push(mb({element:t.arrowRef,padding:t.arrowOffset})),(a.size||t.width==="target")&&s.push(vw({...typeof a.size=="boolean"?{}:a.size,apply({rects:c,availableWidth:u,availableHeight:f,...m}){const g=o().refs.floating.current?.style??{};a.size&&(typeof a.size=="object"&&a.size.apply?a.size.apply({rects:c,availableWidth:u,availableHeight:f,...m}):Object.assign(g,{maxWidth:`${u}px`,maxHeight:`${f}px`})),t.width==="target"&&Object.assign(g,{width:`${c.reference.width}px`})}})),s}function VT(t){const o=Yc(),[r,a]=qr({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),s=x.useRef(r),c=()=>{r&&!t.disabled&&a(!1)},u=()=>{t.disabled||a(!r)},f=yp({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:kT(t,()=>f,o),whileElementsMounted:t.keepMounted?void 0:Mm});return x.useEffect(()=>{if(!(!f.refs.reference.current||!f.refs.floating.current)&&r)return Mm(f.refs.reference.current,f.refs.floating.current,f.update)},[r,f.update]),ni(()=>{t.onPositionChange?.(f.placement),t.positionRef.current=f.placement},[f.placement,t.preventPositionChangeWhenVisible]),ni(()=>{r!==s.current&&(r?t.onOpen?.():t.onClose?.()),s.current=r},[r,t.onClose,t.onOpen]),mi(()=>{let m=-1;return r&&(m=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(m)}},[r,t.position]),{floating:f,controlled:typeof t.opened=="boolean",opened:r,onClose:c,onToggle:u}}const BT={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:fi("popover"),__staticSelector:"Popover",width:"max-content"},$T=(t,{radius:o,shadow:r})=>({dropdown:{"--popover-radius":o===void 0?void 0:Rt(o),"--popover-shadow":v2(r)}});function _n(t){const o=ce("Popover",BT,t),{children:r,position:a,offset:s,onPositionChange:c,positionDependencies:u,opened:f,transitionProps:m,onExitTransitionEnd:h,onEnterTransitionEnd:g,width:v,middlewares:b,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:T,arrowPosition:M,unstyled:O,classNames:j,styles:N,closeOnClickOutside:D,withinPortal:V,portalProps:$,closeOnEscape:X,clickOutsideEvents:F,trapFocus:q,onClose:te,onDismiss:le,onOpen:ee,onChange:H,zIndex:W,radius:z,shadow:L,id:_,defaultOpened:Z,__staticSelector:I,withRoles:ae,disabled:ne,returnFocus:re,variant:ve,keepMounted:se,vars:be,floatingStrategy:Le,withOverlay:Ee,overlayProps:ye,hideDetached:Je,attributes:nt,preventPositionChangeWhenVisible:We,...Ae}=o,tt=_e({name:I,props:o,classes:q2,classNames:j,styles:N,unstyled:O,attributes:nt,rootSelector:"dropdown",vars:be,varsResolver:$T}),{resolvedStyles:nn}=Xc({classNames:j,styles:N,props:o}),[An,No]=x.useState(f??Z??!1),Dn=x.useRef(a),wt=x.useRef(null),[to,Bl]=x.useState(null),[su,cu]=x.useState(null),{dir:Ot}=Yr(),uu=Yc(),Jr=Pr(_),ft=VT({middlewares:b,width:v,position:U2(Ot,a),offset:typeof s=="number"?s+(C?E/2:0):s,arrowRef:wt,arrowOffset:w,onPositionChange:c,positionDependencies:u,opened:f,defaultOpened:Z,onChange:H,onOpen:ee,onClose:te,onDismiss:le,strategy:Le,dropdownVisible:An,setDropdownVisible:No,positionRef:Dn,disabled:ne,preventPositionChangeWhenVisible:We,keepMounted:se});hE(()=>{D&&(ft.onClose(),le?.())},F,[to,su]);const $l=x.useCallback(no=>{Bl(no),ft.floating.refs.setReference(no)},[ft.floating.refs.setReference]),fu=x.useCallback(no=>{cu(no),ft.floating.refs.setFloating(no)},[ft.floating.refs.setFloating]),yi=x.useCallback(()=>{m?.onExited?.(),h?.(),No(!1),We||(Dn.current=a)},[m?.onExited,h,We,a]),du=x.useCallback(()=>{m?.onEntered?.(),g?.()},[m?.onEntered,g]);return y.jsxs(HT,{value:{returnFocus:re,disabled:ne,controlled:ft.controlled,reference:$l,floating:fu,x:ft.floating.x,y:ft.floating.y,arrowX:ft.floating?.middlewareData?.arrow?.x,arrowY:ft.floating?.middlewareData?.arrow?.y,opened:ft.opened,arrowRef:wt,transitionProps:{...m,onExited:yi,onEntered:du},width:v,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:T,arrowPosition:M,placement:ft.floating.placement,trapFocus:q,withinPortal:V,portalProps:$,zIndex:W,radius:z,shadow:L,closeOnEscape:X,onDismiss:le,onClose:ft.onClose,onToggle:ft.onToggle,getTargetId:()=>`${Jr}-target`,getDropdownId:()=>`${Jr}-dropdown`,withRoles:ae,targetProps:Ae,__staticSelector:I,classNames:j,styles:N,unstyled:O,variant:ve,keepMounted:se,getStyles:tt,resolvedStyles:nn,floatingStrategy:Le,referenceHidden:Je&&uu!=="test"?ft.floating.middlewareData.hide?.referenceHidden:!1},children:[r,Ee&&y.jsx(il,{transition:"fade",mounted:ft.opened,duration:m?.duration||250,exitDuration:m?.exitDuration||250,children:no=>y.jsx(Br,{withinPortal:V,children:y.jsx(ri,{...ye,...tt("overlay",{className:ye?.className,style:[no,ye?.style]})})})})]})}_n.Target=Cp;_n.Dropdown=Qc;_n.displayName="@mantine/core/Popover";_n.extend=t=>t;var Cn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const X2=x.forwardRef(({className:t,...o},r)=>y.jsxs(ge,{component:"span",className:jo(Cn.barsLoader,t),...o,ref:r,children:[y.jsx("span",{className:Cn.bar}),y.jsx("span",{className:Cn.bar}),y.jsx("span",{className:Cn.bar})]}));X2.displayName="@mantine/core/Bars";const I2=x.forwardRef(({className:t,...o},r)=>y.jsxs(ge,{component:"span",className:jo(Cn.dotsLoader,t),...o,ref:r,children:[y.jsx("span",{className:Cn.dot}),y.jsx("span",{className:Cn.dot}),y.jsx("span",{className:Cn.dot})]}));I2.displayName="@mantine/core/Dots";const Q2=x.forwardRef(({className:t,...o},r)=>y.jsx(ge,{component:"span",className:jo(Cn.ovalLoader,t),...o,ref:r}));Q2.displayName="@mantine/core/Oval";const F2={bars:X2,oval:Q2,dots:I2},UT={loaders:F2,type:"oval"},GT=(t,{size:o,color:r})=>({root:{"--loader-size":Ye(o,"loader-size"),"--loader-color":r?Oo(r,t):void 0}}),ul=Ne((t,o)=>{const r=ce("Loader",UT,t),{size:a,color:s,type:c,vars:u,className:f,style:m,classNames:h,styles:g,unstyled:v,loaders:b,variant:C,children:E,attributes:w,...T}=r,M=_e({name:"Loader",props:r,classes:Cn,className:f,style:m,classNames:h,styles:g,unstyled:v,attributes:w,vars:u,varsResolver:GT});return E?y.jsx(ge,{...M("root"),ref:o,...T,children:E}):y.jsx(ge,{...M("root"),ref:o,component:b[c],variant:C,size:a,...T})});ul.defaultLoaders=F2;ul.classes=Cn;ul.displayName="@mantine/core/Loader";var Xr={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const Oy={orientation:"horizontal"},ZT=(t,{borderWidth:o})=>({group:{"--ai-border-width":oe(o)}}),wp=Ne((t,o)=>{const r=ce("ActionIconGroup",Oy,t),{className:a,style:s,classNames:c,styles:u,unstyled:f,orientation:m,vars:h,borderWidth:g,variant:v,mod:b,attributes:C,...E}=ce("ActionIconGroup",Oy,t),w=_e({name:"ActionIconGroup",props:r,classes:Xr,className:a,style:s,classNames:c,styles:u,unstyled:f,attributes:C,vars:h,varsResolver:ZT,rootSelector:"group"});return y.jsx(ge,{...w("group"),ref:o,variant:v,mod:[{"data-orientation":m},b],role:"group",...E})});wp.classes=Xr;wp.displayName="@mantine/core/ActionIconGroup";const PT=(t,{radius:o,color:r,gradient:a,variant:s,autoContrast:c,size:u})=>{const f=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:a,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Ye(u,"section-height"),"--section-padding-x":Ye(u,"section-padding-x"),"--section-fz":$t(u),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":r||s?f.background:void 0,"--section-color":f.color,"--section-bd":r||s?f.border:void 0}}},Ep=Ne((t,o)=>{const r=ce("ActionIconGroupSection",null,t),{className:a,style:s,classNames:c,styles:u,unstyled:f,vars:m,variant:h,gradient:g,radius:v,autoContrast:b,attributes:C,...E}=r,w=_e({name:"ActionIconGroupSection",props:r,classes:Xr,className:a,style:s,classNames:c,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:PT,rootSelector:"groupSection"});return y.jsx(ge,{...w("groupSection"),ref:o,variant:h,...E})});Ep.classes=Xr;Ep.displayName="@mantine/core/ActionIconGroupSection";const qT=(t,{size:o,radius:r,variant:a,gradient:s,color:c,autoContrast:u})=>{const f=t.variantColorResolver({color:c||t.primaryColor,theme:t,gradient:s,variant:a||"filled",autoContrast:u});return{root:{"--ai-size":Ye(o,"ai-size"),"--ai-radius":r===void 0?void 0:Rt(r),"--ai-bg":c||a?f.background:void 0,"--ai-hover":c||a?f.hover:void 0,"--ai-hover-color":c||a?f.hoverColor:void 0,"--ai-color":f.color,"--ai-bd":c||a?f.border:void 0}}},Vl=Mt((t,o)=>{const r=ce("ActionIcon",null,t),{className:a,unstyled:s,variant:c,classNames:u,styles:f,style:m,loading:h,loaderProps:g,size:v,color:b,radius:C,__staticSelector:E,gradient:w,vars:T,children:M,disabled:O,"data-disabled":j,autoContrast:N,mod:D,attributes:V,...$}=r,X=_e({name:["ActionIcon",E],props:r,className:a,style:m,classes:Xr,classNames:u,styles:f,unstyled:s,attributes:V,vars:T,varsResolver:qT});return y.jsxs(cl,{...X("root",{active:!O&&!h&&!j}),...$,unstyled:s,variant:c,size:v,disabled:O||h,ref:o,mod:[{loading:h,disabled:O||j},D],children:[typeof h=="boolean"&&y.jsx(il,{mounted:h,transition:"slide-down",duration:150,children:F=>y.jsx(ge,{component:"span",...X("loader",{style:F}),"aria-hidden":!0,children:y.jsx(ul,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...g})})}),y.jsx(ge,{component:"span",mod:{loading:h},...X("icon"),children:M})]})});Vl.classes=Xr;Vl.displayName="@mantine/core/ActionIcon";Vl.Group=wp;Vl.GroupSection=Ep;const K2=x.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:o,...r},a)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...o,width:t,height:t},ref:a,...r,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));K2.displayName="@mantine/core/CloseIcon";var J2={root:"m_86a44da5","root--subtle":"m_220c80f2"};const YT={variant:"subtle"},XT=(t,{size:o,radius:r,iconSize:a})=>({root:{"--cb-size":Ye(o,"cb-size"),"--cb-radius":r===void 0?void 0:Rt(r),"--cb-icon-size":oe(a)}}),Fc=Mt((t,o)=>{const r=ce("CloseButton",YT,t),{iconSize:a,children:s,vars:c,radius:u,className:f,classNames:m,style:h,styles:g,unstyled:v,"data-disabled":b,disabled:C,variant:E,icon:w,mod:T,attributes:M,__staticSelector:O,...j}=r,N=_e({name:O||"CloseButton",props:r,className:f,style:h,classes:J2,classNames:m,styles:g,unstyled:v,attributes:M,vars:c,varsResolver:XT});return y.jsxs(cl,{ref:o,...j,unstyled:v,variant:E,disabled:C,mod:[{disabled:C||b},T],...N("root",{variant:E,active:!C&&!b}),children:[w||y.jsx(K2,{}),s]})});Fc.classes=J2;Fc.displayName="@mantine/core/CloseButton";function IT(t){return x.Children.toArray(t).filter(Boolean)}var W2={root:"m_4081bf90"};const QT={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},FT=(t,{grow:o,preventGrowOverflow:r,gap:a,align:s,justify:c,wrap:u},{childWidth:f})=>({root:{"--group-child-width":o&&r?f:void 0,"--group-gap":di(a),"--group-align":s,"--group-justify":c,"--group-wrap":u}}),Ct=Ne((t,o)=>{const r=ce("Group",QT,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,children:m,gap:h,align:g,justify:v,wrap:b,grow:C,preventGrowOverflow:E,vars:w,variant:T,__size:M,mod:O,attributes:j,...N}=r,D=IT(m),V=D.length,$=di(h??"md"),F={childWidth:`calc(${100/V}% - (${$} - ${$} / ${V}))`},q=_e({name:"Group",props:r,stylesCtx:F,className:s,style:c,classes:W2,classNames:a,styles:u,unstyled:f,attributes:j,vars:w,varsResolver:FT});return y.jsx(ge,{...q("root"),ref:o,variant:T,mod:[{grow:C},O],size:M,...N,children:D})});Ct.classes=W2;Ct.displayName="@mantine/core/Group";const[KT,JT]=Zc({size:"sm"});var vn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const ex=Ne((t,o)=>{const r=ce("InputClearButton",null,t),{size:a,variant:s,vars:c,classNames:u,styles:f,...m}=r,h=JT(),{resolvedClassNames:g,resolvedStyles:v}=Xc({classNames:u,styles:f,props:r});return y.jsx(Fc,{variant:s||"transparent",ref:o,size:a||h?.size||"sm",classNames:g,styles:v,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});ex.displayName="@mantine/core/InputClearButton";const WT={xs:7,sm:8,md:10,lg:12,xl:15};function eR({__clearable:t,__clearSection:o,rightSection:r,__defaultRightSection:a,size:s="sm"}){const c=t&&o;return c&&(r||a)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:WT[s]},children:[c,r||a]}):r===null?null:r||c||a}const[tR,Kc]=Zc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),nR=(t,{size:o})=>({description:{"--input-description-size":o===void 0?void 0:`calc(${$t(o)} - ${oe(2)})`}}),Jc=Ne((t,o)=>{const r=ce("InputDescription",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,size:h,__staticSelector:g,__inheritStyles:v=!0,attributes:b,variant:C,...E}=ce("InputDescription",null,r),w=Kc(),T=_e({name:["InputWrapper",g],props:r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:b,rootSelector:"description",vars:m,varsResolver:nR}),M=v&&w?.getStyles||T;return y.jsx(ge,{component:"p",ref:o,variant:C,size:h,...M("description",w?.getStyles?{className:s,style:c}:void 0),...E})});Jc.classes=vn;Jc.displayName="@mantine/core/InputDescription";const oR=(t,{size:o})=>({error:{"--input-error-size":o===void 0?void 0:`calc(${$t(o)} - ${oe(2)})`}}),Wc=Ne((t,o)=>{const r=ce("InputError",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,size:h,attributes:g,__staticSelector:v,__inheritStyles:b=!0,variant:C,...E}=r,w=_e({name:["InputWrapper",v],props:r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:g,rootSelector:"error",vars:m,varsResolver:oR}),T=Kc(),M=b&&T?.getStyles||w;return y.jsx(ge,{component:"p",ref:o,variant:C,size:h,...M("error",T?.getStyles?{className:s,style:c}:void 0),...E})});Wc.classes=vn;Wc.displayName="@mantine/core/InputError";const jy={labelElement:"label"},lR=(t,{size:o})=>({label:{"--input-label-size":$t(o),"--input-asterisk-color":void 0}}),eu=Ne((t,o)=>{const r=ce("InputLabel",jy,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,labelElement:h,size:g,required:v,htmlFor:b,onMouseDown:C,children:E,__staticSelector:w,variant:T,mod:M,attributes:O,...j}=ce("InputLabel",jy,r),N=_e({name:["InputWrapper",w],props:r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:O,rootSelector:"label",vars:m,varsResolver:lR}),D=Kc(),V=D?.getStyles||N;return y.jsxs(ge,{...V("label",D?.getStyles?{className:s,style:c}:void 0),component:h,variant:T,size:g,ref:o,htmlFor:h==="label"?b:void 0,mod:[{required:v},M],onMouseDown:$=>{C?.($),!$.defaultPrevented&&$.detail>1&&$.preventDefault()},...j,children:[E,v&&y.jsx("span",{...V("required"),"aria-hidden":!0,children:" *"})]})});eu.classes=vn;eu.displayName="@mantine/core/InputLabel";const Tp=Ne((t,o)=>{const r=ce("InputPlaceholder",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,__staticSelector:h,variant:g,error:v,mod:b,attributes:C,...E}=r,w=_e({name:["InputPlaceholder",h],props:r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:C,rootSelector:"placeholder"});return y.jsx(ge,{...w("placeholder"),mod:[{error:!!v},b],component:"span",variant:g,ref:o,...E})});Tp.classes=vn;Tp.displayName="@mantine/core/InputPlaceholder";function rR(t,{hasDescription:o,hasError:r}){const a=t.findIndex(m=>m==="input"),s=t.slice(0,a),c=t.slice(a+1),u=o&&s.includes("description")||r&&s.includes("error");return{offsetBottom:o&&c.includes("description")||r&&c.includes("error"),offsetTop:u}}const aR={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},iR=(t,{size:o})=>({label:{"--input-label-size":$t(o),"--input-asterisk-color":void 0},error:{"--input-error-size":o===void 0?void 0:`calc(${$t(o)} - ${oe(2)})`},description:{"--input-description-size":o===void 0?void 0:`calc(${$t(o)} - ${oe(2)})`}}),Rp=Ne((t,o)=>{const r=ce("InputWrapper",aR,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,size:h,variant:g,__staticSelector:v,inputContainer:b,inputWrapperOrder:C,label:E,error:w,description:T,labelProps:M,descriptionProps:O,errorProps:j,labelElement:N,children:D,withAsterisk:V,id:$,required:X,__stylesApiProps:F,mod:q,attributes:te,...le}=r,ee=_e({name:["InputWrapper",v],props:F||r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:te,vars:m,varsResolver:iR}),H={size:h,variant:g,__staticSelector:v},W=Pr($),z=typeof V=="boolean"?V:X,L=j?.id||`${W}-error`,_=O?.id||`${W}-description`,Z=W,I=!!w&&typeof w!="boolean",ae=!!T,ne=`${I?L:""} ${ae?_:""}`,re=ne.trim().length>0?ne.trim():void 0,ve=M?.id||`${W}-label`,se=E&&y.jsx(eu,{labelElement:N,id:ve,htmlFor:Z,required:z,...H,...M,children:E},"label"),be=ae&&y.jsx(Jc,{...O,...H,size:O?.size||H.size,id:O?.id||_,children:T},"description"),Le=y.jsx(x.Fragment,{children:b(D)},"input"),Ee=I&&x.createElement(Wc,{...j,...H,size:j?.size||H.size,key:"error",id:j?.id||L},w),ye=C.map(Je=>{switch(Je){case"label":return se;case"input":return Le;case"description":return be;case"error":return Ee;default:return null}});return y.jsx(tR,{value:{getStyles:ee,describedBy:re,inputId:Z,labelId:ve,...rR(C,{hasDescription:ae,hasError:I})},children:y.jsx(ge,{ref:o,variant:g,size:h,mod:[{error:!!w},q],...ee("root"),...le,children:ye})})});Rp.classes=vn;Rp.displayName="@mantine/core/InputWrapper";const sR={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},cR=(t,o,r)=>({wrapper:{"--input-margin-top":r.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":r.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Ye(o.size,"input-height"),"--input-fz":$t(o.size),"--input-radius":o.radius===void 0?void 0:Rt(o.radius),"--input-left-section-width":o.leftSectionWidth!==void 0?oe(o.leftSectionWidth):void 0,"--input-right-section-width":o.rightSectionWidth!==void 0?oe(o.rightSectionWidth):void 0,"--input-padding-y":o.multiline?Ye(o.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":o.leftSectionPointerEvents,"--input-right-section-pointer-events":o.rightSectionPointerEvents}}),tn=Mt((t,o)=>{const r=ce("Input",sR,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,required:m,__staticSelector:h,__stylesApiProps:g,size:v,wrapperProps:b,error:C,disabled:E,leftSection:w,leftSectionProps:T,leftSectionWidth:M,rightSection:O,rightSectionProps:j,rightSectionWidth:N,rightSectionPointerEvents:D,leftSectionPointerEvents:V,variant:$,vars:X,pointer:F,multiline:q,radius:te,id:le,withAria:ee,withErrorStyles:H,mod:W,inputSize:z,attributes:L,__clearSection:_,__clearable:Z,__defaultRightSection:I,...ae}=r,{styleProps:ne,rest:re}=Ic(ae),ve=Kc(),se={offsetBottom:ve?.offsetBottom,offsetTop:ve?.offsetTop},be=_e({name:["Input",h],props:g||r,classes:vn,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:L,stylesCtx:se,rootSelector:"wrapper",vars:X,varsResolver:cR}),Le=ee?{required:m,disabled:E,"aria-invalid":!!C,"aria-describedby":ve?.describedBy,id:ve?.inputId||le}:{},Ee=eR({__clearable:Z,__clearSection:_,rightSection:O,__defaultRightSection:I,size:v});return y.jsx(KT,{value:{size:v||"sm"},children:y.jsxs(ge,{...be("wrapper"),...ne,...b,mod:[{error:!!C&&H,pointer:F,disabled:E,multiline:q,"data-with-right-section":!!Ee,"data-with-left-section":!!w},W],variant:$,size:v,children:[w&&y.jsx("div",{...T,"data-position":"left",...be("section",{className:T?.className,style:T?.style}),children:w}),y.jsx(ge,{component:"input",...re,...Le,ref:o,required:m,mod:{disabled:E,error:!!C&&H},variant:$,__size:z,...be("input")}),Ee&&y.jsx("div",{...j,"data-position":"right",...be("section",{className:j?.className,style:j?.style}),children:Ee})]})})});tn.classes=vn;tn.Wrapper=Rp;tn.Label=eu;tn.Error=Wc;tn.Description=Jc;tn.Placeholder=Tp;tn.ClearButton=ex;tn.displayName="@mantine/core/Input";function uR(t,o,r){const a=ce(t,o,r),{label:s,description:c,error:u,required:f,classNames:m,styles:h,className:g,unstyled:v,__staticSelector:b,__stylesApiProps:C,errorProps:E,labelProps:w,descriptionProps:T,wrapperProps:M,id:O,size:j,style:N,inputContainer:D,inputWrapperOrder:V,withAsterisk:$,variant:X,vars:F,mod:q,attributes:te,...le}=a,{styleProps:ee,rest:H}=Ic(le),W={label:s,description:c,error:u,required:f,classNames:m,className:g,__staticSelector:b,__stylesApiProps:C||a,errorProps:E,labelProps:w,descriptionProps:T,unstyled:v,styles:h,size:j,style:N,inputContainer:D,inputWrapperOrder:V,withAsterisk:$,variant:X,id:O,mod:q,attributes:te,...M};return{...H,classNames:m,styles:h,unstyled:v,wrapperProps:{...W,...ee},inputProps:{required:f,classNames:m,styles:h,unstyled:v,size:j,__staticSelector:b,__stylesApiProps:C||a,error:u,variant:X,id:O,attributes:te}}}const fR={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ir=Mt((t,o)=>{const{inputProps:r,wrapperProps:a,...s}=uR("InputBase",fR,t);return y.jsx(tn.Wrapper,{...a,children:y.jsx(tn,{...r,...s,ref:o})})});Ir.classes={...tn.classes,...tn.Wrapper.classes};Ir.displayName="@mantine/core/InputBase";const dR={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var tx={root:"m_8bffd616"};const Mp=Mt((t,o)=>{const r=ce("Flex",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,gap:h,rowGap:g,columnGap:v,align:b,justify:C,wrap:E,direction:w,attributes:T,...M}=r,O=_e({name:"Flex",classes:tx,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:T,vars:m}),j=Ut(),N=_2(),D=j2({styleProps:{gap:h,rowGap:g,columnGap:v,align:b,justify:C,wrap:E,direction:w},theme:j,data:dR});return y.jsxs(y.Fragment,{children:[D.hasResponsiveStyles&&y.jsx(O2,{selector:`.${N}`,styles:D.styles,media:D.media}),y.jsx(ge,{ref:o,...O("root",{className:N,style:Uc(D.inlineStyles)}),...M})]})});Mp.classes=tx;Mp.displayName="@mantine/core/Flex";function nx({open:t,close:o,openDelay:r,closeDelay:a}){const s=x.useRef(-1),c=x.useRef(-1),u=()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},f=()=>{u(),r===0||r===void 0?t():s.current=window.setTimeout(t,r)},m=()=>{u(),a===0||a===void 0?o():c.current=window.setTimeout(o,a)};return x.useEffect(()=>u,[]),{openDropdown:f,closeDropdown:m}}function ox({style:t,size:o=16,...r}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:oe(o),height:oe(o),display:"block"},...r,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}ox.displayName="@mantine/core/AccordionChevron";var lx={root:"m_b6d8b162"};function mR(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const pR={inherit:!1},hR=(t,{variant:o,lineClamp:r,gradient:a,size:s,color:c})=>({root:{"--text-fz":$t(s),"--text-lh":fE(s),"--text-gradient":o==="gradient"?Lm(a,t):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-color":c?Oo(c,t):void 0}}),Jn=Mt((t,o)=>{const r=ce("Text",pR,t),{lineClamp:a,truncate:s,inline:c,inherit:u,gradient:f,span:m,__staticSelector:h,vars:g,className:v,style:b,classNames:C,styles:E,unstyled:w,variant:T,mod:M,size:O,attributes:j,...N}=r,D=_e({name:["Text",h],props:r,classes:lx,className:v,style:b,classNames:C,styles:E,unstyled:w,attributes:j,vars:g,varsResolver:hR});return y.jsx(ge,{...D("root",{focusable:!0}),ref:o,component:m?"span":"p",variant:T,mod:[{"data-truncate":mR(s),"data-line-clamp":typeof a=="number","data-inline":c,"data-inherit":u},M],size:O,...N})});Jn.classes=lx;Jn.displayName="@mantine/core/Text";function Sc({size:t,style:o,...r}){const a=t!==void 0?{width:oe(t),height:oe(t),...o}:o;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:a,"aria-hidden":!0,...r,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var tu={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const rx=x.createContext(null),gR=rx.Provider;function vR(){return{withinGroup:!!x.useContext(rx)}}const yR=(t,{spacing:o})=>({group:{"--ag-spacing":di(o)}}),Op=Ne((t,o)=>{const r=ce("AvatarGroup",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,spacing:h,attributes:g,...v}=r,b=_e({name:"AvatarGroup",classes:tu,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:g,vars:m,varsResolver:yR,rootSelector:"group"});return y.jsx(gR,{value:!0,children:y.jsx(ge,{ref:o,...b("group"),...v})})});Op.classes=tu;Op.displayName="@mantine/core/AvatarGroup";function bR(t){return y.jsx("svg",{...t,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function xR(t){let o=0;for(let r=0;r<t.length;r+=1){const a=t.charCodeAt(r);o=(o<<5)-o+a,o|=0}return o}const SR=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function CR(t,o=SR){const r=xR(t),a=Math.abs(r)%o.length;return o[a]}function wR(t,o=2){const r=t.split(" ");return r.length===1?t.slice(0,o).toUpperCase():r.map(a=>a[0]).slice(0,o).join("").toUpperCase()}const ER=(t,{size:o,radius:r,variant:a,gradient:s,color:c,autoContrast:u,name:f,allowedInitialsColors:m})=>{const h=c==="initials"&&typeof f=="string"?CR(f,m):c,g=t.variantColorResolver({color:h||"gray",theme:t,gradient:s,variant:a||"light",autoContrast:u});return{root:{"--avatar-size":Ye(o,"avatar-size"),"--avatar-radius":r===void 0?void 0:Rt(r),"--avatar-bg":h||a?g.background:void 0,"--avatar-color":h||a?g.color:void 0,"--avatar-bd":h||a?g.border:void 0}}},nu=Mt((t,o)=>{const r=ce("Avatar",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,src:h,alt:g,radius:v,color:b,gradient:C,imageProps:E,children:w,autoContrast:T,mod:M,name:O,allowedInitialsColors:j,attributes:N,...D}=r,V=vR(),[$,X]=x.useState(!h),F=_e({name:"Avatar",props:r,classes:tu,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:N,vars:m,varsResolver:ER});return x.useEffect(()=>X(!h),[h]),y.jsx(ge,{...F("root"),mod:[{"within-group":V.withinGroup},M],ref:o,...D,children:$||!h?y.jsx("span",{...F("placeholder"),title:g,children:w||typeof O=="string"&&wR(O)||y.jsx(bR,{})}):y.jsx("img",{...E,...F("image"),src:h,alt:g,onError:q=>{X(!0),E?.onError?.(q)}})})});nu.classes=tu;nu.displayName="@mantine/core/Avatar";nu.Group=Op;var ax={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const TR=(t,{radius:o,color:r,gradient:a,variant:s,size:c,autoContrast:u,circle:f})=>{const m=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:a,variant:s||"filled",autoContrast:u});return{root:{"--badge-height":Ye(c,"badge-height"),"--badge-padding-x":Ye(c,"badge-padding-x"),"--badge-fz":Ye(c,"badge-fz"),"--badge-radius":f||o===void 0?void 0:Rt(o),"--badge-bg":r||s?m.background:void 0,"--badge-color":r||s?m.color:void 0,"--badge-bd":r||s?m.border:void 0,"--badge-dot-color":s==="dot"?Oo(r,t):void 0}}},jp=Mt((t,o)=>{const r=ce("Badge",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,radius:h,color:g,gradient:v,leftSection:b,rightSection:C,children:E,variant:w,fullWidth:T,autoContrast:M,circle:O,mod:j,attributes:N,...D}=r,V=_e({name:"Badge",props:r,classes:ax,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:N,vars:m,varsResolver:TR});return y.jsxs(ge,{variant:w,mod:[{block:T,circle:O,"with-right-section":!!C,"with-left-section":!!b},j],...V("root",{variant:w}),ref:o,...D,children:[b&&y.jsx("span",{...V("section"),"data-position":"left",children:b}),y.jsx("span",{...V("label"),children:E}),C&&y.jsx("span",{...V("section"),"data-position":"right",children:C})]})});jp.classes=ax;jp.displayName="@mantine/core/Badge";var Qr={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const _y={orientation:"horizontal"},RR=(t,{borderWidth:o})=>({group:{"--button-border-width":oe(o)}}),_p=Ne((t,o)=>{const r=ce("ButtonGroup",_y,t),{className:a,style:s,classNames:c,styles:u,unstyled:f,orientation:m,vars:h,borderWidth:g,variant:v,mod:b,attributes:C,...E}=ce("ButtonGroup",_y,t),w=_e({name:"ButtonGroup",props:r,classes:Qr,className:a,style:s,classNames:c,styles:u,unstyled:f,attributes:C,vars:h,varsResolver:RR,rootSelector:"group"});return y.jsx(ge,{...w("group"),ref:o,variant:v,mod:[{"data-orientation":m},b],role:"group",...E})});_p.classes=Qr;_p.displayName="@mantine/core/ButtonGroup";const MR=(t,{radius:o,color:r,gradient:a,variant:s,autoContrast:c,size:u})=>{const f=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:a,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Ye(u,"section-height"),"--section-padding-x":Ye(u,"section-padding-x"),"--section-fz":u?.includes("compact")?$t(u.replace("compact-","")):$t(u),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":r||s?f.background:void 0,"--section-color":f.color,"--section-bd":r||s?f.border:void 0}}},Np=Ne((t,o)=>{const r=ce("ButtonGroupSection",null,t),{className:a,style:s,classNames:c,styles:u,unstyled:f,vars:m,variant:h,gradient:g,radius:v,autoContrast:b,attributes:C,...E}=r,w=_e({name:"ButtonGroupSection",props:r,classes:Qr,className:a,style:s,classNames:c,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:MR,rootSelector:"groupSection"});return y.jsx(ge,{...w("groupSection"),ref:o,variant:h,...E})});Np.classes=Qr;Np.displayName="@mantine/core/ButtonGroupSection";const OR={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${oe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},jR=(t,{radius:o,color:r,gradient:a,variant:s,size:c,justify:u,autoContrast:f})=>{const m=t.variantColorResolver({color:r||t.primaryColor,theme:t,gradient:a,variant:s||"filled",autoContrast:f});return{root:{"--button-justify":u,"--button-height":Ye(c,"button-height"),"--button-padding-x":Ye(c,"button-padding-x"),"--button-fz":c?.includes("compact")?$t(c.replace("compact-","")):$t(c),"--button-radius":o===void 0?void 0:Rt(o),"--button-bg":r||s?m.background:void 0,"--button-hover":r||s?m.hover:void 0,"--button-color":m.color,"--button-bd":r||s?m.border:void 0,"--button-hover-color":r||s?m.hoverColor:void 0}}},Nn=Mt((t,o)=>{const r=ce("Button",null,t),{style:a,vars:s,className:c,color:u,disabled:f,children:m,leftSection:h,rightSection:g,fullWidth:v,variant:b,radius:C,loading:E,loaderProps:w,gradient:T,classNames:M,styles:O,unstyled:j,"data-disabled":N,autoContrast:D,mod:V,attributes:$,...X}=r,F=_e({name:"Button",props:r,classes:Qr,className:c,style:a,classNames:M,styles:O,unstyled:j,attributes:$,vars:s,varsResolver:jR}),q=!!h,te=!!g;return y.jsxs(cl,{ref:o,...F("root",{active:!f&&!E&&!N}),unstyled:j,variant:b,disabled:f||E,mod:[{disabled:f||N,loading:E,block:v,"with-left-section":q,"with-right-section":te},V],...X,children:[typeof E=="boolean"&&y.jsx(il,{mounted:E,transition:OR,duration:150,children:le=>y.jsx(ge,{component:"span",...F("loader",{style:le}),"aria-hidden":!0,children:y.jsx(ul,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),y.jsxs("span",{...F("inner"),children:[h&&y.jsx(ge,{component:"span",...F("section"),mod:{position:"left"},children:h}),y.jsx(ge,{component:"span",mod:{loading:E},...F("label"),children:m}),g&&y.jsx(ge,{component:"span",...F("section"),mod:{position:"right"},children:g})]})]})});Nn.classes=Qr;Nn.displayName="@mantine/core/Button";Nn.Group=_p;Nn.GroupSection=Np;const[_R,NR]=Gc("Card component was not found in tree");var Ap={root:"m_e615b15f",section:"m_599a2148"};const ou=Mt((t,o)=>{const r=ce("CardSection",null,t),{classNames:a,className:s,style:c,styles:u,vars:f,withBorder:m,inheritPadding:h,mod:g,...v}=r,b=NR();return y.jsx(ge,{ref:o,mod:[{"with-border":m,"inherit-padding":h},g],...b.getStyles("section",{className:s,style:c,styles:u,classNames:a}),...v})});ou.classes=Ap;ou.displayName="@mantine/core/CardSection";const AR=(t,{padding:o})=>({root:{"--card-padding":di(o)}}),hi=Mt((t,o)=>{const r=ce("Card",null,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,children:h,padding:g,attributes:v,...b}=r,C=_e({name:"Card",props:r,classes:Ap,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:v,vars:m,varsResolver:AR}),E=x.Children.toArray(h),w=E.map((T,M)=>typeof T=="object"&&T&&"type"in T&&T.type===ou?x.cloneElement(T,{"data-first-section":M===0||void 0,"data-last-section":M===E.length-1||void 0}):T);return y.jsx(_R,{value:{getStyles:C},children:y.jsx(xp,{ref:o,unstyled:f,...C("root"),...b,children:w})})});hi.classes=Ap;hi.displayName="@mantine/core/Card";hi.Section=ou;var ix={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};const[DR,HR]=Zc();function sx(t){const{value:o,defaultValue:r,onChange:a,multiple:s,children:c}=ce("ChipGroup",null,t),[u,f]=qr({value:o,defaultValue:r,finalValue:s?[]:null,onChange:a}),m=g=>Array.isArray(u)?u.includes(g):g===u,h=g=>{const v=g.currentTarget.value;Array.isArray(u)?f(u.includes(v)?u.filter(b=>b!==v):[...u,v]):f(v)};return y.jsx(DR,{value:{isChipSelected:m,onChange:h,multiple:s},children:c})}sx.displayName="@mantine/core/ChipGroup";const zR={type:"checkbox"},LR=(t,{size:o,radius:r,variant:a,color:s,autoContrast:c})=>{const u=t.variantColorResolver({color:s||t.primaryColor,theme:t,variant:a||"filled",autoContrast:c});return{root:{"--chip-fz":$t(o),"--chip-size":Ye(o,"chip-size"),"--chip-radius":r===void 0?void 0:Rt(r),"--chip-checked-padding":Ye(o,"chip-checked-padding"),"--chip-padding":Ye(o,"chip-padding"),"--chip-icon-size":Ye(o,"chip-icon-size"),"--chip-bg":s||a?u.background:void 0,"--chip-hover":s||a?u.hover:void 0,"--chip-color":s||a?u.color:void 0,"--chip-bd":s||a?u.border:void 0,"--chip-spacing":Ye(o,"chip-spacing")}}},lu=Ne((t,o)=>{const r=ce("Chip",zR,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,id:h,checked:g,defaultChecked:v,onChange:b,value:C,wrapperProps:E,type:w,disabled:T,children:M,size:O,variant:j,icon:N,rootRef:D,autoContrast:V,mod:$,attributes:X,...F}=r,q=_e({name:"Chip",classes:ix,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:X,vars:m,varsResolver:LR}),te=HR(),le=Pr(h),{styleProps:ee,rest:H}=Ic(F),[W,z]=qr({value:g,defaultValue:v,finalValue:!1,onChange:b}),L=te?{checked:te.isChipSelected(C),onChange:Z=>{te.onChange(Z),b?.(Z.currentTarget.checked)},type:te.multiple?"checkbox":"radio"}:{},_=L.checked||W;return y.jsxs(ge,{size:O,variant:j,ref:D,mod:$,...q("root"),...ee,...E,children:[y.jsx("input",{type:w,...q("input"),checked:_,onChange:Z=>z(Z.currentTarget.checked),id:le,disabled:T,ref:o,value:C,...L,...H}),y.jsxs("label",{htmlFor:le,"data-checked":_||void 0,"data-disabled":T||void 0,...q("label",{variant:j||"filled"}),children:[_&&N!==null&&N!==!1&&y.jsx("span",{...q("iconWrapper"),children:N===void 0?y.jsx(Sc,{...q("checkIcon")}):N}),y.jsx("span",{children:M})]})]})});lu.classes=ix;lu.displayName="@mantine/core/Chip";lu.Group=sx;var cx={root:"m_3eebeb36",label:"m_9e365f20"};const kR={orientation:"horizontal"},VR=(t,{color:o,variant:r,size:a})=>({root:{"--divider-color":o?Oo(o,t):void 0,"--divider-border-style":r,"--divider-size":Ye(a,"divider-size")}}),Dp=Ne((t,o)=>{const r=ce("Divider",kR,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,color:h,orientation:g,label:v,labelPosition:b,mod:C,attributes:E,...w}=r,T=_e({name:"Divider",classes:cx,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:E,vars:m,varsResolver:VR});return y.jsx(ge,{ref:o,mod:[{orientation:g,"with-label":!!v},C],...T("root"),...w,role:"separator",children:v&&y.jsx(ge,{component:"span",mod:{position:b},...T("label"),children:v})})});Dp.classes=cx;Dp.displayName="@mantine/core/Divider";const BR={multiple:!1},ux=x.forwardRef((t,o)=>{const{onChange:r,children:a,multiple:s,accept:c,name:u,form:f,resetRef:m,disabled:h,capture:g,inputProps:v,...b}=ce("FileButton",BR,t),C=x.useRef(null),E=()=>{!h&&C.current?.click()},w=M=>{if(M.currentTarget.files===null)return r(s?[]:null);r(s?Array.from(M.currentTarget.files):M.currentTarget.files[0]||null)};return yc(m,()=>{C.current&&(C.current.value="")}),y.jsxs(y.Fragment,{children:[y.jsx("input",{style:{display:"none"},type:"file",accept:c,multiple:s,onChange:w,ref:jn(o,C),name:u,form:f,capture:g,...v}),a({onClick:E,...b})]})});ux.displayName="@mantine/core/FileButton";const $R=({value:t})=>y.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(o=>o.name).join(", "):t?.name}),UR={valueComponent:$R,size:"sm"},Hp=Ne((t,o)=>{const r=ce("FileInput",UR,t),{unstyled:a,vars:s,onChange:c,value:u,defaultValue:f,multiple:m,accept:h,name:g,form:v,valueComponent:b,clearable:C,clearButtonProps:E,readOnly:w,capture:T,fileInputProps:M,rightSection:O,size:j,placeholder:N,component:D,resetRef:V,classNames:$,styles:X,attributes:F,...q}=r,te=x.useRef(null),{resolvedClassNames:le,resolvedStyles:ee}=Xc({classNames:$,styles:X,props:r}),[H,W]=qr({value:u,defaultValue:f,onChange:c,finalValue:m?[]:null}),z=Array.isArray(H)?H.length!==0:H!==null,L=O||(C&&z&&!w?y.jsx(Fc,{...E,variant:"subtle",onClick:()=>W(m?[]:null),size:j,unstyled:a}):null);return x.useEffect(()=>{(Array.isArray(H)&&H.length===0||H===null)&&te.current?.()},[H]),y.jsx(ux,{onChange:W,multiple:m,accept:h,name:g,form:v,resetRef:jn(te,V),disabled:w,capture:T,inputProps:M,children:_=>y.jsx(Ir,{component:D||"button",ref:o,rightSection:L,..._,...q,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:r,unstyled:a,size:j,classNames:$,styles:X,attributes:F,children:z?y.jsx(b,{value:H}):y.jsx(tn.Placeholder,{__staticSelector:"FileInput",classNames:le,styles:ee,attributes:F,children:N})})})});Hp.classes=Ir.classes;Hp.displayName="@mantine/core/FileInput";const GR=Hp;var fx={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const Ny={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:fi("overlay")},ZR=(t,{zIndex:o})=>({root:{"--lo-z-index":o?.toString()}}),zp=Ne((t,o)=>{const r=ce("LoadingOverlay",Ny,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,transitionProps:h,loaderProps:g,overlayProps:v,visible:b,zIndex:C,attributes:E,...w}=r,T=Ut(),M=_e({name:"LoadingOverlay",classes:fx,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:E,vars:m,varsResolver:ZR}),O={...Ny.overlayProps,...v};return y.jsx(il,{transition:"fade",...h,mounted:!!b,children:j=>y.jsxs(ge,{...M("root",{style:j}),ref:o,...w,children:[y.jsx(ul,{...M("loader"),unstyled:f,...g}),y.jsx(ri,{...O,...M("overlay"),darkHidden:!0,unstyled:f,color:v?.color||T.white}),y.jsx(ri,{...O,...M("overlay"),lightHidden:!0,unstyled:f,color:v?.color||T.colors.dark[5]})]})})});zp.classes=fx;zp.displayName="@mantine/core/LoadingOverlay";const[PR,fl]=Gc("Menu component was not found in the tree");var dl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Lp=Ne((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,...f}=ce("MenuDivider",null,t),m=fl();return y.jsx(ge,{ref:o,...m.getStyles("divider",{className:a,style:s,styles:c,classNames:r}),...f})});Lp.classes=dl;Lp.displayName="@mantine/core/MenuDivider";const kp=Ne((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,onMouseEnter:f,onMouseLeave:m,onKeyDown:h,children:g,...v}=ce("MenuDropdown",null,t),b=x.useRef(null),C=fl(),E=Vt(h,M=>{(M.key==="ArrowUp"||M.key==="ArrowDown")&&(M.preventDefault(),b.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=Vt(f,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.openDropdown()),T=Vt(m,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.closeDropdown());return y.jsxs(_n.Dropdown,{...v,onMouseEnter:w,onMouseLeave:T,role:"menu","aria-orientation":"vertical",ref:jn(o,b),...C.getStyles("dropdown",{className:a,style:s,styles:c,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:E,children:[C.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),g]})});kp.classes=dl;kp.displayName="@mantine/core/MenuDropdown";const[qR,ru]=Zc(),Vp=Mt((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,color:f,closeMenuOnClick:m,leftSection:h,rightSection:g,children:v,disabled:b,"data-disabled":C,...E}=ce("MenuItem",null,t),w=fl(),T=ru(),M=Ut(),{dir:O}=Yr(),j=x.useRef(null),N=E,D=Vt(N.onClick,()=>{C||(typeof m=="boolean"?m&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),V=f?M.variantColorResolver({color:f,theme:M,variant:"light"}):void 0,$=f?kl({color:f,theme:M}):null,X=Vt(N.onKeyDown,F=>{F.key==="ArrowLeft"&&T&&(T.close(),T.focusParentItem())});return y.jsxs(cl,{onMouseDown:F=>F.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:a,style:s,styles:c,classNames:r}),ref:jn(j,o),role:"menuitem",disabled:b,"data-menu-item":!0,"data-disabled":b||C||void 0,"data-mantine-stop-propagation":!0,onClick:D,onKeyDown:ip({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:X}),__vars:{"--menu-item-color":$?.isThemeColor&&$?.shade===void 0?`var(--mantine-color-${$.color}-6)`:V?.color,"--menu-item-hover":V?.hover},children:[h&&y.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:r}),"data-position":"left",children:h}),v&&y.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:r}),children:v}),g&&y.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:r}),"data-position":"right",children:g})]})});Vp.classes=dl;Vp.displayName="@mantine/core/MenuItem";const Bp=Ne((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,...f}=ce("MenuLabel",null,t),m=fl();return y.jsx(ge,{ref:o,...m.getStyles("label",{className:a,style:s,styles:c,classNames:r}),...f})});Bp.classes=dl;Bp.displayName="@mantine/core/MenuLabel";const $p=Ne((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,onMouseEnter:f,onMouseLeave:m,onKeyDown:h,children:g,...v}=ce("MenuSubDropdown",null,t),b=x.useRef(null),C=fl(),E=ru(),w=Vt(f,E?.open),T=Vt(m,E?.close);return y.jsx(_n.Dropdown,{...v,onMouseEnter:w,onMouseLeave:T,role:"menu","aria-orientation":"vertical",ref:jn(o,b),...C.getStyles("dropdown",{className:a,style:s,styles:c,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:g})});$p.classes=dl;$p.displayName="@mantine/core/MenuSubDropdown";const Up=Mt((t,o)=>{const{classNames:r,className:a,style:s,styles:c,vars:u,color:f,leftSection:m,rightSection:h,children:g,disabled:v,"data-disabled":b,closeMenuOnClick:C,...E}=ce("MenuSubItem",null,t),w=fl(),T=ru(),M=Ut(),{dir:O}=Yr(),j=x.useRef(null),N=E,D=f?M.variantColorResolver({color:f,theme:M,variant:"light"}):void 0,V=f?kl({color:f,theme:M}):null,$=Vt(N.onKeyDown,te=>{te.key==="ArrowRight"&&(T?.open(),T?.focusFirstItem()),te.key==="ArrowLeft"&&T?.parentContext&&(T.parentContext.close(),T.parentContext.focusParentItem())}),X=Vt(N.onClick,()=>{!b&&C&&w.closeDropdownImmediately()}),F=Vt(N.onMouseEnter,T?.open),q=Vt(N.onMouseLeave,T?.close);return y.jsxs(cl,{onMouseDown:te=>te.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:a,style:s,styles:c,classNames:r}),ref:jn(j,o),role:"menuitem",disabled:v,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":v||b||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:F,onMouseLeave:q,onClick:X,onKeyDown:ip({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":V?.isThemeColor&&V?.shade===void 0?`var(--mantine-color-${V.color}-6)`:D?.color,"--menu-item-hover":D?.hover},children:[m&&y.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:r}),"data-position":"left",children:m}),g&&y.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:r}),children:g}),y.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:r}),"data-position":"right",children:h||y.jsx(ox,{...w.getStyles("chevron"),size:14})})]})});Up.classes=dl;Up.displayName="@mantine/core/MenuSubItem";function dx({children:t,refProp:o}){if(!g2(t))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return fl(),y.jsx(_n.Target,{refProp:o,popupType:"menu",children:t})}dx.displayName="@mantine/core/MenuSubTarget";const YR={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Fr(t){const{children:o,closeDelay:r,openDelay:a,...s}=ce("MenuSub",YR,t),c=Pr(),[u,{open:f,close:m}]=jE(!1),h=ru(),{openDropdown:g,closeDropdown:v}=nx({open:f,close:m,closeDelay:r,openDelay:a}),b=()=>window.setTimeout(()=>{document.getElementById(`${c}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),C=()=>window.setTimeout(()=>{document.getElementById(`${c}-target`)?.focus()},16);return y.jsx(qR,{value:{opened:u,close:v,open:g,focusFirstItem:b,focusParentItem:C,parentContext:h},children:y.jsx(_n,{opened:u,withinPortal:!1,withArrow:!1,id:c,...s,children:o})})}Fr.extend=t=>t;Fr.displayName="@mantine/core/MenuSub";Fr.Target=dx;Fr.Dropdown=$p;Fr.Item=Up;const XR={refProp:"ref"},mx=x.forwardRef((t,o)=>{const{children:r,refProp:a,...s}=ce("MenuTarget",XR,t),c=pi(r);if(!c)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=fl(),f=c.props,m=Vt(f.onClick,()=>{u.trigger==="click"?u.toggleDropdown():u.trigger==="click-hover"&&(u.setOpenedViaClick(!0),u.opened||u.openDropdown())}),h=Vt(f.onMouseEnter,()=>(u.trigger==="hover"||u.trigger==="click-hover")&&u.openDropdown()),g=Vt(f.onMouseLeave,()=>{(u.trigger==="hover"||u.trigger==="click-hover"&&!u.openedViaClick)&&u.closeDropdown()});return y.jsx(_n.Target,{refProp:a,popupType:"menu",ref:o,...s,children:x.cloneElement(c,{onClick:m,onMouseEnter:h,onMouseLeave:g,"data-expanded":u.opened?!0:void 0})})});mx.displayName="@mantine/core/MenuTarget";const IR={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Fe(t){const o=ce("Menu",IR,t),{children:r,onOpen:a,onClose:s,opened:c,defaultOpened:u,trapFocus:f,onChange:m,closeOnItemClick:h,loop:g,closeOnEscape:v,trigger:b,openDelay:C,closeDelay:E,classNames:w,styles:T,unstyled:M,variant:O,vars:j,menuItemTabIndex:N,keepMounted:D,withInitialFocusPlaceholder:V,attributes:$,...X}=o,F=_e({name:"Menu",classes:dl,props:o,classNames:w,styles:T,unstyled:M,attributes:$}),[q,te]=qr({value:c,defaultValue:u,finalValue:!1,onChange:m}),[le,ee]=x.useState(!1),H=()=>{te(!1),ee(!1),q&&s?.()},W=()=>{te(!0),!q&&a?.()},z=()=>{q?H():W()},{openDropdown:L,closeDropdown:_}=nx({open:W,close:H,closeDelay:E,openDelay:C}),Z=ne=>dE("[data-menu-item]","[data-menu-dropdown]",ne),{resolvedClassNames:I,resolvedStyles:ae}=Xc({classNames:w,styles:T,props:o});return y.jsx(PR,{value:{getStyles:F,opened:q,toggleDropdown:z,getItemIndex:Z,openedViaClick:le,setOpenedViaClick:ee,closeOnItemClick:h,closeDropdown:b==="click"?H:_,openDropdown:b==="click"?W:L,closeDropdownImmediately:H,loop:g,trigger:b,unstyled:M,menuItemTabIndex:N,withInitialFocusPlaceholder:V},children:y.jsx(_n,{returnFocus:!0,...X,opened:q,onChange:z,defaultOpened:u,trapFocus:D?!1:f,closeOnEscape:v,__staticSelector:"Menu",classNames:I,styles:ae,unstyled:M,variant:O,keepMounted:D,children:r})})}Fe.extend=t=>t;Fe.withProps=$6(Fe);Fe.classes=dl;Fe.displayName="@mantine/core/Menu";Fe.Item=Vp;Fe.Label=Bp;Fe.Dropdown=kp;Fe.Target=mx;Fe.Divider=Lp;Fe.Sub=Fr;const QR={duration:100,transition:"fade"};function Ay(t,o){return{...QR,...o,...t}}var au={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function FR({offset:t,position:o,defaultOpened:r}){const[a,s]=x.useState(r),c=x.useRef(null),{x:u,y:f,elements:m,refs:h,update:g,placement:v}=yp({placement:o,middleware:[Xm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),b=v.includes("right")?t:o.includes("left")?t*-1:0,C=v.includes("bottom")?t:o.includes("top")?t*-1:0,E=x.useCallback(({clientX:w,clientY:T})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:T,left:w+b,top:T+C,right:w,bottom:T}}})},[m.reference]);return x.useEffect(()=>{if(h.floating.current){const w=c.current;w.addEventListener("mousemove",E);const T=Ro(h.floating.current);return T.forEach(M=>{M.addEventListener("scroll",g)}),()=>{w.removeEventListener("mousemove",E),T.forEach(M=>{M.removeEventListener("scroll",g)})}}},[m.reference,h.floating.current,g,E,a]),{handleMouseMove:E,x:u,y:f,opened:a,setOpened:s,boundaryRef:c,floating:h.setFloating}}const KR={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:fi("popover")},JR=(t,{radius:o,color:r})=>({tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":r?Oo(r,t):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),Gp=Ne((t,o)=>{const r=ce("TooltipFloating",KR,t),{children:a,refProp:s,withinPortal:c,style:u,className:f,classNames:m,styles:h,unstyled:g,radius:v,color:b,label:C,offset:E,position:w,multiline:T,zIndex:M,disabled:O,defaultOpened:j,variant:N,vars:D,portalProps:V,attributes:$,...X}=r,F=Ut(),q=_e({name:"TooltipFloating",props:r,classes:au,className:f,style:u,classNames:m,styles:h,unstyled:g,attributes:$,rootSelector:"tooltip",vars:D,varsResolver:JR}),{handleMouseMove:te,x:le,y:ee,opened:H,boundaryRef:W,floating:z,setOpened:L}=FR({offset:E,position:w,defaultOpened:j}),_=pi(a);if(!_)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Z=jn(W,sp(_),o),I=_.props,ae=re=>{I.onMouseEnter?.(re),te(re),L(!0)},ne=re=>{I.onMouseLeave?.(re),L(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Br,{...V,withinPortal:c,children:y.jsx(ge,{...X,...q("tooltip",{style:{...N2(u,F),zIndex:M,display:!O&&H?"block":"none",top:(ee&&Math.round(ee))??"",left:(le&&Math.round(le))??""}}),variant:N,ref:z,mod:{multiline:T},children:C})}),x.cloneElement(_,{...I,[s]:Z,onMouseEnter:ae,onMouseLeave:ne})]})});Gp.classes=au;Gp.displayName="@mantine/core/TooltipFloating";const px=x.createContext(!1),WR=px.Provider,eM=()=>x.useContext(px),tM={openDelay:0,closeDelay:0};function Zp(t){const{openDelay:o,closeDelay:r,children:a}=ce("TooltipGroup",tM,t);return y.jsx(WR,{value:!0,children:y.jsx(pT,{delay:{open:o,close:r},children:a})})}Zp.displayName="@mantine/core/TooltipGroup";Zp.extend=t=>t;function nM(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function oM(t){const o=nM(t.middlewares),r=[db(t.offset)];return o.shift&&r.push(Xm(typeof o.shift=="boolean"?{padding:8}:{padding:8,...o.shift})),o.flip&&r.push(typeof o.flip=="boolean"?oc():oc(o.flip)),r.push(mb({element:t.arrowRef,padding:t.arrowOffset})),o.inline?r.push(typeof o.inline=="boolean"?Ka():Ka(o.inline)):t.inline&&r.push(Ka()),r}function lM(t){const[o,r]=x.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:o,c=eM(),u=Pr(),f=x.useCallback(D=>{r(D),D&&M(u)},[u]),{x:m,y:h,context:g,refs:v,placement:b,middlewareData:{arrow:{x:C,y:E}={}}}=yp({strategy:t.strategy,placement:t.position,open:s,onOpenChange:f,middleware:oM(t),whileElementsMounted:Mm}),{delay:w,currentId:T,setCurrentId:M}=hT(g,{id:u}),{getReferenceProps:O,getFloatingProps:j}=ST([dT(g,{enabled:t.events?.hover,delay:c?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),xT(g,{enabled:t.events?.focus,visibleOnly:!0}),wT(g,{role:"tooltip"}),yT(g,{enabled:typeof t.opened>"u"})]);ni(()=>{t.onPositionChange?.(b)},[b]);const N=s&&T&&T!==u;return{x:m,y:h,arrowX:C,arrowY:E,reference:v.setReference,floating:v.setFloating,getFloatingProps:j,getReferenceProps:O,isGroupPhase:N,opened:s,placement:b}}const Dy={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:fi("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},rM=(t,{radius:o,color:r,variant:a,autoContrast:s})=>{const c=t.variantColorResolver({theme:t,color:r||t.primaryColor,autoContrast:s,variant:a||"filled"});return{tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":r?c.background:void 0,"--tooltip-color":r?c.color:void 0}}},Kr=Ne((t,o)=>{const r=ce("Tooltip",Dy,t),{children:a,position:s,refProp:c,label:u,openDelay:f,closeDelay:m,onPositionChange:h,opened:g,defaultOpened:v,withinPortal:b,radius:C,color:E,classNames:w,styles:T,unstyled:M,style:O,className:j,withArrow:N,arrowSize:D,arrowOffset:V,arrowRadius:$,arrowPosition:X,offset:F,transitionProps:q,multiline:te,events:le,zIndex:ee,disabled:H,positionDependencies:W,onClick:z,onMouseEnter:L,onMouseLeave:_,inline:Z,variant:I,keepMounted:ae,vars:ne,portalProps:re,mod:ve,floatingStrategy:se,middlewares:be,autoContrast:Le,attributes:Ee,target:ye,...Je}=ce("Tooltip",Dy,r),{dir:nt}=Yr(),We=x.useRef(null),Ae=lM({position:U2(nt,s),closeDelay:m,openDelay:f,onPositionChange:h,opened:g,defaultOpened:v,events:le,arrowRef:We,arrowOffset:V,offset:typeof F=="number"?F+(N?D/2:0):F,positionDependencies:[...W,ye??a],inline:Z,strategy:se,middlewares:be});x.useEffect(()=>{const wt=ye instanceof HTMLElement?ye:typeof ye=="string"?document.querySelector(ye):ye?.current||null;wt&&Ae.reference(wt)},[ye,Ae]);const tt=_e({name:"Tooltip",props:r,classes:au,className:j,style:O,classNames:w,styles:T,unstyled:M,attributes:Ee,rootSelector:"tooltip",vars:ne,varsResolver:rM}),nn=pi(a);if(!ye&&!nn)throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");if(ye){const wt=Ay(q,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Br,{...re,withinPortal:b,children:y.jsx(il,{...wt,keepMounted:ae,mounted:!H&&!!Ae.opened,duration:Ae.isGroupPhase?10:wt.duration,children:to=>y.jsxs(ge,{...Je,"data-fixed":se==="fixed"||void 0,variant:I,mod:[{multiline:te},ve],...Ae.getFloatingProps({ref:Ae.floating,className:tt("tooltip").className,style:{...tt("tooltip").style,...to,zIndex:ee,top:Ae.y??0,left:Ae.x??0}}),children:[u,y.jsx(xc,{ref:We,arrowX:Ae.arrowX,arrowY:Ae.arrowY,visible:N,position:Ae.placement,arrowSize:D,arrowOffset:V,arrowRadius:$,arrowPosition:X,...tt("arrow")})]})})})})}const An=nn.props,No=jn(Ae.reference,sp(nn),o),Dn=Ay(q,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Br,{...re,withinPortal:b,children:y.jsx(il,{...Dn,keepMounted:ae,mounted:!H&&!!Ae.opened,duration:Ae.isGroupPhase?10:Dn.duration,children:wt=>y.jsxs(ge,{...Je,"data-fixed":se==="fixed"||void 0,variant:I,mod:[{multiline:te},ve],...Ae.getFloatingProps({ref:Ae.floating,className:tt("tooltip").className,style:{...tt("tooltip").style,...wt,zIndex:ee,top:Ae.y??0,left:Ae.x??0}}),children:[u,y.jsx(xc,{ref:We,arrowX:Ae.arrowX,arrowY:Ae.arrowY,visible:N,position:Ae.placement,arrowSize:D,arrowOffset:V,arrowRadius:$,arrowPosition:X,...tt("arrow")})]})})}),x.cloneElement(nn,Ae.getReferenceProps({onClick:z,onMouseEnter:L,onMouseLeave:_,onMouseMove:r.onMouseMove,onPointerDown:r.onPointerDown,onPointerEnter:r.onPointerEnter,...An,className:jo(j,An.className),[c]:No}))]})});Kr.classes=au;Kr.displayName="@mantine/core/Tooltip";Kr.Floating=Gp;Kr.Group=Zp;var hx={root:"m_18320242","skeleton-fade":"m_299c329c"};const aM={visible:!0,animate:!0},iM=(t,{width:o,height:r,radius:a,circle:s})=>({root:{"--skeleton-height":oe(r),"--skeleton-width":oe(s?r:o),"--skeleton-radius":s?"1000px":a===void 0?void 0:Rt(a)}}),Cc=Ne((t,o)=>{const r=ce("Skeleton",aM,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,width:h,height:g,circle:v,visible:b,radius:C,animate:E,mod:w,attributes:T,...M}=r,O=_e({name:"Skeleton",classes:hx,props:r,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:T,vars:m,varsResolver:iM});return y.jsx(ge,{ref:o,...O("root"),mod:[{visible:b,animate:E},w],...M})});Cc.classes=hx;Cc.displayName="@mantine/core/Skeleton";var gx={root:"m_6d731127"};const sM={gap:"md",align:"stretch",justify:"flex-start"},cM=(t,{gap:o,align:r,justify:a})=>({root:{"--stack-gap":di(o),"--stack-align":r,"--stack-justify":a}}),gi=Ne((t,o)=>{const r=ce("Stack",sM,t),{classNames:a,className:s,style:c,styles:u,unstyled:f,vars:m,align:h,justify:g,gap:v,variant:b,attributes:C,...E}=r,w=_e({name:"Stack",props:r,classes:gx,className:s,style:c,classNames:a,styles:u,unstyled:f,attributes:C,vars:m,varsResolver:cM});return y.jsx(ge,{ref:o,...w("root"),variant:b,...E})});gi.classes=gx;gi.displayName="@mantine/core/Stack";const[uM,Pp]=Gc("Tabs component was not found in the tree");var vi={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const qp=Ne((t,o)=>{const r=ce("TabsList",null,t),{children:a,className:s,grow:c,justify:u,classNames:f,styles:m,style:h,mod:g,...v}=r,b=Pp();return y.jsx(ge,{...v,...b.getStyles("list",{className:s,style:h,classNames:f,styles:m,props:r,variant:b.variant}),ref:o,role:"tablist",variant:b.variant,mod:[{grow:c,orientation:b.orientation,placement:b.orientation==="vertical"&&b.placement,inverted:b.inverted},g],"aria-orientation":b.orientation,__vars:{"--tabs-justify":u},children:a})});qp.classes=vi;qp.displayName="@mantine/core/TabsList";const Yp=Ne((t,o)=>{const r=ce("TabsPanel",null,t),{children:a,className:s,value:c,classNames:u,styles:f,style:m,mod:h,keepMounted:g,...v}=r,b=Pp(),C=b.value===c,E=b.keepMounted||g||C?a:null;return y.jsx(ge,{...b.getStyles("panel",{className:s,classNames:u,styles:f,style:[m,C?void 0:{display:"none"}],props:r}),ref:o,mod:[{orientation:b.orientation},h],role:"tabpanel",id:b.getPanelId(c),"aria-labelledby":b.getTabId(c),...v,children:E})});Yp.classes=vi;Yp.displayName="@mantine/core/TabsPanel";const Xp=Ne((t,o)=>{const r=ce("TabsTab",null,t),{className:a,children:s,rightSection:c,leftSection:u,value:f,onClick:m,onKeyDown:h,disabled:g,color:v,style:b,classNames:C,styles:E,vars:w,mod:T,tabIndex:M,...O}=r,j=Ut(),{dir:N}=Yr(),D=Pp(),V=f===D.value,$=F=>{D.onChange(D.allowTabDeactivation&&f===D.value?null:f),m?.(F)},X={classNames:C,styles:E,props:r};return y.jsxs(cl,{...D.getStyles("tab",{className:a,style:b,variant:D.variant,...X}),disabled:g,unstyled:D.unstyled,variant:D.variant,mod:[{active:V,disabled:g,orientation:D.orientation,inverted:D.inverted,placement:D.orientation==="vertical"&&D.placement},T],ref:o,role:"tab",id:D.getTabId(f),"aria-selected":V,tabIndex:M!==void 0?M:V||D.value===null?0:-1,"aria-controls":D.getPanelId(f),onClick:$,__vars:{"--tabs-color":v?Oo(v,j):void 0},onKeyDown:ip({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:D.activateTabWithKeyboard,loop:D.loop,orientation:D.orientation||"horizontal",dir:N,onKeyDown:h}),...O,children:[u&&y.jsx("span",{...D.getStyles("tabSection",X),"data-position":"left",children:u}),s&&y.jsx("span",{...D.getStyles("tabLabel",X),children:s}),c&&y.jsx("span",{...D.getStyles("tabSection",X),"data-position":"right",children:c})]})});Xp.classes=vi;Xp.displayName="@mantine/core/TabsTab";const Hy="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",fM={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},dM=(t,{radius:o,color:r,autoContrast:a})=>({root:{"--tabs-radius":Rt(o),"--tabs-color":Oo(r,t),"--tabs-text-color":b6(a,t)?E2({color:r,theme:t,autoContrast:a}):void 0}}),wo=Ne((t,o)=>{const r=ce("Tabs",fM,t),{defaultValue:a,value:s,onChange:c,orientation:u,children:f,loop:m,id:h,activateTabWithKeyboard:g,allowTabDeactivation:v,variant:b,color:C,radius:E,inverted:w,placement:T,keepMounted:M,classNames:O,styles:j,unstyled:N,className:D,style:V,vars:$,autoContrast:X,mod:F,attributes:q,...te}=r,le=Pr(h),[ee,H]=qr({value:s,defaultValue:a,finalValue:null,onChange:c}),W=_e({name:"Tabs",props:r,classes:vi,className:D,style:V,classNames:O,styles:j,unstyled:N,attributes:q,vars:$,varsResolver:dM});return y.jsx(uM,{value:{placement:T,value:ee,orientation:u,id:le,loop:m,activateTabWithKeyboard:g,getTabId:iy(`${le}-tab`,Hy),getPanelId:iy(`${le}-panel`,Hy),onChange:H,allowTabDeactivation:v,variant:b,color:C,radius:E,inverted:w,keepMounted:M,unstyled:N,getStyles:W},children:y.jsx(ge,{ref:o,id:le,variant:b,mod:[{orientation:u,inverted:u==="horizontal"&&w,placement:u==="vertical"&&T},F],...W("root"),...te,children:f})})});wo.classes=vi;wo.displayName="@mantine/core/Tabs";wo.Tab=Xp;wo.Panel=Yp;wo.List=qp;const iu=Ne((t,o)=>{const r=ce("TextInput",null,t);return y.jsx(Ir,{component:"input",ref:o,...r,__staticSelector:"TextInput"})});iu.classes=Ir.classes;iu.displayName="@mantine/core/TextInput";const vx=(t,o,r=!1)=>{const a=[];function s(c,u="--bn"){for(const f in c){const m=f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h=`${u}-${m}`;typeof c[f]!="object"?(typeof c[f]=="number"&&(c[f]=`${c[f]}px`),r?o.style.removeProperty(h):o.style.setProperty(h,c[f].toString())):s(c[f],h)}}return s(t),a},zy=(t,o)=>vx(t,o),mM={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},pM=t=>vx(mM,t,!0),yx=t=>y.jsxs(gi,{gap:0,className:"bn-tooltip",children:[y.jsx(Jn,{size:"sm",lineClamp:5,children:t.mainTooltip}),t.secondaryTooltip&&y.jsx(Jn,{size:"xs",lineClamp:5,children:t.secondaryTooltip})]}),gm=x.forwardRef((t,o)=>{const{className:r,children:a,mainTooltip:s,secondaryTooltip:c,icon:u,isSelected:f,isDisabled:m,onClick:h,label:g,variant:v,...b}=t;we(b,!1);const[C,E]=x.useState(!1),w=a?y.jsx(Nn,{"aria-label":g,className:r,onMouseDown:T=>{Sm()&&T.currentTarget.focus()},onClick:T=>{E(!0),h?.(T)},onPointerLeave:()=>E(!1),"aria-pressed":f,"data-selected":f||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:v==="compact"?"compact-xs":"xs",disabled:m||!1,ref:o,...b,children:a}):y.jsx(Vl,{className:r,"aria-label":g,onMouseDown:T=>{Sm()&&T.currentTarget.focus()},onClick:T=>{E(!0),h?.(T)},onPointerLeave:()=>E(!1),"aria-pressed":f,"data-selected":f||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:v==="compact"?20:30,disabled:m||!1,ref:o,...b,children:u});return s?y.jsx(Kr,{disabled:C,withinPortal:!1,label:y.jsx(yx,{mainTooltip:s,secondaryTooltip:c}),children:w}):w}),hM=x.forwardRef((t,o)=>{const{className:r,text:a,icon:s,isSelected:c,mainTooltip:u,secondaryTooltip:f,onClick:m,onMouseEnter:h,...g}=t;we(g,!1);const[v,b]=x.useState(!1),C=y.jsxs(lu,{className:r,checked:c===!0,wrapperProps:{onMouseEnter:h,onMouseLeave:()=>b(!1),onClick:E=>{b(!0),m?.(E)}},variant:"light",icon:null,ref:o,children:[y.jsx("span",{children:s}),y.jsx("span",{children:a})]});return!u||v?C:y.jsx(Kr,{refProp:"rootRef",withinPortal:!1,label:y.jsx(yx,{mainTooltip:u,secondaryTooltip:f}),children:C})}),gM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s),y.jsx(Ct,{className:r,ref:o,children:a})}),vM=x.forwardRef((t,o)=>{const{className:r,children:a,headerText:s,selected:c,onFocus:u,onBlur:f,tabIndex:m,...h}=t;return we(h,!1),y.jsxs(hi,{className:ht(r,c?"selected":""),onFocus:u,onBlur:f,tabIndex:m,ref:o,children:[s&&y.jsx(Jn,{className:"bn-header-text",children:s}),a]})}),yM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s,!1),y.jsx(hi.Section,{className:r,ref:o,children:a})}),bM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s,!1),y.jsx(Dp,{className:r,label:y.jsx(Jn,{children:a}),ref:o})}),xM=x.forwardRef((t,o)=>{const{authorInfo:r,timeString:a,edited:s,...c}=t,u=Ce();return we(c,!1),r==="loading"?y.jsxs(Ct,{children:[y.jsx(Cc,{height:24,width:24}),y.jsx("div",{children:y.jsx(Cc,{height:12,width:100})})]}):y.jsxs(Ct,{children:[y.jsx(nu,{src:r.avatarUrl,alt:r.username,radius:"xl",size:"sm",color:"initials"}),y.jsxs(Jn,{fz:"sm",fw:"bold",children:[r.username,y.jsxs(Jn,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[a," ",s&&`(${u.comments.edited})`]})]})]})}),SM=x.forwardRef((t,o)=>{const{className:r,showActions:a,authorInfo:s,timeString:c,edited:u,actions:f,emojiPickerOpen:m,children:h,...g}=t,{hovered:v,ref:b}=OE(),C=tE([o,b]);return we(g,!1),y.jsxs(Ct,{pos:"relative",ref:C,className:r,children:[f&&(a===!0||a===void 0||a==="hover"&&v||m)?y.jsx(Ct,{style:{position:"absolute",right:0,top:0,zIndex:10},children:f}):null,y.jsx(xM,{...t}),h]})}),CM=x.forwardRef((t,o)=>{const{className:r,autoFocus:a,onFocus:s,onBlur:c,editor:u,editable:f,...m}=t;we(m,!1);const h=On();return y.jsx(uO,{autoFocus:a,className:r,editor:t.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:f,theme:h?.colorSchemePreference,ref:o,onFocus:s,onBlur:c,children:y.jsx(a2,{formattingToolbar:wM})})}),wM=()=>{const t=l2([]).filter(o=>o.key!=="nestBlockButton"&&o.key!=="unnestBlockButton");return y.jsx(r2,{blockTypeSelectItems:[],children:t})},EM=x.forwardRef((t,o)=>{const{className:r,name:a,label:s,variant:c,icon:u,value:f,autoFocus:m,placeholder:h,disabled:g,onKeyDown:v,onChange:b,onSubmit:C,autoComplete:E,rightSection:w,...T}=t;return we(T),y.jsx(iu,{size:"xs",className:ht(r||"",c==="large"?"bn-mt-input-large":""),ref:o,name:a,label:s,leftSection:u,value:f,autoFocus:m,"data-autofocus":m?"true":void 0,rightSection:w,placeholder:h,disabled:g,onKeyDown:v,onChange:b,onSubmit:C,autoComplete:E})}),TM=x.createContext(void 0),RM=t=>{const{children:o,onOpenChange:r,position:a,sub:s,...c}=t;return we(c),s?y.jsx(Fe.Sub,{transitionProps:{duration:250,exitDelay:250},withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:r,position:a,children:o}):y.jsx(Fe,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:r,position:a,returnFocus:!1,children:o})},MM=x.forwardRef((t,o)=>{const{className:r,children:a,icon:s,checked:c,subTrigger:u,onClick:f,...m}=t;return we(m,!1),u?y.jsx(Fe.Sub.Item,{className:r,ref:o,leftSection:s,rightSection:c?y.jsx(Sc,{size:10}):c===!1?y.jsx("div",{className:"bn-tick-space"}):null,onClick:f,...m,children:a}):y.jsx(Fe.Item,{className:r,ref:o,leftSection:s,rightSection:c?y.jsx(Sc,{size:10}):c===!1?y.jsx("div",{className:"bn-tick-space"}):null,onClick:f,...m,children:a})}),OM=t=>{const{children:o,sub:r,...a}=t;return we(a),r?y.jsx(Fe.Sub.Target,{children:o}):y.jsx(Fe.Target,{children:o})},jM=x.forwardRef((t,o)=>{const{className:r,children:a,sub:s,...c}=t;we(c);const u=x.useContext(TM);return s?y.jsx(Fe.Sub.Dropdown,{className:r,ref:o,onMouseOver:u?.onMenuMouseOver,onMouseLeave:u?.onMenuMouseLeave,children:a}):y.jsx(Fe.Dropdown,{className:r,ref:o,onMouseOver:u?.onMenuMouseOver,onMouseLeave:u?.onMenuMouseLeave,children:a})}),_M=x.forwardRef((t,o)=>{const{className:r,...a}=t;return we(a),y.jsx(Fe.Divider,{className:r,ref:o})}),NM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s),y.jsx(Fe.Label,{className:r,ref:o,children:a})}),AM=x.forwardRef((t,o)=>{const{className:r,children:a,icon:s,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,label:h,...g}=t;return we(g,!1),s?y.jsx(Vl,{size:24,className:r,ref:o,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,"aria-label":h,...g,children:s}):y.jsx(Nn,{className:r,ref:o,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,"aria-label":h,...g,children:a})}),DM=x.forwardRef((t,o)=>{const{className:r,tabs:a,defaultOpenTab:s,openTab:c,setOpenTab:u,loading:f,...m}=t;return we(m),y.jsx(Ct,{className:r,ref:o,children:y.jsxs(wo,{value:c,defaultValue:s,onChange:u,children:[f&&y.jsx(zp,{visible:f}),y.jsx(wo.List,{children:a.map(h=>y.jsx(wo.Tab,{"data-test":`${h.name.toLowerCase()}-tab`,value:h.name,children:h.name},h.name))}),a.map(h=>y.jsx(wo.Panel,{value:h.name,children:h.tabPanel},h.name))]})})}),HM=x.forwardRef((t,o)=>{const{className:r,children:a,onClick:s,label:c,...u}=t;return we(u),y.jsx(Nn,{size:"xs","aria-label":c,className:r,ref:o,onClick:s,...u,children:a})}),zM=x.forwardRef((t,o)=>{const{className:r,accept:a,value:s,placeholder:c,onChange:u,...f}=t;return we(f),y.jsx(GR,{size:"xs",className:r,ref:o,accept:a,value:s,placeholder:c,onChange:u,...f})}),LM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s),y.jsx("div",{className:r,ref:o,children:a})}),kM=x.forwardRef((t,o)=>{const{className:r,value:a,placeholder:s,onKeyDown:c,onChange:u,...f}=t;return we(f),y.jsx(iu,{size:"xs","data-test":"embed-input",className:r,ref:o,value:a,placeholder:s,onKeyDown:c,onChange:u})}),VM=t=>{const{open:o,onOpenChange:r,position:a,children:s,...c}=t;return we(c),y.jsx(_n,{middlewares:{size:{padding:20}},withinPortal:!1,opened:o,onChange:r,position:a,zIndex:1e4,children:s})},BM=t=>{const{children:o,...r}=t;return we(r),y.jsx(Cp,{children:o})},$M=x.forwardRef((t,o)=>{const{className:r,children:a,variant:s,...c}=t;return we(c),y.jsx(Qc,{className:r,ref:o,children:a})}),UM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s,!1),y.jsx(Ct,{align:"center",gap:0,className:r,ref:o,...s,children:a})}),GM=x.forwardRef((t,o)=>{const{className:r,children:a,icon:s,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,label:h,...g}=t;return we(g,!1),s?y.jsx(Vl,{size:24,className:r,ref:o,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,"aria-label":h,...g,children:s}):y.jsx(Nn,{className:r,ref:o,onClick:c,onDragEnd:u,onDragStart:f,draggable:m,"aria-label":h,...g,children:a})}),ZM=x.forwardRef((t,o)=>{const{className:r,children:a,id:s,...c}=t;return we(c),y.jsx(gi,{gap:0,className:r,ref:o,id:s,role:"listbox",children:a})}),PM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s),y.jsx(Ct,{className:r,ref:o,children:y.jsx(Ct,{className:"bn-mt-suggestion-menu-item-title",children:a})})}),qM=x.forwardRef((t,o)=>{const{className:r,isSelected:a,onClick:s,item:c,id:u,...f}=t;we(f);const m=x.useRef(null);return x.useEffect(()=>{if(!m.current||!a)return;const h=m2(m.current,m.current.closest(".bn-suggestion-menu, #ai-suggestion-menu"));h==="top"?m.current.scrollIntoView(!0):h==="bottom"&&m.current.scrollIntoView(!1)},[a]),y.jsxs(Ct,{gap:0,className:r,ref:Pc(o,m),id:u,role:"option",onMouseDown:h=>h.preventDefault(),onClick:s,"aria-selected":a||void 0,children:[c.icon&&y.jsx(Ct,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),y.jsxs(gi,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[y.jsx(Jn,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),y.jsx(Jn,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&y.jsx(Ct,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:y.jsx(jp,{size:"xs",children:c.badge})})]})}),YM=x.forwardRef((t,o)=>{const{className:r,children:a,...s}=t;return we(s),y.jsx(Ct,{className:r,ref:o,children:a})}),XM=x.forwardRef((t,o)=>{const{className:r,...a}=t;return we(a),y.jsx(ul,{className:r,type:"dots",size:16,ref:o})}),IM=x.forwardRef((t,o)=>{const{className:r,children:a,id:s,columns:c,...u}=t;return we(u),y.jsx("div",{className:r,style:{gridTemplateColumns:`repeat(${c}, 1fr)`},ref:o,id:s,role:"grid",children:a})}),QM=x.forwardRef((t,o)=>{const{className:r,children:a,columns:s,...c}=t;return we(c),y.jsx(Ct,{className:r,style:{gridColumn:`1 / ${s+1}`},ref:o,children:y.jsx(Ct,{className:"bn-mt-suggestion-menu-item-title",children:a})})}),FM=x.forwardRef((t,o)=>{const{className:r,isSelected:a,onClick:s,item:c,id:u,...f}=t;we(f);const m=x.useRef(null);return x.useEffect(()=>{if(!m.current||!a)return;const h=m2(m.current,m.current.closest(".bn-grid-suggestion-menu"));h==="top"?m.current.scrollIntoView(!0):h==="bottom"&&m.current.scrollIntoView(!1)},[a]),y.jsx("div",{className:r,ref:Pc(o,m),id:u,role:"option",onClick:s,"aria-selected":a||void 0,children:c.icon})}),KM=x.forwardRef((t,o)=>{const{className:r,children:a,columns:s,...c}=t;return we(c),y.jsx(ul,{className:r,style:{gridColumn:`1 / ${s+1}`},type:"dots",ref:o})}),JM=x.forwardRef((t,o)=>{const{children:r,className:a,onMouseDown:s,onClick:c,...u}=t;return we(u,!1),y.jsx(Nn,{className:a,ref:o,onMouseDown:s,onClick:c,...u,children:r})}),WM=x.forwardRef((t,o)=>{const{className:r,children:a,draggable:s,onDragStart:c,onDragEnd:u,style:f,label:m,...h}=t;return we(h,!1),y.jsx(Nn,{className:r,ref:o,"aria-label":m,draggable:s,onDragStart:c,onDragEnd:u,style:f,...h,children:a})}),vm=x.forwardRef((t,o)=>{const{className:r,children:a,onMouseEnter:s,onMouseLeave:c,variant:u,...f}=t;we(f);const{ref:m,focused:h}=NE(),g=S2(h),v=Pc(o,m,g);return y.jsx(Mp,{className:r,ref:v,role:"toolbar",onMouseEnter:s,onMouseLeave:c,gap:u==="action-toolbar"?2:void 0,children:a})});var bx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ly=Ve.createContext&&Ve.createContext(bx),eO=["attr","size","title"];function tO(t,o){if(t==null)return{};var r=nO(t,o),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)a=c[s],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function nO(t,o){if(t==null)return{};var r={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(o.indexOf(a)>=0)continue;r[a]=t[a]}return r}function wc(){return wc=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},wc.apply(this,arguments)}function ky(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,a)}return r}function Ec(t){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ky(Object(r),!0).forEach(function(a){oO(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function oO(t,o,r){return o=lO(o),o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function lO(t){var o=rO(t,"string");return typeof o=="symbol"?o:o+""}function rO(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,o);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function xx(t){return t&&t.map((o,r)=>Ve.createElement(o.tag,Ec({key:r},o.attr),xx(o.child)))}function aO(t){return o=>Ve.createElement(iO,wc({attr:Ec({},t.attr)},o),xx(t.child))}function iO(t){var o=r=>{var{attr:a,size:s,title:c}=t,u=tO(t,eO),f=s||r.size||"1em",m;return r.className&&(m=r.className),t.className&&(m=(m?m+" ":"")+t.className),Ve.createElement("svg",wc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,u,{className:m,style:Ec(Ec({color:t.color||r.color},r.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Ve.createElement("title",null,c),t.children)};return Ly!==void 0?Ve.createElement(Ly.Consumer,null,r=>o(r)):o(bx)}function sO(t){return aO({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}const ym=x.forwardRef((t,o)=>{const{className:r,items:a,isDisabled:s,...c}=t;we(c);const u=a.filter(f=>f.isSelected)[0];return u?y.jsxs(Fe,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[y.jsx(Fe.Target,{children:y.jsx(Nn,{onMouseDown:f=>{Sm()&&f.currentTarget.focus()},leftSection:u.icon,rightSection:y.jsx(sO,{}),size:"xs",variant:"subtle",disabled:s,children:u.text})}),y.jsx(Fe.Dropdown,{className:r,ref:o,children:a.map(f=>y.jsx(Fe.Item,{onClick:f.onClick,leftSection:f.icon,rightSection:f.isSelected?y.jsx(Sc,{size:10,className:"bn-tick-icon"}):y.jsx("div",{className:"bn-tick-space"}),disabled:f.isDisabled,children:f.text},f.text))})]}):null}),cO={FormattingToolbar:{Root:vm,Button:gm,Select:ym},FilePanel:{Root:DM,Button:HM,FileInput:zM,TabPanel:LM,TextInput:kM},GridSuggestionMenu:{Root:IM,Item:FM,EmptyItem:QM,Loader:KM},LinkToolbar:{Root:vm,Button:gm,Select:ym},SideMenu:{Root:UM,Button:GM},SuggestionMenu:{Root:ZM,Item:qM,EmptyItem:PM,Label:YM,Loader:XM},TableHandle:{Root:WM,ExtendButton:JM},Generic:{Badge:{Root:hM,Group:gM},Form:{Root:t=>y.jsx("div",{children:t.children}),TextInput:EM},Menu:{Root:RM,Trigger:OM,Dropdown:jM,Divider:_M,Label:NM,Item:MM,Button:AM},Popover:{Root:VM,Trigger:BM,Content:$M},Toolbar:{Root:vm,Button:gm,Select:ym}},Comments:{Comment:SM,Editor:CM,Card:vM,CardSection:yM,ExpandSectionsPrompt:bM}},uO=t=>{const{className:o,theme:r,...a}=t,s=On(),c=u2(),u=s?.colorSchemePreference||c,f=x.useCallback(v=>{if(v&&(pM(v),typeof r=="object")){if("light"in r&&"dark"in r){zy(r[u==="dark"?"dark":"light"],v);return}zy(r,v);return}},[u,r]),m=x.useContext(cp),h=typeof r=="string"?r:u!=="no-preference"?u:"light",g=y.jsx(Ub.Provider,{value:cO,children:y.jsx(B9,{"data-mantine-color-scheme":h,className:ht("bn-mantine",o||""),theme:typeof r=="object"?void 0:r,...a,ref:f})});return m?g:y.jsx(M2,{withCssVariables:!1,getRootElement:()=>{},children:g})};export{uO as F,Yy as R,yO as U,np as X,lc as _,u5 as a,vw as b,jo as c,mb as d,Mm as e,oc as f,mO as g,yw as h,p9 as i,y as j,m9 as k,b0 as l,db as o,wn as r,Xm as s,hw as u,he as v,M4 as w,hO as y};