@pasko70/pibo 1.11.2 → 1.11.4

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 (183) hide show
  1. package/dist/apps/chat/data/chat-data-mappers.js +18 -6
  2. package/dist/apps/chat/loop-api.js +22 -6
  3. package/dist/apps/chat-ui/assets/dist-B5PTVnox.js +1 -0
  4. package/dist/apps/chat-ui/assets/dist-B5ZAfwf5.js +1 -0
  5. package/dist/apps/{context-files-ui/assets/dist-ZsBbt0uY.js → chat-ui/assets/dist-BXjLdcn6.js} +1 -1
  6. package/dist/apps/{context-files-ui/assets/dist-DqYw0LH7.js → chat-ui/assets/dist-BeKdUsyg.js} +1 -1
  7. package/dist/apps/chat-ui/assets/dist-BkUONE3N.js +1 -0
  8. package/dist/apps/{context-files-ui/assets/dist-vnd7PMu3.js → chat-ui/assets/dist-BtQ20SMU.js} +1 -1
  9. package/dist/apps/{context-files-ui/assets/dist-DPG9jOQ-.js → chat-ui/assets/dist-CNv02m3N.js} +1 -1
  10. package/dist/apps/{context-files-ui/assets/dist-Dp5AH00p.js → chat-ui/assets/dist-CSBDio7C.js} +1 -1
  11. package/dist/apps/{context-files-ui/assets/dist-kmsvtHkH.js → chat-ui/assets/dist-CjXSEbsr.js} +1 -1
  12. package/dist/apps/chat-ui/assets/{dist-SVPsM5Oi.js → dist-D1KyNDg5.js} +2 -2
  13. package/dist/apps/{context-files-ui/assets/dist-DK01b7x4.js → chat-ui/assets/dist-D9B41N2f.js} +1 -1
  14. package/dist/apps/chat-ui/assets/dist-DKoyMSNr.js +1 -0
  15. package/dist/apps/chat-ui/assets/dist-DLMjd26T.js +1 -0
  16. package/dist/apps/chat-ui/assets/dist-DotDq_kD.js +1 -0
  17. package/dist/apps/chat-ui/assets/dist-QQuDy4KA.js +1 -0
  18. package/dist/apps/{context-files-ui/assets/dist-BOiGdrG-.js → chat-ui/assets/dist-TAhl1jC0.js} +1 -1
  19. package/dist/apps/{context-files-ui/assets/dist-TbjAhles.js → chat-ui/assets/dist-TS4EA6YQ.js} +1 -1
  20. package/dist/apps/{context-files-ui/assets/dist-TF5iO5ML.js → chat-ui/assets/dist-yjwDcRbw.js} +1 -1
  21. package/dist/apps/chat-ui/assets/{dockerfile-CUaqzcqp.js → dockerfile-CJb2sekW.js} +1 -1
  22. package/dist/apps/chat-ui/assets/{factor-C2tAxNob.js → factor-B2EMQZkP.js} +1 -1
  23. package/dist/apps/chat-ui/assets/index-BoRl0OB_.js +473 -0
  24. package/dist/apps/chat-ui/assets/index-aTOOomMF.css +1 -0
  25. package/dist/apps/chat-ui/assets/{nsis-SMDwKltR.js → nsis-DOo3SJmd.js} +1 -1
  26. package/dist/apps/chat-ui/assets/{pug-Bo3wfL-f.js → pug-QU72BPAa.js} +1 -1
  27. package/dist/apps/chat-ui/index.html +3 -4
  28. package/dist/apps/chat-vscode-web/assets/index-DGcSd2ZH.js +275 -0
  29. package/dist/apps/chat-vscode-web/assets/{index-Bf2JvJ9z.css → index-Dupu1DzQ.css} +1 -1
  30. package/dist/apps/chat-vscode-web/index.html +2 -2
  31. package/dist/apps/context-files-ui/assets/dist-B07Whoa6.js +1 -0
  32. package/dist/apps/context-files-ui/assets/dist-BACxmdQ2.js +9 -0
  33. package/dist/apps/context-files-ui/assets/dist-BFlEjppv.js +1 -0
  34. package/dist/apps/{chat-ui/assets/dist-CuGiEm5l.js → context-files-ui/assets/dist-BQK_wUMR.js} +2 -2
  35. package/dist/apps/context-files-ui/assets/dist-CigbyRK5.js +1 -0
  36. package/dist/apps/context-files-ui/assets/dist-D68eIqmX.js +1 -0
  37. package/dist/apps/context-files-ui/assets/dist-DT9QkgTN.js +1 -0
  38. package/dist/apps/context-files-ui/assets/dist-De6eI3Cr.js +1 -0
  39. package/dist/apps/context-files-ui/assets/dist-Dtv5S2qd.js +11 -0
  40. package/dist/apps/context-files-ui/assets/dist-TG9QLHKj.js +1 -0
  41. package/dist/apps/context-files-ui/assets/index-B5j33Q2B.js +438 -0
  42. package/dist/apps/context-files-ui/assets/{index-B92tL3Pp.css → index-CukPnd6A.css} +1 -1
  43. package/dist/apps/context-files-ui/index.html +2 -2
  44. package/dist/apps/vscode-artifacts/latest.vsix +0 -0
  45. package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.11.4.vsix +0 -0
  46. package/dist/core/routed-session.js +143 -24
  47. package/dist/core/runtime-telemetry.js +90 -0
  48. package/dist/core/runtime.js +1 -0
  49. package/dist/core/session-router.js +262 -50
  50. package/dist/debug/web-render-order-analysis.js +307 -0
  51. package/dist/debug/web-snapshot-browser-scripts.js +10 -1
  52. package/dist/debug/web-streaming-benchmark-analysis.js +12 -1
  53. package/dist/debug/web-streaming-browser-library.js +268 -58
  54. package/dist/debug/web-streaming-report.js +24 -0
  55. package/dist/debug/web.js +14 -3
  56. package/dist/gateway/server.js +2 -0
  57. package/dist/gateway/web.js +1 -0
  58. package/dist/loops/accounting.js +8 -1
  59. package/dist/loops/cli.js +1 -1
  60. package/dist/loops/service.js +167 -27
  61. package/dist/loops/store.js +229 -17
  62. package/dist/loops/tools.js +30 -9
  63. package/dist/plugins/context-files.js +3 -1
  64. package/dist/runs/registry.js +19 -0
  65. package/package.json +1 -1
  66. package/dist/apps/chat-ui/assets/dist--55mTWk3.js +0 -1
  67. package/dist/apps/chat-ui/assets/dist-BBVpFHAq.js +0 -11
  68. package/dist/apps/chat-ui/assets/dist-BXyVMdHv.js +0 -1
  69. package/dist/apps/chat-ui/assets/dist-BZ39rB1W.js +0 -1
  70. package/dist/apps/chat-ui/assets/dist-BiGfVaXN.js +0 -1
  71. package/dist/apps/chat-ui/assets/dist-BsedZGJo.js +0 -1
  72. package/dist/apps/chat-ui/assets/dist-C5YJOwhH.js +0 -1
  73. package/dist/apps/chat-ui/assets/dist-C5oXtFSP.js +0 -1
  74. package/dist/apps/chat-ui/assets/dist-CCGKu-Wj.js +0 -9
  75. package/dist/apps/chat-ui/assets/dist-CE0MvPLM.js +0 -1
  76. package/dist/apps/chat-ui/assets/dist-CKM5j-iy.js +0 -1
  77. package/dist/apps/chat-ui/assets/dist-CUp9us2q.js +0 -1
  78. package/dist/apps/chat-ui/assets/dist-CZ9T4Cly.js +0 -1
  79. package/dist/apps/chat-ui/assets/dist-DBnh8gXR.js +0 -1
  80. package/dist/apps/chat-ui/assets/dist-DSKQpPaz.js +0 -1
  81. package/dist/apps/chat-ui/assets/dist-DeOnZ-pw.js +0 -23
  82. package/dist/apps/chat-ui/assets/dist-DnQYnLQS.js +0 -1
  83. package/dist/apps/chat-ui/assets/dist-VT4x40uL.js +0 -6
  84. package/dist/apps/chat-ui/assets/dist-Zqt9kNG9.js +0 -1
  85. package/dist/apps/chat-ui/assets/dist-tGfufz3b.js +0 -1
  86. package/dist/apps/chat-ui/assets/dist-xtnVygdr.js +0 -1
  87. package/dist/apps/chat-ui/assets/index-DNeE4HrG.css +0 -1
  88. package/dist/apps/chat-ui/assets/index-vcg8JNj9.js +0 -173
  89. package/dist/apps/chat-ui/assets/rolldown-runtime-S-ySWqyJ.js +0 -1
  90. package/dist/apps/chat-vscode-web/assets/index-DVlCO7v_.js +0 -41
  91. package/dist/apps/context-files-ui/assets/index-BhAWD3dv.js +0 -202
  92. package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.11.2.vsix +0 -0
  93. /package/dist/apps/chat-ui/assets/{apl-BxEMbctQ.js → apl-14BqhLYK.js} +0 -0
  94. /package/dist/apps/chat-ui/assets/{asciiarmor-eFjeGRuZ.js → asciiarmor-WLvjqI7d.js} +0 -0
  95. /package/dist/apps/chat-ui/assets/{asn1-Cfx-0pt9.js → asn1-Bg4FbdCg.js} +0 -0
  96. /package/dist/apps/chat-ui/assets/{asterisk-B5BHTsBr.js → asterisk-B2MO-X4d.js} +0 -0
  97. /package/dist/apps/chat-ui/assets/{brainfuck-CAA2xofr.js → brainfuck-CV9kufud.js} +0 -0
  98. /package/dist/apps/chat-ui/assets/{clike-BoDCOLzN.js → clike-CjmcUpt6.js} +0 -0
  99. /package/dist/apps/chat-ui/assets/{clojure-kVFSWX0o.js → clojure-De3QGfx6.js} +0 -0
  100. /package/dist/apps/chat-ui/assets/{cmake-BUPAhezI.js → cmake-i2VDNaRq.js} +0 -0
  101. /package/dist/apps/chat-ui/assets/{cobol-BfgHZgup.js → cobol-BwO6DF08.js} +0 -0
  102. /package/dist/apps/chat-ui/assets/{coffeescript-G1Pe_1AZ.js → coffeescript-BtivDvRz.js} +0 -0
  103. /package/dist/apps/chat-ui/assets/{commonlisp-B3N0CjHn.js → commonlisp-DFkEQdLP.js} +0 -0
  104. /package/dist/apps/chat-ui/assets/{crystal-C15ndaGM.js → crystal-CU0NkcVL.js} +0 -0
  105. /package/dist/apps/chat-ui/assets/{css-BqOeyZOV.js → css-CbMZAQ1W.js} +0 -0
  106. /package/dist/apps/chat-ui/assets/{cypher-KjIKv-wW.js → cypher-Dke5QOzv.js} +0 -0
  107. /package/dist/apps/chat-ui/assets/{d-BlT5AEC-.js → d-TPqSVaHM.js} +0 -0
  108. /package/dist/apps/chat-ui/assets/{diff-oF98tbqj.js → diff-B365LSoZ.js} +0 -0
  109. /package/dist/apps/chat-ui/assets/{dtd-VCA9yr61.js → dtd-CBMymJ7O.js} +0 -0
  110. /package/dist/apps/chat-ui/assets/{dylan-O-V5Dw5W.js → dylan-08Azy1NK.js} +0 -0
  111. /package/dist/apps/chat-ui/assets/{ebnf-SPmdBkvT.js → ebnf-Dkum_1J8.js} +0 -0
  112. /package/dist/apps/chat-ui/assets/{ecl-ChfCttfI.js → ecl-dhxjHL8y.js} +0 -0
  113. /package/dist/apps/chat-ui/assets/{eiffel-cB9EbjeN.js → eiffel-C446m6dI.js} +0 -0
  114. /package/dist/apps/chat-ui/assets/{elm-BTiVflBU.js → elm-po1E9de0.js} +0 -0
  115. /package/dist/apps/chat-ui/assets/{erlang-egf0TXFm.js → erlang-BD5LkVkR.js} +0 -0
  116. /package/dist/apps/chat-ui/assets/{fcl-BiCjh1tj.js → fcl-DkEOamHd.js} +0 -0
  117. /package/dist/apps/chat-ui/assets/{forth-C4kDGW6u.js → forth-dCg2_HVB.js} +0 -0
  118. /package/dist/apps/chat-ui/assets/{fortran-DzkLaPnd.js → fortran-3ZpXLFh1.js} +0 -0
  119. /package/dist/apps/chat-ui/assets/{gas-DMOxskQF.js → gas-DMmxLZRI.js} +0 -0
  120. /package/dist/apps/chat-ui/assets/{gherkin-BPxBpp-k.js → gherkin-DUSFg2R6.js} +0 -0
  121. /package/dist/apps/chat-ui/assets/{groovy-CkEnc0ZY.js → groovy-Cmduloe1.js} +0 -0
  122. /package/dist/apps/chat-ui/assets/{haskell-Dadpo9-w.js → haskell-Cyr255R9.js} +0 -0
  123. /package/dist/apps/chat-ui/assets/{haxe-CDNZL9MW.js → haxe-BJVKtprM.js} +0 -0
  124. /package/dist/apps/chat-ui/assets/{http-jy9Zxxt3.js → http-DszHFpc-.js} +0 -0
  125. /package/dist/apps/chat-ui/assets/{idl-CGSB6iiy.js → idl-Cati9Nrv.js} +0 -0
  126. /package/dist/apps/chat-ui/assets/{javascript-DSlzRUd8.js → javascript-C5pDVaoP.js} +0 -0
  127. /package/dist/apps/chat-ui/assets/{julia-DTiF9v6R.js → julia-DlqY1cTU.js} +0 -0
  128. /package/dist/apps/chat-ui/assets/{livescript-Ci8Xxna6.js → livescript-C6p8-2W1.js} +0 -0
  129. /package/dist/apps/chat-ui/assets/{lua-eVxIrt9t.js → lua-BxuTHaF7.js} +0 -0
  130. /package/dist/apps/chat-ui/assets/{mathematica-Da3grj36.js → mathematica-nDHZUMJT.js} +0 -0
  131. /package/dist/apps/chat-ui/assets/{mbox-BWBMSafM.js → mbox-DAaR0Hcz.js} +0 -0
  132. /package/dist/apps/chat-ui/assets/{mirc-CtHu9S1B.js → mirc-CCA0FRfl.js} +0 -0
  133. /package/dist/apps/chat-ui/assets/{mllike-wTFlPWXS.js → mllike-Cw3Iccsb.js} +0 -0
  134. /package/dist/apps/chat-ui/assets/{modelica-cKbQ0UXu.js → modelica-Czx80fNR.js} +0 -0
  135. /package/dist/apps/chat-ui/assets/{mscgen-C5pXQCMK.js → mscgen-BmfuTbzG.js} +0 -0
  136. /package/dist/apps/chat-ui/assets/{mumps-CKBHkOQq.js → mumps-Ds_ZaumL.js} +0 -0
  137. /package/dist/apps/chat-ui/assets/{nginx-B00AiQel.js → nginx-D9M2PQ4U.js} +0 -0
  138. /package/dist/apps/chat-ui/assets/{ntriples-B_36EBV0.js → ntriples-DLHGTvHs.js} +0 -0
  139. /package/dist/apps/chat-ui/assets/{octave-BXPjzAif.js → octave-8jj96JiC.js} +0 -0
  140. /package/dist/apps/chat-ui/assets/{oz-Dedpat1M.js → oz-BmMq7iC4.js} +0 -0
  141. /package/dist/apps/chat-ui/assets/{pascal-CMcUg72K.js → pascal-BgMr6XpT.js} +0 -0
  142. /package/dist/apps/chat-ui/assets/{perl-DoVTbnzt.js → perl-D6YJObi_.js} +0 -0
  143. /package/dist/apps/chat-ui/assets/{pig-CULXT1YV.js → pig-nx7uchs8.js} +0 -0
  144. /package/dist/apps/chat-ui/assets/{powershell-Cv5Uhf6b.js → powershell-B4IPkVxR.js} +0 -0
  145. /package/dist/apps/chat-ui/assets/{properties-CQ1C2P-M.js → properties-CoavQdLC.js} +0 -0
  146. /package/dist/apps/chat-ui/assets/{protobuf-SRlvzrl6.js → protobuf-D5EWhcmc.js} +0 -0
  147. /package/dist/apps/chat-ui/assets/{puppet-ClSqCGj6.js → puppet-B_0GFuyD.js} +0 -0
  148. /package/dist/apps/chat-ui/assets/{python-C2_X1GpX.js → python-Cs7sNzy_.js} +0 -0
  149. /package/dist/apps/chat-ui/assets/{q-B_6Gdyzl.js → q-BIB9pPtI.js} +0 -0
  150. /package/dist/apps/chat-ui/assets/{r-BD07NGED.js → r-CN5s4f3o.js} +0 -0
  151. /package/dist/apps/chat-ui/assets/{rpm-CRu5Z2Jl.js → rpm-Ct_Ck8mQ.js} +0 -0
  152. /package/dist/apps/chat-ui/assets/{ruby-dZPnOz8h.js → ruby-BVPradRk.js} +0 -0
  153. /package/dist/apps/chat-ui/assets/{sas-S2t8_sDI.js → sas-DN4j74IF.js} +0 -0
  154. /package/dist/apps/chat-ui/assets/{scheme-WcyFWLW2.js → scheme-CvNgHAnh.js} +0 -0
  155. /package/dist/apps/chat-ui/assets/{shell-DUelnYSh.js → shell-BjiMLAaM.js} +0 -0
  156. /package/dist/apps/chat-ui/assets/{sieve-jDjlVhNh.js → sieve-C2U1O5Z4.js} +0 -0
  157. /package/dist/apps/chat-ui/assets/{simple-mode-CL04yRVp.js → simple-mode-DnMbQuKW.js} +0 -0
  158. /package/dist/apps/chat-ui/assets/{smalltalk-ddWDYy10.js → smalltalk-DkYwYufV.js} +0 -0
  159. /package/dist/apps/chat-ui/assets/{solr-C7rQhLuW.js → solr-BopnSD-v.js} +0 -0
  160. /package/dist/apps/chat-ui/assets/{sparql--fPCCgVd.js → sparql-Cpg3YQfd.js} +0 -0
  161. /package/dist/apps/chat-ui/assets/{spreadsheet-DjthqD5G.js → spreadsheet-kRxtVt9J.js} +0 -0
  162. /package/dist/apps/chat-ui/assets/{sql-D_dieYbr.js → sql-DYI2GwJR.js} +0 -0
  163. /package/dist/apps/chat-ui/assets/{stex-rHcFYcA0.js → stex-BCRT8IJ3.js} +0 -0
  164. /package/dist/apps/chat-ui/assets/{stylus-DxF70RNr.js → stylus-CARoeVE9.js} +0 -0
  165. /package/dist/apps/chat-ui/assets/{swift-T0hDoOb-.js → swift-DKNaLAK6.js} +0 -0
  166. /package/dist/apps/chat-ui/assets/{tcl-Dlzy1mPk.js → tcl-CQyXkgMH.js} +0 -0
  167. /package/dist/apps/chat-ui/assets/{textile-Dy5rFZe5.js → textile-Yg_UWn-t.js} +0 -0
  168. /package/dist/apps/chat-ui/assets/{tiddlywiki-DQP1OymS.js → tiddlywiki-dqVbkfX4.js} +0 -0
  169. /package/dist/apps/chat-ui/assets/{tiki-0vOj3DB2.js → tiki-CC_ic8g0.js} +0 -0
  170. /package/dist/apps/chat-ui/assets/{toml-DEltN0lI.js → toml-B7gGzVkJ.js} +0 -0
  171. /package/dist/apps/chat-ui/assets/{troff-CRbBpEqY.js → troff-Bq3z6oAu.js} +0 -0
  172. /package/dist/apps/chat-ui/assets/{ttcn-M5q1nLKg.js → ttcn-GvRgs2AT.js} +0 -0
  173. /package/dist/apps/chat-ui/assets/{ttcn-cfg-Rmw9NWq9.js → ttcn-cfg-CGCXz7Vo.js} +0 -0
  174. /package/dist/apps/chat-ui/assets/{turtle-BCDWhJK0.js → turtle-CwIpz2yy.js} +0 -0
  175. /package/dist/apps/chat-ui/assets/{vb-QQ7LGlOz.js → vb-BmcHUM2C.js} +0 -0
  176. /package/dist/apps/chat-ui/assets/{vbscript-BiSEdUzz.js → vbscript-Cs9dylre.js} +0 -0
  177. /package/dist/apps/chat-ui/assets/{velocity-CzMg5_6w.js → velocity-CBWU0VCy.js} +0 -0
  178. /package/dist/apps/chat-ui/assets/{verilog-BJOO83gk.js → verilog-DVCHmufx.js} +0 -0
  179. /package/dist/apps/chat-ui/assets/{vhdl-ed4zAZAA.js → vhdl-BGDk4f1d.js} +0 -0
  180. /package/dist/apps/chat-ui/assets/{webidl-Ddy6hbV6.js → webidl-egXQEWlC.js} +0 -0
  181. /package/dist/apps/chat-ui/assets/{xquery-Bw1zwhh6.js → xquery-5f0hn7cg.js} +0 -0
  182. /package/dist/apps/chat-ui/assets/{yacas-DZdTXy3s.js → yacas-DNs9XkmQ.js} +0 -0
  183. /package/dist/apps/chat-ui/assets/{z80-DMG02_YV.js → z80-B7Dfb4UO.js} +0 -0
@@ -0,0 +1,438 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-BQK_wUMR.js","assets/dist-D1KyNDg5.js","assets/dist-QQuDy4KA.js","assets/dist-Dtv5S2qd.js","assets/dist-DKoyMSNr.js","assets/dist-DT9QkgTN.js","assets/dist-DotDq_kD.js","assets/dist-B07Whoa6.js","assets/dist-D68eIqmX.js","assets/dist-De6eI3Cr.js","assets/dist-BACxmdQ2.js","assets/dist-B5ZAfwf5.js","assets/dist-TG9QLHKj.js","assets/dist-DLMjd26T.js","assets/dist-BkUONE3N.js","assets/dist-B5PTVnox.js","assets/dockerfile-CJb2sekW.js","assets/simple-mode-DnMbQuKW.js","assets/factor-B2EMQZkP.js","assets/nsis-DOo3SJmd.js","assets/pug-QU72BPAa.js","assets/javascript-C5pDVaoP.js","assets/dist-BFlEjppv.js","assets/dist-CigbyRK5.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as D,Pt as O,Q as k,R as A,Rt as j,S as ee,St as M,T as te,Tt as ne,U as re,V as ie,Vt as ae,W as oe,X as se,Y as ce,Z as le,_ as ue,_t as de,a as fe,at as pe,b as me,bt as he,c as ge,ct as _e,d as ve,dt as ye,et as be,f as xe,ft as Se,g as Ce,gt as we,h as Te,ht as Ee,i as De,it as Oe,j as ke,jt as Ae,k as je,kt as Me,l as N,lt as Ne,m as Pe,mt as Fe,n as Ie,nt as Le,o as Re,ot as ze,p as Be,pt as Ve,q as He,r as Ue,rt as We,s as Ge,st as Ke,t as qe,tt as Je,u as Ye,ut as Xe,v as Ze,vt as Qe,w as $e,wt as et,x as tt,xt as nt,y as rt,yt as it,z as at,zt as ot}from"./dist-D1KyNDg5.js";var st=Object.create,ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,ut=Object.getOwnPropertyNames,dt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty,pt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),mt=(e,t)=>{let n={};for(var r in e)ct(n,r,{get:e[r],enumerable:!0});return t||ct(n,Symbol.toStringTag,{value:`Module`}),n},ht=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ut(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ft.call(e,s)&&s!==n&&ct(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=lt(t,s))||r.enumerable});return e},gt=(e,t,n)=>(n=e==null?{}:st(dt(e)),ht(t||!e||!e.__esModule?ct(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var _t=pt(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=he&&e[he]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;ge[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),ge[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=ye,this.updater=n||_e}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=ye,this.updater=n||_e}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ie:return`Fragment`;case oe:return`Profiler`;case ae:return`StrictMode`;case ue:return`Suspense`;case de:return`SuspenseList`;case me:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case re:return`Portal`;case ce:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case le:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case fe:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case pe:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===ie)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===pe)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=Ce.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(we.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){Ee||(Ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return Oe[e]||(Oe[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:ne,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===pe&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===ne}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case ne:case re:s=!0;break;case pe:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return xe(a)?(n=``,c!=null&&(n=c.replace(Me,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Me,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,xe(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(je||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),je=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
+
4
+ Your code should look like:
5
+ const MyComponent = lazy(() => import('./MyComponent'))
6
+
7
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
+
9
+ Your code should look like:
10
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function O(){var e=Ce.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
11
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
12
+ 2. You might be breaking the Rules of Hooks
13
+ 3. You might have more than one copy of React in the same app
14
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){Ce.asyncTransitions--}function A(e){if(Pe===null)try{var n=(`require`+Math.random()).slice(0,7);Pe=(t&&t[n]).call(t,`timers`).setImmediate}catch{Pe=function(e){!1===Ne&&(Ne=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Pe(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function ee(e,t){t!==Fe-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Fe=t}function M(e,t,n){var r=Ce.actQueue;if(r!==null)if(r.length!==0)try{te(r),A(function(){return M(e,t,n)});return}catch(e){Ce.thrownErrors.push(e)}else Ce.actQueue=null;0<Ce.thrownErrors.length?(r=j(Ce.thrownErrors),Ce.thrownErrors.length=0,n(r)):t(e)}function te(e){if(!Le){Le=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{Ce.didUsePromise=!1;var r=n(!1);if(r!==null){if(Ce.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),Ce.thrownErrors.push(n)}finally{Le=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),ae=Symbol.for(`react.strict_mode`),oe=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),ce=Symbol.for(`react.context`),le=Symbol.for(`react.forward_ref`),ue=Symbol.for(`react.suspense`),de=Symbol.for(`react.suspense_list`),fe=Symbol.for(`react.memo`),pe=Symbol.for(`react.lazy`),me=Symbol.for(`react.activity`),he=Symbol.iterator,ge={},_e={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},ve=Object.assign,ye={};Object.freeze(ye),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var be={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(ze in be)be.hasOwnProperty(ze)&&n(ze,be[ze]);o.prototype=a.prototype,be=s.prototype=new o,be.constructor=s,ve(be,a.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,Se=Symbol.for(`react.client.reference`),Ce={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},we=Object.prototype.hasOwnProperty,Te=console.createTask?console.createTask:function(){return null};be={react_stack_bottom_frame:function(e){return e()}};var Ee,De,Oe={},ke=be.react_stack_bottom_frame.bind(be,m)(),Ae=Te(f(m)),je=!1,Me=/\/+/g,N=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ne=!1,Pe=null,Fe=0,Ie=!1,Le=!1,Re=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;be=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var ze={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=me,e.Children=ze,e.Component=a,e.Fragment=ie,e.Profiler=oe,e.PureComponent=s,e.StrictMode=ae,e.Suspense=ue,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce,e.__COMPILER_RUNTIME=be,e.act=function(e){var t=Ce.actQueue,n=Fe;Fe++;var r=Ce.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){Ce.thrownErrors.push(e)}if(0<Ce.thrownErrors.length)throw ee(t,n),e=j(Ce.thrownErrors),Ce.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Re(function(){i||Ie||(Ie=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(ee(t,n),n===0){try{te(r),A(function(){return M(i,e,a)})}catch(e){Ce.thrownErrors.push(e)}if(0<Ce.thrownErrors.length){var o=j(Ce.thrownErrors);Ce.thrownErrors.length=0,a(o)}}else e(i)},function(e){ee(t,n),0<Ce.thrownErrors.length?(e=j(Ce.thrownErrors),Ce.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(ee(t,n),n===0&&(te(r),r.length!==0&&Re(function(){i||Ie||(Ie=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ce.actQueue=null),0<Ce.thrownErrors.length)throw e=j(Ce.thrownErrors),Ce.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(Ce.actQueue=r,A(function(){return M(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=Ce.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=ve({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(we.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!we.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:ce,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:se,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in De||!(`__self`in t)||`key`in t||(De=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)we.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>Ce.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):ke,c?Te(f(e)):Ae)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===fe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:le,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:pe,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:fe,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=Ce.T,n={};n._updatedFibers=new Set,Ce.T=n;try{var r=e(),i=Ce.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(Ce.asyncTransitions++,r.then(k,k),r.then(c,N))}catch(e){N(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),Ce.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===se&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.5`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),vt=pt(((e,t)=>{t.exports=_t()})),yt=pt((e=>{(function(){function t(){if(x=!1,T){var t=e.unstable_now();O=t;var n=!0;try{a:{y=!1,b&&(b=!1,C(E),E=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?k():T=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y)if(r(p)!==null)y=!0,T||(T=!0,k());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}function c(){return x?!0:!(e.unstable_now()-O<D)}function l(t,n){E=S(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout==`function`?setTimeout:null,C=typeof clearTimeout==`function`?clearTimeout:null,w=typeof setImmediate<`u`?setImmediate:null,T=!1,E=-1,D=5,O=-1;if(typeof w==`function`)var k=function(){w(t)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=t,k=function(){j.postMessage(null)}}else k=function(){S(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):D=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(C(E),E=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,T||(T=!0,k()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),bt=pt(((e,t)=>{t.exports=yt()})),xt=pt((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=d.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
15
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
16
+ 2. You might be breaking the Rules of Hooks
17
+ 3. You might have more than one copy of React in the same app
18
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=vt(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=d.T,n=l.p;try{if(d.T=null,l.p=2,e)return e()}finally{d.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.5`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),St=pt(((e,t)=>{t.exports=xt()})),Ct=pt((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Kf(e)?e.slice():Of({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Kf(e)?e.slice():Of({},e);return r+1===t.length?(o[n[r]]=o[a],Kf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Kf(e)?e.slice():Of({},e);return n+1===t.length?(Kf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function p(e,t,n,r){return new hr(e,t,n,r)}function m(e,t){e.context===jg&&(Qd(e.current,2,t,e,null,null),nl())}function h(e,t){if(Mg!==null){var n=t.staleFamilies;t=t.updatedFamilies,Ol(),mr(e.current,t,n),nl()}}function g(e){Mg=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(v(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function S(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return x(i),e;if(a===r)return x(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}function w(e){return typeof e!=`object`||!e?null:(e=Wf&&e[Wf]||e[`@@iterator`],typeof e==`function`?e:null)}function T(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Gf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Mf:return`Fragment`;case Pf:return`Profiler`;case Nf:return`StrictMode`;case Rf:return`Suspense`;case zf:return`SuspenseList`;case Hf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case jf:return`Portal`;case If:return e.displayName||`Context`;case Ff:return(e._context.displayName||`Context`)+`.Consumer`;case Lf:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Bf:return t=e.displayName||null,t===null?T(e.type)||`Memo`:t;case Vf:t=e._payload,e=e._init;try{return T(e(t))}catch{}}return null}function E(e){return typeof e.tag==`number`?D(e):typeof e.name==`string`?e.name:null}function D(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return T(t);case 8:return t===Nf?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return D(e.return)}return null}function O(e){return{current:e}}function k(e,t){0>Zf?console.error(`Unexpected pop.`):(t!==Xf[Zf]&&console.error(`Unexpected Fiber popped.`),e.current=Yf[Zf],Yf[Zf]=null,Xf[Zf]=null,Zf--)}function A(e,t,n){Zf++,Yf[Zf]=e.current,Xf[Zf]=n,e.current=t}function j(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ee(e,t){A(ep,t,e),A($f,e,e),A(Qf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Ru(t):XS;break;default:if(n=t.tagName,t=t.namespaceURI)t=Ru(t),t=zu(t,n);else switch(n){case`svg`:t=ZS;break;case`math`:t=QS;break;default:t=XS}}n=n.toLowerCase(),n=zt(null,n),n={context:t,ancestorInfo:n},k(Qf,e),A(Qf,n,e)}function M(e){k(Qf,e),k($f,e),k(ep,e)}function te(){return j(Qf.current)}function ne(e){e.memoizedState!==null&&A(tp,e,e);var t=j(Qf.current),n=e.type,r=zu(t.context,n);n=zt(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(A($f,e,e),A(Qf,r,e))}function re(e){$f.current===e&&(k(Qf,e),k($f,e)),tp.current===e&&(k(tp,e),DC._currentValue=EC)}function ie(){}function ae(){if(np===0){rp=console.log,ip=console.info,ap=console.warn,op=console.error,sp=console.group,cp=console.groupCollapsed,lp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}np++}function oe(){if(np--,np===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Of({},e,{value:rp}),info:Of({},e,{value:ip}),warn:Of({},e,{value:ap}),error:Of({},e,{value:op}),group:Of({},e,{value:sp}),groupCollapsed:Of({},e,{value:cp}),groupEnd:Of({},e,{value:lp})})}0>np&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function se(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
19
+ `)&&(e=e.slice(29)),t=e.indexOf(`
20
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
21
+ `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function ce(e){if(up===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);up=t&&t[1]||``,dp=-1<e.stack.indexOf(`
22
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
23
+ `+up+e+dp}function le(e,t){if(!e||fp)return``;var n=pp.get(e);if(n!==void 0)return n;fp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=H.H,H.H=null,ae();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
24
+ `),u=c.split(`
25
+ `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
26
+ `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&pp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{fp=!1,H.H=r,oe(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?ce(l):``,typeof e==`function`&&pp.set(e,l),l}function ue(e,t){switch(e.tag){case 26:case 27:case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return e.child!==t&&t!==null?ce(`Suspense Fallback`):ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return ce(`Activity`);default:return``}}function de(e){try{var t=``,n=null;do{t+=ue(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=se(l),d=u.lastIndexOf(`
27
+ `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
28
+ `+f;break a}}p=ce(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
29
+ Error generating stack: `+e.message+`
30
+ `+e.stack}}function fe(e){return(e=e?e.displayName||e.name:``)?ce(e):``}function pe(){if(mp===null)return null;var e=mp._debugOwner;return e==null?null:E(e)}function me(){if(mp===null)return``;var e=mp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ce(e.type);break;case 13:t+=ce(`Suspense`);break;case 19:t+=ce(`SuspenseList`);break;case 31:t+=ce(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=fe(e.type));break;case 11:e._debugOwner||t!==``||(t+=fe(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=se(r);i!==``&&(t+=`
31
+ `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
32
+ `+se(a))}else break;var o=t}catch(e){o=`
33
+ Error generating stack: `+e.message+`
34
+ `+e.stack}return o}function he(e,t,n,r,i,a,o){var s=mp;ge(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{ge(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function ge(e){H.getCurrentStack=e===null?null:me,hp=!1,mp=e}function _e(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function ve(e){try{return ye(e),!1}catch{return!0}}function ye(e){return``+e}function be(e,t){if(ve(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,_e(e)),ye(e)}function xe(e,t){if(ve(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,_e(e)),ye(e)}function Se(e){if(ve(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,_e(e)),ye(e)}function Ce(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Ap=t.inject(e),jp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function we(e){if(typeof Op==`function`&&kp(e),jp&&typeof jp.setStrictMode==`function`)try{jp.setStrictMode(Ap,e)}catch(e){Mp||(Mp=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Te(e){return e>>>=0,e===0?32:31-(Fp(e)/Ip|0)|0}function Ee(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function De(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ee(n))):i=Ee(o):i=Ee(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ee(n))):i=Ee(o)):i=Ee(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Oe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Ae(){var e=zp;return zp<<=1,!(zp&62914560)&&(zp=4194304),e}function je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Pp(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ne(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Fe(e,t){var n=t&-t;return n=n&42?1:Ie(n),(n&(e.suspendedLanes|t))===0?n:0}function Ie(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 Le(e,t,n){if(Np)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Pp(n),i=1<<r;e[r].add(t),n&=~i}}function Re(e,t){if(Np)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Pp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function ze(e){return e&=-e,Bp!==0&&Bp<e?Vp!==0&&Vp<e?e&134217727?Hp:Up:Vp:Bp}function Be(){var e=qf.p;return e===0?(e=window.event,e===void 0?Hp:uf(e.type)):e}function Ve(e,t){var n=qf.p;try{return qf.p=e,t()}finally{qf.p=n}}function He(e){delete e[Gp],delete e[Kp],delete e[Jp],delete e[Yp],delete e[Xp]}function Ue(e){var t=e[Gp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qp]||n[Gp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yd(e);e!==null;){if(n=e[Gp])return n;e=yd(e)}return t}e=n,n=e.parentNode}return null}function We(e){if(e=e[Gp]||e[qp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ge(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function Ke(e){var t=e[Zp];return t||=e[Zp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function qe(e){e[Qp]=!0}function Je(e,t){Ye(e,t),Ye(e+`Capture`,t)}function Ye(e,t){em[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),em[e]=t;var n=e.toLowerCase();for(tm[n]=e,e===`onDoubleClick`&&(tm.ondblclick=e),e=0;e<t.length;e++)$p.add(t[e])}function Xe(e,t){nm[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ze(e){return gp.call(am,e)?!0:gp.call(im,e)?!1:rm.test(e)?am[e]=!0:(im[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Qe(e,t,n){if(Ze(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n?!0:(be(n,t),e===``+n?n:e)}}function $e(e,t,n){if(Ze(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}be(n,t),e.setAttribute(t,``+n)}}function et(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}be(n,t),e.setAttribute(t,``+n)}}function tt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}be(r,n),e.setAttributeNS(t,n,``+r)}}function nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return Se(e),e;default:return``}}function rt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function it(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){Se(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){Se(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function at(e){if(!e._valueTracker){var t=rt(e)?`checked`:`value`;e._valueTracker=it(e,t,``+e[t])}}function ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=rt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function st(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ct(e){return e.replace(om,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function lt(e,t){t.checked===void 0||t.defaultChecked===void 0||cm||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,pe()||`A component`,t.type),cm=!0),t.value===void 0||t.defaultValue===void 0||sm||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,pe()||`A component`,t.type),sm=!0)}function ut(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(be(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+nt(t)):e.value!==``+nt(t)&&(e.value=``+nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):ft(e,o,nt(n)):ft(e,o,nt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(be(s,`name`),e.name=``+nt(s)):e.removeAttribute(`name`)}function dt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(be(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){at(e);return}n=n==null?``:``+nt(n),t=t==null?n:``+nt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(be(o,`name`),e.name=o),at(e)}function ft(e,t,n){t===`number`&&st(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function pt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Ef.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||um||(um=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||dm||(dm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||lm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),lm=!0)}function mt(){var e=pe();return e?`
35
+
36
+ Check the render method of \``+e+"`.":``}function ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+nt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gt(e,t){for(e=0;e<pm.length;e++){var n=pm[e];if(t[n]!=null){var r=Kf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,mt()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,mt())}}t.value===void 0||t.defaultValue===void 0||fm||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),fm=!0)}function _t(e,t){t.value===void 0||t.defaultValue===void 0||mm||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,pe()||`A component`),mm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function yt(e,t,n){if(t!=null&&(t=``+nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+nt(n)}function xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Kf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),at(e)}function Ct(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ct(e.children[0],t):e}function wt(e){return` `+` `.repeat(e)}function Tt(e){return`+ `+` `.repeat(e)}function Et(e){return`- `+` `.repeat(e)}function Dt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ot(e,t){return hm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function kt(e,t,n){var r=120-2*n;if(t===null)return Tt(n)+Ot(e,r)+`
37
+ `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Tt(n)+Ot(e,r)+`
38
+ `+Et(n)+Ot(t,r)+`
39
+ `}return wt(n)+Ot(e,r)+`
40
+ `}function At(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function P(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Kf(e))return`[...]`;if(e.$$typeof===Af)return(t=T(e.type))?`<`+t+`>`:`<...>`;var n=At(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=P(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function jt(e,t){return typeof e!=`string`||hm.test(e)?`{`+P(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function Mt(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=jt(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
41
+ `:0<r?n+`<`+e+` `+i.join(` `)+`>
42
+ `:n+`<`+e+`
43
+ `+n+` `+i.join(`
44
+ `+n+` `)+`
45
+ `+n+`>
46
+ `}function Nt(e,t,n){var r=``,i=Of({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=P(e[a],o);t.hasOwnProperty(a)?(o=P(t[a],o),r+=Tt(n)+a+`: `+s+`
47
+ `,r+=Et(n)+a+`: `+o+`
48
+ `):r+=Tt(n)+a+`: `+s+`
49
+ `}for(var c in i)i.hasOwnProperty(c)&&(e=P(i[c],120-2*n-c.length-2),r+=Et(n)+c+`: `+e+`
50
+ `);return r}function Pt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=Mt(e,t,wt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=jt(l,s);s=jt(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&At(l)===`Object`&&At(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=wt(r+1)+o+`={{
51
+ `+Nt(l,c,r+2)+wt(r+1)+`}}
52
+ `:(i+=Tt(r+1)+o+`=`+u+`
53
+ `,i+=Et(r+1)+o+`=`+s+`
54
+ `)}else i+=wt(r+1)+o+`=`+jt(t[o],s)+`
55
+ `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=Et(r+1)+e+`=`+jt(n[e],t)+`
56
+ `}}),i=i===``?wt(r)+`<`+e+`>
57
+ `:wt(r)+`<`+e+`
58
+ `+i+wt(r)+`>
59
+ `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=kt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+kt(``+t,null,r+1):i+kt(``+t,void 0,r+1)),i}function Ft(e,t){var n=Dt(e);if(n===null){for(n=``,e=e.child;e;)n+=Ft(e,t),e=e.sibling;return n}return wt(t)+`<`+n+`>
60
+ `}function It(e,t){var n=Ct(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return wt(t)+`...
61
+ `+It(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=wt(t)+`<`+a+`>
62
+ `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=kt(i,e.serverProps,t),t++;else if(a=Dt(e.fiber),a!==null)if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=jt(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=wt(r)+`<`+a+s+`>
63
+ `,t++}else e.serverProps===null?(r=Mt(a,i,Tt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Pt(a,i,e.serverProps,t),t++);var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=It(o,t),a++):l+=Ft(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=wt(t)+`...
64
+ `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(Et(t)+Ot(a,120-2*t)+`
65
+ `):l+Mt(a.type,a.props,Et(t));return n+r+l}function Lt(e){try{return`
66
+
67
+ `+It(e,0)}catch{return``}}function Rt(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Lt(i).replaceAll(/^[+-]/gm,`>`)}function zt(e,t){var n=Of({},e||bm),r={tag:t};return _m.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),vm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),gm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Bt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return ym.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Vt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Ht(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Ut(e,t){t||=bm;var n=t.current;if(t=(n=Bt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Vt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,xm[t])return!1;xm[t]=!0;var i=(t=mp)?Ht(t.return,r):null,a=t!==null&&i!==null?Rt(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
68
+ This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
69
+ This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||he(i,function(){console.error(`<%s> cannot contain a nested %s.
70
+ See this log for the ancestor stack trace.`,r,o)})),!1}function Wt(e,t,n){if(n||Bt(`#text`,t,!1))return!0;if(n=`#text|`+t,xm[n])return!1;xm[n]=!0;var r=(n=mp)?Ht(n,t):null;return n=n!==null&&r!==null?Rt(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
71
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
72
+ This will cause a hydration error.%s`,t,n),!1}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Kt(e){return e.replace(Dm,function(e,t){return t.toUpperCase()})}function qt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?km.hasOwnProperty(t)&&km[t]||(km[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Kt(t.replace(Em,`ms-`)))):Tm.test(t)?km.hasOwnProperty(t)&&km[t]||(km[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Om.test(n)||Am.hasOwnProperty(n)&&Am[n]||(Am[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Om,``))),typeof n==`number`&&(isNaN(n)?jm||(jm=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Mm||(Mm=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Nm.has(t)?t===`float`?e.cssFloat=n:(xe(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=Sm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=Sm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=Sm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&qt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&qt(e,r,t[r])}function Yt(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}}function Xt(e){return Im.get(e)||e}function Zt(e,t){if(gp.call(zm,t)&&zm[t])return!0;if(Vm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Rm.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),zm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),zm[t]=!0}if(Bm.test(t)){if(e=t.toLowerCase(),e=Rm.hasOwnProperty(e)?e:null,e==null)return zm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),zm[t]=!0)}return!0}function Qt(e,t){var n=[],r;for(r in t)Zt(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function $t(e,t,n,r){if(gp.call(Um,t)&&Um[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Um[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Um[t]=!0;if(Wm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Um[t]=!0}else if(Wm.test(t))return Gm.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Um[t]=!0;if(Km.test(t)||qm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Um[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Um[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Um[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Um[t]=!0;if(Lm.hasOwnProperty(i)){if(i=Lm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Um[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Um[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`: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`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
73
+
74
+ If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
75
+
76
+ If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Um[t]=!0)}case`function`:case`symbol`:return Um[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`: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`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Um[t]=!0}}return!0}function en(e,t,n){var r=[],i;for(i in t)$t(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function tn(e){return Jm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function nn(){}function rn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function an(e){var t=We(e);if(t&&(e=t.stateNode)){var n=e[Kp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(ut(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(be(t,`name`),n=n.querySelectorAll(`input[name="`+ct(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Kp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ut(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ot(r)}break a;case`textarea`:yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&ht(e,!!n.multiple,t,!1)}}}function on(e,t,n){if(Qm)return e(t,n);Qm=!0;try{return e(t)}finally{if(Qm=!1,(Xm!==null||Zm!==null)&&(nl(),Xm&&(t=Xm,e=Zm,Zm=Xm=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Kp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function F(){if(ih)return ih;var e,t=rh,n=t.length,r,i=`value`in nh?nh.value:nh.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return ih=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return Of(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}function fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vh[e])?!!t[e]:!1}function pn(){return fn}function mn(e,t){switch(e){case`keyup`:return Th.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Eh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function gn(e,t){switch(e){case`compositionend`:return hn(t);case`keypress`:return t.which===jh?(Nh=!0,Mh):null;case`textInput`:return e=t.data,e===Mh&&Nh?null:e;default:return null}}function _n(e,t){if(Ph)return e===`compositionend`||!Dh&&mn(e,t)?(e=F(),ih=rh=nh=null,Ph=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ah&&t.locale!==`ko`?null:t.data;default:return null}}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Fh[e.type]:t===`textarea`}function yn(e){if(!$m)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function bn(e,t,n,r){Xm?Zm?Zm.push(r):Zm=[r]:Xm=r,t=du(t,`onChange`),0<t.length&&(n=new ah(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function xn(e){iu(e,0)}function Sn(e){if(ot(Ge(e)))return e}function Cn(e,t){if(e===`change`)return t}function wn(){Ih&&(Ih.detachEvent(`onpropertychange`,Tn),Lh=Ih=null)}function Tn(e){if(e.propertyName===`value`&&Sn(Lh)){var t=[];bn(t,Lh,e,rn(e)),on(xn,t)}}function En(e,t,n){e===`focusin`?(wn(),Ih=t,Lh=n,Ih.attachEvent(`onpropertychange`,Tn)):e===`focusout`&&wn()}function Dn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sn(Lh)}function On(e,t){if(e===`click`)return Sn(t)}function kn(e,t){if(e===`input`||e===`change`)return Sn(t)}function An(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function jn(e,t){if(zh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!gp.call(t,i)||!zh(e[i],t[i]))return!1}return!0}function Mn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nn(e,t){var n=Mn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mn(n)}}function Pn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=st(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=st(e.document)}return t}function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Ln(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wh||Vh==null||Vh!==st(r)||(r=Vh,`selectionStart`in r&&In(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uh&&jn(Uh,r)||(Uh=r,r=du(Hh,`onSelect`),0<r.length&&(t=new ah(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vh)))}function Rn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function zn(e){if(Kh[e])return Kh[e];if(!Gh[e])return e;var t=Gh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qh)return Kh[e]=t[n];return e}function Bn(e,t){tg.set(e,t),Je(t,[e])}function I(e){for(var t=lg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(Kf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==lg&&t!==fg)return ug;t=fg}else return ug;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==lg&&t!==dg)return ug;t=dg}}return t}function Vn(e,t,n,r){for(var i in e)gp.call(e,i)&&i[0]!==`_`&&Hn(i,e[i],t,n,r)}function Hn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===Af){var a=T(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Hn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Kf(t.children)||0<t.children.length)&&(e=!0):gp.call(t,l)&&l[0]!==`_`&&Hn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=I(t),l===dg||l===lg){t=JSON.stringify(t);break}else if(l===fg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Hn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Hn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Hn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Vn(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===cg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function Un(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([pg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([pg+i,`…`],[mg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===Af){if(o.type===s.type&&o.key===s.key){o=T(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([pg+i,o],[mg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[hg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Un(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([hg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Hn(a,o,n,r,pg),Hn(a,s,n,r,mg)}i=!1}}else n.push([mg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Wn(e){yg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Gn(e,t,n,r){gg&&(Sg.start=t,Sg.end=n,xg.color=`warning`,xg.tooltipText=r,xg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Sg)):performance.measure(r,Sg))}function Kn(e,t,n){Gn(e,t,n,`Reconnect`)}function qn(e,t,n,r,i){var a=D(e);if(a!==null&&gg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Cg],l=Un(o.memoizedProps,l,c,0),1<c.length&&(l&&!bg&&(o.lanes&i)===0&&100<e.actualDuration?(bg=!0,c[0]=Tg,xg.color=`warning`,xg.tooltipText=wg):(xg.color=r,xg.tooltipText=a),xg.properties=c,Sg.start=t,Sg.end=n,s==null?performance.measure(`​`+a,Sg):s.run(performance.measure.bind(performance,`​`+a,Sg)))):s==null?console.timeStamp(a,t,n,_g,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,_g,void 0,r))}}function Jn(e,t,n,r){if(gg){var i=D(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Hn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Vn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:_g,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function Yn(e,t,n,r,i){if(i!==null){if(gg){var a=D(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Hn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Vn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:_g,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=D(e),a!==null&&gg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,_g,void 0,i)):console.timeStamp(a,t,n,_g,void 0,i))}function Xn(e,t,n,r){if(gg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,yg,vg,i)):console.timeStamp(n,e,t,yg,vg,i)}}function Zn(e,t,n,r){!gg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,yg,vg,n)):console.timeStamp(`Prewarm`,e,t,yg,vg,n))}function Qn(e,t,n,r){!gg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,yg,vg,n)):console.timeStamp(`Suspended`,e,t,yg,vg,n))}function $n(e,t,n,r,i,a){if(gg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:yg,trackGroup:vg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function er(e,t,n,r){!gg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,yg,vg,`error`)):console.timeStamp(`Errored`,e,t,yg,vg,`error`))}function tr(e,t,n,r){!gg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,yg,vg,`secondary-light`)):console.timeStamp(n,e,t,yg,vg,`secondary-light`))}function nr(e,t,n,r,i){if(gg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:yg,trackGroup:vg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function rr(e,t,n){!gg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,yg,vg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,yg,vg,`secondary-dark`))}function ir(){for(var e=kg,t=Ag=kg=0;t<e;){var n=Og[t];Og[t++]=null;var r=Og[t];Og[t++]=null;var i=Og[t];Og[t++]=null;var a=Og[t];if(Og[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&cr(n,i,a)}}function ar(e,t,n,r){Og[kg++]=e,Og[kg++]=t,Og[kg++]=n,Og[kg++]=r,Ag|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function or(e,t,n,r){return ar(e,t,n,r),lr(e)}function sr(e,t){return ar(e,null,null,t),lr(e)}function cr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Eg||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Pp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function lr(e){if($x>Qx)throw iS=$x=0,aS=eS=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);iS>rS&&(iS=0,aS=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Bl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Bl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function ur(e){if(Mg===null)return e;var t=Mg(e);return t===void 0?e:t.current}function dr(e){if(Mg===null)return e;var t=Mg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=ur(e.render),e.render!==t)?(t={$$typeof:Lf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function fr(e,t){if(Mg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Vf)&&(r=!0);break;case 11:(i===Lf||i===Vf)&&(r=!0);break;case 14:case 15:(i===Bf||i===Vf)&&(r=!0);break;default:return!1}return!!(r&&(e=Mg(n),e!==void 0&&e===Mg(t)))}function pr(e){Mg!==null&&typeof WeakSet==`function`&&(Ng===null&&(Ng=new WeakSet),Ng.add(e))}function mr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Mg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Mg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Ng!==null&&(Ng.has(e)||i!==null&&Ng.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=sr(e,2),i!==null&&Zc(i,e,2)),a===null||r||mr(a,t,n),o===null)break;e=o}while(1)}function hr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Bg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function gr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _r(e,t){var n=e.alternate;switch(n===null?(n=p(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=ur(e.type);break;case 1:n.type=ur(e.type);break;case 11:n.type=dr(e.type)}return n}function vr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function yr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)gr(e)&&(o=1),s=ur(s);else if(typeof e==`string`)o=te(),o=Hd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Hf:return t=p(31,n,t,i),t.elementType=Hf,t.lanes=a,t;case Mf:return xr(n.children,i,a,t);case Nf:o=8,i|=Lg,i|=Rg;break;case Pf:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=p(12,e,t,r|Ig),t.elementType=Pf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rf:return t=p(13,n,t,i),t.elementType=Rf,t.lanes=a,t;case zf:return t=p(19,n,t,i),t.elementType=zf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case If:o=10;break a;case Ff:o=9;break a;case Lf:o=11,s=dr(s);break a;case Bf:o=14;break a;case Vf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Kf(e)?n=`array`:e!==void 0&&e.$$typeof===Af?(n=`<`+(T(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?E(r):null)&&(s+=`
77
+
78
+ Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=p(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function br(e,t,n){return t=yr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function xr(e,t,n,r){return e=p(7,e,r,t),e.lanes=n,e}function Sr(e,t,n){return e=p(6,e,null,t),e.lanes=n,e}function Cr(e){var t=p(18,null,null,Pg);return t.stateNode=e,t}function wr(e,t,n){return t=p(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tr(e,t){if(typeof e==`object`&&e){var n=Hg.get(e);return n===void 0?(t={value:e,source:t,stack:de(t)},Hg.set(e,t),t):n}return{value:e,source:t,stack:de(t)}}function Er(e,t){Mr(),Ug[Wg++]=Kg,Ug[Wg++]=Gg,Gg=e,Kg=t}function Dr(e,t,n){Mr(),qg[Jg++]=Xg,qg[Jg++]=Zg,qg[Jg++]=Yg,Yg=e;var r=Xg;e=Zg;var i=32-Pp(r)-1;r&=~(1<<i),n+=1;var a=32-Pp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xg=1<<32-Pp(t)+i|n<<i|r,Zg=a+e}else Xg=1<<a|n<<i|r,Zg=e}function Or(e){Mr(),e.return!==null&&(Er(e,1),Dr(e,1,0))}function kr(e){for(;e===Gg;)Gg=Ug[--Wg],Ug[Wg]=null,Kg=Ug[--Wg],Ug[Wg]=null;for(;e===Yg;)Yg=qg[--Jg],qg[Jg]=null,Zg=qg[--Jg],qg[Jg]=null,Xg=qg[--Jg],qg[Jg]=null}function Ar(){return Mr(),Yg===null?null:{id:Xg,overflow:Zg}}function jr(e,t){Mr(),qg[Jg++]=Xg,qg[Jg++]=Zg,qg[Jg++]=Yg,Xg=t.id,Zg=t.overflow,Yg=e}function Mr(){e_||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Nr(e,t){if(e.return===null){if(n_===null)n_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(n_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);n_.distanceFromLeaf>t&&(n_.distanceFromLeaf=t)}return n_}var n=Nr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Pr(){e_&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function Fr(e,t){t_||(e=Nr(e,0),e.serverProps=null,t!==null&&(t=gd(t),e.serverTail.push(t)))}function Ir(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n=``,r=n_;throw r!==null&&(n_=null,n=Lt(r)),Hr(Tr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+n),e)),a_}function Lr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Gp]=e,t[Kp]=r,mu(n,r),n){case`dialog`:au(`cancel`,t),au(`close`,t);break;case`iframe`:case`object`:case`embed`:au(`load`,t);break;case`video`:case`audio`:for(n=0;n<yS.length;n++)au(yS[n],t);break;case`source`:au(`error`,t);break;case`img`:case`image`:case`link`:au(`error`,t),au(`load`,t);break;case`details`:au(`toggle`,t);break;case`input`:Xe(`input`,r),au(`invalid`,t),lt(t,r),dt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:pt(t,r);break;case`select`:Xe(`select`,r),au(`invalid`,t),gt(t,r);break;case`textarea`:Xe(`textarea`,r),au(`invalid`,t),_t(t,r),xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||bu(t.textContent,n)?(r.popover!=null&&(au(`beforetoggle`,t),au(`toggle`,t)),r.onScroll!=null&&au(`scroll`,t),r.onScrollEnd!=null&&au(`scrollend`,t),r.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||Ir(e,!0)}function Rr(e){for(Qg=e.return;Qg;)switch(Qg.tag){case 5:case 31:case 13:i_=!1;return;case 27:case 3:i_=!0;return;default:Qg=Qg.return}}function zr(e){if(e!==Qg)return!1;if(!e_)return Rr(e),e_=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Bu(e.type,e.memoizedProps)),n=!n),n&&$g){for(n=$g;n;){var r=Nr(e,0),i=gd(n);r.serverTail.push(i),n=i.type===`Suspense`?vd(n):hd(n.nextSibling)}Ir(e)}if(Rr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);$g=vd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);$g=vd(e)}else t===27?(t=$g,Zu(e.type)?(e=lC,lC=null,$g=e):$g=t):$g=Qg?hd(e.stateNode.nextSibling):null;return!0}function Br(){$g=Qg=null,t_=e_=!1}function Vr(){var e=r_;return e!==null&&(xx===null?xx=e:xx.push.apply(xx,e),r_=null),e}function Hr(e){r_===null?r_=[e]:r_.push(e)}function Ur(){var e=n_;if(e!==null){n_=null;for(var t=Lt(e);0<e.children.length;)e=e.children[0];he(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Wr(){u_=l_=null,d_=!1}function Gr(e,t,n){A(o_,t._currentValue,e),t._currentValue=n,A(s_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==c_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=c_}function Kr(e,t){e._currentValue=o_.current;var n=s_.current;k(s_,t),e._currentRenderer=n,k(o_,t)}function qr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Jr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),qr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),qr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Yr(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;zh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===tp.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[DC]:e.push(DC))}i=i.return}e!==null&&Jr(t,e,n,r),t.flags|=262144}function Xr(e){for(e=e.firstContext;e!==null;){if(!zh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zr(e){l_=e,u_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qr(e){return d_&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),ei(l_,e)}function $r(e,t){return l_===null&&Zr(e),ei(e,t)}function ei(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},u_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);u_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else u_=u_.next=t;return n}function ti(){return{controller:new f_,data:new Map,refCount:0}}function ni(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function ri(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&p_(m_,function(){e.controller.abort()})}function ii(e,t,n){e&127?0>M_&&(M_=g_(),N_=__(t),F_=t,n!=null&&(I_=D(n)),(Jb&(zb|Bb))!==Rb&&(A_=!0,P_=v_),e=Uu(),t=Hu(),e!==z_||t!==R_?z_=-1.1:t!==null&&(P_=v_),L_=e,R_=t):e&4194048&&0>U_&&(U_=g_(),G_=__(t),K_=t,n!=null&&(q_=D(n)),0>H_)&&(e=Uu(),t=Hu(),(e!==X_||t!==Y_)&&(X_=-1.1),J_=e,Y_=t)}function ai(e){if(0>M_){M_=g_(),N_=e._debugTask==null?null:e._debugTask,(Jb&(zb|Bb))!==Rb&&(P_=v_);var t=Uu(),n=Hu();t!==z_||n!==R_?z_=-1.1:n!==null&&(P_=v_),L_=t,R_=n}0>U_&&(U_=g_(),G_=e._debugTask==null?null:e._debugTask,0>H_)&&(e=Uu(),t=Hu(),(e!==X_||t!==Y_)&&(X_=-1.1),J_=e,Y_=t)}function oi(){var e=T_;return T_=0,e}function si(e){var t=T_;return T_=e,t}function ci(e){var t=T_;return T_+=e,t}function li(){O_=D_=-1.1}function ui(){var e=D_;return D_=-1.1,e}function di(e){0<=e&&(D_=e)}function fi(){var e=E_;return E_=-0,e}function pi(e){0<=e&&(E_=e)}function mi(){var e=k_;return k_=null,e}function hi(){var e=A_;return A_=!1,e}function gi(e){w_=g_(),0>e.actualStartTime&&(e.actualStartTime=w_)}function _i(e){if(0<=w_){var t=g_()-w_;e.actualDuration+=t,e.selfBaseDuration=t,w_=-1}}function vi(e){if(0<=w_){var t=g_()-w_;e.actualDuration+=t,w_=-1}}function yi(){if(0<=w_){var e=g_(),t=e-w_;w_=-1,T_+=t,E_+=t,O_=e}}function bi(e){k_===null&&(k_=[]),k_.push(e),C_===null&&(C_=[]),C_.push(e)}function xi(){w_=g_(),0>D_&&(D_=w_)}function Si(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ci(e,t){if(ov===null){var n=ov=[];sv=0,cv=$l(),lv={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sv++,t.then(wi,wi),t}function wi(){if(--sv===0&&(-1<U_||(H_=-1.1),ov!==null)){lv!==null&&(lv.status=`fulfilled`);var e=ov;ov=null,cv=0,lv=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ti(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ei(){var e=dv.current;return e===null?Yb.pooledCache:e}function Di(e,t){t===null?A(dv,dv.current,e):A(dv,t.pool,e)}function Oi(){var e=Ei();return e===null?null:{parent:h_._currentValue,pool:e}}function ki(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ai(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ji(e,t,n){H.actQueue!==null&&(H.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(nn,nn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pi(e),e;default:if(typeof t.status==`string`)t.then(nn,nn);else{if(e=Yb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pi(e),e}throw Wv=t,Gv=!0,Bv}}function Mi(e){try{return zv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Wv=e,Gv=!0,Bv):e}}function Ni(){if(Wv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Wv;return Wv=null,Gv=!1,e}function Pi(e){if(e===Bv||e===Hv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Fi(e){var t=Jv;return e!=null&&(Jv=t===null?e:t.concat(e)),t}function Ii(){var e=Jv;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Li(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=br(e,n.mode,0),t._debugInfo=Jv,t.return=n),he(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Ri(e){var t=qv;return qv+=1,Kv===null&&(Kv=ki()),ji(Kv,e,t)}function zi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Bi(e,t){throw t.$$typeof===kf?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Vi(e,t){var n=Ii();n===null?Bi(e,t):n.run(Bi.bind(null,e,t))}function Hi(e,t){var n=D(e)||`Component`;Qv[n]||(Qv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Ui(e,t){var n=Ii();n===null?Hi(e,t):n.run(Hi.bind(null,e,t))}function Wi(e,t){var n=D(e)||`Component`;$v[n]||($v[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,n,t,n))}function Gi(e,t){var n=Ii();n===null?Wi(e,t):n.run(Wi.bind(null,e,t))}function Ki(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=_r(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Sr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t):(t=i(t,n),t.return=e,t._debugInfo=Jv,t)}function c(e,t,n,r){var a=n.type;return a===Mf?(t=u(e,t,n.props.children,r,n.key),Li(n,t,e),t):t!==null&&(t.elementType===a||fr(t,n)||typeof a==`object`&&a&&a.$$typeof===Vf&&Mi(a)===t.type)?(t=i(t,n.props),zi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Jv,t):(t=br(n,e.mode,r),zi(t,n),t.return=e,t._debugInfo=Jv,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=wr(n,e.mode,r),t.return=e,t._debugInfo=Jv,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Jv,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=xr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t):(t=i(t,n),t.return=e,t._debugInfo=Jv,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Sr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Af:return n=br(t,e.mode,n),zi(n,t),n.return=e,e=Fi(t._debugInfo),n._debugInfo=Jv,Jv=e,n;case jf:return t=wr(t,e.mode,n),t.return=e,t._debugInfo=Jv,t;case Vf:var r=Fi(t._debugInfo);return t=Mi(t),e=f(e,t,n),Jv=r,e}if(Kf(t)||w(t))return n=xr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Fi(t._debugInfo),n._debugInfo=Jv,Jv=e,n;if(typeof t.then==`function`)return r=Fi(t._debugInfo),e=f(e,Ri(t),n),Jv=r,e;if(t.$$typeof===If)return f(e,$r(e,t),n);Vi(e,t)}return typeof t==`function`&&Ui(e,t),typeof t==`symbol`&&Gi(e,t),null}function m(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Af:return n.key===i?(i=Fi(n._debugInfo),e=c(e,t,n,r),Jv=i,e):null;case jf:return n.key===i?l(e,t,n,r):null;case Vf:return i=Fi(n._debugInfo),n=Mi(n),e=m(e,t,n,r),Jv=i,e}if(Kf(n)||w(n))return i===null?(i=Fi(n._debugInfo),e=u(e,t,n,r,null),Jv=i,e):null;if(typeof n.then==`function`)return i=Fi(n._debugInfo),e=m(e,t,Ri(n),r),Jv=i,e;if(n.$$typeof===If)return m(e,t,$r(e,n),r);Vi(e,n)}return typeof n==`function`&&Ui(e,n),typeof n==`symbol`&&Gi(e,n),null}function h(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Af:return n=e.get(r.key===null?n:r.key)||null,e=Fi(r._debugInfo),t=c(t,n,r,i),Jv=e,t;case jf:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Vf:var a=Fi(r._debugInfo);return r=Mi(r),t=h(e,t,n,r,i),Jv=a,t}if(Kf(r)||w(r))return n=e.get(n)||null,e=Fi(r._debugInfo),t=u(t,n,r,i,null),Jv=e,t;if(typeof r.then==`function`)return a=Fi(r._debugInfo),t=h(e,t,n,Ri(r),i),Jv=a,t;if(r.$$typeof===If)return h(e,t,n,$r(t,r),i);Vi(t,r)}return typeof r==`function`&&Ui(t,r),typeof r==`symbol`&&Gi(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Af:case jf:d(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}he(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Vf:n=Mi(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,p=o,_=o=0,v=null;p!==null&&_<s.length;_++){p.index>_?(v=p,p=null):v=p.sibling;var y=m(i,p,s[_],c);if(y===null){p===null&&(p=v);break}l=g(i,y,s[_],l),e&&p&&y.alternate===null&&t(i,p),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,p=v}if(_===s.length)return n(i,p),e_&&Er(i,_),u;if(p===null){for(;_<s.length;_++)p=f(i,s[_],c),p!==null&&(l=g(i,p,s[_],l),o=a(p,o,_),d===null?u=p:d.sibling=p,d=p);return e_&&Er(i,_),u}for(p=r(p);_<s.length;_++)v=h(p,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&p.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(i,e)}),e_&&Er(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,p=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;p++,y=s.next()){d.index>p?(_=d,d=null):_=d.sibling;var b=m(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,p),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),e_&&Er(i,p),l;if(d===null){for(;!y.done;p++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,p),u===null?l=d:u.sibling=d,u=d);return e_&&Er(i,p),l}for(d=r(d);!y.done;p++,y=s.next())_=h(d,i,p,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?p:_.key),o=a(_,o,p),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),e_&&Er(i,p),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Mf&&a.key===null&&(Li(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Af:var c=Fi(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Mf){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Jv,Li(a,s,e),e=s;break a}}else if(r.elementType===l||fr(r,a)||typeof l==`object`&&l&&l.$$typeof===Vf&&Mi(l)===r.type){n(e,r.sibling),s=i(r,a.props),zi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Jv,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===Mf?(s=xr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Jv,Li(a,s,e),e=s):(s=br(a,e.mode,s),zi(s,a),s.return=e,s._debugInfo=Jv,e=s)}return e=o(e),Jv=c,e;case jf:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=wr(c,e.mode,s),s.return=e,e=s}return o(e);case Vf:return c=Fi(a._debugInfo),a=Mi(a),e=y(e,r,a,s),Jv=c,e}if(Kf(a))return c=Fi(a._debugInfo),e=_(e,r,a,s),Jv=c,e;if(w(a)){if(c=Fi(a._debugInfo),l=w(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Xv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Xv=!0):a.entries!==l||Yv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Yv=!0),e=v(e,r,u,s),Jv=c,e}if(typeof a.then==`function`)return c=Fi(a._debugInfo),e=y(e,r,Ri(a),s),Jv=c,e;if(a.$$typeof===If)return y(e,r,$r(e,a),s);Vi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Sr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Jv,e=s),o(e)):(typeof a==`function`&&Ui(e,a),typeof a==`symbol`&&Gi(e,a),n(e,r))}return function(e,t,n,r){var i=Jv;Jv=null;try{qv=0;var a=y(e,t,n,r);return Kv=null,a}catch(t){if(t===Bv||t===Hv)throw t;var o=p(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Jv;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Jv=i}}}function qi(e,t){var n=Kf(e);return e=!n&&typeof w(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xi(e){return{lane:e,tag:ny,payload:null,callback:null,next:null}}function Zi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,cy===r&&!sy){var i=D(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,i),sy=!0}return(Jb&zb)===Rb?(ar(e,r,t,n),lr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=lr(e),cr(e,null,n),t)}function Qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pe(e,n)}}function $i(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(){if(ly){var e=lv;if(e!==null)throw e}}function ta(e,t,n,r){ly=!1;var i=e.updateQueue;oy=!1,cy=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Zb&f)===f:(r&f)===f){f!==0&&f===cv&&(ly=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case ry:if(m=m.payload,typeof m==`function`){d_=!0;var _=m.call(g,d,h);if(f.mode&Lg){we(!0);try{m.call(g,d,h)}finally{we(!1)}}d_=!1,d=_;break a}d=m;break a;case ay:f.flags=f.flags&-65537|128;case ny:if(_=m.payload,typeof _==`function`){if(d_=!0,m=_.call(g,d,h),f.mode&Lg){we(!0);try{_.call(g,d,h)}finally{we(!1)}}d_=!1}else m=_;if(m==null)break a;d=Of({},d,m);break a;case iy:oy=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),hx|=o,e.lanes=o,e.memoizedState=d}cy=null}function na(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function ra(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)na(n[e],t)}function ia(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)na(n[e],t)}function aa(e,t){var n=px;A(dy,n,e),A(uy,t,e),px=n|t.baseLanes}function oa(e){A(dy,px,e),A(uy,uy.current,e)}function sa(e){px=dy.current,k(uy,e),k(dy,e)}function ca(e){var t=e.alternate;A(gy,gy.current&my,e),A(fy,e,e),py===null&&(t===null||uy.current!==null||t.memoizedState!==null)&&(py=e)}function la(e){A(gy,gy.current,e),A(fy,e,e),py===null&&(py=e)}function ua(e){e.tag===22?(A(gy,gy.current,e),A(fy,e,e),py===null&&(py=e)):da(e)}function da(e){A(gy,gy.current,e),A(fy,fy.current,e)}function fa(e){k(fy,e),py===e&&(py=null),k(gy,e)}function pa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fd(n)||pd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ma(){var e=q;zy===null?zy=[e]:zy.push(e)}function L(){var e=q;if(zy!==null&&(By++,zy[By]!==e)){var t=D(Oy);if(!Cy.has(t)&&(Cy.add(t),zy!==null)){for(var n=``,r=0;r<=By;r++){var i=zy[r],a=r===By?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
108
+ `,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,n)}}}function ha(e){e==null||Kf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",q,typeof e)}function ga(){var e=D(Oy);Ey.has(e)||(Ey.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function _a(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function va(e,t){if(Vy)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,q),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,q,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!zh(e[n],t[n]))return!1;return!0}function ya(e,t,n,r,i,a){Dy=a,Oy=t,zy=e===null?null:e._debugHookTypes,By=-1,Vy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=D(Oy),Ty.has(a)||(Ty.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e!==null&&e.memoizedState!==null?Gy:zy===null?Uy:Wy,Ny=a=(t.mode&Lg)!==Pg;var o=Cv(n,r,i);if(Ny=!1,My&&(o=xa(t,n,r,i)),a){we(!0);try{o=xa(t,n,r,i)}finally{we(!1)}}return ba(e,t),o}function ba(e,t){t._debugHookTypes=zy,t.dependencies===null?Iy!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Iy}):t.dependencies._debugThenableState=Iy,H.H=Hy;var n=ky!==null&&ky.next!==null;if(Dy=0,zy=q=Ay=ky=Oy=null,By=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),jy=!1,Fy=0,Iy=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||db||(e=e.dependencies,e!==null&&Xr(e)&&(db=!0)),Gv?(Gv=!1,e=!0):e=!1,e&&(t=D(t)||`Unknown`,wy.has(t)||Ty.has(t)||(wy.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function xa(e,t,n,r){Oy=e;var i=0;do{if(My&&(Iy=null),Fy=0,My=!1,i>=Ry)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Vy=!1,Ay=ky=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}By=-1,H.H=Ky,a=Cv(t,n,r)}while(My);return a}function Sa(){var e=H.H,t=e.useState()[0];return t=typeof t.then==`function`?ka(t):t,e=e.useState()[0],(ky===null?null:ky.memoizedState)!==e&&(Oy.flags|=1024),t}function Ca(){var e=Py!==0;return Py=0,e}function wa(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Rg)===Pg?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Ta(e){if(jy){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jy=!1}Dy=0,zy=Ay=ky=Oy=null,By=-1,q=null,My=!1,Fy=Py=0,Iy=null}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ay===null?Oy.memoizedState=Ay=e:Ay=Ay.next=e,Ay}function Da(){if(ky===null){var e=Oy.alternate;e=e===null?null:e.memoizedState}else e=ky.next;var t=Ay===null?Oy.memoizedState:Ay.next;if(t!==null)Ay=t,ky=e;else{if(e===null)throw Oy.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);ky=e,e={memoizedState:ky.memoizedState,baseState:ky.baseState,baseQueue:ky.baseQueue,queue:ky.queue,next:null},Ay===null?Oy.memoizedState=Ay=e:Ay=Ay.next=e}return Ay}function Oa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ka(e){var t=Fy;return Fy+=1,Iy===null&&(Iy=ki()),e=ji(Iy,e,t),t=Oy,(Ay===null?t.memoizedState:Ay.next)===null&&(t=t.alternate,H.H=t!==null&&t.memoizedState!==null?Gy:Uy),e}function Aa(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ka(e);if(e.$$typeof===If)return Qr(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function ja(e){var t=null,n=Oy.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Oy.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oa(),Oy.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Vy)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Uf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Ma(e,t){return typeof t==`function`?t(e):t}function Na(e,t,n){var r=Ea();if(n!==void 0){var i=n(t);if(Ny){we(!0);try{n(t)}finally{we(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ho.bind(null,Oy,e),[r.memoizedState,e]}function Pa(e){return Fa(Da(),ky,e)}function Fa(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Dy&d)===d:(Zb&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===cv&&(u=!0);else if((Dy&f)===f){l=l.next,f===cv&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,Oy.lanes|=f,hx|=f;d=l.action,Ny&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,Oy.lanes|=d,hx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!zh(a,e.memoizedState)&&(db=!0,u&&(n=lv,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ia(e){var t=Da(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);zh(a,t.memoizedState)||(db=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function La(e,t,n){var r=Oy,i=Ea();if(e_){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();Sy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),Sy=!0)}else{if(a=t(),Sy||(n=t(),zh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Sy=!0)),Yb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);Zb&127||za(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,po(Va.bind(null,r,n,e),[e]),r.flags|=2048,co(vy|xy,{destroy:void 0},Ba.bind(null,r,n,a,t),null),a}function Ra(e,t,n){var r=Oy,i=Da(),a=e_;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!Sy){var o=t();zh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Sy=!0)}if((o=!zh((ky||i).memoizedState,n))&&(i.memoizedState=n,db=!0),i=i.queue,fo(2048,xy,Va.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ay!==null&&Ay.memoizedState.tag&vy){if(r.flags|=2048,co(vy|xy,{destroy:void 0},Ba.bind(null,r,i,n,t),null),Yb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Dy&127||za(r,t,n)}return n}function za(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oy.updateQueue,t===null?(t=Oa(),Oy.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ba(e,t,n,r){t.value=n,t.getSnapshot=r,Ha(t)&&Ua(e)}function Va(e,t,n){return n(function(){Ha(t)&&(ii(2,`updateSyncExternalStore()`,e),Ua(e))})}function Ha(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zh(e,n)}catch{return!0}}function Ua(e){var t=sr(e,2);t!==null&&Zc(t,e,2)}function Wa(e){var t=Ea();if(typeof e==`function`){var n=e;if(e=n(),Ny){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},t}function Ga(e){e=Wa(e);var t=e.queue,n=Uo.bind(null,Oy,t);return t.dispatch=n,[e.memoizedState,n]}function Ka(e){var t=Ea();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Go.bind(null,Oy,!0,n),n.dispatch=t,[e,t]}function qa(e,t){return Ja(Da(),ky,e,t)}function Ja(e,t,n,r){return e.baseState=n,Fa(e,ky,typeof r==`function`?r:Ma)}function Ya(e,t){var n=Da();return ky===null?(n.baseState=e,[e,n.queue.dispatch]):Ja(n,ky,e,t)}function Xa(e,t,n,r,i){if(Ko(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};H.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Za(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Za(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=H.T,o={};o._updatedFibers=new Set,H.T=o;try{var s=n(i,r),c=H.S;c!==null&&c(o,s),Qa(e,t,s)}catch(n){eo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),H.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Qa(e,t,o)}catch(n){eo(e,t,n)}}function Qa(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(H.asyncTransitions++,n.then(Ao,Ao),n.then(function(n){$a(e,t,n)},function(n){return eo(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):$a(e,t,n)}function $a(e,t,n){t.status=`fulfilled`,t.value=n,to(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Za(e,n)))}function eo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,to(t),t=t.next;while(t!==r)}e.action=null}function to(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function no(e,t){return t}function ro(e,t){if(e_){var n=Yb.formState;if(n!==null){a:{var r=Oy;if(e_){if($g){b:{for(var i=$g,a=i_;i.nodeType!==8;){if(!a){i=null;break b}if(i=hd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===KS||a===qS?i:null}if(i){$g=hd(i.nextSibling),r=i.data===KS;break a}}Ir(r)}r=!1}r&&(t=n[0])}}return n=Ea(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:t},n.queue=r,n=Uo.bind(null,Oy,r),r.dispatch=n,r=Wa(!1),a=Go.bind(null,Oy,!1,r.queue),r=Ea(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xa.bind(null,Oy,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function io(e){return ao(Da(),ky,e)}function ao(e,t,n){if(t=Fa(e,t,no)[0],e=Pa(Ma)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ka(t)}catch(e){throw e===Bv?Hv:e}else r=t;t=Da();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Oy.flags|=2048,co(vy|xy,{destroy:void 0},oo.bind(null,i,n),null)),[r,a,e]}function oo(e,t){e.action=t}function so(e){var t=Da(),n=ky;if(n!==null)return ao(t,n,e);Da(),t=t.memoizedState,n=Da();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function co(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Oy.updateQueue,t===null&&(t=Oa(),Oy.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function lo(e){var t=Ea();return e={current:e},t.memoizedState=e}function uo(e,t,n,r){var i=Ea();Oy.flags|=e,i.memoizedState=co(vy|t,{destroy:void 0},n,r===void 0?null:r)}function fo(e,t,n,r){var i=Da();r=r===void 0?null:r;var a=i.memoizedState.inst;ky!==null&&r!==null&&va(r,ky.memoizedState.deps)?i.memoizedState=co(t,a,n,r):(Oy.flags|=e,i.memoizedState=co(vy|t,a,n,r))}function po(e,t){(Oy.mode&Rg)===Pg?uo(8390656,xy,e,t):uo(276826112,xy,e,t)}function mo(e){Oy.flags|=4;var t=Oy.updateQueue;if(t===null)t=Oa(),Oy.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ho(e){var t=Ea(),n={impl:e};return t.memoizedState=n,function(){if((Jb&zb)!==Rb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function go(e){var t=Da().memoizedState;return mo({ref:t,nextImpl:e}),function(){if((Jb&zb)!==Rb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function _o(e,t){var n=4194308;return(Oy.mode&Rg)!==Pg&&(n|=134217728),uo(n,by,e,t)}function vo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function yo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(Oy.mode&Rg)!==Pg&&(r|=134217728),uo(r,by,vo.bind(null,t,e),n)}function bo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),fo(4,by,vo.bind(null,t,e),n)}function xo(e,t){return Ea().memoizedState=[e,t===void 0?null:t],e}function So(e,t){var n=Da();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=Ea();t=t===void 0?null:t;var r=e();if(Ny){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function wo(e,t){var n=Da();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&va(t,r[1]))return r[0];if(r=e(),Ny){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function To(e,t){return Oo(Ea(),e,t)}function Eo(e,t){return ko(Da(),ky.memoizedState,e,t)}function Do(e,t){var n=Da();return ky===null?Oo(n,e,t):ko(n,ky.memoizedState,e,t)}function Oo(e,t,n){return n===void 0||Dy&1073741824&&!(Zb&261930)?e.memoizedState=t:(e.memoizedState=n,e=Xc(),Oy.lanes|=e,hx|=e,n)}function ko(e,t,n,r){return zh(n,t)?n:uy.current===null?!(Dy&42)||Dy&1073741824&&!(Zb&261930)?(db=!0,e.memoizedState=n):(e=Xc(),Oy.lanes|=e,hx|=e,t):(e=Oo(e,n,r),zh(e,t)||(db=!0),e)}function Ao(){H.asyncTransitions--}function jo(e,t,n,r,i){var a=qf.p;qf.p=a!==0&&a<Vp?a:Vp;var o=H.T,s={};s._updatedFibers=new Set,H.T=s,Go(e,!1,t,n);try{var c=i(),l=H.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){H.asyncTransitions++,c.then(Ao,Ao);var u=Ti(c,r);Wo(e,t,u,Yc(e))}else Wo(e,t,r,Yc(e))}catch(n){Wo(e,t,{then:function(){},status:`rejected`,reason:n},Yc(e))}finally{qf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),H.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Mo(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=No(e).queue;ai(e),jo(e,i,t,EC,n===null?u:function(){return Po(e),n(r)})}function No(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:EC,baseState:EC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:EC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Po(e){H.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=No(e);t.next===null&&(t=e.alternate.memoizedState),Wo(e,t.next.queue,{},Yc(e))}function Fo(){var e=Wa(!1);return e=jo.bind(null,Oy,e.queue,!0,!1),Ea().memoizedState=e,[!1,e]}function Io(){var e=Pa(Ma)[0],t=Da().memoizedState;return[typeof e==`boolean`?e:ka(e),t]}function Lo(){var e=Ia(Ma)[0],t=Da().memoizedState;return[typeof e==`boolean`?e:ka(e),t]}function Ro(){return Qr(DC)}function zo(){var e=Ea(),t=Yb.identifierPrefix;if(e_){var n=Zg,r=Xg;n=(r&~(1<<32-Pp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Py++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ly++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Bo(){return Ea().memoizedState=Vo.bind(null,Oy)}function Vo(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Yc(n),i=Xi(r),a=Zi(n,i,r);a!==null&&(ii(r,`refresh()`,e),Zc(a,n,r),Qi(a,n,r)),e=ti(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Ho(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Yc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ko(e)?qo(t,i):(i=or(e,t,i,r),i!==null&&(ii(r,`dispatch()`,e),Zc(i,e,r),Jo(i,t,r)))}function Uo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Yc(e),Wo(e,t,n,r)&&ii(r,`setState()`,e)}function Wo(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))qo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=H.H;H.H=Jy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,zh(c,s))return ar(e,t,i,0),Yb===null&&ir(),!1}catch{}finally{H.H=o}}if(n=or(e,t,i,r),n!==null)return Zc(n,e,r),Jo(n,t,r),!0}return!1}function Go(e,t,n,r){if(H.T===null&&cv===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:$l(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=or(e,n,r,2),t!==null&&(ii(2,`setOptimistic()`,e),Zc(t,e,2))}function Ko(e){var t=e.alternate;return e===Oy||t!==null&&t===Oy}function qo(e,t){My=jy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pe(e,n)}}function Yo(e){if(e!==null&&typeof e!=`function`){var t=String(e);ob.has(t)||(ob.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Xo(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Lg){we(!0);try{a=n(r,i)}finally{we(!1)}}a===void 0&&(t=T(t)||`Component`,nb.has(t)||(nb.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:Of({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Zo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Lg){we(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{we(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,T(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!jn(n,r)||!jn(i,a):!0}function Qo(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=D(e)||`Component`,Zy.has(e)||(Zy.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),sb.enqueueReplaceState(t,t.state,null))}function $o(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Of({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function es(e){sg(e),console.warn(`%s
121
+
122
+ %s
123
+ `,cb?`An error occurred in the <`+cb+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function ts(e){var t=cb?`The above error occurred in the <`+cb+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((lb||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,OC+` `+e[0],kC,jC+r+jC,AC):e.splice(0,0,OC,kC,jC+r+jC,AC),e.unshift(console),r=MC.apply(console.error,e),r()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,n)}function ns(e){sg(e)}function rs(e,t){try{cb=t.source?D(t.source):null,lb=null;var n=t.value;if(H.actQueue!==null)H.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function is(e,t,n){try{cb=n.source?D(n.source):null,lb=D(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function as(e,t,n){return n=Xi(n),n.tag=ay,n.payload={element:null},n.callback=function(){he(t.source,rs,e,t)},n}function os(e){return e=Xi(e),e.tag=ay,e}function ss(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){pr(n),he(r.source,is,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){pr(n),he(r.source,is,t,n,r),typeof i!=`function`&&(Ax===null?Ax=new Set([this]):Ax.add(this)),jv(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,D(n)||`Unknown`)})}function cs(e,t,n,r,i){if(n.flags|=32768,Np&&Vl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yr(t,n,i,!0),e_&&(t_=!0),n=fy.current,n!==null){switch(n.tag){case 31:case 13:return py===null?dl():n.alternate===null&&mx===Vb&&(mx=Wb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Uv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ml(e,r,i)),!1;case 22:return n.flags|=65536,r===Uv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ml(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Ml(e,r,i),dl(),!1}if(e_)return t_=!0,t=fy.current,t===null?(r!==a_&&Hr(Tr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Tr(r,n),i=as(e.stateNode,r,i),$i(e,i),mx!==Gb&&(mx=Ub)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==a_&&Hr(Tr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Tr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(bx===null?bx=[a]:bx.push(a),mx!==Gb&&(mx=Ub),t===null)return!0;r=Tr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=as(n.stateNode,r,e),$i(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Ax===null||!Ax.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=os(i),ss(i,e,n,r),$i(n,i),!1}n=n.return}while(n!==null);return!1}function ls(e,t,n,r){t.child=e===null?ty(t,null,n,r):ey(t,e.child,n,r)}function us(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Zr(t),r=ya(e,t,n,o,a,i),s=Ca(),e!==null&&!db?(wa(e,t,i),Ms(e,t,i)):(e_&&s&&Or(t),t.flags|=1,ls(e,t,r,i),t.child)}function R(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!gr(a)&&a.defaultProps===void 0&&n.compare===null?(n=ur(a),t.tag=15,t.type=n,Ss(t,a),ds(e,t,n,r,i)):(e=yr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ns(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?jn:n,n(o,r)&&e.ref===t.ref)return Ms(e,t,i)}return t.flags|=1,e=_r(a,r),e.ref=t.ref,e.return=t,t.child=e}function ds(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jn(a,r)&&e.ref===t.ref&&t.type===e.type)if(db=!1,t.pendingProps=r=a,Ns(e,i))e.flags&131072&&(db=!0);else return t.lanes=e.lanes,Ms(e,t,i)}return ys(e,t,n,r,i)}function fs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Eg,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ms(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,a===null?null:a.cachePool),a===null?oa(t):aa(t,a),ua(t);else return r=t.lanes=536870912,ms(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Di(t,null),oa(t),da(t)):(Di(t,a.cachePool),aa(t,a),da(t),t.memoizedState=null);return ls(e,t,i,n),t.child}function ps(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Eg,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ms(e,t,n,r,i){var a=Ei();return a=a===null?null:{parent:h_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Di(t,null),oa(t),ua(t),e!==null&&Yr(e,t,r,!0),t.childLanes=i,null}function hs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ds({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gs(e,t,n){return ey(t,e.child,null,n),e=hs(t,t.pendingProps),e.flags|=2,fa(t),t.memoizedState=null,e}function _s(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(e_){if(r.mode===`hidden`)return e=hs(t,r),t.lanes=536870912,ps(null,e);if(la(t),(e=$g)?(n=dd(e,i_),n=n!==null&&n.data===IS?n:null,n!==null&&(r={dehydrated:n,treeContext:Ar(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Cr(n),r.return=t,t.child=r,Qg=t,$g=null)):n=null,n===null)throw Fr(t,e),Ir(t);return t.lanes=536870912,null}return hs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(la(t),i)if(t.flags&256)t.flags&=-257,t=gs(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(Pr(),n&536870912&&ul(t),db||Yr(e,t,n,!1),i=(n&e.childLanes)!==0,db||i){if(r=Yb,r!==null&&(o=Fe(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,sr(e,o),Zc(r,e,o),ub;dl(),t=gs(e,t,n)}else e=a.treeContext,$g=hd(o.nextSibling),Qg=t,e_=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&jr(t,e),t=hs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ul(t),e=_r(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function vs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ys(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=T(n)||`Unknown`;fb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),fb[a]=!0)}return t.mode&Lg&&fv.recordLegacyContextWarning(t,null),e===null&&(Ss(t,t.type),n.contextTypes&&(a=T(n)||`Unknown`,mb[a]||(mb[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Zr(t),n=ya(e,t,n,r,void 0,i),r=Ca(),e!==null&&!db?(wa(e,t,i),Ms(e,t,i)):(e_&&r&&Or(t),t.flags|=1,ls(e,t,n,i),t.child)}function bs(e,t,n,r,i,a){return Zr(t),By=-1,Vy=e!==null&&e.type!==t.type,t.updateQueue=null,n=xa(t,r,n,i),ba(e,t),r=Ca(),e!==null&&!db?(wa(e,t,a),Ms(e,t,a)):(e_&&r&&Or(t),t.flags|=1,ls(e,t,n,a),t.child)}function z(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Yb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=os(c),ss(c,o,t,Tr(a,t)),$i(t,c)}if(Zr(t),t.stateNode===null){if(o=jg,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==If)&&!ab.has(n)&&(ab.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===Ff?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,T(n)||`Component`,c)),typeof a==`object`&&a&&(o=Qr(a)),a=new n(r,o),t.mode&Lg){we(!0);try{a=new n(r,o)}finally{we(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=sb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Xy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=T(n)||`Component`,Qy.has(o)||(Qy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=T(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;eb.has(a)||(eb.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
142
+ `+o,c===null?``:`
143
+ `+c,l===null?``:`
144
+ `+l))}}a=t.stateNode,o=T(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!ib.has(n)&&(ib.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!rb.has(n)&&(rb.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,T(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||$y.has(n)||($y.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,T(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Kf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ji(t),o=n.contextType,a.context=typeof o==`object`&&o?Qr(o):jg,a.state===r&&(o=T(n)||`Component`,tb.has(o)||(tb.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&Lg&&fv.recordLegacyContextWarning(t,a),fv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Xo(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,D(t)||`Component`),sb.enqueueReplaceState(a,a.state,null)),ta(t,r,a,i),ea(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==Pg&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=$o(n,d),a.props=c;var f=a.context;l=n.contextType,o=jg,typeof l==`object`&&l&&(o=Qr(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Qo(t,a,r,o),oy=!1;var p=t.memoizedState;a.state=p,ta(t,r,a,i),ea(),f=t.memoizedState,d||p!==f||oy?(typeof u==`function`&&(Xo(t,n,u,r),f=t.memoizedState),(c=oy||Zo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==Pg&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==Pg&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==Pg&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Yi(e,t),o=t.memoizedProps,l=$o(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=jg,typeof f==`object`&&f&&(c=Qr(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Qo(t,a,r,c),oy=!1,p=t.memoizedState,a.state=p,ta(t,r,a,i),ea();var m=t.memoizedState;o!==u||p!==m||oy||e!==null&&e.dependencies!==null&&Xr(e.dependencies)?(typeof d==`function`&&(Xo(t,n,d,r),m=t.memoizedState),(l=oy||Zo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Xr(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,vs(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,ge(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,w_=-1;else if(n=Tv(c),t.mode&Lg){we(!0);try{Tv(c)}finally{we(!1)}}t.flags|=1,e!==null&&o?(t.child=ey(t,e.child,null,i),t.child=ey(t,null,n,i)):ls(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Ms(e,t,i);return i=t.stateNode,a&&i.props!==r&&(gb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",D(t)||`a component`),gb=!0),e}function xs(e,t,n,r){return Br(),t.flags|=256,ls(e,t,n,r),t.child}function Ss(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=T(t)||`Unknown`,hb[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),hb[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=T(t)||`Unknown`,pb[t]||(console.error(`%s: Function components do not support contextType.`,t),pb[t]=!0))}function Cs(e){return{baseLanes:e,cachePool:Oi()}}function ws(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=vx),e}function Ts(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=(t.flags&128)!=0;if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(gy.current&hy)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!=0,t.flags&=-33,e===null){if(e_){if(a?ca(t):da(t),(e=$g)?(n=dd(e,i_),n=n!==null&&n.data!==IS?n:null,n!==null&&(r={dehydrated:n,treeContext:Ar(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Cr(n),r.return=t,t.child=r,Qg=t,$g=null)):n=null,n===null)throw Fr(t,e),Ir(t);return pd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){da(t);var l=t.mode;return c=Ds({mode:`hidden`,children:c},l),i=xr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=Cs(n),i.childLanes=ws(e,r,n),t.memoizedState=yb,ps(null,i)}return ca(t),Es(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ca(t),t.flags&=-257,t=Os(e,t,n)):t.memoizedState===null?(da(t),c=i.fallback,l=t.mode,i=Ds({mode:`visible`,children:i.children},l),c=xr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,ey(t,e.child,null,n),i=t.child,i.memoizedState=Cs(n),i.childLanes=ws(e,r,n),t.memoizedState=yb,t=ps(null,i)):(da(t),t.child=e.child,t.flags|=128,t=null);else if(ca(t),Pr(),n&536870912&&ul(t),pd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Hg.set(c,i),Hr(i),t=Os(e,t,n)}else if(db||Yr(e,t,n,!1),r=(n&e.childLanes)!==0,db||r){if(r=Yb,r!==null&&(i=Fe(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,sr(e,i),Zc(r,e,i),ub;fd(d)||dl(),t=Os(e,t,n)}else fd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,$g=hd(d.nextSibling),Qg=t,e_=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&jr(t,e),t=Es(t,i.children),t.flags|=4096);return t}}return a?(da(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=_r(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=xr(c,l,n,null),c.flags|=2):c=_r(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,ps(null,i),i=t.child,c=e.child.memoizedState,c===null?c=Cs(n):(l=c.cachePool,l===null?l=Oi():(p=h_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ws(e,r,n),t.memoizedState=yb,ps(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ul(t),ca(t),n=e.child,e=n.sibling,n=_r(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Es(e,t){return t=Ds({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ds(e,t){return e=p(22,e,null,t),e.lanes=0,e}function Os(e,t,n){return ey(t,e.child,null,n),e=Es(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ks(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qr(e.return,t,n)}function As(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function js(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=gy.current;if((r=(s&hy)!==0)?(s=s&my|hy,t.flags|=128):s&=my,A(gy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!_b[s])if(_b[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,vb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(vb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(vb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(vb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(Kf(o)){for(s=0;s<o.length;s++)if(!qi(o[s],s))break a}else if(s=w(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!qi(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(ls(e,t,o,n),e_?(Mr(),o=Kg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ks(e,n,t);else if(e.tag===19)ks(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),As(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}As(t,!0,n,null,a,o);break;case`together`:As(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ms(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),w_=-1,hx|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=_r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ns(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Xr(e))):!0}function Ps(e,t,n){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),Gr(t,h_,e.memoizedState.cache),Br();break;case 27:case 5:ne(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:Gr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,la(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ca(t),e=Ms(e,t,n),e===null?null:e.sibling):Ts(e,t,n):(ca(t),t.flags|=128,null);ca(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Yr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return js(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(gy,gy.current,t),r)break;return null;case 22:return t.lanes=0,fs(e,t,n,t.pendingProps);case 24:Gr(t,h_,e.memoizedState.cache)}return Ms(e,t,n)}function Fs(e,t,n){if(t._debugNeedsRemount&&e!==null){n=yr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)db=!0;else{if(!Ns(e,n)&&!(t.flags&128))return db=!1,Ps(e,t,n);db=!!(e.flags&131072)}else db=!1,(r=e_)&&(Mr(),r=(t.flags&1048576)!=0),r&&(r=t.index,Mr(),Dr(t,Kg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Mi(t.elementType),t.type=e,typeof e==`function`)gr(e)?(r=$o(e,r),t.tag=1,t.type=e=ur(e),t=z(null,t,e,r,n)):(t.tag=0,Ss(t,e),t.type=e=ur(e),t=ys(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Lf){t.tag=11,t.type=e=dr(e),t=us(null,t,e,r,n);break a}else if(i===Bf){t.tag=14,t=R(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Vf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=T(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return ys(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$o(r,t.pendingProps),z(e,t,r,i,n);case 3:a:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Yi(e,t),ta(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Gr(t,h_,r),r!==a.cache&&Jr(t,[h_],n,!0),ea(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=xs(e,t,r,n);break a}else if(r!==i){i=Tr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Hr(i),t=xs(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for($g=hd(e.firstChild),Qg=t,e_=!0,r_=null,t_=!1,n_=null,i_=!0,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Br(),r===i){t=Ms(e,t,n);break a}ls(e,t,r,n)}t=t.child}return t;case 26:return vs(e,t),e===null?(n=Od(t.type,null,t.pendingProps,null))?t.memoizedState=n:e_||(n=t.type,e=t.pendingProps,r=j(ep.current),r=Lu(r).createElement(n),r[Gp]=t,r[Kp]=e,Cu(r,n,e),qe(r),t.stateNode=r):t.memoizedState=Od(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ne(t),e===null&&e_&&(r=j(ep.current),i=te(),r=t.stateNode=Cd(t.type,t.pendingProps,r,i,!1),t_||(i=Nu(r,t.type,t.pendingProps,i),i!==null&&(Nr(t,0).serverProps=i)),Qg=t,i_=!0,i=$g,Zu(t.type)?(lC=i,$g=hd(r.firstChild)):$g=i),ls(e,t,t.pendingProps.children,n),vs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&e_&&(a=te(),r=Ut(t.type,a.ancestorInfo),i=$g,(o=!i)||(o=ld(i,t.type,t.pendingProps,i_),o===null?a=!1:(t.stateNode=o,t_||(a=Nu(o,t.type,t.pendingProps,a),a!==null&&(Nr(t,0).serverProps=a)),Qg=t,$g=hd(o.firstChild),i_=!1,a=!0),o=!a),o&&(r&&Fr(t,i),Ir(t))),ne(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Bu(i,a)?r=null:o!==null&&Bu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ya(e,t,Sa,null,null,n),DC._currentValue=i),vs(e,t),ls(e,t,r,n),t.child;case 6:return e===null&&e_&&(n=t.pendingProps,e=te(),r=e.ancestorInfo.current,n=r==null?!0:Wt(n,r.tag,e.ancestorInfo.implicitRootScope),e=$g,(r=!e)||(r=ud(e,t.pendingProps,i_),r===null?r=!1:(t.stateNode=r,Qg=t,$g=null,r=!0),r=!r),r&&(n&&Fr(t,e),Ir(t))),null;case 13:return Ts(e,t,n);case 4:return ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ey(t,null,r,n):ls(e,t,r,n),t.child;case 11:return us(e,t,t.type,t.pendingProps,n);case 7:return ls(e,t,t.pendingProps,n),t.child;case 8:return ls(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ls(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||bb||(bb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Gr(t,r,a),ls(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Zr(t),i=Qr(i),r=Cv(r,i,void 0),t.flags|=1,ls(e,t,r,n),t.child;case 14:return R(e,t,t.type,t.pendingProps,n);case 15:return ds(e,t,t.type,t.pendingProps,n);case 19:return js(e,t,n);case 31:return _s(e,t,n);case 22:return fs(e,t,n,t.pendingProps);case 24:return Zr(t),r=Qr(h_),e===null?(i=Ei(),i===null&&(i=Yb,a=ti(),i.pooledCache=a,ni(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ji(t),Gr(t,h_,i)):((e.lanes&n)!==0&&(Yi(e,t),ta(t,null,null,n),ea()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Gr(t,h_,r),r!==i.cache&&Jr(t,[h_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gr(t,h_,r))),ls(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Is(e){e.flags|=4}function Ls(e,t,n,r,i){if((t=(e.mode&zg)!==Pg)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(sl())e.flags|=8192;else throw Wv=Uv,Vv}else e.flags&=-16777217}function Rs(e,t){if(t.type!==`stylesheet`||(t.state.loading&mC)!==uC)e.flags&=-16777217;else if(e.flags|=16777216,!Ud(t))if(sl())e.flags|=8192;else throw Wv=Uv,Vv}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ae(),e.lanes|=t,yx|=t)}function Bs(e,t){if(!e_)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&Ig)!==Pg){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&Ig)!==Pg){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,n){var r=t.pendingProps;switch(kr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:return Vs(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Kr(h_,t),M(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zr(t)?(Ur(),Is(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vr())),Vs(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Is(t),a===null?(Vs(t),Ls(t,i,null,r,n)):(Vs(t),Rs(t,a))):a?a===e.memoizedState?(Vs(t),t.flags&=-16777217):(Is(t),Vs(t),Rs(t,a)):(e=e.memoizedProps,e!==r&&Is(t),Vs(t),Ls(t,i,e,r,n)),null;case 27:if(re(t),n=j(ep.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Is(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Vs(t),null}e=te(),zr(t)?Lr(t,e):(e=Cd(i,r,n,e,!0),t.stateNode=e,Is(t))}return Vs(t),null;case 5:if(re(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Is(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Vs(t),null}var o=te();if(zr(t))Lr(t,o);else{switch(a=j(ep.current),Ut(i,o.ancestorInfo),o=o.context,a=Lu(a),o){case ZS:a=a.createElementNS(Fm,i);break;case QS:a=a.createElementNS(Pm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Fm,i);break;case`math`:a=a.createElementNS(Pm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||gp.call(tC,i)||(tC[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[Gp]=t,a[Kp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Cu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Is(t)}}return Vs(t),Ls(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Is(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=j(ep.current),n=te(),zr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!t_,r=null,a=Qg,a!==null)switch(a.tag){case 3:i&&(i=_d(e,n,r),i!==null&&(Nr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=_d(e,n,r),i!==null&&(Nr(t,0).serverProps=i))}e[Gp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||bu(e.nodeValue,n)),e||Ir(t,!0)}else i=n.ancestorInfo.current,i!=null&&Wt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Lu(e).createTextNode(r),e[Gp]=t,t.stateNode=e}return Vs(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zr(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Gp]=t,Vs(t),(t.mode&Ig)!==Pg&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ur(),Br(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Vs(t),(t.mode&Ig)!==Pg&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fa(t),t):(fa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Vs(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=zr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Gp]=t,Vs(t),(t.mode&Ig)!==Pg&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Ur(),Br(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Vs(t),(t.mode&Ig)!==Pg&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(fa(t),t):(fa(t),null)}return fa(t),t.flags&128?(t.lanes=n,(t.mode&Ig)!==Pg&&Si(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zs(t,t.updateQueue),Vs(t),(t.mode&Ig)!==Pg&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return M(t),e===null&&su(t.stateNode.containerInfo),Vs(t),null;case 10:return Kr(t.type,t),Vs(t),null;case 19:if(k(gy,t),r=t.memoizedState,r===null)return Vs(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Bs(r,!1);else{if(mx!==Vb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=pa(e),a!==null){for(t.flags|=128,Bs(r,!1),e=a.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vr(n,e),n=n.sibling;return A(gy,gy.current&my|hy,t),e_&&Er(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xp()>Ex&&(t.flags|=128,i=!0,Bs(r,!1),t.lanes=4194304)}else{if(!i)if(e=pa(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),Bs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!e_)return Vs(t),null}else 2*xp()-r.renderingStartTime>Ex&&n!==536870912&&(t.flags|=128,i=!0,Bs(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Vs(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xp(),e.sibling=null,n=gy.current,n=i?n&my|hy:n&my,A(gy,n,t),e_&&Er(t,r.treeForkCount),e);case 22:case 23:return fa(t),sa(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vs(t),t.subtreeFlags&6&&(t.flags|=8192)):Vs(t),n=t.updateQueue,n!==null&&zs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(dv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Kr(h_,t),Vs(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Us(e,t){switch(kr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ig)!==Pg&&Si(t),t):null;case 3:return Kr(h_,t),M(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return re(t),null;case 31:if(t.memoizedState!==null){if(fa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ig)!==Pg&&Si(t),t):null;case 13:if(fa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ig)!==Pg&&Si(t),t):null;case 19:return k(gy,t),null;case 4:return M(t),null;case 10:return Kr(t.type,t),null;case 22:case 23:return fa(t),sa(t),e!==null&&k(dv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ig)!==Pg&&Si(t),t):null;case 24:return Kr(h_,t),null;case 25:return null;default:return null}}function B(e,t){switch(kr(t),t.tag){case 3:Kr(h_,t),M(t);break;case 26:case 27:case 5:re(t);break;case 4:M(t);break;case 31:t.memoizedState!==null&&fa(t);break;case 13:fa(t);break;case 19:k(gy,t);break;case 10:Kr(t.type,t);break;case 22:case 23:fa(t),sa(t),e!==null&&k(dv,t);break;case 24:Kr(h_,t)}}function Ws(e){return(e.mode&Ig)!==Pg}function Gs(e,t){Ws(e)?(xi(),qs(t,e),yi()):qs(t,e)}function Ks(e,t,n){Ws(e)?(xi(),Js(n,e,t),yi()):Js(n,e,t)}function qs(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&yy)!==_y&&(oS=!0),r=he(t,Fv,n),(e&yy)!==_y&&(oS=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&by)===0?(n.tag&yy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
146
+
147
+ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+a+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,he(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){jl(t,t.return,e)}}function Js(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&yy)!==_y&&(oS=!0),i=t,he(i,Lv,i,n,s),(e&yy)!==_y&&(oS=!1))}r=r.next}while(r!==a)}}catch(e){jl(t,t.return,e)}}function Ys(e,t){Ws(e)?(xi(),qs(t,e),yi()):qs(t,e)}function Xs(e,t,n){Ws(e)?(xi(),Js(n,e,t),yi()):Js(n,e,t)}function Zs(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||gb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(e)||`instance`));try{he(e,ia,t,n)}catch(t){jl(e,e.return,t)}}}function Qs(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function $s(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||gb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(e)||`instance`));try{var i=$o(e.type,n),a=he(e,Qs,t,i,r);n=xb,a!==void 0||n.has(e.type)||(n.add(e.type),he(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,D(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){jl(e,e.return,t)}}function ec(e,t,n){n.props=$o(e.type,e.memoizedProps),n.state=e.memoizedState,Ws(e)?(xi(),he(e,Nv,e,t,n),yi()):he(e,Nv,e,t,n)}function tc(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Ws(e))try{xi(),e.refCleanup=t(n)}finally{yi()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,D(e)),t.current=n}}function nc(e,t){try{he(e,tc,e)}catch(n){jl(e,t,n)}}function rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Ws(e))try{xi(),he(e,r)}finally{yi(e)}else he(e,r)}catch(n){jl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Ws(e))try{xi(),he(e,n,null)}finally{yi(e)}else he(e,n,null)}catch(n){jl(e,t,n)}else n.current=null}function ic(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,iv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function ac(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,iv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function oc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{he(e,Gu,r,t,n,e)}catch(t){jl(e,e.return,t)}}function sc(e,t,n){try{he(e,qu,e.stateNode,e.type,n,t,e)}catch(t){jl(e,e.return,t)}}function cc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zu(e.type)||e.tag===4}function lc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||cc(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&&Zu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Xu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Xu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn));else if(r!==4&&(r===27&&Zu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}function fc(e){for(var t,n=e.return;n!==null;){if(cc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=lc(e),dc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Ju(n),t.flags&=-33),t=lc(e),dc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=lc(e),uc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function pc(e){var t=e.stateNode,n=e.memoizedProps;try{he(e,wd,e.type,n,t,e)}catch(t){jl(e,e.return,t)}}function mc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function hc(e,t){if(e=e.containerInfo,$S=WC,e=Fn(e),In(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(eC={focusedElem:e,selectionRange:n},WC=!1,Eb=t;Eb!==null;)if(t=Eb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Eb=e;else for(;Eb!==null;){switch(e=t=Eb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&$s(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)cd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Eb=e;break}Eb=t.return}}function gc(e,t,n){var r=ui(),i=fi(),a=mi(),o=hi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Oc(e,n),s&4&&Gs(n,by|vy);break;case 1:if(Oc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||gb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(n)||`instance`)),Ws(n)?(xi(),he(n,Dv,n,e),yi()):he(n,Dv,n,e);else{var c=$o(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||gb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(n)||`instance`)),Ws(n)?(xi(),he(n,kv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),yi()):he(n,kv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Zs(n),s&512&&nc(n,n.return);break;case 3:if(t=oi(),Oc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{he(n,ia,s,c)}catch(e){jl(n,n.return,e)}}e.effectDuration+=si(t);break;case 27:t===null&&s&4&&pc(n);case 26:case 5:if(Oc(e,n),t===null){if(s&4)oc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{he(n,Ku,c,e,t,n)}catch(e){jl(n,n.return,e)}}}s&512&&nc(n,n.return);break;case 12:if(s&4){s=oi(),Oc(e,n),e=n.stateNode,e.effectDuration+=ci(s);try{he(n,ic,n,t,x_,e.effectDuration)}catch(e){jl(n,n.return,e)}}else Oc(e,n);break;case 31:Oc(e,n),s&4&&bc(e,n);break;case 13:Oc(e,n),s&4&&xc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Fl.bind(null,n),md(e,s))));break;case 22:if(s=n.memoizedState!==null||Sb,!s){t=t!==null&&t.memoizedState!==null||Cb,c=Sb;var l=Cb;Sb=s,(Cb=t)&&!l?(Mc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Kn(n,D_,O_)):Oc(e,n),Sb=c,Cb=l}break;case 30:break;default:Oc(e,n)}(n.mode&Ig)!==Pg&&0<=D_&&0<=O_&&((A_||.05<E_)&&Yn(n,D_,O_,E_,k_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<O_-D_&&(mc(n.return.alternate,n.return)||Gn(n,D_,O_,`Mount`))),di(r),pi(i),k_=a,A_=o}function _c(e){var t=e.alternate;t!==null&&(e.alternate=null,_c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&He(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vc(e,t,n){for(n=n.child;n!==null;)yc(e,t,n),n=n.sibling}function yc(e,t,n){if(jp&&typeof jp.onCommitFiberUnmount==`function`)try{jp.onCommitFiberUnmount(Ap,n)}catch(e){Mp||(Mp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=ui(),i=fi(),a=mi(),o=hi();switch(n.tag){case 26:Cb||rc(n,t),vc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Cb||rc(n,t);var s=kb,c=Ab;Zu(n.type)&&(kb=n.stateNode,Ab=!1),vc(e,t,n),he(n,Td,n.stateNode),kb=s,Ab=c;break;case 5:Cb||rc(n,t);case 6:if(s=kb,c=Ab,kb=null,vc(e,t,n),kb=s,Ab=c,kb!==null)if(Ab)try{he(n,$u,kb,n.stateNode)}catch(e){jl(n,t,e)}else try{he(n,Qu,kb,n.stateNode)}catch(e){jl(n,t,e)}break;case 18:kb!==null&&(Ab?(e=kb,ed(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),bf(e)):ed(kb,n.stateNode));break;case 4:s=kb,c=Ab,kb=n.stateNode.containerInfo,Ab=!0,vc(e,t,n),kb=s,Ab=c;break;case 0:case 11:case 14:case 15:Js(yy,n,t),Cb||Ks(n,t,by),vc(e,t,n);break;case 1:Cb||(rc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&ec(n,t,s)),vc(e,t,n);break;case 21:vc(e,t,n);break;case 22:Cb=(s=Cb)||n.memoizedState!==null,vc(e,t,n),Cb=s;break;default:vc(e,t,n)}(n.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(n,D_,O_,E_,k_),di(r),pi(i),k_=a,A_=o}function bc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{he(t,xd,e)}catch(e){jl(t,t.return,e)}}}function xc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{he(t,Sd,e)}catch(e){jl(t,t.return,e)}}function Sc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Cc(e,t){var n=Sc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Np)if(Db!==null&&Ob!==null)Vl(Ob,Db);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Il.bind(null,e,t);t.then(r,r)}})}function wc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=ui(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Zu(c.type)){kb=c.stateNode,Ab=!1;break a}break;case 5:kb=c.stateNode,Ab=!1;break a;case 3:case 4:kb=c.stateNode.containerInfo,Ab=!0;break a}c=c.return}if(kb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);yc(i,a,o),kb=null,Ab=!1,(o.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Gn(o,D_,O_,`Unmount`),di(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tc(t,e),t=t.sibling}function Tc(e,t){var n=ui(),r=fi(),i=mi(),a=hi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wc(t,e),Ec(e),s&4&&(Js(yy|vy,e,e.return),qs(yy|vy,e),Ks(e,e.return,by|vy));break;case 1:if(wc(t,e),Ec(e),s&512&&(Cb||o===null||rc(o,o.return)),s&64&&Sb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=jb,wc(t,e),Ec(e),s&512&&(Cb||o===null||rc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Qp]||l[Gp]||l.namespaceURI===Fm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Cu(l,s,o),l[Gp]=e,qe(l),s=l;break a;case`link`:var u=Bd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Cu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Bd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],be(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Cu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Gp]=e,qe(l),s=l}e.stateNode=s}else Vd(c,e.type,e.stateNode);else e.stateNode=Id(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&sc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Vd(c,e.type,e.stateNode):Id(c,s,e.memoizedProps))}break;case 27:wc(t,e),Ec(e),s&512&&(Cb||o===null||rc(o,o.return)),o!==null&&s&4&&sc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(wc(t,e),Ec(e),s&512&&(Cb||o===null||rc(o,o.return)),e.flags&32){c=e.stateNode;try{he(e,Ju,c)}catch(t){jl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,sc(e,c,o===null?c:o.memoizedProps)),s&1024&&(wb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(wc(t,e),Ec(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{he(e,Yu,c,o,s)}catch(t){jl(e,e.return,t)}}break;case 3:if(c=oi(),yC=null,l=jb,jb=Ed(t.containerInfo),wc(t,e),jb=l,Ec(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{he(e,bd,t.containerInfo)}catch(t){jl(e,e.return,t)}wb&&(wb=!1,Dc(e)),t.effectDuration+=si(c);break;case 4:s=jb,jb=Ed(e.stateNode.containerInfo),wc(t,e),Ec(e),jb=s;break;case 12:s=oi(),wc(t,e),Ec(e),e.stateNode.effectDuration+=ci(s);break;case 31:wc(t,e),Ec(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Cc(e,s)));break;case 13:wc(t,e),Ec(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Cx=xp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Cc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=Sb,m=Cb;if(Sb=p||c,Cb=m||f,wc(t,e),Cb=m,Sb=p,f&&!c&&!p&&!m&&(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Kn(e,D_,O_),Ec(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Eg:t._visibility|Eg,!c||o===null||f||Sb||Cb||(Ac(e),(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Gn(e,D_,O_,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?he(f,rd,l):he(f,od,f.stateNode,f.memoizedProps)}catch(e){jl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?he(f,id,u):he(f,sd,u,f.memoizedProps)}catch(e){jl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?he(f,nd,d):he(f,ad,f.stateNode)}catch(e){jl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Cc(e,o))));break;case 19:wc(t,e),Ec(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Cc(e,s)));break;case 30:break;case 21:break;default:wc(t,e),Ec(e)}(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&((A_||.05<E_)&&Yn(e,D_,O_,E_,k_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<O_-D_&&(mc(e.return.alternate,e.return)||Gn(e,D_,O_,`Mount`))),di(n),pi(r),k_=i,A_=a}function Ec(e){var t=e.flags;if(t&2){try{he(e,fc,e)}catch(t){jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Oc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gc(e,t.alternate,t),t=t.sibling}function kc(e){var t=ui(),n=fi(),r=mi(),i=hi();switch(e.tag){case 0:case 11:case 14:case 15:Ks(e,e.return,by),Ac(e);break;case 1:rc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&ec(e,e.return,a),Ac(e);break;case 27:he(e,Td,e.stateNode);case 26:case 5:rc(e,e.return),Ac(e);break;case 22:e.memoizedState===null&&Ac(e);break;case 30:Ac(e);break;default:Ac(e)}(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(e,D_,O_,E_,k_),di(t),pi(n),k_=r,A_=i}function Ac(e){for(e=e.child;e!==null;)kc(e),e=e.sibling}function jc(e,t,n,r){var i=ui(),a=fi(),o=mi(),s=hi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Mc(e,n,r),Gs(n,by);break;case 1:if(Mc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&he(n,Dv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{he(n,ra,t,e)}catch(e){jl(n,n.return,e)}}r&&c&64&&Zs(n),nc(n,n.return);break;case 27:pc(n);case 26:case 5:Mc(e,n,r),r&&t===null&&c&4&&oc(n),nc(n,n.return);break;case 12:if(r&&c&4){c=oi(),Mc(e,n,r),r=n.stateNode,r.effectDuration+=ci(c);try{he(n,ic,n,t,x_,r.effectDuration)}catch(e){jl(n,n.return,e)}}else Mc(e,n,r);break;case 31:Mc(e,n,r),r&&c&4&&bc(e,n);break;case 13:Mc(e,n,r),r&&c&4&&xc(e,n);break;case 22:n.memoizedState===null&&Mc(e,n,r),nc(n,n.return);break;case 30:break;default:Mc(e,n,r)}(n.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(n,D_,O_,E_,k_),di(i),pi(a),k_=o,A_=s}function Mc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)jc(e,t.alternate,t,n),t=t.sibling}function Nc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&ni(e),n!=null&&ri(n))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ni(t),e!=null&&ri(e))}function Fc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Ic(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Ic(e,t,n,r,i){var a=ui(),o=fi(),s=mi(),c=hi(),l=bg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ig)!==Pg&&0<t.actualStartTime&&t.flags&1&&qn(t,t.actualStartTime,i,Mb,n),Fc(e,t,n,r,i),u&2048&&Ys(t,xy|vy);break;case 1:(t.mode&Ig)!==Pg&&0<t.actualStartTime&&(t.flags&128?Jn(t,t.actualStartTime,i,[]):t.flags&1&&qn(t,t.actualStartTime,i,Mb,n)),Fc(e,t,n,r,i);break;case 3:var d=oi(),f=Mb;Mb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Fc(e,t,n,r,i),Mb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(ni(r),n!=null&&ri(n))),e.passiveEffectDuration+=si(d);break;case 12:if(u&2048){u=oi(),Fc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ci(u);try{he(t,ac,t,t.alternate,x_,e.passiveEffectDuration)}catch(e){jl(t,t.return,e)}}else Fc(e,t,n,r,i);break;case 31:u=Mb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Mb=!1,d=d.hydrationErrors,d!==null&&Jn(t,t.actualStartTime,i,d)):Mb=!0):Mb=!1,Fc(e,t,n,r,i),Mb=u;break;case 13:u=Mb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Mb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Mb=!1,d=d.hydrationErrors,d!==null&&Jn(t,t.actualStartTime,i,d)):Mb=!0),Fc(e,t,n,r,i),Mb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&Dg?Fc(e,t,n,r,i):(f._visibility|=Dg,Lc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Ig)===Pg||Mb||(e=t.actualStartTime,0<=e&&.05<i-e&&Kn(t,e,i),0<=D_&&0<=O_&&.05<O_-D_&&Kn(t,D_,O_))):f._visibility&Dg?Fc(e,t,n,r,i):zc(e,t,n,r,i),u&2048&&Nc(d,t);break;case 24:Fc(e,t,n,r,i),u&2048&&Pc(t.alternate,t);break;default:Fc(e,t,n,r,i)}(t.mode&Ig)!==Pg&&((e=!Mb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Gn(t,n,i,`Mount`)),0<=D_&&0<=O_&&((A_||.05<E_)&&Yn(t,D_,O_,E_,k_),e&&.05<O_-D_&&Gn(t,D_,O_,`Mount`))),di(a),pi(o),k_=s,A_=c,bg=l}function Lc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Rc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Rc(e,t,n,r,i,a){var o=ui(),s=fi(),c=mi(),l=hi(),u=bg;i&&(t.mode&Ig)!==Pg&&0<t.actualStartTime&&t.flags&1&&qn(t,t.actualStartTime,a,Mb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Lc(e,t,n,r,i,a),Ys(t,xy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Dg,Lc(e,t,n,r,i,a)):f._visibility&Dg?Lc(e,t,n,r,i,a):zc(e,t,n,r,a),i&&d&2048&&Nc(t.alternate,t);break;case 24:Lc(e,t,n,r,i,a),i&&d&2048&&Pc(t.alternate,t);break;default:Lc(e,t,n,r,i,a)}(t.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(t,D_,O_,E_,k_),di(o),pi(s),k_=c,A_=l,bg=u}function zc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=bg;(a.mode&Ig)!==Pg&&0<a.actualStartTime&&a.flags&1&&qn(a,a.actualStartTime,l,Mb,s);var d=a.flags;switch(a.tag){case 22:zc(o,a,s,c,l),d&2048&&Nc(a.alternate,a);break;case 24:zc(o,a,s,c,l),d&2048&&Pc(a.alternate,a);break;default:zc(o,a,s,c,l)}bg=u,a=t}}function Bc(e,t,n){if(e.subtreeFlags&Nb)for(e=e.child;e!==null;)Vc(e,t,n),e=e.sibling}function Vc(e,t,n){switch(e.tag){case 26:Bc(e,t,n),e.flags&Nb&&e.memoizedState!==null&&Wd(n,jb,e.memoizedState,e.memoizedProps);break;case 5:Bc(e,t,n);break;case 3:case 4:var r=jb;jb=Ed(e.stateNode.containerInfo),Bc(e,t,n),jb=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nb,Nb=16777216,Bc(e,t,n),Nb=r):Bc(e,t,n));break;default:Bc(e,t,n)}}function V(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ui();Eb=r,Kc(r,e),(r.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Gn(r,D_,O_,`Unmount`),di(i)}V(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uc(e),e=e.sibling}function Uc(e){var t=ui(),n=fi(),r=mi(),i=hi();switch(e.tag){case 0:case 11:case 15:Hc(e),e.flags&2048&&Xs(e,e.return,xy|vy);break;case 3:var a=oi();Hc(e),e.stateNode.passiveEffectDuration+=si(a);break;case 12:a=oi(),Hc(e),e.stateNode.passiveEffectDuration+=ci(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Dg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Dg,Wc(e),(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Gn(e,D_,O_,`Disconnect`)):Hc(e);break;default:Hc(e)}(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(e,D_,O_,E_,k_),di(t),pi(n),A_=i,k_=r}function Wc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ui();Eb=r,Kc(r,e),(r.mode&Ig)!==Pg&&0<=D_&&0<=O_&&.05<O_-D_&&Gn(r,D_,O_,`Unmount`),di(i)}V(e)}for(e=e.child;e!==null;)Gc(e),e=e.sibling}function Gc(e){var t=ui(),n=fi(),r=mi(),i=hi();switch(e.tag){case 0:case 11:case 15:Xs(e,e.return,xy),Wc(e);break;case 22:var a=e.stateNode;a._visibility&Dg&&(a._visibility&=~Dg,Wc(e));break;default:Wc(e)}(e.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(e,D_,O_,E_,k_),di(t),pi(n),A_=i,k_=r}function Kc(e,t){for(;Eb!==null;){var n=Eb,r=n,i=t,a=ui(),o=fi(),s=mi(),c=hi();switch(r.tag){case 0:case 11:case 15:Xs(r,i,xy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&ni(i));break;case 24:ri(r.memoizedState.cache)}if((r.mode&Ig)!==Pg&&0<=D_&&0<=O_&&(A_||.05<E_)&&Yn(r,D_,O_,E_,k_),di(a),pi(o),A_=c,k_=s,r=n.child,r!==null)r.return=n,Eb=r;else a:for(n=e;Eb!==null;){if(r=Eb,a=r.sibling,o=r.return,_c(r),r===n){Eb=null;break a}if(a!==null){a.return=o,Eb=a;break a}Eb=o}}}function qc(){Ib.forEach(function(e){return e()})}function Jc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||H.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Yc(e){if((Jb&zb)!==Rb&&Zb!==0)return Zb&-Zb;var t=H.T;return t===null?Be():(t._updatedFibers||=new Set,t._updatedFibers.add(e),$l())}function Xc(){if(vx===0)if(!(Zb&536870912)||e_){var e=Rp;Rp<<=1,!(Rp&3932160)&&(Rp=262144),vx=e}else vx=536870912;return e=fy.current,e!==null&&(e.flags|=32),vx}function Zc(e,t,n){if(oS&&console.error(`useInsertionEffect must not schedule updates.`),tS&&(nS=!0),(e===Yb&&(cx===ex||cx===sx)||e.cancelPendingCommit!==null)&&(al(e,0),tl(e,Zb,vx,!1)),Me(e,n),(Jb&zb)!==Rb&&e===Yb){if(hp)switch(t.tag){case 0:case 11:case 15:e=Xb&&D(Xb)||`Unknown`,lS.has(e)||(lS.add(e),t=D(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:cS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Np&&Le(e,t,n),Ul(t),e===Yb&&((Jb&zb)===Rb&&(gx|=n),mx===Gb&&tl(e,Zb,vx,!1)),Wl(e)}function Qc(e,t,n){if((Jb&(zb|Bb))!==Rb)throw Error(`Should not already be working.`);if(Zb!==0&&Xb!==null){var r=Xb,i=xp();switch(nv){case tx:case ex:var a=rv;gg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,_g,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,_g,void 0,`primary-light`));break;case sx:a=rv,gg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,_g,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,_g,void 0,`primary-light`));break;default:gg&&(r=i-rv,3>r||console.timeStamp(`Blocked`,rv,i,_g,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Oe(e,t))?ml(e,t):fl(e,t,!0);var o=n;do{if(a===Vb){dx&&!n&&tl(e,t,0,!1),t=cx,rv=g_(),nv=t;break}else{if(r=xp(),i=e.current.alternate,o&&!el(i)){Wn(t),i=b_,a=r,!gg||a<=i||(kx?kx.run(console.timeStamp.bind(console,`Teared Render`,i,a,yg,vg,`error`)):console.timeStamp(`Teared Render`,i,a,yg,vg,`error`)),il(t,r),a=fl(e,t,!1),o=!1;continue}if(a===Ub){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Wn(t),er(b_,r,t,kx),il(t,r),t=s;a:{r=e,a=o,o=bx;var c=r.current.memoizedState.isDehydrated;if(c&&(al(r,s).flags|=256),s=fl(r,s,!1),s!==Ub){if(fx&&!c){r.errorRecoveryDisabledLanes|=a,gx|=a,a=Gb;break a}r=xx,xx=o,r!==null&&(xx===null?xx=r:xx.push.apply(xx,r))}a=s}if(o=!1,a!==Ub)continue;r=xp()}}if(a===Hb){Wn(t),er(b_,r,t,kx),il(t,r),al(e,0),tl(e,t,0,!0);break}a:{switch(n=e,a){case Vb:case Hb:throw Error(`Root did not complete. This is a bug in React.`);case Gb:if((t&4194048)!==t)break;case Kb:Wn(t),Zn(b_,r,t,kx),il(t,r),i=t,i&127?B_=r:i&4194048&&(Z_=r),tl(n,t,vx,!ux);break a;case Ub:xx=null;break;case Wb:case qb:break;default:throw Error(`Unknown root exit status.`)}if(H.actQueue!==null)Sl(n,i,t,xx,Ox,Sx,vx,gx,yx,a,null,null,b_,r);else{if((t&62914560)===t&&(o=Cx+Tx-xp(),10<o)){if(tl(n,t,vx,!ux),De(n,0,!0)!==0)break a;Wx=t,n.timeoutHandle=iC($c.bind(null,n,i,xx,Ox,Sx,t,vx,gx,yx,ux,a,`Throttled`,b_,r),o);break a}$c(n,i,xx,Ox,Sx,t,vx,gx,yx,ux,a,null,b_,r)}}}break}while(1);Wl(e)}function $c(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=oC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},Vc(t,a,h),m=(a&62914560)===a?Cx-xp():(a&4194048)===a?wx-xp():0,m=Gd(h,m),m!==null)){Wx=a,e.cancelPendingCommit=m(Sl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),tl(e,a,o,!l);return}Sl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function el(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tl(e,t,n,r){t&=~_x,t&=~gx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Pp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ne(e,n,t)}function nl(){return(Jb&(zb|Bb))===Rb?(Gl(0,!1),!1):!0}function rl(){if(Xb!==null){if(cx===Qb)var e=Xb.return;else e=Xb,Wr(),Ta(e),Kv=null,qv=0,e=Xb;for(;e!==null;)B(e.alternate,e),e=e.return;Xb=null}}function il(e,t){e&127&&(j_=t),e&4194048&&(V_=t),e&62914560&&(Q_=t),e&2080374784&&($_=t)}function al(e,t){gg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,vg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,vg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,vg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,vg,`primary-light`));var n=b_;if(b_=g_(),Zb!==0&&0<n){if(Wn(Zb),mx===Wb||mx===Gb)Zn(n,b_,t,kx);else{var r=b_,i=kx;if(gg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,yg,vg,a)):console.timeStamp(o,n,r,yg,vg,a)}}il(Zb,b_)}if(n=kx,kx=null,t&127){kx=N_,i=0<=M_&&M_<j_?j_:M_,r=0<=L_&&L_<j_?j_:L_,a=0<=r?r:0<=i?i:b_,0<=B_?(Wn(2),Qn(B_,a,t,n)):ev&127&&(Wn(2),rr(j_,a,tv)),n=i;var s=r,c=R_,l=0<z_,u=P_===v_,d=P_===y_;if(i=b_,r=N_,a=F_,o=I_,gg){if(yg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,yg,vg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,yg,vg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:yg,trackGroup:vg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}M_=-1.1,P_=0,I_=F_=null,B_=-1.1,z_=L_,L_=-1.1,j_=g_()}if(t&4194048&&(kx=G_,i=0<=H_&&H_<V_?V_:H_,n=0<=U_&&U_<V_?V_:U_,r=0<=J_&&J_<V_?V_:J_,a=0<=r?r:0<=n?n:b_,0<=Z_?(Wn(256),Qn(Z_,a,t,kx)):ev&4194048&&(Wn(256),rr(V_,a,tv)),d=r,s=Y_,c=0<X_,l=W_===y_,a=b_,r=G_,o=K_,u=q_,gg&&(yg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,yg,vg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,yg,vg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,yg,vg,`primary-dark`)):console.timeStamp(`Action`,i,n,yg,vg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:yg,trackGroup:vg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),U_=H_=-1.1,W_=0,Z_=-1.1,X_=J_,J_=-1.1,V_=g_()),t&62914560&&ev&62914560&&(Wn(4194304),rr(Q_,b_,tv)),t&2080374784&&ev&2080374784&&(Wn(268435456),rr($_,b_,tv)),n=e.timeoutHandle,n!==oC&&(e.timeoutHandle=oC,aC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Wx=0,rl(),Yb=e,Xb=n=_r(e.current,null),Zb=t,cx=Qb,lx=null,ux=!1,dx=Oe(e,t),fx=!1,mx=Vb,yx=vx=_x=gx=hx=0,xx=bx=null,Sx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Pp(r),a=1<<i,t|=e[i],r&=~a;return px=t,ir(),e=ag(),1e3<e-rg&&(H.recentlyCreatedOwnerStacks=0,rg=e),fv.discardPendingWarnings(),n}function ol(e,t){Oy=null,H.H=Hy,H.getCurrentStack=null,hp=!1,mp=null,t===Bv||t===Hv?(t=Ni(),cx=tx):t===Vv?(t=Ni(),cx=nx):cx=t===ub?ox:typeof t==`object`&&t&&typeof t.then==`function`?ix:$b,lx=t;var n=Xb;n===null?(mx=Hb,rs(e,Tr(t,e.current))):n.mode&Ig&&_i(n)}function sl(){var e=fy.current;return e===null?!0:(Zb&4194048)===Zb?py===null:(Zb&62914560)===Zb||Zb&536870912?e===py:!1}function cl(){var e=H.H;return H.H=Hy,e===null?Hy:e}function ll(){var e=H.A;return H.A=Pb,e}function ul(e){kx===null&&(kx=e._debugTask==null?null:e._debugTask)}function dl(){mx=Gb,ux||(Zb&4194048)!==Zb&&fy.current!==null||(dx=!0),!(hx&134217727)&&!(gx&134217727)||Yb===null||tl(Yb,Zb,vx,!1)}function fl(e,t,n){var r=Jb;Jb|=zb;var i=cl(),a=ll();if(Yb!==e||Zb!==t){if(Np){var o=e.memoizedUpdaters;0<o.size&&(Vl(e,Zb),o.clear()),Re(e,t)}Ox=null,al(e,t)}t=!1,o=mx;a:do try{if(cx!==Qb&&Xb!==null){var s=Xb,c=lx;switch(cx){case ox:rl(),o=Kb;break a;case tx:case ex:case sx:case ix:fy.current===null&&(t=!0);var l=cx;if(cx=Qb,lx=null,yl(e,s,c,l),n&&dx){o=Vb;break a}break;default:l=cx,cx=Qb,lx=null,yl(e,s,c,l)}}pl(),o=mx;break}catch(t){ol(e,t)}while(1);return t&&e.shellSuspendCounter++,Wr(),Jb=r,H.H=i,H.A=a,Xb===null&&(Yb=null,Zb=0,ir()),o}function pl(){for(;Xb!==null;)gl(Xb)}function ml(e,t){var n=Jb;Jb|=zb;var r=cl(),i=ll();if(Yb!==e||Zb!==t){if(Np){var a=e.memoizedUpdaters;0<a.size&&(Vl(e,Zb),a.clear()),Re(e,t)}Ox=null,Ex=xp()+Dx,al(e,t)}else dx=Oe(e,t);a:do try{if(cx!==Qb&&Xb!==null)b:switch(t=Xb,a=lx,cx){case $b:cx=Qb,lx=null,yl(e,t,a,$b);break;case ex:case sx:if(Ai(a)){cx=Qb,lx=null,_l(t);break}t=function(){cx!==ex&&cx!==sx||Yb!==e||(cx=ax),Wl(e)},a.then(t,t);break a;case tx:cx=ax;break a;case nx:cx=rx;break a;case ax:Ai(a)?(cx=Qb,lx=null,_l(t)):(cx=Qb,lx=null,yl(e,t,a,ax));break;case rx:var o=null;switch(Xb.tag){case 26:o=Xb.memoizedState;case 5:case 27:var s=Xb;if(o?Ud(o):s.stateNode.complete){cx=Qb,lx=null;var c=s.sibling;if(c!==null)Xb=c;else{var l=s.return;l===null?Xb=null:(Xb=l,bl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}cx=Qb,lx=null,yl(e,t,a,rx);break;case ix:cx=Qb,lx=null,yl(e,t,a,ix);break;case ox:rl(),mx=Kb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}H.actQueue===null?hl():pl();break}catch(t){ol(e,t)}while(1);return Wr(),H.H=r,H.A=i,Jb=n,Xb===null?(Yb=null,Zb=0,ir(),mx):Vb}function hl(){for(;Xb!==null&&!yp();)gl(Xb)}function gl(e){var t=e.alternate;(e.mode&Ig)===Pg?t=he(e,Fs,t,e,px):(gi(e),t=he(e,Fs,t,e,px),_i(e)),e.memoizedProps=e.pendingProps,t===null?bl(e):Xb=t}function _l(e){var t=he(e,vl,e);e.memoizedProps=e.pendingProps,t===null?bl(e):Xb=t}function vl(e){var t=e.alternate,n=(e.mode&Ig)!==Pg;switch(n&&gi(e),e.tag){case 15:case 0:t=bs(t,e,e.pendingProps,e.type,void 0,Zb);break;case 11:t=bs(t,e,e.pendingProps,e.type.render,e.ref,Zb);break;case 5:Ta(e);default:B(t,e),e=Xb=vr(e,px),t=Fs(t,e,px)}return n&&_i(e),t}function yl(e,t,n,r){Wr(),Ta(t),Kv=null,qv=0;var i=t.return;try{if(cs(e,i,t,n,Zb)){mx=Hb,rs(e,Tr(n,e.current)),Xb=null;return}}catch(t){if(i!==null)throw Xb=i,t;mx=Hb,rs(e,Tr(n,e.current)),Xb=null;return}t.flags&32768?(e_||r===$b?e=!0:dx||Zb&536870912?e=!1:(ux=e=!0,(r===ex||r===sx||r===tx||r===ix)&&(r=fy.current,r!==null&&r.tag===13&&(r.flags|=16384))),xl(t,e)):bl(t)}function bl(e){var t=e;do{if(t.flags&32768){xl(t,ux);return}var n=t.alternate;if(e=t.return,gi(t),n=he(t,Hs,n,t,px),(t.mode&Ig)!==Pg&&vi(t),n!==null){Xb=n;return}if(t=t.sibling,t!==null){Xb=t;return}Xb=t=e}while(t!==null);mx===Vb&&(mx=qb)}function xl(e,t){do{var n=Us(e.alternate,e);if(n!==null){n.flags&=32767,Xb=n;return}if((e.mode&Ig)!==Pg){vi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xb=e;return}Xb=e=n}while(e!==null);mx=Kb,Xb=null}function Sl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Ol();while(Vx!==Fx);if(fv.flushLegacyContextWarning(),fv.flushPendingUnsafeLifecycleWarnings(),(Jb&(zb|Bb))!==Rb)throw Error(`Should not already be working.`);if(Wn(n),l===Ub?er(f,p,n,kx):r===null?Xn(f,p,n,kx):$n(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,kx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Ag,N(e,n,a,o,s,c),e===Yb&&(Xb=Yb=null,Zb=0),Ux=t,Hx=e,Wx=n,Gx=a,qx=i,Jx=r,Kx=p,Yx=d,Xx=jx,Zx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Hl(Tp,function(){return rC=window.event,Xx===jx&&(Xx=Nx),kl(),null})):(e.callbackNode=null,e.callbackPriority=0),C_=null,x_=g_(),d!==null&&tr(p,x_,d,kx),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=H.T,H.T=null,i=qf.p,qf.p=Bp,o=Jb,Jb|=Bb;try{hc(e,t,n)}finally{Jb=o,qf.p=i,H.T=r}}Vx=Ix,Cl(),wl(),Tl()}}function Cl(){if(Vx===Ix){Vx=Fx;var e=Hx,t=Ux,n=Wx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=H.T,H.T=null;var i=qf.p;qf.p=Bp;var a=Jb;Jb|=Bb;try{Db=n,Ob=e,li(),Tc(t,e),Ob=Db=null,n=eC;var o=Fn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Pn(s.ownerDocument.documentElement,s)){if(c!==null&&In(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Nn(s,h),v=Nn(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}WC=!!$S,eC=$S=null}finally{Jb=a,qf.p=i,H.T=r}}e.current=t,Vx=Lx}}function wl(){if(Vx===Lx){Vx=Fx;var e=Zx;if(e!==null){x_=g_();var t=S_,n=x_;!gg||n<=t||(tv?tv.run(console.timeStamp.bind(console,e,t,n,yg,vg,`secondary-light`)):console.timeStamp(e,t,n,yg,vg,`secondary-light`))}e=Hx,t=Ux,n=Wx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=H.T,H.T=null;var i=qf.p;qf.p=Bp;var a=Jb;Jb|=Bb;try{Db=n,Ob=e,li(),gc(e,t.alternate,t),Ob=Db=null}finally{Jb=a,qf.p=i,H.T=r}}e=Kx,t=Yx,S_=g_(),e=t===null?e:x_,t=S_,n=Xx===Mx,r=kx,C_===null?!gg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,yg,vg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,yg,vg,n?`error`:`secondary-dark`)):nr(e,t,C_,!1,r),Vx=Rx}}function Tl(){if(Vx===zx||Vx===Rx){if(Vx===zx){var e=S_;S_=g_();var t=S_,n=Xx===Mx;!gg||t<=e||(tv?tv.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,yg,vg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,yg,vg,n?` error`:`secondary-light`)),Xx!==Mx&&(Xx=Px)}Vx=Fx,bp(),e=Hx;var r=Ux;t=Wx,n=Jx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Vx=Bx:(Vx=Fx,Ux=Hx=null,Dl(e,e.pendingLanes),iS=0,aS=null);var a=e.pendingLanes;if(a===0&&(Ax=null),i||zl(e),a=ze(t),r=r.stateNode,jp&&typeof jp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Bp:var s=Cp;break;case Vp:s=wp;break;case Hp:s=Tp;break;case Up:s=Dp;break;default:s=Tp}jp.onCommitFiberRoot(Ap,r,s,o)}catch(e){Mp||(Mp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Np&&e.memoizedUpdaters.clear(),qc(),n!==null){o=H.T,s=qf.p,qf.p=Bp,H.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=El(l.stack);he(l.source,c,l.value,u)}}finally{H.T=o,qf.p=s}}Wx&3&&Ol(),Wl(e),a=e.pendingLanes,t&261930&&a&42?(av=!0,e===eS?$x++:($x=0,eS=e)):$x=0,i||il(t,S_),Gl(0,!1)}}function El(e){return e={componentStack:e},Object.defineProperty(e,`digest`,{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Dl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ri(t)))}function Ol(){return Cl(),wl(),Tl(),kl()}function kl(){if(Vx!==Bx)return!1;var e=Hx,t=Gx;Gx=0;var n=ze(Wx),r=Hp===0||Hp>n?Hp:n;n=H.T;var i=qf.p;try{qf.p=r,H.T=null;var a=qx;qx=null,r=Hx;var o=Wx;if(Vx=Fx,Ux=Hx=null,Wx=0,(Jb&(zb|Bb))!==Rb)throw Error(`Cannot flush passive effects while already rendering.`);Wn(o),tS=!0,nS=!1;var s=0;if(C_=null,s=xp(),Xx===Px)rr(S_,s,tv);else{var c=S_,l=s,u=Xx===Nx;!gg||l<=c||(kx?kx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,yg,vg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,yg,vg,`secondary-light`))}c=Jb,Jb|=Bb;var d=r.current;li(),Uc(d);var f=r.current;d=Kx,li(),Ic(r,f,o,a,d),zl(r),Jb=c;var p=xp();if(f=s,d=kx,C_===null?!gg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,yg,vg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,yg,vg,`secondary-dark`)):nr(f,p,C_,!0,d),il(o,p),Gl(0,!1),nS?r===aS?iS++:(iS=0,aS=r):iS=0,nS=tS=!1,jp&&typeof jp.onPostCommitFiberRoot==`function`)try{jp.onPostCommitFiberRoot(Ap,r)}catch(e){Mp||(Mp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{qf.p=i,H.T=n,Dl(e,t)}}function Al(e,t,n){t=Tr(n,t),bi(t),t=as(e.stateNode,t,2),e=Zi(e,t,2),e!==null&&(Me(e,2),Wl(e))}function jl(e,t,n){if(oS=!1,e.tag===3)Al(e,e,n);else{for(;t!==null;){if(t.tag===3){Al(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ax===null||!Ax.has(r))){e=Tr(n,e),bi(e),n=os(2),r=Zi(t,n,2),r!==null&&(ss(n,r,t,e),Me(r,2),Wl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,n)}}function Ml(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Lb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(fx=!0,i.add(n),r=Nl.bind(null,e,t,n),Np&&Vl(e,n),t.then(r,r))}function Nl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>M_&&(j_=M_=g_(),N_=__(`Promise Resolved`),P_=y_):n&4194048&&0>U_&&(V_=U_=g_(),G_=__(`Promise Resolved`),W_=y_),Jc()&&H.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Yb===e&&(Zb&n)===n&&(mx===Gb||mx===Wb&&(Zb&62914560)===Zb&&xp()-Cx<Tx?(Jb&zb)===Rb&&al(e,0):_x|=n,yx===Zb&&(yx=0)),Wl(e)}function Pl(e,t){t===0&&(t=Ae()),e=sr(e,t),e!==null&&(Me(e,t),Wl(e))}function Fl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pl(e,n)}function Il(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Pl(e,n)}function Ll(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Nf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?he(i,Rl,r,i):i.subtreeFlags&67108864&&he(i,Ll,r,i,a)):i.flags&67108864?a&&he(i,Rl,r,i):Ll(r,i,a),t=t.sibling}}function Rl(e,t){we(!0);try{kc(t),Gc(t),jc(e,t.alternate,t,!1),Rc(e,t,0,null,!1,0)}finally{we(!1)}}function zl(e){var t=!0;e.current.mode&(Lg|Rg)||(t=!1),Ll(e,e.current,t)}function Bl(e){if((Jb&zb)===Rb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=D(e)||`ReactComponent`,sS!==null){if(sS.has(t))return;sS.add(t)}else sS=new Set([t]);he(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function Vl(e,t){Np&&e.memoizedUpdaters.forEach(function(n){Le(e,n,t)})}function Hl(e,t){var n=H.actQueue;return n===null?_p(e,t):(n.push(t),uS)}function Ul(e){Jc()&&H.actQueue===null&&he(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,D(e))})}function Wl(e){e!==fS&&e.next===null&&(fS===null?dS=fS=e:fS=fS.next=e),hS=!0,H.actQueue===null?pS||(pS=!0,Ql()):mS||(mS=!0,Ql())}function Gl(e,t){if(!gS&&hS){gS=!0;do for(var n=!1,r=dS;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Pp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Xl(r,a))}else a=Zb,a=De(r,r===Yb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==oC),!(a&3)||Oe(r,a)||(n=!0,Xl(r,a));r=r.next}while(n);gS=!1}}function Kl(){rC=window.event,ql()}function ql(){hS=mS=pS=!1;var e=0;_S!==0&&Vu()&&(e=_S);for(var t=xp(),n=null,r=dS;r!==null;){var i=r.next,a=Jl(r,t);a===0?(r.next=null,n===null?dS=i:n.next=i,i===null&&(fS=n)):(n=r,(e!==0||a&3)&&(hS=!0)),r=i}Vx!==Fx&&Vx!==Bx||Gl(e,!1),_S!==0&&(_S=0)}function Jl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Pp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ke(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Yb,n=Zb,n=De(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oC),r=e.callbackNode,n===0||e===t&&(cx===ex||cx===sx)||e.cancelPendingCommit!==null)return r!==null&&Zl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Oe(e,n)){if(t=n&-n,t!==e.callbackPriority||H.actQueue!==null&&r!==vS)Zl(r);else return t;switch(ze(n)){case Bp:case Vp:n=wp;break;case Hp:n=Tp;break;case Up:n=Dp;break;default:n=Tp}return r=Yl.bind(null,e),H.actQueue===null?n=_p(n,r):(H.actQueue.push(r),n=vS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Zl(r),e.callbackPriority=2,e.callbackNode=null,2}function Yl(e,t){if(av=iv=!1,rC=window.event,Vx!==Fx&&Vx!==Bx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xx===jx&&(Xx=Nx),Ol()&&e.callbackNode!==n)return null;var r=Zb;return r=De(e,e===Yb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oC),r===0?null:(Qc(e,r,t),Jl(e,xp()),e.callbackNode!=null&&e.callbackNode===n?Yl.bind(null,e):null)}function Xl(e,t){if(Ol())return null;iv=av,av=!1,Qc(e,t,!0)}function Zl(e){e!==vS&&e!==null&&vp(e)}function Ql(){H.actQueue!==null&&H.actQueue.push(function(){return ql(),null}),cC(function(){(Jb&(zb|Bb))===Rb?ql():_p(Cp,Kl)})}function $l(){if(_S===0){var e=cv;e===0&&(e=Lp,Lp<<=1,!(Lp&261888)&&(Lp=256)),_S=e}return _S}function eu(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(be(e,`action`),tn(``+e))}function tu(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function nu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=eu((i[Kp]||null).action),o=r.submitter;o&&(t=(t=o[Kp]||null)?eu(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ah(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(_S!==0){var e=o?tu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),Mo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?tu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),Mo(n,t,a,e))},currentTarget:i}]})}}function ru(e,t,n){e.currentTarget=n;try{t(e)}catch(e){sg(e)}e.currentTarget=null}function iu(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?ru(a,s,l):he(c,ru,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?ru(a,s,l):he(c,ru,a,s,l),i=c}}}}function au(e,t){bS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Jp];n===void 0&&(n=t[Jp]=new Set);var r=e+`__bubble`;n.has(r)||(cu(t,e,2,!1),n.add(r))}function ou(e,t,n){bS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),cu(n,e,r,t)}function su(e){if(!e[xS]){e[xS]=!0,$p.forEach(function(t){t!==`selectionchange`&&(bS.has(t)||ou(t,!1,e),ou(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xS]||(t[xS]=!0,ou(`selectionchange`,!1,t))}}function cu(e,t,n,r){switch(uf(t)){case Bp:var i=af;break;case Vp:i=of;break;default:i=sf}n=i.bind(null,t,n,e),i=void 0,!eh||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function lu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ue(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}on(function(){var r=a,i=rn(n),o=[];a:{var s=tg.get(e);if(s!==void 0){var c=ah,l=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:c=yh;break;case`focusin`:l=`focus`,c=fh;break;case`focusout`:l=`blur`,c=fh;break;case`beforeblur`:case`afterblur`:c=fh;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=uh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=dh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=xh;break;case Jh:case Yh:case Xh:c=ph;break;case eg:c=Sh;break;case`scroll`:case`scrollend`:c=oh;break;case`wheel`:c=Ch;break;case`copy`:case`cut`:case`paste`:c=mh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=bh;break;case`toggle`:case`beforetoggle`:c=wh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=sn(p,f),h!=null&&u.push(uu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ym&&(l=n.relatedTarget||n.fromElement)&&(Ue(l)||l[qp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ue(l):null,l!==null&&(d=v(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=uh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=bh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ge(c),m=l==null?s:Ge(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ue(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=fu,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&pu(o,s,c,u,!1),l!==null&&d!==null&&pu(o,d,l,u,!0)}}a:{if(s=r?Ge(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=Cn;else if(vn(s))if(Rh)_=kn;else{_=Dn;var y=En}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Yt(r.elementType)&&(_=Cn):_=On;if(_&&=_(e,r)){bn(o,_,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&ft(s,`number`,s.value)}switch(y=r?Ge(r):window,e){case`focusin`:(vn(y)||y.contentEditable===`true`)&&(Vh=y,Hh=r,Uh=null);break;case`focusout`:Uh=Hh=Vh=null;break;case`mousedown`:Wh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wh=!1,Ln(o,n,i);break;case`selectionchange`:if(Bh)break;case`keydown`:case`keyup`:Ln(o,n,i)}var b;if(Dh)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Ph?mn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===Eh&&(x=`onCompositionStart`);x&&(Ah&&n.locale!==`ko`&&(Ph||x!==`onCompositionStart`?x===`onCompositionEnd`&&Ph&&(b=F()):(nh=i,rh=`value`in nh?nh.value:nh.textContent,Ph=!0)),y=du(r,x),0<y.length&&(x=new hh(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=hn(n),b!==null&&(x.data=b)))),(b=kh?gn(e,n):_n(e,n))&&(x=du(r,`onBeforeInput`),0<x.length&&(y=new gh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),nu(o,e,r,n,i)}iu(o,t)})}function uu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function du(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=sn(e,n),i!=null&&r.unshift(uu(e,i,a)),i=sn(e,t),i!=null&&r.push(uu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function fu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pu(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=sn(n,a),l!=null&&o.unshift(uu(n,l,c))):i||(l=sn(n,a),l!=null&&o.push(uu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function mu(e,t){Qt(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Hm||(Hm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:em,possibleRegistrationNames:tm};Yt(e)||typeof t.is==`string`||en(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function hu(e,t,n,r){t!==n&&(n=yu(n),yu(t)!==n&&(r[e]=t))}function gu(e,t,n){t.forEach(function(t){n[Tu(t)]=t===`style`?Eu(e):e.getAttribute(t)})}function _u(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function vu(e,t){return e=e.namespaceURI===Pm||e.namespaceURI===Fm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function yu(e){return ve(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,_e(e)),ye(e)),(typeof e==`string`?e:``+e).replace(AS,`
181
+ `).replace(jS,``)}function bu(e,t){return t=yu(t),yu(e)===t}function xu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Wt(r,t,!1),t===`body`||t===`textarea`&&r===``||Gt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Wt(``+r,t,!1),t!==`body`&&Gt(e,``+r));break;case`className`:et(e,`class`,r);break;case`tabIndex`:et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:et(e,n,r);break;case`style`:Jt(e,r,a);break;case`data`:if(t!==`object`){et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}be(r,n),r=tn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||DS||(DS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||ES||(ES=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||wS?t!==`button`||i.type==null||i.type===`submit`||wS?typeof r==`function`&&(i.name==null||TS||(TS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||DS||(DS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||ES||(ES=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(wS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(wS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&xu(e,t,`name`,i.name,i,null),xu(e,t,`formEncType`,i.formEncType,i,null),xu(e,t,`formMethod`,i.formMethod,i,null),xu(e,t,`formTarget`,i.formTarget,i,null)):(xu(e,t,`encType`,i.encType,i,null),xu(e,t,`method`,i.method,i,null),xu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}be(r,n),r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&_u(n,r),e.onclick=nn);break;case`onScroll`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}be(r,n),n=tn(``+r),e.setAttributeNS(MS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(be(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||kS[n]||(kS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(be(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(be(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(be(r,n),e.setAttribute(n,r));break;case`popover`:au(`beforetoggle`,e),au(`toggle`,e),$e(e,`popover`,r);break;case`xlinkActuate`:tt(e,MS,`xlink:actuate`,r);break;case`xlinkArcrole`:tt(e,MS,`xlink:arcrole`,r);break;case`xlinkRole`:tt(e,MS,`xlink:role`,r);break;case`xlinkShow`:tt(e,MS,`xlink:show`,r);break;case`xlinkTitle`:tt(e,MS,`xlink:title`,r);break;case`xlinkType`:tt(e,MS,`xlink:type`,r);break;case`xmlBase`:tt(e,NS,`xml:base`,r);break;case`xmlLang`:tt(e,NS,`xml:lang`,r);break;case`xmlSpace`:tt(e,NS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),$e(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:OS||typeof r!=`object`||!r||(OS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Xt(n),$e(e,n,r)):em.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&_u(n,r)}}function Su(e,t,n,r,i,a){switch(n){case`style`:Jt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&_u(n,r),e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(em.hasOwnProperty(n))r!=null&&typeof r!=`function`&&_u(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Kp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):$e(e,n,r)}}}function Cu(e,t,n){switch(mu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:au(`error`,e),au(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xu(e,t,a,o,n,null)}}i&&xu(e,t,`srcSet`,n.srcSet,n,null),r&&xu(e,t,`src`,n.src,n,null);return;case`input`:Xe(`input`,n),au(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xu(e,t,r,u,n,null)}}lt(e,n),dt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in Xe(`select`,n),au(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:xu(e,t,i,s,n,null)}gt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&ht(e,!!r,n,!0):ht(e,!!r,t,!1);return;case`textarea`:for(o in Xe(`textarea`,n),au(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:xu(e,t,o,s,n,null)}_t(e,n),xt(e,r,i,a);return;case`option`:for(c in pt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:xu(e,t,c,r,n,null)}return;case`dialog`:au(`beforetoggle`,e),au(`toggle`,e),au(`cancel`,e),au(`close`,e);break;case`iframe`:case`object`:au(`load`,e);break;case`video`:case`audio`:for(r=0;r<yS.length;r++)au(yS[r],e);break;case`image`:au(`error`,e),au(`load`,e);break;case`details`:au(`toggle`,e);break;case`embed`:case`source`:case`link`:au(`error`,e),au(`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(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xu(e,t,l,r,n,null)}return;default:if(Yt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&Su(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&xu(e,t,s,r,n,null))}function wu(e,t,n,r){switch(mu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||xu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&xu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||CS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),CS=!0),!t||r||SS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),SS=!0),ut(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||xu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&xu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?ht(e,!!t,t?[]:``,!1):ht(e,!!t,r,!0)):ht(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:xu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&xu(e,t,o,i,r,a)}yt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:xu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:xu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&xu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xu(e,t,l,f,r,p)}return;default:if(Yt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&Su(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Su(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&xu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||xu(e,t,d,f,r,p)}function Tu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Eu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Du(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(xe(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Nm.has(a)?(xe(o,a),r+=i+a.replace(Cm,`-$1`).toLowerCase().replace(wm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(Cm,`-$1`).toLowerCase().replace(wm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=yu(r),yu(t)!==r&&(n.style=Eu(e)))}}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(be(r,t),e===``+r)return}hu(t,e,r,a)}function ku(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}hu(t,e,r,a)}function Au(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(be(r,n),e===``+r)return}hu(t,e,r,a)}function ju(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(be(r,t),e===``+r))return}hu(t,e,r,a)}function Mu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(be(r,t),n=tn(``+r),e===n)return}hu(t,e,r,a)}function Nu(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Yt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(em.hasOwnProperty(c))typeof l!=`function`&&_u(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||hu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=vu(e,l),hu(c,o,l,i));continue;case`style`:a.delete(c),Du(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=Qe(e,`class`,l),hu(`className`,o,l,i);continue;default:r.context===XS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=Qe(e,c,l),hu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(em.hasOwnProperty(l))typeof c!=`function`&&_u(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||hu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=vu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Ou(e,l,`class`,c,a,i);continue;case`tabIndex`:Ou(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Du(e,c,i);continue;case`multiple`:a.delete(l),hu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),hu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),hu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),hu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Mu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===PS){a.delete(l.toLowerCase()),hu(l,`function`,c,i);continue}Mu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Mu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Au(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Au(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Au(e,l,l,c,a,i);continue;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`:ku(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(be(c,o),s===``+c)break a}hu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(be(c,o),s===``+c))break a}hu(o,s,c,d)}continue;case`rowSpan`:ju(e,l,`rowspan`,c,a,i);continue;case`start`:ju(e,l,l,c,a,i);continue;case`xHeight`:Ou(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Ou(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Ou(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Ou(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Ou(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Ou(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Ou(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Ou(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Ou(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Ou(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||kS[l]||(kS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),ku(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Xt(l),o=!1,r.context===XS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Lm.hasOwnProperty(u)&&Lm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,Ze(d))if(u.hasAttribute(d))u=u.getAttribute(d),be(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||hu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&gu(e,a,i),Object.keys(i).length===0?null:i}function Pu(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Fu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Iu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Fu(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Fu(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Lu(e){return e.nodeType===9?e:e.ownerDocument}function Ru(e){switch(e){case Fm:return ZS;case Pm:return QS;default:return XS}}function zu(e,t){if(e===XS)switch(t){case`svg`:return ZS;case`math`:return QS;default:return XS}return e===ZS&&t===`foreignObject`?XS:e}function Bu(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Vu(){var e=window.event;return e&&e.type===`popstate`?e===nC?!1:(nC=e,!0):(nC=null,!1)}function Hu(){var e=window.event;return e&&e!==rC?e.type:null}function Uu(){var e=window.event;return e&&e!==rC?e.timeStamp:-1.1}function Wu(e){setTimeout(function(){throw e})}function Gu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Ku(){}function qu(e,t,n,r){wu(e,t,n,r),e[Kp]=r}function Ju(e){Gt(e,``)}function Yu(e,t,n){e.nodeValue=n}function Xu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Kp]||null;if(t!==null){var n=We(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,he(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,he(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Zu(e){return e===`head`}function Qu(e,t){e.removeChild(t)}function $u(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function ed(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===zS||n===LS){if(r===0){e.removeChild(i),bf(t);return}r--}else if(n===RS||n===BS||n===VS||n===HS||n===IS)r++;else if(n===US)Td(e.ownerDocument.documentElement);else if(n===GS){n=e.ownerDocument.head,Td(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Qp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===WS&&Td(e.ownerDocument.body);n=i}while(n);bf(t)}function td(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===zS){if(e===0)break;e--}else n!==RS&&n!==BS&&n!==VS&&n!==HS||e++;n=r}while(n)}function nd(e){td(e,!0)}function rd(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function id(e){e.nodeValue=``}function ad(e){td(e,!1)}function od(e,t){t=t[YS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function sd(e,t){e.nodeValue=t}function cd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cd(n),He(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ld(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){be(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Qp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hd(e.nextSibling),e===null)break}return null}function ud(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hd(e.nextSibling),e===null))return null;return e}function dd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hd(e.nextSibling),e===null))return null;return e}function fd(e){return e.data===BS||e.data===VS}function pd(e){return e.data===HS||e.data===BS&&e.ownerDocument.readyState!==JS}function md(e,t){var n=e.ownerDocument;if(e.data===VS)e._reactRetry=t;else if(e.data!==BS||n.readyState!==JS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===RS||t===HS||t===BS||t===VS||t===IS||t===KS||t===qS)break;if(t===zS||t===LS)return null}}return e}function gd(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Tu(a.name)]=a.name.toLowerCase()===`style`?Eu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===IS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function _d(e,t,n){return n===null||!0!==n[FS]?(e.nodeValue===t?e=null:(t=yu(t),e=yu(e.nodeValue)===t?null:e.nodeValue),e):null}function vd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===zS||n===LS){if(t===0)return hd(e.nextSibling);t--}else n!==RS&&n!==HS&&n!==BS&&n!==VS&&n!==IS||t++}e=e.nextSibling}return null}function yd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===RS||n===HS||n===BS||n===VS||n===IS){if(t===0)return e;t--}else n!==zS&&n!==LS||t++}e=e.previousSibling}return null}function bd(e){bf(e)}function xd(e){bf(e)}function Sd(e){bf(e)}function Cd(e,t,n,r,i){switch(i&&Ut(e,r.ancestorInfo),t=Lu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function wd(e,t,n,r){if(!n[qp]&&We(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Cu(n,e,t),n[Gp]=r,n[Kp]=t}function Td(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}function Ed(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Dd(e,t,n){var r=vC;if(r&&typeof t==`string`&&t){var i=ct(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gC.has(i)||(gC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Cu(t,`link`,e),qe(t),r.head.appendChild(t)))}}function Od(e,t,n,r){var i=(i=ep.current)?Ed(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Ad(n.href),t=Ke(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Ad(n.href);var a=Ke(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:uC,preload:null}},a.set(e,o),(a=i.querySelector(jd(e)))&&!a._p&&(o.instance=a,o.state.loading=dC|mC),!hC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};hC.set(e,s),a||Nd(i,e,s,o.state)}if(t&&r===null)throw n=`
182
+
183
+ - `+kd(t)+`
184
+ + `+kd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
185
+
186
+ - `+kd(t)+`
187
+ + `+kd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Pd(n),t=Ke(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function kd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):gp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):gp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):gp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Ad(e){return`href="`+ct(e)+`"`}function jd(e){return`link[rel="stylesheet"][`+e+`]`}function Md(e){return Of({},e,{"data-precedence":e.precedence,precedence:null})}function Nd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=dC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=dC}),t.addEventListener(`error`,function(){return r.loading|=fC}),Cu(t,`link`,n),qe(t),e.head.appendChild(t))}function Pd(e){return`[src="`+ct(e)+`"]`}function Fd(e){return`script[async]`+e}function Id(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ct(n.href)+`"]`);if(r)return t.instance=r,qe(r),r;var i=Of({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),qe(r),Cu(r,`style`,i),Ld(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Ad(n.href);var a=e.querySelector(jd(i));if(a)return t.state.loading|=mC,t.instance=a,qe(a),a;r=Md(n),(i=hC.get(i))&&Rd(r,i),a=(e.ownerDocument||e).createElement(`link`),qe(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Cu(a,`link`,r),t.state.loading|=mC,Ld(a,n.precedence,e),t.instance=a;case`script`:return a=Pd(n.src),(i=e.querySelector(Fd(a)))?(t.instance=i,qe(i),i):(r=n,(i=hC.get(a))&&(r=Of({},n),zd(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),qe(i),Cu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&mC)===uC&&(r=t.instance,t.state.loading|=mC,Ld(r,n.precedence,e));return t.instance}function Ld(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Bd(e,t,n){if(yC===null){var r=new Map,i=yC=new Map;i.set(n,r)}else i=yC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Qp]||a[Gp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Fm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Vd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Hd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===ZS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Pu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Ud(e){return!(e.type===`stylesheet`&&(e.state.loading&pC)===uC)}function Wd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&mC)===uC){if(n.instance===null){var i=Ad(r.href),a=t.querySelector(jd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Kd.bind(e),t.then(e,e)),n.state.loading|=mC,n.instance=a,qe(a);return}a=t.ownerDocument||t,r=Md(r),(i=hC.get(i))&&Rd(r,i),a=a.createElement(`link`),qe(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Cu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&pC)===uC&&(e.count++,n=Kd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Gd(e,t){return e.stylesheets&&e.count===0&&qd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},bC+t);0<e.imgBytes&&CC===0&&(CC=125*Iu()*SC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>CC?50:xC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Kd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function qd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,TC=new Map,t.forEach(Jd,e),TC=null,Kd.call(e))}function Jd(e,t){if(!(t.state.loading&mC)){var n=TC.get(e);if(n)var r=n.get(wC);else{n=new Map,TC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(wC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(wC,i),n.set(o,i),this.count++,r=Kd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=mC}}function Yd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=oC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Xd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Yd(e,t,n,o,c,l,u,d,s),t=Fg,!0===a&&(t|=Lg|Rg),t|=Ig,a=p(3,null,null,t),e.current=a,a.stateNode=e,t=ti(),ni(t),e.pooledCache=t,ni(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Ji(a),e}function Zd(e){return e?(e=jg,e):jg}function Qd(e,t,n,r,i,a){if(jp&&typeof jp.onScheduleFiberRoot==`function`)try{jp.onScheduleFiberRoot(Ap,r,n)}catch(e){Mp||(Mp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Zd(i),r.context===null?r.context=i:r.pendingContext=i,hp&&mp!==null&&!NC&&(NC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,D(mp)||`Unknown`)),r=Xi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Zi(e,r,t),n!==null&&(ii(t,`root.render()`,null),Zc(n,e,t),Qi(n,e,t))}function $d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ef(e,t){$d(e,t),(e=e.alternate)&&$d(e,t)}function tf(e){if(e.tag===13||e.tag===31){var t=sr(e,67108864);t!==null&&Zc(t,e,67108864),ef(e,67108864)}}function nf(e){if(e.tag===13||e.tag===31){var t=Yc(e);t=Ie(t);var n=sr(e,t);n!==null&&Zc(n,e,t),ef(e,t)}}function rf(){return mp}function af(e,t,n,r){var i=H.T;H.T=null;var a=qf.p;try{qf.p=Bp,sf(e,t,n,r)}finally{qf.p=a,H.T=i}}function of(e,t,n,r){var i=H.T;H.T=null;var a=qf.p;try{qf.p=Vp,sf(e,t,n,r)}finally{qf.p=a,H.T=i}}function sf(e,t,n,r){if(WC){var i=cf(r);if(i===null)lu(e,t,r,GC,n),df(e,r);else if(pf(i,e,t,n,r))r.stopPropagation();else if(df(e,r),t&4&&-1<$C.indexOf(e)){for(;i!==null;){var a=We(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ee(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Pp(o);s.entanglements[1]|=c,o&=~c}Wl(a),(Jb&(zb|Bb))===Rb&&(Ex=xp()+Dx,Gl(0,!1))}}break;case 31:case 13:s=sr(a,2),s!==null&&Zc(s,a,2),nl(),ef(a,2)}if(a=cf(r),a===null&&lu(e,t,r,GC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else lu(e,t,r,null,n)}}function cf(e){return e=rn(e),lf(e)}function lf(e){if(GC=null,e=Ue(e),e!==null){var t=v(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=b(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return GC=e,null}function uf(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 Bp;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 Vp;case`message`:switch(Sp()){case Cp:return Bp;case wp:return Vp;case Tp:case Ep:return Hp;case Dp:return Up;default:return Hp}default:return Hp}}function df(e,t){switch(e){case`focusin`:case`focusout`:qC=null;break;case`dragenter`:case`dragleave`:JC=null;break;case`mouseover`:case`mouseout`:YC=null;break;case`pointerover`:case`pointerout`:XC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:ZC.delete(t.pointerId)}}function ff(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=We(t),t!==null&&tf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pf(e,t,n,r,i){switch(t){case`focusin`:return qC=ff(qC,e,t,n,r,i),!0;case`dragenter`:return JC=ff(JC,e,t,n,r,i),!0;case`mouseover`:return YC=ff(YC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return XC.set(a,ff(XC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,ZC.set(a,ff(ZC.get(a)||null,e,t,n,r,i)),!0}return!1}function mf(e){var t=Ue(e.target);if(t!==null){var n=v(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,Ve(e.priority,function(){nf(n)});return}}else if(t===31){if(t=b(n),t!==null){e.blockedOn=t,Ve(e.priority,function(){nf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Ym!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Ym=i,n.target.dispatchEvent(r),Ym===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Ym=null}else return t=We(n),t!==null&&tf(t),e.blockedOn=n,!1;t.shift()}return!0}function gf(e,t,n){hf(e)&&n.delete(t)}function _f(){KC=!1,qC!==null&&hf(qC)&&(qC=null),JC!==null&&hf(JC)&&(JC=null),YC!==null&&hf(YC)&&(YC=null),XC.forEach(gf),ZC.forEach(gf)}function vf(e,t){e.blockedOn===t&&(e.blockedOn=null,KC||(KC=!0,Tf.unstable_scheduleCallback(Tf.unstable_NormalPriority,_f)))}function yf(e){ew!==e&&(ew=e,Tf.unstable_scheduleCallback(Tf.unstable_NormalPriority,function(){ew===e&&(ew=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(lf(r||n)===null)continue;break}var a=We(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),Mo(a,n,r,i))}}))}function bf(e){function t(t){return vf(t,e)}qC!==null&&vf(qC,e),JC!==null&&vf(JC,e),YC!==null&&vf(YC,e),XC.forEach(t),ZC.forEach(t);for(var n=0;n<QC.length;n++){var r=QC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<QC.length&&(n=QC[0],n.blockedOn===null);)mf(n),n.blockedOn===null&&QC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Kp]||null;if(typeof a==`function`)o||yf(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Kp]||null)s=o.formAction;else if(lf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),yf(n)}}}function xf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Sf(e){this._internalRoot=e}function Cf(e){this._internalRoot=e}function wf(e){e[qp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Tf=bt(),Ef=vt(),Df=St(),Of=Object.assign,kf=Symbol.for(`react.element`),Af=Symbol.for(`react.transitional.element`),jf=Symbol.for(`react.portal`),Mf=Symbol.for(`react.fragment`),Nf=Symbol.for(`react.strict_mode`),Pf=Symbol.for(`react.profiler`),Ff=Symbol.for(`react.consumer`),If=Symbol.for(`react.context`),Lf=Symbol.for(`react.forward_ref`),Rf=Symbol.for(`react.suspense`),zf=Symbol.for(`react.suspense_list`),Bf=Symbol.for(`react.memo`),Vf=Symbol.for(`react.lazy`),Hf=Symbol.for(`react.activity`),Uf=Symbol.for(`react.memo_cache_sentinel`),Wf=Symbol.iterator,Gf=Symbol.for(`react.client.reference`),Kf=Array.isArray,H=Ef.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qf=Df.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jf=Object.freeze({pending:!1,data:null,method:null,action:null}),Yf=[],Xf=[],Zf=-1,Qf=O(null),$f=O(null),ep=O(null),tp=O(null),np=0,rp,ip,ap,op,sp,cp,lp;ie.__reactDisabledLog=!0;var up,dp,fp=!1,pp=new(typeof WeakMap==`function`?WeakMap:Map),mp=null,hp=!1,gp=Object.prototype.hasOwnProperty,_p=Tf.unstable_scheduleCallback,vp=Tf.unstable_cancelCallback,yp=Tf.unstable_shouldYield,bp=Tf.unstable_requestPaint,xp=Tf.unstable_now,Sp=Tf.unstable_getCurrentPriorityLevel,Cp=Tf.unstable_ImmediatePriority,wp=Tf.unstable_UserBlockingPriority,Tp=Tf.unstable_NormalPriority,Ep=Tf.unstable_LowPriority,Dp=Tf.unstable_IdlePriority,Op=Tf.log,kp=Tf.unstable_setDisableYieldValue,Ap=null,jp=null,Mp=!1,Np=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Pp=Math.clz32?Math.clz32:Te,Fp=Math.log,Ip=Math.LN2,Lp=256,Rp=262144,zp=4194304,Bp=2,Vp=8,Hp=32,Up=268435456,Wp=Math.random().toString(36).slice(2),Gp=`__reactFiber$`+Wp,Kp=`__reactProps$`+Wp,qp=`__reactContainer$`+Wp,Jp=`__reactEvents$`+Wp,Yp=`__reactListeners$`+Wp,Xp=`__reactHandles$`+Wp,Zp=`__reactResources$`+Wp,Qp=`__reactMarker$`+Wp,$p=new Set,em={},tm={},nm={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},rm=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]*$`),im={},am={},om=/[\n"\\]/g,sm=!1,cm=!1,lm=!1,um=!1,dm=!1,fm=!1,pm=[`value`,`defaultValue`],mm=!1,hm=/["'&<>\n\t]|^\s|\s$/,gm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),_m=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),vm=_m.concat([`button`]),ym=`dd dt li option optgroup p rp rt`.split(` `),bm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},xm={},Sm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},Cm=/([A-Z])/g,wm=/^ms-/,Tm=/^(?:webkit|moz|o)[A-Z]/,Em=/^-ms-/,Dm=/-(.)/g,Om=/;\s*$/,km={},Am={},jm=!1,Mm=!1,Nm=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(` `)),Pm=`http://www.w3.org/1998/Math/MathML`,Fm=`http://www.w3.org/2000/svg`,Im=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`]]),Lm={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Rm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},zm={},Bm=RegExp(`^(aria)-[: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]*$`),Vm=RegExp(`^(aria)[A-Z][: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]*$`),Hm=!1,Um={},Wm=/^on./,Gm=/^on[^A-Z]/,Km=RegExp(`^(aria)-[: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]*$`),qm=RegExp(`^(aria)[A-Z][: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]*$`),Jm=/^[\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,Ym=null,Xm=null,Zm=null,Qm=!1,$m=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),eh=!1;if($m)try{var th={};Object.defineProperty(th,`passive`,{get:function(){eh=!0}}),window.addEventListener(`test`,th,th),window.removeEventListener(`test`,th,th)}catch{eh=!1}var nh=null,rh=null,ih=null,U={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ah=dn(U),W=Of({},U,{view:0,detail:0}),oh=dn(W),G,sh,ch,lh=Of({},W,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,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!==ch&&(ch&&e.type===`mousemove`?(G=e.screenX-ch.screenX,sh=e.screenY-ch.screenY):sh=G=0,ch=e),G)},movementY:function(e){return`movementY`in e?e.movementY:sh}}),uh=dn(lh),dh=dn(Of({},lh,{dataTransfer:0})),fh=dn(Of({},W,{relatedTarget:0})),ph=dn(Of({},U,{animationName:0,elapsedTime:0,pseudoElement:0})),mh=dn(Of({},U,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),hh=dn(Of({},U,{data:0})),gh=hh,K={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},_h={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`},vh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},yh=dn(Of({},W,{key:function(e){if(e.key){var t=K[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?_h[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),bh=dn(Of({},lh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xh=dn(Of({},W,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),Sh=dn(Of({},U,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ch=dn(Of({},lh,{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})),wh=dn(Of({},U,{newState:0,oldState:0})),Th=[9,13,27,32],Eh=229,Dh=$m&&`CompositionEvent`in window,Oh=null;$m&&`documentMode`in document&&(Oh=document.documentMode);var kh=$m&&`TextEvent`in window&&!Oh,Ah=$m&&(!Dh||Oh&&8<Oh&&11>=Oh),jh=32,Mh=String.fromCharCode(jh),Nh=!1,Ph=!1,Fh={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},Ih=null,Lh=null,Rh=!1;$m&&(Rh=yn(`input`)&&(!document.documentMode||9<document.documentMode));var zh=typeof Object.is==`function`?Object.is:An,Bh=$m&&`documentMode`in document&&11>=document.documentMode,Vh=null,Hh=null,Uh=null,Wh=!1,Gh={animationend:Rn(`Animation`,`AnimationEnd`),animationiteration:Rn(`Animation`,`AnimationIteration`),animationstart:Rn(`Animation`,`AnimationStart`),transitionrun:Rn(`Transition`,`TransitionRun`),transitionstart:Rn(`Transition`,`TransitionStart`),transitioncancel:Rn(`Transition`,`TransitionCancel`),transitionend:Rn(`Transition`,`TransitionEnd`)},Kh={},qh={};$m&&(qh=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gh.animationend.animation,delete Gh.animationiteration.animation,delete Gh.animationstart.animation),`TransitionEvent`in window||delete Gh.transitionend.transition);var Jh=zn(`animationend`),Yh=zn(`animationiteration`),Xh=zn(`animationstart`),Zh=zn(`transitionrun`),Qh=zn(`transitionstart`),$h=zn(`transitioncancel`),eg=zn(`transitionend`),tg=new Map,ng=`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(` `);ng.push(`scrollEnd`);var rg=0;if(typeof performance==`object`&&typeof performance.now==`function`)var ig=performance,ag=function(){return ig.now()};else{var og=Date;ag=function(){return og.now()}}var sg=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},cg=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,lg=0,ug=1,dg=2,fg=3,pg=`–\xA0`,mg=`+\xA0`,hg=` \xA0`,gg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,_g=`Components ⚛`,vg=`Scheduler ⚛`,yg=`Blocking`,bg=!1,xg={color:`primary`,properties:null,tooltipText:``,track:_g},Sg={start:-0,end:-0,detail:{devtools:xg}},Cg=[`Changed Props`,``],wg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Tg=[`Changed Props`,wg],Eg=1,Dg=2,Og=[],kg=0,Ag=0,jg={};Object.freeze(jg);var Mg=null,Ng=null,Pg=0,Fg=1,Ig=2,Lg=8,Rg=16,zg=32,Bg=!1;try{var Vg=Object.preventExtensions({});new Map([[Vg,null]]),new Set([Vg])}catch{Bg=!0}var Hg=new WeakMap,Ug=[],Wg=0,Gg=null,Kg=0,qg=[],Jg=0,Yg=null,Xg=1,Zg=``,Qg=null,$g=null,e_=!1,t_=!1,n_=null,r_=null,i_=!1,a_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),o_=O(null),s_=O(null),c_={},l_=null,u_=null,d_=!1,f_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},p_=Tf.unstable_scheduleCallback,m_=Tf.unstable_NormalPriority,h_={$$typeof:If,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},g_=Tf.unstable_now,__=console.createTask?console.createTask:function(){return null},v_=1,y_=2,b_=-0,x_=-0,S_=-0,C_=null,w_=-1.1,T_=-0,E_=-0,D_=-1.1,O_=-1.1,k_=null,A_=!1,j_=-0,M_=-1.1,N_=null,P_=0,F_=null,I_=null,L_=-1.1,R_=null,z_=-1.1,B_=-1.1,V_=-0,H_=-1.1,U_=-1.1,W_=0,G_=null,K_=null,q_=null,J_=-1.1,Y_=null,X_=-1.1,Z_=-1.1,Q_=-0,$_=-0,ev=0,tv=null,nv=0,rv=-1.1,iv=!1,av=!1,ov=null,sv=0,cv=0,lv=null,uv=H.S;H.S=function(e,t){if(wx=xp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>H_&&0>U_){H_=g_();var n=Uu(),r=Hu();(n!==X_||r!==Y_)&&(X_=-1.1),J_=n,Y_=r}Ci(e,t)}uv!==null&&uv(e,t)};var dv=O(null),fv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},pv=[],mv=[],hv=[],gv=[],_v=[],vv=[],yv=new Set;fv.recordUnsafeLifecycleWarnings=function(e,t){yv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&pv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillMount==`function`&&mv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&hv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&gv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&_v.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillUpdate==`function`&&vv.push(e))},fv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<pv.length&&(pv.forEach(function(t){e.add(D(t)||`Component`),yv.add(t.type)}),pv=[]);var t=new Set;0<mv.length&&(mv.forEach(function(e){t.add(D(e)||`Component`),yv.add(e.type)}),mv=[]);var n=new Set;0<hv.length&&(hv.forEach(function(e){n.add(D(e)||`Component`),yv.add(e.type)}),hv=[]);var r=new Set;0<gv.length&&(gv.forEach(function(e){r.add(D(e)||`Component`),yv.add(e.type)}),gv=[]);var i=new Set;0<_v.length&&(_v.forEach(function(e){i.add(D(e)||`Component`),yv.add(e.type)}),_v=[]);var a=new Set;if(0<vv.length&&(vv.forEach(function(e){a.add(D(e)||`Component`),yv.add(e.type)}),vv=[]),0<t.size){var o=f(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,o)}0<r.size&&(o=f(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,o)),0<a.size&&(o=f(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,o)),0<e.size&&(o=f(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,o)),0<n.size&&(o=f(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,o)),0<i.size&&(o=f(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,o))};var bv=new Map,xv=new Set;fv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Lg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!xv.has(e.type)&&(r=bv.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],bv.set(n,r)),r.push(e))},fv.flushLegacyContextWarning=function(){bv.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(D(e)||`Component`),xv.add(e.type)});var r=f(n);he(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},fv.discardPendingWarnings=function(){pv=[],mv=[],hv=[],gv=[],_v=[],vv=[],bv=new Map};var Sv={react_stack_bottom_frame:function(e,t,n){var r=hp;hp=!0;try{return e(t,n)}finally{hp=r}}},Cv=Sv.react_stack_bottom_frame.bind(Sv),wv={react_stack_bottom_frame:function(e){var t=hp;hp=!0;try{return e.render()}finally{hp=t}}},Tv=wv.react_stack_bottom_frame.bind(wv),Ev={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){jl(e,e.return,t)}}},Dv=Ev.react_stack_bottom_frame.bind(Ev),Ov={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){jl(e,e.return,t)}}},kv=Ov.react_stack_bottom_frame.bind(Ov),Av={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},jv=Av.react_stack_bottom_frame.bind(Av),Mv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){jl(e,t,n)}}},Nv=Mv.react_stack_bottom_frame.bind(Mv),Pv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Fv=Pv.react_stack_bottom_frame.bind(Pv),Iv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){jl(e,t,n)}}},Lv=Iv.react_stack_bottom_frame.bind(Iv),Rv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},zv=Rv.react_stack_bottom_frame.bind(Rv),Bv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Vv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),Hv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Uv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Wv=null,Gv=!1,Kv=null,qv=0,Jv=null,Yv,Xv=Yv=!1,Zv={},Qv={},$v={};d=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=D(e),i=r||`null`;if(!Zv[i]){Zv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=D(e))&&(a=`
225
+
226
+ Check the render method of \``+i+"`."),a||r&&(a=`
227
+
228
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=D(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),he(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var ey=Ki(!0),ty=Ki(!1),ny=0,ry=1,iy=2,ay=3,oy=!1,sy=!1,cy=null,ly=!1,uy=O(null),dy=O(0),fy=O(null),py=null,my=1,hy=2,gy=O(0),_y=0,vy=1,yy=2,by=4,xy=8,Sy,Cy=new Set,wy=new Set,Ty=new Set,Ey=new Set,Dy=0,Oy=null,ky=null,Ay=null,jy=!1,My=!1,Ny=!1,Py=0,Fy=0,Iy=null,Ly=0,Ry=25,q=null,zy=null,By=-1,Vy=!1,Hy={readContext:Qr,use:Aa,useCallback:_a,useContext:_a,useEffect:_a,useImperativeHandle:_a,useLayoutEffect:_a,useInsertionEffect:_a,useMemo:_a,useReducer:_a,useRef:_a,useState:_a,useDebugValue:_a,useDeferredValue:_a,useTransition:_a,useSyncExternalStore:_a,useId:_a,useHostTransitionStatus:_a,useFormState:_a,useActionState:_a,useOptimistic:_a,useMemoCache:_a,useCacheRefresh:_a};Hy.useEffectEvent=_a;var Uy=null,Wy=null,Gy=null,Ky=null,qy=null,Jy=null,Yy=null;Uy={readContext:function(e){return Qr(e)},use:Aa,useCallback:function(e,t){return q=`useCallback`,ma(),ha(t),xo(e,t)},useContext:function(e){return q=`useContext`,ma(),Qr(e)},useEffect:function(e,t){return q=`useEffect`,ma(),ha(t),po(e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,ma(),ha(n),yo(e,t,n)},useInsertionEffect:function(e,t){q=`useInsertionEffect`,ma(),ha(t),uo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,ma(),ha(t),_o(e,t)},useMemo:function(e,t){q=`useMemo`,ma(),ha(t);var n=H.H;H.H=qy;try{return Co(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,ma();var r=H.H;H.H=qy;try{return Na(e,t,n)}finally{H.H=r}},useRef:function(e){return q=`useRef`,ma(),lo(e)},useState:function(e){q=`useState`,ma();var t=H.H;H.H=qy;try{return Ga(e)}finally{H.H=t}},useDebugValue:function(){q=`useDebugValue`,ma()},useDeferredValue:function(e,t){return q=`useDeferredValue`,ma(),To(e,t)},useTransition:function(){return q=`useTransition`,ma(),Fo()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,ma(),La(e,t,n)},useId:function(){return q=`useId`,ma(),zo()},useFormState:function(e,t){return q=`useFormState`,ma(),ga(),ro(e,t)},useActionState:function(e,t){return q=`useActionState`,ma(),ro(e,t)},useOptimistic:function(e){return q=`useOptimistic`,ma(),Ka(e)},useHostTransitionStatus:Ro,useMemoCache:ja,useCacheRefresh:function(){return q=`useCacheRefresh`,ma(),Bo()},useEffectEvent:function(e){return q=`useEffectEvent`,ma(),ho(e)}},Wy={readContext:function(e){return Qr(e)},use:Aa,useCallback:function(e,t){return q=`useCallback`,L(),xo(e,t)},useContext:function(e){return q=`useContext`,L(),Qr(e)},useEffect:function(e,t){return q=`useEffect`,L(),po(e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,L(),yo(e,t,n)},useInsertionEffect:function(e,t){q=`useInsertionEffect`,L(),uo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,L(),_o(e,t)},useMemo:function(e,t){q=`useMemo`,L();var n=H.H;H.H=qy;try{return Co(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,L();var r=H.H;H.H=qy;try{return Na(e,t,n)}finally{H.H=r}},useRef:function(e){return q=`useRef`,L(),lo(e)},useState:function(e){q=`useState`,L();var t=H.H;H.H=qy;try{return Ga(e)}finally{H.H=t}},useDebugValue:function(){q=`useDebugValue`,L()},useDeferredValue:function(e,t){return q=`useDeferredValue`,L(),To(e,t)},useTransition:function(){return q=`useTransition`,L(),Fo()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,L(),La(e,t,n)},useId:function(){return q=`useId`,L(),zo()},useActionState:function(e,t){return q=`useActionState`,L(),ro(e,t)},useFormState:function(e,t){return q=`useFormState`,L(),ga(),ro(e,t)},useOptimistic:function(e){return q=`useOptimistic`,L(),Ka(e)},useHostTransitionStatus:Ro,useMemoCache:ja,useCacheRefresh:function(){return q=`useCacheRefresh`,L(),Bo()},useEffectEvent:function(e){return q=`useEffectEvent`,L(),ho(e)}},Gy={readContext:function(e){return Qr(e)},use:Aa,useCallback:function(e,t){return q=`useCallback`,L(),So(e,t)},useContext:function(e){return q=`useContext`,L(),Qr(e)},useEffect:function(e,t){q=`useEffect`,L(),fo(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,L(),bo(e,t,n)},useInsertionEffect:function(e,t){return q=`useInsertionEffect`,L(),fo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,L(),fo(4,by,e,t)},useMemo:function(e,t){q=`useMemo`,L();var n=H.H;H.H=Jy;try{return wo(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,L();var r=H.H;H.H=Jy;try{return Pa(e,t,n)}finally{H.H=r}},useRef:function(){return q=`useRef`,L(),Da().memoizedState},useState:function(){q=`useState`,L();var e=H.H;H.H=Jy;try{return Pa(Ma)}finally{H.H=e}},useDebugValue:function(){q=`useDebugValue`,L()},useDeferredValue:function(e,t){return q=`useDeferredValue`,L(),Eo(e,t)},useTransition:function(){return q=`useTransition`,L(),Io()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,L(),Ra(e,t,n)},useId:function(){return q=`useId`,L(),Da().memoizedState},useFormState:function(e){return q=`useFormState`,L(),ga(),io(e)},useActionState:function(e){return q=`useActionState`,L(),io(e)},useOptimistic:function(e,t){return q=`useOptimistic`,L(),qa(e,t)},useHostTransitionStatus:Ro,useMemoCache:ja,useCacheRefresh:function(){return q=`useCacheRefresh`,L(),Da().memoizedState},useEffectEvent:function(e){return q=`useEffectEvent`,L(),go(e)}},Ky={readContext:function(e){return Qr(e)},use:Aa,useCallback:function(e,t){return q=`useCallback`,L(),So(e,t)},useContext:function(e){return q=`useContext`,L(),Qr(e)},useEffect:function(e,t){q=`useEffect`,L(),fo(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,L(),bo(e,t,n)},useInsertionEffect:function(e,t){return q=`useInsertionEffect`,L(),fo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,L(),fo(4,by,e,t)},useMemo:function(e,t){q=`useMemo`,L();var n=H.H;H.H=Yy;try{return wo(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,L();var r=H.H;H.H=Yy;try{return Ia(e,t,n)}finally{H.H=r}},useRef:function(){return q=`useRef`,L(),Da().memoizedState},useState:function(){q=`useState`,L();var e=H.H;H.H=Yy;try{return Ia(Ma)}finally{H.H=e}},useDebugValue:function(){q=`useDebugValue`,L()},useDeferredValue:function(e,t){return q=`useDeferredValue`,L(),Do(e,t)},useTransition:function(){return q=`useTransition`,L(),Lo()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,L(),Ra(e,t,n)},useId:function(){return q=`useId`,L(),Da().memoizedState},useFormState:function(e){return q=`useFormState`,L(),ga(),so(e)},useActionState:function(e){return q=`useActionState`,L(),so(e)},useOptimistic:function(e,t){return q=`useOptimistic`,L(),Ya(e,t)},useHostTransitionStatus:Ro,useMemoCache:ja,useCacheRefresh:function(){return q=`useCacheRefresh`,L(),Da().memoizedState},useEffectEvent:function(e){return q=`useEffectEvent`,L(),go(e)}},qy={readContext:function(e){return l(),Qr(e)},use:function(e){return c(),Aa(e)},useCallback:function(e,t){return q=`useCallback`,c(),ma(),xo(e,t)},useContext:function(e){return q=`useContext`,c(),ma(),Qr(e)},useEffect:function(e,t){return q=`useEffect`,c(),ma(),po(e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,c(),ma(),yo(e,t,n)},useInsertionEffect:function(e,t){q=`useInsertionEffect`,c(),ma(),uo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,c(),ma(),_o(e,t)},useMemo:function(e,t){q=`useMemo`,c(),ma();var n=H.H;H.H=qy;try{return Co(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,c(),ma();var r=H.H;H.H=qy;try{return Na(e,t,n)}finally{H.H=r}},useRef:function(e){return q=`useRef`,c(),ma(),lo(e)},useState:function(e){q=`useState`,c(),ma();var t=H.H;H.H=qy;try{return Ga(e)}finally{H.H=t}},useDebugValue:function(){q=`useDebugValue`,c(),ma()},useDeferredValue:function(e,t){return q=`useDeferredValue`,c(),ma(),To(e,t)},useTransition:function(){return q=`useTransition`,c(),ma(),Fo()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,c(),ma(),La(e,t,n)},useId:function(){return q=`useId`,c(),ma(),zo()},useFormState:function(e,t){return q=`useFormState`,c(),ma(),ro(e,t)},useActionState:function(e,t){return q=`useActionState`,c(),ma(),ro(e,t)},useOptimistic:function(e){return q=`useOptimistic`,c(),ma(),Ka(e)},useMemoCache:function(e){return c(),ja(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return q=`useCacheRefresh`,ma(),Bo()},useEffectEvent:function(e){return q=`useEffectEvent`,c(),ma(),ho(e)}},Jy={readContext:function(e){return l(),Qr(e)},use:function(e){return c(),Aa(e)},useCallback:function(e,t){return q=`useCallback`,c(),L(),So(e,t)},useContext:function(e){return q=`useContext`,c(),L(),Qr(e)},useEffect:function(e,t){q=`useEffect`,c(),L(),fo(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,c(),L(),bo(e,t,n)},useInsertionEffect:function(e,t){return q=`useInsertionEffect`,c(),L(),fo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,c(),L(),fo(4,by,e,t)},useMemo:function(e,t){q=`useMemo`,c(),L();var n=H.H;H.H=Jy;try{return wo(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,c(),L();var r=H.H;H.H=Jy;try{return Pa(e,t,n)}finally{H.H=r}},useRef:function(){return q=`useRef`,c(),L(),Da().memoizedState},useState:function(){q=`useState`,c(),L();var e=H.H;H.H=Jy;try{return Pa(Ma)}finally{H.H=e}},useDebugValue:function(){q=`useDebugValue`,c(),L()},useDeferredValue:function(e,t){return q=`useDeferredValue`,c(),L(),Eo(e,t)},useTransition:function(){return q=`useTransition`,c(),L(),Io()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,c(),L(),Ra(e,t,n)},useId:function(){return q=`useId`,c(),L(),Da().memoizedState},useFormState:function(e){return q=`useFormState`,c(),L(),io(e)},useActionState:function(e){return q=`useActionState`,c(),L(),io(e)},useOptimistic:function(e,t){return q=`useOptimistic`,c(),L(),qa(e,t)},useMemoCache:function(e){return c(),ja(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return q=`useCacheRefresh`,L(),Da().memoizedState},useEffectEvent:function(e){return q=`useEffectEvent`,c(),L(),go(e)}},Yy={readContext:function(e){return l(),Qr(e)},use:function(e){return c(),Aa(e)},useCallback:function(e,t){return q=`useCallback`,c(),L(),So(e,t)},useContext:function(e){return q=`useContext`,c(),L(),Qr(e)},useEffect:function(e,t){q=`useEffect`,c(),L(),fo(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return q=`useImperativeHandle`,c(),L(),bo(e,t,n)},useInsertionEffect:function(e,t){return q=`useInsertionEffect`,c(),L(),fo(4,yy,e,t)},useLayoutEffect:function(e,t){return q=`useLayoutEffect`,c(),L(),fo(4,by,e,t)},useMemo:function(e,t){q=`useMemo`,c(),L();var n=H.H;H.H=Jy;try{return wo(e,t)}finally{H.H=n}},useReducer:function(e,t,n){q=`useReducer`,c(),L();var r=H.H;H.H=Jy;try{return Ia(e,t,n)}finally{H.H=r}},useRef:function(){return q=`useRef`,c(),L(),Da().memoizedState},useState:function(){q=`useState`,c(),L();var e=H.H;H.H=Jy;try{return Ia(Ma)}finally{H.H=e}},useDebugValue:function(){q=`useDebugValue`,c(),L()},useDeferredValue:function(e,t){return q=`useDeferredValue`,c(),L(),Do(e,t)},useTransition:function(){return q=`useTransition`,c(),L(),Lo()},useSyncExternalStore:function(e,t,n){return q=`useSyncExternalStore`,c(),L(),Ra(e,t,n)},useId:function(){return q=`useId`,c(),L(),Da().memoizedState},useFormState:function(e){return q=`useFormState`,c(),L(),so(e)},useActionState:function(e){return q=`useActionState`,c(),L(),so(e)},useOptimistic:function(e,t){return q=`useOptimistic`,c(),L(),Ya(e,t)},useMemoCache:function(e){return c(),ja(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return q=`useCacheRefresh`,L(),Da().memoizedState},useEffectEvent:function(e){return q=`useEffectEvent`,c(),L(),go(e)}};var Xy={},Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set,ib=new Set,ab=new Set,ob=new Set;Object.freeze(Xy);var sb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yc(e),i=Xi(r);i.payload=t,n!=null&&(Yo(n),i.callback=n),t=Zi(e,i,r),t!==null&&(ii(r,`this.setState()`,e),Zc(t,e,r),Qi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yc(e),i=Xi(r);i.tag=ry,i.payload=t,n!=null&&(Yo(n),i.callback=n),t=Zi(e,i,r),t!==null&&(ii(r,`this.replaceState()`,e),Zc(t,e,r),Qi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yc(e),r=Xi(n);r.tag=iy,t!=null&&(Yo(t),r.callback=t),t=Zi(e,r,n),t!==null&&(ii(n,`this.forceUpdate()`,e),Zc(t,e,n),Qi(t,e,n))}},cb=null,lb=null,ub=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),db=!1,fb={},pb={},mb={},hb={},gb=!1,_b={},vb={},yb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},bb=!1,xb=null;xb=new Set;var Sb=!1,Cb=!1,wb=!1,Tb=typeof WeakSet==`function`?WeakSet:Set,Eb=null,Db=null,Ob=null,kb=null,Ab=!1,jb=null,Mb=!1,Nb=8192,Pb={getCacheForType:function(e){var t=Qr(h_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qr(h_).controller.signal},getOwner:function(){return mp}};if(typeof Symbol==`function`&&Symbol.for){var Fb=Symbol.for;Fb(`selector.component`),Fb(`selector.has_pseudo_class`),Fb(`selector.role`),Fb(`selector.test_id`),Fb(`selector.text`)}var Ib=[],Lb=typeof WeakMap==`function`?WeakMap:Map,Rb=0,zb=2,Bb=4,Vb=0,Hb=1,Ub=2,Wb=3,Gb=4,Kb=6,qb=5,Jb=Rb,Yb=null,Xb=null,Zb=0,Qb=0,$b=1,ex=2,tx=3,nx=4,rx=5,ix=6,ax=7,ox=8,sx=9,cx=Qb,lx=null,ux=!1,dx=!1,fx=!1,px=0,mx=Vb,hx=0,gx=0,_x=0,vx=0,yx=0,bx=null,xx=null,Sx=!1,Cx=0,wx=0,Tx=300,Ex=1/0,Dx=500,Ox=null,kx=null,Ax=null,jx=0,Mx=1,Nx=2,Px=3,Fx=0,Ix=1,Lx=2,Rx=3,zx=4,Bx=5,Vx=0,Hx=null,Ux=null,Wx=0,Gx=0,Kx=-0,qx=null,Jx=null,Yx=null,Xx=jx,Zx=null,Qx=50,$x=0,eS=null,tS=!1,nS=!1,rS=50,iS=0,aS=null,oS=!1,sS=null,cS=!1,lS=new Set,uS={},dS=null,fS=null,pS=!1,mS=!1,hS=!1,gS=!1,_S=0,vS={};(function(){for(var e=0;e<ng.length;e++){var t=ng[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Bn(n,`on`+t)}Bn(Jh,`onAnimationEnd`),Bn(Yh,`onAnimationIteration`),Bn(Xh,`onAnimationStart`),Bn(`dblclick`,`onDoubleClick`),Bn(`focusin`,`onFocus`),Bn(`focusout`,`onBlur`),Bn(Zh,`onTransitionRun`),Bn(Qh,`onTransitionStart`),Bn($h,`onTransitionCancel`),Bn(eg,`onTransitionEnd`)})(),Ye(`onMouseEnter`,[`mouseout`,`mouseover`]),Ye(`onMouseLeave`,[`mouseout`,`mouseover`]),Ye(`onPointerEnter`,[`pointerout`,`pointerover`]),Ye(`onPointerLeave`,[`pointerout`,`pointerover`]),Je(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Je(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Je(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Je(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Je(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Je(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yS=`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(` `),bS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yS)),xS=`_reactListening`+Math.random().toString(36).slice(2),SS=!1,CS=!1,wS=!1,TS=!1,ES=!1,DS=!1,OS=!1,kS={},AS=/\r\n?/g,jS=/\u0000|\uFFFD/g,MS=`http://www.w3.org/1999/xlink`,NS=`http://www.w3.org/XML/1998/namespace`,PS=`javascript:throw new Error('React form unexpectedly submitted.')`,FS=`suppressHydrationWarning`,IS=`&`,LS=`/&`,RS=`$`,zS=`/$`,BS=`$?`,VS=`$~`,HS=`$!`,US=`html`,WS=`body`,GS=`head`,KS=`F!`,qS=`F`,JS=`loading`,YS=`style`,XS=0,ZS=1,QS=2,$S=null,eC=null,tC={dialog:!0,webview:!0},nC=null,rC=void 0,iC=typeof setTimeout==`function`?setTimeout:void 0,aC=typeof clearTimeout==`function`?clearTimeout:void 0,oC=-1,sC=typeof Promise==`function`?Promise:void 0,cC=typeof queueMicrotask==`function`?queueMicrotask:sC===void 0?iC:function(e){return sC.resolve(null).then(e).catch(Wu)},lC=null,uC=0,dC=1,fC=2,pC=3,mC=4,hC=new Map,gC=new Set,_C=qf.d;qf.d={f:function(){var e=_C.f(),t=nl();return e||t},r:function(e){var t=We(e);t!==null&&t.tag===5&&t.type===`form`?Po(t):_C.r(e)},D:function(e){_C.D(e),Dd(`dns-prefetch`,e,null)},C:function(e,t){_C.C(e,t),Dd(`preconnect`,e,t)},L:function(e,t,n){_C.L(e,t,n);var r=vC;if(r&&e&&t){var i=`link[rel="preload"][as="`+ct(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ct(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ct(n.imageSizes)+`"]`)):i+=`[href="`+ct(e)+`"]`;var a=i;switch(t){case`style`:a=Ad(e);break;case`script`:a=Pd(e)}hC.has(a)||(e=Of({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jd(a))||t===`script`&&r.querySelector(Fd(a))||(t=r.createElement(`link`),Cu(t,`link`,e),qe(t),r.head.appendChild(t)))}},m:function(e,t){_C.m(e,t);var n=vC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ct(r)+`"][href="`+ct(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pd(e)}if(!hC.has(a)&&(e=Of({rel:`modulepreload`,href:e},t),hC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Fd(a)))return}r=n.createElement(`link`),Cu(r,`link`,e),qe(r),n.head.appendChild(r)}}},X:function(e,t){_C.X(e,t);var n=vC;if(n&&e){var r=Ke(n).hoistableScripts,i=Pd(e),a=r.get(i);a||(a=n.querySelector(Fd(i)),a||(e=Of({src:e,async:!0},t),(t=hC.get(i))&&zd(e,t),a=n.createElement(`script`),qe(a),Cu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){_C.S(e,t,n);var r=vC;if(r&&e){var i=Ke(r).hoistableStyles,a=Ad(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:uC,preload:null};if(o=r.querySelector(jd(a)))s.loading=dC|mC;else{e=Of({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hC.get(a))&&Rd(e,n);var c=o=r.createElement(`link`);qe(c),Cu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=dC}),c.addEventListener(`error`,function(){s.loading|=fC}),s.loading|=mC,Ld(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){_C.M(e,t);var n=vC;if(n&&e){var r=Ke(n).hoistableScripts,i=Pd(e),a=r.get(i);a||(a=n.querySelector(Fd(i)),a||(e=Of({src:e,async:!0,type:`module`},t),(t=hC.get(i))&&zd(e,t),a=n.createElement(`script`),qe(a),Cu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var vC=typeof document>`u`?null:document,yC=null,bC=6e4,xC=800,SC=500,CC=0,wC=null,TC=null,EC=Jf,DC={$$typeof:If,Provider:null,Consumer:null,_currentValue:EC,_currentValue2:EC,_threadCount:0},OC=`%c%s%c`,kC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,AC=``,jC=` `,MC=Function.prototype.bind,NC=!1,PC=null,FC=null,IC=null,LC=null,RC=null,zC=null,BC=null,VC=null,HC=null,UC=null;PC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=Of({},e.memoizedProps),i=sr(e,2),i!==null&&Zc(i,e,2))},FC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Of({},e.memoizedProps),r=sr(e,2),r!==null&&Zc(r,e,2))},IC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=Of({},e.memoizedProps),i=sr(e,2),i!==null&&Zc(i,e,2))},LC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sr(e,2),t!==null&&Zc(t,e,2)},RC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sr(e,2),t!==null&&Zc(t,e,2)},zC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sr(e,2),t!==null&&Zc(t,e,2)},BC=function(e){var t=sr(e,2);t!==null&&Zc(t,e,2)},VC=function(e){var t=Ae(),n=sr(e,t);n!==null&&Zc(n,e,t)},HC=function(e){s=e},UC=function(e){o=e};var WC=!0,GC=null,KC=!1,qC=null,JC=null,YC=null,XC=new Map,ZC=new Map,QC=[],$C=`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(` `),ew=null;if(Cf.prototype.render=Sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):_(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Qd(r,Yc(r),n,t,null,null)},Cf.prototype.unmount=Sf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Jb&(zb|Bb))!==Rb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Qd(e.current,2,null,e,null,null),nl(),t[qp]=null}},Cf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Be();e={blockedOn:null,target:e,priority:t};for(var n=0;n<QC.length&&t!==0&&t<QC[n].priority;n++);QC.splice(n,0,e),n===0&&mf(e)}},(function(){var e=Ef.version;if(e!==`19.2.5`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.5
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),qf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=S(t),e=e===null?null:C(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:H,reconcilerVersion:`19.2.5`};return e.overrideHookState=PC,e.overrideHookStateDeletePath=FC,e.overrideHookStateRenamePath=IC,e.overrideProps=LC,e.overridePropsDeletePath=RC,e.overridePropsRenamePath=zC,e.scheduleUpdate=BC,e.scheduleRetry=VC,e.setErrorHandler=HC,e.setSuspenseHandler=UC,e.scheduleRefresh=h,e.scheduleRoot=m,e.setRefreshHandler=g,e.getCurrentFiber=rf,Ce(e)})()&&$m&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var tw=window.location.protocol;/^(https?|file):$/.test(tw)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(tw===`file:`?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!_(e))throw Error(`Target container is not a DOM element.`);wf(e);var n=!1,r=``,i=es,a=ts,o=ns;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Af&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xd(e,1,!1,null,null,n,r,null,i,a,o,xf),e[qp]=t.current,su(e),new Sf(t)},e.hydrateRoot=function(e,t,n){if(!_(e))throw Error(`Target container is not a DOM element.`);wf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=es,o=ts,s=ns,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Xd(e,1,!0,t,n??null,r,i,c,a,o,s,xf),t.context=Zd(null),n=t.current,r=Yc(n),r=Ie(r),i=Xi(r),i.callback=null,Zi(n,i,r),ii(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Me(t,n),Wl(t),e[qp]=t.current,su(e),new Cf(t)},e.version=`19.2.5`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),wt=pt(((e,t)=>{t.exports=Ct()})),Tt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Et=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Dt=e=>{let t=Et(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ot=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),kt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},At={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},P=gt(vt()),jt=(0,P.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,P.createElement)(`svg`,{ref:c,...At,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ot(`lucide`,i),...!a&&!kt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])),Mt=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(jt,{ref:i,iconNode:t,className:Ot(`lucide-${Tt(Dt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Dt(e),n},Nt=Mt(`file-plus-2`,[[`path`,{d:`M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4`,key:`1pf5j1`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M3 15h6`,key:`4e2qda`}],[`path`,{d:`M6 12v6`,key:`1u72j0`}]]),Pt=Mt(`file-text`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Ft=Mt(`files`,[[`path`,{d:`M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`,key:`1vo8kb`}],[`path`,{d:`M15 2v4a2 2 0 0 0 2 2h4`,key:`sud9ri`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),It=Mt(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Lt=Mt(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Rt=Mt(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),zt=Mt(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Bt=Mt(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Vt=Mt(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ht=wt();async function Ut(){return(await tn(`/api/context-files`)).files}async function Wt(e){return(await tn(`/api/context-files/${encodeURIComponent(e)}`)).file}async function Gt(e){return(await tn(`/api/context-files`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)})).file}async function Kt(e,t={}){return(await tn(`/api/context-files/${encodeURIComponent(e)}/link-from-plugin`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function qt(e,t){return(await tn(`/api/context-files/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Jt(e,t){return(await tn(`/api/context-files/${encodeURIComponent(e)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Yt(e,t){await tn(`/api/context-files/${encodeURIComponent(e)}`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify({deleteFile:t})})}async function Xt(e){return tn(`/api/context-files/${encodeURIComponent(e)}/revisions`)}async function Zt(e,t=`source`,n=`working`){let r=new URLSearchParams({base:t,target:n});return tn(`/api/context-files/${encodeURIComponent(e)}/diff?${r.toString()}`)}async function Qt(e){return(await tn(`/api/context-files/${encodeURIComponent(e)}/reset-to-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function $t(e){return(await tn(`/api/context-files/${encodeURIComponent(e)}/adopt-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function en(e,t){return(await tn(`/api/context-files/${encodeURIComponent(e)}/restore-revision`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({revisionId:t})})).file}async function tn(e,t={}){let n=await fetch(e,{credentials:`same-origin`,...t,headers:{accept:`application/json`,...t.headers}}),r=await n.json().catch(()=>({}));if(!n.ok){let e=r&&typeof r==`object`&&`error`in r?String(r.error):n.statusText,t=Error(e);throw t.status=n.status,t.data=r,t}return r}var nn=gt(pt(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)T++,k+=A.value.length;T--,w=e.slice(C,k),E.index-=C}else if(E=o(x,0,w,_),!E)continue;var D=E.index,j=E[0],ee=w.slice(0,D),M=w.slice(D+j.length),te=C+w.length;d&&te>d.reach&&(d.reach=te);var ne=S.prev;ee&&(ne=l(t,ne,ee),C+=ee.length),u(t,ne,T);var re=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,ne,re),M&&l(t,S,M),T>1){var ie={cause:f+`,`+m,reach:te};s(e,t,n,S.prev,C,ie),d&&ie.reach>d.reach&&(d.reach=ie.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
236
+ `),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))(),1);function rn(e){return typeof e==`object`&&!!e&&`languages`in e}var an=globalThis,on=rn(an.Prism)?an.Prism:nn.default;an.Prism=on,typeof window<`u`&&(window.Prism=on);var sn=pt((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return te[e]||(te[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,ie[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
237
+ let props = %s;
238
+ <%s {...props} />
239
+ React keys must be passed directly to JSX without using spread:
240
+ let props = %s;
241
+ <%s key={someKey} {...props} />`,o,p,m,p),ie[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=vt(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,ee=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var M,te={},ne=m.react_stack_bottom_frame.bind(m,o)(),re=ee(i(o)),ie={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):ne,r?ee(i(e)):re)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):ne,r?ee(i(e)):re)}})()})),F=pt(((e,t)=>{t.exports=sn()}))(),cn=Object.defineProperty,ln=(e,t,n)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,un=(e,t,n)=>ln(e,typeof t==`symbol`?t:t+``,n),dn=class e{constructor(e=new Map){this.map=e}clone(){return new e(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}decrement(e,t){let n=this.map.get(e);n!==void 0&&(--n,this.map.set(e,n),n===0&&t())}},fn=class{constructor(){un(this,`map`,new Map)}getOrCreate(e){let t=this.map.get(e);return t===void 0&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);n!==void 0&&t(n)}delete(e){return this.map.delete(e)}};function pn(e,t){return t(e),e}function mn(){}var hn=`cell`;function gn(e,t){return e===t}var _n=new Map,vn,yn=class{constructor(e={}){un(this,`subscriptions`,new fn),un(this,`singletonSubscriptions`,new Map),un(this,`graph`,new fn),un(this,`state`,new Map),un(this,`distinctNodes`,new Map),un(this,`executionMaps`,new Map),un(this,`definitionRegistry`,new Set),un(this,`combinedCells`,[]);for(let t of Object.getOwnPropertySymbols(e))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),t!==!1&&!this.distinctNodes.has(n)&&this.distinctNodes.set(n,t===!0?gn:t),n}signalInstance(e=!0,t=Symbol()){return e!==!1&&this.distinctNodes.set(t,e===!0?gn:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),t===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),a=r.participatingNodes.slice(),o=new Map(this.state),s=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{a.splice(a.indexOf(r),1),s(r)})})};for(;;){let n=a.shift();if(n===void 0)break;let i=n,c=!1,l=e=>{let t=this.distinctNodes.get(i);if(t!=null&&t(o.get(i),e)){c=!1;return}c=!0,o.set(i,e),this.state.has(i)&&this.state.set(i,e)};if(Object.prototype.hasOwnProperty.call(e,i)?l(e[i]):r.projections.use(i,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(l)(...e)}}),c){let e=o.get(i);this.inContext(()=>{this.subscriptions.use(i,t=>{for(let n of t)n(e)})}),(t=this.singletonSubscriptions.get(i))==null||t(e)}else s(i)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>pn(this.signalInstance(),n=>(this.link(this.pipe(n,...e),t),n))}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){return pn(this.signalInstance(),t=>{this.connect({map:e=>(...t)=>{e(t)},sink:t,sources:e})})}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){let t=_n.get(e);return t===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),pn(t.type===hn?this.cellInstance(t.initial,t.distinct,e):this.signalInstance(t.distinct,e),e=>{this.inContext(()=>{t.init(this,e)})}))}inContext(e){let t=vn;vn=this;let n=e();return vn=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new fn,i=new dn,a=new fn,o=(e,s=0)=>{i.increment(e),!n.has(e)&&(this.register(e),r.use(e,e=>{s=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(a.getOrCreate(n.sink).add(n),o(n.sink,s)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(s,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:a,refCount:i}}getExecutionMap(e){let t=e;if(e.length===1){t=e[0];let n=this.executionMaps.get(t);if(n!==void 0)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}};function bn(e,t=mn,n=!0){return pn(Symbol(),r=>{_n.set(r,{type:hn,distinct:n,initial:e,init:t})})}function xn(e=mn,t=!1){return pn(Symbol(),n=>{_n.set(n,{type:`signal`,distinct:t,init:e})})}function Sn(e=mn){return pn(Symbol(),t=>{_n.set(t,{type:`signal`,distinct:!1,init:e})})}var Cn=P.createContext(null);function wn(){let e=P.useContext(Cn);if(e===null)throw Error(`useRealm must be used within a RealmContextProvider`);return e}function Tn(e){let t=wn();t.register(e);let n=P.useCallback(n=>t.sub(e,n),[t,e]);return P.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function En(...e){let t=wn();return Tn(P.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function Dn(e){let t=wn();return t.register(e),P.useCallback(n=>{t.pub(e,n)},[t,e])}function On(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function kn(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function An(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>()=>{t(e)},sink:r,sources:[t]}),r}}function jn(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function Mn(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}function Nn(e,t){return t(e),e}function Pn(){}function Fn(e){return function(t){return{init:n=>e.init?.call(e,n,t),postInit:n=>e.postInit?.call(e,n,t),update:n=>e.update?.call(e,n,t)}}}function In({children:e,plugins:t}){let n=P.useMemo(()=>Nn(new yn,e=>{var n,r;for(let r of t)(n=r.init)==null||n.call(r,e);for(let n of t)(r=n.postInit)==null||r.call(n,e)}),[]);return P.useEffect(()=>{var e;for(let r of t)(e=r.update)==null||e.call(r,n)}),P.createElement(Cn.Provider,{value:n},e)}function Ln(e){throw Error(e)}var Rn=(0,P.createContext)(null);function zn(e,t){let n=null;e!=null&&(n=e[1]);function r(){return t??(n==null?null:n.getTheme())}return{getTheme:r}}function Bn(){let e=(0,P.useContext)(Rn);return e??Ln(`LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext`),e}function I(e){throw Error(e)}var Vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Hn=Vn&&`documentMode`in document?document.documentMode:null,Un=Vn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Wn=Vn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Gn=Vn&&`InputEvent`in window&&!Hn?`getTargetRanges`in new window.InputEvent(`input`):!1,Kn=Vn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),qn=Vn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jn=Vn&&/Android/.test(navigator.userAgent),Yn=Vn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Xn=Vn&&Jn&&Yn,Zn=Vn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Yn;function Qn(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}var $n=1,er=3,tr=9,nr=11,rr=0,ir=1,ar=2,or=0,sr=1,cr=2,lr=256,ur=512,dr=1024,fr=2047,pr=1,mr=2,hr=1,gr=2,_r=3,vr=4,yr=5,br=6,xr=`\xA0`,Sr=Kn||qn||Zn?xr:`​`,Cr=`
242
+
243
+ `,wr=Wn?xr:Sr,Tr={bold:1,capitalize:dr,code:16,highlight:128,italic:2,lowercase:lr,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:ur},Er={directionless:pr,unmergeable:mr},Dr={center:gr,end:br,justify:vr,left:hr,right:_r,start:yr},Or={[gr]:`center`,[br]:`end`,[vr]:`justify`,[hr]:`left`,[_r]:`right`,[yr]:`start`},kr={normal:or,segmented:cr,token:sr},Ar={[or]:`normal`,[cr]:`segmented`,[sr]:`token`},jr=`$config`;function Mr(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=Jl(e)),delete r[a])}function Nr(e,t,n,r,i,a){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(V(o)&&Nr(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}function Pr(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(V(t)&&Nr(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)a.delete(e);for(let e of n){let t=a.get(e);t!==void 0&&!t.isAttached()&&(i.has(e)||n.delete(e),a.delete(e))}}var Fr=100,Ir=!1,Lr=0;function Rr(){return Ir}function zr(e){Lr=e.timeStamp}function Br(e){Lr===0&&ld(e).addEventListener(`textInput`,zr,!0)}function Vr(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&Kl(e,n)!==void 0}function Hr(e){return e.getEditorState().read(()=>{let e=B();return e===null?null:e.clone()})}function Ur(e,t,n){let r=bd(ld(n)),i=null,a=null;r!==null&&r.anchorNode===e&&(i=r.anchorOffset,a=r.focusOffset);let o=e.nodeValue;o!==null&&cu(t,o,i,a,!1)}function Wr(e,t,n){if(z(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Al(t)&&n.isAttached()}function Gr(e,t,n,r){for(let i=e;i&&!Rd(i);i=td(i)){let e=Kl(i,t);if(e!==void 0){let t=Ul(e,n);if(t)return Wc(t)||!wd(i)?void 0:[i,t]}else if(i===r)return[r,Ql(n)]}}function Kr(e,t,n){Ir=!0;let r=performance.now()-Lr>Fr;try{Lc(e,()=>{let i=B()||Hr(e),a=new Map,o=e.getRootElement(),s=e._editorState,c=e._blockCursorElement,l=!1,u=``;for(let n=0;n<t.length;n++){let d=t[n],f=d.type,p=d.target,m=Gr(p,e,s,o);if(!m)continue;let[h,g]=m;if(f===`characterData`)r&&R(g)&&Al(p)&&Wr(i,p,g)&&Ur(p,g,e);else if(f===`childList`){l=!0;let t=d.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=Wl(r),a=r.parentNode;if(a!=null&&r!==c&&i===null&&!Vr(r,a,e)){if(Wn){let e=(wd(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}a.removeChild(r)}}let n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Vr(r,p,e)||c===r)&&(p.appendChild(r),t++)}r!==t&&a.set(h,g)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){let n=d[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a!=null&&n.nodeName===`BR`&&!Vr(n,i,e)&&a.removeChild(n)}}n.takeRecords()}i!==null&&(l&&$l(i),Wn&&Zu(e)&&i.insertRawText(u))})}finally{Ir=!1}}function qr(e){let t=e._observer;t!==null&&Kr(e,t.takeRecords(),t)}function Jr(e){Br(e),e._observer=new MutationObserver((t,n)=>{Kr(e,t,n)})}function Yr(e){let t=new Map,n=new Set;for(let r=typeof e==`function`?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=Ud(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;`stateConfig`in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}var Xr=class e{constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?ti(a,n,r):i;i===void 0||o===i||I(`NodeState: size != computedSize (${String(i)} != ${String(o)})`);for(let e of r.keys())a.has(e.key)||I(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return ni(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,ri(n.sharedConfigMap,i,r),i,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=ni(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function Zr(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Xr(t,Qr(t));return t.__state=n,n}function Qr(e){return e.__state?e.__state.sharedNodeState:yl(jd(),e.getType()).sharedNodeState}function $r(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Qr(n).flatKeys)e in t&&((i===void 0||i===r)&&(i={...r}),i[e]=t[e]);return(n.__state||i)&&Zr(e).updateFromJSON(i),n}function ei(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&ii(n,e,t)||t&&ii(n,t,e)||e&&ai(n,e,t)||t&&ai(n,t,e))}function ti(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);(!t||!n.has(t))&&r++}return r}function ni(e){if(e)for(let t in e)return e}function ri(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}function ii(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function ai(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function oi(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function si(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||ei(c,l))}function ci(e,t){let n=e.mergeWithSibling(t),r=mc()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function li(e){let t=e;if(t.__text===``&&t.isSimpleText()&&!t.isUnmergeable()){t.remove();return}let n;for(;(n=t.getPreviousSibling())!==null&&R(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text===``)n.remove();else if(si(n,t)){t=ci(n,t);break}else break;let r;for(;(r=t.getNextSibling())!==null&&R(r)&&r.isSimpleText()&&!r.isUnmergeable();)if(r.__text===``)r.remove();else if(si(t,r)){t=ci(t,r);break}else break}function ui(e){return di(e.anchor),di(e.focus),e}function di(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),R(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}else if(!V(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var fi=``,pi=null,mi=``,hi=``,gi,_i,vi,yi=!1,bi=!1,xi,Si,Ci,wi,Ti,Ei,Di;function Oi(e,t){let n=wi.get(e);if(t!==null){let n=Zi(e);n.parentNode===t&&t.removeChild(n)}if(Ti.has(e)||_i._keyToDOMMap.delete(e),V(n)){let e=Ui(n,wi);ki(e,0,e.length-1,null)}n!==void 0&&Ju(Di,vi,xi,n,`destroyed`)}function ki(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];t!==void 0&&Oi(t,r)}}function Ai(e,t){e.setProperty(`text-align`,t)}var ji=`40px`;function Mi(e,t){let n=gi.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue(`--lexical-indent-base-value`)||ji;e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * ${r})`)}function Ni(e,t){let n=e.style;t===0?Ai(n,``):t===hr?Ai(n,`left`):t===gr?Ai(n,`center`):t===_r?Ai(n,`right`):t===vr?Ai(n,`justify`):t===yr?Ai(n,`start`):t===br&&Ai(n,`end`)}function Pi(e){let t=e.__dir;if(t!==null)return t;if(qc(e))return null;let n=e.getParentOrThrow();return!qc(n)||n.__dir!==null?null:`auto`}function Fi(e,t){let n=Pi(t);n===null?e.removeAttribute(`dir`):e.dir=n}function Ii(e,t){let n=Ti.get(e);n===void 0&&I(`createNode: node does not exist in nodeMap`);let r=n.createDOM(gi,_i);if(Xi(e,r,_i),R(n)?r.setAttribute(`data-lexical-text`,`true`):Wc(n)&&r.setAttribute(`data-lexical-decorator`,`true`),V(n)){let e=n.__indent,t=n.__size;if(Fi(r,n),e!==0&&Mi(r,e),t!==0){let e=t-1;Li(Ui(n,Ti),n,0,e,n.getDOMSlot(r))}let i=n.__format;i!==0&&Ni(r,i),n.isInline()||zi(null,n,r),$u(n)&&(fi+=Cr,hi+=Cr)}else{let t=n.getTextContent();if(Wc(n)){let t=n.decorate(_i,gi);t!==null&&Ki(e,t),r.contentEditable=`false`}fi+=t,hi+=t}return t!==null&&t.insertChild(r),Object.freeze(n),Ju(Di,vi,xi,n,`created`),r}function Li(e,t,n,r,i){let a=fi;fi=``;let o=n;for(;o<=r;++o){Ii(e[o],i);let t=Ti.get(e[o]);t!==null&&R(t)&&(pi===null&&(pi=t.getFormat()),mi===``&&(mi=t.getStyle()))}$u(t)&&(fi+=Cr);let s=i.element;s.__lexicalTextContent=fi,fi=a+fi}function Ri(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return Uo(e)?`line-break`:Wc(e)&&e.isInline()?`decorator`:null}return`empty`}return null}function zi(e,t,n){let r=Ri(e,wi),i=Ri(t,Ti);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function Bi(e){pi!=null&&pi!==e.__textFormat&&!bi&&e.setTextFormat(pi)}function Vi(e){mi!==``&&mi!==e.__textStyle&&!bi&&e.setTextStyle(mi)}function Hi(e,t,n){pi=null,mi=``,Wi(e,t,t.getDOMSlot(n)),Bi(t),Vi(t)}function Ui(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t.get(r);e===void 0&&I(`createChildrenArray: node does not exist in nodeMap`),n.push(r),r=e.__next}return n}function Wi(e,t,n){let r=fi,i=e.__size,a=t.__size;fi=``;let o=n.element;if(i===1&&a===1){let n=e.__first,r=t.__first;if(n===r)Gi(n,o);else{let e=Zi(n),t=Ii(r,null);try{o.replaceChild(t,e)}catch(i){if(typeof i==`object`&&i){let a=`${i.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw Error(a)}else throw i}Oi(n,null)}let i=Ti.get(r);R(i)&&(pi===null&&(pi=i.getFormat()),mi===``&&(mi=i.getStyle()))}else{let r=Ui(e,wi),s=Ui(t,Ti);if(r.length!==i&&I(`$reconcileChildren: prevChildren.length !== prevChildrenSize`),s.length!==a&&I(`$reconcileChildren: nextChildren.length !== nextChildrenSize`),i===0)a!==0&&Li(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&n.element.__lexicalLineBreak==null;ki(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else Ji(t,r,s,i,a,n)}$u(t)&&(fi+=Cr),o.__lexicalTextContent=fi,fi=r+fi}function Gi(e,t){let n=wi.get(e),r=Ti.get(e);(n===void 0||r===void 0)&&I(`reconcileNode: prevNode or nextNode does not exist in nodeMap`);let i=yi||Ci.has(e)||Si.has(e),a=ed(_i,e);if(n===r&&!i){if(V(n)){let e=a.__lexicalTextContent;e!==void 0&&(fi+=e,hi+=e)}else{let e=n.getTextContent();hi+=e,fi+=e}return a}if(n!==r&&i&&Ju(Di,vi,xi,r,`updated`),r.updateDOM(n,a,gi)){let n=Ii(e,null);return t===null&&I(`reconcileNode: parentDOM is null`),t.replaceChild(n,a),Oi(e,null),n}if(V(n)&&V(r)){let e=r.__indent;(yi||e!==n.__indent)&&Mi(a,e);let t=r.__format;if((yi||t!==n.__format)&&Ni(a,t),i&&(Hi(n,r,a),!qc(r)&&!r.isInline()&&zi(n,r,a)),$u(r)&&(fi+=Cr,hi+=Cr),(yi||r.__dir!==n.__dir)&&(Fi(a,r),qc(r)&&!yi))for(let e of r.getChildren())V(e)&&Fi(ed(_i,e.getKey()),e)}else{let t=r.getTextContent();if(Wc(r)){let t=r.decorate(_i,gi);t!==null&&Ki(e,t)}fi+=t,hi+=t}if(!bi&&qc(r)&&r.__cachedText!==hi){let e=r.getWritable();e.__cachedText=hi,r=e}return Object.freeze(r),a}function Ki(e,t){let n=_i._pendingDecorators,r=_i._decorators;if(n===null){if(r[e]===t)return;n=Jl(_i)}n[e]=t}function qi(e){let t=e.nextSibling;return t!==null&&t===_i._blockCursorElement&&(t=t.nextSibling),t}function Ji(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f];if(e===r)u=qi(Gi(r,a.element)),d++,f++;else{c===void 0&&(c=new Set(t)),l===void 0&&(l=new Set(n));let i=l.has(e),o=c.has(r);if(!i)u=qi(Zi(e)),Oi(e,a.element),d++;else if(!o)Ii(r,a.withBefore(u)),f++;else{let e=ed(_i,r);e===u?u=qi(Gi(r,a.element)):(a.withBefore(u).insertChild(e),Gi(r,a.element)),d++,f++}}let i=Ti.get(r);i!==null&&R(i)&&(pi===null&&(pi=i.getFormat()),mi===``&&(mi=i.getStyle()))}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:_i.getElementByKey(t);Li(n,e,f,s,a.withBefore(r))}else m&&!p&&ki(t,d,o,a.element)}function Yi(e,t,n,r,i,a){fi=``,hi=``,yi=r===ar,_i=n,gi=n._config,vi=n._nodes,xi=_i._listeners.mutation,Si=i,Ci=a,wi=e._nodeMap,Ti=t._nodeMap,bi=t._readOnly,Ei=new Map(n._keyToDOMMap);let o=new Map;return Di=o,Gi(`root`,null),_i=void 0,vi=void 0,Si=void 0,Ci=void 0,wi=void 0,Ti=void 0,gi=void 0,Ei=void 0,Di=void 0,o}function Xi(e,t,n){let r=n._keyToDOMMap;Gl(t,n,e),r.set(e,t)}function Zi(e){let t=Ei.get(e);return t===void 0&&I(`Reconciliation: could not find DOM element for node key ${e}`),t}function Qi(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}function $i(e){return{type:e}}var ea=$i(`SELECTION_CHANGE_COMMAND`),ta=$i(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),na=$i(`CLICK_COMMAND`),ra=$i(`DELETE_CHARACTER_COMMAND`),ia=$i(`INSERT_LINE_BREAK_COMMAND`),aa=$i(`INSERT_PARAGRAPH_COMMAND`),oa=$i(`CONTROLLED_TEXT_INSERTION_COMMAND`),sa=$i(`PASTE_COMMAND`),ca=$i(`REMOVE_TEXT_COMMAND`),la=$i(`DELETE_WORD_COMMAND`),ua=$i(`DELETE_LINE_COMMAND`),da=$i(`FORMAT_TEXT_COMMAND`),fa=$i(`UNDO_COMMAND`),pa=$i(`REDO_COMMAND`),ma=$i(`KEYDOWN_COMMAND`),L=$i(`KEY_ARROW_RIGHT_COMMAND`),ha=$i(`MOVE_TO_END`),ga=$i(`KEY_ARROW_LEFT_COMMAND`),_a=$i(`MOVE_TO_START`),va=$i(`KEY_ARROW_UP_COMMAND`),ya=$i(`KEY_ARROW_DOWN_COMMAND`),ba=$i(`KEY_ENTER_COMMAND`),xa=$i(`KEY_SPACE_COMMAND`),Sa=$i(`KEY_BACKSPACE_COMMAND`),Ca=$i(`KEY_ESCAPE_COMMAND`),wa=$i(`KEY_DELETE_COMMAND`),Ta=$i(`KEY_TAB_COMMAND`),Ea=$i(`INSERT_TAB_COMMAND`),Da=$i(`INDENT_CONTENT_COMMAND`),Oa=$i(`OUTDENT_CONTENT_COMMAND`),ka=$i(`DROP_COMMAND`),Aa=$i(`FORMAT_ELEMENT_COMMAND`),ja=$i(`DRAGSTART_COMMAND`),Ma=$i(`DRAGOVER_COMMAND`),Na=$i(`DRAGEND_COMMAND`),Pa=$i(`COPY_COMMAND`),Fa=$i(`CUT_COMMAND`),Ia=$i(`SELECT_ALL_COMMAND`),La=$i(`CLEAR_EDITOR_COMMAND`),Ra=$i(`CLEAR_HISTORY_COMMAND`),za=$i(`CAN_REDO_COMMAND`),Ba=$i(`CAN_UNDO_COMMAND`),Va=$i(`FOCUS_COMMAND`),Ha=$i(`BLUR_COMMAND`),Ua=$i(`KEY_MODIFIER_COMMAND`),Wa=Object.freeze({}),Ga=30,Ka=[[`keydown`,Co],[`pointerdown`,mo],[`compositionstart`,bo],[`compositionend`,So],[`input`,yo],[`click`,po],[`cut`,Wa],[`copy`,Wa],[`dragstart`,Wa],[`dragover`,Wa],[`dragend`,Wa],[`paste`,Wa],[`focus`,Wa],[`blur`,Wa],[`drop`,Wa]];Gn&&Ka.push([`beforeinput`,(e,t)=>vo(e,t)]);var qa=0,Ja=null,Ya=0,Xa=null,Za=new WeakMap,Qa=!1,$a=!1,eo=!1,to=!1,no=!1,ro=``,io=null,ao=[0,``,0,`root`,0];function oo(e,t,n,r,i){let a=e.anchor,o=e.focus,s=a.getNode(),c=mc(),l=bd(ld(c)),u=l===null?null:l.anchorNode,d=a.key,f=c.getElementByKey(d),p=n.length;return d!==o.key||!R(s)||(!i&&(!Gn||Ya<r+50)||s.isDirty()&&p<2||ru(n))&&a.offset!==o.offset&&!s.isComposing()||kl(s)||s.isDirty()&&p>1||(i||!Gn)&&f!==null&&!s.isComposing()&&u!==Ml(f)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||du(e,s)}function so(e,t){return Al(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function co(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=e;Qa&&(Qa=!1,so(r,i)&&so(a,o)&&!io)||Lc(t,()=>{if(!n){$l(null);return}if(!wl(t,r,a))return;let s=B();if(io&&z(s)&&s.isCollapsed()){let e=s.anchor,t=io.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=io.clone(),$l(s))}if(io=null,z(s)){let n=s.anchor,r=n.getNode();if(s.isCollapsed()){e.type===`Range`&&e.anchorNode===e.focusNode&&(s.dirty=!0);let i=ld(t).event,a=i?i.timeStamp:performance.now(),[o,c,l,u,d]=ao,f=Zl(),p=t.isComposing()===!1&&f.getTextContent()===``;if(a<d+200&&n.offset===l&&n.key===u)lo(s,o,c);else if(n.type===`text`)R(r)||I(`Point.getNode() must return TextNode when type is text`),uo(s,r);else if(n.type===`element`&&!p){V(r)||I(`Point.getNode() must return ElementNode when type is element`);let e=n.getNode();e.isEmpty()?fo(s,e):lo(s,0,``)}}else{let e=n.key,t=s.focus.key,r=s.getNodes(),a=r.length,c=s.isBackward(),l=c?o:i,u=c?i:o,d=c?t:e,f=c?e:t,p=fr,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(R(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}s.format=m?p:0}}Qu(t,ea,void 0)})}function lo(e,t,n){(e.format!==t||e.style!==n)&&(e.format=t,e.style=n,e.dirty=!0)}function uo(e,t){lo(e,t.getFormat(),t.getStyle())}function fo(e,t){lo(e,t.getTextFormat(),t.getTextStyle())}function po(e,t){Lc(t,()=>{let n=B(),r=bd(ld(t)),i=Ws();if(r){if(z(n)){let t=n.anchor,a=t.getNode();if(t.type===`element`&&t.offset===0&&n.isCollapsed()&&!qc(a)&&Zl().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){let e=Sd(a,e=>V(e)&&!e.isInline());V(e)&&e.select(0)}}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=r.anchorNode;(wd(n)||Al(n))&&$l(Hs(i,r,t,e))}}Qu(t,na,e)})}function mo(e,t){let n=e.target,r=e.pointerType;Td(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&Lc(t,()=>{Sl(n)||($a=!0)})}function ho(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function go(e,t){return e!==t||V(e)||V(t)||!Ol(e)||!Ol(t)}function _o(e){return Ja===`MediaLast`&&e<qa+Ga}function vo(e,t){let n=e.inputType,r=ho(e);n===`deleteCompositionText`||Wn&&Zu(t)||n!==`insertCompositionText`&&Lc(t,()=>{let i=B();if(n===`deleteContentBackward`){if(i===null){let e=Ws();if(!z(e))return;$l(e.clone())}if(z(i)){let n=i.anchor.key===i.focus.key;if(_o(e.timeStamp)&&t.isComposing()&&n){if(Vl(null),qa=0,setTimeout(()=>{Lc(t,()=>{Vl(null)})},Ga),z(i)){let e=i.anchor.getNode();e.markDirty(),R(e)||I(`Anchor node must be a TextNode`),uo(i,e)}}else{Vl(null),e.preventDefault();let r=i.anchor.getNode(),a=r.getTextContent(),o=r.canInsertTextAfter(),s=i.anchor.offset===0&&i.focus.offset===a.length,c=Xn&&n&&!s&&o;if(c&&i.isCollapsed()&&(c=!Wc(Xu(i.anchor,!0))),!c){Qu(t,ra,!0);let e=B();Xn&&z(e)&&e.isCollapsed()&&(io=e,setTimeout(()=>io=null))}}return}}if(!z(i))return;let a=e.data;Xa!==null&&su(!1,t,Xa),(!i.dirty||Xa!==null)&&i.isCollapsed()&&!qc(i.anchor.getNode())&&r!==null&&i.applyDOMRange(r),Xa=null;let o=i.anchor,s=i.focus,c=o.getNode(),l=s.getNode();if(n===`insertText`||n===`insertTranspose`){if(a===`
244
+ `)e.preventDefault(),Qu(t,ia,!1);else if(a===Cr)e.preventDefault(),Qu(t,aa,void 0);else if(a==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),i.insertRawText(t)}else a!=null&&oo(i,r,a,e.timeStamp,!0)?(e.preventDefault(),Qu(t,oa,a)):Xa=a;Ya=e.timeStamp;return}switch(e.preventDefault(),n){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:Qu(t,oa,e);break;case`insertFromComposition`:Vl(null),Qu(t,oa,e);break;case`insertLineBreak`:Vl(null),Qu(t,ia,!1);break;case`insertParagraph`:Vl(null),eo&&!qn?(eo=!1,Qu(t,ia,!1)):Qu(t,aa,void 0);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:Qu(t,sa,e);break;case`deleteByComposition`:go(c,l)&&Qu(t,ca,e);break;case`deleteByDrag`:case`deleteByCut`:Qu(t,ca,e);break;case`deleteContent`:Qu(t,ra,!1);break;case`deleteWordBackward`:Qu(t,la,!0);break;case`deleteWordForward`:Qu(t,la,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:Qu(t,ua,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:Qu(t,ua,!1);break;case`formatStrikeThrough`:Qu(t,da,`strikethrough`);break;case`formatBold`:Qu(t,da,`bold`);break;case`formatItalic`:Qu(t,da,`italic`);break;case`formatUnderline`:Qu(t,da,`underline`);break;case`historyUndo`:Qu(t,fa,void 0);break;case`historyRedo`:Qu(t,pa,void 0);break}})}function yo(e,t){e.stopPropagation(),Lc(t,()=>{if(wd(e.target)&&Sl(e.target))return;let n=B(),r=e.data,i=ho(e);if(r!=null&&z(n)&&oo(n,i,r,e.timeStamp,!1)){to&&=(xo(t,r),!1);let i=n.anchor.getNode(),a=bd(ld(t));if(a===null)return;let o=n.isBackward(),s=o?n.anchor.offset:n.focus.offset,c=o?n.focus.offset:n.anchor.offset;(!Gn||n.isCollapsed()||!R(i)||a.anchorNode===null||i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+c)!==ou(a.anchorNode))&&Qu(t,oa,r);let l=r.length;Wn&&l>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(n.anchor.offset-=l),!Kn&&!qn&&!Zn&&t.isComposing()&&(qa=0,Vl(null))}else su(!1,t,r===null?void 0:r),to&&=(xo(t,r||void 0),!1);eu()},{event:e}),Xa=null}function bo(e,t){Lc(t,()=>{let n=B();if(z(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();Vl(r.key),(e.timeStamp<qa+Ga||r.type===`element`||!n.isCollapsed()||i.getFormat()!==n.format||R(i)&&i.getStyle()!==n.style)&&Qu(t,oa,wr)}})}function xo(e,t){let n=e._compositionKey;if(Vl(null),n!==null&&t!=null){if(t===``){let t=Ul(n),r=Ml(e.getElementByKey(n));r!==null&&r.nodeValue!==null&&R(t)&&cu(t,r.nodeValue,null,null,!0);return}if(t[t.length-1]===`
245
+ `){let t=B();if(z(t)){let n=t.focus;t.anchor.set(n.key,n.offset,n.type),Qu(e,ba,null);return}}}su(!0,e,t)}function So(e,t){Wn?to=!0:!qn&&(Kn||Zn)?(no=!0,ro=e.data):Lc(t,()=>{xo(t,e.data)})}function Co(e,t){if(qa=e.timeStamp,Ja=e.key,!t.isComposing()&&!Qu(t,ma,e)&&e.key!=null){if(no&&Hu(e)){Lc(t,()=>{xo(t,ro)}),no=!1,ro=``;return}if(Iu(e))Qu(t,L,e);else if(Lu(e))Qu(t,ha,e);else if(Pu(e))Qu(t,ga,e);else if(Fu(e))Qu(t,_a,e);else if(Ru(e))Qu(t,va,e);else if(zu(e))Qu(t,ya,e);else if(Su(e))eo=!0,Qu(t,ba,e);else if(Vu(e))Qu(t,xa,e);else if(Cu(e))e.preventDefault(),eo=!0,Qu(t,ia,!0);else if(xu(e))eo=!1,Qu(t,ba,e);else if(Ou(e))Hu(e)?Qu(t,Sa,e):(e.preventDefault(),Qu(t,ra,!0));else if(Uu(e))Qu(t,Ca,e);else if(ku(e))Wu(e)?Qu(t,wa,e):(e.preventDefault(),Qu(t,ra,!1));else if(wu(e))e.preventDefault(),Qu(t,la,!0);else if(Tu(e))e.preventDefault(),Qu(t,la,!1);else if(Eu(e))e.preventDefault(),Qu(t,ua,!0);else if(Du(e))e.preventDefault(),Qu(t,ua,!1);else if(vu(e))e.preventDefault(),Qu(t,da,`bold`);else if(bu(e))e.preventDefault(),Qu(t,da,`underline`);else if(yu(e))e.preventDefault(),Qu(t,da,`italic`);else if(_u(e))Qu(t,Ta,e);else if(Au(e))e.preventDefault(),Qu(t,fa,void 0);else if(ju(e))e.preventDefault(),Qu(t,pa,void 0);else{let n=t._editorState._selection;n!==null&&!z(n)?Mu(e)?(e.preventDefault(),Qu(t,Pa,e)):Nu(e)?(e.preventDefault(),Qu(t,Fa,e)):Gu(e)&&(e.preventDefault(),Qu(t,Ia,e)):Gu(e)&&(e.preventDefault(),Qu(t,Ia,e))}Bu(e)&&Qu(t,Ua,e)}}function wo(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}var To=new Map;function Eo(e){let t=xd(e.target);if(t===null)return;let n=El(t.anchorNode);if(n===null)return;$a&&($a=!1,Lc(n,()=>{let r=Ws(),i=t.anchorNode;(wd(i)||Al(i))&&$l(Hs(r,t,n,e))}));let r=iu(n),i=r[r.length-1],a=i._key,o=To.get(a),s=o||i;s!==n&&co(t,s,!1),co(t,n,!0),n===i?o&&To.delete(a):To.set(a,n)}function Do(e){e._lexicalHandled=!0}function Oo(e){return e._lexicalHandled===!0}function ko(e,t){let n=e.ownerDocument,r=Za.get(n);(r===void 0||r<1)&&n.addEventListener(`selectionchange`,Eo),Za.set(n,(r||0)+1),e.__lexicalEditor=t;let i=wo(e);for(let n=0;n<Ka.length;n++){let[r,a]=Ka[n],o=typeof a==`function`?e=>{Oo(e)||(Do(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(Oo(e))return;Do(e);let n=t.isEditable();switch(r){case`cut`:return n&&Qu(t,Fa,e);case`copy`:return Qu(t,Pa,e);case`paste`:return n&&Qu(t,sa,e);case`dragstart`:return n&&Qu(t,ja,e);case`dragover`:return n&&Qu(t,Ma,e);case`dragend`:return n&&Qu(t,Na,e);case`focus`:return n&&Qu(t,Va,e);case`blur`:return n&&Qu(t,Ha,e);case`drop`:return n&&Qu(t,ka,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}var Ao=Qi(`Root element not registered`);function jo(e){let t=e.ownerDocument,n=Za.get(t);if(n===void 0){Ao();return}let r=n-1;r>=0||I(`Root element count less than 0`),Za.set(t,r),r===0&&t.removeEventListener(`selectionchange`,Eo);let i=Dl(e);Tl(i)?(Mo(i),e.__lexicalEditor=null):i&&I(`Attempted to remove event handlers from a node that does not belong to this build of Lexical`);let a=wo(e);for(let e=0;e<a.length;e++)a[e]();e.__lexicalEventHandles=[]}function Mo(e){if(e._parentEditor!==null){let t=iu(e),n=t[t.length-1]._key;To.get(n)===e&&To.delete(n)}else To.delete(e._key)}function No(){Qa=!0}function Po(e,t,n,r,i){ao=[e,t,n,r,i]}function Fo(e,t,n){dc();let r=e.__key,i=e.getParent();if(i===null)return;let a=od(e),o=!1;if(z(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(Js(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(Js(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else Ss(a)&&t&&e.isSelected()&&e.selectPrevious();if(z(a)&&t&&!o){let t=e.getIndexWithinParent();Rl(e),Gs(a,i,t,-1)}else Rl(e);!n&&!dd(i)&&!i.canBeEmpty()&&i.isEmpty()&&Fo(i,t),t&&a&&qc(i)&&i.isEmpty()&&i.selectEnd()}function Io(e){return e}var Lo=class{static getType(){let{ownNodeType:e}=Ud(this);return e===void 0&&I(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){I(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,`__state`,{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Fl(this,e),this.__type!==`root`&&(dc(),Ro(this.__type,this.constructor))}getType(){return this.__type}isInline(){I(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=Ul(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){let t=e||B();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(R(this))return n;if(z(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(Wc(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:Ul(e)}getParentOrThrow(){let e=this.getParent();return e===null&&I(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(dd(t))return V(e)||e===this&&Wc(e)||I(`Children of root nodes must be elements or decorators`),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&I(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:Ul(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:Ul(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=V(this)?this:this.getParent(),n=V(e)?e:e.getParent(),r=t&&n?kf(t,n):null;return r?r.commonAncestor:null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){let t=kf(this,e);return t===null?!1:t.type===`descendant`?!0:t.type===`branch`?Ef(t)===-1:(t.type===`same`||t.type===`ancestor`||I(`LexicalNode.isBefore: exhaustiveness check`),!1)}isParentOf(e){let t=kf(this,e);return t!==null&&t.type===`ancestor`}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=V(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do if(u===null&&I(`getNodesBetween: ancestor is null`),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u!==null)l===null&&!r.has(u.__key)&&n.push(u);else break;while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=mc()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=Ul(this.__key);return e===null&&I(`Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update.`),e}getWritable(){dc();let e=pc(),t=mc(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=B();if(o!==null&&o.setCachedNodes(null),a.has(r))return zl(i),i;let s=Id(i);return a.add(r),zl(s),n.set(r,s),s}getTextContent(){return``}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){I(`createDOM: base method not extended`)}updateDOM(e,t,n){I(`updateDOM: base method not extended`)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){I(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return $r(this,e)}static transform(){return null}remove(e){Fo(this,!0,e)}replace(e,t){dc();let n=B();n!==null&&(n=n.clone()),md(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size;Rl(o);let l=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Fo(r,!1,!0),l===null)s.__first=a;else{let e=l.getWritable();e.__next=a}if(o.__prev=d,u===null)s.__last=a;else{let e=u.getWritable();e.__prev=a}if(o.__next=f,o.__parent=p,s.__size=c,t&&(V(this)&&V(o)||I(`includeChildren should only be true for ElementNodes`),this.getChildren().forEach(e=>{o.append(e)})),z(n)){$l(n);let e=n.anchor,t=n.focus;e.key===i&&vs(e,o),t.key===i&&vs(t,o)}return Hl()===i&&Vl(a),o}insertAfter(e,t=!0){dc(),md(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),a=B(),o=!1,s=!1;if(i!==null){let t=e.getIndexWithinParent();if(Rl(r),z(a)){let e=i.__key,n=a.anchor,r=a.focus;o=n.type===`element`&&n.key===e&&n.offset===t+1,s=r.type===`element`&&r.key===e&&r.offset===t+1}}let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null)l.__last=u;else{let e=c.getWritable();e.__prev=u}if(l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&z(a)){let e=this.getIndexWithinParent();Gs(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){dc(),md(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;Rl(r);let a=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,c=this.getIndexWithinParent();if(a===null)o.__first=i;else{let e=a.getWritable();e.__next=i}o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let l=B();return t&&z(l)&&Gs(l,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return sl()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){dc();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(n===null)return r.select(0,0);if(V(n))return n.select();if(!R(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){dc();let n=this.getNextSibling(),r=this.getParentOrThrow();if(n===null)return r.select();if(V(n))return n.select(0,0);if(!R(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};function Ro(e,t){let n=bl(mc(),e);n===void 0&&I(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);let r=n.klass;r!==t&&I(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}function zo(e,t,n){let r=t.getParentOrThrow().getLastChild(),i=t,a=[t];for(;i!==r;)i.getNextSibling()||I(`insertRangeAfter: lastToInsert must be a later sibling of firstToInsert`),i=i.getNextSibling(),a.push(i);let o=e;for(let e of a)o=o.insertAfter(e)}var Bo=class e extends Lo{static getType(){return`linebreak`}static clone(t){return new e(t.__key)}constructor(e){super(e)}getTextContent(){return`
246
+ `}createDOM(){return document.createElement(`br`)}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>Wo(e)||Go(e)?null:{conversion:Vo,priority:0}}}static importJSON(e){return Ho().updateFromJSON(e)}};function Vo(e){return{node:Ho()}}function Ho(){return pd(new Bo)}function Uo(e){return e instanceof Bo}function Wo(e){let t=e.parentElement;if(t!==null&&Od(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&Ko(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&Ko(n))return!0}}return!1}function Go(e){let t=e.parentElement;if(t!==null&&Od(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&Ko(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&Ko(r))return!0}return!1}function Ko(e){return Al(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function qo(e,t){return t&16?`code`:t&128?`mark`:t&32?`sub`:t&64?`sup`:null}function Jo(e,t){return t&1?`strong`:t&2?`em`:`span`}function Yo(e,t,n,r,i){let a=r.classList,o=qu(i,`base`);o!==void 0&&a.add(...o),o=qu(i,`underlineStrikethrough`);let s=!1,c=t&8&&t&4,l=n&8&&n&4;o!==void 0&&(l?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in Tr){let r=Tr[e];if(o=qu(i,e),o!==void 0)if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}function Xo(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}function Zo(e,t,n){let r=t.firstChild,i=n.isComposing(),a=e+(i?Sr:``);if(r==null)t.textContent=a;else{let e=r.nodeValue;if(e!==a)if(i||Wn){let[t,n,i]=Xo(e,a);n!==0&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=a}}function Qo(e,t,n,r,i,a){Zo(i,e,t);let o=a.theme.text;o!==void 0&&Yo(n,0,r,e,o)}function $o(e,t){let n=document.createElement(t);return n.appendChild(e),n}var es=class e extends Lo{static getType(){return`text`}static clone(t){return new e(t.__text,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return Ar[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===sr}isComposing(){return this.__key===Hl()}isSegmented(){return this.getLatest().__mode===cr}isDirectionless(){return(this.getLatest().__detail&pr)!==0}isUnmergeable(){return(this.getLatest().__detail&mr)!==0}hasFormat(e){let t=Tr[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){let n=this.getLatest().__format;return Nl(n,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=qo(this,n),i=Jo(this,n),a=r===null?i:r,o=document.createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=document.createElement(i),o.appendChild(s));let c=this.__text;Qo(s,this,i,n,c,e);let l=this.__style;return l!==``&&(o.style.cssText=l),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=qo(this,i),s=qo(this,a),c=Jo(this,i),l=Jo(this,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??I(`updateDOM: prevInnerDOM is null or undefined`);let i=document.createElement(l);return Qo(i,this,l,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??I(`updateDOM: innerDOM is null or undefined`)),Zo(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&Yo(l,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:os,priority:0}),b:()=>({conversion:ns,priority:0}),code:()=>({conversion:ls,priority:0}),em:()=>({conversion:ls,priority:0}),i:()=>({conversion:ls,priority:0}),mark:()=>({conversion:ls,priority:0}),s:()=>({conversion:ls,priority:0}),span:()=>({conversion:ts,priority:0}),strong:()=>({conversion:ls,priority:0}),sub:()=>({conversion:ls,priority:0}),sup:()=>({conversion:ls,priority:0}),u:()=>({conversion:ls,priority:0})}}static importJSON(e){return us().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return wd(t)||I(`Expected TextNode createDOM to always return a HTMLElement`),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=$o(t,`b`)),this.hasFormat(`italic`)&&(t=$o(t,`i`)),this.hasFormat(`strikethrough`)&&(t=$o(t,`s`)),this.hasFormat(`underline`)&&(t=$o(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?Tr[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Er[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=Nl(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=pr,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=mr,e}setMode(e){let t=kr[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){dc();let n=e,r=t,i=B(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(z(i)){let e=Hl();(e===i.anchor.key||e===i.focus.key)&&Vl(o),i.setTextNodeRange(this,n,this,r)}else return Rs(o,n,o,r,`text`,`text`);return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=B();if(r&&z(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){dc();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=Hl(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=B();if(z(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=us(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=oi(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=o[e],a=us(n);a.__format=f,a.__style=p,a.__detail=m,a.__state=oi(t,a);let s=a.__key;i===r&&Vl(s),y.push(a)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!(g||_))break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){Bl(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),z(v)&&Gs(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();!t&&e!==this.getNextSibling()&&I(`mergeWithSibling: sibling must be a previous or next sibling`);let n=this.__key,r=e.__key,i=this.__text,a=i.length;Hl()===r&&Vl(n);let o=B();if(z(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&Ys(i,t,n,e,a),s!==null&&s.key===r&&Ys(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}};function ts(e){let t=e.style;return{forChild:ds(t),node:null}}function ns(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:ds(t.style,n?void 0:`bold`),node:null}}var rs=new WeakMap;function is(e){if(!wd(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function as(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=rs.get(n))===void 0&&!is(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)rs.set(r[e],i);return i}function os(e){let t=e;e.parentElement===null&&I(`Expected parentElement of Text not to be null`);let n=t.textContent||``;if(as(t)!==null){let e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){let r=e[n];r===`
247
+ `||r===`\r
248
+ `?t.push(Ho()):r===` `?t.push(ps()):r!==``&&t.push(us(r))}return{node:t}}if(n=n.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),n===``)return{node:null};if(n[0]===` `){let e=t,r=!0;for(;e!==null&&(e=ss(e,!1))!==null;){let t=e.textContent||``;if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=ss(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:us(n)}}function ss(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,wd(n)){let e=n.style.display;if(e===``&&!Dd(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(Al(n))return n;if(n.nodeName===`BR`)return null}}var cs={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`};function ls(e){let t=cs[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:ds(e.style,t),node:null}}function us(e=``){return pd(new es(e))}function R(e){return e instanceof es}function ds(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>R(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c===`sub`&&!e.hasFormat(`subscript`)&&e.toggleFormat(`subscript`),c===`super`&&!e.hasFormat(`superscript`)&&e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}var fs=class e extends es{static getType(){return`tab`}static clone(t){return new e(t.__key)}constructor(e){super(` `,e),this.__detail=mr}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=qu(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}static importJSON(e){return ps().updateFromJSON(e)}setTextContent(e){return e===` `||e===``||I(`TabNode does not support setTextContent`),super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||I(`TabNode does not support spliceText`),this}setDetail(e){return e!==mr&&I(`TabNode does not support setDetail`),this}setMode(e){return e!==`normal`&&I(`TabNode does not support setMode`),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function ps(){return pd(new fs)}function ms(e){return e instanceof fs}var hs=class{constructor(e,t,n){Object.defineProperty(this,`_selection`,{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Tf(Vf(Af(this,`next`)),Vf(Af(e,`next`)))<0}getNode(){let e=this.key,t=Ul(e);return t===null&&I(`Point.getNode: node not found`),t}set(e,t,n,r){let i=this._selection,a=this.key;if(!(r&&this.key===e&&this.offset===t&&this.type===n)){this.key=e,this.offset=t,this.type=n;{let t=Ul(e);(n===`text`?R(t):V(t))||I(`PointType.set: node with key ${e} is ${t?t.__type:`[not found]`} and can not be used for a ${n} point`)}uc()||(Hl()===a&&Vl(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0))}}};function gs(e,t,n){return new hs(e,t,n)}function _s(e,t){let n=t.__key,r=e.offset,i=`element`;if(R(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!V(t)){let e=t.getNextSibling();if(R(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function vs(e,t){if(V(t)){let n=t.getLastDescendant();V(n)||R(n)?_s(e,n):_s(e,t)}else _s(e,t)}function ys(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=us();if(o.setFormat(n),o.setStyle(r),cl(a))a.splice(0,0,[o]);else{let e=qc(i)?sl().append(o):o;a===null?i.append(e):a.insertBefore(e)}e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}var bs=class e{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ss(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes(),n=t.length,r=t[n-1],i;if(R(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=this._nodes,n=[];for(let e of t){let t=Ul(e);t!==null&&n.push(t)}return uc()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t=``;for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((B()||Ws())===this&&e[0]){let t=uf(e[0],`next`);Mf(Sf(t,t))}for(let t of e)t.remove()}};function z(e){return e instanceof xs}var xs=class e{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return z(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style:!1}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=nc(Wf(Pf(this),`next`));return this.isCollapsed()&&t.length>1&&I(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),uc()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`)}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=ws(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if(V(d)&&!d.isInline())l||(c+=`
249
+ `),l=!d.isEmpty();else if(l=!1,R(d)){let e=d.getTextContent();d===t?d===n?(r.type!==`element`||i.type!==`element`||i.offset===r.offset)&&(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else (Wc(d)||Uo(d))&&(d!==n||!this.isCollapsed())&&(c+=d.getTextContent())}return c}applyDOMRange(e){let t=mc(),n=t.getEditorState()._selection,r=Is(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),ui(this)}clone(){let t=this.anchor,n=this.focus;return new e(gs(t.key,t.offset,t.type),gs(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=Nl(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=Tr[e];return(this.format&t)!==0}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];r===`
250
+ `||r===`\r
251
+ `?n.push(Ho()):r===` `?n.push(ps()):n.push(us(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,a=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(a=n,o=t),a.type===`element`&&ys(a,o,r,i),o.type===`element`&&jf(o,Vf(Af(o,`next`)));let s=a.offset,c=o.offset,l=this.getNodes(),u=l.length,d=l[0];R(d)||I(`insertText: first node is not a text node`);let f=d.getTextContent().length,p=d.getParentOrThrow(),m=l[u-1];if(u===1&&o.type===`element`&&(c=f,o.set(a.key,c,`text`)),this.isCollapsed()&&s===f&&(kl(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&d.getNextSibling()===null)){let t=d.getNextSibling();if((!R(t)||!t.canInsertTextBefore()||kl(t))&&(t=us(),t.setFormat(r),t.setStyle(i),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,e!==``){this.insertText(e);return}}else if(this.isCollapsed()&&s===0&&(kl(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&d.getPreviousSibling()===null)){let t=d.getPreviousSibling();if((!R(t)||kl(t))&&(t=us(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,e!==``){this.insertText(e);return}}else if(d.isSegmented()&&s!==f){let e=us(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&e!==``){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||V(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter())){this.insertText(``),Fs(this.anchor,this.focus,null),this.insertText(e);return}}if(u===1){if(Ol(d)){let t=us(e);t.select(),d.replace(t);return}let t=d.getFormat(),n=d.getStyle();if(s===c&&(t!==r||n!==i))if(d.getTextContent()===``)d.setFormat(r),d.setStyle(i);else{let t=us(e);if(t.setFormat(r),t.setStyle(i),t.select(),s===0)d.insertBefore(t,!1);else{let[e]=d.splitText(s);e.insertAfter(t,!1)}t.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);return}else if(ms(d)){let t=us(e);t.setFormat(r),t.setStyle(i),t.select(),d.replace(t);return}let a=c-s;d=d.spliceText(s,a,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...d.getParentKeys(),...m.getParentKeys()]),n=V(d)?d:d.getParentOrThrow(),r=V(m)?m:m.getParentOrThrow(),i=m;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if(o.type===`text`&&(c!==0||m.getTextContent()===``)||o.type===`element`&&m.getIndexWithinParent()<c)if(R(m)&&!Ol(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){let e=us(m.getTextContent());m.replace(e),m=e}!qc(o.getNode())&&o.type===`text`&&(m=m.spliceText(0,c,``)),t.add(m.__key)}else{let e=m.getParentOrThrow();!e.canBeEmpty()&&e.getChildrenSize()===1?e.remove():m.remove()}else t.add(m.__key);let a=r.getChildren(),p=new Set(l),h=n.is(r),g=n.isInline()&&d.getNextSibling()===null?n:d;for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.is(d)||V(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(i)?h||g.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;e!==null;){let r=e.getChildren(),i=r.length;(i===0||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(!Ol(d))d=d.spliceText(s,f-s,e,!0),d.getTextContent()===``?d.remove():d.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);else if(s===f)d.select();else{let t=us(e);t.select(),d.replace(t)}for(let e=1;e<u;e++){let n=l[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=B()===this,t=Rf(Pf(this));Nf(this,t),e&&B()!==this&&$l(this)}formatText(e,t=null){if(this.isCollapsed()){this.toggleFormat(e),Vl(null);return}let n=this.getNodes(),r=[];for(let e of n)R(e)&&r.push(e);let i=t=>{n.forEach(n=>{if(V(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},a=r.length;if(a===0){this.toggleFormat(e),Vl(null),i(t);return}let o=this.anchor,s=this.focus,c=this.isBackward(),l=c?s:o,u=c?o:s,d=0,f=r[0],p=l.type===`element`?0:l.offset;if(l.type===`text`&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),f==null)return;let m=f.getFormatFlags(e,t);i(m);let h=a-1,g=r[h],_=u.type===`text`?u.offset:g.getTextContentSize();if(f.is(g)){if(p===_)return;if(kl(f)||p===0&&_===f.getTextContentSize())f.setFormat(m);else{let e=f.splitText(p,_),t=p===0?e[0]:e[1];t.setFormat(m),l.type===`text`&&l.set(t.__key,0,`text`),u.type===`text`&&u.set(t.__key,_-p,`text`)}this.format=m;return}p!==0&&!kl(f)&&([,f]=f.splitText(p),p=0),f.setFormat(m);let v=g.getFormatFlags(e,m);_>0&&(_!==g.getTextContentSize()&&!kl(g)&&([g]=g.splitText(_)),g.setFormat(v));for(let t=d+1;t<h;t++){let n=r[t],i=n.getFormatFlags(e,v);n.setFormat(i)}l.type===`text`&&l.set(f.__key,p,`text`),u.type===`text`&&u.set(g.__key,_,`text`),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key===`root`){this.insertParagraph();let t=B();return z(t)||I(`Expected RangeSelection after insertParagraph`),t.insertNodes(e)}let t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Ad(t,kd),r=e[e.length-1];if(V(n)&&`__language`in n){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=$s(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(V(e)||Wc(e))&&!e.isInline())){V(n)||I(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);let i=$s(this);n.splice(i,0,e),r.selectEnd();return}let i=tc(e),a=i.getLastDescendant(),o=i.getChildren(),s=e=>V(e)&&kd(e)&&!e.isEmpty()&&V(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()),c=!V(n)||!n.isEmpty()?this.insertParagraph():null,l=o[o.length-1],u=o[0];s(u)&&(V(n)||I(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=o[1]),u&&(n===null&&I(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),zo(n,u));let d=Ad(a,kd);c&&V(d)&&(c.canMergeWhenEmpty()||kd(l))&&(d.append(...c.getChildren()),c.remove()),V(n)&&n.isEmpty()&&n.remove(),a.selectEnd();let f=V(n)?n.getLastChild():null;Uo(f)&&d!==n&&f.remove()}insertParagraph(){if(this.anchor.key===`root`){let e=sl();return Zl().splice(this.anchor.offset,0,[e]),e.select(),e}let e=$s(this),t=Ad(this.anchor.getNode(),kd);V(t)||I(`Expected ancestor to be a block ElementNode`);let n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){let t=Ho();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,a=e[0],o=e[n],[s,c]=ws(this);if(t===0)return[];if(t===1){if(R(a)&&!this.isCollapsed()){let e=s>c?c:s,t=s>c?s:c,n=a.splitText(e,t),r=e===0?n[0]:n[1];return r==null?[]:[r]}return[a]}let l=r.isBefore(i);if(R(a)){let t=l?s:c;t===a.getTextContentSize()?e.shift():t!==0&&([,a]=a.splitText(t),e[0]=a)}if(R(o)){let t=o.getTextContent().length,r=l?c:s;r===0?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){if(rc(this,e,t,n))return;let r=e===`move`,i=mc(),a=bd(ld(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();if(s!==null&&o!==null&&V(c)&&!c.isInline()&&!c.canBeEmpty()&&vd(o,i,s),this.dirty){let e=ed(i,this.anchor.key),t=ed(i,this.focus.key);this.anchor.type===`text`&&(e=Ml(e)),this.focus.type===`text`&&(t=Ml(t)),e&&t&&Xs(a,e,this.anchor.offset,t,this.focus.offset)}if(Ds(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=a.getRangeAt(0),n=this.anchor.getNode(),i=qc(n)?n:ud(n);if(this.applyDOMRange(e),this.dirty=!0,!r){let n=this.getNodes(),r=[],o=!1;for(let e=0;e<n.length;e++){let t=n[e];sd(t,i)?r.push(t):o=!0}if(o&&r.length>0)if(t){let e=r[0];V(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=r[r.length-1];V(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}(a.anchorNode!==e.startContainer||a.anchorOffset!==e.startOffset)&&Es(this)}}n===`lineboundary`&&rc(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&V(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if(V(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=bf(Af(t,e?`previous`:`next`));if(r.getTextSlices().every(e=>e===null||e.distance===0)){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(rf(t)){if(!t.origin.isInline())if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if(V(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=Vf(t);Nf(this,Sf(e,e)),r.anchor.origin.remove()}return}else (e.type===`merge-next-block`||e.type===`merge-block`)&&(e={block:e.block,caret:t,type:`merge-block`})}else if(e.type===`merge-block`)break;else if(nf(t)){if(V(t.origin)){if(!t.origin.isInline())e={block:t.origin,type:`merge-next-block`};else if(!t.origin.isParentOf(r.anchor.origin))break;continue}else if(Wc(t.origin)){if(!t.origin.isIsolated())if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&V(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=Bs();e.add(t.origin.getKey()),$l(e)}else t.origin.remove();return}break}if(e.type===`merge-block`){let{caret:t,block:n}=e;return Nf(this,Sf(!t.origin.isEmpty()&&n.isEmpty()?Ff(uf(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify(`extend`,e,`character`),!this.isCollapsed()){let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0){js(r,e,t);return}}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a){js(n,e,i);return}}Os(this,e)}else if(e&&t.offset===0&&Ts(this,t.getNode()))return}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type===`element`&&this.anchor.offset===0){let e=this.anchor.getNode();e.isEmpty()&&qc(e.getParent())&&e.getPreviousSibling()===null&&Ts(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify(`extend`,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify(`extend`,e,`word`)}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function Ss(e){return e instanceof bs}function Cs(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function ws(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[Cs(n),Cs(r)]}function Ts(e,t){for(let n=t;n;n=n.getParent()){if(V(n)){if(n.collapseAtStart(e))return!0;if(dd(n))break}if(n.getPreviousSibling())break}return!1}function Es(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}function Ds(e,t,n,r){e.modify(t,n,r)}function Os(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e<a,s=o?e:a,c=o?a:e,l=c-1;s!==l&&ks(i.getTextContent().slice(s,c))&&(t?r.set(r.key,l,r.type):n.set(n.key,l,n.type))}}function ks(e){return e.length>1||I(`shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units`),!(ru(e)||As(e))}var As=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})();function js(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;e<a;e++){let r=i[e],c=e===a-1;if(s=o,o+=r.length,t&&o===n||o>n||c){i.splice(e,1),c&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function Ms(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}function Ns(e,t,n,r){let i=t,a;if(wd(e)){let o=!1,s=e.childNodes,c=s.length,l=r._blockCursorElement;i===c&&(o=!0,i=c-1);let u=s[i],d=!1;if(u===l)u=s[i+1],d=!0;else if(l!==null){let n=l.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,l)&&i--}if(a=tu(u),R(a))i=ff(a,o?`next`:`previous`);else{let s=tu(e);if(s===null)return null;if(V(s)){let c=r.getElementByKey(s.getKey());c===null&&I(`$internalResolveSelectionPoint: node in DOM but not keyToDOMMap`);let l=s.getDOMSlot(c);[s,i]=l.resolveChildIndex(s,c,e,t),V(s)||I(`$internalResolveSelectionPoint: resolvedElement is not an ElementNode`),o&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let u=s.getChildAtIndex(i);if(V(u)&&Ms(u,i,n)){let e=o?u.getLastDescendant():u.getFirstDescendant();e===null?s=u:(u=e,s=V(u)?u:u.getParentOrThrow()),i=0}R(u)?(a=u,s=null,i=ff(u,o?`next`:`previous`)):u!==s&&o&&!d&&(V(s)||I(`invariant`),i=Math.min(s.getChildrenSize(),i+1))}else{let n=s.getIndexWithinParent();i=t===0&&Wc(s)&&tu(e)===s?n:n+1,s=s.getParentOrThrow()}if(V(s))return gs(s.__key,i,`element`)}}else a=tu(e);return R(a)?gs(a.__key,ff(a,i,`clamp`),`text`):null}function Ps(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(!t)V(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):R(r)&&e.set(r.__key,r.getTextContent().length,`text`);else if((n||!t)&&r===null&&V(a)&&a.isInline()){let t=a.getPreviousSibling();R(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&V(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&V(a)&&a.isInline()&&!a.canInsertTextAfter()){let t=a.getNextSibling();R(t)&&e.set(t.__key,0,`text`)}}}function Fs(e,t,n){if(e.type===`text`&&t.type===`text`){let r=e.isBefore(t),i=e.is(t);Ps(e,r,i),Ps(t,!r,i),i&&t.set(e.key,e.offset,e.type);let a=mc();if(a.isComposing()&&a._compositionKey!==e.key&&z(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function Is(e,t,n,r,i,a){if(e===null||n===null||!wl(i,e,n))return null;let o=Ns(e,t,z(a)?a.anchor:null,i);if(o===null)return null;let s=Ns(n,r,z(a)?a.focus:null,i);if(s===null)return null;if(Us(`anchor`,o),Us(`focus`,s),o.type===`element`&&s.type===`element`){let t=tu(e),r=tu(n);if(Wc(t)&&Wc(r))return null}return Fs(o,s,a),[o,s]}function Ls(e){return V(e)&&!e.isInline()}function Rs(e,t,n,r,i,a){let o=pc(),s=new xs(gs(e,t,i),gs(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function zs(){return new xs(gs(`root`,0,`element`),gs(`root`,0,`element`),0,``)}function Bs(){return new bs(new Set)}function Vs(e,t){let n=e.getEditorState()._selection,r=bd(ld(e));return z(n)||n==null?Hs(n,r,e,t):n.clone()}function Hs(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!Rr()&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(!z(e)||c){if(t===null)return null;if(l=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,s&&z(e)&&!wl(n,l,u))return e.clone()}else return e.clone();let p=Is(l,d,u,f,n,e);if(p===null)return null;let[m,h]=p;return new xs(m,h,z(e)?e.format:0,z(e)?e.style:``)}function Us(e,t){let n=Ul(t.key);if(n===void 0&&I(`$validatePoint: ${e} key ${t.key} not found in current editorState`),t.type===`text`){R(n)||I(`$validatePoint: ${e} key ${t.key} is not a TextNode`);let r=n.getTextContentSize();t.offset<=r||I(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{V(n)||I(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);let r=n.getChildrenSize();t.offset<=r||I(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function B(){return pc()._selection}function Ws(){return mc()._editorState._selection}function Gs(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(c,n,`element`),a.set(c,n,`element`),Ks(e)}}else{let o=e.isBackward(),s=o?a:i,l=s.getNode(),u=o?i:a,d=u.getNode();if(t.is(l)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(c,Math.max(0,e+r),`element`)}if(t.is(d)){let e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(c,Math.max(0,e+r),`element`)}}Ks(e)}function Ks(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!V(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(R(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if(V(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(R(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if(V(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(R(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function qs(e,t){let n=t.getEditorState()._selection,r=e._selection;if(z(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}function Js(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,R(i)?s=`text`:V(i)&&(s=`element`)):(a=r.__key,R(r)?(o=r.getTextContentSize(),s=`text`):V(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function Ys(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function Xs(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){console.warn(e)}}function Zs(e,t,n,r,i,a,o){let s=r.anchorNode,c=r.focusNode,l=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(i.has(`collaboration`)&&d!==a||d!==null&&Cl(d))return;if(!z(t)){e!==null&&wl(n,s,c)&&r.removeAllRanges();return}let f=t.anchor,p=t.focus,m=f.key,h=p.key,g=ed(n,m),_=ed(n,h),v=f.offset,y=p.offset,b=t.format,x=t.style,S=t.isCollapsed(),C=g,w=_,T=!1;if(f.type===`text`){C=Ml(g);let e=f.getNode();T=e.getFormat()!==b||e.getStyle()!==x}else z(e)&&e.anchor.type===`text`&&(T=!0);if(p.type===`text`&&(w=Ml(_)),!(C===null||w===null)&&(S&&(e===null||T||z(e)&&(e.format!==b||e.style!==x))&&Po(b,x,v,m,performance.now()),!(l===v&&u===y&&s===C&&c===w&&!(r.type===`Range`&&S)&&((d===null||!a.contains(d))&&a.focus({preventScroll:!0}),f.type!==`element`)))){if(Xs(r,C,v,w,y),!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===document.activeElement){let e=z(t)&&t.anchor.type===`element`?C.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(e!==null){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();rd(n,t,a)}}No()}}function Qs(e){let t=B()||Ws();t===null&&(t=Zl().selectEnd()),t.insertNodes(e)}function $s(e){let t=e;e.isCollapsed()||t.removeText();let n=B();z(n)&&(t=n),z(t)||I(`Unexpected dirty selection to be null`);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!kd(i);){let e=i;if([i,a]=ec(i,a),e.is(i))break}return a}function ec(e,t){let n=e.getParent();if(!n){let e=sl();return Zl().append(e),e.select(),[Zl(),0]}if(R(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!V(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new xs(gs(e.__key,t,`element`),gs(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function tc(e){let t=sl(),n=null;for(let r=0;r<e.length;r++){let i=e[r],a=Uo(i);if(a||Wc(i)&&i.isInline()||V(i)&&i.isInline()||R(i)||i.isParentRequired()){if(n===null&&(n=i.createParentElementNode(),t.append(n),a))continue;n!==null&&n.append(i)}else t.append(i),n=null}return t}function nc(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(rf(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;(!V(e)||!a.has(e))&&t.push(e)}if(r&&t.push(r.caret.origin),nf(e.focus)&&V(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=mf(e.focus.origin,`previous`);rf(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=gf(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(V(e)&&!(a.has(e)||e.isEmpty()||i.has(e))){t.pop();continue}break}if(t.length===0&&e.isCollapsed()){let n=Vf(e.anchor),r=Vf(e.anchor.getFlipped()),i=e=>tf(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}function rc(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=Af(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!Hf(c)){for(let e of c){l=!1;let{origin:t}=e;if(!(Wc(t)&&!t.isIsolated()&&(c=e,o&&t.isInline())))break}if(l)for(let e of bf(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(rf(e))e.origin.isInline()||(c=e);else if(V(e.origin))continue;else Wc(e.origin)&&!e.origin.isInline()&&(c=e);break}}if(c===a)return!1;if(s&&!o&&Wc(c.origin)&&c.origin.isKeyboardSelectable()){let e=Bs();return e.add(c.origin.getKey()),$l(e),!0}return c=Vf(c),s&&jf(e.anchor,c),jf(e.focus,c),l||!o}var ic=null,ac=null,oc=!1,sc=!1,cc=0,lc={characterData:!0,childList:!0,subtree:!0};function uc(){return oc||ic!==null&&ic._readOnly}function dc(){oc&&I(`Cannot use method in read-only mode.`)}function fc(){cc>99&&I(`One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.`)}function pc(){return ic===null&&I(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${hc()}`),ic}function mc(){return ac===null&&I(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${hc()}`),ac}function hc(){let e=0,t=new Set,n=pl.version;if(typeof window<`u`)for(let r of document.querySelectorAll(`[contenteditable]`)){let i=Dl(r);if(Tl(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function gc(){return ac}function _c(){return ic}function vc(e,t,n){let r=t.__type,i=yl(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function yc(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function bc(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);R(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&li(t)}}function xc(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function Sc(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=Hl(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);R(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&li(r),r!==void 0&&yc(r,a)&&vc(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){cc++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&yc(c,a)&&vc(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,cc++}t._dirtyLeaves=n,t._dirtyElements=r}function Cc(e){return wc(e,mc()._nodes)}function wc(e,t){let n=e.type,r=t.get(n);r===void 0&&I(`parseEditorState: type "${n}" + not found`);let i=r.klass;e.type!==i.getType()&&I(`LexicalNode: Node ${i.name} does not implement .importJSON().`);let a=i.importJSON(e),o=e.children;if(V(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=o[e],r=wc(n,t);a.append(r)}return a}function Tc(e,t,n){let r=Xc(),i=ic,a=oc,o=ac,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,ic=r,oc=!1,ac=t,hl(null);try{let i=t._nodes,a=e.root;wc(a,i),n&&n(),r._readOnly=!0,Dc(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,ic=i,oc=a,ac=o}return r}function Ec(e,t,n){let r=ic,i=oc,a=ac;ic=t,oc=!0,ac=e;try{return n()}finally{ic=r,oc=i,ac=a}}function Dc(e){let t=e._nodeMap;t.set=()=>{throw Error(`Cannot call set() on a frozen Lexical node map`)},t.clear=()=>{throw Error(`Cannot call clear() on a frozen Lexical node map`)},t.delete=()=>{throw Error(`Cannot call delete() on a frozen Lexical node map`)}}function Oc(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return;let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==rr,l=ic,u=oc,d=ac,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){ac=e,ic=n,oc=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Yi(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),!sc)ul(e,null,r,n),Jr(e),e._dirtyType=ar,sc=!0,Oc(e,a),sc=!1;else throw t;return}finally{p.observe(r,lc),e._updating=f,ic=l,oc=u,ac=d}}n._readOnly||(n._readOnly=!0,Dc(n),z(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags,y=e._deferred;c&&(e._dirtyType=rr,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),Mr(e,n);let b=i?null:bd(ld(e));if(e._editable&&b!==null&&(c||s===null||s.dirty)&&r!==null&&!v.has(`skip-dom-selection`)){ac=e,ic=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&vd(t,e,r),Zs(o,s,e,b,v,r)}yd(e,r,s)}finally{p!==null&&p.observe(r,lc),ac=d,ic=l}}m!==null&&Ac(e,m,v,h,a),!z(s)&&s!==null&&(o===null||!o.is(s))&&e.dispatchCommand(ea,void 0);let x=e._pendingDecorators;x!==null&&(e._decorators=x,e._pendingDecorators=null,jc(`decorator`,e,!0,x)),kc(e,t||a,n),jc(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v}),Pc(e,y),Nc(e)}function kc(e,t,n){let r=Yl(t),i=Yl(n);r!==i&&jc(`textcontent`,e,!0,i)}function Ac(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}function jc(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function Mc(e,t,n){let r=iu(e);for(let i=4;i>=0;i--)for(let a=0;a<r.length;a++){let o=r[a],s=o._commands.get(t);if(s!==void 0){let t=s[i];if(t!==void 0){let r=Array.from(t),i=r.length,a=!1;if(Lc(o,()=>{for(let t=0;t<i;t++)if(r[t](n,e)){a=!0;return}}),a)return a}}}return!1}function Nc(e){let t=e._updates;if(t.length!==0){let n=t.shift();if(n){let[t,r]=n;Ic(e,t,r)}}}function Pc(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}function Fc(e,t){let n=e._updates,r=t||!1;for(;n.length!==0;){let t=n.shift();if(t){let[n,i]=t,a=e._pendingEditorState,o;i!==void 0&&(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(a===null&&I(`Unexpected empty pending editor state on discrete nested update`),a._flushSync=!0),o&&e._deferred.push(o),xc(e,i.tag)),a==null?Ic(e,n,i):n()}}return r}function Ic(e,t,n){let r=e._updateTags,i,a=!1,o=!1;n!==void 0&&(i=n.onUpdate,xc(e,n.tag),a=n.skipTransforms||!1,o=n.discrete||!1),i&&e._deferred.push(i);let s=e._editorState,c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=Yc(c||s),l=!0),c._flushSync=o;let u=ic,d=oc,f=ac,p=e._updating;ic=c,oc=!1,e._updating=!0,ac=e;let m=e._headless||e.getRootElement()===null;hl(null);try{l&&(m?s._selection!==null&&(c._selection=s._selection.clone()):c._selection=Vs(e,n&&n.event||null));let r=e._compositionKey;t(),a=Fc(e,a),qs(c,e),e._dirtyType!==rr&&(a?bc(c,e):Sc(c,e),Fc(e),Pr(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(z(i)){let e=c._nodeMap,t=i.anchor.key,n=i.focus.key;(e.get(t)===void 0||e.get(n)===void 0)&&I(`updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.`)}else Ss(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=ar,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),Oc(e);return}finally{ic=u,oc=d,ac=f,e._updating=p,cc=0}e._dirtyType!==rr||e._deferred.length>0||Jc(c,e)?c._flushSync?(c._flushSync=!1,Oc(e)):l&&xl(()=>{Oc(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Lc(e,t,n){ac===e&&n===void 0?t():Ic(e,t,n)}function Rc(e,t,n){e._updating?e._updates.push([t,n]):Ic(e,t,n)}var zc=class e{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return t===null||t.parentElement===this.element||I(`ElementDOMSlot.insertChild: before is not in element`),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&I(`ElementDOMSlot.removeChild: dom is not in element`),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&I(`ElementDOMSlot.replaceChild: prevDom is not in element`),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(qn||Kn);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement(`br`);if(n.insertBefore(i,r),e){let e=document.createElement(`img`);e.setAttribute(`data-lexical-linebreak`,`true`),e.style.cssText=`display: inline !important; border: 0px !important; margin: 0px !important;`,e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=Bc(t,n);i.push(r);let a=Bc(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};function Bc(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&I(`indexPath: root is not a parent of child`),n.reverse()}var Vc=class extends Lo{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return Or[this.getFormat()]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=mc()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;t!==null;){if(R(t)&&e.push(t),V(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;V(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;V(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return V(e)&&e.getLastDescendant()||e||null}let r=t[e];return V(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:Ul(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&I(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:Ul(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&I(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=``,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),V(i)&&r!==n-1&&!i.isInline()&&(e+=Cr)}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),V(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=Dr[e];return(this.getFormat()&t)!==0}return!1}hasTextFormat(e){let t=Tr[e];return(this.getTextFormat()&t)!==0}getFormatFlags(e,t){let n=this.getLatest().__textFormat;return Nl(n,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){dc();let n=B(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(R(e)||V(e))return e.select(0,0)}else if((e===void 0||e===a)&&(t===void 0||t===a)){let e=this.getLastChild();if(R(e)||V(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;if(z(n))n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0;else return Rs(o,r,o,i,`element`,`element`);return n}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){let t=this.getWritable();return t.__format=e===``?0:Dr[e],this}setStyle(e){let t=this.getWritable();return t.__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){let t=this.getWritable();return t.__indent=e,this}splice(e,t,n){let r=n.length,i=this.getChildrenSize(),a=this.getWritable();e+t<=i||I(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(i)})`);let o=a.__key,s=[],c=[],l=this.getChildAtIndex(e+t),u=null,d=i-t+r;if(e!==0)if(e===i)u=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(u=t.getPreviousSibling())}if(t>0){let e=u===null?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){e===null&&I(`splice: sibling not found`);let t=e.getNextSibling(),n=e.__key;Rl(e.getWritable()),c.push(n),e=t}}let f=u;for(let e=0;e<r;e++){let t=n[e];f!==null&&t.is(f)&&(u=f=f.getPreviousSibling());let r=t.getWritable();r.__parent===o&&d--,Rl(r);let i=t.__key;if(f===null)a.__first=i,r.__prev=null;else{let e=f.getWritable();e.__next=i,r.__prev=e.__key}t.__key===o&&I(`append: attempting to append self`),r.__parent=o,s.push(i),f=t}if(e+t===i){if(f!==null){let e=f.getWritable();e.__next=null,a.__last=f.__key}}else if(l!==null){let e=l.getWritable();if(f!==null){let t=f.getWritable();e.__prev=f.__key,t.__next=l.__key}else e.__prev=null}if(a.__size=d,c.length){let e=B();if(z(e)){let t=new Set(c),n=new Set(s),{anchor:r,focus:i}=e;Hc(r,t,n)&&Js(r,r.getNode(),this,u,l),Hc(i,t,n)&&Js(i,i.getNode(),this,u,l),d===0&&!this.canBeEmpty()&&!dd(this)&&this.remove()}}return a}getDOMSlot(e){return new zc(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(wd(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=`${e*40}px`);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}};function V(e){return e instanceof Vc}function Hc(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}var Uc=class extends Lo{decorate(e,t){I(`decorate: base method not extended`)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function Wc(e){return e instanceof Uc}var Gc=class e extends Vc{static getType(){return`root`}static clone(){return new e}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){I(`getTopLevelElementOrThrow: root nodes are not top level elements`)}getTextContent(){let e=this.__cachedText;return(uc()||mc()._dirtyType===rr)&&e!==null?e:super.getTextContent()}remove(){I(`remove: cannot be called on root nodes`)}replace(e){I(`replace: cannot be called on root nodes`)}insertBefore(e){I(`insertBefore: cannot be called on root nodes`)}insertAfter(e){I(`insertAfter: cannot be called on root nodes`)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)V(e)||Wc(e)||I(`rootNode.splice: Only element or decorator nodes can be inserted to the root node`);return super.splice(e,t,n)}static importJSON(e){return Zl().updateFromJSON(e)}collapseAtStart(){return!0}};function Kc(){return new Gc}function qc(e){return e instanceof Gc}function Jc(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}function Yc(e){return new Qc(new Map(e._nodeMap))}function Xc(){return new Qc(new Map([[`root`,Kc()]]))}function Zc(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&I(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),V(e)){let r=t.children;Array.isArray(r)||I(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);let i=e.getChildren();for(let e=0;e<i.length;e++){let t=i[e],n=Zc(t);r.push(n)}}return t}var Qc=class e{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return Ec(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Ec(null,this,()=>({root:Zc(Zl())}))}},$c=`historic`,el=`history-push`,tl=`history-merge`,nl=`paste`,rl=`focus`,il=class extends Vc{static getType(){return`artificial`}createDOM(e){return document.createElement(`div`)}},al=class e extends Vc{static getType(){return`paragraph`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`p`),n=qu(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ol,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(wd(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return sl().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){let n=sl();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||R(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function ol(e){let t=sl();return e.style&&(t.setFormat(e.style.textAlign),Ld(e,t)),{node:t}}function sl(){return pd(new al)}function cl(e){return e instanceof al}var ll=!1;function ul(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=Xc(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=rr,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let a=e._observer;a!==null&&(a.disconnect(),e._observer=null),t!==null&&(t.textContent=``),n!==null&&(n.textContent=``,i.set(`root`,n))}function dl(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}function fl(e){let t=e||{},n=gc(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=Xc(),s=t.namespace||(i===null?au():i._config.namespace),c=t.editorState,l=[Gc,es,Bo,fs,al,il,...t.nodes||[]],{onError:u,html:d}=t,f=t.editable===void 0?!0:t.editable,p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let e=0;e<l.length;e++){let t=l[e],n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let{ownNodeConfig:i}=Ud(t);{let e=t.name,i=Bd(t,`getType`)&&t.getType();if(r?r.prototype instanceof t||I(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),e!==`RootNode`&&i!==`root`&&i!==`artificial`&&t!==Lo){let n=t.prototype;[`getType`,`clone`].forEach(n=>{Bd(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Bd(t,`importDOM`)&&Vd(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Wc(n)&&n.decorate===Uc.prototype.decorate&&console.warn(`${n.constructor.name} must implement "decorate" method`),Bd(t,`importJSON`)||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`)}}let a=t.getType(),o=t.transform(),s=new Set;i&&i.$transform&&s.add(i.$transform),o!==null&&s.add(o),p.set(a,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Yr(l[e]),transforms:s})}}let m=new pl(o,i,p,{disableEvents:a,namespace:s,theme:r},u||console.error,dl(p,d?d.import:void 0),f,e);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=ar),m}var pl=class{constructor(e,t,n,r,i,a,o,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=rr,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=au(),this._onError=i,this._htmlConversions=a,this._editable=o,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){n===void 0&&I(`Listener for type "command" requires a "priority".`);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let i=r.get(e);i===void 0&&I(`registerCommand: Command ${String(e)} not found in command map`);let a=i[n];return a.add(t),()=>{a.delete(t),i.every(e=>e.size===0)&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return(o===void 0?ll:o)||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&I(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=Pd(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return Xl(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return Qu(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=qu(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,ul(this,t,e,r),t!==null&&(this._config.disableEvents||jo(t),n!=null&&t.classList.remove(...n)),e!==null){let t=cd(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=ar,Jr(this),this._updateTags.add(tl),Oc(this),this._config.disableEvents||ko(e,this),n!=null&&e.classList.add(...n);{let t=e.parentElement;t!=null&&[`flex`,`inline-flex`].includes(getComputedStyle(t).display)&&console.warn(`When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.`)}}else this._window=null,this._updateTags.add(tl),Oc(this);jc(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&I(`setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.`);let n=e;n._readOnly&&(n=Yc(e),n._selection=e._selection?e._selection.clone():null),qr(this);let r=this._pendingEditorState,i=this._updateTags,a=t===void 0?null:t.tag;r!==null&&!r.isEmpty()&&(a!=null&&i.add(a),Oc(this)),this._pendingEditorState=n,this._dirtyType=ar,this._dirtyElements.set(`root`,!1),this._compositionKey=null,a!=null&&i.add(a),this._updating||Oc(this)}parseEditorState(e,t){return Tc(typeof e==`string`?JSON.parse(e):e,this,t)}read(e){return Oc(this),this.getEditorState().read(e,{editor:this})}update(e,t){Rc(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),Lc(this,()=>{let r=B(),i=Zl();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||$l(r.clone()),id(rl),ad(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=bd(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,jc(`editable`,this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};pl.version=`0.35.0+dev.esm`;var ml=null;function hl(e){ml=e}function gl(){let e=ml;return ml=null,e}var _l=1;function vl(){return``+ _l++}function yl(e,t){let n=bl(e,t);return n===void 0&&I(`registeredNode: Type ${t} not found`),n}function bl(e,t){return e._nodes.get(t)}var xl=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)};function Sl(e){return Wc(ql(e))}function Cl(e){let t=document.activeElement;if(!wd(t))return!1;let n=t.nodeName;return Wc(ql(e))&&(n===`INPUT`||n===`TEXTAREA`||t.contentEditable===`true`&&Dl(t)==null)}function wl(e,t,n){let r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Cl(t)&&El(t)===e}catch{return!1}}function Tl(e){return e instanceof pl}function El(e){let t=e;for(;t!=null;){let e=Dl(t);if(Tl(e))return e;t=td(t)}return null}function Dl(e){return e?e.__lexicalEditor:null}function Ol(e){return ms(e)||e.isToken()}function kl(e){return Ol(e)||e.isSegmented()}function Al(e){return Td(e)&&e.nodeType===er}function jl(e){return Td(e)&&e.nodeType===tr}function Ml(e){let t=e;for(;t!=null;){if(Al(t))return t;t=t.firstChild}return null}function Nl(e,t,n){let r=Tr[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~Tr.superscript:t===`superscript`?i&=~Tr.subscript:t===`lowercase`?(i&=~Tr.uppercase,i&=~Tr.capitalize):t===`uppercase`?(i&=~Tr.lowercase,i&=~Tr.capitalize):t===`capitalize`&&(i&=~Tr.lowercase,i&=~Tr.uppercase),i}function Pl(e){return R(e)||Uo(e)||Wc(e)}function Fl(e,t){let n=gl();if(t||=n&&n.__key,t!=null){Il(e,t,n),e.__key=t;return}dc(),fc();let r=mc(),i=pc(),a=vl();i._nodeMap.set(a,e),V(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType=ir,e.__key=a}function Il(e,t,n){let r=_c();if(!r)return;let i=r._nodeMap.get(t);n&&t!==n.__key&&I(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`),i&&i.constructor!==e.constructor&&(e.constructor.name===i.constructor.name?I(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`):I(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${i.constructor.name}. Keys must not be re-used when the type is changed.`))}function Ll(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent}}function Rl(e){let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function zl(e){fc();let t=e.getLatest(),n=t.__parent,r=pc(),i=mc(),a=r._nodeMap,o=i._dirtyElements;n!==null&&Ll(n,a,o);let s=t.__key;i._dirtyType=ir,V(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function Bl(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&zl(t),n!==null&&zl(n)}function Vl(e){dc();let t=mc(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=Ul(n);e!==null&&e.getWritable()}if(e!==null){let t=Ul(e);t!==null&&t.getWritable()}}}function Hl(){return uc()?null:mc()._compositionKey}function Ul(e,t){let n=(t||pc())._nodeMap.get(e);return n===void 0?null:n}function Wl(e,t){let n=Kl(e,mc());return n===void 0?null:Ul(n,t)}function Gl(e,t,n){let r=`__lexicalKey_${t._key}`;e[r]=n}function Kl(e,t){return e[`__lexicalKey_${t._key}`]}function ql(e,t){let n=e;for(;n!=null;){let e=Wl(n,t);if(e!==null)return e;n=td(n)}return null}function Jl(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Yl(e){return e.read(()=>Zl().getTextContent())}function Xl(e,t){let n=Pd(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=Ul(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:tl}:void 0)}function Zl(){return Ql(pc())}function Ql(e){return e._nodeMap.get(`root`)}function $l(e){dc();let t=pc();e!==null&&(Object.isFrozen(e)&&I(`$setSelection called on frozen selection object. Ensure selection is cloned before passing in.`),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function eu(){dc(),qr(mc())}function tu(e){let t=mc(),n=nu(e,t);return n===null?e===t.getRootElement()?Ul(`root`):null:Ul(n)}function nu(e,t){let n=e;for(;n!=null;){let e=Kl(n,t);if(e!==void 0)return e;n=td(n)}return null}function ru(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function iu(e){let t=[],n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function au(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function ou(e){return Al(e)?e.nodeValue:null}function su(e,t,n){let r=bd(ld(t));if(r===null)return;let i=r.anchorNode,{anchorOffset:a,focusOffset:o}=r;if(i!==null){let t=ou(i),r=ql(i);if(t!==null&&R(r)){if(t===Sr&&n){let e=n.length;t=n,a=e,o=e}t!==null&&cu(r,t,a,o,e)}}}function cu(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing(),s=t;(o||i)&&t[t.length-1]===Sr&&(s=t.slice(0,-1));let c=a.getTextContent();if(i||s!==c){if(s===``){if(Vl(null),!Kn&&!qn&&!Zn){let e=mc();setTimeout(()=>{e.update(()=>{a.isAttached()&&a.remove()})},20)}else a.remove();return}let t=a.getParent(),i=Ws(),c=a.getTextContentSize(),l=Hl(),u=a.getKey();if(a.isToken()||l!==null&&u===l&&!o||z(i)&&(t!==null&&!t.canInsertTextBefore()&&i.anchor.offset===0||i.anchor.key===e.__key&&i.anchor.offset===0&&!a.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===c&&!a.canInsertTextAfter()&&!o)){a.markDirty();return}let d=B();if(!z(d)||n===null||r===null){lu(a,s,d);return}if(d.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=us(a.getTextContent());a.replace(e),a=e}lu(a,s,d)}}}function lu(e,t,n){if(e.setTextContent(t),z(n)){let t=e.getKey();for(let r of[`anchor`,`focus`]){let i=n[r];i.type===`text`&&i.key===t&&(i.offset=ff(e,i.offset,`clamp`))}}}function uu(e){let t=e.getPreviousSibling();return(R(t)||V(t)&&t.isInline())&&!t.canInsertTextAfter()}function du(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=Ol(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||uu(t):n===t.getTextContentSize()?!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i:!1}function fu(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function pu(e,t){return fu(e,t,`altKey`)&&fu(e,t,`ctrlKey`)&&fu(e,t,`shiftKey`)&&fu(e,t,`metaKey`)}function mu(e,t,n){return pu(e,n)&&e.key.toLowerCase()===t.toLowerCase()}var hu={ctrlKey:!Un,metaKey:Un},gu={altKey:Un,ctrlKey:!Un};function _u(e){return mu(e,`Tab`,{shiftKey:`any`})}function vu(e){return mu(e,`b`,hu)}function yu(e){return mu(e,`i`,hu)}function bu(e){return mu(e,`u`,hu)}function xu(e){return mu(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}function Su(e){return mu(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}function Cu(e){return Un&&mu(e,`o`,{ctrlKey:!0})}function wu(e){return mu(e,`Backspace`,gu)}function Tu(e){return mu(e,`Delete`,gu)}function Eu(e){return Un&&mu(e,`Backspace`,{metaKey:!0})}function Du(e){return Un&&(mu(e,`Delete`,{metaKey:!0})||mu(e,`k`,{ctrlKey:!0}))}function Ou(e){return mu(e,`Backspace`,{shiftKey:`any`})||Un&&mu(e,`h`,{ctrlKey:!0})}function ku(e){return mu(e,`Delete`,{})||Un&&mu(e,`d`,{ctrlKey:!0})}function Au(e){return mu(e,`z`,hu)}function ju(e){return Un?mu(e,`z`,{metaKey:!0,shiftKey:!0}):mu(e,`y`,{ctrlKey:!0})||mu(e,`z`,{ctrlKey:!0,shiftKey:!0})}function Mu(e){return mu(e,`c`,hu)}function Nu(e){return mu(e,`x`,hu)}function Pu(e){return mu(e,`ArrowLeft`,{shiftKey:`any`})}function Fu(e){return mu(e,`ArrowLeft`,hu)}function Iu(e){return mu(e,`ArrowRight`,{shiftKey:`any`})}function Lu(e){return mu(e,`ArrowRight`,hu)}function Ru(e){return mu(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}function zu(e){return mu(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}function Bu(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}function Vu(e){return e.key===` `}function Hu(e){return e.key===`Backspace`}function Uu(e){return e.key===`Escape`}function Wu(e){return e.key===`Delete`}function Gu(e){return mu(e,`a`,hu)}function Ku(e){let t=Zl();if(z(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),ui(e),e}else{let e=t.select(0,t.getChildrenSize());return $l(ui(e)),e}}function qu(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=Qn(i);return n[t]=e,e}return i}function Ju(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&I(`Type ${a} not in registeredNodes`);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function Yu(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):!t&&n===a.getChildrenSize()&&(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function Xu(e,t){let n=e.offset;if(e.type===`element`)return Yu(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?Yu(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function Zu(e){let t=ld(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function Qu(e,t,n){return Mc(e,t,n)}function $u(e){return!qc(e)&&!e.isLastChild()&&!e.isInline()}function ed(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&I(`Reconciliation: could not find DOM element for node key ${t}`),n}function td(e){let t=e.assignedSlot||e.parentElement;return Ed(t)?t.host:t}function nd(e){return jl(e)?e:wd(e)?e.ownerDocument:null}function rd(e,t,n){let r=nd(n),i=cd(r);if(r===null||i===null)return;let{top:a,bottom:o}=t,s=0,c=0,l=n;for(;l!==null;){let t=l===r.body;if(t)s=0,c=ld(e).innerHeight;else{let e=l.getBoundingClientRect();s=e.top,c=e.bottom}let n=0;if(a<s?n=-(s-a):o>c&&(n=o-c),n!==0)if(t)i.scrollBy(0,n);else{let e=l.scrollTop;l.scrollTop+=n;let t=l.scrollTop-e;a-=t,o-=t}if(t)break;l=td(l)}}function id(e){dc(),mc()._updateTags.add(e)}function ad(e){dc(),mc()._deferred.push(e)}function od(e){let t=B();if(!z(t)||!V(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return sd(i,e)&&n.set(e.__key,0,`element`),sd(a,e)&&r.set(e.__key,0,`element`),t}function sd(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function cd(e){let t=nd(e);return t?t.defaultView:null}function ld(e){let t=e._window;return t===null&&I(`window object not found`),t}function ud(e){let t=e.getParentOrThrow();for(;t!==null;){if(dd(t))return t;t=t.getParentOrThrow()}return t}function dd(e){return qc(e)||V(e)&&e.isShadowRoot()}function fd(e){let t=e.constructor.clone(e);return Fl(t,null),t.afterCloneFrom(e),t}function pd(e){let t=mc(),n=e.getType(),r=bl(t,n);r===void 0&&I(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||I(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`):t instanceof a||I(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${a.name} with type ${a.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`),t.__key===e.__key&&I(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function md(e,t){qc(e.getParent())&&!V(t)&&!Wc(t)&&I(`Only element or decorator nodes can be inserted in to the root node`)}function hd(e){let t=Ul(e);return t===null&&I(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}function gd(e){let t=e.theme,n=document.createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=Qn(r)),r!==void 0&&n.classList.add(...r)),n}function _d(e){return(Wc(e)||V(e)&&!e.canBeEmpty())&&!e.isInline()}function vd(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function yd(e,t,n){let r=e._blockCursorElement;if(z(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(document.activeElement)){let i=n.anchor,a=i.getNode(),o=i.offset,s=a.getChildrenSize(),c=!1,l=null;if(o===s)_d(a.getChildAtIndex(o-1))&&(c=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&_d(t)){let n=t.getPreviousSibling();(n===null||_d(n))&&(c=!0,l=e.getElementByKey(t.__key))}}if(c){let n=e.getElementByKey(a.__key);r===null&&(e._blockCursorElement=r=gd(e._config)),t.style.caretColor=`transparent`,l===null?n.appendChild(r):n.insertBefore(r,l);return}}r!==null&&vd(r,e,t)}function bd(e){return Vn?(e||window).getSelection():null}function xd(e){let t=cd(e);return t?t.getSelection():null}function Sd(e,t){let n=e;for(;n!==Zl()&&n!=null;){if(t(n))return n;n=n.getParent()}return null}function Cd(e){return wd(e)&&e.tagName===`A`}function wd(e){return Td(e)&&e.nodeType===$n}function Td(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Ed(e){return Td(e)&&e.nodeType===nr}function Dd(e){let t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,`i`);return e.nodeName.match(t)!==null}function Od(e){let t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,`i`);return e.nodeName.match(t)!==null}function kd(e){if(Wc(e)&&!e.isInline())return!0;if(!V(e)||dd(e))return!1;let t=e.getFirstChild(),n=t===null||Uo(t)||R(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function Ad(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function jd(){return mc()}var Md=new WeakMap,Nd=new Map;function Pd(e){if(!e._readOnly&&e.isEmpty())return Nd;e._readOnly||I(`getCachedTypeToNodeMap called with a writable EditorState`);let t=Md.get(e);return t||(t=Fd(e),Md.set(e,t)),t}function Fd(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}function Id(e){let t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&I(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||I(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ld(e,t){let n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Rd(e){return e.__lexicalUnmanaged===!0}function zd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bd(e,t){return zd(e,t)&&e[t]!==Lo[t]}function Vd(e){return zd(e.prototype,`exportDOM`)}function Hd(e){return e===Uc||e===Vc||e===Lo}function Ud(e){let t=jr in e.prototype?e.prototype[jr]():void 0,n=Hd(e),r=!n&&Bd(e,`getType`)?e.getType():void 0,i,a=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))a=e,i=n;if(!n&&a&&(Bd(e,`getType`)||(e.getType=()=>a),Bd(e,`clone`)||(es.length===0&&e.length!==0&&I(`${e.name} (type ${a}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(hl(t),new e)),Bd(e,`importJSON`)||(es.length===0&&e.length!==0&&I(`${e.name} (type ${a}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=i&&i.$importJSON||(t=>new e().updateFromJSON(t))),!Bd(e,`importDOM`)&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:a}}function Wd(e){let t=jd();return dc(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}var Gd={next:`previous`,previous:`next`},Kd=class{constructor(e){this.origin=e}[Symbol.iterator](){return Cf({hasNext:nf,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return uf(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return uf(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();o.set(e.getKey(),e)}for(let e of r){if(o.size>0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&I(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(o).join(` `)})`)}else i.insert(e);i=uf(e,this.direction)}for(let e of o.values())e.remove();return this}},qd=class e extends Kd{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:mf(e,this.direction)}getParentCaret(e=`root`){return uf(Qd(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Zd(this.direction);return uf(this.getNodeAtCaret(),e)||mf(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},Jd=class extends qd{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},Yd=class extends qd{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}},Xd={root:qc,shadowRoot:dd};function Zd(e){return Gd[e]}function Qd(e,t=`root`){return Xd[t](e)?null:e}var $d=class e extends Kd{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:uf(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return V(this.origin)?mf(this.origin,this.direction):null}getParentCaret(e=`root`){return uf(Qd(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Zd(this.direction);return uf(this.getNodeAtCaret(),e)||mf(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof ef)&&this.direction===t.direction&&this.origin.is(t.origin)}},ef=class e extends Kd{type=`text`;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:df(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return uf(Qd(this.getParentAtCaret(),e),this.direction)}getFlipped(){return df(this.origin,Zd(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof $d||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return uf(this.origin,this.direction)}};function tf(e){return e instanceof ef}function nf(e){return e instanceof $d}function rf(e){return e instanceof qd}var af=class extends $d{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},of=class extends $d{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}},sf={next:class extends ef{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ef{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},cf={next:af,previous:of},lf={next:Jd,previous:Yd};function uf(e,t){return e?new cf[t](e):null}function df(e,t,n){return e?new sf[t](e,ff(e,n)):null}function ff(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&I(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),i=i<0?0:r),i}function pf(e,t){return new vf(e,t)}function mf(e,t){return V(e)?new lf[t](e):null}function hf(e){return e&&e.getChildCaret()||e}function gf(e){return e&&hf(e.getAdjacentCaret())}var _f=class e{type=`node-caret-range`;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return tf(t)?yf(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[pf(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=tf(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=tf(n),i=t=>t.isSameNodeCaret(n)?null:gf(t)||t.getParentCaret(e);return Cf({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},vf=class{type=`slice`;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return df(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}};function yf(e,t){let{direction:n,origin:r}=e;return pf(e,ff(r,t===`focus`?Zd(n):n)-e.offset)}function bf(e){return Sf(e,uf(Zl(),e.direction))}function xf(e){return Sf(e,e)}function Sf(e,t){return e.direction!==t.direction&&I(`$getCaretRange: anchor and focus must be in the same direction`),new _f(e,t,e.direction)}function Cf(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function wf(e,t){return Math.sign(e-t)}function Tf(e,t){let n=kf(e.origin,t.origin);switch(n===null&&I(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case`same`:{let n=e.type===`text`,r=t.type===`text`;return n&&r?wf(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return t.type===`child`?1:-1;case`branch`:return Ef(n)}}function Ef(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling())if(a.__key===i)return-1;else if(o.__key===r)return 1;return a===null?1:-1}function Df(e,t){return t.is(e)}function Of(e){return V(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function kf(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=Of(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=Of(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(Df(e,r)||I(`$originComparison: ancestor logic error`),{commonAncestor:r,type:`ancestor`}):i===null?(Df(t,r)||I(`$originComparison: descendant logic error`),{commonAncestor:r,type:`descendant`}):((V(a)||Df(e,a))&&(V(i)||Df(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||I(`$originComparison: branch logic error`),{a,b:i,commonAncestor:r,type:`branch`})}return null}function Af(e,t){let{type:n,key:r,offset:i}=e,a=hd(e.key);return n===`text`?(R(a)||I(`$caretFromPoint: Node with type ${a.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),df(a,t,i)):(V(a)||I(`$caretFromPoint: Node with type ${a.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),Gf(a,e.offset,t))}function jf(e,t){let{origin:n,direction:r}=t,i=r===`next`;tf(t)?e.set(n.getKey(),t.offset,`text`):nf(t)?R(n)?e.set(n.getKey(),ff(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(rf(t)&&V(n)||I(`$setPointFromCaret: exhaustiveness check`),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function Mf(e){let t=B(),n=z(t)?t:zs();return Nf(n,e),$l(n),n}function Nf(e,t){jf(e.anchor,t.anchor),jf(e.focus,t.focus)}function Pf(e){let{anchor:t,focus:n}=e,r=Af(t,`next`),i=Af(n,`next`),a=Tf(r,i)<=0?`next`:`previous`;return Sf(Uf(r,a),Uf(i,a))}function Ff(e){let{direction:t,origin:n}=e,r=uf(n,Zd(t)).getNodeAtCaret();return r?uf(r,t):mf(n.getParentOrThrow(),t)}function If(e,t=`root`){let n=[e];for(let r=rf(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(Ff(r));return n}function Lf(e){return!!e&&e.origin.isAttached()}function Rf(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=Wf(e,r),o=If(a.anchor,n),s=If(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(rf(e))c.add(e.origin.getKey());else if(nf(e)){let{origin:t}=e;(!V(t)||c.has(t.getKey()))&&l.push(t)}for(let e of l)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=Ff(uf(t,r)),c=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||c===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(c===`segmented`){let e=t.origin,n=us(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=df(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let u,d;for(let e of o)if(Lf(e)){u=Vf(e);break}for(let e of s)if(Lf(e)){d=Vf(e);break}let f=zf(u,d,c);if(f){let[e,t]=f;mf(e,`previous`).splice(0,t.getChildren()),t.remove()}let p=[u,d,...o,...s].find(Lf);if(p)return xf(Uf(Vf(p),e.direction));I(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(o.map(e=>e.origin.__key))}`)}function zf(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c<s&&a[c]===o[c];c++);let l=(e,t)=>{let n;for(let r=c;r<e.length;r++){let i=e[r];if(dd(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,kd),d=u&&l(o,e=>n.has(e.getKey())&&kd(e));return u&&d?[u,d]:null}function Bf(e){let t=e;for(;rf(t);){let e=gf(t);if(!rf(e))break;t=e}return t}function Vf(e){let t=Bf(e.getLatest()),{direction:n}=t;if(R(t.origin))return tf(t)?t:df(t.origin,n,n);let r=t.getAdjacentCaret();return nf(r)&&R(r.origin)?df(r.origin,n,Zd(n)):t}function Hf(e){return tf(e)&&e.offset!==ff(e.origin,e.direction)}function Uf(e,t){return e.direction===t?e:e.getFlipped()}function Wf(e,t){return e.direction===t?e:Sf(Uf(e.focus,t),Uf(e.anchor,t))}function Gf(e,t,n){let r=mf(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return Uf(r,n)}function Kf(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}function H(e){let{origin:t,offset:n,direction:r}=e;if(n===ff(t,r))return e.getSiblingCaret();if(n===ff(t,Zd(r)))return Ff(e.getSiblingCaret());let[i]=t.splitText(n);return R(i)||I(`$splitTextPointCaret: splitText must return at least one TextNode`),Uf(uf(i,`next`),r)}function qf(e,t){return!0}function Jf(e,{$copyElementNode:t=fd,$splitTextPointCaretNext:n=H,rootMode:r=`shadowRoot`,$shouldSplit:i=qf}={}){if(tf(e))return n(e);let a=e.getParentCaret(r);if(a){let{origin:n}=a;if(rf(e)&&!(n.canBeEmpty()&&i(n,`first`)))return Ff(a);let r=Kf(e);(r.length>0||n.canBeEmpty()&&i(n,`last`))&&a.insert(t(n).splice(0,0,r))}return a}function Yf(e){throw Error(e)}var Xf=new Map;function Zf(e){let t={};if(!e)return t;let n=e.split(`;`);for(let e of n)if(e!==``){let[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Qf(e){let t=Xf.get(e);return t===void 0&&(t=Zf(e),Xf.set(e,t)),Object.freeze(t),t}function $f(e){let t=jd().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function ep(e){return $f(qc(e)?e:e.getParentOrThrow())}function tp(e){let t=ep(e);return t!==null&&t.direction===`rtl`}function np(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!kl(t)&&n!==null){let[r,i]=n,a=e.isBackward(),o=r.getNode(),s=i.getNode(),c=t.is(o),l=t.is(s);if(c||l){let[n,r]=ws(e),i=o.is(s),c=t.is(a?s:o),l=t.is(a?o:s),u=0,d;if(i)u=n>r?r:n,d=n>r?n:r;else if(c)u=a?r:n,d=void 0;else if(l){let e=a?n:r;u=0,d=e}t.__text=t.__text.slice(u,d)}}return t}function rp(e){if(e.type===`text`)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return V(t)||Yf(`isAtNodeEnd: node must be a TextNode or ElementNode`),e.offset===t.getChildrenSize()}function ip(e){let t=e.getStyle(),n=Zf(t);Xf.set(t,n)}function ap(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function op(e,t,n=ap){if(e===null)return;let r=e.getStartEndPoints(),i=new Map,a=null;if(r){let[e,t]=r;a=zs(),a.anchor.set(e.key,e.offset,e.type),a.focus.set(t.key,t.offset,t.type);let n=pp(e.getNode(),kd),o=pp(t.getNode(),kd);V(n)&&i.set(n.getKey(),n),V(o)&&i.set(o.getKey(),o)}for(let t of e.getNodes())if(V(t)&&kd(t))i.set(t.getKey(),t);else if(r===null){let e=pp(t,kd);V(e)&&i.set(e.getKey(),e)}for(let[e,r]of i){let i=t();n(r,i),r.replace(i,!0),a&&(e===a.anchor.key&&a.anchor.set(i.getKey(),a.anchor.offset,a.anchor.type),e===a.focus.key&&a.focus.set(i.getKey(),a.focus.offset,a.focus.type))}a&&e.is(B())&&$l(a)}function sp(e){let t=cp(e);return t!==null&&t.writingMode===`vertical-rl`}function cp(e){let t=e.anchor.getNode();return V(t)?$f(t):ep(t)}function lp(e,t){let n=sp(e)?!t:t;dp(e)&&(n=!n);let r=Af(e.focus,n?`previous`:`next`);if(Hf(r))return!1;for(let e of bf(r)){if(rf(e))return!e.origin.isInline();if(!V(e.origin)){if(Wc(e.origin))return!0;break}}return!1}function up(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function dp(e){let t=cp(e);return t!==null&&t.direction===`rtl`}function fp(e,t,n){let r=dp(e),i=sp(e),a;a=i||r?!n:n,up(e,t,a,`character`)}function pp(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function mp(e){throw Error(e)}var hp=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,gp=hp&&`documentMode`in document?document.documentMode:null;hp&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);var _p=hp&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);hp&&`InputEvent`in window&&!gp&&`getTargetRanges`in new window.InputEvent(`input`),hp&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),hp&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,hp&&/Android/.test(navigator.userAgent),hp&&/^(?=.*Chrome).*/i.test(navigator.userAgent),hp&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);function vp(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function yp(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var bp=hp,xp=_p;function Sp(e,...t){let n=vp(...t);n.length>0&&e.classList.add(...n)}function Cp(e,...t){let n=vp(...t);n.length>0&&e.classList.remove(...n)}function wp(e){return e?e.getAdjacentCaret():null}function Tp(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function Ep(e){let t=Dp(e,e=>V(e)&&!e.isInline());return V(t)||mp(`Expected node ${e.__key} to have closest block element node.`),t}var Dp=(e,t)=>{let n=e;for(;n!==Zl()&&n!=null;){if(t(n))return n;n=n.getParent()}return null};function Op(e){let t=B()||Ws(),n;if(z(t))n=Af(t.focus,`next`);else{if(t!=null){let e=t.getNodes(),r=e[e.length-1];r&&(n=uf(r,`next`))}n||=mf(Zl(),`previous`).getFlipped().insert(sl())}let r=kp(e,n),i=gf(r);return Mf(xf(rf(i)?Vf(i):r)),e.getLatest()}function kp(e,t,n){let r=Uf(t,`next`);for(let e=r;e;e=Jf(e,n))r=e;return tf(r)&&mp(`$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split`),r.insert(e.isInline()?sl().append(e):e),Uf(uf(e.getLatest(),`next`),t.direction)}function Ap(e,t){let n=t();return e.replace(n),n.append(e),n}function jp(e,t){return e===null?!1:Object.getPrototypeOf(e).constructor.name===t.name}function Mp(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);i!==null&&n.push(i)}return n}var Np=xp||!bp?!1:void 0;function Pp(){if(Np===void 0){let e=document.createElement(`div`);e.style.cssText=`position: absolute; opacity: 0; width: 100px; left: -1000px;`,document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty(`zoom`,`2`),Np=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return Np}function Fp(e){let t=1;if(Pp())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue(`zoom`)),e=e.parentElement;return t}var Ip=0,Lp=1,Rp=2,zp=0,Bp=1,Vp=2,Hp=3,Up=4;function Wp(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n!==void 0&&!qc(n)&&i.push(n)}return i}function Gp(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return zp;let a=t._selection,o=e._selection;if(i)return Bp;if(!z(a)||!z(o)||!o.isCollapsed()||!a.isCollapsed())return zp;let s=Wp(t,n,r);if(s.length===0)return zp;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&R(r)&&r.__text.length===1&&a.anchor.offset===1?Vp:zp}let c=s[0],l=e._nodeMap.get(c.__key);if(!R(l)||!R(c)||l.__mode!==c.__mode)return zp;let u=l.__text,d=c.__text;if(u===d)return zp;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return zp;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?Vp:g===-1&&h===m+1?Hp:g===-1&&h===m?Up:zp}function Kp(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),a=t._selection,o=n._selection;return!(z(a)&&z(o)&&a.anchor.type===`element`&&a.focus.type===`element`&&o.anchor.type===`text`&&o.focus.type===`text`)&&R(r)&&R(i)&&r.__parent===i.__parent?JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON())):!1}function qp(e,t){let n=Date.now(),r=zp;return(i,a,o,s,c,l)=>{let u=Date.now();if(l.has(`historic`))return r=zp,n=u,Rp;let d=Gp(i,a,s,c,e.isComposing()),f=(()=>{let f=o===null||o.editor===e,p=l.has(el);if(!p&&f&&l.has(`history-merge`))return Ip;if(i===null)return Lp;let m=a._selection;if(!(s.size>0||c.size>0))return m===null?Rp:Ip;if(p===!1&&d!==zp&&d===r&&u<n+t&&f)return Ip;if(s.size===1){let e=Array.from(s)[0];if(Kp(e,i,a))return Ip}return Lp})();return n=u,r=d,f}}function Jp(e,t){let n=t.redoStack,r=t.undoStack;if(n.length!==0){let i=t.current;i!==null&&(r.push(i),e.dispatchCommand(Ba,!0));let a=n.pop();n.length===0&&e.dispatchCommand(za,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:$c})}}function Yp(e,t){let n=t.redoStack,r=t.undoStack;if(r.length!==0){let i=t.current,a=r.pop();i!==null&&(n.push(i),e.dispatchCommand(za,!0)),r.length===0&&e.dispatchCommand(Ba,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:$c})}}function Xp(e){e.undoStack=[],e.redoStack=[],e.current=null}function Zp(e,t,n){let r=qp(e,n);return yp(e.registerCommand(fa,()=>(Yp(e,t),!0),0),e.registerCommand(pa,()=>(Jp(e,t),!0),0),e.registerCommand(La,()=>(Xp(t),!1),0),e.registerCommand(Ra,()=>(Xp(t),e.dispatchCommand(za,!1),e.dispatchCommand(Ba,!1),!0),0),e.registerUpdateListener(({editorState:n,prevEditorState:i,dirtyLeaves:a,dirtyElements:o,tags:s})=>{let c=t.current,l=t.redoStack,u=t.undoStack,d=c===null?null:c.editorState;if(c!==null&&n===d)return;let f=r(i,n,c,a,o,s);if(f===Lp)l.length!==0&&(t.redoStack=[],e.dispatchCommand(za,!1)),c!==null&&(u.push({...c}),e.dispatchCommand(Ba,!0));else if(f===Rp)return;t.current={editor:e,editorState:n}}))}function Qp(){return{current:null,redoStack:[],undoStack:[]}}function $p(e,t,n=1e3){let r=(0,P.useMemo)(()=>t||Qp(),[t]);(0,P.useEffect)(()=>Zp(e,r,n),[n,e,r])}function em({delay:e,externalHistoryState:t}){let[n]=Bn();return $p(n,t,e),null}function tm(e,t){let n=t.body?t.body.childNodes:[],r=[],i=[];for(let t=0;t<n.length;t++){let a=n[t];if(!am.has(a.nodeName)){let t=om(a,e,i,!1);t!==null&&(r=r.concat(t))}}return cm(i),r}function nm(e,t){if(typeof document>`u`||typeof window>`u`&&global.window===void 0)throw Error(`To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.`);let n=document.createElement(`div`),r=Zl().getChildren();for(let i=0;i<r.length;i++){let a=r[i];rm(e,a,n,t)}return n.innerHTML}function rm(e,t,n,r=null){let i=r===null?!0:t.isSelected(r),a=V(t)&&t.excludeFromCopy(`html`),o=t;if(r!==null){let e=Id(t);e=R(e)&&r!==null?np(r,e):e,o=e}let s=V(o)?o.getChildren():[],c=bl(e,o.getType()),l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,o):o.exportDOM(e);let{element:u,after:d}=l;if(!u)return!1;let f=document.createDocumentFragment();for(let n=0;n<s.length;n++){let a=s[n],o=rm(e,a,f,r);!i&&V(t)&&o&&t.extractWithChild(a,r,`html`)&&(i=!0)}if(i&&!a){if((wd(u)||Ed(u))&&u.append(f),n.append(u),d){let e=d.call(o,u);e&&(Ed(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return i}function im(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}var am=new Set([`STYLE`,`SCRIPT`]);function om(e,t,n,r,i=new Map,a){let o=[];if(am.has(e.nodeName))return o;let s=null,c=im(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=s!=null&&dd(s)?!1:s!=null&&Ls(s)||r;for(let e=0;e<d.length;e++)f.push(...om(d[e],t,n,p,new Map(i),s));return u!=null&&(f=u(f)),Od(e)&&(f=p?sm(e,f,()=>{let e=new il;return n.push(e),e}):sm(e,f,sl)),s==null?f.length>0?o=o.concat(f):Od(e)&&lm(e)&&(o=o.concat(Ho())):V(s)&&s.append(...f),o}function sm(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e<t.length;e++){let o=t[e];if(Ls(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(a.push(o),e===t.length-1||e<t.length-1&&Ls(t[e+1])){let e=n();e.setFormat(r),e.append(...a),i.push(e),a=[]}}return i}function cm(e){for(let t of e)t.getNextSibling()instanceof il&&t.insertAfter(Ho());for(let t of e){let e=t.getChildren();for(let n of e)t.insertBefore(n);t.remove()}}function lm(e){return e.nextSibling==null||e.previousSibling==null?!1:Dd(e.nextSibling)&&Dd(e.previousSibling)}function um(e){throw Error(e)}function dm(e,t=B()){return t??um(`Expected valid LexicalSelection`),z(t)&&t.isCollapsed()||t.getNodes().length===0?``:nm(e,t)}function fm(e,t=B()){return t??um(`Expected valid LexicalSelection`),z(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(ym(e,t))}function pm(e,t,n){let r=e.getData(`application/x-lexical-editor`);if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return hm(n,bm(e.nodes),t)}catch{}let i=e.getData(`text/html`),a=e.getData(`text/plain`);if(i&&a!==i)try{return hm(n,tm(n,new DOMParser().parseFromString(mm(i),`text/html`)),t)}catch{}let o=a||e.getData(`text/uri-list`);if(o!=null)if(z(t)){let e=o.split(/(\r?\n|\t)/);e[e.length-1]===``&&e.pop();for(let t=0;t<e.length;t++){let n=B();if(z(n)){let r=e[t];r===`
252
+ `||r===`\r
253
+ `?n.insertParagraph():r===` `?n.insertNodes([ps()]):n.insertText(r)}}}else t.insertRawText(o)}function mm(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy(`lexical`,{createHTML:e=>e}).createHTML(e):e}function hm(e,t,n){e.dispatchCommand(ta,{nodes:t,selection:n})||(n.insertNodes(t),gm(n))}function gm(e){if(z(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=Af(t,`previous`);if(r)if(tf(r))n=r.origin;else{let e=Sf(r,mf(Zl(),`next`).getFlipped());for(let t of e)if(R(t.origin)){n=t.origin;break}else if(V(t.origin)&&!t.origin.isInline())break}if(n&&R(n)){let t=n.getFormat(),r=n.getStyle();(e.format!==t||e.style!==r)&&(e.format=t,e.style=r,e.dirty=!0)}}}function _m(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&um(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),V(e)){let e=t.children;Array.isArray(e)||um(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}function vm(e,t,n,r=[]){let i=t===null?!0:n.isSelected(t),a=V(n)&&n.excludeFromCopy(`html`),o=n;if(t!==null){let e=Id(n);e=R(e)&&t!==null?np(t,e):e,o=e}let s=V(o)?o.getChildren():[],c=_m(o);if(R(o)){let e=o.__text;e.length>0?c.text=e:i=!1}for(let r=0;r<s.length;r++){let a=s[r],o=vm(e,t,a,c.children);!i&&V(n)&&o&&n.extractWithChild(a,t,`clone`)&&(i=!0)}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e<c.children.length;e++){let t=c.children[e];r.push(t)}return i}function ym(e,t){let n=[],r=Zl().getChildren();for(let i=0;i<r.length;i++){let a=r[i];vm(e,t,a,n)}return{namespace:e._config.namespace,nodes:n}}function bm(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=Cc(r);R(i)&&ip(i),t.push(i)}return t}var xm=50,Sm=null;async function Cm(e,t,n){if(Sm!==null)return!1;if(t!==null)return new Promise((r,i)=>{e.update(()=>{r(wm(e,t,n))})});let r=e.getRootElement(),i=e._window||window,a=window.document,o=bd(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.cssText=`position: fixed; top: -1000px;`,s.append(a.createTextNode(`#`)),r.append(s);let c=new Range;return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise((t,r)=>{let i=e.registerCommand(Pa,r=>(jp(r,ClipboardEvent)&&(i(),Sm!==null&&(window.clearTimeout(Sm),Sm=null),t(wm(e,r,n))),!0),4);Sm=window.setTimeout(()=>{i(),Sm=null,t(!1)},xm),a.execCommand(`copy`),s.remove()})}function wm(e,t,n){if(n===void 0){let t=bd(e._window);if(!t)return!1;let r=t.anchorNode,i=t.focusNode;if(r!==null&&i!==null&&!wl(e,r,i))return!1;let a=B();if(a===null)return!1;n=Em(a)}t.preventDefault();let r=t.clipboardData;return r===null?!1:(Dm(r,n),!0)}var Tm=[[`text/html`,dm],[`application/x-lexical-editor`,fm]];function Em(e=B()){let t={"text/plain":e?e.getTextContent():``};if(e){let n=jd();for(let[r,i]of Tm){let a=i(n,e);a!==null&&(t[r]=a)}}return t}function Dm(e,t){for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function Om(e,t){if(document.caretRangeFromPoint!==void 0){let n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}else if(document.caretPositionFromPoint!==`undefined`){let n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}else return null}var km=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Am=km&&`documentMode`in document?document.documentMode:null,jm=km&&`InputEvent`in window&&!Am?`getTargetRanges`in new window.InputEvent(`input`):!1,Mm=km&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Nm=km&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Pm=km&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Fm=km&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Pm,Im=$i(`DRAG_DROP_PASTE_FILE`),Lm=class e extends Vc{static getType(){return`quote`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`blockquote`);return Sp(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Um,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(wd(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Rm().updateFromJSON(e)}insertNewAfter(e,t){let n=sl(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=sl();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Rm(){return pd(new Lm)}function zm(e){return e instanceof Lm}var Bm=class e extends Vc{static getType(){return`heading`}static clone(t){return new e(t.__tag,t.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];Sp(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Hm,priority:0}),h2:e=>({conversion:Hm,priority:0}),h3:e=>({conversion:Hm,priority:0}),h4:e=>({conversion:Hm,priority:0}),h5:e=>({conversion:Hm,priority:0}),h6:e=>({conversion:Hm,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&Vm(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Vm(e)?{conversion:e=>({node:Wm(`h1`)}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(wd(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Wm(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?sl():Wm(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=sl();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?sl():Wm(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function Vm(e){return e.nodeName.toLowerCase()===`span`?e.style.fontSize===`26pt`:!1}function Hm(e){let t=e.nodeName.toLowerCase(),n=null;return(t===`h1`||t===`h2`||t===`h3`||t===`h4`||t===`h5`||t===`h6`)&&(n=Wm(t),e.style!==null&&(Ld(e,n),n.setFormat(e.style.textAlign))),{node:n}}function Um(e){let t=Rm();return e.style!==null&&(t.setFormat(e.style.textAlign),Ld(e,t)),{node:t}}function Wm(e=`h1`){return pd(new Bm(e))}function Gm(e){return e instanceof Bm}function Km(e,t){e.preventDefault(),t.update(()=>{let n=B(),r=jp(e,InputEvent)||jp(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&pm(r,n,t)},{tag:nl})}async function qm(e,t){await Cm(t,jp(e,ClipboardEvent)?e:null),t.update(()=>{let e=B();z(e)?e.removeText():Ss(e)&&e.getNodes().forEach(e=>e.remove())})}function Jm(e){let t=null;if(jp(e,DragEvent)?t=e.dataTransfer:jp(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function Ym(e){let t=B();if(!z(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],a=i.getKey();if(n.has(a))continue;let o=Dp(i,e=>V(e)&&!e.isInline());if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function Xm(e){return Wc(ql(e))}function Zm(e){let t=e.focus;return t.key===`root`&&t.offset===Zl().getChildrenSize()}function Qm(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(qc(n))return!1;let r=Ep(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}function $m(e){for(let t of[`lowercase`,`uppercase`,`capitalize`])e.hasFormat(t)&&e.toggleFormat(t)}function eh(e){return yp(e.registerCommand(na,e=>{let t=B();return Ss(t)?(t.clear(),!0):!1},0),e.registerCommand(ra,e=>{let t=B();return z(t)?(t.deleteCharacter(e),!0):Ss(t)?(t.deleteNodes(),!0):!1},0),e.registerCommand(la,e=>{let t=B();return z(t)?(t.deleteWord(e),!0):!1},0),e.registerCommand(ua,e=>{let t=B();return z(t)?(t.deleteLine(e),!0):!1},0),e.registerCommand(oa,t=>{let n=B();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)pm(r,n,e);else if(z(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(ca,()=>{let e=B();return z(e)?(e.removeText(),!0):!1},0),e.registerCommand(da,e=>{let t=B();return z(t)?(t.formatText(e),!0):!1},0),e.registerCommand(Aa,e=>{let t=B();if(!z(t)&&!Ss(t))return!1;let n=t.getNodes();for(let t of n){let n=Dp(t,e=>V(e)&&!e.isInline());n!==null&&n.setFormat(e)}return!0},0),e.registerCommand(ia,e=>{let t=B();return z(t)?(t.insertLineBreak(e),!0):!1},0),e.registerCommand(aa,()=>{let e=B();return z(e)?(e.insertParagraph(),!0):!1},0),e.registerCommand(Ea,()=>(Qs([ps()]),!0),0),e.registerCommand(Da,()=>Ym(e=>{let t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Oa,()=>Ym(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(va,e=>{let t=B();if(Ss(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if(z(t)){let n=Xu(t.focus,!0);if(!e.shiftKey&&Wc(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(ya,e=>{let t=B();if(Ss(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if(z(t)){if(Zm(t))return e.preventDefault(),!0;let n=Xu(t.focus,!1);if(!e.shiftKey&&Wc(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(ga,e=>{let t=B();if(Ss(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),tp(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!z(t))return!1;if(lp(t,!0)){let n=e.shiftKey;return e.preventDefault(),fp(t,n,!0),!0}return!1},0),e.registerCommand(L,e=>{let t=B();if(Ss(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),tp(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!z(t))return!1;let n=e.shiftKey;return lp(t,!1)?(e.preventDefault(),fp(t,n,!1),!0):!1},0),e.registerCommand(Sa,t=>{if(Xm(t.target))return!1;let n=B();if(z(n)){if(Qm(n))return t.preventDefault(),e.dispatchCommand(Oa,void 0);if(Nm&&navigator.language===`ko-KR`)return!1}else if(!Ss(n))return!1;return t.preventDefault(),e.dispatchCommand(ra,!0)},0),e.registerCommand(wa,t=>{if(Xm(t.target))return!1;let n=B();return z(n)||Ss(n)?(t.preventDefault(),e.dispatchCommand(ra,!1)):!1},0),e.registerCommand(ba,t=>{let n=B();if(!z(n))return!1;if($m(n),t!==null){if((Nm||Mm||Fm)&&jm)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(ia,!1)}return e.dispatchCommand(aa,void 0)},0),e.registerCommand(Ca,()=>z(B())?(e.blur(),!0):!1,0),e.registerCommand(ka,t=>{let[,n]=Jm(t);if(n.length>0){let r=t.clientX,i=t.clientY,a=Om(r,i);if(a!==null){let{offset:t,node:r}=a,i=ql(r);if(i!==null){let e=zs();if(R(i))e.anchor.set(i.getKey(),t,`text`),e.focus.set(i.getKey(),t,`text`);else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}$l(ui(e))}e.dispatchCommand(Im,n)}return t.preventDefault(),!0}return!!z(B())},0),e.registerCommand(ja,e=>{let[t]=Jm(e),n=B();return!(t&&!z(n))},0),e.registerCommand(Ma,e=>{let[t]=Jm(e),n=B();if(t&&!z(n))return!1;let r=e.clientX,i=e.clientY,a=Om(r,i);return a!==null&&Wc(ql(a.node))&&e.preventDefault(),!0},0),e.registerCommand(Ia,()=>(Ku(),!0),0),e.registerCommand(Pa,t=>(Cm(e,jp(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Fa,t=>(qm(t,e),!0),0),e.registerCommand(sa,t=>{let[,n,r]=Jm(t);return n.length>0&&!r?(e.dispatchCommand(Im,n),!0):Td(t.target)&&Cl(t.target)||B()===null?!1:(Km(t,e),!0)},0),e.registerCommand(xa,e=>{let t=B();return z(t)&&$m(t),!1},0),e.registerCommand(Ta,e=>{let t=B();return z(t)&&$m(t),!1},0))}var th=Object.prototype.hasOwnProperty;function nh(e,t,n){for(n of e.keys())if(rh(n,t))return n}function rh(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&rh(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=nh(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=nh(t,i),!i)||!rh(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(th.call(e,n)&&++r&&!th.call(t,n)||!(n in t)||!rh(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var ih=class extends Error{name=`Assertion`;code=`ERR_ASSERTION`;constructor(e,t,n,r,i){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=t,this.expected=n,this.generated=i,this.operator=r}};function U(e,t){ah(!!e,!1,!0,`ok`,`Expected value to be truthy`,t)}function ah(e,t,n,r,i,a){if(!e)throw a instanceof Error?a:new ih(a||i,t,n,r,!a)}var W={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},oh={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},G={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},sh={ht:` `,lf:`
254
+ `,cr:`\r`,space:` `,exclamationMark:`!`,quotationMark:`"`,numberSign:`#`,dollarSign:`$`,percentSign:`%`,ampersand:`&`,apostrophe:`'`,leftParenthesis:`(`,rightParenthesis:`)`,asterisk:`*`,plusSign:`+`,comma:`,`,dash:`-`,dot:`.`,slash:`/`,digit0:`0`,digit1:`1`,digit2:`2`,digit3:`3`,digit4:`4`,digit5:`5`,digit6:`6`,digit7:`7`,digit8:`8`,digit9:`9`,colon:`:`,semicolon:`;`,lessThan:`<`,equalsTo:`=`,greaterThan:`>`,questionMark:`?`,atSign:`@`,uppercaseA:`A`,uppercaseB:`B`,uppercaseC:`C`,uppercaseD:`D`,uppercaseE:`E`,uppercaseF:`F`,uppercaseG:`G`,uppercaseH:`H`,uppercaseI:`I`,uppercaseJ:`J`,uppercaseK:`K`,uppercaseL:`L`,uppercaseM:`M`,uppercaseN:`N`,uppercaseO:`O`,uppercaseP:`P`,uppercaseQ:`Q`,uppercaseR:`R`,uppercaseS:`S`,uppercaseT:`T`,uppercaseU:`U`,uppercaseV:`V`,uppercaseW:`W`,uppercaseX:`X`,uppercaseY:`Y`,uppercaseZ:`Z`,leftSquareBracket:`[`,backslash:`\\`,rightSquareBracket:`]`,caret:`^`,underscore:`_`,graveAccent:"`",lowercaseA:`a`,lowercaseB:`b`,lowercaseC:`c`,lowercaseD:`d`,lowercaseE:`e`,lowercaseF:`f`,lowercaseG:`g`,lowercaseH:`h`,lowercaseI:`i`,lowercaseJ:`j`,lowercaseK:`k`,lowercaseL:`l`,lowercaseM:`m`,lowercaseN:`n`,lowercaseO:`o`,lowercaseP:`p`,lowercaseQ:`q`,lowercaseR:`r`,lowercaseS:`s`,lowercaseT:`t`,lowercaseU:`u`,lowercaseV:`v`,lowercaseW:`w`,lowercaseX:`x`,lowercaseY:`y`,lowercaseZ:`z`,leftCurlyBrace:`{`,verticalBar:`|`,rightCurlyBrace:`}`,tilde:`~`,replacementCharacter:`�`};function ch(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<oh.v8MaxSafeChunkSize)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+oh.v8MaxSafeChunkSize),o.unshift(t,0),e.splice(...o),a+=oh.v8MaxSafeChunkSize,t+=oh.v8MaxSafeChunkSize}function lh(e,t){return e.length>0?(ch(e,e.length,0,t),e):t}var uh=xh(/[A-Za-z]/),dh=xh(/[\dA-Za-z]/),fh=xh(/[#-'*+\--9=?A-Z^-~]/);function ph(e){return e!==null&&(e<W.space||e===W.del)}var mh=xh(/\d/),hh=xh(/[\dA-Fa-f]/),gh=xh(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<W.horizontalTab}function _h(e){return e!==null&&(e<W.nul||e===W.space)}function vh(e){return e===W.horizontalTab||e===W.virtualSpace||e===W.space}var yh=xh(/\p{P}|\p{S}/u),bh=xh(/\s/);function xh(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Sh(e){if(e===W.eof||_h(e)||bh(e))return oh.characterGroupWhitespace;if(yh(e))return oh.characterGroupPunctuation}function Ch(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function wh(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[W.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[W.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&ch(o,o.length,0,Ch(s,e.slice(r+1,n),t)),ch(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ch(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=G.data);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return U(t===W.tilde,"expected `~`"),i===W.tilde&&a[a.length-1][1].type!==G.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Sh(i);if(a===W.tilde)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Sh(a);return l._open=!u||u===oh.attentionSideAfter&&!!s,l._close=!s||s===oh.attentionSideAfter&&!!u,n(a)}}}var Th=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Ah.peek=jh;function Eh(){return{canContainEols:[`delete`],enter:{strikethrough:Oh},exit:{strikethrough:kh}}}function Dh(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Th}],handlers:{delete:Ah}}}function Oh(e){this.enter({type:`delete`,children:[]},e)}function kh(e){this.exit(e)}function Ah(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function jh(){return`~`}Lh.peek=Rh;var Mh=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],Nh={canContainEols:[`highlight`],enter:{highlight:Ph},exit:{highlight:Fh}};function Ph(e){this.enter({type:`highlight`,children:[]},e)}function Fh(e){this.exit(e)}var Ih={unsafe:[{character:`=`,inConstruct:`phrasing`,notInConstruct:Mh}],handlers:{highlight:Lh}};function Lh(e,t,n,r){let i=n.createTracker(r),a=n.enter(`highlight`),o=i.move(`==`);return o+=i.move(n.containerPhrasing(e,{before:o,after:`=`,...i.current()})),o+=i.move(`==`),a(),o}function Rh(){return`=`}function zh(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Bh=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Vh={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Hh(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Uh(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Wh(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Gh(e){return Wh(e)||Hh(e)}var Kh=document.createElement(`i`);function qh(e){let t=`&`+e+`;`;Kh.innerHTML=t;let n=Kh.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var Jh=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function Yh(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Gh:u===`decimal`?Hh:Uh;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&Bh.includes(y)&&(_=y,v=qh(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`?qh(y):!1;e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Gh(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Xh(e))h(7,S),C=`�`;else if(e in Vh)h(6,S),C=Vh[e];else{let t=``;Zh(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Jh[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Xh(e){return e>=55296&&e<=57343||e>1114111}function Zh(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Qh=/["&'<>`]/g,$h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tg=/[|\\{}()[\]^$+*?.]/g,ng=new WeakMap;function rg(e,t){if(e=e.replace(t.subset?ig(t.subset):Qh,r),t.subset||t.escapeOnly)return e;return e.replace($h,n).replace(eg,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function ig(e){let t=ng.get(e);return t||(t=ag(e),ng.set(e,t)),t}function ag(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tg,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}function og(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function sg(e,t){return rg(e,Object.assign({format:og},t))}function cg(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?ug(e.position):`start`in e||`end`in e?ug(e):`line`in e||`column`in e?lg(e):``}function lg(e){return dg(e&&e.line)+`:`+dg(e&&e.column)}function ug(e){return lg(e&&e.start)+`-`+lg(e&&e.end)}function dg(e){return e&&typeof e==`number`?e:1}var fg=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=cg(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};fg.prototype.file=``,fg.prototype.name=``,fg.prototype.reason=``,fg.prototype.message=``,fg.prototype.stack=``,fg.prototype.column=void 0,fg.prototype.line=void 0,fg.prototype.ancestors=void 0,fg.prototype.cause=void 0,fg.prototype.fatal=void 0,fg.prototype.place=void 0,fg.prototype.ruleId=void 0,fg.prototype.source=void 0;var pg=` `;function mg(){return{canContainEols:[`mdxJsxTextElement`],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:h,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:_,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:y,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:h,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:_,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:y}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){let t=this.data.mdxJsxTagStack;if(U(t,"expected `mdxJsxTagStack`"),t.length===0)throw new fg("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-closing-slash`)}function a(e){let t=this.data.mdxJsxTag;if(U(t,"expected `mdxJsxTag`"),t.close)throw new fg(`Unexpected attribute in closing tag, expected the end of the tag`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-attribute`)}function o(e){let t=this.data.mdxJsxTag;if(U(t,"expected `mdxJsxTag`"),t.close)throw new fg("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-self-closing-slash`)}function s(){let e=this.data.mdxJsxTag;U(e,"expected `mdxJsxTag`"),e.close=!0}function c(e){let t=this.data.mdxJsxTag;U(t,"expected `mdxJsxTag`"),t.name=this.sliceSerialize(e)}function l(e){let t=this.data.mdxJsxTag;U(t,"expected `mdxJsxTag`"),t.name+=`.`+this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;U(t,"expected `mdxJsxTag`"),t.name+=`:`+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`"),a.call(this,e),n.attributes.push({type:`mdxJsxAttribute`,name:``,value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`"),a.call(this,e),n.attributes.push({type:`mdxJsxExpressionAttribute`,value:``,position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];U(r.type===`mdxJsxExpressionAttribute`);let i=e.estree;r.value=this.resume(),U(r.position!==void 0),r.position.end=t(e.end),i&&(r.data={estree:i})}function m(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];U(r.type===`mdxJsxAttribute`),r.name=this.sliceSerialize(e),U(r.position!==void 0),r.position.end=t(e.end)}function h(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];U(r.type===`mdxJsxAttribute`),r.name+=`:`+this.sliceSerialize(e),U(r.position!==void 0),r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];r.value=Yh(this.resume(),{nonTerminated:!1}),U(r.position!==void 0),r.position.end=t(e.end)}function _(e){let n=this.data.mdxJsxTag;U(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];U(r.type===`mdxJsxAttribute`);let i={type:`mdxJsxAttributeValueExpression`,value:this.resume()},a=e.estree;a&&(i.data={estree:a}),r.value=i,U(r.position!==void 0),r.position.end=t(e.end)}function v(){let e=this.data.mdxJsxTag;U(e,"expected `mdxJsxTag`"),e.selfClosing=!0}function y(e){let t=this.data.mdxJsxTag;U(t,"expected `mdxJsxTag`");let n=this.data.mdxJsxTagStack;U(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];if(t.close&&r.name!==t.name)throw new fg("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+cg(r)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`);this.resume(),t.close?n.pop():this.enter({type:e.type===`mdxJsxTextTag`?`mdxJsxTextElement`:`mdxJsxFlowElement`,name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,x):n.push(t)}function b(e,t){let n=this.data.mdxJsxTagStack;U(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];U(r,"expected `mdxJsxTag`");let i=e?" before the end of `"+e.type+"`":``,a=e?{start:e.start,end:e.end}:void 0;throw new fg("Expected a closing tag for `"+S(r)+"` ("+cg({start:t.start,end:t.end})+`)`+i,a,`mdast-util-mdx-jsx:end-tag-mismatch`)}function x(e,t){let n=this.data.mdxJsxTag;throw U(n,"expected `mdxJsxTag`"),new fg("Expected the closing tag `"+S(n)+"` either after the end of `"+t.type+"` ("+cg(t.end)+") or another opening tag after the start of `"+t.type+"` ("+cg(t.start)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`)}function S(e){return`<`+(e.close?`/`:``)+(e.name||``)+`>`}}function hg(e){let t=e||{},n=t.quote||`"`,r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||1/0,o=n===`"`?`'`:`"`;if(n!==`"`&&n!==`'`)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=yg,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:`<`,inConstruct:[`phrasing`]},{atBreak:!0,character:`<`}],fences:!0,resourceLink:!0};function s(e,t,s,c){let l=e.type===`mdxJsxFlowElement`,u=e.name?!e.children||e.children.length===0:!1,d=vg(_g(s)),f=s.createTracker(c),p=s.createTracker(c),m=[],h=(l?d:``)+`<`+(e.name||``),g=s.enter(e.type);if(f.move(h),p.move(h),e.attributes&&e.attributes.length>0){if(!e.name)throw Error(`Cannot serialize fragment w/ attributes`);let t=-1;for(;++t<e.attributes.length;){let i=e.attributes[t],a;if(i.type===`mdxJsxExpressionAttribute`)a=`{`+(i.value||``)+`}`;else{if(!i.name)throw Error(`Cannot serialize attribute w/o name`);let e=i.value,t=i.name,s=``;if(e!=null)if(typeof e==`object`)s=`{`+(e.value||``)+`}`;else{let t=r&&zh(e,n)>zh(e,o)?o:n;s=t+sg(e,{subset:[t]})+t}a=t+(s?`=`:``)+s}m.push(a)}}let _=!1,v=m.join(` `);l&&(/\r?\n|\r/.test(v)||f.current().now.column+v.length+(u?i?2:3:1)>a)&&(_=!0);let y=f,b=h;if(_){y=p;let e=-1;for(;++e<m.length;)m[e]=d+pg+m[e];b+=y.move(`
255
+ `+m.join(`
256
+ `)+`
257
+ `+d)}else v&&(b+=y.move(` `+v));return u&&(b+=y.move((i||_?``:` `)+`/`)),b+=y.move(`>`),e.children&&e.children.length>0&&(e.type===`mdxJsxTextElement`?b+=y.move(s.containerPhrasing(e,{...y.current(),before:`>`,after:`<`})):(y.shift(2),b+=y.move(`
258
+ `),b+=y.move(gg(e,s,y.current())),b+=y.move(`
259
+ `))),u||(b+=y.move((l?d:``)+`</`+(e.name||``)+`>`)),g(),b}}function gg(e,t,n){let r=t.indexStack,i=e.children,a=t.createTracker(n),o=vg(_g(t)),s=[],c=-1;for(r.push(-1);++c<i.length;){let n=i[c];r[r.length-1]=c;let l={before:`
260
+ `,after:`
261
+ `,...a.current()},u=t.handle(n,e,t,l),d=n.type===`mdxJsxFlowElement`?u:t.indentLines(u,function(e,t,n){return(n?``:o)+e});s.push(a.move(d)),n.type!==`list`&&(t.bulletLastUsed=void 0),c<i.length-1&&s.push(a.move(`
262
+
263
+ `))}return r.pop(),s.join(``)}function _g(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if(r===`blockquote`||r===`listItem`)break;r===`mdxJsxFlowElement`&&t++}return t}function vg(e){return pg.repeat(e)}function yg(){return`<`}var bg,xg,Sg,Cg,wg=!0;typeof process<`u`&&({FORCE_COLOR:bg,NODE_DISABLE_COLORS:xg,NO_COLOR:Sg,TERM:Cg}={},wg=process.stdout&&process.stdout.isTTY);var Tg={enabled:!xg&&Sg==null&&Cg!==`dumb`&&(bg!=null&&bg!==`0`||wg),reset:Og(0,0),bold:Og(1,22),dim:Og(2,22),italic:Og(3,23),underline:Og(4,24),inverse:Og(7,27),hidden:Og(8,28),strikethrough:Og(9,29),black:Og(30,39),red:Og(31,39),green:Og(32,39),yellow:Og(33,39),blue:Og(34,39),magenta:Og(35,39),cyan:Og(36,39),white:Og(37,39),gray:Og(90,39),grey:Og(90,39),bgBlack:Og(40,49),bgRed:Og(41,49),bgGreen:Og(42,49),bgYellow:Og(43,49),bgBlue:Og(44,49),bgMagenta:Og(45,49),bgCyan:Og(46,49),bgWhite:Og(47,49)};function Eg(e,t){let n=0,r,i=``,a=``;for(;n<e.length;n++)r=e[n],i+=r.open,a+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+a}function Dg(e,t){let n={has:e,keys:t};return n.reset=Tg.reset.bind(n),n.bold=Tg.bold.bind(n),n.dim=Tg.dim.bind(n),n.italic=Tg.italic.bind(n),n.underline=Tg.underline.bind(n),n.inverse=Tg.inverse.bind(n),n.hidden=Tg.hidden.bind(n),n.strikethrough=Tg.strikethrough.bind(n),n.black=Tg.black.bind(n),n.red=Tg.red.bind(n),n.green=Tg.green.bind(n),n.yellow=Tg.yellow.bind(n),n.blue=Tg.blue.bind(n),n.magenta=Tg.magenta.bind(n),n.cyan=Tg.cyan.bind(n),n.white=Tg.white.bind(n),n.gray=Tg.gray.bind(n),n.grey=Tg.grey.bind(n),n.bgBlack=Tg.bgBlack.bind(n),n.bgRed=Tg.bgRed.bind(n),n.bgGreen=Tg.bgGreen.bind(n),n.bgYellow=Tg.bgYellow.bind(n),n.bgBlue=Tg.bgBlue.bind(n),n.bgMagenta=Tg.bgMagenta.bind(n),n.bgCyan=Tg.bgCyan.bind(n),n.bgWhite=Tg.bgWhite.bind(n),n}function Og(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,`g`)};return function(t){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),t===void 0?this:Tg.enabled?Eg(this.keys,t+``):t+``):t===void 0?Dg([e],[n]):Tg.enabled?Eg([n],t+``):t+``}}function kg(){}kg.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(Ag(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function Ag(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var jg=new kg;function Mg(e,t,n){return jg.diff(e,t,n)}var Ng=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Pg=/\S/,Fg=new kg;Fg.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Pg.test(e)&&!Pg.test(t)},Fg.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Ng.test(t[n])&&Ng.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Ig=new kg;Ig.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
264
+ `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function Lg(e,t,n){return Ig.diff(e,t,n)}var Rg=new kg;Rg.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var zg=new kg;zg.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Bg(e){"@babel/helpers - typeof";return Bg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bg(e)}var Vg=Object.prototype.toString,Hg=new kg;Hg.useLongestToken=!0,Hg.tokenize=Ig.tokenize,Hg.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(Ug(e,null,null,i),i,` `)},Hg.equals=function(e,t){return kg.prototype.equals.call(Hg,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function Ug(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(Vg.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Ug(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),Bg(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=Ug(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var Wg=new kg;Wg.tokenize=function(e){return e.slice()},Wg.join=Wg.removeEmpty=function(e){return e};function Gg(e,t,n){return Wg.diff(e,t,n)}var Kg={"--":Tg.red,"··":Tg.grey,"++":Tg.green},qg=Tg.dim().italic,Jg=Tg.dim(`→`),Yg=Tg.dim(`·`),Xg=Tg.dim(`↵`),Zg=(e,t)=>Kg[e](e+$g(t))+`
265
+ `,Qg=(e,t)=>Tg.dim(`L`+String(e).padStart(t,`0`)+` `),$g=e=>e.replace(/[ ]/g,Yg).replace(/\t/g,Jg).replace(/(\r?\n)/g,Xg);function e_(e,t,n){let r=e.removed?`--`:e.added?`++`:`··`,i=e.value.replace(/\r?\n$/,``).split(`
266
+ `),a=0,o,s=``;for(e.added?s+=Kg[r]().underline(qg(`Expected:`))+`
267
+ `:e.removed&&(s+=Kg[r]().underline(qg(`Actual:`))+`
268
+ `);a<i.length;a++)o=i[a],o!=null&&(t&&(s+=Qg(t+a,n)),s+=Zg(r,o||`
269
+ `));return s}function t_(e,t){let n=Gg(e,t),r=0,i=0,a=0,o,s,c,l,u,d=Zg(`··`,`[`);for(;r<n.length;r++)for(c=(o=n[r]).removed?`--`:o.added?`++`:`··`,o.added?d+=Kg[c]().underline(qg(`Expected:`))+`
270
+ `:o.removed&&(d+=Kg[c]().underline(qg(`Actual:`))+`
271
+ `),i=0;i<o.value.length;i++)for(l=o.value[i]&&typeof o.value[i]==`object`,s=s_(o.value[i]).split(/\r?\n/g),a=0;a<s.length;)u=` `+s[a++]+(l?``:`,`),l&&a===s.length&&i+1<o.value.length&&(u+=`,`),d+=Zg(c,u);return d+Zg(`··`,`]`)}function n_(e,t,n=0){let r=0,i,a=``,o=Lg(e,t),s=String(t.split(/\r?\n/g).length-n).length;for(;r<o.length;r++)a+=e_(i=o[r],n,s),n&&!i.removed&&(n+=i.count);return a}function r_(e,t){let n=Mg(e,t),r=0,i=``,a,o=e.length,s=t.length,c=$g(e),l=$g(t);if(a=n[r],o!==s&&a.removed&&n[r+1]){let i=a.count-n[r+1].count;i==0||(i>0?(t=` `.repeat(i)+t,l=` `.repeat(i)+l,s+=i):i<0&&(e=` `.repeat(-i)+e,c=` `.repeat(-i)+c,o+=-i))}if(i+=i_(c,l,o,s),o===s)for(a=` `;r<o;r++)a+=e[r]===t[r]?` `:`^`;else for(a=` `;r<n.length;r++)a+=(n[r].added||n[r].removed?`^`:` `).repeat(Math.max(n[r].count,0)),r+1<n.length&&(n[r].added&&n[r+1].removed||n[r].removed&&n[r+1].added)&&(n[r+1].count-=n[r].count);return i+Tg.red(a)}function i_(e,t,n=String(e).length,r=String(t).length){let i=4,a=Math.max(n,r),o=typeof e,s=typeof t;if(o!==s){i=2;let c=i+a-n,l=i+a-r;e+=` `.repeat(c)+Tg.dim(`[${o}]`),t+=` `.repeat(l)+Tg.dim(`[${s}]`),n+=c+o.length+2,r+=l+s.length+2,a=Math.max(n,r)}return Kg[`++`](`++`+t+` `.repeat(i+a-r)+qg(`(Expected)`))+`
272
+ `+Kg[`--`](`--`+e+` `.repeat(i+a-n)+qg(`(Actual)`))+`
273
+ `}function a_(e,t){var n,r=0,i,a=Array.isArray(e),o=[],s=a?Array(e.length):{};if(a)for(r=0;r<s.length;r++)i=e[r],!i||typeof i!=`object`?s[r]=i:s[r]=a_(i,t[r]);else{for(n in t)o.push(n);for(;r<o.length;r++)Object.prototype.hasOwnProperty.call(e,n=o[r])&&(!(i=e[n])||typeof i!=`object`?s[n]=i:s[n]=a_(i,t[n]));for(n in e)s.hasOwnProperty(n)||(s[n]=e[n])}return s}function o_(){var e=new Set;return function(t,n){return n===void 0?`[__VOID__]`:typeof n==`number`&&n!==n?`[__NAN__]`:typeof n==`bigint`?n.toString():!n||typeof n!=`object`?n:e.has(n)?`[Circular]`:(e.add(n),n)}}function s_(e){return JSON.stringify(e,o_(),2).replace(/"\[__NAN__\]"/g,`NaN`).replace(/"\[__VOID__\]"/g,`undefined`)}function c_(e,t){if(Array.isArray(t)&&Array.isArray(e))return t_(e,t);if(t instanceof RegExp)return r_(``+e,``+t);let n=e&&typeof e==`object`,r=t&&typeof t==`object`;return n&&r&&(e=a_(e,t)),r&&(t=s_(t)),n&&(e=s_(e)),t&&typeof t==`object`&&(e=s_(a_(e,t)),t=s_(t)),n=typeof e==`string`,r=typeof t==`string`,n&&/\r?\n/.test(e)?n_(e,``+t):r&&/\r?\n/.test(t)?n_(``+e,t):n&&r?r_(e,t):i_(e,t)}function l_(e){e=e.replace(/\r?\n/g,`
274
+ `);let t=e.match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,`gm`),``):e}var u_=class extends Error{constructor(e={}){super(e.message),this.name=`Assertion`,this.code=`ERR_ASSERTION`,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}};function d_(e,t,n,r,i,a,o){if(e)return;let s=o||a;throw o instanceof Error?o:new u_({actual:t,expects:n,operator:r,message:s,details:i&&i(t,n),generated:!o})}function f_(e,t){d_(!!e,!1,!0,`ok`,!1,`Expected value to be truthy`,t)}function p_(e,t,n){d_(e===t,e,t,`is`,c_,`Expected values to be strictly equal:`,n)}function m_(e,t){d_(!e,!0,!1,`not`,!1,`Expected value to be falsey`,t)}m_.ok=m_,p_.not=function(e,t,n){d_(e!==t,e,t,`is.not`,!1,`Expected values not to be strictly equal`,n)},m_.equal=function(e,t,n){d_(!rh(e,t),e,t,`not.equal`,!1,`Expected values not to be deeply equal`,n)},m_.type=function(e,t,n){let r=typeof e;d_(r!==t,r,t,`not.type`,!1,`Expected "${r}" not to be "${t}"`,n)},m_.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";d_(!(e instanceof t),e,t,`not.instance`,!1,`Expected value not to be an instance of ${r}`,n)},m_.snapshot=function(e,t,n){e=l_(e),t=l_(t),d_(e!==t,e,t,`not.snapshot`,!1,`Expected value not to match snapshot`,n)},m_.fixture=function(e,t,n){e=l_(e),t=l_(t),d_(e!==t,e,t,`not.fixture`,!1,`Expected value not to match fixture`,n)},m_.match=function(e,t,n){typeof t==`string`?d_(!e.includes(t),e,t,`not.match`,!1,`Expected value not to include "${t}" substring`,n):d_(!t.test(e),e,t,`not.match`,!1,`Expected value not to match \`${String(t)}\` pattern`,n)},m_.throws=function(e,t,n){!n&&typeof t==`string`&&(n=t,t=null);try{e()}catch(e){typeof t==`function`?d_(!t(e),!0,!1,`not.throws`,!1,`Expected function not to throw matching exception`,n):t instanceof RegExp?d_(!t.test(e.message),!0,!1,`not.throws`,!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||d_(!1,!0,!1,`not.throws`,!1,`Expected function not to throw`,n)}};var h_=`highlightSequenceTemporary`,g_=`highlightSequence`,__=`highlight`,v_=`highlightText`;function y_(){let e={name:`highlight`,tokenize:n,resolveAll:t};return{text:{[W.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[W.equalsTo]}};function t(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===h_&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===h_&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=g_,e[r][1].type=g_;let i={type:__,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:v_,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&ch(o,o.length,0,Ch(s,e.slice(r+1,n),t)),ch(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ch(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===h_&&(e[n][1].type=G.data);return e}function n(e,t,n){let r=this.previous,i=this.events,a=0;return o;function o(t){return f_(t===W.equalsTo,"expected `=`"),r===W.equalsTo&&i[i.length-1][1].type!==G.characterEscape?n(t):(e.enter(h_),s(t))}function s(i){let o=Sh(r);if(i===W.equalsTo)return a>1?n(i):(e.consume(i),a++,s);if(a<2)return n(i);let c=e.exit(h_),l=Sh(i);return c._open=!l||l===oh.attentionSideAfter&&!!o,c._close=!o||o===oh.attentionSideAfter&&!!l,t(i)}}}var b_=/[$_\p{ID_Start}]/u,x_=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,S_=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,C_={};function w_(e){return e?b_.test(String.fromCodePoint(e)):!1}function T_(e,t){let n=(t||C_).jsx?S_:x_;return e?n.test(String.fromCodePoint(e)):!1}function E_(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return vh(r)?(e.enter(n),s(r)):t(r)}function s(r){return vh(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function D_(e){return e}var O_={}.hasOwnProperty,k_=Symbol(`continue`),A_=Symbol(`exit`),j_=Symbol(`skip`);function M_(e,t){let n,r;typeof t==`function`?n=t:t&&typeof t==`object`&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(e,t,a,o){return P_(e)&&(s.displayName=`node (`+D_(e.type)+`)`),s;function s(){let s=n?N_(n(e,t,a,o)):[];if(s[0]===A_)return s;if(s[0]!==j_){let t;for(t in e)if(O_.call(e,t)&&e[t]&&typeof e[t]==`object`&&t!==`data`&&t!==`position`){let n=o.concat(e),r=e[t];if(Array.isArray(r)){let e=r,a=0;for(;a>-1&&a<e.length;){let r=e[a];if(P_(r)){let e=i(r,t,a,n)();if(e[0]===A_)return e;a=typeof e[1]==`number`?e[1]:a+1}else a++}}else if(P_(r)){let e=i(r,t,void 0,n)();if(e[0]===A_)return e}}}return r?N_(r(e,t,a,o)):s}}}function N_(e){return Array.isArray(e)?e:typeof e==`number`?[k_,e]:[e]}function P_(e){return!!(e&&typeof e==`object`&&`type`in e&&typeof e.type==`string`&&e.type.length>0)}function F_(e,t){let n=t.prefix||``,r=t.suffix||``,i=Object.assign({},t.acornOptions),a=[],o=[],s=i.onComment,c=i.onToken,l=!1,u,d,f=Object.assign({},i,{onComment:a,preserveParens:!0});c&&(f.onToken=o);let p=L_(e,t.tokenTypes),m=p.value,h=n+m+r,g=t.expression&&I_(m);if(g&&!t.allowEmpty)throw new fg(`Unexpected empty expression`,{place:v(0),ruleId:`unexpected-empty-expression`,source:`micromark-extension-mdx-expression`});try{u=t.expression&&!g?t.acorn.parseExpressionAt(h,0,f):t.acorn.parse(h,f)}catch(e){let t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,``),U(r.offset!==void 0,"expected `offset`"),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},d=t,l=t.raisedAt>=n.length+m.length||t.message===`Unterminated comment`}if(u&&t.expression&&!g)if(I_(h.slice(u.end,h.length-r.length)))u={type:`Program`,start:0,end:n.length+m.length,body:[{type:`ExpressionStatement`,expression:u,start:0,end:n.length+m.length}],sourceType:`module`,comments:[]};else{let e=v(u.end),t=Error(`Unexpected content after expression`);U(e.offset!==void 0,"expected `offset`"),t.pos=e.offset,t.loc={line:e.line,column:e.column-1},d=t,u=void 0}if(u){if(u.comments=a,M_(u,function(e,t,n,r){let i=r[r.length-1],a=t;e.type===`ParenthesizedExpression`&&i&&a&&(typeof n==`number`&&(i=i[a],a=n),i[a]=e.expression),_(e)}),Array.isArray(s))s.push(...a);else if(typeof s==`function`)for(let e of a)U(e.loc,"expected `loc` on comment"),s(e.type===`Block`,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of o)e.end<=n.length||e.start-n.length>=m.length||(_(e),Array.isArray(c)?c.push(e):(U(typeof c==`function`,`expected function`),c(e)))}return{estree:u,error:d,swallow:l};function _(e){U(`start`in e,"expected `start` in node or token from acorn"),U(`end`in e,"expected `end` in node or token from acorn");let t=v(e.start),n=v(e.end);U(t.offset!==void 0,"expected `offset`"),U(n.offset!==void 0,"expected `offset`"),e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>m.length&&(r=m.length);let i=R_(p.stops,r);return i||=(U(t.start,"empty expressions are need `options.start` being passed"),{line:t.start.line,column:t.start.column,offset:t.start.offset}),i}}function I_(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,``).replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,``))}function L_(e,t){let n={value:``,stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if(i[0]===`enter`){let e=i[1].type;if(e===G.lineEnding||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&e[0]===W.virtualSpace;)e.shift();let t=z_(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}function R_(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;let[r,i]=e[n-1],a=t-r;return{line:i.line,column:i.column+a,offset:i.offset+a}}function z_(e){let t=-1,n=[],r;for(;++t<e.length;){let i=e[t],a;if(typeof i==`string`)a=i;else switch(i){case W.carriageReturn:a=sh.cr;break;case W.lineFeed:a=sh.lf;break;case W.carriageReturnLineFeed:a=sh.cr+sh.lf;break;case W.horizontalTab:a=sh.ht;break;case W.virtualSpace:if(r)continue;a=sh.space;break;default:U(typeof i==`number`,`expected number`),a=String.fromCharCode(i)}r=i===W.horizontalTab,n.push(a)}return n.join(``)}function B_(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=V_(n.start,r[0]||t.start),a=V_(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function V_(e,t){if(e&&typeof e==`object`){let n=`line`in e?H_(e.line):void 0,r=`column`in e?H_(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:H_(t)}}}function H_(e){return typeof e==`number`&&e>-1?e:void 0}var U_=2,W_=`https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression`,G_=`#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-`,K_=`#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed`,q_=`#unexpected-type-in-code-expected-an-object-spread-spread`,J_=`#unexpected-extra-content-in-spread-only-a-single-spread-is-supported`,Y_=`#could-not-parse-expression-with-acorn`;function X_(e,t,n,r,i,a,o,s,c,l,u){let d=this,f=this.events.length+3,p=0,m,h;return g;function g(t){return U(t===W.leftCurlyBrace,"expected `{`"),e.enter(n),e.enter(r),e.consume(t),e.exit(r),m=d.now(),_}function _(u){if(u===W.eof){if(h)throw h;let e=new fg("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:`unexpected-eof`,source:`micromark-extension-mdx-expression`});throw e.url=W_+G_,e}if(K(u))return e.enter(G.lineEnding),e.consume(u),e.exit(G.lineEnding),y;if(u===W.rightCurlyBrace&&p===0){let p=a?Z_.call(d,a,o,i,f,m,l||!1,c||!1):{type:`ok`,estree:void 0};if(p.type===`ok`){e.enter(r),e.consume(u),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return h=p.message,e.enter(i),e.consume(u),v}return e.enter(i),v(u)}function v(t){return t===W.rightCurlyBrace&&p===0||t===W.eof||K(t)?(e.exit(i),_(t)):(t===W.leftCurlyBrace&&!a?p+=1:t===W.rightCurlyBrace&&--p,e.consume(t),v)}function y(t){let n=d.now();if(n.line!==m.line&&!u&&d.parser.lazy[n.line]){let e=new fg("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:`unexpected-lazy`,source:`micromark-extension-mdx-expression`});throw e.url=W_+K_,e}return vh(t)?E_(e,_,G.linePrefix,U_+1)(t):_(t)}}function Z_(e,t,n,r,i,a,o){let s=F_(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?`({`:``,suffix:o?`})`:``}),c=s.estree;if(o&&c){U(c.type===`Program`,`expected program`);let e=c.body[0];if(U(e,`expected body`),e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`){let t=B_(e);U(t,`expected position`);let n=new fg("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=W_+q_,n}if(e.expression.properties[1]){let t=B_(e.expression.properties[1]);U(t,`expected position`);let n=new fg(`Unexpected extra content in spread: only a single spread is supported`,{place:t.start,ruleId:`spread-extra`,source:`micromark-extension-mdx-expression`});throw n.url=W_+J_,n}if(e.expression.properties[0]&&e.expression.properties[0].type!==`SpreadElement`){let t=B_(e.expression.properties[0]);U(t,`expected position`);let n=new fg("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=W_+q_,n}}if(s.error){let e=new fg(`Could not parse expression with acorn`,{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:`acorn`,source:`micromark-extension-mdx-expression`});return e.url=W_+Y_,{type:`nok`,message:e}}return{type:`ok`,estree:c}}var Q_=`https://github.com/micromark/micromark-extension-mdx-jsx`;function $_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j){let ee=this,M,te;return ne;function ne(t){return U(t===W.lessThan,"expected `<`"),e.enter(s),e.enter(c),e.consume(t),e.exit(c),re}function re(e){return _h(e)?n(e):(M=ie,De(e))}function ie(t){if(t===W.slash)return e.enter(l),e.consume(t),e.exit(l),M=ae,De;if(t===W.greaterThan)return Ee(t);if(t!==W.eof&&t>=0&&w_(t))return e.enter(d),e.enter(f),e.consume(t),oe;Ae(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===W.exclamationMark?" (note: to create a comment in MDX, use `{/* text */}`)":``))}function ae(t){if(t===W.greaterThan)return Ee(t);if(t!==W.eof&&t>=0&&w_(t))return e.enter(d),e.enter(f),e.consume(t),oe;Ae(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===W.asterisk||t===W.slash?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function oe(t){if(t!==W.eof&&t>=0&&T_(t,{jsx:!0}))return e.consume(t),oe;if(t===W.dot||t===W.slash||t===W.colon||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t))return e.exit(f),M=se,De(t);Ae(t,`in name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===W.atSign?" (note: to create a link in MDX, use `[text](url)`)":``))}function se(t){if(t===W.dot)return e.enter(p),e.consume(t),e.exit(p),M=ce,De;if(t===W.colon)return e.enter(h),e.consume(t),e.exit(h),M=de,De;if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||t!==W.eof&&t>=0&&w_(t))return e.exit(d),me(t);Ae(t,`after name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ce(t){if(t!==W.eof&&t>=0&&w_(t))return e.enter(m),e.consume(t),le;Ae(t,`before member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function le(t){if(t!==W.eof&&t>=0&&T_(t,{jsx:!0}))return e.consume(t),le;if(t===W.dot||t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t))return e.exit(m),M=ue,De(t);Ae(t,`in member name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===W.atSign?" (note: to create a link in MDX, use `[text](url)`)":``))}function ue(t){if(t===W.dot)return e.enter(p),e.consume(t),e.exit(p),M=ce,De;if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||t!==W.eof&&t>=0&&w_(t))return e.exit(d),me(t);Ae(t,`after member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function de(t){if(t!==W.eof&&t>=0&&w_(t))return e.enter(g),e.consume(t),fe;Ae(t,`before local name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===W.plusSign||t!==null&&t>W.dot&&t<W.colon?" (note: to create a link in MDX, use `[text](url)`)":``))}function fe(t){if(t!==W.eof&&t>=0&&T_(t,{jsx:!0}))return e.consume(t),fe;if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t))return e.exit(g),M=pe,De(t);Ae(t,`in local name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function pe(t){if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||t!==W.eof&&t>=0&&w_(t))return e.exit(d),me(t);Ae(t,`after local name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function me(t){if(t===W.slash)return e.enter(u),e.consume(t),e.exit(u),M=Te,De;if(t===W.greaterThan)return Ee(t);if(t===W.leftCurlyBrace)return X_.call(ee,e,he,_,v,y,r,i,a,!0,!1,o)(t);if(t!==W.eof&&t>=0&&w_(t))return e.enter(b),e.enter(x),e.enter(S),e.consume(t),ge;Ae(t,`before attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function he(e){return M=me,De(e)}function ge(t){if(t!==W.eof&&t>=0&&T_(t,{jsx:!0}))return e.consume(t),ge;if(t===W.slash||t===W.colon||t===W.equalsTo||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t))return e.exit(S),M=_e,De(t);Ae(t,`in attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function _e(t){if(t===W.colon)return e.enter(C),e.consume(t),e.exit(C),M=ve,De;if(t===W.equalsTo)return e.exit(x),e.enter(T),e.consume(t),e.exit(T),M=xe,De;if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t)||t!==W.eof&&t>=0&&w_(t))return e.exit(x),e.exit(b),M=me,De(t);Ae(t,`after attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ve(t){if(t!==W.eof&&t>=0&&w_(t))return e.enter(w),e.consume(t),ye;Ae(t,`before local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ye(t){if(t!==W.eof&&t>=0&&T_(t,{jsx:!0}))return e.consume(t),ye;if(t===W.slash||t===W.equalsTo||t===W.greaterThan||t===W.leftCurlyBrace||_h(t)||bh(t))return e.exit(w),e.exit(x),M=be,De(t);Ae(t,`in local attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function be(t){if(t===W.equalsTo)return e.enter(T),e.consume(t),e.exit(T),M=xe,De;if(t===W.slash||t===W.greaterThan||t===W.leftCurlyBrace||t!==W.eof&&t>=0&&w_(t))return e.exit(b),me(t);Ae(t,`after local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function xe(t){if(t===W.quotationMark||t===W.apostrophe)return e.enter(E),e.enter(D),e.consume(t),e.exit(D),te=t,Ce;if(t===W.leftCurlyBrace)return X_.call(ee,e,Se,k,A,j,r,i,a,!1,!1,o)(t);Ae(t,`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===W.lessThan?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}function Se(t){return e.exit(b),M=me,De(t)}function Ce(t){return U(te!==void 0,"expected `marker` to be defined"),t===W.eof&&Ae(t,`in attribute value`,"a corresponding closing quote `"+String.fromCodePoint(te)+"`"),t===te?(e.enter(D),e.consume(t),e.exit(D),e.exit(E),e.exit(b),te=void 0,M=me,De):K(t)?(M=Ce,De(t)):(e.enter(O),we(t))}function we(t){return t===W.eof||t===te||K(t)?(e.exit(O),Ce(t)):(e.consume(t),we)}function Te(e){if(e===W.greaterThan)return Ee(e);Ae(e,`after self-closing slash`,"`>` to end the tag"+(e===W.asterisk||e===W.slash?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function Ee(n){return U(n===W.greaterThan,"expected `>`"),e.enter(c),e.consume(n),e.exit(c),e.exit(s),t}function De(t){return K(t)?(e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),ke):vh(t)||bh(t)?(e.enter(`esWhitespace`),Oe(t)):M(t)}function Oe(t){return K(t)?(e.exit(`esWhitespace`),De(t)):vh(t)||bh(t)?(e.consume(t),Oe):(e.exit(`esWhitespace`),M(t))}function ke(e){if(!o&&ee.parser.lazy[ee.now().line]){let e=new fg("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",ee.now(),`micromark-extension-mdx-jsx:unexpected-lazy`);throw e.url=Q_+`#unexpected-lazy-line-in-container-expected-line-to-be`,e}return De(e)}function Ae(e,t,n){let r=new fg(`Unexpected `+(e===W.eof?`end of file`:"character `"+(e===W.graveAccent?"` ` `":String.fromCodePoint(e))+"` ("+ev(e)+`)`)+` `+t+`, expected `+n,ee.now(),`micromark-extension-mdx-jsx:unexpected-`+(e===W.eof?`eof`:`character`));throw r.url=Q_+(e===W.eof?`#unexpected-end-of-file-at-expected-expect`:`#unexpected-character-at-expected-expect`),r}}function ev(e){return`U+`+e.toString(oh.numericBaseHexadecimal).toUpperCase().padStart(4,`0`)}function tv(e,t){return{name:`mdxJsxTextTag`,tokenize:n};function n(n,r,i){return $_.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,`mdxJsxTextTag`,`mdxJsxTextTagMarker`,`mdxJsxTextTagClosingMarker`,`mdxJsxTextTagSelfClosingMarker`,`mdxJsxTextTagName`,`mdxJsxTextTagNamePrimary`,`mdxJsxTextTagNameMemberMarker`,`mdxJsxTextTagNameMember`,`mdxJsxTextTagNamePrefixMarker`,`mdxJsxTextTagNameLocal`,`mdxJsxTextTagExpressionAttribute`,`mdxJsxTextTagExpressionAttributeMarker`,`mdxJsxTextTagExpressionAttributeValue`,`mdxJsxTextTagAttribute`,`mdxJsxTextTagAttributeName`,`mdxJsxTextTagAttributeNamePrimary`,`mdxJsxTextTagAttributeNamePrefixMarker`,`mdxJsxTextTagAttributeNameLocal`,`mdxJsxTextTagAttributeInitializerMarker`,`mdxJsxTextTagAttributeValueLiteral`,`mdxJsxTextTagAttributeValueLiteralMarker`,`mdxJsxTextTagAttributeValueLiteralValue`,`mdxJsxTextTagAttributeValueExpression`,`mdxJsxTextTagAttributeValueExpressionMarker`,`mdxJsxTextTagAttributeValueExpressionValue`)}}function nv(e,t){return{concrete:!0,name:`mdxJsxFlowTag`,tokenize:n};function n(n,r,i){let a=this;return o;function o(e){return U(e===W.lessThan,"expected `<`"),s(e)}function s(r){return $_.call(a,n,c,i,e,t.acornOptions,t.addResult,!1,`mdxJsxFlowTag`,`mdxJsxFlowTagMarker`,`mdxJsxFlowTagClosingMarker`,`mdxJsxFlowTagSelfClosingMarker`,`mdxJsxFlowTagName`,`mdxJsxFlowTagNamePrimary`,`mdxJsxFlowTagNameMemberMarker`,`mdxJsxFlowTagNameMember`,`mdxJsxFlowTagNamePrefixMarker`,`mdxJsxFlowTagNameLocal`,`mdxJsxFlowTagExpressionAttribute`,`mdxJsxFlowTagExpressionAttributeMarker`,`mdxJsxFlowTagExpressionAttributeValue`,`mdxJsxFlowTagAttribute`,`mdxJsxFlowTagAttributeName`,`mdxJsxFlowTagAttributeNamePrimary`,`mdxJsxFlowTagAttributeNamePrefixMarker`,`mdxJsxFlowTagAttributeNameLocal`,`mdxJsxFlowTagAttributeInitializerMarker`,`mdxJsxFlowTagAttributeValueLiteral`,`mdxJsxFlowTagAttributeValueLiteralMarker`,`mdxJsxFlowTagAttributeValueLiteralValue`,`mdxJsxFlowTagAttributeValueExpression`,`mdxJsxFlowTagAttributeValueExpressionMarker`,`mdxJsxFlowTagAttributeValueExpressionValue`)(r)}function c(e){return vh(e)?E_(n,l,G.whitespace)(e):l(e)}function l(e){let t=a.parser.constructs.flow[W.leftCurlyBrace],s=Array.isArray(t)?t:t?[t]:[],c;for(let e of s)if(e.name===`mdxFlowExpression`){c=e;break}return e===W.lessThan?o(e):e===W.leftCurlyBrace&&c?n.attempt(c,l,i)(e):e===W.eof||K(e)?r(e):i(e)}}}function rv(e){let t=e||{},n=t.acorn,r;if(n){if(!n.parse||!n.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{[W.lessThan]:nv(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{[W.lessThan]:tv(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function iv(){return{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}}var av={}.hasOwnProperty;function ov(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&av.call(t,e)){let n=String(t[e]);i=av.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var sv={}.hasOwnProperty;function cv(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)cv(e,t.extensions[n]);for(r in t)if(sv.call(t,r))switch(r){case`extensions`:break;case`unsafe`:lv(e[r],t[r]);break;case`join`:lv(e[r],t[r]);break;case`handlers`:uv(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function lv(e,t){t&&e.push(...t)}function uv(e,t){t&&Object.assign(e,t)}function dv(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),fv);return i(),o}function fv(e,t,n){return`>`+(n?``:` `)+e}function pv(e,t){return mv(e,t.inConstruct,!0)&&!mv(e,t.notInConstruct,!1)}function mv(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hv(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
275
+ `&&pv(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
276
+ `}function gv(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function _v(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vv(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function yv(e,t,n,r){let i=vv(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(_v(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,bv);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(gv(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
277
+ `,encode:["`"],...s.current()})),t()}return u+=s.move(`
278
+ `),a&&(u+=s.move(a+`
279
+ `)),u+=s.move(c),l(),u}function bv(e,t,n){return(n?``:` `)+e}function xv(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Sv(e,t,n,r){let i=xv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
280
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Cv(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function wv(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Tv(e,t,n){let r=Sh(e),i=Sh(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ev.peek=Dv;function Ev(e,t,n,r){let i=Cv(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Tv(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=wv(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Tv(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+wv(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Dv(e,t,n){return n.options.emphasis||`*`}var Ov=(function(e){if(e==null)return Nv;if(typeof e==`function`)return Mv(e);if(typeof e==`object`)return Array.isArray(e)?kv(e):Av(e);if(typeof e==`string`)return jv(e);throw Error(`Expected function, string, or object as test`)});function kv(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Ov(e[n]);return Mv(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Av(e){let t=e;return Mv(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function jv(e){return Mv(t);function t(t){return t&&t.type===e}}function Mv(e){return t;function t(t,n,r){return!!(Pv(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Nv(){return!0}function Pv(e){return typeof e==`object`&&!!e&&`type`in e}function Fv(e){return e}var Iv=[];function Lv(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Ov(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+Fv(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Iv,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Rv(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Rv(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Iv:[e]}function zv(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Lv(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Bv={};function Vv(e,t){let n=t||Bv;return Hv(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function Hv(e,t,n){if(Wv(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Uv(e.children,t,n)}return Array.isArray(e)?Uv(e,t,n):``}function Uv(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Hv(e[i],t,n);return r.join(``)}function Wv(e){return!!(e&&typeof e==`object`)}function Gv(e,t){let n=!1;return zv(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Vv(e)&&(t.options.setext||n))}function Kv(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Gv(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
281
+ `,after:`
282
+ `});return r(),t(),o+`
283
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
284
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
285
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=wv(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}qv.peek=Jv;function qv(e){return e.value||``}function Jv(){return`<`}Yv.peek=Xv;function Yv(e,t,n,r){let i=xv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Xv(){return`!`}Zv.peek=Qv;function Zv(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Qv(){return`!`}$v.peek=ey;function $v(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function ey(){return"`"}function ty(e,t){let n=Vv(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ny.peek=ry;function ny(e,t,n,r){let i=xv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(ty(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function ry(e,t,n){return ty(e,n)?`<`:`[`}iy.peek=ay;function iy(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function ay(){return`[`}function oy(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sy(e){let t=oy(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function cy(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ly(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function uy(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?cy(n):oy(n),s=e.ordered?o===`.`?`)`:`.`:sy(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ly(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function dy(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fy(e,t,n,r){let i=dy(n),a=n.bulletCurrent||oy(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function py(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var my=Ov([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function hy(e,t,n,r){return(e.children.some(function(e){return my(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function gy(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_y.peek=vy;function _y(e,t,n,r){let i=gy(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Tv(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=wv(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Tv(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+wv(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function vy(e,t,n){return n.options.strong||`*`}function yy(e,t,n,r){return n.safe(e.value,r)}function by(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function xy(e,t,n){let r=(ly(n)+(n.options.ruleSpaces?` `:``)).repeat(by(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Sy={blockquote:dv,break:hv,code:yv,definition:Sv,emphasis:Ev,hardBreak:hv,heading:Kv,html:qv,image:Yv,imageReference:Zv,inlineCode:$v,link:ny,linkReference:iy,list:uy,listItem:fy,paragraph:py,root:hy,strong:_y,text:yy,thematicBreak:xy},Cy=[wy];function wy(e,t,n,r){if(t.type===`code`&&_v(t,r)&&(e.type===`list`||e.type===t.type&&_v(e,r)))return!1;if(`spread`in n&&typeof n.spread==`boolean`)return e.type===`paragraph`&&(e.type===t.type||t.type===`definition`||t.type===`heading`&&Gv(t,r))?void 0:+!!n.spread}var Ty=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],Ey=[{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`\r`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:`
286
+ `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`!`,after:`\\[`,inConstruct:`phrasing`,notInConstruct:Ty},{character:`"`,inConstruct:`titleQuote`},{atBreak:!0,character:`#`},{character:`#`,inConstruct:`headingAtx`,after:`(?:[\r
287
+ ]|$)`},{character:`&`,after:`[#A-Za-z]`,inConstruct:`phrasing`},{character:`'`,inConstruct:`titleApostrophe`},{character:`(`,inConstruct:`destinationRaw`},{before:`\\]`,character:`(`,inConstruct:`phrasing`,notInConstruct:Ty},{atBreak:!0,before:`\\d+`,character:`)`},{character:`)`,inConstruct:`destinationRaw`},{atBreak:!0,character:`*`,after:`(?:[ \r
288
+ *])`},{character:`*`,inConstruct:`phrasing`,notInConstruct:Ty},{atBreak:!0,character:`+`,after:`(?:[ \r
289
+ ])`},{atBreak:!0,character:`-`,after:`(?:[ \r
290
+ -])`},{atBreak:!0,before:`\\d+`,character:`.`,after:`(?:[ \r
291
+ ]|$)`},{atBreak:!0,character:`<`,after:`[!/?A-Za-z]`},{character:`<`,after:`[!/?A-Za-z]`,inConstruct:`phrasing`,notInConstruct:Ty},{character:`<`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`=`},{atBreak:!0,character:`>`},{character:`>`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`[`},{character:`[`,inConstruct:`phrasing`,notInConstruct:Ty},{character:`[`,inConstruct:[`label`,`reference`]},{character:`\\`,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:`]`,inConstruct:[`label`,`reference`]},{atBreak:!0,character:`_`},{character:`_`,inConstruct:`phrasing`,notInConstruct:Ty},{atBreak:!0,character:"`"},{character:"`",inConstruct:[`codeFencedLangGraveAccent`,`codeFencedMetaGraveAccent`]},{character:"`",inConstruct:`phrasing`,notInConstruct:Ty},{atBreak:!0,character:`~`}];function Dy(e,t){let n=Number.parseInt(e,t);return n<W.ht||n===W.vt||n>W.cr&&n<W.space||n>W.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?sh.replacementCharacter:String.fromCodePoint(n)}var Oy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ky(e){return e.replace(Oy,Ay)}function Ay(e,t,n){if(t)return t;if(n.charCodeAt(0)===W.numberSign){let e=n.charCodeAt(1),t=e===W.lowercaseX||e===W.uppercaseX;return Dy(n.slice(t?2:1),t?oh.numericBaseHexadecimal:oh.numericBaseDecimal)}return qh(n)||e}function jy(e){return e.label||!e.identifier?e.label||``:ky(e.identifier)}function My(e){if(!e._compiled){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before?`(?:`+e.before+`)`:``);e._compiled=RegExp((t?`(`+t+`)`:``)+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?`\\`:``)+e.character+(e.after?`(?:`+e.after+`)`:``),`g`)}return e._compiled}function Ny(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before,c;r.push(-1);let l=t.createTracker(n);for(;++o<i.length;){let u=i[o],d;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),d=n?n(i[o+1],e,t,{before:``,after:``,...l.current()}).charAt(0):``}else d=n.after;a.length>0&&(s===`\r`||s===`
292
+ `)&&u.type===`html`&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/,` `),s=` `,l=t.createTracker(n),l.move(a.join(``)));let f=t.handle(u,e,t,{...l.current(),after:d,before:s});c&&c===f.slice(0,1)&&(f=wv(c.charCodeAt(0))+f.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,c=void 0,p&&(a.length>0&&p.before&&s===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+wv(s.charCodeAt(0))),p.after&&(c=d)),l.move(f),a.push(f),s=f.slice(-1)}return r.pop(),a.join(``)}function Py(e,t,n){let r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s,o.push(a.move(t.handle(n,e,t,{before:`
293
+ `,after:`
294
+ `,...a.current()}))),n.type!==`list`&&(t.bulletLastUsed=void 0),s<i.length-1&&o.push(a.move(Fy(n,i[s+1],e,t)))}return r.pop(),o.join(``)}function Fy(e,t,n,r){let i=r.join.length;for(;i--;){let a=r.join[i](e,t,n,r);if(a===!0||a===1)break;if(typeof a==`number`)return`
295
+ `.repeat(1+a);if(a===!1)return`
296
+
297
+ <!---->
298
+
299
+ `}return`
300
+
301
+ `}var Iy=/\r?\n|\r/g;function Ly(e,t){let n=[],r=0,i=0,a;for(;a=Iy.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join(``);function o(e){n.push(t(e,i,!e))}}function Ry(e,t,n){let r=(n.before||``)+(t||``)+(n.after||``),i=[],a=[],o={},s=-1;for(;++s<e.unsafe.length;){let t=e.unsafe[s];if(!pv(e.stack,t))continue;let n=e.compilePattern(t),a;for(;a=n.exec(r);){let e=`before`in t||!!t.atBreak,n=`after`in t,r=a.index+(e?a[1].length:0);i.includes(r)?(o[r].before&&!e&&(o[r].before=!1),o[r].after&&!n&&(o[r].after=!1)):(i.push(r),o[r]={before:e,after:n})}}i.sort(q);let c=n.before?n.before.length:0,l=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let e=i[s];e<c||e>=l||e+1<l&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(zy(r.slice(c,e),`\\`)),c=e,/[!-/:-@[-`{-~]/.test(r.charAt(e))&&(!n.encode||!n.encode.includes(r.charAt(e)))?a.push(`\\`):(a.push(wv(r.charCodeAt(e))),c++))}return a.push(zy(r.slice(c,l),n.after)),a.join(``)}function q(e,t){return e-t}function zy(e,t){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],a=e+t,o=-1,s=0,c;for(;c=n.exec(a);)r.push(c.index);for(;++o<r.length;)s!==r[o]&&i.push(e.slice(s,r[o])),i.push(`\\`),s=r[o];return i.push(e.slice(s)),i.join(``)}function By(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,a=n.column||1;return{move:c,current:o,shift:s};function o(){return{now:{line:i,column:a},lineShift:r}}function s(e){r+=e}function c(e){let t=e||``,n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,a=n.length===1?a+o.length:1+o.length+r,t}}function Vy(e,t){let n=t||{},r={associationId:jy,containerPhrasing:Gy,containerFlow:Ky,createTracker:By,compilePattern:My,enter:a,handlers:{...Sy},handle:void 0,indentLines:Ly,indexStack:[],join:[...Cy],options:{},safe:qy,stack:[],unsafe:[...Ey]};cv(r,n),r.options.tightDefinitions&&r.join.push(Wy),r.handle=ov(`type`,{invalid:Hy,unknown:Uy,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
302
+ `,after:`
303
+ `,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
304
+ `),i;function a(e){return r.stack.push(e),t;function t(){r.stack.pop()}}}function Hy(e){throw Error("Cannot handle value `"+e+"`, expected node")}function Uy(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function Wy(e,t){if(e.type===`definition`&&e.type===t.type)return 0}function Gy(e,t){return Ny(e,this,t)}function Ky(e,t){return Py(e,this,t)}function qy(e,t){return Ry(this,e,t)}var Jy=[`mdxJsxTextElement`,`mdxJsxFlowElement`];function Yy(e){return Jy.includes(e.type)&&Xy.includes(e.name)}var Xy=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.input.ins.kbd.label.legend.li.link.main.map.mark.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function Zy(e,t){let n=Qy(e),r=Qy(t);return $y({...n,...r})}function Qy(e){let t={};return e.split(`;`).filter(e=>e.trim()!==``).forEach(e=>{let[n,r]=e.split(`:`).map(e=>e.trim());t[n]=r}),t}function $y(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}function eb(e){return e.children instanceof Array}function tb({root:e,visitors:t,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let a=null,o=new Set,s=new Map;t=t.sort((e,t)=>(t.priority??0)-(e.priority??0)),d(e,null);function c(e,t){o.add(e),t&&s.set(e,{...t})}function l(e,n){if(a===null)return a=n,a;if(!eb(e))throw Error(`Attempting to append children to a non-parent`);let r=e.children,i=r.at(-1);if(i){let e=t.find(e=>e.shouldJoin?.call(e,i,n));if(e){let t=e.join(i,n);return r.splice(r.length-1,1,t),t}}return r.push(n),n}function u(e,t){e.getChildren().forEach(e=>{d(e,t)})}function d(e,n,r=null){var i;let a=t.find((t,n)=>r?.has(n)?!1:t.testLexicalNode?.call(t,e));if(!a)throw Error(`no lexical visitor found for ${e.getType()}`,{cause:e});(i=a.visitLexicalNode)==null||i.call(a,{lexicalNode:e,mdastParent:n,actions:{addAndStepInto(t,r={},i=!0){let a={type:t,...r,...i?{children:[]}:{}};l(n,a),V(e)&&i&&u(e,a)},appendToParent:l,visitChildren:u,visit:d,registerReferredComponent:c,nextVisitor(){d(e,n,(r??new Set).add(t.indexOf(a)))}}})}if(a===null)throw Error(`traversal ended with no root element`);let f=new Map,p=new Map;for(let e of o){let t=n.find(t=>t.name===e)??s.get(e)??n.find(e=>e.name===`*`);if(!t)throw Error(`Component ${e} is used but not imported`);if(t.source)if(t.defaultExport)p.set(e,t.source);else{let{source:n}=t,r=f.get(n);r?r.push(e):f.set(n,[e])}}if(!i){for(let[e,t]of f.entries()){let n=t.filter(e=>s.has(e));n.length>0?f.set(e,n):f.delete(e)}for(let e of p.keys())s.has(e)||p.delete(e)}let m=Array.from(f).map(([e,t])=>({type:`mdxjsEsm`,value:`import { ${t.join(`, `)} } from '${e}'`}));m.push(...Array.from(p).map(([e,t])=>({type:`mdxjsEsm`,value:`import ${e} from '${t}'`})));let h=a,g=h.children.find(e=>e.type===`yaml`);return g?h.children.splice(h.children.indexOf(g)+1,0,...m):h.children.unshift(...m),ob(h,[]),nb(h),r||rb(h),h}function nb(e){if(`children`in e&&e.children.length>0){if(Yy(e)&&e.children.length===1){let t=e.children[0];t.type===`mdxJsxTextElement`&&t.name===`span`&&(t.attributes.forEach(t=>{if(t.type===`mdxJsxAttribute`){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t.name);if(n)if(t.name===`className`){let e=new Set([...n.value.split(` `),...t.value.split(` `)]);n.value=Array.from(e).join(` `)}else t.name===`style`&&(n.value=Zy(n.value,t.value));else e.attributes.push(t)}}),e.children=t.children)}e.children.forEach(e=>{nb(e)})}}function rb(e){if(Object.hasOwn(e,`children`)){let t=e,n=[];t.children.forEach(e=>{e.type===`mdxJsxTextElement`&&e.name===`u`?n.push({type:`html`,value:`<u>`},...e.children,{type:`html`,value:`</u>`}):(n.push(e),rb(e))}),t.children=n}}var ib=/\s+$/,ab=/^\s+/;function ob(e,t){if(e.type===`strong`||e.type===`emphasis`){let n=e.children.at(-1);if(n?.type===`text`){let r=ib.exec(n.value);if(r){n.value=n.value.replace(ib,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e)+1,0,{type:`text`,value:r[0]}),ob(i,t.slice(0,-1)))}}let r=e.children.at(0);if(r?.type===`text`){let n=ab.exec(r.value);if(n){r.value=r.value.replace(ab,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e),0,{type:`text`,value:n[0]}),ob(i,t.slice(0,-1)))}}}if(`children`in e&&e.children.length>0){let n=e;n.children.forEach(e=>{ob(e,[...t,n])})}}function sb({root:e,toMarkdownOptions:t,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}){return Vy(tb({root:e,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}),{extensions:n,...t})+`
305
+ `}var cb={}.hasOwnProperty;function lb(e){let t={},n=-1;for(;++n<e.length;)ub(t,e[n]);return t}function ub(e,t){let n;for(n in t){let r=(cb.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){cb.call(r,a)||(r[a]=[]);let e=i[a];db(r[a],Array.isArray(e)?e:e?[e]:[])}}}function db(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ch(e,0,0,r)}function fb(e){return e.replace(/[\t\n\r ]+/g,sh.space).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var pb={tokenize:mb};function mb(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(U(n===W.eof||K(n),`expected eol or eof`),n===W.eof){e.consume(n);return}return e.enter(G.lineEnding),e.consume(n),e.exit(G.lineEnding),E_(e,t,G.linePrefix)}function i(t){return U(t!==W.eof&&!K(t),`expected anything other than a line ending or EOF`),e.enter(G.paragraph),a(t)}function a(t){let r=e.enter(G.chunkText,{contentType:oh.contentTypeText,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===W.eof){e.exit(G.chunkText),e.exit(G.paragraph),e.consume(t);return}return K(t)?(e.consume(t),e.exit(G.chunkText),a):(e.consume(t),o)}}var hb={tokenize:_b},gb={tokenize:vb};function _b(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],U(a[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(U(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===G.chunkFlow){o=t.events[a][1].end;break}U(o,`could not find previous flow chunk`),_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return ch(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gb,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(gb,p,m)(n)}function p(e){return U(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),U(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===W.eof){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(G.chunkFlow,{_tokenizer:i,contentType:oh.contentTypeFlow,previous:a}),h(n)}function h(n){if(n===W.eof){g(e.exit(G.chunkFlow),!0),_(0),e.consume(n);return}return K(n)?(e.consume(n),g(e.exit(G.chunkFlow)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){U(i,"expected `childFlow` to be defined when continuing");let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===G.chunkFlow){if(s){c=t.events[a][1].end;break}s=!0}for(U(c,`could not find previous flow chunk`),_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;ch(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],U(r[0].exit,"expected `exit` to be defined on container construct"),r[0].exit.call(t,e)}n.length=r}function v(){U(t.containerState,"expected `containerState` to be defined when closing flow"),U(i,"expected `childFlow` to be defined when closing it"),i.write([W.eof]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vb(e,t,n){return U(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),E_(e,e.attempt(this.parser.constructs.document,t,n),G.linePrefix,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)}var yb={name:`attention`,resolveAll:bb,tokenize:xb};function bb(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Sb(d,-c),Sb(f,c),o={type:c>1?G.strongSequence:G.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?G.strongSequence:G.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?G.strongText:G.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?G.strong:G.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=lh(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=lh(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),U(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=lh(l,Ch(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=lh(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=lh(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ch(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function xb(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sh(r),a;return o;function o(t){return U(t===W.asterisk||t===W.underscore,`expected asterisk or underscore`),a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Sh(o);U(n,"expected `attentionMarkers` to be populated");let u=!l||l===oh.characterGroupPunctuation&&i||n.includes(o),d=!i||i===oh.characterGroupPunctuation&&l||n.includes(r);return c._open=!!(a===W.asterisk?u:u&&(i||!d)),c._close=!!(a===W.asterisk?d:d&&(l||!u)),t(o)}}function Sb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Cb={name:`autolink`,tokenize:wb};function wb(e,t,n){let r=0;return i;function i(t){return U(t===W.lessThan,"expected `<`"),e.enter(G.autolink),e.enter(G.autolinkMarker),e.consume(t),e.exit(G.autolinkMarker),e.enter(G.autolinkProtocol),a}function a(t){return uh(t)?(e.consume(t),o):t===W.atSign?n(t):l(t)}function o(e){return e===W.plusSign||e===W.dash||e===W.dot||dh(e)?(r=1,s(e)):l(e)}function s(t){return t===W.colon?(e.consume(t),r=0,c):(t===W.plusSign||t===W.dash||t===W.dot||dh(t))&&r++<oh.autolinkSchemeSizeMax?(e.consume(t),s):(r=0,l(t))}function c(r){return r===W.greaterThan?(e.exit(G.autolinkProtocol),e.enter(G.autolinkMarker),e.consume(r),e.exit(G.autolinkMarker),e.exit(G.autolink),t):r===W.eof||r===W.space||r===W.lessThan||ph(r)?n(r):(e.consume(r),c)}function l(t){return t===W.atSign?(e.consume(t),u):fh(t)?(e.consume(t),l):n(t)}function u(e){return dh(e)?d(e):n(e)}function d(n){return n===W.dot?(e.consume(n),r=0,u):n===W.greaterThan?(e.exit(G.autolinkProtocol).type=G.autolinkEmail,e.enter(G.autolinkMarker),e.consume(n),e.exit(G.autolinkMarker),e.exit(G.autolink),t):f(n)}function f(t){if((t===W.dash||dh(t))&&r++<oh.autolinkDomainSizeMax){let n=t===W.dash?f:d;return e.consume(t),n}return n(t)}}var Tb={partial:!0,tokenize:Eb};function Eb(e,t,n){return r;function r(t){return vh(t)?E_(e,i,G.linePrefix)(t):i(t)}function i(e){return e===W.eof||K(e)?t(e):n(e)}}var Db={continuation:{tokenize:kb},exit:Ab,name:`blockQuote`,tokenize:Ob};function Ob(e,t,n){let r=this;return i;function i(t){if(t===W.greaterThan){let n=r.containerState;return U(n,"expected `containerState` to be defined in container"),n.open||=(e.enter(G.blockQuote,{_container:!0}),!0),e.enter(G.blockQuotePrefix),e.enter(G.blockQuoteMarker),e.consume(t),e.exit(G.blockQuoteMarker),a}return n(t)}function a(n){return vh(n)?(e.enter(G.blockQuotePrefixWhitespace),e.consume(n),e.exit(G.blockQuotePrefixWhitespace),e.exit(G.blockQuotePrefix),t):(e.exit(G.blockQuotePrefix),t(n))}}function kb(e,t,n){let r=this;return i;function i(t){return vh(t)?(U(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),E_(e,a,G.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)(t)):a(t)}function a(r){return e.attempt(Db,t,n)(r)}}function Ab(e){e.exit(G.blockQuote)}var jb={name:`characterEscape`,tokenize:Mb};function Mb(e,t,n){return r;function r(t){return U(t===W.backslash,"expected `\\`"),e.enter(G.characterEscape),e.enter(G.escapeMarker),e.consume(t),e.exit(G.escapeMarker),i}function i(r){return gh(r)?(e.enter(G.characterEscapeValue),e.consume(r),e.exit(G.characterEscapeValue),e.exit(G.characterEscape),t):n(r)}}var Nb={name:`characterReference`,tokenize:Pb};function Pb(e,t,n){let r=this,i=0,a,o;return s;function s(t){return U(t===W.ampersand,"expected `&`"),e.enter(G.characterReference),e.enter(G.characterReferenceMarker),e.consume(t),e.exit(G.characterReferenceMarker),c}function c(t){return t===W.numberSign?(e.enter(G.characterReferenceMarkerNumeric),e.consume(t),e.exit(G.characterReferenceMarkerNumeric),l):(e.enter(G.characterReferenceValue),a=oh.characterReferenceNamedSizeMax,o=dh,u(t))}function l(t){return t===W.uppercaseX||t===W.lowercaseX?(e.enter(G.characterReferenceMarkerHexadecimal),e.consume(t),e.exit(G.characterReferenceMarkerHexadecimal),e.enter(G.characterReferenceValue),a=oh.characterReferenceHexadecimalSizeMax,o=hh,u):(e.enter(G.characterReferenceValue),a=oh.characterReferenceDecimalSizeMax,o=mh,u(t))}function u(s){if(s===W.semicolon&&i){let i=e.exit(G.characterReferenceValue);return o===dh&&!qh(r.sliceSerialize(i))?n(s):(e.enter(G.characterReferenceMarker),e.consume(s),e.exit(G.characterReferenceMarker),e.exit(G.characterReference),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Fb={partial:!0,tokenize:Rb},Ib={concrete:!0,name:`codeFenced`,tokenize:Lb};function Lb(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){U(t===W.graveAccent||t===W.tilde,"expected `` ` `` or `~`");let n=r.events[r.events.length-1];return a=n&&n[1].type===G.linePrefix?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(G.codeFenced),e.enter(G.codeFencedFence),e.enter(G.codeFencedFenceSequence),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<oh.codeFencedSequenceSizeMin?n(t):(e.exit(G.codeFencedFenceSequence),vh(t)?E_(e,d,G.whitespace)(t):d(t))}function d(n){return n===W.eof||K(n)?(e.exit(G.codeFencedFence),r.interrupt?t(n):e.check(Fb,h,b)(n)):(e.enter(G.codeFencedFenceInfo),e.enter(G.chunkString,{contentType:oh.contentTypeString}),f(n))}function f(t){return t===W.eof||K(t)?(e.exit(G.chunkString),e.exit(G.codeFencedFenceInfo),d(t)):vh(t)?(e.exit(G.chunkString),e.exit(G.codeFencedFenceInfo),E_(e,p,G.whitespace)(t)):t===W.graveAccent&&t===s?n(t):(e.consume(t),f)}function p(t){return t===W.eof||K(t)?d(t):(e.enter(G.codeFencedFenceMeta),e.enter(G.chunkString,{contentType:oh.contentTypeString}),m(t))}function m(t){return t===W.eof||K(t)?(e.exit(G.chunkString),e.exit(G.codeFencedFenceMeta),d(t)):t===W.graveAccent&&t===s?n(t):(e.consume(t),m)}function h(t){return U(K(t),`expected eol`),e.attempt(i,b,g)(t)}function g(t){return U(K(t),`expected eol`),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),_}function _(t){return a>0&&vh(t)?E_(e,v,G.linePrefix,a+1)(t):v(t)}function v(t){return t===W.eof||K(t)?e.check(Fb,h,b)(t):(e.enter(G.codeFlowValue),y(t))}function y(t){return t===W.eof||K(t)?(e.exit(G.codeFlowValue),v(t)):(e.consume(t),y)}function b(n){return e.exit(G.codeFenced),t(n)}function x(e,t,n){let i=0;return a;function a(t){return U(K(t),`expected eol`),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),c}function c(t){return U(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.enter(G.codeFencedFence),vh(t)?E_(e,l,G.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)(t):l(t)}function l(t){return t===s?(e.enter(G.codeFencedFenceSequence),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(G.codeFencedFenceSequence),vh(t)?E_(e,d,G.whitespace)(t):d(t)):n(t)}function d(r){return r===W.eof||K(r)?(e.exit(G.codeFencedFence),t(r)):n(r)}}}function Rb(e,t,n){let r=this;return i;function i(t){return t===W.eof?n(t):(U(K(t),`expected eol`),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var zb={name:`codeIndented`,tokenize:Vb},Bb={partial:!0,tokenize:Hb};function Vb(e,t,n){let r=this;return i;function i(t){return U(vh(t)),e.enter(G.codeIndented),E_(e,a,G.linePrefix,oh.tabSize+1)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===G.linePrefix&&t[2].sliceSerialize(t[1],!0).length>=oh.tabSize?o(e):n(e)}function o(t){return t===W.eof?c(t):K(t)?e.attempt(Bb,o,c)(t):(e.enter(G.codeFlowValue),s(t))}function s(t){return t===W.eof||K(t)?(e.exit(G.codeFlowValue),o(t)):(e.consume(t),s)}function c(n){return e.exit(G.codeIndented),t(n)}}function Hb(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):K(t)?(e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),i):E_(e,a,G.linePrefix,oh.tabSize+1)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===G.linePrefix&&a[2].sliceSerialize(a[1],!0).length>=oh.tabSize?t(e):K(e)?i(e):n(e)}}var Ub={name:`codeText`,previous:Gb,resolve:Wb,tokenize:Kb};function Wb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===G.lineEnding||e[n][1].type===`space`)&&(e[t][1].type===G.lineEnding||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===G.codeTextData){e[n][1].type=G.codeTextPadding,e[t][1].type=G.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==G.lineEnding&&(i=r):(r===t||e[r][1].type===G.lineEnding)&&(e[i][1].type=G.codeTextData,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Gb(e){return e!==W.graveAccent||this.events[this.events.length-1][1].type===G.characterEscape}function Kb(e,t,n){let r=this,i=0,a,o;return s;function s(t){return U(t===W.graveAccent,"expected `` ` ``"),U(Gb.call(r,r.previous),`expected correct previous`),e.enter(G.codeText),e.enter(G.codeTextSequence),c(t)}function c(t){return t===W.graveAccent?(e.consume(t),i++,c):(e.exit(G.codeTextSequence),l(t))}function l(t){return t===W.eof?n(t):t===W.space?(e.enter(`space`),e.consume(t),e.exit(`space`),l):t===W.graveAccent?(o=e.enter(G.codeTextSequence),a=0,d(t)):K(t)?(e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),l):(e.enter(G.codeTextData),u(t))}function u(t){return t===W.eof||t===W.space||t===W.graveAccent||K(t)?(e.exit(G.codeTextData),l(t)):(e.consume(t),u)}function d(n){return n===W.graveAccent?(e.consume(n),a++,d):a===i?(e.exit(G.codeTextSequence),e.exit(G.codeText),t(n)):(o.type=G.codeTextData,u(n))}}var qb=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Jb(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Jb(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Jb(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Jb(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Jb(this.left,t.reverse())}}};function Jb(e,t){let n=0;if(t.length<oh.v8MaxSafeChunkSize)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+oh.v8MaxSafeChunkSize)),n+=oh.v8MaxSafeChunkSize}function Yb(e){let t={},n=-1,r,i,a,o,s,c,l,u=new qb(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===G.chunkFlow&&u.get(n-1)[1].type===G.listItemPrefix&&(U(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===G.lineEndingBlank&&(a+=2),a<c.length&&c[a][1].type===G.content))for(;++a<c.length&&c[a][1].type!==G.content;)c[a][1].type===G.chunkText&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Xb(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===G.lineEnding||o[1].type===G.lineEndingBlank)o[0]===`enter`&&(i&&(u.get(i)[1].type=G.lineEndingBlank),o[1].type=G.lineEnding,i=a);else if(!(o[1].type===G.linePrefix||o[1].type===G.listItemIndent))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return ch(e,0,1/0,u.slice(0)),!l}function Xb(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[];U(n.contentType,"expected `contentType` on subtokens");let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);U(!d||p.previous===d,`expected previous to match`),U(!d||d.next===p,`expected next to match`),a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(W.eof),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(U(p,`expected a current token`),h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0,U(!p.next,`expected no next token`)):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();U(n!==void 0,`expected a start position when splicing`),c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Zb={resolve:$b,tokenize:ex},Qb={partial:!0,tokenize:tx};function $b(e){return Yb(e),e}function ex(e,t){let n;return r;function r(t){return U(t!==W.eof&&!K(t),`expected no eof or eol`),e.enter(G.content),n=e.enter(G.chunkContent,{contentType:oh.contentTypeContent}),i(t)}function i(t){return t===W.eof?a(t):K(t)?e.check(Qb,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(G.chunkContent),e.exit(G.content),t(n)}function o(t){return U(K(t),`expected eol`),e.consume(t),e.exit(G.chunkContent),U(n,`expected previous token`),n.next=e.enter(G.chunkContent,{contentType:oh.contentTypeContent,previous:n}),n=n.next,i}}function tx(e,t,n){let r=this;return i;function i(t){return U(K(t),`expected a line ending`),e.exit(G.chunkContent),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),E_(e,a,G.linePrefix)}function a(i){if(i===W.eof||K(i))return n(i);U(r.parser.constructs.disable.null,"expected `disable.null` to be populated");let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===G.linePrefix&&a[2].sliceSerialize(a[1],!0).length>=oh.tabSize?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function nx(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===W.lessThan?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===W.eof||t===W.space||t===W.rightParenthesis||ph(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(G.chunkString,{contentType:oh.contentTypeString}),h(t))}function f(n){return n===W.greaterThan?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(G.chunkString,{contentType:oh.contentTypeString}),p(n))}function p(t){return t===W.greaterThan?(e.exit(G.chunkString),e.exit(s),f(t)):t===W.eof||t===W.lessThan||K(t)?n(t):(e.consume(t),t===W.backslash?m:p)}function m(t){return t===W.lessThan||t===W.greaterThan||t===W.backslash?(e.consume(t),p):p(t)}function h(i){return!u&&(i===W.eof||i===W.rightParenthesis||_h(i))?(e.exit(G.chunkString),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===W.leftParenthesis?(e.consume(i),u++,h):i===W.rightParenthesis?(e.consume(i),u--,h):i===W.eof||i===W.space||i===W.leftParenthesis||ph(i)?n(i):(e.consume(i),i===W.backslash?g:h)}function g(t){return t===W.leftParenthesis||t===W.rightParenthesis||t===W.backslash?(e.consume(t),h):h(t)}}function rx(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return U(t===W.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>oh.linkReferenceSizeMax||l===W.eof||l===W.leftSquareBracket||l===W.rightSquareBracket&&!c||l===W.caret&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===W.rightSquareBracket?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):K(l)?(e.enter(G.lineEnding),e.consume(l),e.exit(G.lineEnding),u):(e.enter(G.chunkString,{contentType:oh.contentTypeString}),d(l))}function d(t){return t===W.eof||t===W.leftSquareBracket||t===W.rightSquareBracket||K(t)||s++>oh.linkReferenceSizeMax?(e.exit(G.chunkString),u(t)):(e.consume(t),c||=!vh(t),t===W.backslash?f:d)}function f(t){return t===W.leftSquareBracket||t===W.backslash||t===W.rightSquareBracket?(e.consume(t),s++,d):d(t)}}function ix(e,t,n,r,i,a){let o;return s;function s(t){return t===W.quotationMark||t===W.apostrophe||t===W.leftParenthesis?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===W.leftParenthesis?W.rightParenthesis:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===W.eof?n(t):K(t)?(e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),E_(e,l,G.linePrefix)):(e.enter(G.chunkString,{contentType:oh.contentTypeString}),u(t))}function u(t){return t===o||t===W.eof||K(t)?(e.exit(G.chunkString),l(t)):(e.consume(t),t===W.backslash?d:u)}function d(t){return t===o||t===W.backslash?(e.consume(t),u):u(t)}}function ax(e,t){let n;return r;function r(i){return K(i)?(e.enter(G.lineEnding),e.consume(i),e.exit(G.lineEnding),n=!0,r):vh(i)?E_(e,r,n?G.linePrefix:G.lineSuffix)(i):t(i)}}var ox={name:`definition`,tokenize:cx},sx={partial:!0,tokenize:lx};function cx(e,t,n){let r=this,i;return a;function a(t){return e.enter(G.definition),o(t)}function o(t){return U(t===W.leftSquareBracket,"expected `[`"),rx.call(r,e,s,n,G.definitionLabel,G.definitionLabelMarker,G.definitionLabelString)(t)}function s(t){return i=fb(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===W.colon?(e.enter(G.definitionMarker),e.consume(t),e.exit(G.definitionMarker),c):n(t)}function c(t){return _h(t)?ax(e,l)(t):l(t)}function l(t){return nx(e,u,n,G.definitionDestination,G.definitionDestinationLiteral,G.definitionDestinationLiteralMarker,G.definitionDestinationRaw,G.definitionDestinationString)(t)}function u(t){return e.attempt(sx,d,d)(t)}function d(t){return vh(t)?E_(e,f,G.whitespace)(t):f(t)}function f(a){return a===W.eof||K(a)?(e.exit(G.definition),r.parser.defined.push(i),t(a)):n(a)}}function lx(e,t,n){return r;function r(t){return _h(t)?ax(e,i)(t):n(t)}function i(t){return ix(e,a,n,G.definitionTitle,G.definitionTitleMarker,G.definitionTitleString)(t)}function a(t){return vh(t)?E_(e,o,G.whitespace)(t):o(t)}function o(e){return e===W.eof||K(e)?t(e):n(e)}}var ux={name:`hardBreakEscape`,tokenize:dx};function dx(e,t,n){return r;function r(t){return U(t===W.backslash,"expected `\\`"),e.enter(G.hardBreakEscape),e.consume(t),i}function i(r){return K(r)?(e.exit(G.hardBreakEscape),t(r)):n(r)}}var fx={name:`headingAtx`,resolve:px,tokenize:mx};function px(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===G.whitespace&&(r+=2),n-2>r&&e[n][1].type===G.whitespace&&(n-=2),e[n][1].type===G.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===G.whitespace)&&(n-=r+1===n?2:4),n>r&&(i={type:G.atxHeadingText,start:e[r][1].start,end:e[n][1].end},a={type:G.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:oh.contentTypeText},ch(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function mx(e,t,n){let r=0;return i;function i(t){return e.enter(G.atxHeading),a(t)}function a(t){return U(t===W.numberSign,"expected `#`"),e.enter(G.atxHeadingSequence),o(t)}function o(t){return t===W.numberSign&&r++<oh.atxHeadingOpeningFenceSizeMax?(e.consume(t),o):t===W.eof||_h(t)?(e.exit(G.atxHeadingSequence),s(t)):n(t)}function s(n){return n===W.numberSign?(e.enter(G.atxHeadingSequence),c(n)):n===W.eof||K(n)?(e.exit(G.atxHeading),t(n)):vh(n)?E_(e,s,G.whitespace)(n):(e.enter(G.atxHeadingText),l(n))}function c(t){return t===W.numberSign?(e.consume(t),c):(e.exit(G.atxHeadingSequence),s(t))}function l(t){return t===W.eof||t===W.numberSign||_h(t)?(e.exit(G.atxHeadingText),s(t)):(e.consume(t),l)}}var hx=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),gx=[`pre`,`script`,`style`,`textarea`],_x={concrete:!0,name:`htmlFlow`,resolveTo:bx,tokenize:xx},vx={partial:!0,tokenize:Cx},yx={partial:!0,tokenize:Sx};function bx(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===G.htmlFlow););return t>1&&e[t-2][1].type===G.linePrefix&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xx(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return U(t===W.lessThan,"expected `<`"),e.enter(G.htmlFlow),e.enter(G.htmlFlowData),e.consume(t),d}function d(s){return s===W.exclamationMark?(e.consume(s),f):s===W.slash?(e.consume(s),a=!0,h):s===W.questionMark?(e.consume(s),i=oh.htmlInstruction,r.interrupt?t:re):uh(s)?(U(s!==null),e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===W.dash?(e.consume(a),i=oh.htmlComment,p):a===W.leftSquareBracket?(e.consume(a),i=oh.htmlCdata,s=0,m):uh(a)?(e.consume(a),i=oh.htmlDeclaration,r.interrupt?t:re):n(a)}function p(i){return i===W.dash?(e.consume(i),r.interrupt?t:re):n(i)}function m(i){let a=oh.cdataOpeningString;return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?r.interrupt?t:O:m):n(i)}function h(t){return uh(t)?(U(t!==null),e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===W.eof||s===W.slash||s===W.greaterThan||_h(s)){let c=s===W.slash,l=o.toLowerCase();return!c&&!a&&gx.includes(l)?(i=oh.htmlRaw,r.interrupt?t(s):O(s)):hx.includes(o.toLowerCase())?(i=oh.htmlBasic,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=oh.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===W.dash||dh(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===W.greaterThan?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return vh(t)?(e.consume(t),v):E(t)}function y(t){return t===W.slash?(e.consume(t),E):t===W.colon||t===W.underscore||uh(t)?(e.consume(t),b):vh(t)?(e.consume(t),y):E(t)}function b(t){return t===W.dash||t===W.dot||t===W.colon||t===W.underscore||dh(t)?(e.consume(t),b):x(t)}function x(t){return t===W.equalsTo?(e.consume(t),S):vh(t)?(e.consume(t),x):y(t)}function S(t){return t===W.eof||t===W.lessThan||t===W.equalsTo||t===W.greaterThan||t===W.graveAccent?n(t):t===W.quotationMark||t===W.apostrophe?(e.consume(t),c=t,C):vh(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===W.eof||K(t)?n(t):(e.consume(t),C)}function w(t){return t===W.eof||t===W.quotationMark||t===W.apostrophe||t===W.slash||t===W.lessThan||t===W.equalsTo||t===W.greaterThan||t===W.graveAccent||_h(t)?x(t):(e.consume(t),w)}function T(e){return e===W.slash||e===W.greaterThan||vh(e)?y(e):n(e)}function E(t){return t===W.greaterThan?(e.consume(t),D):n(t)}function D(t){return t===W.eof||K(t)?O(t):vh(t)?(e.consume(t),D):n(t)}function O(t){return t===W.dash&&i===oh.htmlComment?(e.consume(t),ee):t===W.lessThan&&i===oh.htmlRaw?(e.consume(t),M):t===W.greaterThan&&i===oh.htmlDeclaration?(e.consume(t),ie):t===W.questionMark&&i===oh.htmlInstruction?(e.consume(t),re):t===W.rightSquareBracket&&i===oh.htmlCdata?(e.consume(t),ne):K(t)&&(i===oh.htmlBasic||i===oh.htmlComplete)?(e.exit(G.htmlFlowData),e.check(vx,ae,k)(t)):t===W.eof||K(t)?(e.exit(G.htmlFlowData),k(t)):(e.consume(t),O)}function k(t){return e.check(yx,A,ae)(t)}function A(t){return U(K(t)),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),j}function j(t){return t===W.eof||K(t)?k(t):(e.enter(G.htmlFlowData),O(t))}function ee(t){return t===W.dash?(e.consume(t),re):O(t)}function M(t){return t===W.slash?(e.consume(t),o=``,te):O(t)}function te(t){if(t===W.greaterThan){let n=o.toLowerCase();return gx.includes(n)?(e.consume(t),ie):O(t)}return uh(t)&&o.length<oh.htmlRawSizeMax?(U(t!==null),e.consume(t),o+=String.fromCharCode(t),te):O(t)}function ne(t){return t===W.rightSquareBracket?(e.consume(t),re):O(t)}function re(t){return t===W.greaterThan?(e.consume(t),ie):t===W.dash&&i===oh.htmlComment?(e.consume(t),re):O(t)}function ie(t){return t===W.eof||K(t)?(e.exit(G.htmlFlowData),ae(t)):(e.consume(t),ie)}function ae(n){return e.exit(G.htmlFlow),t(n)}}function Sx(e,t,n){let r=this;return i;function i(t){return K(t)?(e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Cx(e,t,n){return r;function r(r){return U(K(r),`expected a line ending`),e.enter(G.lineEnding),e.consume(r),e.exit(G.lineEnding),e.attempt(Tb,t,n)}}var wx={name:`htmlText`,tokenize:Tx};function Tx(e,t,n){let r=this,i,a,o;return s;function s(t){return U(t===W.lessThan,"expected `<`"),e.enter(G.htmlText),e.enter(G.htmlTextData),e.consume(t),c}function c(t){return t===W.exclamationMark?(e.consume(t),l):t===W.slash?(e.consume(t),x):t===W.questionMark?(e.consume(t),y):uh(t)?(e.consume(t),w):n(t)}function l(t){return t===W.dash?(e.consume(t),u):t===W.leftSquareBracket?(e.consume(t),a=0,m):uh(t)?(e.consume(t),v):n(t)}function u(t){return t===W.dash?(e.consume(t),p):n(t)}function d(t){return t===W.eof?n(t):t===W.dash?(e.consume(t),f):K(t)?(o=d,M(t)):(e.consume(t),d)}function f(t){return t===W.dash?(e.consume(t),p):d(t)}function p(e){return e===W.greaterThan?ee(e):e===W.dash?f(e):d(e)}function m(t){let r=oh.cdataOpeningString;return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?h:m):n(t)}function h(t){return t===W.eof?n(t):t===W.rightSquareBracket?(e.consume(t),g):K(t)?(o=h,M(t)):(e.consume(t),h)}function g(t){return t===W.rightSquareBracket?(e.consume(t),_):h(t)}function _(t){return t===W.greaterThan?ee(t):t===W.rightSquareBracket?(e.consume(t),_):h(t)}function v(t){return t===W.eof||t===W.greaterThan?ee(t):K(t)?(o=v,M(t)):(e.consume(t),v)}function y(t){return t===W.eof?n(t):t===W.questionMark?(e.consume(t),b):K(t)?(o=y,M(t)):(e.consume(t),y)}function b(e){return e===W.greaterThan?ee(e):y(e)}function x(t){return uh(t)?(e.consume(t),S):n(t)}function S(t){return t===W.dash||dh(t)?(e.consume(t),S):C(t)}function C(t){return K(t)?(o=C,M(t)):vh(t)?(e.consume(t),C):ee(t)}function w(t){return t===W.dash||dh(t)?(e.consume(t),w):t===W.slash||t===W.greaterThan||_h(t)?T(t):n(t)}function T(t){return t===W.slash?(e.consume(t),ee):t===W.colon||t===W.underscore||uh(t)?(e.consume(t),E):K(t)?(o=T,M(t)):vh(t)?(e.consume(t),T):ee(t)}function E(t){return t===W.dash||t===W.dot||t===W.colon||t===W.underscore||dh(t)?(e.consume(t),E):D(t)}function D(t){return t===W.equalsTo?(e.consume(t),O):K(t)?(o=D,M(t)):vh(t)?(e.consume(t),D):T(t)}function O(t){return t===W.eof||t===W.lessThan||t===W.equalsTo||t===W.greaterThan||t===W.graveAccent?n(t):t===W.quotationMark||t===W.apostrophe?(e.consume(t),i=t,k):K(t)?(o=O,M(t)):vh(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===W.eof?n(t):K(t)?(o=k,M(t)):(e.consume(t),k)}function A(t){return t===W.eof||t===W.quotationMark||t===W.apostrophe||t===W.lessThan||t===W.equalsTo||t===W.graveAccent?n(t):t===W.slash||t===W.greaterThan||_h(t)?T(t):(e.consume(t),A)}function j(e){return e===W.slash||e===W.greaterThan||_h(e)?T(e):n(e)}function ee(r){return r===W.greaterThan?(e.consume(r),e.exit(G.htmlTextData),e.exit(G.htmlText),t):n(r)}function M(t){return U(o,`expected return state`),U(K(t),`expected eol`),e.exit(G.htmlTextData),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),te}function te(t){return U(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),vh(t)?E_(e,ne,G.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)(t):ne(t)}function ne(t){return e.enter(G.htmlTextData),o(t)}}var Ex={name:`labelEnd`,resolveAll:Ax,resolveTo:jx,tokenize:Mx},Dx={tokenize:Nx},Ox={tokenize:Px},kx={tokenize:Fx};function Ax(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===G.labelImage||r.type===G.labelLink||r.type===G.labelEnd){let e=r.type===G.labelImage?4:2;r.type=G.data,t+=e}}return e.length!==n.length&&ch(e,0,e.length,n),e}function jx(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===G.link||i.type===G.labelLink&&i._inactive)break;e[n][0]===`enter`&&i.type===G.labelLink&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===G.labelImage||i.type===G.labelLink)&&!i._balanced&&(a=n,i.type!==G.labelLink)){r=2;break}}else i.type===G.labelEnd&&(o=n);U(a!==void 0,"`open` is supposed to be found"),U(o!==void 0,"`close` is supposed to be found");let c={type:e[a][1].type===G.labelLink?G.link:G.image,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:G.label,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:G.labelText,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=lh(s,e.slice(a+1,a+r+3)),s=lh(s,[[`enter`,u,t]]),U(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=lh(s,Ch(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=lh(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=lh(s,e.slice(o+1)),s=lh(s,[[`exit`,c,t]]),ch(e,a,e.length,s),e}function Mx(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===G.labelImage||r.events[i][1].type===G.labelLink)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return U(t===W.rightSquareBracket,"expected `]`"),a?a._inactive?d(t):(o=r.parser.defined.includes(fb(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(G.labelEnd),e.enter(G.labelMarker),e.consume(t),e.exit(G.labelMarker),e.exit(G.labelEnd),c):n(t)}function c(t){return t===W.leftParenthesis?e.attempt(Dx,u,o?u:d)(t):t===W.leftSquareBracket?e.attempt(Ox,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(kx,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Nx(e,t,n){return r;function r(t){return U(t===W.leftParenthesis,`expected left paren`),e.enter(G.resource),e.enter(G.resourceMarker),e.consume(t),e.exit(G.resourceMarker),i}function i(t){return _h(t)?ax(e,a)(t):a(t)}function a(t){return t===W.rightParenthesis?u(t):nx(e,o,s,G.resourceDestination,G.resourceDestinationLiteral,G.resourceDestinationLiteralMarker,G.resourceDestinationRaw,G.resourceDestinationString,oh.linkResourceDestinationBalanceMax)(t)}function o(t){return _h(t)?ax(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===W.quotationMark||t===W.apostrophe||t===W.leftParenthesis?ix(e,l,n,G.resourceTitle,G.resourceTitleMarker,G.resourceTitleString)(t):u(t)}function l(t){return _h(t)?ax(e,u)(t):u(t)}function u(r){return r===W.rightParenthesis?(e.enter(G.resourceMarker),e.consume(r),e.exit(G.resourceMarker),e.exit(G.resource),t):n(r)}}function Px(e,t,n){let r=this;return i;function i(t){return U(t===W.leftSquareBracket,`expected left bracket`),rx.call(r,e,a,o,G.reference,G.referenceMarker,G.referenceString)(t)}function a(e){return r.parser.defined.includes(fb(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Fx(e,t,n){return r;function r(t){return U(t===W.leftSquareBracket,`expected left bracket`),e.enter(G.reference),e.enter(G.referenceMarker),e.consume(t),e.exit(G.referenceMarker),i}function i(r){return r===W.rightSquareBracket?(e.enter(G.referenceMarker),e.consume(r),e.exit(G.referenceMarker),e.exit(G.reference),t):n(r)}}var Ix={name:`labelStartImage`,resolveAll:Ex.resolveAll,tokenize:Lx};function Lx(e,t,n){let r=this;return i;function i(t){return U(t===W.exclamationMark,"expected `!`"),e.enter(G.labelImage),e.enter(G.labelImageMarker),e.consume(t),e.exit(G.labelImageMarker),a}function a(t){return t===W.leftSquareBracket?(e.enter(G.labelMarker),e.consume(t),e.exit(G.labelMarker),e.exit(G.labelImage),o):n(t)}function o(e){return e===W.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Rx={name:`labelStartLink`,resolveAll:Ex.resolveAll,tokenize:zx};function zx(e,t,n){let r=this;return i;function i(t){return U(t===W.leftSquareBracket,"expected `[`"),e.enter(G.labelLink),e.enter(G.labelMarker),e.consume(t),e.exit(G.labelMarker),e.exit(G.labelLink),a}function a(e){return e===W.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Bx={name:`lineEnding`,tokenize:Vx};function Vx(e,t){return n;function n(n){return U(K(n),`expected eol`),e.enter(G.lineEnding),e.consume(n),e.exit(G.lineEnding),E_(e,t,G.linePrefix)}}var Hx={name:`thematicBreak`,tokenize:Ux};function Ux(e,t,n){let r=0,i;return a;function a(t){return e.enter(G.thematicBreak),o(t)}function o(e){return U(e===W.asterisk||e===W.dash||e===W.underscore,"expected `*`, `-`, or `_`"),i=e,s(e)}function s(a){return a===i?(e.enter(G.thematicBreakSequence),c(a)):r>=oh.thematicBreakMarkerCountMin&&(a===W.eof||K(a))?(e.exit(G.thematicBreak),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(G.thematicBreakSequence),vh(t)?E_(e,s,G.whitespace)(t):s(t))}}var Wx={continuation:{tokenize:Jx},exit:Xx,name:`list`,tokenize:qx},Gx={partial:!0,tokenize:Zx},Kx={partial:!0,tokenize:Yx};function qx(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===G.linePrefix?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){U(r.containerState,`expected state`);let i=r.containerState.type||(t===W.asterisk||t===W.plusSign||t===W.dash?G.listUnordered:G.listOrdered);if(i===G.listUnordered?!r.containerState.marker||t===r.containerState.marker:mh(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===G.listUnordered)return e.enter(G.listItemPrefix),t===W.asterisk||t===W.dash?e.check(Hx,n,l)(t):l(t);if(!r.interrupt||t===W.digit1)return e.enter(G.listItemPrefix),e.enter(G.listItemValue),c(t)}return n(t)}function c(t){return U(r.containerState,`expected state`),mh(t)&&++o<oh.listItemValueSizeMax?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===W.rightParenthesis||t===W.dot)?(e.exit(G.listItemValue),l(t)):n(t)}function l(t){return U(r.containerState,`expected state`),U(t!==W.eof,"eof (`null`) is not a marker"),e.enter(G.listItemMarker),e.consume(t),e.exit(G.listItemMarker),r.containerState.marker=r.containerState.marker||t,e.check(Tb,r.interrupt?n:u,e.attempt(Gx,f,d))}function u(e){return U(r.containerState,`expected state`),r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return vh(t)?(e.enter(G.listItemPrefixWhitespace),e.consume(t),e.exit(G.listItemPrefixWhitespace),f):n(t)}function f(n){return U(r.containerState,`expected state`),r.containerState.size=a+r.sliceSerialize(e.exit(G.listItemPrefix),!0).length,t(n)}}function Jx(e,t,n){let r=this;return U(r.containerState,`expected state`),r.containerState._closeFlow=void 0,e.check(Tb,i,a);function i(n){return U(r.containerState,`expected state`),U(typeof r.containerState.size==`number`,`expected size`),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,E_(e,t,G.listItemIndent,r.containerState.size+1)(n)}function a(n){return U(r.containerState,`expected state`),r.containerState.furtherBlankLines||!vh(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Kx,t,o)(n))}function o(i){return U(r.containerState,`expected state`),r.containerState._closeFlow=!0,r.interrupt=void 0,U(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),E_(e,e.attempt(Wx,t,n),G.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)(i)}}function Yx(e,t,n){let r=this;return U(r.containerState,`expected state`),U(typeof r.containerState.size==`number`,`expected size`),E_(e,i,G.listItemIndent,r.containerState.size+1);function i(e){U(r.containerState,`expected state`);let i=r.events[r.events.length-1];return i&&i[1].type===G.listItemIndent&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Xx(e){U(this.containerState,`expected state`),U(typeof this.containerState.type==`string`,`expected type`),e.exit(this.containerState.type)}function Zx(e,t,n){let r=this;return U(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),E_(e,i,G.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize+1);function i(e){let i=r.events[r.events.length-1];return!vh(e)&&i&&i[1].type===G.listItemPrefixWhitespace?t(e):n(e)}}var Qx={name:`setextUnderline`,resolveTo:$x,tokenize:eS};function $x(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===G.content){r=n;break}e[n][1].type===G.paragraph&&(i=n)}else e[n][1].type===G.content&&e.splice(n,1),!a&&e[n][1].type===G.definition&&(a=n);U(i!==void 0,"expected a `text` index to be found"),U(r!==void 0,"expected a `text` index to be found"),U(e[r][2]===t,`enter context should be same`),U(e[e.length-1][2]===t,`enter context should be same`);let o={type:G.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=G.setextHeadingText,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function eS(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(U(t===W.dash||t===W.equalsTo,"expected `=` or `-`");a--;)if(r.events[a][1].type!==G.lineEnding&&r.events[a][1].type!==G.linePrefix&&r.events[a][1].type!==G.content){s=r.events[a][1].type===G.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(G.setextHeadingLine),i=t,o(t)):n(t)}function o(t){return e.enter(G.setextHeadingLineSequence),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(G.setextHeadingLineSequence),vh(t)?E_(e,c,G.lineSuffix)(t):c(t))}function c(r){return r===W.eof||K(r)?(e.exit(G.setextHeadingLine),t(r)):n(r)}}var tS={tokenize:nS};function nS(e){let t=this,n=e.attempt(Tb,r,e.attempt(this.parser.constructs.flowInitial,i,E_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Zb,i)),G.linePrefix)));return n;function r(r){if(U(r===W.eof||K(r),`expected eol or eof`),r===W.eof){e.consume(r);return}return e.enter(G.lineEndingBlank),e.consume(r),e.exit(G.lineEndingBlank),t.currentConstruct=void 0,n}function i(r){if(U(r===W.eof||K(r),`expected eol or eof`),r===W.eof){e.consume(r);return}return e.enter(G.lineEnding),e.consume(r),e.exit(G.lineEnding),t.currentConstruct=void 0,n}}var rS={resolveAll:sS()},iS=oS(`string`),aS=oS(`text`);function oS(e){return{resolveAll:sS(e===`text`?cS:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===W.eof){t.consume(e);return}return t.enter(G.data),t.consume(e),s}function s(e){return c(e)?(t.exit(G.data),i(e)):(t.consume(e),s)}function c(e){if(e===W.eof)return!0;let t=r[e],i=-1;if(t)for(U(Array.isArray(t),"expected `disable.null` to be populated");++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function sS(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===G.data&&(i=r,r++):(!t[r]||t[r][1].type!==G.data)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function cS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===G.lineEnding)&&e[n-1][1].type===G.data){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===W.space;)s++,o--;if(o)break;o=-1}else if(e===W.horizontalTab)c=!0,s++;else if(e!==W.virtualSpace){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<oh.hardBreakPrefixSizeMin?G.lineSuffix:G.hardBreakTrailing,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var lS=mt({attentionMarkers:()=>_S,contentInitial:()=>dS,disable:()=>vS,document:()=>uS,flow:()=>pS,flowInitial:()=>fS,insideSpan:()=>gS,string:()=>mS,text:()=>hS}),uS={[W.asterisk]:Wx,[W.plusSign]:Wx,[W.dash]:Wx,[W.digit0]:Wx,[W.digit1]:Wx,[W.digit2]:Wx,[W.digit3]:Wx,[W.digit4]:Wx,[W.digit5]:Wx,[W.digit6]:Wx,[W.digit7]:Wx,[W.digit8]:Wx,[W.digit9]:Wx,[W.greaterThan]:Db},dS={[W.leftSquareBracket]:ox},fS={[W.horizontalTab]:zb,[W.virtualSpace]:zb,[W.space]:zb},pS={[W.numberSign]:fx,[W.asterisk]:Hx,[W.dash]:[Qx,Hx],[W.lessThan]:_x,[W.equalsTo]:Qx,[W.underscore]:Hx,[W.graveAccent]:Ib,[W.tilde]:Ib},mS={[W.ampersand]:Nb,[W.backslash]:jb},hS={[W.carriageReturn]:Bx,[W.lineFeed]:Bx,[W.carriageReturnLineFeed]:Bx,[W.exclamationMark]:Ix,[W.ampersand]:Nb,[W.asterisk]:yb,[W.lessThan]:[Cb,wx],[W.leftSquareBracket]:Rx,[W.backslash]:[ux,jb],[W.rightSquareBracket]:Ex,[W.underscore]:yb,[W.graveAccent]:Ub},gS={null:[yb,rS]},_S={null:[W.asterisk,W.underscore]},vS={null:[]},yS=pt(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),bS=pt(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=yS(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),xS=(0,gt(pt(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=bS()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}))(),1).default)(`micromark`);function SS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c=!0,l={attempt:T(C),check:T(w),consume:b,enter:x,exit:S,interrupt:T(w,{interrupt:!0})},u={code:W.eof,containerState:{},defineSkip:_,events:[],now:g,parser:e,previous:W.eof,sliceSerialize:m,sliceStream:h,write:p},d=t.tokenize.call(u,l),f;return t.resolveAll&&a.push(t),u;function p(e){return o=lh(o,e),v(),o[o.length-1]===W.eof?(E(t,0),u.events=Ch(a,u.events,u),u.events):[]}function m(e,t){return wS(h(e),t)}function h(e){return CS(o,e)}function g(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function _(e){i[e.line]=e.column,O(),xS("position: define skip: `%j`",r)}function v(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)y(t.charCodeAt(r._bufferIndex));else y(t)}}function y(e){U(c===!0,`expected character to be consumed`),c=void 0,xS("main: passing `%s` to %s",e,d&&d.name),f=e,U(typeof d==`function`,`expected state`),d=d(e)}function b(e){U(e===f,`expected given code to equal expected code`),xS("consume: `%s`",e),U(c===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),U(e===null?u.events.length===0||u.events[u.events.length-1][0]===`exit`:u.events[u.events.length-1][0]===`enter`,`expected last token to be open`),K(e)?(r.line++,r.column=1,r.offset+=e===W.carriageReturnLineFeed?2:1,O(),xS("position: after eol: `%j`",r)):e!==W.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,c=!0}function x(e,t){let n=t||{};return n.type=e,n.start=g(),U(typeof e==`string`,`expected string type`),U(e.length>0,`expected non-empty string`),xS("enter: `%s`",e),u.events.push([`enter`,n,u]),s.push(n),n}function S(e){U(typeof e==`string`,`expected string type`),U(e.length>0,`expected non-empty string`);let t=s.pop();return U(t,`cannot close w/o open tokens`),t.end=g(),U(e===t.type,`expected exit token to match current token`),U(!(t.start._index===t.end._index&&t.start._bufferIndex===t.end._bufferIndex),"expected non-empty token (`"+e+"`)"),xS("exit: `%s`",t.type),u.events.push([`exit`,t,u]),t}function C(e,t){E(e,t.from)}function w(e,t){t.restore()}function T(e,t){return n;function n(n,r,i){let a,o,s,d;return Array.isArray(n)?m(n):`tokenize`in n?m([n]):p(n);function p(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function m(e){return a=e,o=0,e.length===0?(U(i,"expected `bogusState` to be given"),i):h(e[o])}function h(e){return n;function n(n){return d=D(),s=e,e.partial||(u.currentConstruct=e),U(u.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.name&&u.parser.constructs.disable.null.includes(e.name)?_(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,g,_)(n)}}function g(t){return U(t===f,`expected code`),c=!0,e(s,d),r}function _(e){return U(e===f,`expected code`),c=!0,d.restore(),++o<a.length?h(a[o]):i}}}function E(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ch(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u)),U(e.partial||u.events.length===0||u.events[u.events.length-1][0]===`exit`,`expected last token to end`)}function D(){let e=g(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,O(),xS("position: restore: `%j`",r)}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function CS(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)U(a>-1,`expected non-negative end buffer index`),U(r>-1,`expected non-negative start buffer index`),o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):(U(r===0,"expected `startBufferIndex` to be `0`"),o.shift())}a>0&&o.push(e[i].slice(0,a))}return o}function wS(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case W.carriageReturn:o=sh.cr;break;case W.lineFeed:o=sh.lf;break;case W.carriageReturnLineFeed:o=sh.cr+sh.lf;break;case W.horizontalTab:o=t?sh.space:sh.ht;break;case W.virtualSpace:if(!t&&i)continue;o=sh.space;break;default:U(typeof a==`number`,`expected number`),o=String.fromCharCode(a)}i=a===W.horizontalTab,r.push(o)}return r.join(``)}function TS(e){let t={constructs:lb([lS,...(e||{}).extensions||[]]),content:n(pb),defined:[],document:n(hb),flow:n(tS),lazy:{},string:n(iS),text:n(aS)};return t;function n(e){return n;function n(n){return SS(t,e,n)}}}function ES(e){for(;!Yb(e););return e}var DS=/[\0\t\n\r]/g;function OS(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===W.byteOrderMarker&&u++,void 0);u<i.length;){if(DS.lastIndex=u,c=DS.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===W.lf&&u===d&&r)s.push(W.carriageReturnLineFeed),r=void 0;else switch(r&&=(s.push(W.carriageReturn),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case W.nul:s.push(W.replacementCharacter),e++;break;case W.ht:for(l=Math.ceil(e/oh.tabSize)*oh.tabSize,s.push(W.horizontalTab);e++<l;)s.push(W.virtualSpace);break;case W.lf:s.push(W.lineFeed),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(W.carriageReturn),t&&s.push(t),s.push(W.eof)),s}}var kS={}.hasOwnProperty;function AS(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),jS(n)(ES(TS(n).document().write(OS()(e,t,!0))))}function jS(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ve),blockQuote:a(pe),characterEscape:T,characterReference:T,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(he,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(_e),hardBreakEscape:a(ye),hardBreakTrailing:a(ye),htmlFlow:a(be,o),htmlFlowData:T,htmlText:a(be,o),htmlTextData:T,image:a(xe),label:o,link:a(Se),listItem:a(we),listItemValue:f,listOrdered:a(Ce,d),listUnordered:a(Ce),paragraph:a(Te),reference:oe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(Ee),thematicBreak:a(Oe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:fe,autolinkProtocol:de,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:ue,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(M),label:ne,labelText:te,lineEnding:D,link:c(ee),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:re,resourceTitleString:ie,resource:ae,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};NS(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)if(e[d][1].type===G.listOrdered||e[d][1].type===G.listUnordered)if(e[d][0]===`enter`)c.push(d);else{let t=c.pop();U(typeof t==`number`,`expected list to be open`),d=i(e,t,d)}for(d=-1;++d<e.length;){let n=t[e[d][0]];kS.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||FS).call(a,void 0,e[0])}for(r.position={start:MS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:MS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case G.listUnordered:case G.listOrdered:case G.blockQuote:t[0]===`enter`?i++:i--,l=void 0;break;case G.lineEndingBlank:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case G.linePrefix:case G.listItemValue:case G.listItemMarker:case G.listItemPrefix:case G.listItemPrefixWhitespace:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===G.listItemPrefix||i===-1&&t[0]===`exit`&&(t[1].type===G.listUnordered||t[1].type===G.listOrdered)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===G.lineEnding||t[1].type===G.lineEndingBlank){if(t[0]===`exit`)continue;s&&(e[s][1].type=G.lineEndingBlank,a=!0),t[1].type=G.lineEnding,s=i}else if(!(t[1].type===G.linePrefix||t[1].type===G.blockQuotePrefix||t[1].type===G.blockQuotePrefixWhitespace||t[1].type===G.blockQuoteMarker||t[1].type===G.listItemIndent))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===G.listItemPrefix){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){let r=this.stack[this.stack.length-1];U(r,"expected `parent`"),U(`children`in r,"expected `parent`"),r.children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:MS(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop();U(n,"expected `node`");let r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||FS).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+cg({start:e.start,end:e.end})+`): it’s not open`);U(n.type!==`fragment`,"unexpected fragment `exit`ed"),U(n.position,"expected `position` to be defined"),n.position.end=MS(e.end)}function u(){return Vv(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];U(t,`expected nodes on stack`),U(t.type===`list`,`expected list on stack`),t.start=Number.parseInt(this.sliceSerialize(e),oh.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`code`,`expected code on stack`),t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`code`,`expected code on stack`),t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`code`,`expected code on stack`),t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`code`,`expected code on stack`),t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];U(n,`expected node on stack`),U(n.type===`definition`,`expected definition on stack`),n.label=t,n.identifier=fb(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`definition`,`expected definition on stack`),t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`definition`,`expected definition on stack`),t.url=e}function x(e){let t=this.stack[this.stack.length-1];if(U(t,`expected node on stack`),U(t.type===`heading`,`expected heading on stack`),!t.depth){let n=this.sliceSerialize(e).length;U(n===1||n===2||n===3||n===4||n===5||n===6,"expected `depth` between `1` and `6`"),t.depth=n}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`heading`,`expected heading on stack`),t.depth=this.sliceSerialize(e).codePointAt(0)===W.equalsTo?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(`children`in t,`expected parent on stack`);let n=t.children,r=n[n.length-1];(!r||r.type!==`text`)&&(r=De(),r.position={start:MS(e.start),end:void 0},n.push(r)),this.stack.push(r)}function E(e){let t=this.stack.pop();U(t,"expected a `node` to be on the stack"),U(`value`in t,"expected a `literal` to be on the stack"),U(t.position,"expected `node` to have an open position"),t.value+=this.sliceSerialize(e),t.position.end=MS(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(U(n,"expected `node`"),this.data.atHardBreak){U(`children`in n,"expected `parent`");let t=n.children[n.children.length-1];U(t.position,`expected tail to have a starting position`),t.position.end=MS(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`html`,`expected html on stack`),t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`html`,`expected html on stack`),t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`inlineCode`,`expected inline code on stack`),t.value=e}function ee(){let e=this.stack[this.stack.length-1];if(U(e,`expected node on stack`),U(e.type===`link`,`expected link on stack`),this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){let e=this.stack[this.stack.length-1];if(U(e,`expected node on stack`),U(e.type===`image`,`expected image on stack`),this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function te(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];U(n,`expected ancestor on stack`),U(n.type===`image`||n.type===`link`,`expected image or link on stack`),n.label=ky(t),n.identifier=fb(t).toLowerCase()}function ne(){let e=this.stack[this.stack.length-1];U(e,`expected node on stack`),U(e.type===`fragment`,`expected fragment on stack`);let t=this.resume(),n=this.stack[this.stack.length-1];U(n,`expected node on stack`),U(n.type===`image`||n.type===`link`,`expected image or link on stack`),this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`image`||t.type===`link`,`expected image or link on stack`),t.url=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`image`||t.type===`link`,`expected image or link on stack`),t.title=e}function ae(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];U(n,`expected node on stack`),U(n.type===`image`||n.type===`link`,`expected image reference or link reference on stack`),n.label=t,n.identifier=fb(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ce(e){U(e.type===`characterReferenceMarkerNumeric`||e.type===`characterReferenceMarkerHexadecimal`),this.data.characterReferenceType=e.type}function le(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;if(n)r=Dy(t,n===G.characterReferenceMarkerNumeric?oh.numericBaseDecimal:oh.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let e=qh(t);U(e!==!1,`expected reference to decode`),r=e}let i=this.stack[this.stack.length-1];U(i,"expected `node`"),U(`value`in i,"expected `node.value`"),i.value+=r}function ue(e){let t=this.stack.pop();U(t,"expected `node`"),U(t.position,"expected `node.position`"),t.position.end=MS(e.end)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`link`,`expected link on stack`),t.url=this.sliceSerialize(e)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];U(t,`expected node on stack`),U(t.type===`link`,`expected link on stack`),t.url=`mailto:`+this.sliceSerialize(e)}function pe(){return{type:`blockquote`,children:[]}}function me(){return{type:`code`,lang:null,meta:null,value:``}}function he(){return{type:`inlineCode`,value:``}}function ge(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function _e(){return{type:`emphasis`,children:[]}}function ve(){return{type:`heading`,depth:0,children:[]}}function ye(){return{type:`break`}}function be(){return{type:`html`,value:``}}function xe(){return{type:`image`,title:null,url:``,alt:null}}function Se(){return{type:`link`,title:null,url:``,children:[]}}function Ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Te(){return{type:`paragraph`,children:[]}}function Ee(){return{type:`strong`,children:[]}}function De(){return{type:`text`,value:``}}function Oe(){return{type:`thematicBreak`}}}function MS(e){return{line:e.line,column:e.column,offset:e.offset}}function NS(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?NS(e,r):PS(e,r)}}function PS(e,t){let n;for(n in t)if(kS.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function FS(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+cg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cg({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+cg({start:t.start,end:t.end})+`) is still open`)}function IS(e){return e.children instanceof Array}var LS=class extends Error{constructor(e,t){super(e),this.name=`MarkdownParseError`,this.cause=t}},RS=class extends Error{constructor(e){super(e),this.name=`UnrecognizedMarkdownConstructError`}};function zS(e){let t=new Map;return e.type===`root`?(e.children.filter(e=>e.type===`mdxjsEsm`).filter(e=>e.value.startsWith(`import `)).forEach(e=>{(e.data?.estree?.body??[]).forEach(e=>{e.type===`ImportDeclaration`&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:`${e.source.value}`,defaultExport:n.type===`ImportDefaultSpecifier`})})})}),{importDeclarations:Object.fromEntries(t.entries())}):{importDeclarations:{}}}function BS({root:e,markdown:t,visitors:n,syntaxExtensions:r,mdastExtensions:i,...a}){let o;try{o=AS(t,{extensions:r,mdastExtensions:i})}catch(e){throw e instanceof Error?new LS(`Error parsing markdown: ${e.message}`,e):new LS(`Error parsing markdown: ${e}`,e)}o.children.length===0&&o.children.push({type:`paragraph`,children:[]}),o.children.at(-1)?.type!==`paragraph`&&o.children.push({type:`paragraph`,children:[]}),VS({root:e,mdastRoot:o,visitors:n,...a})}function VS({root:e,mdastRoot:t,visitors:n,...r}){let i=new WeakMap,a=new WeakMap,o=zS(t);n=n.sort((e,t)=>(t.priority??0)-(e.priority??0));function s(e,t){if(!IS(e))throw Error(`Attempting to visit children of a non-parent`);e.children.forEach(n=>{c(n,t,e)})}function c(e,t,l,u=null){let d=n.find((t,n)=>u?.has(n)?!1:typeof t.testNode==`string`?t.testNode===e.type:t.testNode(e,r));if(!d)try{throw new RS(`Unsupported markdown syntax: ${Vy(e)}`)}catch{throw new RS(`Parsing of the following markdown structure failed: ${JSON.stringify({type:e.type,name:`name`in e?e.name:`N/A`})}`)}d.visitNode({mdastNode:e,lexicalParent:t,mdastParent:l,descriptors:r,metaData:o,actions:{visitChildren:s,nextVisitor(){c(e,t,l,(u??new Set).add(n.indexOf(d)))},addAndStepInto(n){t.append(n),IS(e)&&s(e,n)},addFormatting(t,n){n||IS(e)&&(n=e),n&&i.set(n,t|(i.get(l)??0))},removeFormatting(t,n){n||IS(e)&&(n=e),n&&i.set(n,t^(i.get(l)??0))},getParentFormatting(){return i.get(l)??0},addStyle(t,n){n||IS(e)&&(n=e),n&&a.set(n,t)},getParentStyle(){return a.get(l)??``}}})}c(t,e,null)}var HS=Object.defineProperty,US=(e,t,n)=>t in e?HS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WS=(e,t,n)=>(US(e,typeof t==`symbol`?t:t+``,n),n),GS=`generic-html`,KS=class e extends Vc{constructor(e,t,n,r){super(r),WS(this,`__tag`),WS(this,`__nodeType`),WS(this,`__attributes`),this.__tag=e,this.__nodeType=t,this.__attributes=n}static getType(){return GS}static clone(t){return new e(t.__tag,t.__nodeType,t.__attributes,t.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){let t=this.getWritable();t.__attributes=e}getStyle(){return this.__attributes.find(e=>e.name===`style`)?.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=qS(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:GS,version:1}}extractWithChild(){return!0}isInline(){return this.__nodeType===`mdxJsxTextElement`}};function qS(e,t,n){return pd(new KS(e,t,n))}function JS(e){return e instanceof KS}var YS={testLexicalNode:JS,visitLexicalNode({actions:e,lexicalNode:t}){e.addAndStepInto(`mdxJsxTextElement`,{name:t.getTag(),type:t.getNodeType(),attributes:t.getAttributes()})},priority:-100},XS={testLexicalNode:Uo,visitLexicalNode:({mdastParent:e,actions:t})=>{t.appendToParent(e,{type:`text`,value:`
306
+ `})}},ZS={testLexicalNode:cl,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`paragraph`)}},QS={testLexicalNode:qc,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`root`)}};function $S(e){return e.type===`text`}var eC=[`u`,`span`,`sub`,`sup`],tC={shouldJoin:(e,t)=>{if([`text`,`emphasis`,`strong`,`highlight`].includes(e.type))return e.type===t.type;if(e.type===`mdxJsxTextElement`&&t.type===`mdxJsxTextElement`&&eC.includes(t.name)){let n=t;return e.name===n.name&&JSON.stringify(e.attributes)===JSON.stringify(n.attributes)}return!1},join(e,t){return $S(e)&&$S(t)?{type:`text`,value:e.value+t.value}:{...e,children:[...e.children,...t.children]}},testLexicalNode:R,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getPreviousSibling(),i=R(r)?r.getFormat():0,a=e.getTextContent(),o=e.getFormat(),s=e.getStyle(),c=t;if(s&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`span`,children:[],attributes:[{type:`mdxJsxAttribute`,name:`style`,value:s}]})),i&o&8&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),i&o&64&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),i&o&32&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),i&o&2&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),i&o&1&&(c=n.appendToParent(c,{type:`strong`,children:[]})),i&o&4&&(c=n.appendToParent(c,{type:`delete`,children:[]})),i&o&128&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&8&&!(i&8)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),o&64&&!(i&64)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),o&32&&!(i&32)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),o&2&&!(i&2)&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),o&1&&!(i&1)&&(c=n.appendToParent(c,{type:`strong`,children:[]})),o&4&&!(i&4)&&(c=n.appendToParent(c,{type:`delete`,children:[]})),o&128&&!(i&128)&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&16){n.appendToParent(c,{type:`inlineCode`,value:a});return}n.appendToParent(c,{type:`text`,value:a})}},nC={testNode:`break`,visitNode:function({lexicalParent:e}){e.append(Ho())}};function rC(e,t){return[{testNode:t=>t.type===`mdxJsxTextElement`&&t.name===e,visitNode({actions:e,mdastNode:n,lexicalParent:r}){e.addFormatting(t),e.visitChildren(n,r)}},{testNode:t=>t.type===`html`&&t.value===`<${e}>`,visitNode({actions:e,mdastParent:n}){e.addFormatting(t,n)}},{testNode:t=>t.type===`html`&&t.value===`</${e}>`,visitNode({actions:e,mdastParent:n}){e.removeFormatting(t,n)}}]}var iC={testNode:`delete`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(4),t.visitChildren(e,n)}},aC={testNode:`highlight`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(128),t.visitChildren(e,n)}},oC={testNode:`inlineCode`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(us(e.value).setFormat(t.getParentFormatting()|16))}},sC=[{testNode:`emphasis`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(2),t.visitChildren(e,n)}},{testNode:`strong`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(1),t.visitChildren(e,n)}},...rC(`u`,8),...rC(`code`,16),oC,iC,aC,...rC(`sup`,64),...rC(`sub`,32)],cC={testNode:Yy,visitNode:function({mdastNode:e,actions:t,lexicalParent:n}){e.name===`span`&&e.attributes.length===1&&e.attributes[0].type===`mdxJsxAttribute`&&e.attributes[0].name===`style`?(t.addStyle(e.attributes[0].value,e),t.visitChildren(e,n)):t.addAndStepInto(qS(e.name,e.type,e.attributes))},priority:-100},lC=[`listitem`,`admonition`],uC={testNode:`paragraph`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){lC.includes(t.getType())?n.visitChildren(e,t):n.addAndStepInto(sl())}},dC={testNode:`root`,visitNode({actions:e,mdastNode:t,lexicalParent:n}){e.visitChildren(t,n)}},fC={testNode:`text`,visitNode({mdastNode:e,actions:t}){let n=us(e.value);n.setFormat(t.getParentFormatting());let r=t.getParentStyle();r!==``&&n.setStyle(r),t.addAndStepInto(n)}},pC=()=>P.createElement(em,{externalHistoryState:Tn(jw)});function mC(e){return{canContainEols:[`comment`],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}}var hC=(e,t,n)=>{return r;function r(t){return e.enter(`comment`),e.consume(t),i}function i(t){return t===W.exclamationMark?(e.consume(t),a):n(t)}function a(t){return t===W.dash?(e.consume(t),o):n(t)}function o(t){return t===W.dash?(e.consume(t),s):n(t)}function s(t){return t===W.greaterThan?n(t):K(t)?u(t):(e.enter(G.data),t===W.dash?(e.consume(t),c):l(t))}function c(e){return e===W.greaterThan?n(e):l(e)}function l(t){return t===W.eof?n(t):t===W.dash?(e.consume(t),f):K(t)?(e.exit(G.data),u(t)):(e.consume(t),l)}function u(t){return e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),E_(e,d,G.linePrefix)}function d(t){return K(t)?u(t):(e.enter(G.data),l(t))}function f(t){return t===W.dash?(e.consume(t),p):l(t)}function p(n){return n===W.greaterThan?(e.exit(G.data),e.enter(`commentEnd`),e.consume(n),e.exit(`commentEnd`),e.exit(`comment`),t(n)):n===W.dash?(e.consume(n),p):l(n)}},gC={flow:{60:{tokenize:hC,concrete:!0}},text:{60:{tokenize:hC}}},_C={bold:`_bold_1tncs_10`,italic:`_italic_1tncs_14`,underline:`_underline_1tncs_18`,strikethrough:`_strikethrough_1tncs_34`,underlineStrikethrough:`_underlineStrikethrough_1tncs_38`,subscript:`_subscript_1tncs_42`,superscript:`_superscript_1tncs_47`,code:`_code_1tncs_52`,nestedListItem:`_nestedListItem_1tncs_59`,listitem:`_listitem_1tncs_69`,listItemChecked:`_listItemChecked_1tncs_73`,listItemUnchecked:`_listItemUnchecked_1tncs_74`,admonitionDanger:`_admonitionDanger_1tncs_151`,admonitionInfo:`_admonitionInfo_1tncs_152`,admonitionNote:`_admonitionNote_1tncs_153`,admonitionTip:`_admonitionTip_1tncs_154`,admonitionCaution:`_admonitionCaution_1tncs_155`,mdxExpression:`_mdxExpression_1tncs_188`},vC={text:{bold:_C.bold,italic:_C.italic,underline:_C.underline,code:_C.code,strikethrough:_C.strikethrough,subscript:_C.subscript,superscript:_C.superscript,underlineStrikethrough:_C.underlineStrikethrough},list:{listitem:_C.listitem,listitemChecked:_C.listItemChecked,listitemUnchecked:_C.listItemUnchecked,nested:{listitem:_C.nestedListItem}},admonition:{danger:_C.admonitionDanger,info:_C.admonitionInfo,note:_C.admonitionNote,tip:_C.admonitionTip,caution:_C.admonitionCaution}},yC=$i(`NESTED_EDITOR_UPDATED_COMMAND`),bC=bn(null),xC=bn(null),SC=bn(``),CC=bn(!0),wC=bn(!1,e=>{e.sub(e.pipe(wC,kn(bC)),([e,t])=>{t?.setEditable(!e)})}),TC=bn(``),EC=bn(!1),DC=bn(!1),OC=bn(0),kC=bn(null),AC=xn(e=>{e.link(e.pipe(kC,jn(e=>e!==null)),AC)}),jC=xn(e=>{e.sub(e.pipe(jC,kn(xC)),([e,t])=>{t?.dispatchCommand(da,e)})}),MC=bn(null,e=>{e.sub(e.pipe(MC,kn(xC)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:Dp(r,e=>{let t=e.getParent();return t!==null&&dd(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null){let t=Gm(i)?i.getTag():i.getType();e.pub(Mw,t)}})}),NC=bn(``),PC=bn(``),FC=bn(!1),IC=xn(e=>{e.link(PC,IC),e.sub(NC,t=>{e.pubIn({[FC]:!0,[PC]:t})})}),LC=xn(e=>{e.link(e.pipe(IC,kn(iw),jn(([,e])=>!e),On(([e])=>e)),LC)},!0),RC=bn([]),zC=bn([]),BC=bn([]),VC=bn([]),HC=bn([]),UC=bn([]),WC=bn({}),GC=bn(!1),KC=bn([]),qC=bn([]),JC=bn([]),YC=bn(null),XC=bn(null),ZC=bn(null),QC=mw(zC),$C=mw(RC),ew=mw(BC),tw=mw(VC),nw=mw(HC),rw=mw(UC),iw=bn(!1),aw=xn(e=>{e.sub(e.pipe(aw,kn(PC,bC,DC),jn(([e,t])=>e.trim()!==t.trim())),([t,,n,r])=>{e.pub(iw,!0),n?.update(()=>{Zl().clear(),vw(e,Zl(),t),r?n.focus():$l(null)},{onUpdate:()=>{e.pub(iw,!1)}})})}),ow=xn(e=>{e.sub(e.pipe(ow,kn(xC,DC)),([t,n,r])=>{n?.update(()=>{let i=B();if(i!==null){let n={children:[],append(e){this.children.push(e)},getType(){return i.getNodes()[0].getType()}};vw(e,n,t),Qs(n.children)}r?n.focus():$l(null)})})});function sw(){return Mn((e,[t,n])=>(e.forEach(e=>{if(!e)throw Error(`You have a subscription that does not return a teardown`);e()}),n?t.map(e=>e(n)):[]),[])}var cw=bn(null),lw=bn([],e=>{e.pipe(e.combine(lw,xC),sw())}),uw=bn([],e=>{e.pipe(e.combine(uw,bC),sw())}),dw=bn(null,Pn,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),fw=xn(),pw=bn(e=>{throw Error(`No icon component for ${e}`)});function mw(e,t){return xn((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),t?.(n,r)})}function hw(e){let t=B();z(t)&&e.pubIn({[MC]:t,[OC]:t.format})}var gw=mw(uw,(e,t)=>{e.pub(t,[t=>t.registerCommand(ea,(t,n)=>(e.pubIn({[xC]:n,[DC]:!0}),n._parentEditor===null&&n.getEditorState().read(()=>{e.pub(dw,{rootNode:Zl(),editorType:`lexical`,editorRef:n})}),hw(e),!1),4),t=>t.registerUpdateListener(({dirtyElements:n,dirtyLeaves:r,editorState:i})=>{if(e.getValue(kC)!==null||n.size===0&&r.size===0)return;let a;i.read(()=>{Zl().getLastChild()instanceof Uc&&t.update(()=>{Zl().append(sl())},{discrete:!0}),a=sb({root:Zl(),visitors:e.getValue(HC),jsxComponentDescriptors:e.getValue(KC),toMarkdownExtensions:e.getValue(UC),toMarkdownOptions:e.getValue(WC),jsxIsAvailable:e.getValue(GC)})}),e.pub(PC,a.trim()),e.pub(FC,!1)}),t=>t.registerCommand(Va,()=>(e.pub(DC,!0),!1),4)])}),_w=mw(lw,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{hw(e)})}),t=>t.registerCommand(Ha,t=>{let n=e.getValue(bC);return n&&(n.getRootElement()?.contains(t.relatedTarget)||e.pubIn({[DC]:!1,[fw]:t})),!1},4)])});function vw(e,t,n){try{BS({root:t,visitors:e.getValue(RC),mdastExtensions:e.getValue(VC),markdown:n,syntaxExtensions:e.getValue(BC),jsxComponentDescriptors:e.getValue(KC),directiveDescriptors:e.getValue(qC),codeBlockEditorDescriptors:e.getValue(JC)}),e.pub(kC,null)}catch(t){if(t instanceof LS||t instanceof RS)e.pubIn({[PC]:n,[kC]:{error:t.message,source:n}});else throw t}}var yw=bn([]),bw=mw(yw),xw=bn([]),Sw=mw(xw),Cw=bn([]),ww=mw(Cw),Tw=bn([]),Ew=mw(Tw),Dw=mw(bn([])),Ow=bn([]),kw=mw(Ow),Aw=bn(!1,e=>{e.link(e.pipe(xC,On(e=>[`td`,`th`].includes((e?.getRootElement()?.parentNode)?.nodeName.toLowerCase()??``))),Aw)}),jw=bn(Qp()),Mw=bn(``);xn();var Nw=xn(e=>{e.sub(e.pipe(Nw,kn(xC)),([e,t])=>{t?.update(()=>{let n=B();z(n)&&(op(n,e),setTimeout(()=>{t.focus()}))})})}),Pw=xn(e=>{e.sub(e.pipe(Pw,kn(xC)),([e,t])=>{t?.focus(()=>{t.getEditorState().read(()=>{z(B())&&(t.update(()=>{let t=e();t.isInline()?(Qs([t]),dd(t.getParentOrThrow())&&Ap(t,sl).selectEnd()):Op(t),setTimeout(()=>{`select`in t&&typeof t.select==`function`&&t.select()})}),setTimeout(()=>{t.dispatchCommand(yC,void 0)}))})},{defaultSelection:`rootEnd`})})}),Fw=bn(`rich-text`,e=>{function t(){return Mn((e,t)=>({current:e.next,next:t}),{current:`rich-text`,next:`rich-text`})}e.sub(e.pipe(Fw,t(),kn(Iw)),([{current:t},n])=>{(t===`source`||t===`diff`)&&e.pub(aw,n)}),e.sub(e.pipe(Fw,t(),jn(e=>e.current===`rich-text`),kn(xC)),([,e])=>{e?.dispatchCommand(yC,void 0)})}),Iw=bn(``,e=>{e.link(PC,Iw),e.link(Iw,IC)},!0),Lw=bn([]),Rw=mw(Lw),zw=bn(()=>{throw Error(`No translation function provided`)}),Bw=bn(vC),Vw=Fn({init(e,t){let n=t?.initialMarkdown??``;e.register(gw),e.register(_w),e.register(IC),e.register(Iw),e.pubIn({[NC]:t?.trim?n.trim():n,[pw]:t?.iconComponentFor,[$C]:[dC,uC,fC,nC,...sC],[QC]:[al,es,KS],[nw]:[QS,ZS,tC,XS,YS],[SC]:t?.contentEditableClassName,[CC]:t?.spellCheck,[WC]:t?.toMarkdownOptions,[EC]:t?.autoFocus,[TC]:t?.placeholder,[wC]:t?.readOnly,[zw]:t?.translation,[tw]:[Eh(),Nh],[ew]:[wh(),y_()],[rw]:[hg(),Dh(),Ih],[Bw]:t?.lexicalTheme??vC}),e.singletonSub(AC,t?.onError),e.singletonSub(LC,n=>{t?.onChange(n,e.getValue(FC))}),e.singletonSub(fw,t?.onBlur),t?.suppressHtmlProcessing||e.pubIn({[tw]:[mg(),mC()],[ew]:[rv(),iv(),gC],[$C]:cC}),t?.suppressSharedHistory||e.pub(bw,pC)},postInit(e,t){let n=fl({editable:t?.readOnly!==!0,namespace:t?.lexicalEditorNamespace??`MDXEditor`,nodes:[...e.getValue(zC),...t?.additionalLexicalNodes??[]],onError:e=>{throw e},theme:e.getValue(Bw)});t?.editorState!==null&&n.update(()=>{let r=t?.initialMarkdown.trim()??``;vw(e,Zl(),r);let i=t?.autoFocus;if(i){if(i===!0){setTimeout(()=>{n.focus(Pn,{defaultSelection:`rootStart`})});return}setTimeout(()=>{n.focus(Pn,{defaultSelection:i.defaultSelection??`rootStart`})})}}),e.pub(bC,n),e.pub(xC,n)},update(e,t){e.pubIn({[SC]:t?.contentEditableClassName,[CC]:t?.spellCheck,[WC]:t?.toMarkdownOptions,[EC]:t?.autoFocus,[TC]:t?.placeholder,[wC]:t?.readOnly}),e.singletonSub(LC,n=>{t?.onChange(n,e.getValue(FC))}),e.singletonSub(fw,t?.onBlur),e.singletonSub(AC,t?.onError)}});function Hw(){return Tn(zw)}function Uw(){return Zl().getTextContent()}function Ww(e,t=!0){if(e)return!1;let n=Uw();return t&&(n=n.trim()),n===``}function Gw(e){if(!Ww(e,!1))return!1;let t=Zl().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if(Wc(n))return!1;if(V(n)){if(!cl(n)||n.__indent!==0)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!R(n))return!1}}}return!0}function Kw(e){return()=>Gw(e)}var qw=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?P.useLayoutEffect:P.useEffect;function Jw(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function Yw({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaErrorMessage:a,ariaExpanded:o,ariaInvalid:s,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:m,id:h,role:g=`textbox`,spellCheck:_=!0,style:v,tabIndex:y,"data-testid":b,...x},S){let[C,w]=(0,P.useState)(e.isEditable()),T=(0,P.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=(0,P.useMemo)(()=>Jw(S,T),[T,S]);return qw(()=>(w(e.isEditable()),e.registerEditableListener(e=>{w(e)})),[e]),(0,F.jsx)(`div`,{"aria-activedescendant":C?t:void 0,"aria-autocomplete":C?n:`none`,"aria-controls":C?r:void 0,"aria-describedby":i,...a==null?{}:{"aria-errormessage":a},"aria-expanded":C&&g===`combobox`?!!o:void 0,...s==null?{}:{"aria-invalid":s},"aria-label":c,"aria-labelledby":l,"aria-multiline":u,"aria-owns":C?d:void 0,"aria-readonly":C?void 0:!0,"aria-required":f,autoCapitalize:p,className:m,contentEditable:C,"data-testid":b,id:h,ref:E,role:g,spellCheck:_,style:v,tabIndex:y,...x})}var Xw=(0,P.forwardRef)(Yw);function Zw(e){return e.getEditorState().read(Kw(e.isComposing()))}function Qw(e){let[t,n]=(0,P.useState)(()=>Zw(e));return qw(()=>{function t(){n(Zw(e))}return t(),yp(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}var $w=(0,P.forwardRef)(eT);function eT(e,t){let{placeholder:n,...r}=e,[i]=Bn();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xw,{editor:i,...r,ref:t}),n!=null&&(0,F.jsx)(tT,{editor:i,content:n})]})}function tT({content:e,editor:t}){let n=Qw(t),[r,i]=(0,P.useState)(t.isEditable());if((0,P.useLayoutEffect)(()=>(i(t.isEditable()),t.registerEditableListener(e=>{i(e)})),[t]),!n)return null;let a=null;return typeof e==`function`?a=e(r):e!==null&&(a=e),a===null?null:(0,F.jsx)(`div`,{"aria-hidden":!0,children:a})}function nT(e,t){return nT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nT(e,t)}function rT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nT(e,t)}var iT=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),e.length!==t.length||e.some(function(e,n){return!Object.is(e,t[n])})},aT={error:null},oT=function(e){rT(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.state=aT,t.resetErrorBoundary=function(){var e,n=[...arguments];t.props.onReset==null||(e=t.props).onReset.apply(e,n),t.reset()},t}t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(aT)},n.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n=this.state.error,r=this.props.resetKeys;if(n!==null&&t.error!==null&&iT(e.resetKeys,r)){var i,a;(i=(a=this.props).onResetKeysChange)==null||i.call(a,e.resetKeys,r),this.reset()}},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,i=t.fallback;if(e!==null){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(P.isValidElement(i))return i;if(typeof n==`function`)return n(a);if(r)return P.createElement(r,a);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},t}(P.Component);function sT({children:e,onError:t}){return(0,F.jsx)(oT,{fallback:(0,F.jsx)(`div`,{style:{border:`1px solid #f00`,color:`#f00`,padding:`8px`},children:`An error was thrown.`}),onError:t,children:e})}var cT=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?P.useLayoutEffect:P.useEffect;function lT(e){let[t]=Bn(),n=(0,P.useMemo)(()=>e(t),[t,e]),[r,i]=(0,P.useState)(()=>n.initialValueFn()),a=(0,P.useRef)(r);return cT(()=>{let{initialValueFn:e,subscribe:t}=n,r=e();return a.current!==r&&(a.current=r,i(r)),t(e=>{a.current=e,i(e)})},[n,e]),r}function uT(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function dT(){return lT(uT)}function fT(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if(typeof i==`string`){let t;try{t=JSON.parse(i)}catch{return}if(t&&t.protocol===`nuanria_messaging`&&t.type===`request`){let r=t.payload;if(r&&r.functionId===`makeChanges`){let t=r.args;if(t){let[r,i,a,o,s,c]=t;e.update(()=>{let e=B();if(z(e)){let t=e.anchor,c=t.getNode(),l=0,u=0;if(R(c)&&r>=0&&i>=0&&(l=r,u=r+i,e.setTextNodeRange(c,l,c,u)),(l!==u||a!==``)&&(e.insertRawText(a),c=t.getNode()),R(c)){l=o,u=o+s;let t=c.getTextContentSize();l=l>t?t:l,u=u>t?t:u,e.setTextNodeRange(c,l,c,u)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener(`message`,n,!0),()=>{window.removeEventListener(`message`,n,!0)}}var pT=gt(St(),1),mT=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?P.useLayoutEffect:P.useEffect;function hT(e){return e.getEditorState().read(Kw(e.isComposing()))}function eee(e){let[t,n]=(0,P.useState)(()=>hT(e));return mT(()=>{function t(){n(hT(e))}return t(),yp(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}function tee(e,t){let[n,r]=(0,P.useState)(()=>e.getDecorators());return mT(()=>e.registerDecoratorListener(e=>{(0,pT.flushSync)(()=>{r(e)})}),[e]),(0,P.useEffect)(()=>{r(e.getDecorators())},[e]),(0,P.useMemo)(()=>{let r=[],i=Object.keys(n);for(let a=0;a<i.length;a++){let o=i[a],s=(0,F.jsx)(t,{onError:t=>e._onError(t),children:(0,F.jsx)(P.Suspense,{fallback:null,children:n[o]})}),c=e.getElementByKey(o);c!==null&&r.push((0,pT.createPortal)(s,c,o))}return r},[t,n,e])}function nee(e){mT(()=>yp(eh(e),fT(e)),[e])}function gT({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){let[r]=Bn(),i=tee(r,n);return nee(r),(0,F.jsxs)(F.Fragment,{children:[e,(0,F.jsx)(ree,{content:t}),i]})}function ree({content:e}){let[t]=Bn(),n=eee(t),r=dT();return n?typeof e==`function`?e(r):e:null}var iee=pt(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),aee={undo:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z`,fill:`currentColor`})),redo:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z`,fill:`currentColor`})),format_bold:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z`,fill:`currentColor`})),format_italic:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z`,fill:`currentColor`})),format_underlined:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z`,fill:`currentColor`})),format_highlight:P.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`},P.createElement(`path`,{d:`m9 11-6 6v3h9l3-3`}),P.createElement(`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`})),code:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z`,fill:`currentColor`})),strikeThrough:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z`,fill:`currentColor`})),superscript:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 11.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z`,fill:`currentColor`})),subscript:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z`,fill:`currentColor`})),format_list_bulleted:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.01258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z`,fill:`currentColor`})),format_list_numbered:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z`,fill:`currentColor`})),format_list_checked:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z`,fill:`currentColor`})),link:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z`,fill:`currentColor`})),add_photo:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z`,fill:`currentColor`})),table:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.6615V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z`,fill:`currentColor`})),horizontal_rule:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M4.5 12.75V11.25H19.5V12.75H4.5Z`,fill:`currentColor`})),frontmatter:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M4.5 8.75V7.25H8.5V8.75H4.5Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M4.5 14.75V13.25H8.5V14.75H4.5Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M9.5 8.75V7.25H13.5V8.75H9.5Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M9.5 14.75V13.25H13.5V14.75H9.5Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M14.5 8.75V7.25H18.5V8.75H14.5Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M14.5 14.75V13.25H18.5V14.75H14.5Z`,fill:`currentColor`})),frame_source:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z`,fill:`currentColor`})),arrow_drop_down:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z`,fill:`currentColor`})),admonition:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z`,fill:`currentColor`})),sandpack:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.68262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z`,fill:`currentColor`})),rich_text:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z`,fill:`currentColor`}),P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M12.5 7H17.5V8.25H12.5V7Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M12.5 9.25H17.5V10.5H12.5V9.25Z`,fill:`currentColor`})),difference:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),P.createElement(`rect`,{x:`9`,y:`10`,width:`5.5`,height:`1.5`,fill:`currentColor`}),P.createElement(`rect`,{x:`9`,y:`15`,width:`5.5`,height:`1.5`,fill:`currentColor`}),P.createElement(`rect`,{x:`11`,y:`8`,width:`1.5`,height:`5.5`,fill:`currentColor`})),markdown:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z`,fill:`currentColor`})),open_in_new:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z`,fill:`currentColor`})),link_off:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z`,fill:`currentColor`})),edit:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.18275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z`,fill:`currentColor`})),content_copy:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z`,fill:`currentColor`})),more_horiz:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z`,fill:`currentColor`})),more_vert:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z`,fill:`currentColor`})),close:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z`,fill:`currentColor`})),settings:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.991 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z`,fill:`currentColor`})),delete_big:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),delete_small:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),format_align_center:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_left:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_right:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z`,fill:`currentColor`})),add_row:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z`,fill:`currentColor`})),add_column:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z`,fill:`currentColor`}),P.createElement(`path`,{d:`M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z`,fill:`currentColor`})),insert_col_left:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z`,fill:`currentColor`})),insert_row_above:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z`,fill:`currentColor`})),insert_row_below:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V17.8076H4.61523V15.6924H2.49998V14.1924Z`,fill:`currentColor`})),insert_col_right:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z`,fill:`currentColor`})),check:P.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},P.createElement(`path`,{d:`M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z`,fill:`currentColor`}))},J={editorRoot:`_editorRoot_1e2ox_53`,editorWrapper:`_editorWrapper_1e2ox_155`,toolbarRoot:`_toolbarRoot_1e2ox_162`,readOnlyToolbarRoot:`_readOnlyToolbarRoot_1e2ox_189`,toolbarToggleItem:`_toolbarToggleItem_1e2ox_208`,toolbarGroupOfGroups:`_toolbarGroupOfGroups_1e2ox_219`,toolbarToggleSingleGroup:`_toolbarToggleSingleGroup_1e2ox_224`,toolbarButton:`_toolbarButton_1e2ox_239`,activeToolbarButton:`_activeToolbarButton_1e2ox_275`,toolbarButtonDropdownContainer:`_toolbarButtonDropdownContainer_1e2ox_286`,selectContainer:`_selectContainer_1e2ox_288`,selectItem:`_selectItem_1e2ox_301`,toolbarButtonSelectTrigger:`_toolbarButtonSelectTrigger_1e2ox_307`,selectTrigger:`_selectTrigger_1e2ox_308`,selectDropdownArrow:`_selectDropdownArrow_1e2ox_374`,contentEditable:`_contentEditable_1e2ox_380`,codeMirrorWrapper:`_codeMirrorWrapper_1e2ox_392`,sandPackWrapper:`_sandPackWrapper_1e2ox_401`,codeMirrorToolbar:`_codeMirrorToolbar_1e2ox_409`,propertyPanelTitle:`_propertyPanelTitle_1e2ox_431`,propertyEditorTable:`_propertyEditorTable_1e2ox_439`,iconButton:`_iconButton_1e2ox_457`,readOnlyColumnCell:`_readOnlyColumnCell_1e2ox_462`,buttonsFooter:`_buttonsFooter_1e2ox_475`,propertyEditorInput:`_propertyEditorInput_1e2ox_481`,primaryButton:`_primaryButton_1e2ox_507`,secondaryButton:`_secondaryButton_1e2ox_508`,smallButton:`_smallButton_1e2ox_523`,dialogForm:`_dialogForm_1e2ox_535`,linkDialogEditForm:`_linkDialogEditForm_1e2ox_541`,linkDialogInputContainer:`_linkDialogInputContainer_1e2ox_549`,linkDialogInputWrapper:`_linkDialogInputWrapper_1e2ox_555`,linkDialogInput:`_linkDialogInput_1e2ox_549`,linkDialogAnchor:`_linkDialogAnchor_1e2ox_587`,linkDialogPopoverContent:`_linkDialogPopoverContent_1e2ox_601`,tableColumnEditorPopoverContent:`_tableColumnEditorPopoverContent_1e2ox_602`,dialogContent:`_dialogContent_1e2ox_603`,largeDialogContent:`_largeDialogContent_1e2ox_615`,dialogTitle:`_dialogTitle_1e2ox_625`,dialogCloseButton:`_dialogCloseButton_1e2ox_631`,popoverContent:`_popoverContent_1e2ox_638`,popoverArrow:`_popoverArrow_1e2ox_650`,linkDialogPreviewAnchor:`_linkDialogPreviewAnchor_1e2ox_654`,tooltipTrigger:`_tooltipTrigger_1e2ox_677`,tooltipContent:`_tooltipContent_1e2ox_681`,actionButton:`_actionButton_1e2ox_695`,primaryActionButton:`_primaryActionButton_1e2ox_702`,tableEditor:`_tableEditor_1e2ox_714`,toolCell:`_toolCell_1e2ox_725`,tableColumnEditorTrigger:`_tableColumnEditorTrigger_1e2ox_744`,addRowButton:`_addRowButton_1e2ox_746`,addColumnButton:`_addColumnButton_1e2ox_747`,tableColumnEditorToolbar:`_tableColumnEditorToolbar_1e2ox_789`,toggleGroupRoot:`_toggleGroupRoot_1e2ox_802`,tableToolsColumn:`_tableToolsColumn_1e2ox_820`,leftAlignedCell:`_leftAlignedCell_1e2ox_829`,rightAlignedCell:`_rightAlignedCell_1e2ox_833`,centeredCell:`_centeredCell_1e2ox_837`,dialogOverlay:`_dialogOverlay_1e2ox_870`,focusedImage:`_focusedImage_1e2ox_916`,imageWrapper:`_imageWrapper_1e2ox_920`,editImageToolbar:`_editImageToolbar_1e2ox_933`,editImageButton:`_editImageButton_1e2ox_937`,inlineEditor:`_inlineEditor_1e2ox_943`,blockEditor:`_blockEditor_1e2ox_952`,nestedEditor:`_nestedEditor_1e2ox_961`,genericComponentName:`_genericComponentName_1e2ox_980`,diffSourceToggleWrapper:`_diffSourceToggleWrapper_1e2ox_986`,ggDiffSourceToggle:`_ggDiffSourceToggle_1e2ox_994`,diffSourceToggle:`_diffSourceToggle_1e2ox_986`,selectWithLabel:`_selectWithLabel_1e2ox_1012`,toolbarTitleMode:`_toolbarTitleMode_1e2ox_1027`,imageControlWrapperResizing:`_imageControlWrapperResizing_1e2ox_1032`,imageResizer:`_imageResizer_1e2ox_1036`,imageResizerN:`_imageResizerN_1e2ox_1045`,imageResizerNe:`_imageResizerNe_1e2ox_1051`,imageResizerE:`_imageResizerE_1e2ox_1057`,imageResizerSe:`_imageResizerSe_1e2ox_1063`,imageResizerS:`_imageResizerS_1e2ox_1063`,imageResizerSw:`_imageResizerSw_1e2ox_1075`,imageResizerW:`_imageResizerW_1e2ox_1081`,imageResizerNw:`_imageResizerNw_1e2ox_1087`,imagePlaceholder:`_imagePlaceholder_1e2ox_1093`,imageDimensionsContainer:`_imageDimensionsContainer_1e2ox_1101`,placeholder:`_placeholder_1e2ox_1106`,rootContentEditableWrapper:`_rootContentEditableWrapper_1e2ox_1119`,downshiftInputWrapper:`_downshiftInputWrapper_1e2ox_1129`,downshiftInput:`_downshiftInput_1e2ox_1129`,downshiftAutocompleteContainer:`_downshiftAutocompleteContainer_1e2ox_1160`,textInput:`_textInput_1e2ox_1206`,multiFieldForm:`_multiFieldForm_1e2ox_1214`,formField:`_formField_1e2ox_1220`,markdownParseError:`_markdownParseError_1e2ox_1231`,popupContainer:`_popupContainer_1e2ox_1240`,inputSizer:`_inputSizer_1e2ox_1245`};function oee(e){throw Error(e)}var see=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),_T=class e extends Vc{static getType(){return`link`}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}createDOM(e){let t=document.createElement(`a`);return this.updateLinkDOM(null,t,e),Sp(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Cd(t)){(!e||e.__url!==this.__url)&&(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];(!e||e[r]!==i)&&(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:cee,priority:1})}}static importJSON(e){return vT().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=kT(e);try{let t=new URL(kT(e));if(!see.has(t.protocol))return`about:blank`}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=vT(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!z(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}};function cee(e){let t=null;if(Cd(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=vT(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function vT(e=``,t){return pd(new _T(e,t))}function yT(e){return e instanceof _T}var bT=class e extends _T{constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null?t.isUnlinked:!1}static getType(){return`autolink`}static clone(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return xT().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if(V(n)){let e=xT(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}};function xT(e=``,t){return pd(new bT(e,t))}function ST(e){return e instanceof bT}var CT=$i(`TOGGLE_LINK_COMMAND`);function wT(e,t){if(e.type===`element`){let n=e.getNode();return V(n)||oee(`$getPointNode: element point is not an ElementNode`),n.getChildren()[e.offset+t]||null}return null}function TT(e){let t=B();if(!z(t))return e();let n=ui(t),r=n.isBackward(),i=wT(n.anchor,r?-1:0),a=wT(n.focus,r?0:-1),o=e();if(i||a){let e=B();if(z(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}$l(ui(t))}}return o}function ET(e,t={}){let{target:n,title:r}=t,i=t.rel===void 0?`noreferrer`:t.rel,a=B();if(a===null||!z(a)&&!Ss(a))return;if(Ss(a)){let t=a.getNodes();if(t.length===0)return;t.forEach(t=>{if(e===null){let e=Dp(t,e=>!ST(e)&&yT(e));e&&(e.insertBefore(t),e.getChildren().length===0&&e.remove())}else{let r=Dp(t,e=>!ST(e)&&yT(e));if(r)r.setURL(e),n!==void 0&&r.setTarget(n),i!==void 0&&r.setRel(i);else{let r=vT(e,{rel:i,target:n});t.insertBefore(r),r.append(t)}}});return}let o=a.extract();if(e===null){o.forEach(e=>{let t=Dp(e,e=>!ST(e)&&yT(e));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});return}let s=new Set,c=t=>{s.has(t.getKey())||(s.add(t.getKey()),t.setURL(e),n!==void 0&&t.setTarget(n),i!==void 0&&t.setRel(i),r!==void 0&&t.setTitle(r))};if(o.length===1){let e=o[0],t=DT(e,yT);if(t!==null)return c(t)}TT(()=>{let t=null;for(let a of o){if(!a.isAttached())continue;let o=DT(a,yT);if(o){c(o);continue}if(V(a)){if(!a.isInline())continue;if(yT(a)){if(!ST(a)&&(t===null||!t.getParentOrThrow().isParentOf(a))){c(a),t=a;continue}for(let e of a.getChildren())a.insertBefore(e);a.remove();continue}}let s=a.getPreviousSibling();if(yT(s)&&s.is(t)){s.append(a);continue}t=vT(e,{rel:i,target:n,title:r}),a.insertAfter(t),t.append(a)}})}function DT(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}var OT=/^\+?[0-9\s()-]{5,}$/;function kT(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:OT.test(e)?`tel:${e}`:`https://${e}`}function AT(e){throw Error(e)}function jT(e){let t=1,n=e.getParent();for(;n!=null;){if(eE(n)){let e=n.getParent();if(cE(e)){t++,n=e.getParent();continue}AT(`A ListItemNode must have a ListNode for a parent.`)}return t}return t}function MT(e){let t=e.getParent();cE(t)||AT(`A ListItemNode must have a ListNode for a parent.`);let n=t;for(;n!==null;)n=n.getParent(),cE(n)&&(t=n);return t}function NT(e){let t=[],n=e.getChildren().filter(eE);for(let e=0;e<n.length;e++){let r=n[e],i=r.getFirstChild();cE(i)?t=t.concat(NT(i)):t.push(r)}return t}function PT(e){return eE(e)&&cE(e.getFirstChild())}function FT(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!(eE(e)||cE(e)))break;t=e}t.remove()}function IT(e){return $T().append(e)}function LT(e,t){return eE(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function RT(e){let t=B();if(t!==null){let n=t.getNodes();if(z(t)){let r=t.getStartEndPoints();r===null&&AT(`insertList: anchor should be defined`);let[i]=r,a=i.getNode(),o=a.getParent();if(dd(a)){let e=a.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=sl();a.append(e),n=e.select().getNodes()}}else if(LT(a,n)){let t=sE(e);if(dd(o)){a.replace(t);let e=$T();V(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),t.append(e)}else if(eE(a)){let e=a.getParentOrThrow();zT(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let i=n[t];if(V(i)&&i.isEmpty()&&!eE(i)&&!r.has(i.getKey())){BT(i,e);continue}let a=Pl(i)?i.getParent():eE(i)&&i.isEmpty()?i:null;for(;a!=null;){let t=a.getKey();if(cE(a)){if(!r.has(t)){let n=sE(e);zT(n,a.getChildren()),a.replace(n),r.add(t)}break}else{let n=a.getParent();if(dd(n)&&!r.has(t)){r.add(t),BT(a,e);break}a=n}}}}}function zT(e,t){e.splice(e.getChildrenSize(),0,t)}function BT(e,t){if(cE(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=$T();zT(i,e.getChildren());let a;if(cE(n)&&t===n.getListType())n.append(i),cE(r)&&t===r.getListType()&&(zT(n,r.getChildren()),r.remove()),a=n;else if(cE(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),a=r;else{let n=sE(t);n.append(i),e.replace(n),a=n}return i.setFormat(e.getFormatType()),i.setIndent(e.getIndent()),e.remove(),a}function VT(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&PT(n)&&PT(r)&&(VT(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function HT(){let e=B();if(z(e)){let t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(LT(r,n))t.add(MT(r));else for(let e=0;e<n.length;e++){let r=n[e];if(Pl(r)){let e=Tp(r,YT);e!=null&&t.add(MT(e))}}for(let n of t){let t=n,r=NT(n);for(let n of r){let r=sl().setTextStyle(e.style).setTextFormat(e.format);zT(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&jf(e.anchor,Vf(mf(r,`next`))),n.__key===e.focus.key&&jf(e.focus,Vf(mf(r,`next`))),n.remove()}n.remove()}}}function UT(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())eE(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),cE(r.getFirstChild())||n++)}function WT(e){let t=e.getNextSibling();cE(t)&&e.getListType()===t.getListType()&&VT(e,t)}function GT(e){let t=new Set;if(PT(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(PT(r)&&PT(i)){let n=i.getFirstChild();if(cE(n)){n.append(e);let i=r.getFirstChild();cE(i)&&(zT(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(PT(r)){let t=r.getFirstChild();if(cE(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(PT(i)){let t=i.getFirstChild();cE(t)&&t.append(e)}else if(cE(n)){let t=$T().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),a=sE(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function KT(e){if(PT(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(cE(n?n.getParent():void 0)&&eE(n)&&cE(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=$T(),a=sE(r);i.append(a),e.getPreviousSiblings().forEach(e=>a.append(e));let o=$T(),s=sE(r);o.append(s),zT(s,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}function qT(){let e=B();if(!z(e)||!e.isCollapsed())return!1;let t=e.anchor.getNode();if(!eE(t)||t.getChildrenSize()!==0)return!1;let n=MT(t),r=t.getParent();cE(r)||AT(`A ListItemNode must have a ListNode for a parent.`);let i=r.getParent(),a;if(dd(i))a=sl(),n.insertAfter(a);else if(eE(i))a=$T(),i.insertAfter(a);else return!1;a.setTextStyle(e.style).setTextFormat(e.format).select();let o=t.getNextSiblings();if(o.length>0){let e=sE(r.getListType());if(eE(a)){let t=$T();t.append(e),a.insertAfter(t)}else a.insertAfter(e);e.append(...o)}return FT(t),!0}function JT(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function lee(e,t,n){let r=Qf(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in Qf(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}var YT=class extends Vc{$config(){return this.config(`listitem`,{$transform:e=>{if(e.__checked==null)return;let t=e.getParent();cE(t)&&t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0)},extends:Vc,importDOM:Io({li:()=>({conversion:ZT,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let r=this.getParent();cE(r)&&r.getListType()===`check`&&XT(t,this,e),t.value=this.__value,uee(t,n.theme,this);let i=e?e.__style:``,a=this.__style;i!==a&&(a===``?t.removeAttribute(`style`):t.style.cssText=a),lee(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(V(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(eE(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!cE(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=sE(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(V(e)||AT(`includeChildren should only be true for ElementNodes`),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),n.getChildrenSize()===0&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(cE(n)||AT(`insertAfter: list node is not parent of list item node`),eE(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),r.length!==0){let i=sE(n.getListType());r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&PT(t)&&PT(n)&&(VT(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=$T().updateFromJSON(this.exportJSON()).setChecked(this.getChecked()?!1:void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=sl();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=eE(r);if(n.getChildrenSize()===1)if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,a=t.getKey();r.type===`element`&&r.getNode().is(this)&&r.set(a,r.offset,`element`),i.type===`element`&&i.getNode().is(this)&&i.set(a,i.offset,`element`)}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return cE(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;eE(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&AT(`Invalid indent value.`),e=Math.floor(e),e>=0||AT(`Indent value must be non-negative.`);let t=this.getIndent();for(;t!==e;)t<e?(GT(this),t++):(KT(this),t--);return this}canInsertAfter(e){return eE(e)}canReplaceWith(e){return eE(e)}canMergeWith(e){return eE(e)||cl(e)}extractWithChild(e,t){if(!z(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return sE(`bullet`)}canMergeWhenEmpty(){return!0}};function uee(e,t,n){let r=[],i=[],a=t.list,o=a?a.listitem:void 0,s;if(a&&a.nested&&(s=a.nested.listitem),o!==void 0&&r.push(...JT(o)),a){let e=n.getParent(),t=cE(e)&&e.getListType()===`check`,o=n.getChecked();(!t||o)&&i.push(a.listitemUnchecked),(!t||!o)&&i.push(a.listitemChecked),t&&r.push(o?a.listitemChecked:a.listitemUnchecked)}if(s!==void 0){let e=JT(s);n.getChildren().some(e=>cE(e))?r.push(...e):i.push(...e)}i.length>0&&Cp(e,...i),r.length>0&&Sp(e,...r)}function XT(e,t,n,r){cE(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),(!n||t.__checked!==n.__checked)&&e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))}function ZT(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return QT(t)}let t=e.getAttribute(`aria-checked`);return{node:$T(t===`true`?!0:t===`false`?!1:void 0)}}function QT(e){return e.getAttribute(`type`)===`checkbox`?{node:$T(e.hasAttribute(`checked`))}:{node:null}}function $T(e){return pd(new YT(void 0,e))}function eE(e){return e instanceof YT}var tE=class extends Vc{$config(){return this.config(`list`,{$transform:e=>{WT(e),UT(e)},extends:Vc,importDOM:Io({ol:()=>({conversion:aE,priority:0}),ul:()=>({conversion:aE,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=oE[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,nE(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag===this.__tag?(nE(t,n.theme,this),!1):!0}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return wd(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];eE(t)||(r===n&&(r=[...n]),r[e]=$T().append(V(t)&&!(cE(t)||t.isInline())?us(t.getTextContent()):t))}return super.splice(e,t,r)}extractWithChild(e){return eE(e)}};function nE(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=jT(n)-1,o=t%e.length,s=e[o],c=a[n.__tag],l,u=a.nested,d=a.checklist;if(u!==void 0&&u.list&&(l=u.list),c!==void 0&&r.push(c),d!==void 0&&n.__listType===`check`&&r.push(d),s!==void 0){r.push(...JT(s));for(let t=0;t<e.length;t++)t!==o&&i.push(n.__tag+t)}if(l!==void 0){let e=JT(l);t>1?r.push(...e):i.push(...e)}}i.length>0&&Cp(e,...i),r.length>0&&Sp(e,...r)}function rE(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(eE(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach(e=>{cE(e)&&t.push(IT(e))})}else t.push(IT(r))}return t}function iE(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`))return!0;for(let t of e.childNodes)if(wd(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}function aE(e){let t=e.nodeName.toLowerCase(),n=null;if(t===`ol`){let t=e.start;n=sE(`number`,t)}else t===`ul`&&(n=iE(e)?sE(`check`):sE(`bullet`));return{after:rE,node:n}}var oE={ol:`number`,ul:`bullet`};function sE(e=`number`,t=1){return pd(new tE(e,t))}function cE(e){return e instanceof tE}var lE=$i(`INSERT_CHECK_LIST_COMMAND`);function uE(e){return yp(e.registerCommand(lE,()=>(RT(`check`),!0),1),e.registerCommand(ya,t=>gE(t,e,!1),1),e.registerCommand(va,t=>gE(t,e,!0),1),e.registerCommand(Ca,()=>mE()==null?!1:(e.getRootElement()?.focus(),!0),1),e.registerCommand(xa,t=>{let n=mE();return n!=null&&e.isEditable()?(e.update(()=>{let e=ql(n);eE(e)&&(t.preventDefault(),e.toggleChecked())}),!0):!1},1),e.registerCommand(ga,t=>e.getEditorState().read(()=>{let n=B();if(z(n)&&n.isCollapsed()){let{anchor:r}=n,i=r.type===`element`;if(i||r.offset===0){let n=r.getNode(),a=Dp(n,e=>V(e)&&!e.isInline());if(eE(a)){let r=a.getParent();if(cE(r)&&r.getListType()===`check`&&(i||a.getFirstDescendant()===n)){let n=e.getElementByKey(a.__key);if(n!=null&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}),1),e.registerRootListener((e,t)=>{e!==null&&(e.addEventListener(`click`,fE),e.addEventListener(`pointerdown`,pE)),t!==null&&(t.removeEventListener(`click`,fE),t.removeEventListener(`pointerdown`,pE))}))}function dE(e,t){let n=e.target;if(!wd(n))return;let r=n.firstChild;if(wd(r)&&(r.tagName===`UL`||r.tagName===`OL`))return;let i=n.parentNode;if(!i||i.__lexicalListType!==`check`)return;let a=n.getBoundingClientRect(),o=Fp(n),s=e.clientX/o,c=window.getComputedStyle?window.getComputedStyle(n,`::before`):{width:`0px`},l=parseFloat(c.width),u=e.pointerType===`touch`?32:0;(n.dir===`rtl`?s<a.right+u&&s>a.right-l-u:s>a.left-u&&s<a.left+l+u)&&t()}function fE(e){dE(e,()=>{if(wd(e.target)){let t=e.target,n=El(t);n!=null&&n.isEditable()&&n.update(()=>{let e=ql(t);eE(e)&&(t.focus(),e.toggleChecked())})}})}function pE(e){dE(e,()=>{e.preventDefault()})}function mE(){let e=document.activeElement;return wd(e)&&e.tagName===`LI`&&e.parentNode!=null&&e.parentNode.__lexicalListType===`check`?e:null}function hE(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;n==null&&eE(r);)r=r.getParentOrThrow().getParent(),r!=null&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;eE(n);){let e=t?n.getLastChild():n.getFirstChild();if(!cE(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}function gE(e,t,n){let r=mE();return r!=null&&t.update(()=>{let i=ql(r);if(!eE(i))return;let a=hE(i,n);if(a!=null){a.selectStart();let n=t.getElementByKey(a.__key);n!=null&&(e.preventDefault(),setTimeout(()=>{n.focus()},0))}}),!1}var _E=$i(`UPDATE_LIST_START_COMMAND`),vE=$i(`INSERT_UNORDERED_LIST_COMMAND`),yE=$i(`INSERT_ORDERED_LIST_COMMAND`),bE=$i(`REMOVE_LIST_COMMAND`);function xE(e){return yp(e.registerCommand(yE,()=>(RT(`number`),!0),1),e.registerCommand(_E,e=>{let{listNodeKey:t,newStart:n}=e,r=Ul(t);return cE(r)?(r.getListType()===`number`&&(r.setStart(n),UT(r)),!0):!1},1),e.registerCommand(vE,()=>(RT(`bullet`),!0),1),e.registerCommand(bE,()=>(HT(),!0),1),e.registerCommand(aa,()=>qT(),1),e.registerNodeTransform(YT,e=>{let t=e.getFirstChild();if(t){if(R(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=B();z(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(es,e=>{let t=e.getParent();if(eE(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();(n!==t.getTextStyle()||r!==t.getTextFormat())&&t.setTextStyle(n).setTextFormat(r)}}))}function SE(e){let t=e=>{let t=e.getParent();if(cE(e.getFirstChild())||!cE(t))return;let n=Dp(e,e=>eE(e)&&cE(e.getParent())&&eE(e.getPreviousSibling()));if(n===null&&e.getIndent()>0)e.setIndent(0);else if(eE(n)){let r=n.getPreviousSibling();if(eE(r)){let n=CE(r).getParent();if(cE(n)){let r=jT(n),i=jT(t);r+1<i&&e.setIndent(r)}}}};return e.registerNodeTransform(tE,e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(cE(e)){for(let r of e.getChildren())if(eE(r)){t(r);let e=r.getFirstChild();cE(e)&&n.push(e)}}}})}function CE(e){let t=e,n=t.getFirstChild();for(;cE(n);){let e=n.getLastChild();if(eE(e))t=e,n=t.getFirstChild();else break}return t}function wE(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();return r===i?r:e.isBackward()?rp(n)?r:i:rp(t)?r:i}catch{return null}}var TE=[`transform`,`perspective`,`filter`,`backdrop-filter`,`contain`,`container-type`],EE=[`layout`,`paint`,`strict`,`content`];function DE(e){let t=e?.parentElement;for(;t;){let e=window.getComputedStyle(t),n=e.willChange.split(`,`).map(e=>e.trim()).some(e=>TE.includes(e));if(e.transform!==`none`||e.perspective!==`none`||e.filter!==`none`||e.backdropFilter!==`none`||EE.includes(e.contain)||e.containerType!==`normal`||e.contentVisibility===`auto`||n)return t;t=t.parentElement}return null}function OE(e){let t=B(),n=window.getSelection(),r=document.activeElement,i=e.getRootElement();if(t!==null&&n!==null&&i!==null&&i.contains(n.anchorNode)&&e.isEditable()){let e=n.getRangeAt(0),t;if(n.isCollapsed){let e=n.anchorNode;e?.nodeType==3&&(e=e.parentNode),t=e.getBoundingClientRect(),t.width=0}else if(n.anchorNode===i){let e=i;for(;e.firstElementChild!=null;)e=e.firstElementChild;t=e.getBoundingClientRect()}else t=e.getBoundingClientRect();let r=DE(i);if(r){let e=r.getBoundingClientRect();return{top:Math.round(t.top-e.top),left:Math.round(t.left-e.left),width:Math.round(t.width),height:Math.round(t.height)}}return{top:Math.round(t.top),left:Math.round(t.left),width:Math.round(t.width),height:Math.round(t.height)}}else if(r?.className!==`link-input`)return null;return null}function kE(e,t){let n=``;return e.getEditorState().read(()=>{let e=B();if(!e||!z(e)||e.isCollapsed())return;let t=e.getNodes();if(t.length===0)return;let r=new Set;t.forEach(e=>{let t=e;for(;t;){if(Gm(t)||eE(t)||t.getType()===`paragraph`||t.getType()===`quote`){V(t)&&r.add(t);break}t=t.getParent()}});let i=r.size>0?Array.from(r):t;function a(e){if(Gm(e)){let t=parseInt(e.getTag().replace(`h`,``)),n=e.getChildren().map(e=>a(e)).join(``);return`#`.repeat(t)+` `+n+`
307
+
308
+ `}else if(eE(e)){let t=e.getParent();return(t&&cE(t)&&t.getListType()===`number`?`1. `:`- `)+e.getChildren().map(e=>a(e)).join(``)+`
309
+ `}else if(cE(e))return e.getChildren().map(e=>a(e)).join(``)+`
310
+ `;else if(R(e)){let t=e.getTextContent(),n=e.getFormat();return n&16?`\`${t}\``:(n&1&&(t=`**${t}**`),n&2&&(t=`*${t}*`),n&4&&(t=`~~${t}~~`),t)}else if(yT(e)){let t=e.getURL(),n=e.getTitle(),r=e.getChildren().map(e=>a(e)).join(``);return n?`[${r}](${t} "${n}")`:`[${r}](${t})`}else if(V(e))return e.getChildren().map(e=>a(e)).join(``);return e.getTextContent()}n=i.map(e=>a(e)).join(``)}),n.trim()}var AE=gt(iee(),1),dee=({children:e})=>{let t=Tn(bC),n=P.useMemo(()=>[t,zn(null,vC)],[t]);return P.createElement(Rn.Provider,{value:n},e)},jE=()=>{let e=Hw(),t=Dn(ZC),n=Dn(cw),r=e=>{n(e),t(e?{current:e}:null)},[i,a,o,s,c,l,u]=En(SC,CC,yw,xw,Tw,TC,Cw);return P.createElement(P.Fragment,null,s.map((e,t)=>P.createElement(e,{key:t})),P.createElement(FE,{wrappers:c},P.createElement(`div`,{className:(0,AE.default)(J.rootContentEditableWrapper,`mdxeditor-root-contenteditable`)},P.createElement(gT,{contentEditable:P.createElement(`div`,{ref:r},P.createElement($w,{className:(0,AE.default)(J.contentEditable,i),ariaLabel:e(`contentArea.editableMarkdown`,`editable markdown`),spellCheck:a})),placeholder:P.createElement(`div`,{className:(0,AE.default)(J.contentEditable,J.placeholder,i)},P.createElement(`p`,null,l)),ErrorBoundary:sT}))),o.map((e,t)=>P.createElement(e,{key:t})),u.map((e,t)=>P.createElement(e,{key:t})))},ME={listItemIndent:`one`},NE=e=>aee[e];function PE(e,t,n={}){let r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}var FE=({wrappers:e,children:t})=>{if(e.length===0)return P.createElement(P.Fragment,null,t);let n=e[0];return P.createElement(n,null,P.createElement(FE,{wrappers:e.slice(1)},t))},IE=({children:e,className:t,overlayContainer:n})=>{let r=P.useRef(null),i=P.useRef(null),a=Dn(YC),o=Dn(XC);return P.useEffect(()=>{let e=document.createElement(`div`);return e.classList.add(`mdxeditor-popup-container`,J.editorRoot,J.popupContainer,...(t??``).trim().split(` `).filter(Boolean)),(n??document.body).appendChild(e),r.current=e,a(r),o(i),()=>{e.remove()}},[t,r,n,a,o]),P.createElement(`div`,{className:(0,AE.default)(`mdxeditor`,J.editorRoot,J.editorWrapper,t),ref:i},e)},LE=({mdxRef:e})=>{let t=wn();return P.useImperativeHandle(e,()=>({getMarkdown:()=>{let e=t.getValue(Fw);return e===`source`||e===`diff`?t.getValue(Iw):t.getValue(PC)},setMarkdown:e=>{t.pub(aw,e)},insertMarkdown:e=>{t.pub(ow,e)},focus:(e,n)=>{var r;(r=t.getValue(bC))==null||r.focus(e,n)},getContentEditableHTML:()=>t.getValue(ZC)?.current.innerHTML??``,getSelectionMarkdown:()=>{let e=t.getValue(Fw);if(e===`source`||e===`diff`)return``;let n=t.getValue(xC);return n?(t.getValue(HC),t.getValue(UC),t.getValue(WC),t.getValue(KC),t.getValue(GC),kE(n)):``}}),[t]),null},RE=P.forwardRef((e,t)=>P.createElement(In,{plugins:[Vw({contentEditableClassName:e.contentEditableClassName??``,spellCheck:e.spellCheck??!0,initialMarkdown:e.markdown,onChange:e.onChange??Pn,onBlur:e.onBlur??Pn,toMarkdownOptions:e.toMarkdownOptions??ME,autoFocus:e.autoFocus??!1,placeholder:e.placeholder??``,readOnly:!!e.readOnly,iconComponentFor:e.iconComponentFor??NE,suppressHtmlProcessing:e.suppressHtmlProcessing??!1,onError:e.onError??Pn,translation:e.translation??PE,trim:e.trim??!0,lexicalTheme:e.lexicalTheme,...`editorState`in e?{editorState:e.editorState}:{},suppressSharedHistory:e.suppressSharedHistory??!1,additionalLexicalNodes:e.additionalLexicalNodes??[],lexicalEditorNamespace:e.lexicalEditorNamespace??`MDXEditor`}),...e.plugins??[]]},P.createElement(IE,{className:e.className,overlayContainer:e.overlayContainer},P.createElement(dee,null,P.createElement(jE,null))),P.createElement(LE,{mdxRef:t}))),zE=typeof window<`u`&&window.document.createElement!==void 0,BE=zE&&(()=>{let e=navigator.userAgentData?.platform;return e?/mac/i.test(e):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})();function VE(e,t){return BE?e:t}var HE={testLexicalNode:Gm,visitLexicalNode:({lexicalNode:e,actions:t})=>{let n=parseInt(e.getTag()[1],10);t.addAndStepInto(`heading`,{depth:n})}},UE={testNode:`heading`,visitNode:function({mdastNode:e,actions:t}){t.addAndStepInto(Wm(`h${e.depth}`))}},WE=[`Digit0`,`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`,`Digit6`],GE=[1,2,3,4,5,6],KE={Digit1:1,Digit2:2,Digit3:3,Digit4:4,Digit5:5,Digit6:6},qE=bn(GE,e=>{e.pub(gw,t=>t.registerCommand(ma,n=>{let{code:r,ctrlKey:i,metaKey:a,altKey:o}=n;return WE.includes(r)&&VE(a,i)&&o?(n.preventDefault(),t.update(()=>{if(r===`Digit0`)e.pub(Nw,()=>sl());else{let t=e.getValue(qE),n=KE[r];t.includes(n)&&e.pub(Nw,()=>Wm(`h${n}`))}}),!0):!1},1))}),JE=Fn({init(e){e.pubIn({[Rw]:`headings`,[$C]:UE,[QC]:Bm,[nw]:HE})},update(e,t){e.pub(qE,t?.allowedHeadingLevels??GE)}});function YE(e,t){return e.getEditorState().read(()=>{let e=Ul(t);return e===null?!1:e.isSelected()})}function XE(e){let[t]=Bn(),[n,r]=(0,P.useState)(()=>YE(t,e));return(0,P.useEffect)(()=>{let n=!0,i=t.registerUpdateListener(()=>{n&&r(YE(t,e))});return()=>{n=!1,i()}},[t,e]),[n,(0,P.useCallback)(n=>{t.update(()=>{let t=B();Ss(t)||(t=Bs(),$l(t)),Ss(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,P.useCallback)(()=>{t.update(()=>{let e=B();Ss(e)&&e.clear()})},[t])]}var ZE=$i(`INSERT_HORIZONTAL_RULE_COMMAND`);function QE({nodeKey:e}){let[t]=Bn(),[n,r,i]=XE(e);return(0,P.useEffect)(()=>yp(t.registerCommand(na,a=>{let o=t.getElementByKey(e);return a.target===o?(a.shiftKey||i(),r(!n),!0):!1},1)),[i,t,n,e,r]),(0,P.useEffect)(()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??`selected`;r!==null&&(n?Sp(r,i):Cp(r,i))},[t,n,e]),null}var $E=class e extends Uc{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return tD().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:eD,priority:0})}}exportDOM(){return{element:document.createElement(`hr`)}}createDOM(e){let t=document.createElement(`hr`);return Sp(t,e.theme.hr),t}getTextContent(){return`
311
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,F.jsx)(QE,{nodeKey:this.__key})}};function eD(){return{node:tD()}}function tD(){return pd(new $E)}function nD(e){return e instanceof $E}function rD(){let[e]=Bn();return(0,P.useEffect)(()=>e.registerCommand(ZE,e=>{let t=B();return z(t)?(t.focus.getNode()!==null&&Op(tD()),!0):!1},0),[e]),null}var iD={testLexicalNode:nD,visitLexicalNode({actions:e}){e.addAndStepInto(`thematicBreak`)}},fee={testNode:`thematicBreak`,visitNode({actions:e}){e.addAndStepInto(tD())}},aD=Sn(e=>{e.sub(e.pipe(aD,kn(xC)),([,e])=>{e?.dispatchCommand(ZE,void 0)})}),pee=Fn({init(e){e.pubIn({[Rw]:`thematicBreak`,[$C]:fee,[QC]:$E,[nw]:iD,[bw]:rD})}}),mee={testNode:`list`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){let r=sE(e.children.some(e=>typeof e.checked==`boolean`)?`check`:e.ordered?`number`:`bullet`);if(eE(t)){let e=$T();e.append(r),t.insertAfter(e)}else t.append(r);n.visitChildren(e,r)}},hee={testNode:`listItem`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){let r=n.getListType()===`check`?e.checked??!1:void 0;t.addAndStepInto($T(r))}},gee={testLexicalNode:cE,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`list`,{ordered:e.getListType()===`number`,spread:!1})}},_ee={testLexicalNode:eE,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getChildren(),i=r[0];if(r.length===1&&cE(i)){let r=t.children.at(-1);r?n.visitChildren(e,r):n.visitChildren(i,t)}else{let r=e.getParent(),i=n.appendToParent(t,{type:`listItem`,checked:r.getListType()===`check`?!!e.getChecked():void 0,spread:!1,children:[]}),a=null;for(let t of e.getChildren())R(t)||Uo(t)||t.isInline()&&(V(t)||Wc(t))?(a??=n.appendToParent(i,{type:`paragraph`,children:[]}),n.visit(t,a)):(a=null,n.visit(t,i))}}};function oD(e){if(Mp(e.getNodes(),e=>Ls(e)&&e.canIndent()?e:null).length>0)return!0;let t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,i=Ep(r.getNode());if(i.canIndent()){let e=i.getKey(),t=zs();if(t.anchor.set(e,0,`element`),t.focus.set(e,0,`element`),t=ui(t),t.anchor.is(r))return!0}return!1}function sD(e,t){return yp(e.registerCommand(Ta,t=>{let n=B();if(!z(n))return!1;t.preventDefault();let r=oD(n)?t.shiftKey?Oa:Da:Ea;return e.dispatchCommand(r,void 0)},0),e.registerCommand(Da,()=>{if(t==null)return!1;let e=B();if(!z(e))return!1;let n=e.getNodes().map(e=>Ep(e).getIndent());return Math.max(...n)+1>=t},4))}function cD({maxIndent:e}){let[t]=Bn();return(0,P.useEffect)(()=>sD(t,e),[t,e]),null}function lD(){let[e]=Bn();return(0,P.useEffect)(()=>uE(e),[e]),null}function vee(e){(0,P.useEffect)(()=>xE(e),[e])}function uD({hasStrictIndent:e=!1}){let[t]=Bn();return(0,P.useEffect)(()=>{if(!t.hasNodes([tE,YT]))throw Error(`ListPlugin: ListNode and/or ListItemNode not registered on editor`)},[t]),(0,P.useEffect)(()=>{if(e)return SE(t)},[t,e]),vee(t),null}var dD={name:`tasklistCheck`,tokenize:fD};function yee(){return{text:{[W.leftSquareBracket]:dD}}}function fD(e,t,n){let r=this;return i;function i(t){return U(t===W.leftSquareBracket,"expected `[`"),r.previous!==W.eof||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return _h(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===W.uppercaseX||t===W.lowercaseX?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===W.rightSquareBracket?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return K(r)?t(r):vh(r)?e.check({tokenize:pD},t,n)(r):n(r)}}function pD(e,t,n){return E_(e,r,G.whitespace);function r(e){return e===W.eof?n(e):t(e)}}function bee(){return{exit:{taskListCheckValueChecked:mD,taskListCheckValueUnchecked:mD,paragraph:hD}}}function xee(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:gD}}}function mD(e){let t=this.stack[this.stack.length-2];U(t.type===`listItem`),t.checked=e.type===`taskListCheckValueChecked`}function hD(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];U(e.type===`paragraph`);let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function gD(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Sy.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}var _D=new Map([[`number`,yE],[`bullet`,vE],[`check`,lE],[``,bE]]),vD=bn(``,e=>{e.sub(e.pipe(MC,kn(xC)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:Dp(r,e=>{let t=e.getParent();return t!==null&&dd(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null)if(cE(i)){let t=Tp(r,tE),n=t?t.getListType():i.getListType();e.pub(vD,n)}else e.pub(vD,``)})}),yD=xn(e=>{e.sub(e.pipe(yD,kn(xC)),([e,t])=>{t?.dispatchCommand(_D.get(e),void 0)})}),bD=Fn({init(e){var t;(t=e.getValue(bC))==null||t.registerCommand(Da,()=>!SD(7),4),e.pubIn({[Rw]:`lists`,[tw]:bee(),[ew]:yee(),[$C]:[mee,hee],[QC]:[YT,tE],[nw]:[gee,_ee],[rw]:xee(),[bw]:[cD,uD,lD],[Dw]:[cD,uD,lD]})}});function xD(e){let t=e.getNodes();return t.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(t.map(e=>V(e)?e:e.getParentOrThrow()))}function SD(e){let t=B();if(!z(t))return!1;let n=xD(t),r=0;for(let e of n)if(cE(e))r=Math.max(jT(e)+1,r);else if(eE(e)){let t=e.getParent();if(t?.getChildren().length===1){let e=t.getParent();if(eE(e)&&e.getChildren().length===1)return!1}if(!cE(t))throw Error(`ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.`);r=Math.max(jT(t)+1,r)}return r<=e}function CD(e){return e.length}function wD(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||CD,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=See(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=TD(r[d]);else{let e=TD(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
312
+ `)}function See(e){return e==null?``:String(e)}function TD(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Cee(){return{enter:{table:ED,tableData:AD,tableHeader:AD,tableRow:OD},exit:{codeText:jD,table:DD,tableData:kD,tableHeader:kD,tableRow:kD}}}function ED(e){let t=e._align;U(t,"expected `_align` on table"),this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function DD(e){this.exit(e),this.data.inTable=void 0}function OD(e){this.enter({type:`tableRow`,children:[]},e)}function kD(e){this.exit(e)}function AD(e){this.enter({type:`tableCell`,children:[]},e)}function jD(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,MD));let n=this.stack[this.stack.length-1];U(n.type===`inlineCode`),n.value=t,this.exit(e)}function MD(e,t){return t===`|`?t:e}function ND(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
313
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
314
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return wD(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Sy.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}var PD=class{constructor(){this.map=[]}add(e,t,n){FD(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function FD(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function ID(e,t){U(e[t][1].type===`table`,`expected table`);let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function LD(){return{flow:{null:{name:`table`,tokenize:RD,resolveAll:zD}}}}function RD(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===G.lineEnding||e===G.linePrefix)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===W.verticalBar?u(e):(o=!0,a+=1,u(e))}function u(t){return t===W.eof?n(t):K(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(G.lineEnding),e.consume(t),e.exit(G.lineEnding),p):n(t):vh(t)?E_(e,u,G.whitespace)(t):(a+=1,o&&(o=!1,i+=1),t===W.verticalBar?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(G.data),d(t)))}function d(t){return t===W.eof||t===W.verticalBar||_h(t)?(e.exit(G.data),u(t)):(e.consume(t),t===W.backslash?f:d)}function f(t){return t===W.backslash||t===W.verticalBar?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,vh(t)?(U(r.parser.constructs.disable.null,"expected `disabled.null`"),E_(e,m,G.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:oh.tabSize)(t)):m(t))}function m(t){return t===W.dash||t===W.colon?g(t):t===W.verticalBar?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return vh(t)?E_(e,g,G.whitespace)(t):g(t)}function g(t){return t===W.colon?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===W.dash?(a+=1,_(t)):t===W.eof||K(t)?b(t):x(t)}function _(t){return t===W.dash?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===W.dash?(e.consume(t),v):t===W.colon?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return vh(t)?E_(e,b,G.whitespace)(t):b(t)}function b(n){return n===W.verticalBar?m(n):n===W.eof||K(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===W.verticalBar?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===W.eof||K(n)?(e.exit(`tableRow`),t(n)):vh(n)?E_(e,C,G.whitespace)(n):(e.enter(G.data),w(n))}function w(t){return t===W.eof||t===W.verticalBar||_h(t)?(e.exit(G.data),C(t)):(e.consume(t),t===W.backslash?T:w)}function T(t){return t===W.backslash||t===W.verticalBar?(e.consume(t),w):w(t)}}function zD(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new PD;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(U(l,`there should be a table opening`),VD(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===G.data||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=BD(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=BD(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=BD(f,t,o,i,n,d)):(o[0]=o[1],d=BD(f,t,a,i,n,d)),i=0):i&&(m.type===G.data||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&(U(l,`expected table opening`),VD(f,t,c,l,u)),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=ID(t.events,n))}return e}function BD(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(U(a,`expected previous cell enter`),a.end=Object.assign({},HD(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=HD(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=HD(t.events,n[2]),a=HD(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),U(n[3]!==0),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=G.chunkText,r[1].contentType=oh.contentTypeText,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},HD(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function VD(e,t,n,r,i){let a=[],o=HD(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function HD(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var UD=[[`Cat`,`rgb(125, 50, 0)`],[`Dog`,`rgb(100, 0, 0)`],[`Rabbit`,`rgb(150, 0, 0)`],[`Frog`,`rgb(200, 0, 0)`],[`Fox`,`rgb(200, 75, 0)`],[`Hedgehog`,`rgb(0, 75, 0)`],[`Pigeon`,`rgb(0, 125, 0)`],[`Squirrel`,`rgb(75, 100, 0)`],[`Bear`,`rgb(125, 100, 0)`],[`Tiger`,`rgb(0, 0, 150)`],[`Leopard`,`rgb(0, 0, 200)`],[`Zebra`,`rgb(0, 0, 250)`],[`Wolf`,`rgb(0, 100, 150)`],[`Owl`,`rgb(0, 100, 100)`],[`Gull`,`rgb(100, 0, 100)`],[`Squid`,`rgb(150, 0, 150)`]],WD=UD[Math.floor(Math.random()*UD.length)],GD=(0,P.createContext)({clientID:0,color:WD[1],isCollabActive:!1,name:WD[0],yjsDocMap:new Map});function KD(e,t){let n=(0,P.useContext)(GD);return e!=null&&(n.name=e),t!=null&&(n.color=t),n}function qD(e){throw Error(e)}function JD(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}function YD(e){let t=new Set,{ownNodeConfig:n}=Ud(e),r=e.transform();if(n){let e=n.$transform;e&&t.add(e)}return r&&t.add(r),t}var XD=JD(`LexicalNestedComposer initialNodes is deprecated and will be removed in v0.32.0, it has never worked correctly.
315
+ You can configure your editor's nodes with createEditor({nodes: [], parentEditor: $getEditor()})`),ZD=JD(`LexicalNestedComposer initialEditor should explicitly initialize its namespace when the node configuration differs from the parentEditor. For backwards compatibility, the namespace will be initialized from parentEditor until v0.32.0, but this has always had incorrect copy/paste behavior when the configuration differed.
316
+ You can configure your editor's namespace with createEditor({namespace: 'nested-editor-namespace', nodes: [], parentEditor: $getEditor()}).`);function QD({initialEditor:e,children:t,initialNodes:n,initialTheme:r,skipCollabChecks:i,skipEditableListener:a}){let o=(0,P.useRef)(!1),s=(0,P.useContext)(Rn);s??qD(`Unexpected parent context null on a nested composer`);let[c,{getTheme:l}]=s,u=(0,P.useMemo)(()=>{let t=r||l()||void 0,i=zn(s,t);t!==void 0&&(e._config.theme=t),e._parentEditor=e._parentEditor||c;let a=e._createEditorArgs,o=a&&a.namespace;if(n){XD(),o||(ZD(),e._config.namespace=c._config.namespace);for(let t of n){let n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let i=bl(e,t.getType());e._nodes.set(t.getType(),{exportDOM:i?i.exportDOM:void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Yr(t),transforms:YD(t)})}}else if(a&&a.nodes)o||(ZD(),e._config.namespace=c._config.namespace);else{let t=e._nodes=new Map(c._nodes);o||(e._config.namespace=c._config.namespace);for(let[n,r]of t)e._nodes.set(n,{exportDOM:r.exportDOM,klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,sharedNodeState:Yr(r.klass),transforms:YD(r.klass)})}return[e,i]},[]),{isCollabActive:d,yjsDocMap:f}=KD(),p=i||o.current||f.has(e.getKey());return(0,P.useEffect)(()=>{p&&(o.current=!0)},[p]),(0,P.useEffect)(()=>{if(!a){let t=t=>e.setEditable(t);return t(c.isEditable()),c.registerEditableListener(t)}},[e,c,a]),(0,F.jsx)(Rn.Provider,{value:u,children:!d||p?t:null})}typeof window<`u`&&window.document&&window.document.createElement;function $D(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function eO(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function tO(...e){return t=>{let n=!1,r=e.map(e=>{let r=eO(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():eO(e[t],null)}}}}function nO(...e){return P.useCallback(tO(...e),e)}function rO(e,t){let n=P.createContext(t),r=e=>{let{children:t,...r}=e,i=P.useMemo(()=>r,Object.values(r));return(0,F.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=P.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function iO(e,t=[]){let n=[];function r(t,r){let i=P.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=P.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=P.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>P.createContext(e));return function(n){let r=n?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,aO(i,...t)]}function aO(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function oO(e){let t=sO(e),n=P.forwardRef((e,n)=>{let{children:r,...i}=e,a=P.Children.toArray(r),o=a.find(uO);if(o){let e=o.props.children,r=a.map(t=>t===o?P.Children.count(e)>1?P.Children.only(null):P.isValidElement(e)?e.props.children:null:t);return(0,F.jsx)(t,{...i,ref:n,children:P.isValidElement(e)?P.cloneElement(e,void 0,r):null})}return(0,F.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function sO(e){let t=P.forwardRef((e,t)=>{let{children:n,...r}=e;if(P.isValidElement(n)){let e=fO(n),i=dO(r,n.props);return n.type!==P.Fragment&&(i.ref=t?tO(t,e):e),P.cloneElement(n,i)}return P.Children.count(n)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cO=Symbol(`radix.slottable`);function lO(e){let t=({children:e})=>(0,F.jsx)(F.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=cO,t}function uO(e){return P.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===cO}function dO(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function fO(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pO=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=oO(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mO(e,t){e&&pT.flushSync(()=>e.dispatchEvent(t))}function hO(e){let t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...e)=>t.current?.(...e),[])}function gO(e,t=globalThis?.document){let n=hO(e);P.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var _O=`DismissableLayer`,vO=`dismissableLayer.update`,yO=`dismissableLayer.pointerDownOutside`,bO=`dismissableLayer.focusOutside`,xO,SO=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CO=P.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=P.useContext(SO),[u,d]=P.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=P.useState({}),m=nO(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=Eee(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=Dee(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return gO(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),P.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xO=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wO(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xO)}},[u,f,n,l]),P.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wO())},[u,l]),P.useEffect(()=>{let e=()=>p({});return document.addEventListener(vO,e),()=>document.removeEventListener(vO,e)},[]),(0,F.jsx)(pO.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:$D(e.onFocusCapture,S.onFocusCapture),onBlurCapture:$D(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:$D(e.onPointerDownCapture,x.onPointerDownCapture)})});CO.displayName=_O;var wee=`DismissableLayerBranch`,Tee=P.forwardRef((e,t)=>{let n=P.useContext(SO),r=P.useRef(null),i=nO(t,r);return P.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,F.jsx)(pO.div,{...e,ref:i})});Tee.displayName=wee;function Eee(e,t=globalThis?.document){let n=hO(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){TO(yO,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Dee(e,t=globalThis?.document){let n=hO(e),r=P.useRef(!1);return P.useEffect(()=>{let e=e=>{e.target&&!r.current&&TO(bO,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wO(){let e=new CustomEvent(vO);document.dispatchEvent(e)}function TO(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?mO(i,a):i.dispatchEvent(a)}var EO=0;function DO(){P.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??OO()),document.body.insertAdjacentElement(`beforeend`,e[1]??OO()),EO++,()=>{EO===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),EO--}},[])}function OO(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var kO=`focusScope.autoFocusOnMount`,AO=`focusScope.autoFocusOnUnmount`,jO={bubbles:!1,cancelable:!0},MO=`FocusScope`,NO=P.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=P.useState(null),l=hO(i),u=hO(a),d=P.useRef(null),f=nO(t,e=>c(e)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:BO(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||BO(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&BO(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),P.useEffect(()=>{if(s){VO.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(kO,jO);s.addEventListener(kO,l),s.dispatchEvent(t),t.defaultPrevented||(PO(WO(IO(s)),{select:!0}),document.activeElement===e&&BO(s))}return()=>{s.removeEventListener(kO,l),setTimeout(()=>{let t=new CustomEvent(AO,jO);s.addEventListener(AO,u),s.dispatchEvent(t),t.defaultPrevented||BO(e??document.body,{select:!0}),s.removeEventListener(AO,u),VO.remove(p)},0)}}},[s,l,u,p]);let m=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=FO(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&BO(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&BO(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,F.jsx)(pO.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});NO.displayName=MO;function PO(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(BO(r,{select:t}),document.activeElement!==n)return}function FO(e){let t=IO(e);return[LO(t,e),LO(t.reverse(),e)]}function IO(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function LO(e,t){for(let n of e)if(!RO(n,{upTo:t}))return n}function RO(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function zO(e){return e instanceof HTMLInputElement&&`select`in e}function BO(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zO(e)&&t&&e.select()}}var VO=HO();function HO(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=UO(e,t),e.unshift(t)},remove(t){e=UO(e,t),e[0]?.resume()}}}function UO(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function WO(e){return e.filter(e=>e.tagName!==`A`)}var GO=globalThis?.document?P.useLayoutEffect:()=>{},KO=P.useId||(()=>void 0),qO=0;function JO(e){let[t,n]=P.useState(KO());return GO(()=>{e||n(e=>e??String(qO++))},[e]),e||(t?`radix-${t}`:``)}var YO=[`top`,`right`,`bottom`,`left`],XO=Math.min,ZO=Math.max,QO=Math.round,$O=Math.floor,ek=e=>({x:e,y:e}),tk={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function nk(e,t,n){return ZO(e,XO(t,n))}function rk(e,t){return typeof e==`function`?e(t):e}function ik(e){return e.split(`-`)[0]}function ak(e){return e.split(`-`)[1]}function ok(e){return e===`x`?`y`:`x`}function sk(e){return e===`y`?`height`:`width`}function ck(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function lk(e){return ok(ck(e))}function uk(e,t,n){n===void 0&&(n=!1);let r=ak(e),i=lk(e),a=sk(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=yk(o)),[o,yk(o)]}function dk(e){let t=yk(e);return[fk(e),t,fk(t)]}function fk(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var pk=[`left`,`right`],mk=[`right`,`left`],hk=[`top`,`bottom`],gk=[`bottom`,`top`];function _k(e,t,n){switch(e){case`top`:case`bottom`:return n?t?mk:pk:t?pk:mk;case`left`:case`right`:return t?hk:gk;default:return[]}}function vk(e,t,n,r){let i=ak(e),a=_k(ik(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(fk)))),a}function yk(e){let t=ik(e);return tk[t]+e.slice(t.length)}function bk(e){return{top:0,right:0,bottom:0,left:0,...e}}function xk(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:bk(e)}function Sk(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ck(e,t,n){let{reference:r,floating:i}=e,a=ck(t),o=lk(t),s=sk(o),c=ik(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ak(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function wk(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=rk(t,e),p=xk(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Sk(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Sk(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Tk=50,Ek=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:wk},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ck(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Tk&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ck(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Dk=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=rk(e,t)||{};if(l==null)return{};let d=xk(u),f={x:n,y:r},p=lk(i),m=sk(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=XO(d[_],T),D=XO(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=nk(O,A,k),ee=!c.arrow&&ak(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,M=ee?A<O?A-O:A-k:0;return{[p]:f[p]+M,data:{[p]:j,centerOffset:A-j-M,...ee&&{alignmentOffset:M}},reset:ee}}}),Ok=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=rk(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ik(r),_=ck(o),v=ik(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[yk(o)]:dk(o)),x=p!==`none`;!d&&x&&b.push(...vk(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=uk(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ck(t))||T.every(e=>ck(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ck(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function kk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ak(e){return YO.some(t=>e[t]>=0)}var jk=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=rk(e,t);switch(i){case`referenceHidden`:{let e=kk(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ak(e)}}}case`escaped`:{let e=kk(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ak(e)}}}default:return{}}}}},Mk=new Set([`left`,`top`]);async function Nk(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ik(n),s=ak(n),c=ck(n)===`y`,l=Mk.has(o)?-1:1,u=a&&c?-1:1,d=rk(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Pk=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Nk(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Fk=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=rk(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ck(ik(i)),p=ok(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=nk(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=nk(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ik=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=rk(e,t),u={x:n,y:r},d=ck(i),f=ok(d),p=u[f],m=u[d],h=rk(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Mk.has(ik(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Lk=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=rk(e,t),u=await o.detectOverflow(t,l),d=ik(i),f=ak(i),p=ck(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=XO(h-u[g],v),x=XO(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=ZO(u.left,0),t=ZO(u.right,0),n=ZO(u.top,0),r=ZO(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:ZO(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:ZO(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Rk(){return typeof window<`u`}function zk(e){return Hk(e)?(e.nodeName||``).toLowerCase():`#document`}function Bk(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vk(e){return((Hk(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Hk(e){return Rk()?e instanceof Node||e instanceof Bk(e).Node:!1}function Uk(e){return Rk()?e instanceof Element||e instanceof Bk(e).Element:!1}function Wk(e){return Rk()?e instanceof HTMLElement||e instanceof Bk(e).HTMLElement:!1}function Gk(e){return!Rk()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Bk(e).ShadowRoot}function Kk(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=rA(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function qk(e){return/^(table|td|th)$/.test(zk(e))}function Jk(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Yk=/transform|translate|scale|rotate|perspective|filter/,Xk=/paint|layout|strict|content/,Zk=e=>!!e&&e!==`none`,Qk;function $k(e){let t=Uk(e)?rA(e):e;return Zk(t.transform)||Zk(t.translate)||Zk(t.scale)||Zk(t.rotate)||Zk(t.perspective)||!tA()&&(Zk(t.backdropFilter)||Zk(t.filter))||Yk.test(t.willChange||``)||Xk.test(t.contain||``)}function eA(e){let t=aA(e);for(;Wk(t)&&!nA(t);){if($k(t))return t;if(Jk(t))return null;t=aA(t)}return null}function tA(){return Qk??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Qk}function nA(e){return/^(html|body|#document)$/.test(zk(e))}function rA(e){return Bk(e).getComputedStyle(e)}function iA(e){return Uk(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function aA(e){if(zk(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Gk(e)&&e.host||Vk(e);return Gk(t)?t.host:t}function oA(e){let t=aA(e);return nA(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wk(t)&&Kk(t)?t:oA(t)}function sA(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=oA(e),i=r===e.ownerDocument?.body,a=Bk(r);if(i){let e=cA(a);return t.concat(a,a.visualViewport||[],Kk(r)?r:[],e&&n?sA(e):[])}else return t.concat(r,sA(r,[],n))}function cA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lA(e){let t=rA(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Wk(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=QO(n)!==a||QO(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function uA(e){return Uk(e)?e:e.contextElement}function dA(e){let t=uA(e);if(!Wk(t))return ek(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=lA(t),o=(a?QO(n.width):n.width)/r,s=(a?QO(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Oee=ek(0);function fA(e){let t=Bk(e);return!tA()||!t.visualViewport?Oee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bk(e)?!1:t}function pA(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=uA(e),o=ek(1);t&&(r?Uk(r)&&(o=dA(r)):o=dA(e));let s=kee(a,n,r)?fA(a):ek(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Bk(a),t=r&&Uk(r)?Bk(r):r,n=e,i=cA(n);for(;i&&r&&t!==n;){let e=dA(i),t=i.getBoundingClientRect(),r=rA(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Bk(i),i=cA(n)}}return Sk({width:u,height:d,x:c,y:l})}function mA(e,t){let n=iA(e).scrollLeft;return t?t.left+n:pA(Vk(e)).left+n}function hA(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-mA(e,n),y:n.top+t.scrollTop}}function Aee(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Vk(r),s=t?Jk(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ek(1),u=ek(0),d=Wk(r);if((d||!d&&!a)&&((zk(r)!==`body`||Kk(o))&&(c=iA(r)),d)){let e=pA(r);l=dA(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?hA(o,c):ek(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function jee(e){return Array.from(e.getClientRects())}function Mee(e){let t=Vk(e),n=iA(e),r=e.ownerDocument.body,i=ZO(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ZO(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+mA(e),s=-n.scrollTop;return rA(r).direction===`rtl`&&(o+=ZO(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var gA=25;function Nee(e,t){let n=Bk(e),r=Vk(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=tA();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=mA(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=gA&&(a-=o)}else l<=gA&&(a+=l);return{width:a,height:o,x:s,y:c}}function Pee(e,t){let n=pA(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Wk(e)?dA(e):ek(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function _A(e,t,n){let r;if(t===`viewport`)r=Nee(e,n);else if(t===`document`)r=Mee(Vk(e));else if(Uk(t))r=Pee(t,n);else{let n=fA(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Sk(r)}function vA(e,t){let n=aA(e);return n===t||!Uk(n)||nA(n)?!1:rA(n).position===`fixed`||vA(n,t)}function Fee(e,t){let n=t.get(e);if(n)return n;let r=sA(e,[],!1).filter(e=>Uk(e)&&zk(e)!==`body`),i=null,a=rA(e).position===`fixed`,o=a?aA(e):e;for(;Uk(o)&&!nA(o);){let t=rA(o),n=$k(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Kk(o)&&!n&&vA(e,o))?r=r.filter(e=>e!==o):i=t,o=aA(o)}return t.set(e,r),r}function yA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Jk(t)?[]:Fee(t,this._c):[].concat(n),r],o=_A(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=_A(t,a[e],i);s=ZO(n.top,s),c=XO(n.right,c),l=XO(n.bottom,l),u=ZO(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function bA(e){let{width:t,height:n}=lA(e);return{width:t,height:n}}function xA(e,t,n){let r=Wk(t),i=Vk(t),a=n===`fixed`,o=pA(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ek(0);function l(){c.x=mA(i)}if(r||!r&&!a)if((zk(t)!==`body`||Kk(i))&&(s=iA(t)),r){let e=pA(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?hA(i,s):ek(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function SA(e){return rA(e).position===`static`}function CA(e,t){if(!Wk(e)||rA(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Vk(e)===n&&(n=n.ownerDocument.body),n}function wA(e,t){let n=Bk(e);if(Jk(e))return n;if(!Wk(e)){let t=aA(e);for(;t&&!nA(t);){if(Uk(t)&&!SA(t))return t;t=aA(t)}return n}let r=CA(e,t);for(;r&&qk(r)&&SA(r);)r=CA(r,t);return r&&nA(r)&&SA(r)&&!$k(r)?n:r||eA(e)||n}var TA=async function(e){let t=this.getOffsetParent||wA,n=this.getDimensions,r=await n(e.floating);return{reference:xA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EA(e){return rA(e).direction===`rtl`}var DA={convertOffsetParentRelativeRectToViewportRelativeRect:Aee,getDocumentElement:Vk,getClippingRect:yA,getOffsetParent:wA,getElementRects:TA,getClientRects:jee,getDimensions:bA,getScale:dA,isElement:Uk,isRTL:EA};function OA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kA(e,t){let n=null,r,i=Vk(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=$O(d),h=$O(i.clientWidth-(u+f)),g=$O(i.clientHeight-(d+p)),_=$O(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ZO(0,XO(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!OA(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function AA(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=uA(e),u=i||a?[...l?sA(l):[],...t?sA(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?kA(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?pA(e):null;c&&g();function g(){let t=pA(e);h&&!OA(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var jA=Pk,MA=Fk,NA=Ok,PA=Lk,FA=jk,IA=Dk,LA=Ik,RA=(e,t,n)=>{let r=new Map,i={platform:DA,...n},a={...i.platform,_c:r};return Ek(e,t,{...i,platform:a})},zA=typeof document<`u`?P.useLayoutEffect:function(){};function BA(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!BA(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!BA(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function VA(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function HA(e,t){let n=VA(e);return Math.round(t*n)/n}function UA(e){let t=P.useRef(e);return zA(()=>{t.current=e}),t}function WA(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);BA(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=UA(c),D=UA(i),O=UA(l),k=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),RA(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!BA(w.current,t)&&(w.current=t,pT.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);zA(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=P.useRef(!1);zA(()=>(A.current=!0,()=>{A.current=!1}),[]),zA(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ee=P.useMemo(()=>({reference:b,floating:x}),[b,x]),M=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=HA(ee.floating,u.x),r=HA(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...VA(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:k,refs:j,elements:ee,floatingStyles:M}),[u,k,j,ee,M])}var GA=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:IA({element:r.current,padding:i}).fn(n):r?IA({element:r,padding:i}).fn(n):{}}}},KA=(e,t)=>{let n=jA(e);return{name:n.name,fn:n.fn,options:[e,t]}},qA=(e,t)=>{let n=MA(e);return{name:n.name,fn:n.fn,options:[e,t]}},JA=(e,t)=>({fn:LA(e).fn,options:[e,t]}),YA=(e,t)=>{let n=NA(e);return{name:n.name,fn:n.fn,options:[e,t]}},XA=(e,t)=>{let n=PA(e);return{name:n.name,fn:n.fn,options:[e,t]}},ZA=(e,t)=>{let n=FA(e);return{name:n.name,fn:n.fn,options:[e,t]}},QA=(e,t)=>{let n=GA(e);return{name:n.name,fn:n.fn,options:[e,t]}},$A=`Arrow`,ej=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,F.jsx)(pO.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,F.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});ej.displayName=$A;var tj=ej;function nj(e){let[t,n]=P.useState(void 0);return GO(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var rj=`Popper`,[ij,aj]=iO(rj),[oj,sj]=ij(rj),cj=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return(0,F.jsx)(oj,{scope:t,anchor:r,onAnchorChange:i,children:n})};cj.displayName=rj;var lj=`PopperAnchor`,uj=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=sj(lj,n),o=P.useRef(null),s=nO(t,o),c=P.useRef(null);return P.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,F.jsx)(pO.div,{...i,ref:s})});uj.displayName=lj;var dj=`PopperContent`,[fj,pj]=ij(dj),mj=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=sj(dj,n),[_,v]=P.useState(null),y=nO(t,e=>v(e)),[b,x]=P.useState(null),S=nj(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(vj),altBoundary:O},{refs:A,floatingStyles:j,placement:ee,isPositioned:M,middlewareData:te}=WA({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>AA(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[KA({mainAxis:i+w,alignmentAxis:o}),c&&qA({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?JA():void 0,...k}),c&&YA({...k}),XA({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&QA({element:b,padding:s}),yj({arrowWidth:C,arrowHeight:w}),f&&ZA({strategy:`referenceHidden`,...k})]}),[ne,re]=bj(ee),ie=hO(m);GO(()=>{M&&ie?.()},[M,ie]);let ae=te.arrow?.x,oe=te.arrow?.y,se=te.arrow?.centerOffset!==0,[ce,le]=P.useState();return GO(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:M?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(` `),...te.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(fj,{scope:n,placedSide:ne,onArrowChange:x,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,F.jsx)(pO.div,{"data-side":ne,"data-align":re,...h,ref:y,style:{...h.style,animation:M?void 0:`none`}})})})});mj.displayName=dj;var hj=`PopperArrow`,gj={top:`bottom`,right:`left`,bottom:`top`,left:`right`},_j=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=pj(hj,n),a=gj[i.placedSide];return(0,F.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,F.jsx)(tj,{...r,ref:t,style:{...r.style,display:`block`}})})});_j.displayName=hj;function vj(e){return e!==null}var yj=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=bj(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function bj(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var xj=cj,Sj=uj,Cj=mj,wj=_j,Tj=`Portal`,Ej=P.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=P.useState(!1);GO(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?pT.createPortal((0,F.jsx)(pO.div,{...r,ref:t}),o):null});Ej.displayName=Tj;function Dj(e,t){return P.useReducer((e,n)=>t[e][n]??e,e)}var Oj=e=>{let{present:t,children:n}=e,r=kj(t),i=typeof n==`function`?n({present:r.isPresent}):P.Children.only(n),a=nO(r.ref,jj(i));return typeof n==`function`||r.isPresent?P.cloneElement(i,{ref:a}):null};Oj.displayName=`Presence`;function kj(e){let[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),a=P.useRef(`none`),[o,s]=Dj(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return P.useEffect(()=>{let e=Aj(r.current);a.current=o===`mounted`?e:`none`},[o]),GO(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Aj(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),GO(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Aj(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Aj(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:P.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Aj(e){return e?.animationName||`none`}function jj(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mj=P.useInsertionEffect||GO;function Nj({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Pj({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=P.useRef(e!==void 0);P.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,P.useCallback(t=>{if(s){let n=Fj(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Pj({defaultProp:e,onChange:t}){let[n,r]=P.useState(e),i=P.useRef(n),a=P.useRef(t);return Mj(()=>{a.current=t},[t]),P.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Fj(e){return typeof e==`function`}var Ij=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Lj=new WeakMap,Rj=new WeakMap,zj={},Bj=0,Vj=function(e){return e&&(e.host||Vj(e.parentNode))},Hj=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Vj(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Uj=function(e,t,n,r){var i=Hj(t,Array.isArray(e)?e:[e]);zj[n]||(zj[n]=new WeakMap);var a=zj[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Lj.get(e)||0)+1,l=(a.get(e)||0)+1;Lj.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Rj.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Bj++,function(){o.forEach(function(e){var t=Lj.get(e)-1,i=a.get(e)-1;Lj.set(e,t),a.set(e,i),t||(Rj.has(e)||e.removeAttribute(r),Rj.delete(e)),i||e.removeAttribute(n)}),Bj--,Bj||(Lj=new WeakMap,Lj=new WeakMap,Rj=new WeakMap,zj={})}},Wj=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ij(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Uj(r,i,n,`aria-hidden`)):function(){return null}},Gj=function(){return Gj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gj.apply(this,arguments)};function Kj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qj(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Jj=`right-scroll-bar-position`,Yj=`width-before-scroll-bar`,Xj=`with-scroll-bars-hidden`,Zj=`--removed-body-scroll-bar-size`;function Qj(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function $j(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var eM=typeof window<`u`?P.useLayoutEffect:P.useEffect,tM=new WeakMap;function nM(e,t){var n=$j(t||null,function(t){return e.forEach(function(e){return Qj(e,t)})});return eM(function(){var t=tM.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Qj(e,null)}),i.forEach(function(e){r.has(e)||Qj(e,a)})}tM.set(n,e)},[e]),n}function rM(e){return e}function iM(e,t){t===void 0&&(t=rM);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function aM(e){e===void 0&&(e={});var t=iM(null);return t.options=Gj({async:!0,ssr:!1},e),t}var oM=function(e){var t=e.sideCar,n=Kj(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,Gj({},n))};oM.isSideCarExport=!0;function sM(e,t){return e.useMedium(t),oM}var cM=aM(),lM=function(){},uM=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:lM,onWheelCapture:lM,onTouchMoveCapture:lM}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Kj(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=nM([n,t]),C=Gj(Gj({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:cM,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),Gj(Gj({},C),{ref:S})):P.createElement(v,Gj({},C,{className:c,ref:S}),s))});uM.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},uM.classNames={fullWidth:Yj,zeroRight:Jj};var dM,fM=function(){if(dM)return dM;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function pM(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=fM();return t&&e.setAttribute(`nonce`,t),e}function mM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hM(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var gM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pM())&&(mM(t,n),hM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_M=function(){var e=gM();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vM=function(){var e=_M();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},yM={left:0,top:0,right:0,gap:0},bM=function(e){return parseInt(e||``,10)||0},xM=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[bM(n),bM(r),bM(i)]},SM=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return yM;var t=xM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},CM=vM(),wM=`data-scroll-locked`,TM=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
317
+ .${Xj} {
318
+ overflow: hidden ${r};
319
+ padding-right: ${s}px ${r};
320
+ }
321
+ body[${wM}] {
322
+ overflow: hidden ${r};
323
+ overscroll-behavior: contain;
324
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
325
+ padding-left: ${i}px;
326
+ padding-top: ${a}px;
327
+ padding-right: ${o}px;
328
+ margin-left:0;
329
+ margin-top:0;
330
+ margin-right: ${s}px ${r};
331
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
332
+ }
333
+
334
+ .${Jj} {
335
+ right: ${s}px ${r};
336
+ }
337
+
338
+ .${Yj} {
339
+ margin-right: ${s}px ${r};
340
+ }
341
+
342
+ .${Jj} .${Jj} {
343
+ right: 0 ${r};
344
+ }
345
+
346
+ .${Yj} .${Yj} {
347
+ margin-right: 0 ${r};
348
+ }
349
+
350
+ body[${wM}] {
351
+ ${Zj}: ${s}px;
352
+ }
353
+ `},EM=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},DM=function(){P.useEffect(function(){return document.body.setAttribute(wM,(EM()+1).toString()),function(){var e=EM()-1;e<=0?document.body.removeAttribute(wM):document.body.setAttribute(wM,e.toString())}},[])},OM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;DM();var a=P.useMemo(function(){return SM(i)},[i]);return P.createElement(CM,{styles:TM(a,!t,i,n?``:`!important`)})},kM=!1;if(typeof window<`u`)try{var AM=Object.defineProperty({},`passive`,{get:function(){return kM=!0,!0}});window.addEventListener(`test`,AM,AM),window.removeEventListener(`test`,AM,AM)}catch{kM=!1}var jM=kM?{passive:!1}:!1,MM=function(e){return e.tagName===`TEXTAREA`},NM=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!MM(e)&&n[t]===`visible`)},PM=function(e){return NM(e,`overflowY`)},FM=function(e){return NM(e,`overflowX`)},IM=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),zM(e,r)){var i=BM(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},LM=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},RM=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},zM=function(e,t){return e===`v`?PM(t):FM(t)},BM=function(e,t){return e===`v`?LM(t):RM(t)},VM=function(e,t){return e===`h`&&t===`rtl`?-1:1},HM=function(e,t,n,r,i){var a=VM(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=BM(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&zM(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},UM=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},WM=function(e){return[e.deltaX,e.deltaY]},GM=function(e){return e&&`current`in e?e.current:e},KM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qM=function(e){return`
354
+ .block-interactivity-${e} {pointer-events: none;}
355
+ .allow-interactivity-${e} {pointer-events: all;}
356
+ `},JM=0,YM=[];function XM(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(JM++)[0],a=P.useState(vM)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=qj([e.lockRef.current],(e.shards||[]).map(GM),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=UM(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=IM(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=IM(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return HM(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!YM.length||YM[YM.length-1]!==a)){var r=`deltaY`in n?WM(n):UM(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&KM(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(GM).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ZM(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=UM(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,WM(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,UM(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return YM.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,jM),document.addEventListener(`touchmove`,c,jM),document.addEventListener(`touchstart`,u,jM),function(){YM=YM.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,jM),document.removeEventListener(`touchmove`,c,jM),document.removeEventListener(`touchstart`,u,jM)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:qM(i)}):null,p?P.createElement(OM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var QM=sM(cM,XM),$M=P.forwardRef(function(e,t){return P.createElement(uM,Gj({},e,{ref:t,sideCar:QM}))});$M.classNames=uM.classNames;var eN=`Popover`,[tN,Iee]=iO(eN,[aj]),nN=aj(),[Lee,rN]=tN(eN),iN=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=nN(t),c=P.useRef(null),[l,u]=P.useState(!1),[d,f]=Nj({prop:r,defaultProp:i??!1,onChange:a,caller:eN});return(0,F.jsx)(xj,{...s,children:(0,F.jsx)(Lee,{scope:t,contentId:JO(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:P.useCallback(()=>u(!0),[]),onCustomAnchorRemove:P.useCallback(()=>u(!1),[]),modal:o,children:n})})};iN.displayName=eN;var aN=`PopoverAnchor`,oN=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=rN(aN,n),a=nN(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return P.useEffect(()=>(o(),()=>s()),[o,s]),(0,F.jsx)(Sj,{...a,...r,ref:t})});oN.displayName=aN;var sN=`PopoverTrigger`,cN=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=rN(sN,n),a=nN(n),o=nO(t,i.triggerRef),s=(0,F.jsx)(pO.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":gN(i.open),...r,ref:o,onClick:$D(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,F.jsx)(Sj,{asChild:!0,...a,children:s})});cN.displayName=sN;var lN=`PopoverPortal`,[Ree,zee]=tN(lN,{forceMount:void 0}),uN=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=rN(lN,t);return(0,F.jsx)(Ree,{scope:t,forceMount:n,children:(0,F.jsx)(Oj,{present:n||a.open,children:(0,F.jsx)(Ej,{asChild:!0,container:i,children:r})})})};uN.displayName=lN;var dN=`PopoverContent`,fN=P.forwardRef((e,t)=>{let n=zee(dN,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=rN(dN,e.__scopePopover);return(0,F.jsx)(Oj,{present:r||a.open,children:a.modal?(0,F.jsx)(Vee,{...i,ref:t}):(0,F.jsx)(Hee,{...i,ref:t})})});fN.displayName=dN;var Bee=oO(`PopoverContent.RemoveScroll`),Vee=P.forwardRef((e,t)=>{let n=rN(dN,e.__scopePopover),r=P.useRef(null),i=nO(t,r),a=P.useRef(!1);return P.useEffect(()=>{let e=r.current;if(e)return Wj(e)},[]),(0,F.jsx)($M,{as:Bee,allowPinchZoom:!0,children:(0,F.jsx)(pN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$D(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:$D(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:$D(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Hee=P.forwardRef((e,t)=>{let n=rN(dN,e.__scopePopover),r=P.useRef(!1),i=P.useRef(!1);return(0,F.jsx)(pN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),pN=P.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=rN(dN,n),p=nN(n);return DO(),(0,F.jsx)(NO,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,F.jsx)(CO,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,F.jsx)(Cj,{"data-state":gN(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),mN=`PopoverClose`,Uee=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=rN(mN,n);return(0,F.jsx)(pO.button,{type:`button`,...r,ref:t,onClick:$D(e.onClick,()=>i.onOpenChange(!1))})});Uee.displayName=mN;var Wee=`PopoverArrow`,hN=P.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nN(n);return(0,F.jsx)(wj,{...i,...r,ref:t})});hN.displayName=Wee;function gN(e){return e?`open`:`closed`}var _N=iN,vN=oN,yN=uN,bN=fN,xN=hN;function SN(e){let t=e+`CollectionProvider`,[n,r]=iO(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=oO(s),l=P.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,F.jsx)(c,{ref:nO(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=oO(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=nO(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var CN=P.createContext(void 0);function wN(e){let t=P.useContext(CN);return e||t||`ltr`}var TN=`rovingFocusGroup.onEntryFocus`,Gee={bubbles:!1,cancelable:!0},EN=`RovingFocusGroup`,[DN,ON,kN]=SN(EN),[AN,jN]=iO(EN,[kN]),[MN,NN]=AN(EN),PN=P.forwardRef((e,t)=>(0,F.jsx)(DN.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(DN.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(FN,{...e,ref:t})})}));PN.displayName=EN;var FN=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=nO(t,f),m=wN(a),[h,g]=Nj({prop:o,defaultProp:s??null,onChange:c,caller:EN}),[_,v]=P.useState(!1),y=hO(l),b=ON(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(TN,y),()=>e.removeEventListener(TN,y)},[y]),(0,F.jsx)(MN,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,F.jsx)(pO.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:$D(e.onMouseDown,()=>{x.current=!0}),onFocus:$D(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(TN,Gee);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);BN([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:$D(e.onBlur,()=>v(!1))})})}),IN=`RovingFocusGroupItem`,LN=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=JO(),l=a||c,u=NN(IN,n),d=u.currentTabStopId===l,f=ON(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return P.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(DN.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(pO.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:$D(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:$D(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:$D(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Kee(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?qee(n,r+1):n.slice(r+1)}setTimeout(()=>BN(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});LN.displayName=IN;var RN={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function zN(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Kee(e,t,n){let r=zN(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return RN[r]}function BN(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function qee(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var VN=PN,HN=LN,UN=`Separator`,WN=`horizontal`,GN=[`horizontal`,`vertical`],KN=P.forwardRef((e,t)=>{let{decorative:n,orientation:r=WN,...i}=e,a=qN(r)?r:WN,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,F.jsx)(pO.div,{"data-orientation":a,...o,...i,ref:t})});KN.displayName=UN;function qN(e){return GN.includes(e)}var JN=KN,YN=`Toggle`,XN=P.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=Nj({prop:n,onChange:i,defaultProp:r??!1,caller:YN});return(0,F.jsx)(pO.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:$D(e.onClick,()=>{e.disabled||s(!o)})})});XN.displayName=YN;var ZN=`ToggleGroup`,[QN,$N]=iO(ZN,[jN]),eP=jN(),tP=P.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,F.jsx)(iP,{...r,ref:t});if(n===`multiple`)return(0,F.jsx)(aP,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${ZN}\``)});tP.displayName=ZN;var[nP,rP]=QN(ZN),iP=P.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=Nj({prop:n,defaultProp:r??``,onChange:i,caller:ZN});return(0,F.jsx)(nP,{scope:e.__scopeToggleGroup,type:`single`,value:P.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:P.useCallback(()=>s(``),[s]),children:(0,F.jsx)(cP,{...a,ref:t})})}),aP=P.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=Nj({prop:n,defaultProp:r??[],onChange:i,caller:ZN}),c=P.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=P.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,F.jsx)(nP,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,F.jsx)(cP,{...a,ref:t})})});tP.displayName=ZN;var[oP,sP]=QN(ZN),cP=P.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=eP(n),u=wN(o),d={role:`group`,dir:u,...c};return(0,F.jsx)(oP,{scope:n,rovingFocus:i,disabled:r,children:i?(0,F.jsx)(VN,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,F.jsx)(pO.div,{...d,ref:t})}):(0,F.jsx)(pO.div,{...d,ref:t})})}),lP=`ToggleGroupItem`,uP=P.forwardRef((e,t)=>{let n=rP(lP,e.__scopeToggleGroup),r=sP(lP,e.__scopeToggleGroup),i=eP(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=P.useRef(null);return r.rovingFocus?(0,F.jsx)(HN,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,F.jsx)(dP,{...s,ref:t})}):(0,F.jsx)(dP,{...s,ref:t})});uP.displayName=lP;var dP=P.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=rP(lP,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,F.jsx)(XN,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Jee=tP,Yee=uP,fP=`Toolbar`,[Xee,Zee]=iO(fP,[jN,$N]),pP=jN(),mP=$N(),[Qee,hP]=Xee(fP),gP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,orientation:r=`horizontal`,dir:i,loop:a=!0,...o}=e,s=pP(n),c=wN(i);return(0,F.jsx)(Qee,{scope:n,orientation:r,dir:c,children:(0,F.jsx)(VN,{asChild:!0,...s,orientation:r,dir:c,loop:a,children:(0,F.jsx)(pO.div,{role:`toolbar`,"aria-orientation":r,dir:c,...o,ref:t})})})});gP.displayName=fP;var _P=`ToolbarSeparator`,vP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=hP(_P,n);return(0,F.jsx)(JN,{orientation:i.orientation===`horizontal`?`vertical`:`horizontal`,...r,ref:t})});vP.displayName=_P;var yP=`ToolbarButton`,bP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=pP(n);return(0,F.jsx)(HN,{asChild:!0,...i,focusable:!e.disabled,children:(0,F.jsx)(pO.button,{type:`button`,...r,ref:t})})});bP.displayName=yP;var xP=`ToolbarLink`,SP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=pP(n);return(0,F.jsx)(HN,{asChild:!0,...i,focusable:!0,children:(0,F.jsx)(pO.a,{...r,ref:t,onKeyDown:$D(e.onKeyDown,e=>{e.key===` `&&e.currentTarget.click()})})})});SP.displayName=xP;var CP=`ToolbarToggleGroup`,wP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=hP(CP,n),a=mP(n);return(0,F.jsx)(Jee,{"data-orientation":i.orientation,dir:i.dir,...a,...r,ref:t,rovingFocus:!1})});wP.displayName=CP;var TP=`ToolbarToggleItem`,EP=P.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=mP(n);return(0,F.jsx)(bP,{asChild:!0,__scopeToolbar:e.__scopeToolbar,children:(0,F.jsx)(Yee,{...i,...r,ref:t})})});EP.displayName=TP;var DP=gP,OP=vP,kP=bP,AP=wP,jP=EP;function MP(e,t){return e===null||e===t?!1:e.dataset.editorDialog!==void 0||e.dataset.toolbarItem!==void 0||e.dataset.editorDropdown?!0:MP(e.parentElement,t)}function NP(){let e=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,`0`)),t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,[...t.entries()].map(([t,n])=>[4,6,8,10].includes(t)?`-${e[n]}`:e[n]).join(``)}var PP=e=>e===0?`th`:`td`,FP={center:J.centeredCell,left:J.leftAlignedCell,right:J.rightAlignedCell},IP=({mdastNode:e,parentEditor:t,lexicalTable:n})=>{let[r,i]=P.useState(null),[a,o]=En(pw,wC),s=P.useMemo(()=>e=>(e.__cacheKey??=NP(),e.__cacheKey),[]),c=P.useCallback(e=>{let r=n.getColCount();if(e===null){i(null);return}let[a,o]=e;if(a>r-1&&(a=0,o++),a<0&&(a=r-1,--o),o>n.getRowCount()-1){i(null),t.update(()=>{if(n.getLatest().getNextSibling())n.getLatest().selectNext();else{let e=sl();n.insertAfter(e),e.select()}});return}if(o<0){i(null),t.update(()=>{n.getLatest().selectPrevious()});return}i([a,o])},[n,t]);P.useEffect(()=>{n.focusEmitter.subscribe(c)},[n,c]);let l=P.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addRowToBottom(),i([0,n.getRowCount()])})},[t,n]),u=P.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addColumnToRight(),i([n.getColCount(),0])})},[t,n]),[d,f]=P.useState([-1,-1]),p=P.useCallback(e=>{let t=e.target;for(;t&&![`TH`,`TD`].includes(t.tagName);){if(t===e.currentTarget)return;t=t.parentElement}if(t===null)return;let n=t.parentElement;f([n.parentElement.tagName===`TFOOT`?-1:Array.from(n.children).indexOf(t),t.tagName===`TH`?-1:Array.from(n.parentElement.children).indexOf(n)])},[]),m=Hw();return P.createElement(`table`,{className:J.tableEditor,onMouseOver:p,onMouseLeave:()=>{f([-1,-1])}},P.createElement(`colgroup`,null,o?null:P.createElement(`col`,null),Array.from({length:e.children[0].children.length},(t,n)=>{let r=FP[(e.align??[])[n]??`left`];return P.createElement(`col`,{key:n,className:r})}),o?null:P.createElement(`col`,null)),o||P.createElement(`thead`,null,P.createElement(`tr`,null,P.createElement(`th`,{className:J.tableToolsColumn}),Array.from({length:e.children[0].children.length},(r,i)=>P.createElement(`th`,{key:i,"data-tool-cell":!0},P.createElement(zP,{setActiveCellWithBoundaries:c,parentEditor:t,colIndex:i,highlightedCoordinates:d,lexicalTable:n,align:(e.align??[])[i]}))),P.createElement(`th`,{className:J.tableToolsColumn,"data-tool-cell":!0},P.createElement(`button`,{className:J.iconButton,type:`button`,title:m(`table.deleteTable`,`Delete table`),onClick:e=>{e.preventDefault(),t.update(()=>{n.selectNext(),n.remove()})}},a(`delete_small`))))),P.createElement(`tbody`,null,e.children.map((i,l)=>{let f=PP(l);return P.createElement(`tr`,{key:l},o||P.createElement(f,{className:J.toolCell,"data-tool-cell":!0},P.createElement(BP,{setActiveCellWithBoundaries:c,parentEditor:t,rowIndex:l,highlightedCoordinates:d,lexicalTable:n})),i.children.map((i,a)=>P.createElement(LP,{align:e.align?.[a],key:s(i),contents:i.children,setActiveCell:c,rowIndex:l,colIndex:a,lexicalTable:n,parentEditor:t,activeCell:o?[-1,-1]:r})),o||l===0&&P.createElement(`th`,{rowSpan:n.getRowCount(),"data-tool-cell":!0},P.createElement(`button`,{type:`button`,className:J.addColumnButton,onClick:u},a(`add_column`))))})),o||P.createElement(`tfoot`,null,P.createElement(`tr`,null,P.createElement(`th`,null),P.createElement(`th`,{colSpan:n.getColCount(),"data-tool-cell":!0},P.createElement(`button`,{type:`button`,className:J.addRowButton,onClick:l},a(`add_row`))),P.createElement(`th`,null))))},LP=({align:e,...t})=>{let{activeCell:n,setActiveCell:r}=t,i=!!(n&&n[0]===t.colIndex&&n[1]===t.rowIndex),a=FP[e??`left`],o=PP(t.rowIndex);return P.createElement(o,{className:a,"data-active":i,onClick:()=>{r([t.colIndex,t.rowIndex])}},P.createElement(RP,{...t,focus:i}))},RP=({focus:e,setActiveCell:t,parentEditor:n,lexicalTable:r,contents:i,colIndex:a,rowIndex:o})=>{let[s,c,l,u,d,f,p,m,h]=En(RC,HC,zC,KC,qC,JC,GC,bC,Ow),[g]=P.useState(()=>{let e=fl({nodes:l,theme:vC,namespace:`TableCellEditor`});return e.update(()=>{VS({root:Zl(),mdastRoot:{type:`root`,children:[{type:`paragraph`,children:i}]},visitors:s,jsxComponentDescriptors:u,directiveDescriptors:d,codeBlockEditorDescriptors:f})}),e}),_=P.useCallback(e=>{g.getEditorState().read(()=>{let e=tb({root:Zl(),jsxComponentDescriptors:u,visitors:c,jsxIsAvailable:p});n.update(()=>{r.updateCellContents(a,o,e.children[0].children)},{discrete:!0}),n.dispatchCommand(yC,void 0)}),t(e)},[a,g,c,u,p,r,n,o,t]);return P.useEffect(()=>yp(g.registerCommand(Ta,e=>(e.preventDefault(),_(e.shiftKey?[a-1,o]:[a+1,o]),!0),4),g.registerCommand(Va,()=>(t([a,o]),!1),1),g.registerCommand(ba,e=>(e?.preventDefault(),_(e?.shiftKey?[a,o-1]:[a,o+1]),!0),4),g.registerCommand(Ha,e=>{let t=e.relatedTarget;return MP(t,m.getRootElement())?!1:(_(null),!0)},0),g.registerCommand(yC,()=>(_(null),!0),0)),[a,g,m,o,_,t]),P.useEffect(()=>{e&&g.focus()},[e,g]),P.createElement(QD,{initialEditor:g},P.createElement(gT,{contentEditable:P.createElement($w,null),placeholder:P.createElement(`div`,null),ErrorBoundary:sT}),h.map((e,t)=>P.createElement(e,{key:t})),P.createElement(em,null))},zP=({parentEditor:e,highlightedCoordinates:t,align:n,lexicalTable:r,colIndex:i,setActiveCellWithBoundaries:a})=>{let[o,s]=En(YC,pw),c=P.useCallback(t=>{e.update(()=>{r.insertColumnAt(t)}),a([t,0])},[e,r,a]),l=P.useCallback(t=>{e.update(()=>{r.deleteColumnAt(t)})},[e,r]),u=P.useCallback((t,n)=>{e.update(()=>{r.setColumnAlign(t,n)})},[e,r]),d=Hw();return P.createElement(_N,null,P.createElement(cN,{className:J.tableColumnEditorTrigger,"data-active":t[0]===i+1,title:d(`table.columnMenu`,`Column menu`)},s(`more_horiz`)),P.createElement(yN,{container:o?.current},P.createElement(fN,{className:(0,AE.default)(J.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`top`},P.createElement(DP,{className:J.tableColumnEditorToolbar},P.createElement(AP,{className:J.toggleGroupRoot,onValueChange:e=>{u(i,e)},value:n??`left`,type:`single`,"aria-label":d(`table.textAlignment`,`Text alignment`)},P.createElement(jP,{value:`left`,title:d(`table.alignLeft`,`Align left`)},s(`format_align_left`)),P.createElement(jP,{value:`center`,title:d(`table.alignCenter`,`Align center`)},s(`format_align_center`)),P.createElement(jP,{value:`right`,title:d(`table.alignRight`,`Align right`)},s(`format_align_right`))),P.createElement(OP,null),P.createElement(kP,{onClick:c.bind(null,i),title:d(`table.insertColumnLeft`,`Insert a column to the left of this one`)},s(`insert_col_left`)),P.createElement(kP,{onClick:c.bind(null,i+1),title:d(`table.insertColumnRight`,`Insert a column to the right of this one`)},s(`insert_col_right`)),P.createElement(kP,{onClick:l.bind(null,i),title:d(`table.deleteColumn`,`Delete this column`)},s(`delete_small`))),P.createElement(xN,{className:J.popoverArrow}))))},BP=({parentEditor:e,highlightedCoordinates:t,lexicalTable:n,rowIndex:r,setActiveCellWithBoundaries:i})=>{let[a,o]=En(YC,pw),s=P.useCallback(t=>{e.update(()=>{n.insertRowAt(t)}),i([0,t])},[e,n,i]),c=P.useCallback(t=>{e.update(()=>{n.deleteRowAt(t)})},[e,n]),l=Hw();return P.createElement(_N,null,P.createElement(cN,{className:J.tableColumnEditorTrigger,"data-active":t[1]===r,title:l(`table.rowMenu`,`Row menu`)},o(`more_horiz`)),P.createElement(yN,{container:a?.current},P.createElement(fN,{className:(0,AE.default)(J.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`bottom`},P.createElement(DP,{className:J.tableColumnEditorToolbar},P.createElement(kP,{onClick:s.bind(null,r),title:l(`table.insertRowAbove`,`Insert a row above this one`)},o(`insert_row_above`)),P.createElement(kP,{onClick:s.bind(null,r+1),title:l(`table.insertRowBelow`,`Insert a row below this one`)},o(`insert_row_below`)),P.createElement(kP,{onClick:c.bind(null,r),title:l(`table.deleteRow`,`Delete this row`)},o(`delete_small`))),P.createElement(xN,{className:J.popoverArrow}))))},VP=Object.defineProperty,HP=(e,t,n)=>t in e?VP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UP=(e,t,n)=>(HP(e,typeof t==`symbol`?t:t+``,n),n),WP={type:`tableCell`,children:[]};function GP(){let e=Pn;return{publish:t=>{e(t)},subscribe:t=>{e=t}}}var KP=class e extends Uc{constructor(e,t){super(t),UP(this,`__mdastNode`),UP(this,`focusEmitter`,GP()),this.__mdastNode=e??{type:`table`,children:[]}}static getType(){return`table`}static clone(t){return new e(structuredClone(t.__mdastNode),t.__key)}static importJSON(e){return JP(e.mdastNode)}static importDOM(){return{table:()=>({conversion:YP,priority:3})}}exportJSON(){return{mdastNode:structuredClone(this.__mdastNode),type:`table`,version:1}}getMdastNode(){return this.__mdastNode}getRowCount(){return this.__mdastNode.children.length}getColCount(){return this.__mdastNode.children[0]?.children.length||0}createDOM(){return document.createElement(`div`)}updateDOM(){return!1}updateCellContents(e,t,n){let r=this.getWritable().__mdastNode,i=r.children[t],a=i.children,o=a[e],s=Array.from(a),c={...o,children:n},l={...i,children:s};s[e]=c,r.children[t]=l}insertColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,0,structuredClone(WP)),t.children[n]=o}t.align&&t.align.length>0&&t.align.splice(e,0,`left`)}deleteColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,1),t.children[n]=o}}insertRowAt(e){let t=this.getWritable().__mdastNode,n={type:`tableRow`,children:Array.from({length:this.getColCount()},()=>structuredClone(WP))};t.children.splice(e,0,n)}deleteRowAt(e){this.getRowCount()===1?(this.selectNext(),this.remove()):this.getWritable().__mdastNode.children.splice(e,1)}addRowToBottom(){this.insertRowAt(this.getRowCount())}addColumnToRight(){this.insertColumnAt(this.getColCount())}setColumnAlign(e,t){let n=this.getWritable().__mdastNode;n.align??=[],n.align[e]=t}decorate(e){return P.createElement(IP,{lexicalTable:this,mdastNode:this.__mdastNode,parentEditor:e})}select(e){this.focusEmitter.publish(e??[0,0])}isInline(){return!1}};function qP(e){return e instanceof KP}function JP(e){return new KP(e)}function YP(e){let t=e.querySelectorAll(`tr`);return{node:new KP({type:`table`,children:Array.from(t).map(e=>({type:`tableRow`,children:Array.from(e.querySelectorAll(`td, th`)).map(e=>({type:`tableCell`,children:[{type:`text`,value:e.textContent}]}))}))})}}var XP={testLexicalNode:qP,visitLexicalNode({actions:e,mdastParent:t,lexicalNode:n}){e.appendToParent(t,n.getMdastNode())}},ZP={testNode:`table`,visitNode({mdastNode:e,lexicalParent:t}){t.append(JP(e))}};function QP(e=1,t=1){let n={type:`table`,children:[]};for(let r=0;r<e;r++){let e={type:`tableRow`,children:[]};for(let n=0;n<t;n++)e.children.push({type:`tableCell`,children:[]});n.children.push(e)}return n}var $P=xn(e=>{e.link(e.pipe($P,On(({rows:e,columns:t})=>()=>JP(QP(e,t)))),Pw)}),eF=Fn({init(e,t){e.pubIn({[tw]:Cee(),[ew]:LD(),[$C]:ZP,[QC]:KP,[nw]:XP,[rw]:ND({tableCellPadding:t?.tableCellPadding??!0,tablePipeAlign:t?.tablePipeAlign??!0})})}}),tF={testNode:`link`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(vT(e.url,{title:e.title}))}},nF={testLexicalNode:yT,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`link`,{url:e.getURL(),title:e.getTitle()})}};function rF({validateUrl:e,attributes:t}){let[n]=Bn();return(0,P.useEffect)(()=>{if(!n.hasNodes([_T]))throw Error(`LinkPlugin: LinkNode not registered on editor`);return yp(n.registerCommand(CT,n=>{if(n===null)return ET(n),!0;if(typeof n==`string`)return e===void 0||e(n)?(ET(n,t),!0):!1;{let{url:e,target:r,rel:i,title:a}=n;return ET(e,{...t,rel:i,target:r,title:a}),!0}},1),e===void 0?()=>{}:n.registerCommand(sa,r=>{let i=B();if(!z(i)||i.isCollapsed()||!jp(r,ClipboardEvent)||r.clipboardData===null)return!1;let a=r.clipboardData.getData(`text`);return e(a)?i.getNodes().some(e=>V(e))?!1:(n.dispatchCommand(CT,{...t,url:a}),r.preventDefault(),!0):!1},1))},[n,e,t]),null}function iF(e){throw Error(e)}function aF(e,t=e=>e){return n=>{let r=e.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function oF(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}var sF=/[.,;\s]/;function cF(e){return sF.test(e)}function lF(e){return cF(e[e.length-1])}function uF(e){return cF(e[0])}function dF(e,t){return t?/^\.[a-zA-Z]{2,}/.test(e):/^\.[a-zA-Z0-9]{1,}/.test(e)}function fF(e){let t=e.getPreviousSibling();return V(t)&&(t=t.getLastDescendant()),t===null||Uo(t)||R(t)&&lF(t.getTextContent())}function pF(e){let t=e.getNextSibling();return V(t)&&(t=t.getFirstDescendant()),t===null||Uo(t)||R(t)&&uF(t.getTextContent())}function mF(e,t,n,r){return(e>0?cF(n[e-1]):fF(r[0]))?t<n.length?cF(n[t]):pF(r[r.length-1]):!1}function hF(e,t,n){let r=[],i=[],a=[],o=0,s=0,c=[...e];for(;c.length>0;){let e=c[0],l=e.getTextContent().length,u=s;s+l<=t?(r.push(e),o+=l):u>=n?a.push(e):i.push(e),s+=l,c.shift()}return[o,r,i,a]}function gF(e,t,n,r){let i=xT(r.url,r.attributes);if(e.length===1){let a=e[0],o;t===0?[o,a]=a.splitText(n):[,o,a]=a.splitText(t,n);let s=us(r.text);return s.setFormat(o.getFormat()),s.setDetail(o.getDetail()),s.setStyle(o.getStyle()),i.append(s),o.replace(i),a}else if(e.length>1){let r=e[0],a=r.getTextContent().length,o;t===0?o=r:[,o]=r.splitText(t);let s=[],c;for(let t=1;t<e.length;t++){let r=e[t],i=r.getTextContent().length,o=a,l=a+i;if(o<n)if(l<=n)s.push(r);else{let[e,t]=r.splitText(n-o);s.push(e),c=t}a+=i}let l=B(),u=l?l.getNodes().find(R):void 0,d=us(o.getTextContent());return d.setFormat(o.getFormat()),d.setDetail(o.getDetail()),d.setStyle(o.getStyle()),i.append(d,...s),u&&u===o&&(z(l)?d.select(l.anchor.offset,l.focus.offset):Ss(l)&&d.select(0,d.getTextContent().length)),o.replace(i),c}}function _F(e,t,n){let r=[...e],i=r.map(e=>e.getTextContent()).join(``),a=i,o,s=0;for(;(o=oF(a,t))&&o!==null;){let e=o.index,t=e+o.length;if(mF(s+e,s+t,i,r)){let[i,,a,c]=hF(r,s+e,s+t),l=gF(a,s+e-i,s+t-i,o);r=l?[l,...c]:c,n(o.url,null),s=0}else s+=t;a=a.substring(t)}}function vF(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!R(i)||!i.isSimpleText()){bF(e),n(null,e.getURL());return}}let a=e.getTextContent(),o=oF(a,t);if(o===null||o.text!==a){bF(e),n(null,e.getURL());return}if(!fF(e)||!pF(e)){bF(e),n(null,e.getURL());return}let s=e.getURL();if(s!==o.url&&(e.setURL(o.url),n(o.url,s)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function yF(e,t,n){let r=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();ST(r)&&!r.getIsUnlinked()&&(!uF(a)||dF(a,r.isEmailURI()))&&(r.append(e),vF(r,t,n),n(null,r.getURL())),ST(i)&&!i.getIsUnlinked()&&!lF(a)&&(bF(i),vF(i,t,n),n(null,i.getURL()))}function bF(e){let t=e.getChildren(),n=t.length;for(let r=n-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(e=>e.getLatest())}function xF(e){let t=[e],n=e.getNextSibling();for(;n!==null&&R(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}function SF(e,t,n){(0,P.useEffect)(()=>{e.hasNodes([bT])||iF(`LexicalAutoLinkPlugin: AutoLinkNode not registered on editor`);let r=(e,t)=>{n&&n(e,t)};return yp(e.registerNodeTransform(es,e=>{let n=e.getParentOrThrow(),i=e.getPreviousSibling();ST(n)&&!n.getIsUnlinked()?vF(n,t,r):yT(n)||(e.isSimpleText()&&(uF(e.getTextContent())||!ST(i))&&_F(xF(e),t,r),yF(e,t,r))}),e.registerCommand(CT,e=>{let t=B();return e!==null||!z(t)||t.extract().forEach(e=>{let t=e.getParent();ST(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))},[e,t,n])}function CF({matchers:e,onChange:t}){let[n]=Bn();return SF(n,e,t),null}var wF=[aF(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith(`http`)?e:`https://${e}`),aF(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)],TF=()=>P.createElement(CF,{matchers:wF}),EF=bn(!1),DF=Fn({init(e,t){let n=!!t?.disableAutoLink,r=t?.validateUrl?{validateUrl:t.validateUrl}:{},i=()=>P.createElement(P.Fragment,null,P.createElement(rF,{...r}),n?null:P.createElement(TF,null));e.pubIn({[Rw]:`link`,[$C]:tF,[QC]:[_T,bT],[nw]:nF,[EF]:n,[Dw]:i,[kw]:i,[bw]:i})}});function OF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kF=[`color`],AF=(0,P.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=OF(e,kF);return(0,P.createElement)(`svg`,Object.assign({width:`15`,height:`15`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i,{ref:t}),(0,P.createElement)(`path`,{d:`M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z`,fill:r,fillRule:`evenodd`,clipRule:`evenodd`}))}),jF=()=>P.createElement(`div`,{className:J.imagePlaceholder},P.createElement(AF,null));function MF(e){let{nodeKey:t,imageSource:n,initialImagePath:r,title:i,alt:a,width:o,height:s}=e,[c,l,u]=En(sH,pw,wC),[d]=Bn(),f=Dn(aH),p=Hw();return P.createElement(`div`,{className:J.editImageToolbar},P.createElement(`button`,{className:J.iconButton,type:`button`,title:p(`imageEditor.deleteImage`,`Delete image`),disabled:u,onClick:e=>{e.preventDefault(),d.update(()=>{var e;(e=Ul(t))==null||e.remove()})}},l(`delete_small`)),!c&&P.createElement(`button`,{type:`button`,className:(0,AE.default)(J.iconButton,J.editImageButton),title:p(`imageEditor.editImage`,`Edit image`),disabled:u,onClick:()=>{f({nodeKey:t,initialValues:{src:r??n,title:i,altText:a,width:dH(o),height:dH(s)}})}},l(`settings`)))}var NF=`Dialog`,[PF,$ee]=iO(NF),[FF,IF]=PF(NF),LF=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=P.useRef(null),c=P.useRef(null),[l,u]=Nj({prop:r,defaultProp:i??!1,onChange:a,caller:NF});return(0,F.jsx)(FF,{scope:t,triggerRef:s,contentRef:c,contentId:JO(),titleId:JO(),descriptionId:JO(),open:l,onOpenChange:u,onOpenToggle:P.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};LF.displayName=NF;var RF=`DialogTrigger`,ete=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=IF(RF,n),a=nO(t,i.triggerRef);return(0,F.jsx)(pO.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":QF(i.open),...r,ref:a,onClick:$D(e.onClick,i.onOpenToggle)})});ete.displayName=RF;var zF=`DialogPortal`,[tte,BF]=PF(zF,{forceMount:void 0}),VF=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=IF(zF,t);return(0,F.jsx)(tte,{scope:t,forceMount:n,children:P.Children.map(r,e=>(0,F.jsx)(Oj,{present:n||a.open,children:(0,F.jsx)(Ej,{asChild:!0,container:i,children:e})}))})};VF.displayName=zF;var HF=`DialogOverlay`,UF=P.forwardRef((e,t)=>{let n=BF(HF,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=IF(HF,e.__scopeDialog);return a.modal?(0,F.jsx)(Oj,{present:r||a.open,children:(0,F.jsx)(rte,{...i,ref:t})}):null});UF.displayName=HF;var nte=oO(`DialogOverlay.RemoveScroll`),rte=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=IF(HF,n);return(0,F.jsx)($M,{as:nte,allowPinchZoom:!0,shards:[i.contentRef],children:(0,F.jsx)(pO.div,{"data-state":QF(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),WF=`DialogContent`,GF=P.forwardRef((e,t)=>{let n=BF(WF,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=IF(WF,e.__scopeDialog);return(0,F.jsx)(Oj,{present:r||a.open,children:a.modal?(0,F.jsx)(ite,{...i,ref:t}):(0,F.jsx)(ate,{...i,ref:t})})});GF.displayName=WF;var ite=P.forwardRef((e,t)=>{let n=IF(WF,e.__scopeDialog),r=P.useRef(null),i=nO(t,n.contentRef,r);return P.useEffect(()=>{let e=r.current;if(e)return Wj(e)},[]),(0,F.jsx)(KF,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$D(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$D(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:$D(e.onFocusOutside,e=>e.preventDefault())})}),ate=P.forwardRef((e,t)=>{let n=IF(WF,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return(0,F.jsx)(KF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),KF=P.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=IF(WF,n),c=P.useRef(null),l=nO(t,c);return DO(),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(NO,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,F.jsx)(CO,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":QF(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(tI,{titleId:s.titleId}),(0,F.jsx)(rI,{contentRef:c,descriptionId:s.descriptionId})]})]})}),qF=`DialogTitle`,JF=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=IF(qF,n);return(0,F.jsx)(pO.h2,{id:i.titleId,...r,ref:t})});JF.displayName=qF;var YF=`DialogDescription`,ote=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=IF(YF,n);return(0,F.jsx)(pO.p,{id:i.descriptionId,...r,ref:t})});ote.displayName=YF;var XF=`DialogClose`,ZF=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=IF(XF,n);return(0,F.jsx)(pO.button,{type:`button`,...r,ref:t,onClick:$D(e.onClick,()=>i.onOpenChange(!1))})});ZF.displayName=XF;function QF(e){return e?`open`:`closed`}var $F=`DialogTitleWarning`,[ste,eI]=rO($F,{contentName:WF,titleName:qF,docsSlug:`dialog`}),tI=({titleId:e})=>{let t=eI($F),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
357
+
358
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
359
+
360
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nI=`DialogDescriptionWarning`,rI=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eI(nI).contentName}}.`;return P.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},iI=LF,aI=VF,oI=UF,sI=GF,cI=JF,lI=ZF,uI=e=>e.type===`checkbox`,dI=e=>e instanceof Date,fI=e=>e==null,pI=e=>typeof e==`object`,mI=e=>!fI(e)&&!Array.isArray(e)&&pI(e)&&!dI(e),hI=e=>mI(e)&&e.target?uI(e.target)?e.target.checked:e.target.value:e,gI=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),_I=e=>{let t=e.constructor&&e.constructor.prototype;return mI(t)&&t.hasOwnProperty(`isPrototypeOf`)},vI=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function yI(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(vI&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(mI(e)&&_I(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=yI(e[t]));return r}var bI=e=>/^\w*$/.test(e),xI=e=>e===void 0,SI=e=>Array.isArray(e)?e.filter(Boolean):[],CI=e=>SI(e.replace(/["|']|\]/g,``).split(/\.|\[/)),wI=(e,t,n)=>{if(!t||!mI(e))return n;let r=(bI(t)?[t]:CI(t)).reduce((e,t)=>fI(e)?void 0:e[t],e);return xI(r)||r===e?xI(e[t])?n:e[t]:r},TI=e=>typeof e==`boolean`,EI=e=>typeof e==`function`,DI=(e,t,n)=>{let r=-1,i=bI(t)?[t]:CI(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=mI(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},OI={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},kI={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},AI={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},jI=`form`,MI=`root`,NI=P.createContext(null);NI.displayName=`HookFormControlContext`;var PI=()=>P.useContext(NI),FI=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==kI.all&&(t._proxyFormState[i]=!r||kI.all),n&&(n[i]=!0),e[i]}});return i},II=typeof window<`u`?P.useLayoutEffect:P.useEffect;function LI(e){let t=PI(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=P.useState(n._formState),c=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return II(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),P.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),P.useMemo(()=>FI(o,n,c.current,!1),[o,n])}var RI=e=>typeof e==`string`,zI=(e,t,n,r,i)=>RI(e)?(r&&t.watch.add(e),wI(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),wI(n,e))):(r&&(t.watchAll=!0),n),BI=e=>fI(e)||!pI(e);function VI(e,t,n=new WeakSet){if(e===t)return!0;if(BI(e)||BI(t))return Object.is(e,t);if(dI(e)&&dI(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(dI(r)&&dI(e)||(mI(r)||Array.isArray(r))&&(mI(e)||Array.isArray(e))?!VI(r,e,n):!Object.is(r,e))return!1}}return!0}function HI(e){let t=PI(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=P.useRef(i),l=P.useRef(s),u=P.useRef(void 0),d=P.useRef(n),f=P.useRef(r);l.current=s;let[p,m]=P.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=P.useCallback(e=>{let t=zI(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=P.useCallback(e=>{if(!a){let t=zI(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);VI(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]);II(()=>((d.current!==n||!VI(f.current,r))&&(d.current=n,f.current=r,g()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{g(e.values)}})),[n,o,r,g]),P.useEffect(()=>n._removeUnmounted());let _=d.current!==n,v=f.current,y=P.useMemo(()=>{if(a)return null;let e=!_&&!VI(v,r);return _||e?h():null},[a,_,r,v,h]);return y===null?p:y}function UI(e){let t=PI(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=gI(i._names.array,n),l=HI({control:i,name:n,defaultValue:P.useMemo(()=>wI(i._formValues,n,wI(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=LI({control:i,name:n,exact:s}),d=P.useRef(e),f=P.useRef(i.register(n,{...e.rules,value:l,...TI(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let p=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!wI(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!wI(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!wI(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!wI(u.validatingFields,n)},error:{enumerable:!0,get:()=>wI(u.errors,n)}}),[u,n]),m=P.useCallback(e=>f.current.onChange({target:{value:hI(e),name:n},type:OI.CHANGE}),[n]),h=P.useCallback(()=>f.current.onBlur({target:{value:wI(i._formValues,n),name:n},type:OI.BLUR}),[n,i._formValues]),g=P.useCallback(e=>{let t=wI(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>EI(e.focus)&&e.focus(),select:()=>EI(e.select)&&e.select(),setCustomValidity:t=>EI(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>EI(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),_=P.useMemo(()=>({name:n,value:l,...TI(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:m,onBlur:h,ref:g}),[n,r,u.disabled,m,h,g,l]);return P.useEffect(()=>{let e=i._options.shouldUnregister||a;i.register(n,{...d.current.rules,...TI(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=wI(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=yI(wI(i._options.defaultValues,n,d.current.defaultValue));DI(i._defaultValues,n,e),xI(wI(i._formValues,n))&&DI(i._formValues,n,e)}return!c&&i.register(n),()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),P.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),P.useMemo(()=>({field:_,formState:u,fieldState:p}),[_,u,p])}var WI=e=>e.render(UI(e)),GI=P.createContext(null);GI.displayName=`HookFormContext`;var KI=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},qI=e=>Array.isArray(e)?e:[e],JI=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function YI(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&mI(i)&&a){let e=YI(i,a);mI(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var XI=e=>mI(e)&&!Object.keys(e).length,ZI=e=>e.type===`file`,QI=e=>{if(!vI)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$I=e=>e.type===`select-multiple`,eL=e=>e.type===`radio`,tL=e=>eL(e)||uI(e),nL=e=>QI(e)&&e.isConnected;function rL(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(fI(e)){e=void 0;break}e=e[t[r]],r++}return e}function iL(e){for(let t in e)if(e.hasOwnProperty(t)&&!xI(e[t]))return!1;return!0}function aL(e,t){if(RI(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:bI(t)?[t]:CI(t),r=n.length===1?e:rL(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(mI(r)&&XI(r)||Array.isArray(r)&&iL(r))&&aL(e,n.slice(0,-1)),e}var oL=e=>{for(let t in e)if(EI(e[t]))return!0;return!1};function sL(e){return Array.isArray(e)||mI(e)&&!oL(e)}function cL(e,t={}){for(let n in e){let r=e[n];sL(r)?(t[n]=Array.isArray(r)?[]:{},cL(r,t[n])):xI(r)||(t[n]=!0)}return t}function lL(e,t,n){n||=cL(t);for(let r in e){let i=e[r];if(sL(i))xI(t)||BI(n[r])?n[r]=cL(i,Array.isArray(i)?[]:{}):lL(i,fI(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!VI(i,e)}}return n}var uL={value:!1,isValid:!1},dL={value:!0,isValid:!0},fL=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!xI(e[0].attributes.value)?xI(e[0].value)||e[0].value===``?dL:{value:e[0].value,isValid:!0}:dL:uL}return uL},pL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>xI(e)?e:t?e===``?NaN:e&&+e:n&&RI(e)?new Date(e):r?r(e):e,mL={isValid:!1,value:null},hL=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,mL):mL;function gL(e){let t=e.ref;return ZI(t)?t.files:eL(t)?hL(e.refs).value:$I(t)?[...t.selectedOptions].map(({value:e})=>e):uI(t)?fL(e.refs).value:pL(xI(t.value)?e.ref.value:t.value,e)}var _L=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vL=(e,t,n,r)=>{let i={};for(let n of e){let e=wI(t,n);e&&DI(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},yL=e=>e instanceof RegExp,bL=e=>xI(e)?e:yL(e)?e.source:mI(e)?yL(e.value)?e.value.source:e.value:e,xL=e=>({isOnSubmit:!e||e===kI.onSubmit,isOnBlur:e===kI.onBlur,isOnChange:e===kI.onChange,isOnAll:e===kI.all,isOnTouch:e===kI.onTouched}),SL=`AsyncFunction`,CL=e=>!!e&&!!e.validate&&!!(EI(e.validate)&&e.validate.constructor.name===SL||mI(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===SL)),wL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),TL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),EL=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=wI(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(EL(a,t))break}else if(mI(a)&&EL(a,t))break}}};function DL(e,t,n){let r=wI(e,n);if(r||bI(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=wI(t,r),o=wI(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var OL=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return XI(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||kI.all))},kL=(e,t,n)=>!e||!t||e===t||qI(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),AL=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jL=(e,t)=>!SI(wI(e,t)).length&&aL(e,t),ML=(e,t,n)=>{let r=qI(wI(e,n));return DI(r,MI,t[n]),DI(e,n,r),e};function NL(e,t,n=`validate`){if(RI(e)||Array.isArray(e)&&e.every(RI)||TI(e)&&!e)return{type:n,message:RI(e)?e:``,ref:t}}var PL=e=>mI(e)&&!yL(e)?e:{value:e,message:``},FL=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=wI(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(TI(e)?``:e||``),y.reportValidity())},x={},S=eL(o),C=uI(o),w=S||C,T=(g||ZI(o))&&xI(o.value)&&xI(v)||QI(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length||g&&typeof v==`number`&&isNaN(v),E=KI.bind(null,h,r,x),D=(e,t,n,r=AI.maxLength,i=AI.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||fI(v))||TI(v)&&!v||C&&!fL(s).isValid||S&&!hL(s).isValid)){let{value:e,message:t}=RI(c)?{value:!!c,message:c}:PL(c);if(e&&(x[h]={type:AI.required,message:t,ref:y,...E(AI.required,t)},!r))return b(t),x}if(!T&&(!fI(d)||!fI(f))){let e,t,n=PL(f),i=PL(d);if(!fI(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;fI(n.value)||(e=r>n.value),fI(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;RI(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),RI(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,AI.max,AI.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(RI(v)||a&&Array.isArray(v))){let e=PL(l),t=PL(u),n=!fI(e.value)&&v.length>+e.value,i=!fI(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&RI(v)){let{value:e,message:t}=PL(p);if(yL(e)&&!v.match(e)&&(x[h]={type:AI.pattern,message:t,ref:o,...E(AI.pattern,t)},!r))return b(t),x}if(m){if(EI(m)){let e=NL(await m(v,n),y);if(e&&(x[h]={...e,...E(AI.validate,e.message)},!r))return b(e.message),x}else if(mI(m)){let e={};for(let t in m){if(!XI(e)&&!r)break;let i=NL(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!XI(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},IL={mode:kI.onSubmit,reValidateMode:kI.onChange,shouldFocusError:!0};function LL(e={}){let t={...IL,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:EI(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(mI(t.defaultValues)||mI(t.values))&&yI(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:yI(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={...d},p={array:JI(),state:JI()},m=t.criteriaMode===kI.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(!o.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||e)){let e;t.resolver?(e=XI((await T()).errors),_()):e=await O({fields:r,onlyCheckValid:!0,eventType:OI.VALID}),e!==n.isValid&&p.state.next({isValid:e})}},_=(e,r)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?DI(n.validatingFields,e,r):aL(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!XI(n.validatingFields)}))},v=e=>{let t=lL(i,a),r=_L(e);DI(n.dirtyFields,r,wI(t,r))},y=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(wI(r,e))){let t=s(wI(r,e),c.argA,c.argB);l&&DI(r,e,t)}if(u&&Array.isArray(wI(n.errors,e))){let t=s(wI(n.errors,e),c.argA,c.argB);l&&DI(n.errors,e,t),jL(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray(wI(n.touchedFields,e))){let t=s(wI(n.touchedFields,e),c.argA,c.argB);l&&DI(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&v(e),p.state.next({name:e,isDirty:A(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else DI(a,e,i)},b=(e,t)=>{DI(n.errors,e,t),p.state.next({errors:n.errors})},x=e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},S=(e,t,n,s)=>{let c=wI(r,e);if(c){let r=wI(a,e,xI(n)?wI(i,e):n);xI(r)||s&&s.defaultChecked||t?DI(a,e,t?r:gL(c._f)):M(e,r),o.mount&&!o.action&&g()}},C=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(d.isDirty||f.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=A(),c=l!==u.isDirty);let t=VI(wI(i,e),r);l=!!wI(n.dirtyFields,e),t?aL(n.dirtyFields,e):DI(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(d.dirtyFields||f.dirtyFields)&&l!==!t}if(a){let t=wI(n.touchedFields,e);t||(DI(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(d.touchedFields||f.touchedFields)&&t!==a)}c&&s&&p.state.next(u)}return c?u:{}},w=(e,r,i,a)=>{let o=wI(n.errors,e),s=(d.isValid||f.isValid)&&TI(r)&&n.isValid!==r;if(t.delayError&&i?(c=h(()=>b(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?DI(n.errors,e,i):aL(n.errors,e)),(i?!VI(o,i):o)||!XI(a)||s){let t={...a,...s&&TI(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},T=async e=>(_(e,!0),await t.resolver(a,t.context,vL(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),E=async e=>{let{errors:t}=await T(e);if(_(e),e)for(let r of e){let e=wI(t,r);e?DI(n.errors,r,e):aL(n.errors,r)}else n.errors=t;return t},D=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(mI(i))for(let e in i)i[e]&&ue(`${jI}.${e}`,{message:RI(i.message)?i.message:``,type:AI.validate});else RI(i)||!i?ue(jI,{message:i||``,type:AI.validate}):le(jI);return i}return!0},O=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await D({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...f}=u;if(r){let o=s.array.has(r.name),c=u._f&&CL(u._f);c&&d.validatingFields&&_([r.name],!0);let f=await FL(u,s.disabled,a,m,t.shouldUseNativeValidation&&!i,o);if(c&&d.validatingFields&&_([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(wI(f,r.name)?o?ML(n.errors,f,r.name):DI(n.errors,r.name,f[r.name]):aL(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!XI(f)&&await O({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},k=()=>{for(let e of s.unMount){let t=wI(r,e);t&&(t._f.refs?t._f.refs.every(e=>!nL(e)):!nL(t._f.ref))&&me(e)}s.unMount=new Set},A=(e,n)=>!t.disabled&&(e&&n&&DI(a,e,n),!VI(se(),i)),j=(e,t,n)=>zI(e,s,{...o.mount?a:xI(t)?i:RI(e)?{[e]:t}:t},n,t),ee=e=>SI(wI(o.mount?a:i,e,t.shouldUnregister?wI(i,e,[]):[])),M=(e,t,n={})=>{let i=wI(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&DI(a,e,pL(t,n)),o=QI(n.ref)&&fI(t)?``:t,$I(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?uI(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):ZI(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||p.state.next({name:e,values:yI(a)})))}(n.shouldDirty||n.shouldTouch)&&C(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&oe(e)},te=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=wI(r,o);(s.array.has(e)||mI(a)||c&&!c._f)&&!dI(a)?te(o,a,n):M(o,a,n)}},ne=(e,t,i={})=>{let c=wI(r,e),l=s.array.has(e),u=yI(t),d=VI(wI(a,e),u);if(DI(a,e,u),l)p.array.next({name:e,values:yI(a)}),i.shouldDirty&&(v(e),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:A(e,u)}));else{let t=Array.isArray(u)&&!u.length||XI(u);!c||c._f||fI(u)||t?M(e,u,i):te(e,u,i)}d||(TL(e,s)?p.state.next({...n,name:e,values:yI(a)}):p.state.next({name:o.mount?e:void 0,values:yI(a)}))},re=e=>{let t=EI(e)?e(a):e;VI(a,t)||(a={...a,...t},p.state.next({...n,values:a}))},ie=async i=>{o.mount=!0;let l=i.target,u=l.name,h=!0,v=wI(r,u),y=e=>{h=Number.isNaN(e)||dI(e)&&isNaN(e.getTime())||VI(e,wI(a,u,e))},b=xL(t.mode),x=xL(t.reValidateMode);if(v){let o,S,E=l.type?gL(v._f):hI(i),k=i.type===OI.BLUR||i.type===OI.FOCUS_OUT,A=!wL(v._f)&&!e.validate&&!t.resolver&&!wI(n.errors,u)&&!v._f.deps||AL(k,wI(n.touchedFields,u),n.isSubmitted,x,b),j=TL(u,s,k);DI(a,u,E),k?(!l||!l.readOnly)&&(v._f.onBlur&&v._f.onBlur(i),c&&c(0)):v._f.onChange&&v._f.onChange(i);let ee=C(u,E,k),M=!XI(ee)||j;if(!k&&p.state.next({name:u,type:i.type,values:yI(a)}),A)return(d.isValid||f.isValid)&&(t.mode===`onBlur`?k&&g():k||g()),M&&p.state.next({name:u,...j?{}:ee});if(!t.resolver&&e.validate&&await D({name:u,eventType:i.type}),!k&&j&&p.state.next({...n}),t.resolver){let{errors:e}=await T([u]);if(_([u]),y(E),h){let t=DL(n.errors,r,u),i=DL(e,r,t.name||u);o=i.error,u=i.name,S=XI(e)}}else _([u],!0),o=(await FL(v,s.disabled,a,m,t.shouldUseNativeValidation))[u],_([u]),y(E),h&&(o?S=!1:(d.isValid||f.isValid)&&(S=await O({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));h&&(v._f.deps&&(!Array.isArray(v._f.deps)||v._f.deps.length>0)&&oe(v._f.deps),w(u,S,o,ee))}},ae=(e,t)=>{if(wI(n.errors,t)&&e.focus)return e.focus(),1},oe=async(e,i={})=>{let a,o,c=qI(e);if(t.resolver){let t=await E(xI(e)?e:c);a=XI(t),o=e?!c.some(e=>wI(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=wI(r,e);return await O({fields:t&&t._f?{[e]:t}:t,eventType:OI.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await O({fields:r,name:e,eventType:OI.TRIGGER});return p.state.next({...!RI(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&EL(r,ae,e?c:s.mount),o},se=(e,t)=>{let r={...o.mount?a:i};return t&&(r=YI(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),xI(e)?r:RI(e)?wI(r,e):e.map(e=>wI(r,e))},ce=(e,t)=>({invalid:!!wI((t||n).errors,e),isDirty:!!wI((t||n).dirtyFields,e),error:wI((t||n).errors,e),isValidating:!!wI(n.validatingFields,e),isTouched:!!wI((t||n).touchedFields,e)}),le=e=>{let t=e?qI(e):void 0;t?.forEach(e=>aL(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},ue=(e,t,i)=>{let a=(wI(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=wI(n.errors,e)||{};DI(n.errors,e,{...l,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},de=(e,t)=>EI(e)?p.state.subscribe({next:n=>`values`in n&&e(n.values||j(void 0,t),n)}):j(e,t,!0),fe=e=>p.state.subscribe({next:t=>{if(kL(e.name,t.name,e.exact)&&OL(t,e.formState||d,we,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,pe=e=>(o.mount=!0,f={...f,...e.formState},fe({...e,formState:{...u,...e.formState}})),me=(e,o={})=>{for(let c of e?qI(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(aL(r,c),aL(a,c)),!o.keepError&&aL(n.errors,c),!o.keepDirty&&aL(n.dirtyFields,c),!o.keepTouched&&aL(n.touchedFields,c),!o.keepIsValidating&&aL(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&aL(i,c);p.state.next({values:yI(a)}),p.state.next({...n,...o.keepDirty?{isDirty:A()}:{}}),!o.keepIsValid&&g()},he=({disabled:e,name:t})=>{if(TI(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&g()}},ge=(e,n={})=>{let a=wI(r,e),c=TI(n.disabled)||TI(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return DI(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?he({disabled:TI(n.disabled)?n.disabled:t.disabled,name:e}):S(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:bL(n.min),max:bL(n.max),minLength:bL(n.minLength),maxLength:bL(n.maxLength),pattern:bL(n.pattern)}:{},name:e,onChange:ie,onBlur:ie,ref:c=>{if(c){s.registerName.add(e),ge(e,n),s.registerName.delete(e),a=wI(r,e);let t=xI(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=tL(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;DI(r,e,{_f:{...a._f,...o?{refs:[...l.filter(nL),t,...Array.isArray(wI(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),S(e,!1,void 0,t)}else a=wI(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(gI(s.array,e)&&o.action)&&s.unMount.add(e)}}},_e=()=>t.shouldFocusError&&EL(r,ae,s.mount),ve=e=>{TI(e)&&(p.state.next({disabled:e}),EL(r,(t,n)=>{let i=wI(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},ye=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=yI(a);if(p.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await T();_(),n.errors=e,l=yI(t)}else await O({fields:r,eventType:OI.SUBMIT});if(s.disabled.size)for(let e of s.disabled)aL(l,e);if(aL(n.errors,MI),XI(n.errors)){p.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),_e(),setTimeout(_e);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:XI(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},be=(e,t={})=>{wI(r,e)&&(xI(t.defaultValue)?ne(e,yI(wI(i,e))):(ne(e,t.defaultValue),DI(i,e,yI(t.defaultValue))),t.keepTouched||aL(n.touchedFields,e),t.keepDirty||(aL(n.dirtyFields,e),n.isDirty=t.defaultValue?A(e,yI(wI(i,e))):A()),t.keepError||(aL(n.errors,e),d.isValid&&g()),p.state.next({...n}))},xe=(e,c={})=>{let l=e?yI(e):i,u=yI(l),f=XI(e),m=f?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(lL(i,a))]);for(let t of Array.from(e)){let e=wI(n.dirtyFields,t),r=wI(a,t),i=wI(m,t);e&&!xI(r)?DI(m,t,r):!e&&!xI(i)&&ne(t,i)}}else{if(vI&&xI(e))for(let e of s.mount){let t=wI(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(QI(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)ne(e,wI(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?yI(i):{}:yI(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!XI(m),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),p.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:f?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!VI(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:c.keepDirtyValues?c.keepDefaultValues&&a?lL(i,a):n.dirtyFields:c.keepDefaultValues&&e?lL(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Se=(e,n)=>xe(EI(e)?e(a):e,{...t.resetOptions,...n}),Ce=(e,t={})=>{let n=wI(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&EI(e.select)&&e.select()})}},we=e=>{n={...n,...e}},Te={control:{register:ge,unregister:me,getFieldState:ce,handleSubmit:ye,setError:ue,_subscribe:fe,_runSchema:T,_updateIsValidating:_,_focusError:_e,_getWatch:j,_getDirty:A,_setValid:g,_setFieldArray:y,_setDisabledField:he,_setErrors:x,_getFieldArray:ee,_reset:xe,_resetDefaultValues:()=>EI(t.defaultValues)&&t.defaultValues().then(e=>{Se(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:k,_disableForm:ve,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:pe,trigger:oe,register:ge,handleSubmit:ye,watch:de,setValue:ne,setValues:re,getValues:se,reset:Se,resetField:be,clearErrors:le,unregister:me,setError:ue,setFocus:Ce,getFieldState:ce};return{...Te,formControl:Te}}var RL=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},zL=(e,t,n={})=>n.shouldFocus||xI(n.shouldFocus)?n.focusName||`${e}.${xI(n.focusIndex)?t:n.focusIndex}.`:``,BL=(e,t)=>[...e,...qI(t)],VL=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function HL(e,t,n){return[...e.slice(0,t),...qI(n),...e.slice(t)]}var UL=(e,t,n)=>Array.isArray(e)?(xI(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],WL=(e,t)=>[...qI(t),...qI(e)];function GL(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return SI(r).length?r:[]}var KL=(e,t)=>xI(t)?[]:GL(e,qI(t).sort((e,t)=>e-t)),qL=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},JL=(e,t,n)=>(e[t]=n,e);function YL(e){let t=PI(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:a,rules:o}=e,[s,c]=P.useState(n._getFieldArray(r)),l=P.useRef(n._getFieldArray(r).map(RL)),u=P.useRef(!1);n._names.array.add(r),P.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),II(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let t=wI(e,r);Array.isArray(t)&&(c(t),l.current=t.map(RL))}}}).unsubscribe,[n,r]);let d=P.useCallback(e=>{u.current=!0,n._setFieldArray(r,e)},[n,r]);return P.useEffect(()=>{n._state.action=!1,TL(r,n._names)&&n._subjects.state.next({...n._formState});let e=xL(n._options.mode);if(u.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!xL(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=wI(e.errors,r),i=wI(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?DI(n._formState.errors,r,t):aL(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=wI(n._fields,r);e&&e._f&&!(xL(n._options.reValidateMode).isOnSubmit&&xL(n._options.mode).isOnSubmit)&&FL(e,n._names.disabled,n._formValues,n._options.criteriaMode===kI.all,n._options.shouldUseNativeValidation,!0).then(e=>!XI(e)&&n._subjects.state.next({errors:ML(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:yI(n._formValues)}),n._names.focus&&EL(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),u.current=!1},[s,r,n]),P.useEffect(()=>(!wI(n._formValues,r)&&n._setFieldArray(r),()=>{n._options.shouldUnregister||a?n.unregister(r):((e,t)=>{let r=wI(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1)}),[r,n,i,a]),{swap:P.useCallback((e,t)=>{let i=n._getFieldArray(r);qL(i,e,t),qL(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,qL,{argA:e,argB:t},!1)},[d,r,n]),move:P.useCallback((e,t)=>{let i=n._getFieldArray(r);UL(i,e,t),UL(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,UL,{argA:e,argB:t},!1)},[d,r,n]),prepend:P.useCallback((e,t)=>{let i=qI(yI(e)),a=WL(n._getFieldArray(r),i);n._names.focus=zL(r,0,t),l.current=WL(l.current,i.map(RL)),d(a),c(a),n._setFieldArray(r,a,WL,{argA:VL(e)})},[d,r,n]),append:P.useCallback((e,t)=>{let i=qI(yI(e)),a=BL(n._getFieldArray(r),i);n._names.focus=zL(r,a.length-1,t),l.current=BL(l.current,i.map(RL)),d(a),c(a),n._setFieldArray(r,a,BL,{argA:VL(e)})},[d,r,n]),remove:P.useCallback(e=>{let t=KL(n._getFieldArray(r),e);l.current=KL(l.current,e),d(t),c(t),!Array.isArray(wI(n._fields,r))&&DI(n._fields,r,void 0),n._setFieldArray(r,t,KL,{argA:e})},[d,r,n]),insert:P.useCallback((e,t,i)=>{let a=qI(yI(t)),o=HL(n._getFieldArray(r),e,a);n._names.focus=zL(r,e,i),l.current=HL(l.current,e,a.map(RL)),d(o),c(o),n._setFieldArray(r,o,HL,{argA:e,argB:VL(t)})},[d,r,n]),update:P.useCallback((e,t)=>{let i=yI(t),a=JL(n._getFieldArray(r),e,i);l.current=[...a].map((t,n)=>!t||n===e?RL():l.current[n]),d(a),c([...a]),n._setFieldArray(r,a,JL,{argA:e,argB:i},!0,!1)},[d,r,n]),replace:P.useCallback(e=>{let t=qI(yI(e));l.current=t.map(RL),d([...t]),c([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[d,r,n]),fields:P.useMemo(()=>s.map((e,t)=>({...e,[i]:l.current[t]||RL()})),[s,i])}}function XL(e={}){let t=P.useRef(void 0),n=P.useRef(void 0),[r,i]=P.useState({isDirty:!1,isValidating:!1,isLoading:EI(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:EI(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!EI(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=LL(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,II(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),P.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),P.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),P.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),P.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),P.useEffect(()=>{e.values&&!VI(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),P.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=P.useMemo(()=>FI(r,a),[a,r]),t.current}function ZL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(null,arguments)}function $L(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function eR(e,t){return eR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eR(e,t)}function tR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eR(e,t)}var nR=pt((e=>{(function(){var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,ee=o,M=a,te=f,ne=!1;function re(e){return ne||(ne=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ie(e)||x(e)===l}function ie(e){return x(e)===u}function ae(e){return x(e)===c}function oe(e){return x(e)===s}function se(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ce(e){return x(e)===d}function le(e){return x(e)===i}function ue(e){return x(e)===h}function de(e){return x(e)===m}function fe(e){return x(e)===r}function pe(e){return x(e)===o}function me(e){return x(e)===a}function he(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=ee,e.StrictMode=M,e.Suspense=te,e.isAsyncMode=re,e.isConcurrentMode=ie,e.isContextConsumer=ae,e.isContextProvider=oe,e.isElement=se,e.isForwardRef=ce,e.isFragment=le,e.isLazy=ue,e.isMemo=de,e.isPortal=fe,e.isProfiler=pe,e.isStrictMode=me,e.isSuspense=he,e.isValidElementType=b,e.typeOf=x})()})),rR=pt(((e,t)=>{t.exports=nR()})),iR=pt(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),aR=pt(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),oR=pt(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),sR=pt(((e,t)=>{var n=function(){},r=aR(),i={},a=oR();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};function o(e,t,o,s,c){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}o.resetWarningCache=function(){i={}},t.exports=o})),cR=pt(((e,t)=>{var n=rR(),r=iR(),i=aR(),a=oR(),o=sR(),s=function(){};s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}else if(typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(ee(s)!==e){var c=M(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=ee(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=ee(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=ee(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=ne(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return arguments.length>1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return M(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=ee(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+te(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=ee(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,M(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=ee(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,M(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
361
+ Bad object: `+JSON.stringify(t[n],null,` `)+`
362
+ Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function j(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function ee(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:j(t,e)?`symbol`:t}function M(e){if(e==null)return``+e;var t=ee(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function te(e){var t=M(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function ne(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),lR=pt(((e,t)=>{var n=rR();t.exports=cR()(n.isElement,!0)})),uR=pt((e=>{(function(){var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116,p=60121,m=60122,h=60117,g=60129,_=60131;if(typeof Symbol==`function`&&Symbol.for){var v=Symbol.for;t=v(`react.element`),n=v(`react.portal`),r=v(`react.fragment`),i=v(`react.strict_mode`),a=v(`react.profiler`),o=v(`react.provider`),s=v(`react.context`),c=v(`react.forward_ref`),l=v(`react.suspense`),u=v(`react.suspense_list`),d=v(`react.memo`),f=v(`react.lazy`),p=v(`react.block`),m=v(`react.server.block`),h=v(`react.fundamental`),v(`react.scope`),v(`react.opaque.id`),g=v(`react.debug_trace_mode`),v(`react.offscreen`),_=v(`react.legacy_hidden`)}var y=!1;function b(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===g||e===i||e===l||e===u||e===_||y||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===o||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===p||e[0]===m))}function x(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case r:case a:case i:case l:case u:return m;default:var h=m&&m.$$typeof;switch(h){case s:case c:case f:case d:case o:return h;default:return p}}case n:return p}}}var S=s,C=o,w=t,T=c,E=r,D=f,O=d,k=n,A=a,j=i,ee=l,M=!1,te=!1;function ne(e){return M||(M=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function re(e){return te||(te=!0,console.warn(`The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function ie(e){return x(e)===s}function ae(e){return x(e)===o}function oe(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function se(e){return x(e)===c}function ce(e){return x(e)===r}function le(e){return x(e)===f}function ue(e){return x(e)===d}function de(e){return x(e)===n}function fe(e){return x(e)===a}function pe(e){return x(e)===i}function me(e){return x(e)===l}e.ContextConsumer=S,e.ContextProvider=C,e.Element=w,e.ForwardRef=T,e.Fragment=E,e.Lazy=D,e.Memo=O,e.Portal=k,e.Profiler=A,e.StrictMode=j,e.Suspense=ee,e.isAsyncMode=ne,e.isConcurrentMode=re,e.isContextConsumer=ie,e.isContextProvider=ae,e.isElement=oe,e.isForwardRef=se,e.isFragment=ce,e.isLazy=le,e.isMemo=ue,e.isPortal=de,e.isProfiler=fe,e.isStrictMode=pe,e.isSuspense=me,e.isValidElementType=b,e.typeOf=x})()})),dR=pt(((e,t)=>{t.exports=uR()})),fR=e=>typeof e==`object`&&!!e&&e.nodeType===1,pR=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,mR=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return pR(n.overflowY,t)||pR(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},hR=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,gR=e=>e.parentElement??(e.getRootNode().host||null),_R=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!fR(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;fR(u)&&s(u);){if(u=gR(u),u===c){l.push(u);break}u!=null&&u===document.body&&mR(u)&&!mR(document.documentElement)||u!=null&&mR(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,p=window.scrollX??pageXOffset,m=window.scrollY??pageYOffset,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),x=r===`start`||r===`nearest`?_:r===`end`?y:_+h/2,S=i===`center`?b+g/2:i===`end`?v:b,C=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:w,left:T}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&_>=s&&y<=w&&b>=T&&v<=u)return C;let E=getComputedStyle(t),D=parseInt(E.borderLeftWidth,10),O=parseInt(E.borderTopWidth,10),k=parseInt(E.borderRightWidth,10),A=parseInt(E.borderBottomWidth,10),j=0,ee=0,M=`offsetWidth`in t?t.offsetWidth-t.clientWidth-D-k:0,te=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,ne=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,re=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?x:r===`end`?x-f:r===`nearest`?hR(m,m+f,f,O,A,m+x,m+x+h,h):x-f/2,ee=i===`start`?S:i===`center`?S-d/2:i===`end`?S-d:hR(p,p+d,d,D,k,p+S,p+S+g,g),j=Math.max(0,j+m),ee=Math.max(0,ee+p);else{j=r===`start`?x-s-O:r===`end`?x-w+A+te:r===`nearest`?hR(s,w,a,O,A+te,x,x+h,h):x-(s+a/2)+te/2,ee=i===`start`?S-T-D:i===`center`?S-(T+o/2)+M/2:i===`end`?S-u+k+M:hR(T,u,o,D,k+M,S,S+g,g);let{scrollLeft:e,scrollTop:n}=t;j=Math.max(0,Math.min(n+j/re,t.scrollHeight-a/re+te)),ee=Math.max(0,Math.min(e+ee/ne,t.scrollWidth-o/ne+M)),x+=n-j,S+=e-ee}C.push({el:t,top:j,left:ee})}return C},Y=gt(lR()),vR=dR(),yR=0;function bR(e){return typeof e==`function`?e:xR}function xR(){}function SR(e,t){e&&_R(e,{boundary:t,block:`nearest`,scrollMode:`if-needed`}).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}function CR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function wR(e,t){var n;function r(){n&&clearTimeout(n)}function i(){var i=[...arguments];r(),n=setTimeout(function(){n=null,e.apply(void 0,i)},t)}return i.cancel=r,i}function TR(){var e=[...arguments];return function(t){var n=[...arguments].slice(1);return e.some(function(e){return e&&e.apply(void 0,[t].concat(n)),t.preventDownshiftDefault||t.hasOwnProperty(`nativeEvent`)&&t.nativeEvent.preventDownshiftDefault})}}function ER(){var e=[...arguments];return function(t){e.forEach(function(e){typeof e==`function`?e(t):e&&(e.current=t)})}}function DR(){return String(yR++)}function OR(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:n+` result`+(n===1?` is`:`s are`)+` available, use up and down arrow keys to navigate. Press Enter key to select.`:`No results are available.`:``}function kR(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function AR(e){return typeof e.type==`string`}function jR(e){return e.props}function MR(e,t){console.error(`The property "`+t+`" is required in "`+e+`"`)}var NR=[`highlightedIndex`,`inputValue`,`isOpen`,`selectedItem`,`type`];function PR(e){e===void 0&&(e={});var t={};return NR.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function FR(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=IR(t,r)?t[r]:e[r],n},{})}function IR(e,t){return e[t]!==void 0}function LR(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf(`Arrow`)!==0?`Arrow`+t:t}function cte(e){return Object.prototype.toString.call(e)===`[object Object]`}function RR(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!=`number`||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=zR(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function zR(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute(`disabled`))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute(`disabled`))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute(`disabled`))return s;return i?e>0?zR(1,0,n,r,!1):zR(-1,n-1,n,r,!1):-1}function BR(e,t,n,r){return r===void 0&&(r=!0),t.some(function(t){return t&&(CR(t,e,n)||r&&CR(t,n.document.activeElement,n))})}var VR=xR;VR=function(e,t,n){var r=`This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props`;Object.keys(e).forEach(function(e){t[e]!==void 0&&n[e]===void 0?console.error(`downshift: A component has changed the controlled prop "`+e+`" to be uncontrolled. `+r):t[e]===void 0&&n[e]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "`+e+`" to be controlled. `+r)})};var lte=wR(function(e){UR(e).textContent=``},500);function HR(e,t){var n=UR(t);e&&(n.textContent=e,lte(t))}function UR(e){e===void 0&&(e=document);var t=e.getElementById(`a11y-status-message`);return t||(t=e.createElement(`div`),t.setAttribute(`id`,`a11y-status-message`),t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-relevant`,`additions text`),Object.assign(t.style,{border:`0`,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`}),e.body.appendChild(t),t)}var WR=`__autocomplete_unknown__`,GR=`__autocomplete_mouseup__`,KR=`__autocomplete_item_mouseenter__`,qR=`__autocomplete_keydown_arrow_up__`,JR=`__autocomplete_keydown_arrow_down__`,YR=`__autocomplete_keydown_escape__`,XR=`__autocomplete_keydown_enter__`,ZR=`__autocomplete_keydown_home__`,QR=`__autocomplete_keydown_end__`,$R=`__autocomplete_click_item__`,ez=`__autocomplete_blur_input__`,tz=`__autocomplete_change_input__`,nz=`__autocomplete_keydown_space_button__`,rz=`__autocomplete_click_button__`,iz=`__autocomplete_blur_button__`,az=`__autocomplete_controlled_prop_updated_selected_item__`,oz=`__autocomplete_touchend__`,ute=Object.freeze({__proto__:null,unknown:WR,mouseUp:GR,itemMouseEnter:KR,keyDownArrowUp:qR,keyDownArrowDown:JR,keyDownEscape:YR,keyDownEnter:XR,keyDownHome:ZR,keyDownEnd:QR,clickItem:$R,blurInput:ez,changeInput:tz,keyDownSpaceButton:nz,clickButton:rz,blurButton:iz,controlledPropUpdatedSelectedItem:az,touchEnd:oz}),dte=[`refKey`,`ref`],fte=[`onClick`,`onPress`,`onKeyDown`,`onKeyUp`,`onBlur`],pte=[`onKeyDown`,`onBlur`,`onChange`,`onInput`,`onChangeText`],mte=[`refKey`,`ref`],sz=[`onMouseMove`,`onMouseDown`,`onClick`,`onPress`,`index`,`item`],cz=function(){var e=function(e){tR(t,e);function t(t){var n=e.call(this,t)||this;n.id=n.props.id||`downshift-`+DR(),n.menuId=n.props.menuId||n.id+`-menu`,n.labelId=n.props.labelId||n.id+`-label`,n.inputId=n.props.inputId||n.id+`-input`,n.getItemId=n.props.getItemId||function(e){return n.id+`-item-`+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r}),e()},t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){e===void 0&&(e=n.props.defaultHighlightedIndex),t===void 0&&(t={}),t=PR(t),n.internalSetState(QL({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:``,highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=PR(t),n.internalSetState(QL({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];i!=null&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},o=typeof e==`function`;return!o&&e.hasOwnProperty(`inputValue`)&&n.props.onInputValueChange(e.inputValue,QL({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var s=o?e(t):e;s=n.props.stateReducer(t,s),r=s.hasOwnProperty(`selectedItem`);var c={};return r&&s.selectedItem!==t.selectedItem&&(i=s.selectedItem),s.type=s.type||WR,Object.keys(s).forEach(function(e){t[e]!==s[e]&&(a[e]=s[e]),e!==`type`&&(s[e],IR(n.props,e)||(c[e]=s[e]))}),o&&s.hasOwnProperty(`inputValue`)&&n.props.onInputValueChange(s.inputValue,QL({},n.getStateAndHelpers(),s)),c},function(){bR(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),i!==void 0&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,i=e===void 0?{}:e,a=i.refKey,o=a===void 0?`ref`:a,s=i.ref,c=ZL(i,dte),l=(t===void 0?{}:t).suppressRefError,u=l===void 0?!1:l;n.getRootProps.called=!0,n.getRootProps.refKey=o,n.getRootProps.suppressRefError=u;var d=n.getState().isOpen;return QL((r={},r[o]=ER(s,n.rootRef),r.role=`combobox`,r[`aria-expanded`]=d,r[`aria-haspopup`]=`listbox`,r[`aria-owns`]=d?n.menuId:null,r[`aria-labelledby`]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:JR})}else this.internalSetState({isOpen:!0,type:JR},function(){var e=t.getItemCount();if(e>0){var n=t.getState().highlightedIndex,r=RR(1,n,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(r,{type:JR})}})},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:qR})}else this.internalSetState({isOpen:!0,type:qR},function(){var e=t.getItemCount();if(e>0){var n=t.getState().highlightedIndex,r=RR(-1,n,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(r,{type:qR})}})},Enter:function(e){if(e.which!==229){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&r!=null){e.preventDefault();var i=this.items[r],a=this.getItemNodeFromIndex(r);if(i==null||a&&a.hasAttribute(`disabled`))return;this.selectHighlightedItem({type:XR})}}},Escape:function(e){e.preventDefault(),this.reset(QL({type:YR},!this.state.isOpen&&{selectedItem:null,inputValue:``}))}},n.buttonKeyDownHandlers=QL({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:nz})}}),n.inputKeyDownHandlers=QL({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0||!n)){var i=zR(1,0,r,function(e){return t.getItemNodeFromIndex(e)},!1);this.setHighlightedIndex(i,{type:ZR})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0||!n)){var i=zR(-1,r-1,r,function(e){return t.getItemNodeFromIndex(e)},!1);this.setHighlightedIndex(i,{type:QR})}}}}),n.getToggleButtonProps=function(e){var t=e===void 0?{}:e,r=t.onClick;t.onPress;var i=t.onKeyDown,a=t.onKeyUp,o=t.onBlur,s=ZL(t,fte),c=n.getState().isOpen,l={onClick:TR(r,n.buttonHandleClick),onKeyDown:TR(i,n.buttonHandleKeyDown),onKeyUp:TR(a,n.buttonHandleKeyUp),onBlur:TR(o,n.buttonHandleBlur)},u=s.disabled?{}:l;return QL({type:`button`,role:`button`,"aria-label":c?`close menu`:`open menu`,"aria-haspopup":!0,"data-toggle":!0},u,s)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=LR(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call($L(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout(function(){return n.toggleMenu({type:rz})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){!n.isMouseDown&&(n.props.environment.document.activeElement==null||n.props.environment.document.activeElement.id!==n.inputId)&&n.props.environment.document.activeElement!==t&&n.reset({type:iz})})},n.getLabelProps=function(e){return QL({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=e===void 0?{}:e,r=t.onKeyDown,i=t.onBlur,a=t.onChange,o=t.onInput;t.onChangeText;var s=ZL(t,pte),c,l={};c=`onChange`;var u=n.getState(),d=u.inputValue,f=u.isOpen,p=u.highlightedIndex;if(!s.disabled){var m;l=(m={},m[c]=TR(a,o,n.inputHandleChange),m.onKeyDown=TR(r,n.inputHandleKeyDown),m.onBlur=TR(i,n.inputHandleBlur),m)}return QL({"aria-autocomplete":`list`,"aria-activedescendant":f&&typeof p==`number`&&p>=0?n.getItemId(p):null,"aria-controls":f?n.menuId:null,"aria-labelledby":s&&s[`aria-label`]?void 0:n.labelId,autoComplete:`off`,value:d,id:n.inputId},l,s)},n.inputHandleKeyDown=function(e){var t=LR(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call($L(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:tz,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);!n.isMouseDown&&!e&&n.reset({type:ez})})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,i=e===void 0?{}:e,a=i.refKey,o=a===void 0?`ref`:a,s=i.ref,c=ZL(i,mte),l=(t===void 0?{}:t).suppressRefError,u=l===void 0?!1:l;return n.getMenuProps.called=!0,n.getMenuProps.refKey=o,n.getMenuProps.suppressRefError=u,QL((r={},r[o]=ER(s,n.menuRef),r.role=`listbox`,r[`aria-labelledby`]=c&&c[`aria-label`]?null:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=e===void 0?{}:e,i=r.onMouseMove,a=r.onMouseDown,o=r.onClick;r.onPress;var s=r.index,c=r.item,l=c===void 0?MR(`getItemProps`,`item`):c,u=ZL(r,sz);s===void 0?(n.items.push(l),s=n.items.indexOf(l)):n.items[s]=l;var d=`onClick`,f=o,p=(t={onMouseMove:TR(i,function(){s!==n.getState().highlightedIndex&&(n.setHighlightedIndex(s,{type:KR}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:TR(a,function(e){e.preventDefault()})},t[d]=TR(f,function(){n.selectItemAtIndex(s,{type:$R})}),t),m=u.disabled?{onMouseDown:p.onMouseDown}:p;return QL({id:n.getItemId(s),role:`option`,"aria-selected":n.getState().highlightedIndex===s},m,u)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){e===void 0&&(e={}),e=PR(e),n.internalSetState(function(t){var r=t.selectedItem;return QL({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)},t)},n.toggleMenu=function(e,t){e===void 0&&(e={}),e=PR(e),n.internalSetState(function(t){var r=t.isOpen;return QL({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var r=n.getState(),i=r.isOpen,a=r.highlightedIndex;i&&n.getItemCount()>0&&typeof a==`number`&&n.setHighlightedIndex(a,e),bR(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=wR(function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(QL({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,HR(i,n.props.environment.document)},200);var r=n.props,i=r.defaultHighlightedIndex,a=r.initialHighlightedIndex,o=a===void 0?i:a,s=r.defaultIsOpen,c=r.initialIsOpen,l=c===void 0?s:c,u=r.initialInputValue,d=u===void 0?``:u,f=r.initialSelectedItem,p=f===void 0?null:f,m=n.getState({highlightedIndex:o,isOpen:l,inputValue:d,selectedItem:p});return m.selectedItem!=null&&n.props.initialInputValue===void 0&&(m.inputValue=n.props.itemToString(m.selectedItem)),n.state=m,n}var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){return e===void 0&&(e=this.state),FR(e,this.props)},n.getItemCount=function(){var e=this.items.length;return this.itemCount==null?this.props.itemCount!==void 0&&(e=this.props.itemCount):e=this.itemCount,e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),i=this.getState().highlightedIndex;if(r>0){var a=RR(e,i,r,function(e){return n.getItemNodeFromIndex(e)});this.setHighlightedIndex(a,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,a=this.props.itemToString,o=this.id,s=this.getRootProps,c=this.getToggleButtonProps,l=this.getLabelProps,u=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,m=this.closeMenu,h=this.toggleMenu,g=this.selectItem,_=this.selectItemAtIndex,v=this.selectHighlightedItem,y=this.setHighlightedIndex,b=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:c,getLabelProps:l,getMenuProps:u,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:m,toggleMenu:h,selectItem:g,selectItemAtIndex:_,selectHighlightedItem:v,setHighlightedIndex:y,clearSelection:b,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:o,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.componentDidMount=function(){var e=this;this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&lz(this._menuNode,this.getMenuProps);var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!BR(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:GR},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},r=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(t){var n=BR(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);!e.isTouchMove&&!n&&e.getState().isOpen&&e.reset({type:oz},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},o=this.props.environment;o.addEventListener(`mousedown`,t),o.addEventListener(`mouseup`,n),o.addEventListener(`touchstart`,r),o.addEventListener(`touchmove`,i),o.addEventListener(`touchend`,a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),o.removeEventListener(`mousedown`,t),o.removeEventListener(`mouseup`,n),o.removeEventListener(`touchstart`,r),o.removeEventListener(`touchmove`,i),o.removeEventListener(`touchend`,a)}},n.shouldScroll=function(e,t){var n=(this.props.highlightedIndex===void 0?this.getState():this.props).highlightedIndex,r=(t.highlightedIndex===void 0?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},n.componentDidUpdate=function(e,t){VR(this.state,e,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&lz(this._menuNode,this.getMenuProps),IR(this.props,`selectedItem`)&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:az,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=kR(this.props.children,xR);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=kR(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called||this.props.suppressRefError)return!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&uz(t,this.getRootProps),t;if(AR(t))return(0,P.cloneElement)(t,this.getRootProps(jR(t)));throw Error(`downshift: If you return a non-DOM element, you must apply the getRootProps function`)},t}(P.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:OR,itemToString:function(e){return e==null?``:(cte(e)&&!e.hasOwnProperty(`toString`)&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.",`The object that was passed:`,e),String(e))},onStateChange:xR,onInputValueChange:xR,onUserAction:xR,onChange:xR,onSelect:xR,onOuterClick:xR,selectedItemChanged:function(e,t){return e!==t},environment:typeof window>`u`?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:SR},e.stateChangeTypes=ute,e}();cz.propTypes={children:Y.default.func,defaultHighlightedIndex:Y.default.number,defaultIsOpen:Y.default.bool,initialHighlightedIndex:Y.default.number,initialSelectedItem:Y.default.any,initialInputValue:Y.default.string,initialIsOpen:Y.default.bool,getA11yStatusMessage:Y.default.func,itemToString:Y.default.func,onChange:Y.default.func,onSelect:Y.default.func,onStateChange:Y.default.func,onInputValueChange:Y.default.func,onUserAction:Y.default.func,onOuterClick:Y.default.func,selectedItemChanged:Y.default.func,stateReducer:Y.default.func,itemCount:Y.default.number,id:Y.default.string,environment:Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})}),suppressRefError:Y.default.bool,scrollIntoView:Y.default.func,selectedItem:Y.default.any,isOpen:Y.default.bool,inputValue:Y.default.string,highlightedIndex:Y.default.number,labelId:Y.default.string,inputId:Y.default.string,menuId:Y.default.string,getItemId:Y.default.func};function lz(e,t){var n=t.refKey;e||console.error(`downshift: The ref prop "`+n+`" from getMenuProps was not applied correctly on your menu element.`)}function uz(e,t){var n=t.refKey,r=n!==`ref`,i=!AR(e);i&&!r&&!(0,vR.isForwardRef)(e)?console.error(`downshift: You returned a non-DOM element. You must specify a refKey in getRootProps`):!i&&r&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "`+n+`"`),!(0,vR.isForwardRef)(e)&&!jR(e)[n]&&console.error(`downshift: You must apply the ref prop "`+n+`" from getRootProps onto your root element.`)}var dz=[`isInitialMount`,`highlightedIndex`,`items`,`environment`],fz={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:``};function pz(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(r){mz(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(QL({type:i},a))}function mz(e,t,n,r){var i=t.props,a=t.type,o=`on`+Cz(e)+`Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](QL({type:a},r))}function hz(e,t){return t.changes}function gz(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+` has been selected.`:``}var _z=wR(function(e,t){HR(e(),t)},200),vz=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?P.useLayoutEffect:P.useEffect;function yz(e){var t=e.id,n=t===void 0?`downshift-`+DR():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return(0,P.useRef)({labelId:r||n+`-label`,menuId:i||n+`-menu`,getItemId:a||function(e){return n+`-item-`+e},toggleButtonId:o||n+`-toggle-button`,inputId:s||n+`-input`}).current}function bz(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function xz(e){return e?String(e):``}function Sz(e){return/^\S{1}$/.test(e)}function Cz(e){return``+e.slice(0,1).toUpperCase()+e.slice(1)}function wz(e){var t=(0,P.useRef)(e);return t.current=e,t}function Tz(e,t,n){var r=(0,P.useRef)(),i=(0,P.useRef)(),a=(0,P.useReducer)((0,P.useCallback)(function(t,n){i.current=n,t=FR(t,n.props);var r=e(t,n);return n.props.stateReducer(t,QL({},n,{changes:r}))},[e]),t),o=a[0],s=a[1],c=wz(n),l=(0,P.useCallback)(function(e){return s(QL({props:c.current},e))},[c]),u=i.current;return(0,P.useEffect)(function(){u&&r.current&&r.current!==o&&pz(u,FR(r.current,u.props),o),r.current=o},[o,n,u]),[o,l]}function Ez(e,t,n){var r=Tz(e,t,n),i=r[0],a=r[1];return[FR(i,n),a]}var Dz={itemToString:xz,stateReducer:hz,getA11ySelectionMessage:gz,scrollIntoView:SR,environment:typeof window>`u`?{}:window};function Oz(e,t,n){n===void 0&&(n=fz);var r=e[`default`+Cz(t)];return r===void 0?n[t]:r}function kz(e,t,n){n===void 0&&(n=fz);var r=e[t];if(r!==void 0)return r;var i=e[`initial`+Cz(t)];return i===void 0?Oz(e,t,n):i}function Az(e){var t=kz(e,`selectedItem`),n=kz(e,`isOpen`),r=kz(e,`highlightedIndex`),i=kz(e,`inputValue`);return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function jz(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a===void 0?o?r.indexOf(o):n===0?-1:n<0?r.length-1:0:a}function Mz(e,t,n,r){var i=(0,P.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,P.useEffect)(function(){if(n?.addEventListener!=null){var a=function(){i.current.isMouseDown=!0},o=function(a){i.current.isMouseDown=!1,e&&!BR(a.target,t.map(function(e){return e.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},c=function(){i.current.isTouchMove=!0},l=function(a){e&&!i.current.isTouchMove&&!BR(a.target,t.map(function(e){return e.current}),n,!1)&&r()};return n.addEventListener(`mousedown`,a),n.addEventListener(`mouseup`,o),n.addEventListener(`touchstart`,s),n.addEventListener(`touchmove`,c),n.addEventListener(`touchend`,l),function(){n.removeEventListener(`mousedown`,a),n.removeEventListener(`mouseup`,o),n.removeEventListener(`touchstart`,s),n.removeEventListener(`touchmove`,c),n.removeEventListener(`touchend`,l)}}},[e,n]),i}var Nz=function(){return xR};Nz=function(){var e=(0,P.useRef)(!0),t=[...arguments],n=(0,P.useRef)(t.reduce(function(e,t){return e[t]={},e},{}));return(0,P.useEffect)(function(){Object.keys(n.current).forEach(function(t){var r=n.current[t];if(e.current&&!Object.keys(r).length){console.error(`downshift: You forgot to call the `+t+` getter function on your component / element.`);return}var i=r.suppressRefError,a=r.refKey,o=r.elementRef;(!o||!o.current)&&!i&&console.error(`downshift: The ref prop "`+a+`" from `+t+` was not applied correctly on your element.`)}),e.current=!1}),(0,P.useCallback)(function(e,t,r,i){n.current[e]={suppressRefError:t,refKey:r,elementRef:i}},[])};function Pz(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=ZL(n,dz);(0,P.useEffect)(function(){r||_z(function(){return e(QL({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function Fz(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=(0,P.useRef)(!0);return vz(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var Iz=xR;Iz=function(e){var t=e.isInitialMount,n=e.props,r=e.state,i=(0,P.useRef)(n);(0,P.useEffect)(function(){t||(VR(r,i.current,n),i.current=n)},[r,n,t])};function Lz(e,t,n){return n===void 0&&(n=!0),QL({isOpen:!1,highlightedIndex:-1},e.items?.length&&t>=0&&QL({selectedItem:e.items[t],isOpen:Oz(e,`isOpen`),highlightedIndex:Oz(e,`highlightedIndex`)},n&&{inputValue:e.itemToString(e.items[t])}))}function Rz(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:jz(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:jz(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:Oz(i,`highlightedIndex`),isOpen:Oz(i,`isOpen`),selectedItem:Oz(i,`selectedItem`),inputValue:Oz(i,`inputValue`)};break;default:throw Error(`Reducer called without proper action type.`)}return QL({},e,a)}function zz(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),s=0;s<r.length;s++){var c=(s+n+ +(t.length<2))%r.length,l=r[c];if(l!==void 0&&i(l).toLowerCase().startsWith(o)&&!a(c)?.hasAttribute(`disabled`))return c}return n}var Bz={items:Y.default.array.isRequired,itemToString:Y.default.func,getA11yStatusMessage:Y.default.func,getA11ySelectionMessage:Y.default.func,highlightedIndex:Y.default.number,defaultHighlightedIndex:Y.default.number,initialHighlightedIndex:Y.default.number,isOpen:Y.default.bool,defaultIsOpen:Y.default.bool,initialIsOpen:Y.default.bool,selectedItem:Y.default.any,initialSelectedItem:Y.default.any,defaultSelectedItem:Y.default.any,id:Y.default.string,labelId:Y.default.string,menuId:Y.default.string,getItemId:Y.default.func,toggleButtonId:Y.default.string,stateReducer:Y.default.func,onSelectedItemChange:Y.default.func,onHighlightedIndexChange:Y.default.func,onStateChange:Y.default.func,onIsOpenChange:Y.default.func,environment:Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})})};function Vz(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:`${n} result${n===1?` is`:`s are`} available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.`:`No results are available.`:``}var Hz=Gj(Gj({},Dz),{getA11yStatusMessage:Vz}),Uz=xR;Uz=function(e,t){Y.default.checkPropTypes(Bz,e,`prop`,t.name)};var Wz=`__togglebutton_click__`,Gz=`__togglebutton_keydown_arrow_down__`,Kz=`__togglebutton_keydown_arrow_up__`,qz=`__togglebutton_keydown_character__`,Jz=`__togglebutton_keydown_escape__`,Yz=`__togglebutton_keydown_home__`,Xz=`__togglebutton_keydown_end__`,Zz=`__togglebutton_keydown_enter__`,Qz=`__togglebutton_keydown_space_button__`,$z=`__togglebutton_keydown_page_up__`,eB=`__togglebutton_keydown_page_down__`,tB=`__togglebutton_blur__`,nB=`__menu_mouse_leave__`,rB=`__item_mouse_move__`,iB=`__item_click__`,aB=`__function_toggle_menu__`,oB=`__function_open_menu__`,sB=`__function_close_menu__`,cB=`__function_set_highlighted_index__`,lB=`__function_select_item__`,uB=`__function_set_input_value__`,dB=`__function_reset__`,fB=Object.freeze({__proto__:null,ToggleButtonClick:Wz,ToggleButtonKeyDownArrowDown:Gz,ToggleButtonKeyDownArrowUp:Kz,ToggleButtonKeyDownCharacter:qz,ToggleButtonKeyDownEscape:Jz,ToggleButtonKeyDownHome:Yz,ToggleButtonKeyDownEnd:Xz,ToggleButtonKeyDownEnter:Zz,ToggleButtonKeyDownSpaceButton:Qz,ToggleButtonKeyDownPageUp:$z,ToggleButtonKeyDownPageDown:eB,ToggleButtonBlur:tB,MenuMouseLeave:nB,ItemMouseMove:rB,ItemClick:iB,FunctionToggleMenu:aB,FunctionOpenMenu:oB,FunctionCloseMenu:sB,FunctionSetHighlightedIndex:cB,FunctionSelectItem:lB,FunctionSetInputValue:uB,FunctionReset:dB});function pB(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case iB:a={isOpen:Oz(r,`isOpen`),highlightedIndex:Oz(r,`highlightedIndex`),selectedItem:r.items[t.index]};break;case qz:var o=t.key,s=``+e.inputValue+o;a={inputValue:s,highlightedIndex:zz({keysSoFar:s,highlightedIndex:!e.isOpen&&e.selectedItem?r.items.indexOf(e.selectedItem):e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex}),isOpen:!0};break;case Gz:a={highlightedIndex:e.isOpen?RR(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):i&&e.selectedItem==null?-1:jz(r,e,1),isOpen:!0};break;case Kz:a=e.isOpen&&i?Lz(r,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?RR(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):jz(r,e,-1),isOpen:!0};break;case Zz:case Qz:a=Lz(r,e.highlightedIndex,!1);break;case Yz:a={highlightedIndex:zR(1,0,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case Xz:a={highlightedIndex:zR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case $z:a={highlightedIndex:RR(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case eB:a={highlightedIndex:RR(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case Jz:a={isOpen:!1,highlightedIndex:-1};break;case tB:a=QL({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&{selectedItem:r.items[e.highlightedIndex]});break;case lB:a={selectedItem:t.selectedItem};break;default:return Rz(e,t,fB)}return QL({},e,a)}var mB=[`onMouseLeave`,`refKey`,`onKeyDown`,`onBlur`,`ref`],hB=[`onBlur`,`onClick`,`onPress`,`onKeyDown`,`refKey`,`ref`],gB=[`item`,`index`,`onMouseMove`,`onClick`,`onPress`,`refKey`,`ref`,`disabled`];_B.stateChangeTypes=fB;function _B(e){e===void 0&&(e={}),Uz(e,_B);var t=QL({},Hz,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.itemToString,o=t.getA11ySelectionMessage,s=t.getA11yStatusMessage,c=Ez(pB,Az(t),t),l=c[0],u=c[1],d=l.isOpen,f=l.highlightedIndex,p=l.selectedItem,m=l.inputValue,h=(0,P.useRef)(null),g=(0,P.useRef)(null),_=(0,P.useRef)({}),v=(0,P.useRef)(null),y=yz(t),b=(0,P.useRef)(),x=(0,P.useRef)(!0),S=wz({state:l,props:t}),C=(0,P.useCallback)(function(e){return _.current[y.getItemId(e)]},[y]);Pz(s,[d,f,m,n],QL({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l)),Pz(o,[p],QL({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l));var w=Fz({menuElement:g.current,highlightedIndex:f,isOpen:d,itemRefs:_,scrollIntoView:r,getItemNodeFromIndex:C});(0,P.useEffect)(function(){return v.current=wR(function(e){e({type:uB,inputValue:``})},500),function(){v.current.cancel()}},[]),(0,P.useEffect)(function(){m&&v.current(u)},[u,m]),Iz({isInitialMount:x.current,props:t,state:l}),(0,P.useEffect)(function(){x.current||(b.current=n.length)});var T=Mz(d,[g,h],i,function(){u({type:tB})}),E=Nz(`getMenuProps`,`getToggleButtonProps`);(0,P.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,P.useEffect)(function(){d||(_.current={})},[d]);var D=(0,P.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),u({type:Gz,getItemNodeFromIndex:C,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),u({type:Kz,getItemNodeFromIndex:C,altKey:e.altKey})},Home:function(e){e.preventDefault(),u({type:Yz,getItemNodeFromIndex:C})},End:function(e){e.preventDefault(),u({type:Xz,getItemNodeFromIndex:C})},Escape:function(){S.current.state.isOpen&&u({type:Jz})},Enter:function(e){e.preventDefault(),u({type:S.current.state.isOpen?Zz:Wz})},PageUp:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:$z,getItemNodeFromIndex:C}))},PageDown:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:eB,getItemNodeFromIndex:C}))}," ":function(e){e.preventDefault();var t=S.current.state;if(!t.isOpen){u({type:Wz});return}t.inputValue?u({type:qz,key:` `,getItemNodeFromIndex:C}):u({type:Qz})}}},[u,C,S]),O=(0,P.useCallback)(function(){u({type:aB})},[u]),k=(0,P.useCallback)(function(){u({type:sB})},[u]),A=(0,P.useCallback)(function(){u({type:oB})},[u]),j=(0,P.useCallback)(function(e){u({type:cB,highlightedIndex:e})},[u]),ee=(0,P.useCallback)(function(e){u({type:lB,selectedItem:e})},[u]),M=(0,P.useCallback)(function(){u({type:dB})},[u]),te=(0,P.useCallback)(function(e){u({type:uB,inputValue:e})},[u]),ne=(0,P.useCallback)(function(e){return QL({id:y.labelId,htmlFor:y.toggleButtonId},e)},[y]),re=(0,P.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a;r.onKeyDown,r.onBlur;var s=r.ref,c=ZL(r,mB),l=(t===void 0?{}:t).suppressRefError;return E(`getMenuProps`,l===void 0?!1:l,o,g),QL((n={},n[o]=ER(s,function(e){g.current=e}),n.id=y.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+y.labelId,n.onMouseLeave=TR(i,function(){u({type:nB})}),n),c)},[u,E,y]);return{getToggleButtonProps:(0,P.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onBlur,a=r.onClick;r.onPress;var o=r.onKeyDown,s=r.refKey,c=s===void 0?`ref`:s,l=r.ref,d=ZL(r,hB),f=(t===void 0?{}:t).suppressRefError,p=f===void 0?!1:f,m=S.current.state,g=function(){u({type:Wz})},_=function(){m.isOpen&&!T.current.isMouseDown&&u({type:tB})},v=function(e){var t=LR(e);t&&D[t]?D[t](e):Sz(t)&&u({type:qz,key:t,getItemNodeFromIndex:C})},b=QL((n={},n[c]=ER(l,function(e){h.current=e}),n[`aria-activedescendant`]=m.isOpen&&m.highlightedIndex>-1?y.getItemId(m.highlightedIndex):``,n[`aria-controls`]=y.menuId,n[`aria-expanded`]=S.current.state.isOpen,n[`aria-haspopup`]=`listbox`,n[`aria-labelledby`]=d&&d[`aria-label`]?void 0:``+y.labelId,n.id=y.toggleButtonId,n.role=`combobox`,n.tabIndex=0,n.onBlur=TR(i,_),n),d);return d.disabled||(b.onClick=TR(a,g),b.onKeyDown=TR(o,v)),E(`getToggleButtonProps`,p,c,h),b},[S,y,E,u,T,D,C]),getLabelProps:ne,getMenuProps:re,getItemProps:(0,P.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick;n.onPress;var s=n.refKey,c=s===void 0?`ref`:s,l=n.ref,d=n.disabled,f=ZL(n,gB),m=S.current,h=m.state,g=m.props,v=bz(r,i,g.items,`Pass either item or index to getItemProps!`),b=v[0],x=v[1],C=function(){x!==h.highlightedIndex&&(w.current=!1,u({type:rB,index:x,disabled:d}))},T=function(){u({type:iB,index:x})},E=QL((t={disabled:d,role:`option`,"aria-selected":``+(b===p),id:y.getItemId(x)},t[c]=ER(l,function(e){e&&(_.current[y.getItemId(x)]=e)}),t),f);return d||(E.onClick=TR(o,T)),E.onMouseMove=TR(a,C),E},[S,p,y,w,u]),toggleMenu:O,openMenu:A,closeMenu:k,setHighlightedIndex:j,selectItem:ee,reset:M,setInputValue:te,highlightedIndex:f,isOpen:d,selectedItem:p,inputValue:m}}var vB=`__input_keydown_arrow_down__`,yB=`__input_keydown_arrow_up__`,bB=`__input_keydown_escape__`,xB=`__input_keydown_home__`,SB=`__input_keydown_end__`,CB=`__input_keydown_page_up__`,wB=`__input_keydown_page_down__`,TB=`__input_keydown_enter__`,EB=`__input_change__`,DB=`__input_blur__`,OB=`__input_focus__`,kB=`__menu_mouse_leave__`,AB=`__item_mouse_move__`,jB=`__item_click__`,MB=`__togglebutton_click__`,NB=`__function_toggle_menu__`,PB=`__function_open_menu__`,FB=`__function_close_menu__`,IB=`__function_set_highlighted_index__`,LB=`__function_select_item__`,RB=`__function_set_input_value__`,zB=`__function_reset__`,BB=`__controlled_prop_updated_selected_item__`,VB=Object.freeze({__proto__:null,InputKeyDownArrowDown:vB,InputKeyDownArrowUp:yB,InputKeyDownEscape:bB,InputKeyDownHome:xB,InputKeyDownEnd:SB,InputKeyDownPageUp:CB,InputKeyDownPageDown:wB,InputKeyDownEnter:TB,InputChange:EB,InputBlur:DB,InputFocus:OB,MenuMouseLeave:kB,ItemMouseMove:AB,ItemClick:jB,ToggleButtonClick:MB,FunctionToggleMenu:NB,FunctionOpenMenu:PB,FunctionCloseMenu:FB,FunctionSetHighlightedIndex:IB,FunctionSelectItem:LB,FunctionSetInputValue:RB,FunctionReset:zB,ControlledPropUpdatedSelectedItem:BB});function HB(e){var t=Az(e),n=t.selectedItem,r=t.inputValue;return r===``&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),QL({},t,{inputValue:r})}var UB={items:Y.default.array.isRequired,itemToString:Y.default.func,selectedItemChanged:Y.default.func,getA11yStatusMessage:Y.default.func,getA11ySelectionMessage:Y.default.func,highlightedIndex:Y.default.number,defaultHighlightedIndex:Y.default.number,initialHighlightedIndex:Y.default.number,isOpen:Y.default.bool,defaultIsOpen:Y.default.bool,initialIsOpen:Y.default.bool,selectedItem:Y.default.any,initialSelectedItem:Y.default.any,defaultSelectedItem:Y.default.any,inputValue:Y.default.string,defaultInputValue:Y.default.string,initialInputValue:Y.default.string,id:Y.default.string,labelId:Y.default.string,menuId:Y.default.string,getItemId:Y.default.func,inputId:Y.default.string,toggleButtonId:Y.default.string,stateReducer:Y.default.func,onSelectedItemChange:Y.default.func,onHighlightedIndexChange:Y.default.func,onStateChange:Y.default.func,onIsOpenChange:Y.default.func,onInputValueChange:Y.default.func,environment:Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})})};function WB(e,t,n){var r=(0,P.useRef)(),i=Tz(e,t,n),a=i[0],o=i[1];return(0,P.useEffect)(function(){IR(n,`selectedItem`)&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:BB,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[FR(a,n),o]}var GB=xR;GB=function(e,t){Y.default.checkPropTypes(UB,e,`prop`,t.name)};var KB=QL({},Dz,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:OR});function qB(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case jB:a={isOpen:Oz(r,`isOpen`),highlightedIndex:Oz(r,`highlightedIndex`),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case vB:a=e.isOpen?{highlightedIndex:RR(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:i&&e.selectedItem==null?-1:jz(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case yB:a=e.isOpen?i?Lz(r,e.highlightedIndex):{highlightedIndex:RR(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:jz(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case TB:a=Lz(r,e.highlightedIndex);break;case bB:a=QL({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:``});break;case CB:a={highlightedIndex:RR(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case wB:a={highlightedIndex:RR(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case xB:a={highlightedIndex:zR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case SB:a={highlightedIndex:zR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case DB:a=QL({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case EB:a={isOpen:!0,highlightedIndex:Oz(r,`highlightedIndex`),inputValue:t.inputValue};break;case OB:a={isOpen:!0,highlightedIndex:jz(r,e,0)};break;case LB:a={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case BB:a={inputValue:t.inputValue};break;default:return Rz(e,t,VB)}return QL({},e,a)}var JB=[`onMouseLeave`,`refKey`,`ref`],YB=[`item`,`index`,`refKey`,`ref`,`onMouseMove`,`onMouseDown`,`onClick`,`onPress`,`disabled`],XB=[`onClick`,`onPress`,`refKey`,`ref`],ZB=[`onKeyDown`,`onChange`,`onInput`,`onFocus`,`onBlur`,`onChangeText`,`refKey`,`ref`];QB.stateChangeTypes=VB;function QB(e){e===void 0&&(e={}),GB(e,QB);var t=QL({},KB,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,l=t.itemToString,u=WB(qB,HB(t),t),d=u[0],f=u[1],p=d.isOpen,m=d.highlightedIndex,h=d.selectedItem,g=d.inputValue,_=(0,P.useRef)(null),v=(0,P.useRef)({}),y=(0,P.useRef)(null),b=(0,P.useRef)(null),x=(0,P.useRef)(!0),S=yz(t),C=(0,P.useRef)(),w=wz({state:d,props:t}),T=(0,P.useCallback)(function(e){return v.current[S.getItemId(e)]},[S]);Pz(s,[p,m,g,i],QL({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d)),Pz(c,[h],QL({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d));var E=Fz({menuElement:_.current,highlightedIndex:m,isOpen:p,itemRefs:v,scrollIntoView:a,getItemNodeFromIndex:T});Iz({isInitialMount:x.current,props:t,state:d}),(0,P.useEffect)(function(){(n||r||p)&&y.current&&y.current.focus()},[]),(0,P.useEffect)(function(){x.current||(C.current=i.length)});var D=Mz(p,[y,_,b],o,function(){f({type:DB,selectItem:!1})}),O=Nz(`getInputProps`,`getMenuProps`);(0,P.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,P.useEffect)(function(){if(!p)v.current={};else if(o.document?.activeElement!==y.current){var e;y==null||(e=y.current)==null||e.focus()}},[p,o]);var k=(0,P.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),f({type:vB,altKey:e.altKey,getItemNodeFromIndex:T})},ArrowUp:function(e){e.preventDefault(),f({type:yB,altKey:e.altKey,getItemNodeFromIndex:T})},Home:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:xB,getItemNodeFromIndex:T}))},End:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:SB,getItemNodeFromIndex:T}))},Escape:function(e){var t=w.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),f({type:bB}))},Enter:function(e){!w.current.state.isOpen||e.which===229||(e.preventDefault(),f({type:TB,getItemNodeFromIndex:T}))},PageUp:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:CB,getItemNodeFromIndex:T}))},PageDown:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:wB,getItemNodeFromIndex:T}))}}},[f,w,T]),A=(0,P.useCallback)(function(e){return QL({id:S.labelId,htmlFor:S.inputId},e)},[S]),j=(0,P.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a,s=r.ref,c=ZL(r,JB),l=(t===void 0?{}:t).suppressRefError;return O(`getMenuProps`,l===void 0?!1:l,o,_),QL((n={},n[o]=ER(s,function(e){_.current=e}),n.id=S.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+S.labelId,n.onMouseLeave=TR(i,function(){f({type:kB})}),n),c)},[f,O,S]),ee=(0,P.useCallback)(function(e){var t,n,r=e===void 0?{}:e,i=r.item,a=r.index,o=r.refKey,s=o===void 0?`ref`:o,c=r.ref,l=r.onMouseMove,u=r.onMouseDown,d=r.onClick;r.onPress;var p=r.disabled,m=ZL(r,YB),h=w.current,g=h.props,_=h.state,y=bz(i,a,g.items,`Pass either item or index to getItemProps!`)[1],b=`onClick`,x=d;return QL((t={},t[s]=ER(c,function(e){e&&(v.current[S.getItemId(y)]=e)}),t.disabled=p,t.role=`option`,t[`aria-selected`]=``+(y===_.highlightedIndex),t.id=S.getItemId(y),t),!p&&(n={},n[b]=TR(x,function(){f({type:jB,index:y})}),n),{onMouseMove:TR(l,function(){y!==_.highlightedIndex&&(E.current=!1,f({type:AB,index:y,disabled:p}))}),onMouseDown:TR(u,function(e){return e.preventDefault()})},m)},[f,w,E,S]),M=(0,P.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.onClick;n.onPress;var i=n.refKey,a=i===void 0?`ref`:i,o=n.ref,s=ZL(n,XB),c=w.current.state;return QL((t={},t[a]=ER(o,function(e){b.current=e}),t[`aria-controls`]=S.menuId,t[`aria-expanded`]=c.isOpen,t.id=S.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&QL({},{onClick:TR(r,function(){f({type:MB})})}),s)},[f,w,S]),te=(0,P.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onKeyDown,a=r.onChange,s=r.onInput,c=r.onFocus,l=r.onBlur;r.onChangeText;var u=r.refKey,d=u===void 0?`ref`:u,p=r.ref,m=ZL(r,ZB),h=(t===void 0?{}:t).suppressRefError;O(`getInputProps`,h===void 0?!1:h,d,y);var g=w.current.state,_=function(e){var t=LR(e);t&&k[t]&&k[t](e)},v=function(e){f({type:EB,inputValue:e.target.value})},b=function(e){g.isOpen&&!D.current.isMouseDown&&f({type:DB,selectItem:!(e.relatedTarget===null&&o.document.activeElement!==o.document.body)})},x=function(){g.isOpen||f({type:OB})},C=`onChange`,T={};if(!m.disabled){var E;T=(E={},E[C]=TR(a,s,v),E.onKeyDown=TR(i,_),E.onBlur=TR(l,b),E.onFocus=TR(c,x),E)}return QL((n={},n[d]=ER(p,function(e){y.current=e}),n[`aria-activedescendant`]=g.isOpen&&g.highlightedIndex>-1?S.getItemId(g.highlightedIndex):``,n[`aria-autocomplete`]=`list`,n[`aria-controls`]=S.menuId,n[`aria-expanded`]=g.isOpen,n[`aria-labelledby`]=m&&m[`aria-label`]?void 0:``+S.labelId,n.autoComplete=`off`,n.id=S.inputId,n.role=`combobox`,n.value=g.inputValue,n),T,m)},[O,w,S,k,f,D,o]),ne=(0,P.useCallback)(function(){f({type:NB})},[f]),re=(0,P.useCallback)(function(){f({type:FB})},[f]),ie=(0,P.useCallback)(function(){f({type:PB})},[f]),ae=(0,P.useCallback)(function(e){f({type:IB,highlightedIndex:e})},[f]),oe=(0,P.useCallback)(function(e){f({type:LB,selectedItem:e})},[f]);return{getItemProps:ee,getLabelProps:A,getMenuProps:j,getInputProps:te,getToggleButtonProps:M,toggleMenu:ne,openMenu:ie,closeMenu:re,setHighlightedIndex:ae,setInputValue:(0,P.useCallback)(function(e){f({type:RB,inputValue:e})},[f]),selectItem:oe,reset:(0,P.useCallback)(function(){f({type:zB})},[f]),highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}var $B={activeIndex:-1,selectedItems:[]};function eV(e,t){return kz(e,t,$B)}function tV(e,t){return Oz(e,t,$B)}function nV(e){return{activeIndex:eV(e,`activeIndex`),selectedItems:eV(e,`selectedItems`)}}function rV(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==``&&(t.selectionStart!==0||t.selectionEnd!==0))}function iV(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+` has been removed.`}var aV={selectedItems:Y.default.array,initialSelectedItems:Y.default.array,defaultSelectedItems:Y.default.array,itemToString:Y.default.func,getA11yRemovalMessage:Y.default.func,stateReducer:Y.default.func,activeIndex:Y.default.number,initialActiveIndex:Y.default.number,defaultActiveIndex:Y.default.number,onActiveIndexChange:Y.default.func,onSelectedItemsChange:Y.default.func,keyNavigationNext:Y.default.string,keyNavigationPrevious:Y.default.string,environment:Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})})},oV={itemToString:Dz.itemToString,stateReducer:Dz.stateReducer,environment:Dz.environment,getA11yRemovalMessage:iV,keyNavigationNext:`ArrowRight`,keyNavigationPrevious:`ArrowLeft`},sV=xR;sV=function(e,t){Y.default.checkPropTypes(aV,e,`prop`,t.name)};var cV=`__selected_item_click__`,lV=`__selected_item_keydown_delete__`,uV=`__selected_item_keydown_backspace__`,dV=`__selected_item_keydown_navigation_next__`,fV=`__selected_item_keydown_navigation_previous__`,pV=`__dropdown_keydown_navigation_previous__`,mV=`__dropdown_keydown_backspace__`,hV=`__dropdown_click__`,gV=`__function_add_selected_item__`,_V=`__function_remove_selected_item__`,vV=`__function_set_selected_items__`,yV=`__function_set_active_index__`,bV=`__function_reset__`,xV=Object.freeze({__proto__:null,SelectedItemClick:cV,SelectedItemKeyDownDelete:lV,SelectedItemKeyDownBackspace:uV,SelectedItemKeyDownNavigationNext:dV,SelectedItemKeyDownNavigationPrevious:fV,DropdownKeyDownNavigationPrevious:pV,DropdownKeyDownBackspace:mV,DropdownClick:hV,FunctionAddSelectedItem:gV,FunctionRemoveSelectedItem:_V,FunctionSetSelectedItems:vV,FunctionSetActiveIndex:yV,FunctionReset:bV});function SV(e,t){var n=t.type,r=t.index,i=t.props,a=t.selectedItem,o=e.activeIndex,s=e.selectedItems,c;switch(n){case cV:c={activeIndex:r};break;case fV:c={activeIndex:o-1<0?0:o-1};break;case dV:c={activeIndex:o+1>=s.length?-1:o+1};break;case uV:case lV:if(o<0)break;var l=o;s.length===1?l=-1:o===s.length-1&&(l=s.length-2),c=QL({selectedItems:[].concat(s.slice(0,o),s.slice(o+1))},{activeIndex:l});break;case pV:c={activeIndex:s.length-1};break;case mV:c={selectedItems:s.slice(0,s.length-1)};break;case gV:c={selectedItems:[].concat(s,[a])};break;case hV:c={activeIndex:-1};break;case _V:var u=o,d=s.indexOf(a);if(d<0)break;s.length===1?u=-1:d===s.length-1&&(u=s.length-2),c={selectedItems:[].concat(s.slice(0,d),s.slice(d+1)),activeIndex:u};break;case vV:c={selectedItems:t.selectedItems};break;case yV:c={activeIndex:t.activeIndex};break;case bV:c={activeIndex:tV(i,`activeIndex`),selectedItems:tV(i,`selectedItems`)};break;default:throw Error(`Reducer called without proper action type.`)}return QL({},e,c)}var CV=[`refKey`,`ref`,`onClick`,`onKeyDown`,`selectedItem`,`index`],wV=[`refKey`,`ref`,`onKeyDown`,`onClick`,`preventKeyAction`];TV.stateChangeTypes=xV;function TV(e){e===void 0&&(e={}),sV(e,TV);var t=QL({},oV,e),n=t.getA11yRemovalMessage,r=t.itemToString,i=t.environment,a=t.keyNavigationNext,o=t.keyNavigationPrevious,s=Ez(SV,nV(t),t),c=s[0],l=s[1],u=c.activeIndex,d=c.selectedItems,f=(0,P.useRef)(!0),p=(0,P.useRef)(null),m=(0,P.useRef)(d),h=(0,P.useRef)();h.current=[];var g=wz({state:c,props:t});(0,P.useEffect)(function(){if(!f.current){if(d.length<m.current.length){var e=m.current.find(function(e){return d.indexOf(e)<0});HR(n({itemToString:r,resultCount:d.length,removedSelectedItem:e,activeIndex:u,activeSelectedItem:d[u]}),i.document)}m.current=d}},[d.length]),(0,P.useEffect)(function(){f.current||(u===-1&&p.current?p.current.focus():h.current[u]&&h.current[u].focus())},[u]),Iz({isInitialMount:f.current,props:t,state:c});var _=Nz(`getDropdownProps`);(0,P.useEffect)(function(){return f.current=!1,function(){f.current=!0}},[]);var v=(0,P.useMemo)(function(){var e;return e={},e[o]=function(){l({type:fV})},e[a]=function(){l({type:dV})},e.Delete=function(){l({type:lV})},e.Backspace=function(){l({type:uV})},e},[l,a,o]),y=(0,P.useMemo)(function(){var e;return e={},e[o]=function(e){rV(e)&&l({type:pV})},e.Backspace=function(e){rV(e)&&l({type:mV})},e},[l,o]);return{getSelectedItemProps:(0,P.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.refKey,i=r===void 0?`ref`:r,a=n.ref,o=n.onClick,s=n.onKeyDown,c=n.selectedItem,u=n.index,d=ZL(n,CV),f=g.current.state,p=bz(c,u,f.selectedItems,`Pass either item or index to getSelectedItemProps!`)[1],m=p>-1&&p===f.activeIndex;return QL((t={},t[i]=ER(a,function(e){e&&h.current.push(e)}),t.tabIndex=m?0:-1,t.onClick=TR(o,function(){l({type:cV,index:p})}),t.onKeyDown=TR(s,function(e){var t=LR(e);t&&v[t]&&v[t](e)}),t),d)},[l,g,v]),getDropdownProps:(0,P.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.refKey,a=i===void 0?`ref`:i,o=r.ref,s=r.onKeyDown,c=r.onClick,u=r.preventKeyAction,d=u===void 0?!1:u,f=ZL(r,wV),m=(t===void 0?{}:t).suppressRefError;return _(`getDropdownProps`,m===void 0?!1:m,a,p),QL((n={},n[a]=ER(o,function(e){e&&(p.current=e)}),n),!d&&{onKeyDown:TR(s,function(e){var t=LR(e);t&&y[t]&&y[t](e)}),onClick:TR(c,function(){l({type:hV})})},f)},[l,y,_]),addSelectedItem:(0,P.useCallback)(function(e){l({type:gV,selectedItem:e})},[l]),removeSelectedItem:(0,P.useCallback)(function(e){l({type:_V,selectedItem:e})},[l]),setSelectedItems:(0,P.useCallback)(function(e){l({type:vV,selectedItems:e})},[l]),setActiveIndex:(0,P.useCallback)(function(e){l({type:yV,activeIndex:e})},[l]),reset:(0,P.useCallback)(function(){l({type:bV})},[l]),selectedItems:d,activeIndex:u}}var EV=20,DV=e=>e.suggestions.length>0?P.createElement(OV,{...e}):P.createElement(`input`,{className:J.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),OV=({autofocus:e,suggestions:t,control:n,inputName:r,placeholder:i,initialInputValue:a,setValue:o})=>{let[s,c]=P.useState(t.slice(0,EV)),l=Tn(pw),u=t.length>0,{isOpen:d,getToggleButtonProps:f,getMenuProps:p,getInputProps:m,highlightedIndex:h,getItemProps:g,selectedItem:_}=QB({initialInputValue:a,onInputValueChange({inputValue:e=``}){o(r,e),e=e.toLowerCase()||``;let n=[];for(let r of t)if(r.toLowerCase().includes(e)&&(n.push(r),n.length>=EV))break;c(n)},items:s,itemToString(e){return e??``}}),v=d&&s.length>0;return P.createElement(`div`,{className:J.downshiftAutocompleteContainer},P.createElement(`div`,{"data-visible-dropdown":v,className:J.downshiftInputWrapper},P.createElement(WI,{name:r,control:n,render:({field:t})=>{let n=m();return P.createElement(`input`,{...n,name:t.name,placeholder:i,className:J.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:e})}}),u&&P.createElement(`button`,{"aria-label":`toggle menu`,type:`button`,...f()},l(`arrow_drop_down`))),P.createElement(`div`,{className:J.downshiftAutocompleteContainer},P.createElement(`ul`,{...p(),"data-visible":v},s.map((e,t)=>P.createElement(`li`,{"data-selected":_===e,"data-highlighted":h===t,key:`${e}${t}`,...g({item:e,index:t})},e)))))},kV=()=>{let[e,t,n,r,i]=En(QV,rH,YC,eH,cH),a=Dn(lH),o=Dn(oH),s=Hw(),{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=XL({values:t.type===`editing`?t.initialValues:{}}),p=()=>{f({src:``,title:``,altText:``,width:void 0,height:void 0})};return t.type===`inactive`?null:P.createElement(iI,{open:!0,onOpenChange:e=>{e||(o(),p())}},P.createElement(aI,{container:n?.current},P.createElement(oI,{className:J.dialogOverlay}),P.createElement(sI,{className:J.dialogContent,onOpenAutoFocus:e=>{e.preventDefault()}},P.createElement(cI,null,s(`uploadImage.dialogTitle`,`Upload an image`)),P.createElement(`form`,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await l(a)(e),p()},className:J.multiFieldForm},r===null?P.createElement(`input`,{type:`hidden`,accept:`image/*`,...c(`file`)}):P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`file`},s(`uploadImage.uploadInstructions`,`Upload an image from your device:`)),P.createElement(`input`,{type:`file`,accept:`image/*`,...c(`file`)})),P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`src`},r===null?s(`uploadImage.addViaUrlInstructionsNoUpload`,`Add an image from an URL:`):s(`uploadImage.addViaUrlInstructions`,`Or add an image from an URL:`)),P.createElement(DV,{register:c,initialInputValue:t.type===`editing`?t.initialValues.src??``:``,inputName:`src`,suggestions:e,setValue:d,control:u,placeholder:s(`uploadImage.autoCompletePlaceholder`,`Select or paste an image src`)})),P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`alt`},s(`uploadImage.alt`,`Alt:`)),P.createElement(`input`,{type:`text`,...c(`altText`),className:J.textInput})),P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`title`},s(`uploadImage.title`,`Title:`)),P.createElement(`input`,{type:`text`,...c(`title`),className:J.textInput})),i&&P.createElement(`div`,{className:J.imageDimensionsContainer},P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`width`},s(`uploadImage.width`,`Width:`)),P.createElement(`input`,{type:`number`,min:0,...c(`width`),className:J.textInput})),P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`height`},s(`uploadImage.height`,`Height:`)),P.createElement(`input`,{type:`number`,min:0,...c(`height`),className:J.textInput}))),P.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},P.createElement(`button`,{type:`submit`,title:s(`dialogControls.save`,`Save`),"aria-label":s(`dialogControls.save`,`Save`),className:(0,AE.default)(J.primaryButton)},s(`dialogControls.save`,`Save`)),P.createElement(lI,{asChild:!0},P.createElement(`button`,{type:`reset`,title:s(`dialogControls.cancel`,`Cancel`),"aria-label":s(`dialogControls.cancel`,`Cancel`),className:(0,AE.default)(J.secondaryButton)},s(`dialogControls.cancel`,`Cancel`))))))))};function AV(e,t,n){return Math.min(Math.max(e,t),n)}var jV={east:1,north:8,south:2,west:4};function MV({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:i}){let a=(0,P.useRef)(null),o=(0,P.useRef)({priority:``,value:`default`}),s=(0,P.useRef)({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),c=i.getRootElement(),l=r??(c===null?100:c.getBoundingClientRect().width-20),u=c===null?100:c.getBoundingClientRect().height-20,d=e=>{let t=e===jV.east||e===jV.west,n=e===jV.north||e===jV.south,r=e&jV.north&&e&jV.west||e&jV.south&&e&jV.east,i=t?`ew`:n?`ns`:r?`nwse`:`nesw`;c!==null&&c.style.setProperty(`cursor`,`${i}-resize`,`important`),document.body!==null&&(document.body.style.setProperty(`cursor`,`${i}-resize`,`important`),o.current.value=document.body.style.getPropertyValue(`-webkit-user-select`),o.current.priority=document.body.style.getPropertyPriority(`-webkit-user-select`),document.body.style.setProperty(`-webkit-user-select`,`none`,`important`))},f=()=>{c!==null&&c.style.setProperty(`cursor`,`text`),document.body!==null&&(document.body.style.setProperty(`cursor`,`default`),document.body.style.setProperty(`-webkit-user-select`,o.current.value,o.current.priority))},p=(t,r)=>{if(!i.isEditable())return;let o=n.current,c=a.current;if(o!==null&&c!==null){t.preventDefault();let{width:n,height:i}=o.getBoundingClientRect(),a=s.current;a.startWidth=n,a.startHeight=i,a.ratio=n/i,a.currentWidth=n,a.currentHeight=i,a.startX=t.clientX,a.startY=t.clientY,a.isResizing=!0,a.direction=r,d(r),e(),c.classList.add(J.imageControlWrapperResizing),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener(`pointermove`,m),document.addEventListener(`pointerup`,h)}},m=e=>{let t=n.current,r=s.current,i=r.direction&(jV.east|jV.west),a=r.direction&(jV.south|jV.north);if(t!==null&&r.isResizing)if(i&&a){let n=Math.floor(r.startX-e.clientX);n=r.direction&jV.east?-n:n;let i=AV(r.startWidth+n,100,l),a=i/r.ratio;t.style.width=`${i}px`,t.style.height=`${a}px`,r.currentHeight=a,r.currentWidth=i}else if(a){let n=Math.floor(r.startY-e.clientY);n=r.direction&jV.south?-n:n;let i=AV(r.startHeight+n,100,u);t.style.height=`${i}px`,r.currentHeight=i}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&jV.east?-n:n;let i=AV(r.startWidth+n,100,l);t.style.width=`${i}px`,r.currentWidth=i}},h=()=>{let e=n.current,r=s.current,i=a.current;if(e!==null&&i!==null&&r.isResizing){let e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,i.classList.remove(J.imageControlWrapperResizing),f(),t(e,n),document.removeEventListener(`pointermove`,m),document.removeEventListener(`pointerup`,h)}};return P.createElement(`div`,{ref:a},P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerN),onPointerDown:e=>{p(e,jV.north)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerNe),onPointerDown:e=>{p(e,jV.north|jV.east)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerE),onPointerDown:e=>{p(e,jV.east)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerSe),onPointerDown:e=>{p(e,jV.south|jV.east)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerS),onPointerDown:e=>{p(e,jV.south)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerSw),onPointerDown:e=>{p(e,jV.south|jV.west)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerW),onPointerDown:e=>{p(e,jV.west)}}),P.createElement(`div`,{className:(0,AE.default)(J.imageResizer,J.imageResizerNw),onPointerDown:e=>{p(e,jV.north|jV.west)}}))}var NV=`data:image/svg+xml;charset=utf-8,%0A%20%20%20%20%3Csvg%20id%3D%22imgLoadError%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22none%22%20stroke%3D%22red%22%20stroke-width%3D%224%22%20stroke-dasharray%3D%224%22%20%2F%3E%0A%20%20%20%20%20%20%3Ctext%20x%3D%2250%22%20y%3D%2255%22%20text-anchor%3D%22middle%22%20font-size%3D%2220%22%20fill%3D%22red%22%3E%E2%9A%A0%EF%B8%8F%3C%2Ftext%3E%0A%20%20%20%20%3C%2Fsvg%3E%0A`,PV={__cache:{},read(e){if(this.__cache[e]||(this.__cache[e]=new Promise(t=>{let n=new Image;n.onerror=()=>{this.__cache[e]=NV,t()},n.onload=()=>{this.__cache[e]=e,t()},n.src=e})),this.__cache[e]instanceof Promise)throw this.__cache[e];return this.__cache[e]}};function FV({title:e,alt:t,className:n,imageRef:r,src:i,width:a,height:o}){return P.createElement(`img`,{className:n??void 0,alt:t,src:PV.read(i),title:e,ref:r,draggable:`false`,width:a,height:o})}function IV({src:e,title:t,alt:n,nodeKey:r,width:i,height:a,rest:o}){let[s,c,l,u,d,f]=En(nH,$V,cH,tH,wC,uH),p=P.useRef(null),m=P.useRef(null),[h,g,_]=XE(r),[v]=Bn(),[y,b]=P.useState(null),x=P.useRef(null),[S,C]=P.useState(!1),[w,T]=P.useState(null),[E,D]=P.useState(null),O=P.useCallback(e=>{if(h&&Ss(B())){e.preventDefault();let t=Ul(r);WV(t)&&t.remove()}return!1},[h,r]),k=P.useCallback(e=>{let t=B(),n=m.current;return h&&Ss(t)&&t.getNodes().length===1&&n!==null&&n!==document.activeElement?(e.preventDefault(),n.focus(),!0):!1},[h]),A=P.useCallback(e=>m.current===e.target?($l(null),v.update(()=>{g(!0);let e=v.getRootElement();e!==null&&e.focus()}),!0):!1,[v,g]);P.useEffect(()=>{u?(async()=>{E||D(e),T(await u(e))})().catch(e=>{console.error(e)}):T(e)},[e,u,E]),P.useEffect(()=>{if(l&&p.current){let{current:e}=p;LV(e,`width`,i),LV(e,`height`,a)}},[l,i,a]),P.useEffect(()=>{let e=!0,t=yp(v.registerUpdateListener(({editorState:t})=>{e&&b(t.read(()=>B()))}),v.registerCommand(ea,(e,t)=>(x.current=t,!1),1),v.registerCommand(na,e=>{let t=e;return S?!0:t.target===p.current?(t.shiftKey?g(!h):(_(),g(!0)),!0):!1},1),v.registerCommand(ja,e=>e.target===p.current?(e.preventDefault(),!0):!1,1),v.registerCommand(wa,O,1),v.registerCommand(Sa,O,1),v.registerCommand(ba,k,1),v.registerCommand(Ca,A,1));return()=>{e=!1,t()}},[_,v,S,h,r,O,k,A,g]);let j=(e,t)=>{setTimeout(()=>{C(!1)},200),v.update(()=>{let n=Ul(r);WV(n)&&n.setWidthAndHeight(e,t)})},ee=()=>{C(!0)},M=Ss(y),te=h,ne=P.useMemo(()=>{if(o.length===0)return null;let e=o.find(e=>e.type===`mdxJsxAttribute`&&(e.name===`class`||e.name===`className`));return e?e.value:null},[o]);return w===null?null:P.createElement(P.Suspense,{fallback:s?P.createElement(s,null):null},P.createElement(`div`,{className:J.imageWrapper,"data-editor-block-type":`image`},P.createElement(`div`,{draggable:M},P.createElement(FV,{width:i,height:a,className:(0,AE.default)({[J.focusedImage]:te},ne),src:w,title:t??``,alt:n??``,imageRef:p})),M&&te&&!c&&P.createElement(MV,{editor:v,imageRef:p,onResizeStart:ee,onResizeEnd:j}),d||P.createElement(f,{nodeKey:r,imageSource:w,initialImagePath:E,title:t??``,alt:n??``,width:i,height:a})))}var LV=(e,t,n)=>{typeof n==`number`?e.style[t]=`${n}px`:e.style.removeProperty(t)},RV=Object.defineProperty,zV=(e,t,n)=>t in e?RV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BV=(e,t,n)=>(zV(e,typeof t==`symbol`?t:t+``,n),n);function VV(e){if(e instanceof HTMLImageElement){let{alt:t,src:n,title:r,width:i,height:a}=e;return{node:UV({altText:t,src:n,title:r,width:i||void 0,height:a||void 0})}}return null}var HV=class e extends Uc{constructor(e,t,n,r,i,a,o){super(o),BV(this,`__src`),BV(this,`__altText`),BV(this,`__title`),BV(this,`__width`),BV(this,`__height`),BV(this,`__rest`),this.__src=e,this.__title=n,this.__altText=t,this.__width=r??`inherit`,this.__height=i??`inherit`,this.__rest=a??[]}static getType(){return`image`}static clone(t){return new e(t.__src,t.__altText,t.__title,t.__width,t.__height,t.__rest,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__src=e.__src,this.__altText=e.__altText,this.__title=e.__title,this.__width=e.__width,this.__height=e.__height,this.__rest=e.__rest}static importJSON(e){let{altText:t,title:n,src:r,width:i,rest:a,height:o}=e;return UV({altText:t,title:n,src:r,height:o,width:i,rest:a})}exportDOM(){let e=document.createElement(`img`);return e.setAttribute(`src`,this.__src),e.setAttribute(`alt`,this.__altText),this.__title&&e.setAttribute(`title`,this.__title),this.__width!==`inherit`&&this.__width&&e.setAttribute(`width`,this.__width.toString()),this.__height!==`inherit`&&this.__height&&e.setAttribute(`height`,this.__height.toString()),{element:e}}static importDOM(){return{img:()=>({conversion:VV,priority:0})}}exportJSON(){return{altText:this.getAltText(),title:this.getTitle(),height:this.__height===`inherit`?void 0:this.__height,width:this.__width===`inherit`?void 0:this.__width,src:this.getSrc(),rest:this.__rest,type:`image`,version:1}}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}createDOM(e,t){let n=document.createElement(`span`),r=e.theme.image;return r!==void 0&&(n.className=r),n}updateDOM(){return!1}getSrc(){return this.__src}getAltText(){return this.__altText}getTitle(){return this.__title}getHeight(){return this.__height}getWidth(){return this.__width}getRest(){return this.__rest}setTitle(e){this.getWritable().__title=e}setSrc(e){this.getWritable().__src=e}setAltText(e){this.getWritable().__altText=e??``}shouldBeSerializedAsElement(){return this.__width!==`inherit`||this.__height!==`inherit`||this.__rest.length>0}decorate(e){return P.createElement(IV,{src:this.getSrc(),title:this.getTitle(),nodeKey:this.getKey(),width:this.__width,height:this.__height,alt:this.__altText,rest:this.__rest})}};function UV(e){let{altText:t,title:n,src:r,key:i,width:a,height:o,rest:s}=e;return new HV(r,t,n,a,o,s,i)}function WV(e){return e instanceof HV}var GV={testLexicalNode:WV,visitLexicalNode({mdastParent:e,lexicalNode:t,actions:n}){if(t.shouldBeSerializedAsElement()){let r=new Image;t.getHeight()!==`inherit`&&(r.height=t.getHeight()),t.getWidth()!==`inherit`&&(r.width=t.getWidth()),t.getAltText()&&(r.alt=t.getAltText()),t.getTitle()&&(r.title=t.getTitle());for(let e of t.getRest())e.type===`mdxJsxAttribute`&&typeof e.value==`string`&&r.setAttribute(e.name,e.value);n.appendToParent(e,{type:`html`,value:r.outerHTML.replace(/>$/,` src="${t.getSrc()}" />`)})}else n.appendToParent(e,{type:`image`,url:t.getSrc(),alt:t.getAltText(),title:t.getTitle()})}},KV={testNode:`image`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(UV({src:e.url,altText:e.alt??``,title:e.title??``}))}},qV={testNode:e=>e.type===`html`&&e.value.trim().startsWith(`<img`),visitNode({mdastNode:e,lexicalParent:t}){let n=document.createElement(`div`);n.innerHTML=e.value;let r=n.querySelector(`img`);if(!r)throw Error(`Invalid HTML image`);let i=r.src,a=r.alt,o=r.title,s=r.width,c=r.height,l=UV({src:i||``,altText:a,title:o,width:s||void 0,height:c||void 0});if(t.getType()===`root`){let e=sl();e.append(l),t.append(e)}else t.append(l)}};function JV(e,t){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(n)return n.value}var YV={testNode:e=>(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`img`,visitNode({mdastNode:e,lexicalParent:t}){let n=JV(e,`src`);if(!n)return;let r=JV(e,`alt`)??``,i=JV(e,`title`),a=JV(e,`height`),o=JV(e,`width`),s=e.attributes.filter(e=>e.type===`mdxJsxAttribute`&&![`src`,`alt`,`title`,`height`,`width`].includes(e.name)),c=UV({src:n,altText:r,title:i,width:o?parseInt(o,10):void 0,height:a?parseInt(a,10):void 0,rest:s});if(t.getType()===`root`){let e=sl();e.append(c),t.append(e)}else t.append(c)}},XV=xn(e=>{e.sub(e.pipe(XV,kn(xC)),([e,t])=>{t?.update(()=>{let t=UV({altText:e.altText??``,src:e.src,title:e.title??``,width:dH(e.width),height:dH(e.height)});Qs([t]),dd(t.getParentOrThrow())&&Ap(t,sl).selectEnd()})})}),ZV=xn(e=>{e.sub(e.pipe(ZV,kn(eH)),([t,n])=>{let r=n=>{e.pub(XV,{...t,src:n})};`file`in t?n?.(t.file).then(r).catch(e=>{throw e}):r(t.src)})}),QV=bn([]),$V=bn(!1),eH=bn(null),tH=bn(null),nH=bn(null),rH=bn({type:`inactive`},e=>{e.sub(e.pipe(lH,kn(xC,eH,rH,cH)),([t,n,r,i,a])=>{let o=i.type===`editing`?r=>{n?.update(()=>{let{nodeKey:e}=i,n=Ul(e);if(n.setTitle(t.title),n.setAltText(t.altText),n.setSrc(r),a){let e=dH(t.width),r=dH(t.height);n.setWidthAndHeight(e??`inherit`,r??`inherit`)}}),e.pub(rH,{type:`inactive`})}:n=>{e.pub(XV,{...t,src:n}),e.pub(rH,{type:`inactive`})};t.file&&t.file.length>0?r?.(t.file.item(0)).then(o).catch(e=>{throw e}):t.src&&o(t.src)}),e.pub(_w,t=>{let n=e.getValue(eH);return yp(t.registerCommand(mH,e=>{let t=UV(e);return Qs([t]),dd(t.getParentOrThrow())&&Ap(t,sl).selectEnd(),!0},0),t.registerCommand(ja,e=>gH(e),3),t.registerCommand(Ma,e=>_H(e,!!n),1),t.registerCommand(ka,n=>vH(n,t,e.getValue(eH)),3),t.registerCommand(sa,r=>{if(!n){let e=Array.from(r.clipboardData?.items??[]);return e=e.filter(e=>e.type.includes(`text`)),!e.length||e.length===0}let i=Array.from(r.clipboardData?.items??[]);if(i.some(e=>!e.type.includes(`image`))||!i.length||i.length===0)return!1;let a=e.getValue(eH);return Promise.all(i.map(e=>a(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(mH,{src:e,altText:``})})}).catch(e=>{throw e}),!0},4))})}),iH=Sn(e=>{e.link(e.pipe(iH,An({type:`new`})),rH)}),aH=xn(e=>{e.link(e.pipe(aH,On(e=>({type:`editing`,...e}))),rH)}),oH=Sn(e=>{e.link(e.pipe(oH,An({type:`inactive`})),rH)}),sH=bn(!1),cH=bn(!1),lH=xn(),uH=bn(MF),dH=e=>{if(e===void 0)return;let t=parseInt(String(e),10);return Number.isNaN(t)?void 0:t},fH=Fn({init(e,t){e.pubIn({[$C]:[KV,qV,YV],[QC]:HV,[nw]:GV,[bw]:t?.ImageDialog??kV,[eH]:t?.imageUploadHandler??null,[QV]:t?.imageAutocompleteSuggestions??[],[$V]:!!t?.disableImageResize,[sH]:!!t?.disableImageSettingsButton,[cH]:!!t?.allowSetImageDimensions,[tH]:t?.imagePreviewHandler??null,[uH]:t?.EditImageToolbar??MF,[nH]:t?.imagePlaceholder??jF})},update(e,t){e.pubIn({[eH]:t?.imageUploadHandler??null,[QV]:t?.imageAutocompleteSuggestions??[],[$V]:!!t?.disableImageResize,[tH]:t?.imagePreviewHandler??null,[cH]:!!t?.allowSetImageDimensions,[uH]:t?.EditImageToolbar??MF,[nH]:t?.imagePlaceholder??jF})}}),pH=e=>zE?(e??window).getSelection():null,mH=$i(`INSERT_IMAGE_COMMAND`),hH=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`;function gH(e){let t=yH();if(!t)return!1;let n=e.dataTransfer;if(!n)return!1;n.setData(`text/plain`,`_`);let r=document.createElement(`img`);return r.src=hH,n.setDragImage(r,0,0),n.setData(`application/x-lexical-drag`,JSON.stringify({data:{altText:t.__altText,title:t.__title,key:t.getKey(),src:t.__src},type:`image`})),!0}function _H(e,t){if(t){let t=Array.from(e.dataTransfer?.items??[]);if(t=t.filter(e=>e.type.includes(`image`)),t.length>0)return e.preventDefault(),!0}return yH()?(xH(e)||e.preventDefault(),!0):!1}function vH(e,t,n){let r=Array.from(e.dataTransfer?.items??[]);if(r=r.filter(e=>e.type.includes(`image`)),r.length>0&&n!==null)return e.preventDefault(),Promise.all(r.map(e=>e.kind===`string`?new Promise(t=>{e.getAsString(t)}):n(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(mH,{src:e,altText:``})})}).catch(e=>{throw e}),!0;let i=yH();if(!i)return!1;let a=bH(e);if(!a)return!1;if(e.preventDefault(),xH(e)){let n=SH(e);i.remove();let r=zs();n!=null&&r.applyDOMRange(n),$l(r),t.dispatchCommand(mH,a)}return!0}function yH(){let e=B();if(!Ss(e))return null;let t=e.getNodes()[0];return WV(t)?t:null}function bH(e){let t=e.dataTransfer?.getData(`application/x-lexical-drag`);if(!t)return null;let{type:n,data:r}=JSON.parse(t);return n===`image`?r:null}function xH(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&t.parentElement)}function SH(e){let t,n=e.target,r=pH(n==null?null:n.nodeType===9?n.defaultView:n.ownerDocument.defaultView);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&r!==null)r.collapse(e.rangeParent,e.rangeOffset??0),t=r.getRangeAt(0);else throw Error(`Cannot get the selection when dragging`);return t}var CH=gt(pt(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),wH=Object.assign(TH(Error),{eval:TH(EvalError),range:TH(RangeError),reference:TH(ReferenceError),syntax:TH(SyntaxError),type:TH(TypeError),uri:TH(URIError)});function TH(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,CH.default)(t,...n))}}var EH={}.hasOwnProperty,DH={yaml:`-`,toml:`+`};function OH(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=kH(r[n]);return t}function kH(e){let t=e;if(typeof t==`string`){if(!EH.call(DH,t))throw wH("Missing matter definition for `%s`",t);t={type:t,marker:DH[t]}}else if(typeof t!=`object`)throw wH("Expected matter to be an object, not `%j`",t);if(!EH.call(t,`type`))throw wH("Missing `type` in matter `%j`",t);if(!EH.call(t,`fence`)&&!EH.call(t,`marker`))throw wH("Missing `marker` or `fence` in matter `%j`",t);return t}function AH(e){let t=OH(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=MH(e,`open`).charCodeAt(0),a=jH(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function jH(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=MH(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),vh(e)?(l.enter(G.whitespace),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return vh(e)?(l.consume(e),h):(l.exit(G.whitespace),g(e))}function g(t){return K(t)?(l.exit(r),l.enter(G.lineEnding),l.consume(t),l.exit(G.lineEnding),s=MH(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===W.eof||K(e)?y(e):(l.enter(a),v(e))}function v(e){return e===W.eof||K(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===W.eof?d(e):(l.enter(G.lineEnding),l.consume(e),l.exit(G.lineEnding),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),vh(t)?(e.enter(G.whitespace),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return vh(t)?(e.consume(t),l):(e.exit(G.whitespace),u(t))}function u(i){return i===W.eof||K(i)?(e.exit(r),t(i)):n(i)}}}function MH(e,t){return e.marker?NH(e.marker,t).repeat(3):NH(e.fence,t)}function NH(e,t){return typeof e==`string`?e:e[t]}function PH(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function FH(e){let t=OH(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=IH(e),r[e.type]=LH,r[e.type+`Value`]=RH}return{enter:n,exit:r}}function IH(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function LH(e){let t=this.resume(),n=this.stack[this.stack.length-1];U(`value`in n),this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function RH(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function zH(e){let t=[],n={},r=OH(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=BH(e);let a=VH(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:PH(a.charAt(1))})}return{unsafe:t,handlers:n}}function BH(e){let t=VH(e,`open`),n=VH(e,`close`);return r;function r(e){return t+(e.value?`
363
+ `+e.value:``)+`
364
+ `+n}}function VH(e,t){return e.marker?HH(e.marker,t).repeat(3):HH(e.fence,t)}function HH(e,t){return typeof e==`string`?e:e[t]}function UH(e){return e==null}function WH(e){return typeof e==`object`&&!!e}function GH(e){return Array.isArray(e)?e:UH(e)?[]:[e]}function KH(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function qH(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function JH(e){return e===0&&1/e==-1/0}var YH={isNothing:UH,isObject:WH,toArray:GH,repeat:qH,isNegativeZero:JH,extend:KH};function XH(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
365
+
366
+ `+e.mark.snippet),r+` `+n):r}function ZH(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=XH(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}ZH.prototype=Object.create(Error.prototype),ZH.prototype.constructor=ZH,ZH.prototype.toString=function(e){return this.name+`: `+XH(this,e)};var QH=ZH;function $H(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function eU(e,t){return YH.repeat(` `,t-e.length)+e}function tU(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=$H(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=YH.repeat(` `,t.indent)+eU((e.line-c+1).toString(),u)+` | `+l.str+`
367
+ `+s;for(l=$H(e.buffer,r[o],i[o],e.position,d),s+=YH.repeat(` `,t.indent)+eU((e.line+1).toString(),u)+` | `+l.str+`
368
+ `,s+=YH.repeat(`-`,t.indent+u+3+l.pos)+`^
369
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=$H(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=YH.repeat(` `,t.indent)+eU((e.line+c+1).toString(),u)+` | `+l.str+`
370
+ `;return s.replace(/\n$/,``)}var nU=tU,rU=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],iU=[`scalar`,`sequence`,`mapping`];function aU(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function oU(e,t){if(t||={},Object.keys(t).forEach(function(t){if(rU.indexOf(t)===-1)throw new QH(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=aU(t.styleAliases||null),iU.indexOf(this.kind)===-1)throw new QH(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var sU=oU;function cU(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function lU(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function uU(e){return this.extend(e)}uU.prototype.extend=function(e){var t=[],n=[];if(e instanceof sU)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new QH(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof sU))throw new QH(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new QH(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new QH(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof sU))throw new QH(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(uU.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=cU(r,`implicit`),r.compiledExplicit=cU(r,`explicit`),r.compiledTypeMap=lU(r.compiledImplicit,r.compiledExplicit),r};var dU=uU,fU=new sU(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),pU=new sU(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),mU=new sU(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),hU=new dU({explicit:[fU,pU,mU]});function gU(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function _U(){return null}function vU(e){return e===null}var yU=new sU(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:gU,construct:_U,predicate:vU,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function bU(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function hte(e){return e===`true`||e===`True`||e===`TRUE`}function xU(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var SU=new sU(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:bU,construct:hte,predicate:xU,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function CU(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function wU(e){return 48<=e&&e<=55}function TU(e){return 48<=e&&e<=57}function EU(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!CU(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!wU(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!TU(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function DU(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function OU(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!YH.isNegativeZero(e)}var kU=new sU(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:EU,construct:DU,predicate:OU,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),AU=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function jU(e){return!(e===null||!AU.test(e)||e[e.length-1]===`_`)}function MU(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var NU=/^[-+]?[0-9]+e/;function PU(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(YH.isNegativeZero(e))return`-0.0`;return n=e.toString(10),NU.test(n)?n.replace(`e`,`.e`):n}function FU(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||YH.isNegativeZero(e))}var IU=new sU(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:jU,construct:MU,predicate:FU,represent:PU,defaultStyle:`lowercase`}),LU=hU.extend({implicit:[yU,SU,kU,IU]}),RU=LU,zU=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),BU=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function VU(e){return e===null?!1:zU.exec(e)!==null||BU.exec(e)!==null}function HU(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=zU.exec(e),t===null&&(t=BU.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function UU(e){return e.toISOString()}var WU=new sU(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:VU,construct:HU,instanceOf:Date,represent:UU});function GU(e){return e===`<<`||e===null}var KU=new sU(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:GU}),qU=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
371
+ \r`;function JU(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=qU;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function YU(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=qU,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function XU(e){var t=``,n=0,r,i,a=e.length,o=qU;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function ZU(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var QU=new sU(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:JU,construct:YU,predicate:ZU,represent:XU}),$U=Object.prototype.hasOwnProperty,eW=Object.prototype.toString;function tW(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,eW.call(i)!==`[object Object]`)return!1;for(a in i)if($U.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function nW(e){return e===null?[]:e}var rW=new sU(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:tW,construct:nW}),iW=Object.prototype.toString;function aW(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],iW.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function oW(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var sW=new sU(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:aW,construct:oW}),cW=Object.prototype.hasOwnProperty;function lW(e){if(e===null)return!0;var t,n=e;for(t in n)if(cW.call(n,t)&&n[t]!==null)return!1;return!0}function uW(e){return e===null?{}:e}var dW=new sU(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:lW,construct:uW}),fW=RU.extend({implicit:[WU,KU],explicit:[QU,rW,sW,dW]}),pW=Object.prototype.hasOwnProperty,mW=1,hW=2,gW=3,_W=4,vW=1,yW=2,bW=3,xW=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,SW=/[\x85\u2028\u2029]/,CW=/[,\[\]\{\}]/,wW=/^(?:!|!!|![a-z\-]+!)$/i,TW=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function EW(e){return Object.prototype.toString.call(e)}function DW(e){return e===10||e===13}function OW(e){return e===9||e===32}function kW(e){return e===9||e===32||e===10||e===13}function AW(e){return e===44||e===91||e===93||e===123||e===125}function jW(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function MW(e){return e===120?2:e===117?4:e===85?8:0}function NW(e){return 48<=e&&e<=57?e-48:-1}function PW(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
372
+ `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function FW(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function IW(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var LW=Array(256),RW=Array(256),zW=0;zW<256;zW++)LW[zW]=+!!PW(zW),RW[zW]=PW(zW);function BW(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fW,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function VW(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=nU(n),new QH(t,n)}function HW(e,t){throw VW(e,t)}function UW(e,t){e.onWarning&&e.onWarning.call(null,VW(e,t))}var WW={YAML:function(e,t,n){var r,i,a;e.version!==null&&HW(e,`duplication of %YAML directive`),n.length!==1&&HW(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&HW(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&HW(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&UW(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&HW(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],wW.test(r)||HW(e,`ill-formed tag handle (first argument) of the TAG directive`),pW.call(e.tagMap,r)&&HW(e,`there is a previously declared suffix for "`+r+`" tag handle`),TW.test(i)||HW(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{HW(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function GW(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||HW(e,`expected valid JSON character`);else xW.test(s)&&HW(e,`the stream contains non-printable characters`);e.result+=s}}function KW(e,t,n,r){var i,a,o,s;for(YH.isObject(n)||HW(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],pW.call(t,a)||(IW(t,a,n[a]),r[a]=!0)}function qW(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&HW(e,`nested arrays are not supported inside keys`),typeof i==`object`&&EW(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&EW(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)KW(e,t,a[l],n);else KW(e,t,a,n);else !e.json&&!pW.call(n,i)&&pW.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,HW(e,`duplicated mapping key`)),IW(t,i,a),delete n[i];return t}function JW(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):HW(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function YW(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;OW(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(DW(i))for(JW(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&UW(e,`deficient indentation`),r}function XW(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||kW(n)))}function ZW(e,t){t===1?e.result+=` `:t>1&&(e.result+=YH.repeat(`
373
+ `,t-1))}function QW(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(kW(p)||AW(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),kW(i)||n&&AW(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),kW(i)||n&&AW(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),kW(r))break}else if(e.position===e.lineStart&&XW(e)||n&&AW(p))break;else if(DW(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,YW(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(GW(e,a,o,!1),ZW(e,e.line-c),a=o=e.position,!1),OW(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return GW(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function $W(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(GW(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else DW(n)?(GW(e,r,i,!0),ZW(e,YW(e,!1,t)),r=i=e.position):e.position===e.lineStart&&XW(e)?HW(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);HW(e,`unexpected end of the stream within a single quoted scalar`)}function eG(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return GW(e,n,e.position,!0),e.position++,!0;else if(s===92){if(GW(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),DW(s))YW(e,!1,t);else if(s<256&&LW[s])e.result+=RW[s],e.position++;else if((o=MW(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=jW(s))>=0?a=(a<<4)+o:HW(e,`expected hexadecimal character`);e.result+=FW(a),e.position++}else HW(e,`unknown escape sequence`);n=r=e.position}else DW(s)?(GW(e,n,r,!0),ZW(e,YW(e,!1,t)),n=r=e.position):e.position===e.lineStart&&XW(e)?HW(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);HW(e,`unexpected end of the stream within a double quoted scalar`)}function tG(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(YW(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&HW(e,`expected the node content, but found ','`):HW(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),kW(l)&&(d=f=!0,e.position++,YW(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,cG(e,t,mW,!1,!0),g=e.tag,h=e.result,YW(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),YW(e,!0,t),cG(e,t,mW,!1,!0),_=e.result),p?qW(e,s,m,g,h,_,r,i,a):d?s.push(qW(e,null,m,g,h,_,r,i,a)):s.push(h),YW(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}HW(e,`unexpected end of the stream within a flow collection`)}function nG(e,t){var n,r,i=vW,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)vW===i?i=d===43?bW:yW:HW(e,`repeat of a chomping mode identifier`);else if((u=NW(d))>=0)u===0?HW(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?HW(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(OW(d)){do d=e.input.charCodeAt(++e.position);while(OW(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!DW(d)&&d!==0)}for(;d!==0;){for(JW(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),DW(d)){c++;continue}if(e.lineIndent<s){i===bW?e.result+=YH.repeat(`
374
+ `,a?1+c:c):i===vW&&a&&(e.result+=`
375
+ `);break}for(r?OW(d)?(l=!0,e.result+=YH.repeat(`
376
+ `,a?1+c:c)):l?(l=!1,e.result+=YH.repeat(`
377
+ `,c+1)):c===0?a&&(e.result+=` `):e.result+=YH.repeat(`
378
+ `,c):e.result+=YH.repeat(`
379
+ `,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!DW(d)&&d!==0;)d=e.input.charCodeAt(++e.position);GW(e,n,e.position,!1)}return!0}function rG(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,HW(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!kW(o))));){if(s=!0,e.position++,YW(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,cG(e,t,gW,!1,!0),a.push(e.result),YW(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)HW(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function iG(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,HW(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&kW(r))v===63?(g&&(qW(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):HW(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!cG(e,n,hW,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);OW(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),kW(v)||HW(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(qW(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)HW(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)HW(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),cG(e,t,_W,!0,i)&&(g?m=e.result:h=e.result),g||(qW(e,d,f,p,m,h,o,s,c),p=m=h=null),YW(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)HW(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&qW(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function aG(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&HW(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):HW(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!kW(o);)o===33&&(r?HW(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),wW.test(i)||HW(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),CW.test(a)&&HW(e,`tag suffix cannot contain flow indicator characters`)}a&&!TW.test(a)&&HW(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{HW(e,`tag name is malformed: `+a)}return n?e.tag=a:pW.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:HW(e,`undeclared tag handle "`+i+`"`),!0}function oG(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&HW(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!kW(n)&&!AW(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&HW(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function sG(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!kW(r)&&!AW(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&HW(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),pW.call(e.anchorMap,n)||HW(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],YW(e,!0,-1),!0}function cG(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=_W===n||gW===n,r&&YW(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;aG(e)||oG(e);)YW(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||_W===n)&&(h=mW===n||hW===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(rG(e,g)||iG(e,g,h))||tG(e,h)?u=!0:(o&&nG(e,h)||$W(e,h)||eG(e,h)?u=!0:sG(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&HW(e,`alias node should not have any properties`)):QW(e,h,mW===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&rG(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&HW(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(pW.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||HW(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&HW(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):HW(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function lG(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(YW(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!kW(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&HW(e,`directive name must not be less than one character in length`);o!==0;){for(;OW(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!DW(o));break}if(DW(o))break;for(n=e.position;o!==0&&!kW(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&JW(e),pW.call(WW,r)?WW[r](e,r,i):UW(e,`unknown document directive "`+r+`"`)}if(YW(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,YW(e,!0,-1)):a&&HW(e,`directives end mark is expected`),cG(e,e.lineIndent-1,_W,!1,!0),YW(e,!0,-1),e.checkLineBreaks&&SW.test(e.input.slice(t,e.position))&&UW(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&XW(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,YW(e,!0,-1));return}if(e.position<e.length-1)HW(e,`end of the stream or a document separator is expected`);else return}function uG(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
380
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new BW(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,HW(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)lG(n);return n.documents}function dG(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=uG(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function fG(e,t){var n=uG(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new QH(`expected a single document in the stream, but found more`)}}var pG={loadAll:dG,load:fG},mG=Object.prototype.toString,hG=Object.prototype.hasOwnProperty,gG=65279,_G=9,vG=10,yG=13,bG=32,xG=33,SG=34,CG=35,wG=37,TG=38,EG=39,DG=42,OG=44,kG=45,AG=58,jG=61,MG=62,NG=63,gte=64,PG=91,FG=93,_te=96,IG=123,vte=124,LG=125,RG={};RG[0]=`\\0`,RG[7]=`\\a`,RG[8]=`\\b`,RG[9]=`\\t`,RG[10]=`\\n`,RG[11]=`\\v`,RG[12]=`\\f`,RG[13]=`\\r`,RG[27]=`\\e`,RG[34]=`\\"`,RG[92]=`\\\\`,RG[133]=`\\N`,RG[160]=`\\_`,RG[8232]=`\\L`,RG[8233]=`\\P`;var yte=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],bte=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xte(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&hG.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function Ste(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new QH(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+YH.repeat(`0`,r-t.length)+t}var Cte=1,zG=2;function wte(e){this.schema=e.schema||fW,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=YH.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=xte(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?zG:Cte,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function BG(e,t){for(var n=YH.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
381
+ `,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
382
+ `&&(a+=n),a+=o;return a}function VG(e,t){return`
383
+ `+YH.repeat(` `,e.indent*t)}function Tte(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function HG(e){return e===bG||e===_G}function UG(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gG||65536<=e&&e<=1114111}function WG(e){return UG(e)&&e!==gG&&e!==yG&&e!==vG}function GG(e,t,n){var r=WG(e),i=r&&!HG(e);return(n?r:r&&e!==OG&&e!==PG&&e!==FG&&e!==IG&&e!==LG)&&e!==CG&&!(t===AG&&!i)||WG(t)&&!HG(t)&&e===CG||t===AG&&i}function Ete(e){return UG(e)&&e!==gG&&!HG(e)&&e!==kG&&e!==NG&&e!==AG&&e!==OG&&e!==PG&&e!==FG&&e!==IG&&e!==LG&&e!==CG&&e!==TG&&e!==DG&&e!==xG&&e!==vte&&e!==jG&&e!==MG&&e!==EG&&e!==SG&&e!==wG&&e!==gte&&e!==_te}function Dte(e){return!HG(e)&&e!==AG}function KG(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function qG(e){return/^\n* /.test(e)}var JG=1,YG=2,XG=3,ZG=4,QG=5;function Ote(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=Ete(KG(e,0))&&Dte(KG(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=KG(e,c),!UG(l))return QG;h&&=GG(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=KG(e,c),l===vG)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!UG(l))return QG;h&&=GG(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?JG:a===zG?QG:YG:n>9&&qG(e)?QG:o?a===zG?QG:YG:f?ZG:XG}function kte(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===zG?`""`:`''`;if(!e.noCompatMode&&(yte.indexOf(t)!==-1||bte.test(t)))return e.quotingType===zG?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return Tte(e,t)}switch(Ote(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case JG:return t;case YG:return`'`+t.replace(/'/g,`''`)+`'`;case XG:return`|`+$G(t,e.indent)+eK(BG(t,a));case ZG:return`>`+$G(t,e.indent)+eK(BG(Ate(t,o),a));case QG:return`"`+jte(t)+`"`;default:throw new QH(`impossible error: invalid scalar style`)}}()}function $G(e,t){var n=qG(e)?String(t):``,r=e[e.length-1]===`
384
+ `;return n+(r&&(e[e.length-2]===`
385
+ `||e===`
386
+ `)?`+`:r?``:`-`)+`
387
+ `}function eK(e){return e[e.length-1]===`
388
+ `?e.slice(0,-1):e}function Ate(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
389
+ `);return r=r===-1?e.length:r,n.lastIndex=r,tK(e.slice(0,r),t)}(),i=e[0]===`
390
+ `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
391
+ `:``)+tK(c,t),i=a}return r}function tK(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
392
+ `+e.slice(i,a),i=a+1),o=s;return c+=`
393
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
394
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function jte(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=KG(e,i),r=RG[n],!r&&UG(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Ste(n);return t}function Mte(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(iK(e,t,s,!1,!1)||s===void 0&&iK(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function nK(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(iK(e,t+1,c,!0,!0,!1,!0)||c===void 0&&iK(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=VG(e,t)),e.dump&&vG===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function Nte(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),iK(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),iK(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function Pte(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new QH(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=VG(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),iK(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&vG===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=VG(e,t)),iK(e,t+1,u,!0,d)&&(e.dump&&vG===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function rK(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,mG.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(hG.call(s.represent,c))r=s.represent[c](t,c);else throw new QH(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function iK(e,t,n,r,i,a,o){e.tag=null,e.dump=n,rK(e,n,!1)||rK(e,n,!0);var s=mG.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Pte(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Nte(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?nK(e,t-1,e.dump,i):nK(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Mte(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&kte(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new QH(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function Fte(e,t){var n=[],r=[],i,a;for(aK(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function aK(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)aK(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)aK(e[r[i]],t,n)}function Ite(e,t){t||={};var n=new wte(t);n.noRefs||Fte(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),iK(n,0,r,!0,!0)?n.dump+`
395
+ `:``}var Lte={dump:Ite};function oK(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}var sK={Type:sU,Schema:dU,FAILSAFE_SCHEMA:hU,JSON_SCHEMA:LU,CORE_SCHEMA:RU,DEFAULT_SCHEMA:fW,load:pG.load,loadAll:pG.loadAll,dump:Lte.dump,YAMLException:QH,types:{binary:QU,float:IU,map:mU,null:yU,pairs:sW,set:dW,timestamp:WU,bool:SU,int:kU,merge:KU,omap:rW,seq:pU,str:fU},safeLoad:oK(`safeLoad`,`load`),safeLoadAll:oK(`safeLoadAll`,`loadAll`),safeDump:oK(`safeDump`,`dump`)},Rte=({yaml:e,onChange:t})=>{let[n,r,i,a]=En(wC,YC,pw,fK),o=Hw(),s=Dn(fK),c=Dn(mK),{register:l,control:u,handleSubmit:d}=XL({defaultValues:{yamlConfig:P.useMemo(()=>e?Object.entries(sK.load(e)).map(([e,t])=>({key:e,value:t})):[],[e])}}),{fields:f,append:p,remove:m}=YL({control:u,name:`yamlConfig`}),h=P.useCallback(({yamlConfig:e})=>{if(e.length===0){c(),s(!1);return}let n=e.reduce((e,{key:t,value:n})=>(t&&n&&(e[t]=n),e),{});t(sK.dump(n).trim()),s(!1)},[t,s,c]);return P.createElement(P.Fragment,null,P.createElement(iI,{open:a,onOpenChange:e=>{s(e)}},P.createElement(aI,{container:r?.current},P.createElement(oI,{className:J.dialogOverlay}),P.createElement(sI,{className:J.largeDialogContent,"data-editor-type":`frontmatter`},P.createElement(cI,{className:J.dialogTitle},o(`frontmatterEditor.title`,`Edit document frontmatter`)),P.createElement(`form`,{onSubmit:e=>{d(h)(e),e.stopPropagation()},onReset:e=>{e.stopPropagation(),s(!1)}},P.createElement(`table`,{className:J.propertyEditorTable},P.createElement(`colgroup`,null,P.createElement(`col`,null),P.createElement(`col`,null),P.createElement(`col`,null)),P.createElement(`thead`,null,P.createElement(`tr`,null,P.createElement(`th`,null,o(`frontmatterEditor.key`,`Key`)),P.createElement(`th`,null,o(`frontmatterEditor.value`,`Value`)),P.createElement(`th`,null))),P.createElement(`tbody`,null,f.map((e,t)=>P.createElement(`tr`,{key:e.id},P.createElement(`td`,null,P.createElement(cK,{...l(`yamlConfig.${t}.key`,{required:!0}),autofocusIfEmpty:!0,readOnly:n})),P.createElement(`td`,null,P.createElement(cK,{...l(`yamlConfig.${t}.value`,{required:!0}),readOnly:n})),P.createElement(`td`,null,P.createElement(`button`,{type:`button`,onClick:()=>{m(t)},className:J.iconButton,disabled:n},i(`delete_big`)))))),P.createElement(`tfoot`,null,P.createElement(`tr`,null,P.createElement(`td`,null,P.createElement(`button`,{disabled:n,className:(0,AE.default)(J.primaryButton,J.smallButton),type:`button`,onClick:()=>{p({key:``,value:``})}},o(`frontmatterEditor.addEntry`,`Add entry`)))))),P.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},P.createElement(`button`,{type:`submit`,className:J.primaryButton},o(`dialogControls.save`,`Save`)),P.createElement(`button`,{type:`reset`,className:J.secondaryButton},o(`dialogControls.cancel`,`Cancel`)))),P.createElement(lI,{asChild:!0},P.createElement(`button`,{className:J.dialogCloseButton,"aria-label":o(`dialogControls.cancel`,`Cancel`)},i(`close`)))))))},cK=P.forwardRef(({className:e,autofocusIfEmpty:t,...n},r)=>P.createElement(`input`,{className:(0,AE.default)(J.propertyEditorInput,e),...n,ref:r})),zte=Object.defineProperty,Bte=(e,t,n)=>t in e?zte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vte=(e,t,n)=>(Bte(e,typeof t==`symbol`?t:t+``,n),n),lK=class e extends Uc{constructor(e,t){super(t),Vte(this,`__yaml`),this.__yaml=e}static getType(){return`frontmatter`}static clone(t){return new e(t.__yaml,t.__key)}static importJSON(e){let{yaml:t}=e;return uK(t)}exportJSON(){return{yaml:this.getYaml(),type:`frontmatter`,version:1}}createDOM(e){return document.createElement(`div`)}updateDOM(){return!1}getYaml(){return this.getLatest().__yaml}setYaml(e){e!==this.__yaml&&(this.getWritable().__yaml=e)}decorate(e){return P.createElement(Rte,{yaml:this.getYaml(),onChange:t=>{e.update(()=>{this.setYaml(t)})}})}isKeyboardSelectable(){return!1}};function uK(e){return new lK(e)}function dK(e){return e instanceof lK}var Hte={testLexicalNode:dK,visitLexicalNode:({actions:e,lexicalNode:t})=>{e.addAndStepInto(`yaml`,{value:t.getYaml()})}},Ute={testNode:`yaml`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(uK(e.value))}},fK=bn(!1),pK=Sn(e=>{e.sub(e.pipe(pK,kn(bC)),([,t])=>{t?.update(()=>{let e=Zl().getFirstChild();if(!dK(e)){let t=uK(`"": ""`);e?e.insertBefore(t):Zl().append(t)}}),e.pub(fK,!0)})}),mK=Sn(e=>{e.sub(e.pipe(mK,kn(bC)),([,t])=>{t?.update(()=>{let e=Zl().getFirstChild();dK(e)&&e.remove()}),e.pub(fK,!1)})}),hK=bn(!1,e=>{e.pub(gw,t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{e.pub(hK,dK(Zl().getFirstChild()))})}))}),Wte=Fn({init:e=>{e.pubIn({[tw]:FH(`yaml`),[ew]:AH(),[QC]:lK,[$C]:Ute,[nw]:Hte,[rw]:zH(`yaml`),[gw]:e=>e.registerCommand(ma,t=>{let n=!1;return e.read(()=>{let r=B();if(z(r))if(r.isCollapsed()&&r.anchor.offset===0&&r.focus.offset===0&&t.key===`Backspace`){let e=r.getNodes()[0];R(e)&&(e=e.getParent()),dK(e?.getPreviousSibling())&&(n=!0,t.preventDefault())}else{let t=r.getNodes()[0];if(dK(t)){let n=t.getYaml();setTimeout(()=>{e.update(()=>{dK(Zl().getFirstChild())||Zl().splice(0,0,[uK(n)])},{discrete:!0})})}}}),!!n},4)})}}),Gte={testNode:`blockquote`,visitNode({actions:e}){e.addAndStepInto(Rm())}},Kte={testLexicalNode:zm,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`blockquote`)}},qte=Fn({init(e){e.pubIn({[Rw]:`quote`,[$C]:Gte,[QC]:Lm,[nw]:Kte})}});function gK(){let e=Pn;return{publish:()=>{e()},subscribe:t=>{e=t}}}var Jte=Object.defineProperty,Yte=(e,t,n)=>t in e?Jte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_K=(e,t,n)=>(Yte(e,typeof t==`symbol`?t:t+``,n),n),vK=class e extends Uc{constructor(e,t,n,r){super(r),_K(this,`__code`),_K(this,`__meta`),_K(this,`__language`),_K(this,`__focusEmitter`,gK()),_K(this,`setCode`,e=>{e!==this.__code&&(this.getWritable().__code=e)}),_K(this,`setMeta`,e=>{e!==this.__meta&&(this.getWritable().__meta=e)}),_K(this,`setLanguage`,e=>{e!==this.__language&&(this.getWritable().__language=e)}),_K(this,`select`,()=>{this.__focusEmitter.publish()}),this.__code=e,this.__meta=n,this.__language=t}static getType(){return`codeblock`}static clone(t){return new e(t.__code,t.__language,t.__meta,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__code=e.__code,this.__meta=e.__meta,this.__language=e.__language,this.__focusEmitter=gK()}static importJSON(e){let{code:t,meta:n,language:r}=e;return xK({code:t,language:r,meta:n})}static importDOM(){return{pre:()=>({conversion:Qte,priority:3})}}exportJSON(){return{code:this.getCode(),language:this.getLanguage(),meta:this.getMeta(),type:`codeblock`,version:1}}createDOM(e,t){return document.createElement(`div`)}updateDOM(){return!1}getCode(){return this.__code}getMeta(){return this.__meta}getLanguage(){return this.__language}decorate(e){return P.createElement(Zte,{parentEditor:e,code:this.getCode(),meta:this.getMeta(),language:this.getLanguage(),codeBlockNode:this,nodeKey:this.getKey(),focusEmitter:this.__focusEmitter})}isInline(){return!1}},yK=P.createContext(null),Xte=({parentEditor:e,lexicalNode:t,children:n})=>{let r=P.useMemo(()=>({lexicalNode:t,parentEditor:e,setCode:n=>{e.update(()=>{t.setCode(n),setTimeout(()=>{e.dispatchCommand(yC,void 0)},0)})},setLanguage:n=>{e.update(()=>{t.setLanguage(n)})},setMeta:n=>{e.update(()=>{t.setMeta(n)})}}),[t,e]);return P.createElement(yK.Provider,{value:r},n)};function bK(){let e=P.useContext(yK);if(!e)throw Error(`useCodeBlockEditor must be used within a CodeBlockEditor`);return e}var Zte=e=>{let t=Tn(JC),n=Tn(TK),r=t.sort((e,t)=>t.priority-e.priority).find(t=>t.match(e.language||``,e.meta||``));if(r??=t.find(t=>t.match(n||``,e.meta||``)),!r)throw Error(`No CodeBlockEditor registered for language=${e.language} meta=${e.meta}`);let i=r.Editor,{codeBlockNode:a,parentEditor:o,...s}=e;return P.createElement(Xte,{parentEditor:e.parentEditor,lexicalNode:e.codeBlockNode},P.createElement(i,{...s}))};function xK(e){let{code:t=``,language:n=``,meta:r=``}=e;return new vK(t,n,r)}function SK(e){return e instanceof vK}function Qte(e){let t=e,n=t.textContent,r=e.getAttribute(`class`)??``,i=e.getAttribute(`data-language`)??``,a=/language-(\w+)/.exec(r);return{node:xK({code:n,language:a?a[1]:i,meta:t.getAttribute(`data-meta`)??``})}}var CK={testLexicalNode:SK,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`code`,{value:e.getCode(),lang:e.getLanguage(),meta:e.getMeta()})}},wK={testNode:(e,{codeBlockEditorDescriptors:t})=>e.type===`code`?t.find(t=>t.match(e.lang,e.meta))!==void 0:!1,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(xK({code:e.value,language:e.lang??``,meta:e.meta??``}))}},TK=bn(``),EK=xn(e=>{e.link(e.pipe(EK,kn(TK),On(([e,t])=>()=>xK({language:t,...e}))),Pw)}),DK=mw(JC),OK=Fn({update(e,t){e.pub(TK,t?.defaultCodeBlockLanguage??``)},init(e,t){e.pubIn({[Rw]:`codeblock`,[JC]:t?.codeBlockEditorDescriptors??[],[$C]:wK,[QC]:vK,[nw]:CK})}}),kK=`modulepreload`,AK=function(e){return`/apps/context-files/`+e},jK={},X=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=AK(t,n),t in jK)return;jK[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:kK,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},MK=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=d(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(zK(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function NK(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function PK(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=NK(t)+NK(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function FK(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:PK(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function IK(e,t){return n=>{for(let t=d(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var LK=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function RK(e){return e.selection.main.from}function zK(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var BK=it.define();function VK(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:et.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var HK=new WeakMap;function UK(e){if(!Array.isArray(e))return e;let t=HK.get(e);return t||HK.set(e,t=FK(e)),t}var WK=S.define(),GK=S.define(),KK=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=g(e,t),r=b(n);this.chars.push(n);let i=e.slice(t,t+r),a=i.toUpperCase();this.folded.push(g(a==i?i.toLowerCase():a,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:a}=this;if(t.length==1){let r=g(e,0),i=b(r),a=i==e.length?0:-100;if(r!=t[0])if(r==n[0])a+=-200;else return null;return this.ret(a,[0,i])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,c=0;if(o<0){for(let i=0,a=Math.min(e.length,200);i<a&&c<s;){let a=g(e,i);(a==t[c]||a==n[c])&&(r[c++]=i),i+=b(a)}if(c<s)return null}let l=0,u=0,d=!1,f=0,p=-1,m=-1,h=/[a-z]/.test(e),_=!0;for(let r=0,c=Math.min(e.length,200),v=0;r<c&&u<s;){let c=g(e,r);o<0&&(l<s&&c==t[l]&&(i[l++]=r),f<s&&(c==t[f]||c==n[f]?(f==0&&(p=r),m=r+1,f++):f=0));let y,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=ae(c))==y.toLowerCase()?y==y.toUpperCase()?0:2:1;(!r||x==1&&h||v==0&&x!=0)&&(t[u]==c||n[u]==c&&(d=!0)?a[u++]=r:a.length&&(_=!1)),v=x,r+=b(c)}return u==s&&a[0]==0&&_?this.result(-100+(d?-200:0),a,e):f==s&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):f==s?this.ret(-900-e.length,[p,m]):u==s?this.result(-100+(d?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?b(g(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}},qK=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},JK=u.define({combine(e){return j(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:XK,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>YK(e(n),t(n)),optionClass:(e,t)=>n=>YK(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function YK(e,t){return e?t?e+` `+t:e:t}function XK(e,t,n,r,i,a){let o=e.textDirection==_.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,v=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/v}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var ZK=S.define();function QK(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function $K(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}var eq=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(JK);this.optionContent=QK(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=$K(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:ZK.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(JK).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:GK.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=$K(r.length,i,e.state.facet(JK).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=$K(t.options.length,t.selected,this.view.state.facet(JK).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>ye(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&nq(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(JK).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function tq(e,t){return n=>new eq(n,e,t)}function nq(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function rq(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function iq(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(JK);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new LK(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new qK(n):new KK(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new LK(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):rq(e.completion)>rq(c)&&(s[s.length-1]=e),c=e.completion}return s}var aq=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,uq(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=iq(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(JK).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,uq(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:yq,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},oq=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(dq,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(JK),i=(r.override||n.languageDataAt(`autocomplete`,RK(n)).map(UK)).map(e=>(this.active.find(t=>t.source==e)||new pq(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(gq));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!sq(i,this.active)||o?a=aq.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new pq(e.source,0):e));for(let e of t.effects)e.is(ZK)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?cq:lq}};function sq(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var cq={"aria-autocomplete":`list`},lq={};function uq(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var dq=[];function fq(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(BK);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var pq=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=fq(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(WK))i=new e(i.source,1,n.value);else if(n.is(GK))i=new e(i.source,0);else if(n.is(gq))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(RK(e.state))}},mq=class e extends pq{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=RK(t.state);if(o>a||!r||n&2&&(RK(t.startState)==this.from||o<this.limit))return new pq(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return hq(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new MK(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??RK(t.state)):new pq(this.source,1,this.explicit)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new e(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new pq(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function hq(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):zK(e,!0).test(i)}var gq=S.define({map(e,t){return e.map(e=>e.map(t))}}),_q=w.define({create(){return oq.start()},update(e,t){return e.update(t)},provide:e=>[we.from(e,e=>e.tooltip),ce.contentAttributes.from(e,e=>e.attrs)]});function vq(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(_q).active.find(e=>e.source==t.source);return r instanceof mq?(typeof n==`string`?e.dispatch({...VK(e.state,n,r.from,r.to),annotations:BK.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}var yq=tq(_q,vq);function bq(e,t=`option`){return n=>{let r=n.state.field(_q,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(JK).interactionDelay)return!1;let i=1,a;t==`page`&&(a=We(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:ZK.of(s)}),!0}}var xq=e=>{let t=e.state.field(_q,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(JK).interactionDelay?!1:vq(e,t.open.options[t.open.selected])},Sq=e=>e.state.field(_q,!1)?(e.dispatch({effects:WK.of(!0)}),!0):!1,Cq=e=>{let t=e.state.field(_q,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:GK.of(null)}),!0)},wq=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},Tq=50,Eq=1e3,Dq=le.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(_q).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(_q),n=e.state.facet(JK);if(!e.selectionSet&&!e.docChanged&&e.startState.field(_q)==t)return;let r=e.transactions.some(e=>{let t=fq(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>Tq&&Date.now()-n.time>Eq){for(let e of n.context.abortListeners)try{e()}catch(e){ye(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(WK)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(_q);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(JK).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new MK(t,RK(t),e.explicit,this.view),r=new wq(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:GK.of(null)}),ye(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(JK).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(JK),n=this.view.state.field(_q);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=RK(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new mq(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new pq(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:gq.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(_q,!1);if(t&&t.tooltip&&this.view.state.facet(JK).closeOnBlur){let n=t.open&&We(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:GK.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:WK.of(!1)}),20),this.composing=0}}}),Oq=typeof navigator==`object`&&/Win/.test(navigator.platform),kq=E.highest(ce.domEventHandlers({keydown(e,t){let n=t.state.field(_q,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(Oq&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&vq(t,r),!1}})),Aq=ce.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),jq=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},Mq=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,c.TrackDel),r=t.mapPos(this.to,1,c.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},Nq=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,s=/^\t*/.exec(a)[0].length;for(let n=0;n<s;n++)r+=e.facet(t);i.push(n+r.length-s),a=r+a.slice(s)}r.push(a),n+=a.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new Mq(e.field,i[e.line]+e.from,i[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1,c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new jq(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},Pq=He.widget({widget:new class extends k{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),Fq=He.mark({class:`cm-snippetField`}),Iq=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=He.set(e.map(e=>(e.from==e.to?Pq:Fq).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},Lq=S.define({map(e,t){return e&&e.map(t)}}),Rq=S.define(),zq=w.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(Lq))return n.value;if(n.is(Rq)&&e)return new Iq(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ce.decorations.from(e,e=>e?e.deco:He.none)});function Bq(e,t){return et.create(e.filter(e=>e.field==t).map(e=>et.range(e.from,e.to)))}function Vq(e){let t=Nq.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:O.of(a)},scrollIntoView:!0,annotations:n?[BK.of(n),f.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=Bq(o,0)),o.some(e=>e.field>0)){let t=new Iq(o,0),n=c.effects=[Lq.of(t)];e.state.field(zq,!1)===void 0&&n.push(S.appendConfig.of([zq,Gq,qq,Aq]))}e.dispatch(e.state.update(c))}}function Hq(e){return({state:t,dispatch:n})=>{let r=t.field(zq,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:Bq(r.ranges,i),effects:Lq.of(a?null:new Iq(r.ranges,i)),scrollIntoView:!0})),!0}}var Uq=[{key:`Tab`,run:Hq(1),shift:Hq(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(zq,!1)?(t(e.update({effects:Lq.of(null)})),!0):!1}],Wq=u.define({combine(e){return e.length?e[0]:Uq}}),Gq=E.highest(Ne.compute([Wq],e=>e.facet(Wq)));function Kq(e,t){return{...t,apply:Vq(e)}}var qq=ce.domEventHandlers({mousedown(e,t){let n=t.state.field(zq,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:Bq(n.ranges,i.field),effects:Lq.of(n.ranges.some(e=>e.field>i.field)?new Iq(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Jq={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},Yq=S.define({map(e,t){return t.mapPos(e,-1,c.TrackAfter)??void 0}}),Xq=new class extends Ae{};Xq.startSide=1,Xq.endSide=-1;var Zq=w.define({create(){return Me.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Yq)&&(e=e.update({add:[Xq.range(n.value,n.value+1)]}));return e}});function Qq(){return[rJ,Zq]}var $q=`()[]{}<>«»»«[]{}`;function eJ(e){for(let t=0;t<16;t+=2)if($q.charCodeAt(t)==e)return $q.charAt(t+1);return ae(e<128?e:e+1)}function tJ(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||Jq}var nJ=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),rJ=ce.inputHandler.of((e,t,n,r)=>{if((nJ?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&b(g(r,0))==1||t!=i.from||n!=i.to)return!1;let a=aJ(e.state,r);return a?(e.dispatch(a),!0):!1}),iJ=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=tJ(e,e.selection.main.head).brackets||Jq.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=cJ(e.doc,t.head);for(let i of n)if(i==r&&sJ(e.doc,t.head)==eJ(g(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:et.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function aJ(e,t){let n=tJ(e,e.selection.main.head),r=n.brackets||Jq.brackets;for(let i of r){let a=eJ(g(i,0));if(t==i)return a==i?dJ(e,i,r.indexOf(i+i+i)>-1,n):lJ(e,i,a,n.before||Jq.before);if(t==a&&oJ(e,e.selection.main.from))return uJ(e,i,a)}return null}function oJ(e,t){let n=!1;return e.field(Zq).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function sJ(e,t){let n=e.sliceString(t,t+2);return n.slice(0,b(g(n,0)))}function cJ(e,t){let n=e.sliceString(t-2,t);return b(g(n,0))==n.length?n:n.slice(1)}function lJ(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Yq.of(a.to+t.length),range:et.range(a.anchor+t.length,a.head+t.length)};let o=sJ(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:Yq.of(a.head+t.length),range:et.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function uJ(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&sJ(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:et.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function dJ(e,t,n,r){let i=r.stringPrefixes||Jq.stringPrefixes,a=null,o=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:Yq.of(r.to+t.length),range:et.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=sJ(e.doc,o),c;if(s==t){if(fJ(e,o))return{changes:{insert:t+t,from:o},effects:Yq.of(o+t.length),range:et.cursor(o+t.length)};if(oJ(e,o)){let r=n&&e.sliceDoc(o,o+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+r.length,insert:r},range:et.cursor(o+r.length)}}}else if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&(c=mJ(e,o-2*t.length,i))>-1&&fJ(e,c))return{changes:{insert:t+t+t+t,from:o},effects:Yq.of(o+t.length),range:et.cursor(o+t.length)};else if(e.charCategorizer(o)(s)!=M.Word&&mJ(e,o,i)>-1&&!pJ(e,o,t,i))return{changes:{insert:t+t,from:o},effects:Yq.of(o+t.length),range:et.cursor(o+t.length)};return{range:a=r}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function fJ(e,t){let n=d(e).resolveInner(t+1);return n.parent&&n.from==t}function pJ(e,t,n,r){let i=d(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function mJ(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=M.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=M.Word)return n}return-1}function hJ(e={}){return[kq,_q,JK.of(e),Dq,_J,Aq]}var gJ=[{key:`Ctrl-Space`,run:Sq},{mac:"Alt-`",run:Sq},{mac:`Alt-i`,run:Sq},{key:`Escape`,run:Cq},{key:`ArrowDown`,run:bq(!0)},{key:`ArrowUp`,run:bq(!1)},{key:`PageDown`,run:bq(!0,`page`)},{key:`PageUp`,run:bq(!1,`page`)},{key:`Enter`,run:xq}],_J=E.highest(Ne.computeN([JK],e=>e.facet(JK).defaultKeymap?[gJ]:[])),vJ=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=CJ(e.state,n.from);return r.line?bJ(e):r.block?SJ(e):!1};function yJ(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var bJ=yJ(OJ,0),xJ=yJ(DJ,0),SJ=yJ((e,t)=>DJ(e,t,EJ(t)),0);function CJ(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var wJ=50;function TJ(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-wJ,r),o=e.sliceDoc(i,i+wJ),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=2*wJ?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+wJ),d=e.sliceDoc(i-wJ,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function EJ(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function DJ(e,t,n=t.selection.ranges){let r=n.map(e=>CJ(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>TJ(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function OJ(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=CJ(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var kJ=it.define(),AJ=it.define(),jJ=u.define(),MJ=u.define({combine(e){return j(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),NJ=w.define({create(){return QJ.empty},update(e,t){let n=t.state.facet(MJ),r=t.annotation(kJ);if(r){let i=BJ.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?VJ(o,o.length,n.minDepth,i):qJ(o,t.startState.selection),new QJ(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(AJ);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(f.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=BJ.fromTransaction(t),o=t.annotation(f.time),s=t.annotation(f.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new QJ(e.done.map(BJ.fromJSON),e.undone.map(BJ.fromJSON))}});function PJ(e={}){return[NJ,MJ.of(e),ce.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?IJ:e.inputType==`historyRedo`?LJ:null;return n?(e.preventDefault(),n(t)):!1}})]}function FJ(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(NJ,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var IJ=FJ(0,!1),LJ=FJ(1,!1),RJ=FJ(0,!0),zJ=FJ(1,!0),BJ=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&nt.fromJSON(t.changes),[],t.mapped&&he.fromJSON(t.mapped),t.startSelection&&et.fromJSON(t.startSelection),t.selectionsAfter.map(et.fromJSON))}static fromTransaction(t,n){let r=GJ;for(let e of t.startState.facet(jJ)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,GJ)}static selection(t){return new e(void 0,GJ,void 0,void 0,t)}};function VJ(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function HJ(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function UJ(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function WJ(e,t){return e.length?t.length?e.concat(t):e:t}var GJ=[],KJ=200;function qJ(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-KJ));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),VJ(e,e.length-1,1e9,n.setSelAfter(r)))}else return[BJ.selection([t])]}function JJ(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function YJ(e,t){if(!e.length)return e;let n=e.length,r=GJ;for(;n;){let i=XJ(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[BJ.selection(r)]:GJ}function XJ(e,t,n){let r=WJ(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):GJ,n);if(!e.changes)return BJ.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new BJ(i,S.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var ZJ=/^(input\.type|delete)($|\.)/,QJ=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||ZJ.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,HJ(s.changes,t.changes))||r==`input.type.compose`)?VJ(o,o.length-1,i.minDepth,new BJ(t.changes.compose(s.changes),WJ(S.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,GJ)):VJ(o,o.length,i.minDepth,t),new e(o,GJ,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:GJ;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&UJ(a[a.length-1],t)?this:new e(qJ(this.done,t),this.undone,n,r)}addMapping(t){return new e(YJ(this.done,t),YJ(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:kJ.of({side:e,rest:JJ(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?GJ:r.slice(0,r.length-1);return i.mapped&&(n=YJ(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:kJ.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}else return null}};QJ.empty=new QJ(GJ,GJ);var $J=[{key:`Mod-z`,run:IJ,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:LJ,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:LJ,preventDefault:!0},{key:`Mod-u`,run:RJ,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:zJ,preventDefault:!0}];function eY(e,t){return et.create(e.ranges.map(t),e.mainIndex)}function tY(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function nY({state:e,dispatch:t},n){let r=eY(e.selection,n);return r.eq(e.selection,!0)?!1:(t(tY(e,r)),!0)}function rY(e,t){return et.cursor(t?e.to:e.from)}function iY(e,t){return nY(e,n=>n.empty?e.moveByChar(n,t):rY(n,t))}function aY(e){return e.textDirectionAt(e.state.selection.main.head)==_.LTR}var oY=e=>iY(e,!aY(e)),sY=e=>iY(e,aY(e));function cY(e,t){return nY(e,n=>n.empty?e.moveByGroup(n,t):rY(n,t))}var lY=e=>cY(e,!aY(e)),uY=e=>cY(e,aY(e));typeof Intl<`u`&&Intl.Segmenter;function dY(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function fY(e,t,n){let i=d(e).resolveInner(t.head),a=n?r.closedBy:r.openedBy;for(let r=t.head;;){let t=n?i.childAfter(r):i.childBefore(r);if(!t)break;dY(e,t,a)?i=t:r=n?t.to:t.from}let o=i.type.prop(a),s,c;return c=o&&(s=n?x(e,i.from,1):x(e,i.to,-1))&&s.matched?n?s.end.to:s.end.from:n?i.to:i.from,et.cursor(c,n?-1:1)}var pY=e=>nY(e,t=>fY(e.state,t,!aY(e))),mY=e=>nY(e,t=>fY(e.state,t,aY(e)));function hY(e,t){return nY(e,n=>{if(!n.empty)return rY(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var gY=e=>hY(e,!1),_Y=e=>hY(e,!0);function vY(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(ce.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function yY(e,t){let n=vY(e),{state:r}=e,i=eY(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):rY(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=ce.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(tY(r,i),{effects:a}),!0}var bY=e=>yY(e,!1),xY=e=>yY(e,!0);function SY(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=et.cursor(r.from+n))}return i}var CY=e=>nY(e,t=>SY(e,t,!0)),wY=e=>nY(e,t=>SY(e,t,!1)),TY=e=>nY(e,t=>SY(e,t,!aY(e))),EY=e=>nY(e,t=>SY(e,t,aY(e))),DY=e=>nY(e,t=>et.cursor(e.lineBlockAt(t.head).from,1)),OY=e=>nY(e,t=>et.cursor(e.lineBlockAt(t.head).to,-1));function kY(e,t,n){let r=!1,i=eY(e.selection,t=>{let i=x(e,t.head,-1)||x(e,t.head,1)||t.head>0&&x(e,t.head-1,1)||t.head<e.doc.length&&x(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?et.range(t.anchor,a):et.cursor(a)});return r?(t(tY(e,i)),!0):!1}var AY=({state:e,dispatch:t})=>kY(e,t,!1);function jY(e,t){let n=eY(e.state.selection,e=>{let n=t(e);return et.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return n.eq(e.state.selection)?!1:(e.dispatch(tY(e.state,n)),!0)}function MY(e,t){return jY(e,n=>e.moveByChar(n,t))}var NY=e=>MY(e,!aY(e)),PY=e=>MY(e,aY(e));function FY(e,t){return jY(e,n=>e.moveByGroup(n,t))}var IY=e=>FY(e,!aY(e)),LY=e=>FY(e,aY(e)),RY=e=>jY(e,t=>fY(e.state,t,!aY(e))),zY=e=>jY(e,t=>fY(e.state,t,aY(e)));function BY(e,t){return jY(e,n=>e.moveVertically(n,t))}var VY=e=>BY(e,!1),HY=e=>BY(e,!0);function UY(e,t){return jY(e,n=>e.moveVertically(n,t,vY(e).height))}var WY=e=>UY(e,!1),GY=e=>UY(e,!0),KY=e=>jY(e,t=>SY(e,t,!0)),qY=e=>jY(e,t=>SY(e,t,!1)),JY=e=>jY(e,t=>SY(e,t,!aY(e))),YY=e=>jY(e,t=>SY(e,t,aY(e))),XY=e=>jY(e,t=>et.cursor(e.lineBlockAt(t.head).from)),ZY=e=>jY(e,t=>et.cursor(e.lineBlockAt(t.head).to)),QY=({state:e,dispatch:t})=>(t(tY(e,{anchor:0})),!0),$Y=({state:e,dispatch:t})=>(t(tY(e,{anchor:e.doc.length})),!0),eX=({state:e,dispatch:t})=>(t(tY(e,{anchor:e.selection.main.anchor,head:0})),!0),tX=({state:e,dispatch:t})=>(t(tY(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),nX=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),rX=({state:e,dispatch:t})=>{let n=SX(e).map(({from:t,to:n})=>et.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:et.create(n),userEvent:`select`})),!0},iX=({state:e,dispatch:t})=>{let n=eY(e.selection,t=>{let n=d(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return et.range(n.to,n.from)}return t});return n.eq(e.selection)?!1:(t(tY(e,n)),!0)};function aX(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}else if(r.head==n.head)break;else n=r}}return i.length==r.ranges.length?!1:(e.dispatch(tY(n,et.create(i,i.length-1))),!0)}var oX=e=>aX(e,!1),sX=e=>aX(e,!0),cX=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=et.create([n.main]):n.main.empty||(r=et.create([et.cursor(n.main.head)])),r?(t(tY(e,r)),!0):!1};function lX(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=uX(e,o,!1)):o>i&&(n=`delete.forward`,o=uX(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=uX(e,i,!1),a=uX(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:et.cursor(i,i<r.head?-1:1)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?ce.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function uX(e,t,n){if(e instanceof ce)for(let r of e.state.facet(ce.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var dX=(e,t,n)=>lX(e,r=>{let a=r.from,{state:o}=e,s=o.doc.lineAt(a),c,l;if(n&&!t&&a>s.from&&a<s.from+200&&!/[^ \t]/.test(c=s.text.slice(0,a-s.from))){if(c[c.length-1]==` `)return a-1;let e=ot(c,o.tabSize)%te(o)||te(o);for(let t=0;t<e&&c[c.length-1-t]==` `;t++)a--;l=a}else l=i(s.text,a-s.from,t,t)+s.from,l==a&&s.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,a-s.from))&&(l=i(s.text,l-s.from,!1,!1)+s.from);return l}),fX=e=>dX(e,!1,!0),pX=e=>dX(e,!0,!1),mX=(e,t)=>lX(e,n=>{let r=n.head,{state:a}=e,o=a.doc.lineAt(r),s=a.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let c=i(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),hX=e=>mX(e,!1),gX=e=>mX(e,!0),_X=e=>lX(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),vX=e=>lX(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),yX=e=>lX(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),bX=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:O.of([``,``])},range:et.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},xX=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),a=n==r.from?n-1:i(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:i(r.text,n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(a,n))},range:et.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function SX(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function CX(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of SX(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(et.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(et.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:et.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var wX=({state:e,dispatch:t})=>CX(e,t,!1),TX=({state:e,dispatch:t})=>CX(e,t,!0);function EX(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of SX(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var DX=({state:e,dispatch:t})=>EX(e,t,!1),OX=({state:e,dispatch:t})=>EX(e,t,!0),kX=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(SX(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=eY(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function AX(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=d(e).resolveInner(t),i=n.childBefore(t),a=n.childAfter(t),o;return i&&a&&i.to<=t&&a.from>=t&&(o=i.type.prop(r.closedBy))&&o.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}var jX=NX(!1),MX=NX(!0);function NX(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&AX(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new Re(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=l(s,r);for(c??=ot(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,je(t,c)];return o&&u.push(je(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:O.of(u)},range:et.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function PX(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:et.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var FX=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Re(e,{overrideIndentation:e=>n[e]??-1}),i=PX(e,(t,i,a)=>{let o=l(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=je(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},IX=({state:e,dispatch:n})=>e.readOnly?!1:(n(e.update(PX(e,(n,r)=>{r.push({from:n.from,insert:e.facet(t)})}),{userEvent:`input.indent`})),!0),LX=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(PX(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=ot(r,e.tabSize),a=0,o=je(e,Math.max(0,i-te(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),RX=e=>(e.setTabFocusMode(),!0),zX=[{key:`Ctrl-b`,run:oY,shift:NY,preventDefault:!0},{key:`Ctrl-f`,run:sY,shift:PY},{key:`Ctrl-p`,run:gY,shift:VY},{key:`Ctrl-n`,run:_Y,shift:HY},{key:`Ctrl-a`,run:DY,shift:XY},{key:`Ctrl-e`,run:OY,shift:ZY},{key:`Ctrl-d`,run:pX},{key:`Ctrl-h`,run:fX},{key:`Ctrl-k`,run:_X},{key:`Ctrl-Alt-h`,run:hX},{key:`Ctrl-o`,run:bX},{key:`Ctrl-t`,run:xX},{key:`Ctrl-v`,run:xY}],BX=[{key:`ArrowLeft`,run:oY,shift:NY,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:lY,shift:IY,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:TY,shift:JY,preventDefault:!0},{key:`ArrowRight`,run:sY,shift:PY,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:uY,shift:LY,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:EY,shift:YY,preventDefault:!0},{key:`ArrowUp`,run:gY,shift:VY,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:QY,shift:eX},{mac:`Ctrl-ArrowUp`,run:bY,shift:WY},{key:`ArrowDown`,run:_Y,shift:HY,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:$Y,shift:tX},{mac:`Ctrl-ArrowDown`,run:xY,shift:GY},{key:`PageUp`,run:bY,shift:WY},{key:`PageDown`,run:xY,shift:GY},{key:`Home`,run:wY,shift:qY,preventDefault:!0},{key:`Mod-Home`,run:QY,shift:eX},{key:`End`,run:CY,shift:KY,preventDefault:!0},{key:`Mod-End`,run:$Y,shift:tX},{key:`Enter`,run:jX,shift:jX},{key:`Mod-a`,run:nX},{key:`Backspace`,run:fX,shift:fX,preventDefault:!0},{key:`Delete`,run:pX,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:hX,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:gX,preventDefault:!0},{mac:`Mod-Backspace`,run:vX,preventDefault:!0},{mac:`Mod-Delete`,run:yX,preventDefault:!0}].concat(zX.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),VX=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:pY,shift:RY},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:mY,shift:zY},{key:`Alt-ArrowUp`,run:wX},{key:`Shift-Alt-ArrowUp`,run:DX},{key:`Alt-ArrowDown`,run:TX},{key:`Shift-Alt-ArrowDown`,run:OX},{key:`Mod-Alt-ArrowUp`,run:oX},{key:`Mod-Alt-ArrowDown`,run:sX},{key:`Escape`,run:cX},{key:`Mod-Enter`,run:MX},{key:`Alt-l`,mac:`Ctrl-l`,run:rX},{key:`Mod-i`,run:iX,preventDefault:!0},{key:`Mod-[`,run:LX},{key:`Mod-]`,run:IX},{key:`Mod-Alt-\\`,run:FX},{key:`Shift-Mod-k`,run:kX},{key:`Shift-Mod-\\`,run:AY},{key:`Mod-/`,run:vJ},{key:`Alt-A`,run:xJ},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:RX}].concat(BX),HX={key:`Tab`,run:IX,shift:LX},UX=135,WX=1,GX=136,KX=137,qX=2,JX=138,YX=3,XX=4,ZX=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],QX=58,$X=40,eZ=95,tZ=91,nZ=45,rZ=46,iZ=35,aZ=37,oZ=38,sZ=92,cZ=10,lZ=42;function uZ(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function dZ(e){return e>=48&&e<=57}function fZ(e){return dZ(e)||e>=97&&e<=102||e>=65&&e<=70}var pZ=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(uZ(c)||c==nZ||c==eZ||a&&dZ(c))!a&&(c!=nZ||s>0)&&(a=!0),o===s&&c==nZ&&o++,r.advance();else if(c==sZ&&r.peek(1)!=cZ){if(r.advance(),fZ(r.next)){do r.advance();while(fZ(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o==2&&i.canShift(qX)?t:c==$X?n:e);break}}},mZ=new Ie(pZ(GX,qX,KX),{contextual:!0}),hZ=new Ie(pZ(JX,YX,XX),{contextual:!0}),gZ=new Ie(e=>{if(ZX.includes(e.peek(-1))){let{next:t}=e;(uZ(t)||t==eZ||t==iZ||t==rZ||t==lZ||t==tZ||t==QX&&uZ(e.peek(1))||t==nZ||t==oZ)&&e.acceptToken(UX)}}),_Z=new Ie(e=>{if(!ZX.includes(e.peek(-1))){let{next:t}=e;if(t==aZ&&(e.advance(),e.acceptToken(WX)),uZ(t)){do e.advance();while(uZ(e.next)||dZ(e.next));e.acceptToken(WX)}}}),vZ=y({"AtKeyword import charset namespace keyframes media supports font-feature-values":A.definitionKeyword,"from to selector scope MatchFlag":A.keyword,NamespaceName:A.namespace,KeyframeName:A.labelName,KeyframeRangeName:A.operatorKeyword,TagName:A.tagName,ClassName:A.className,PseudoClassName:A.constant(A.className),IdName:A.labelName,"FeatureName PropertyName":A.propertyName,AttributeName:A.attributeName,NumberLiteral:A.number,KeywordQuery:A.keyword,UnaryQueryOp:A.operatorKeyword,"CallTag ValueName FontName":A.atom,VariableName:A.variableName,Callee:A.operatorKeyword,Unit:A.unit,"UniversalSelector NestingSelector":A.definitionOperator,"MatchOp CompareOp":A.compareOperator,"ChildOp SiblingOp, LogicOp":A.logicOperator,BinOp:A.arithmeticOperator,Important:A.modifier,Comment:A.blockComment,ColorLiteral:A.color,"ParenthesizedContent StringLiteral":A.string,":":A.punctuation,"PseudoOp #":A.derefOperator,"; , |":A.separator,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace}),yZ={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},bZ={__proto__:null,or:104,and:104,not:112,only:112,layer:186},xZ={__proto__:null,selector:118,layer:182},SZ={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},CZ={__proto__:null,to:223},wZ=Ue.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#DgO/xQhO,5;_O)zQhO'#DeO0VQ`O'#DkO0[QhO'#DnOOQW'#Fj'#FjOOQS,5;_,5;_O0aQ`O'#DhOOQS-E8t-E8tOOQ['#Cv'#CvO0fQdO'#CwO0|QdO'#C}O1dQdO'#DQO1zQ!pO'#DSO4TQ!jO,5:rOOQO'#DX'#DXO,|Q`O'#DWO4eQ!nO'#FgO6hQ`O'#DYO6mQ`O'#DoOOQ['#Fg'#FgO6rQhO'#FqO7QQ`O,5:xO7VQ!bO,5:zOOQS'#Ed'#EdO7_Q`O,5:|O7dQdO,5:|OOQO'#Eg'#EgO7lQ`O,5;PO7qQhO,5;VO'oQdO'#DjOOQS,5;X,5;XO0aQ`O,5;XO7yQdO,5;XOOQS'#FU'#FUO8RQdO'#ErO7QQ`O,5;[O8ZQdO,5:oO8kQdO'#FPO8xQ`O,5<YO8xQ`O,5<YPOOO'#Eu'#EuP9TO&jO,58{POOO,58{,58{OOQP1G.m1G.mOOQP1G.q1G.qOOQP1G.t1G.tO,wQ`O1G.tO,|Q`O1G.tOOQP1G/z1G/zO9`QpO1G/|O9hQaO1G0TO:OQaO1G0VO:fQaO1G0WO:|QaO,5;iOOQO-E8{-E8{OOQS1G.i1G.iO;WQ`O,5:nO;]QdO'#DsO;dQdO'#CuOOQO'#Dz'#DzOOQO,5:d,5:dO-^QdO,5:dOOQP1G/|1G/|O)VQdO1G/|O;kQ!jO'#D^O;yQ!bO,59yO<RQhO,5:ROOQO'#Fk'#FkO;|Q!bO,59}O<ZQhO'#FVO)zQhO,59{O)zQhO'#FVO=OQhO1G0yOOQS1G0y1G0yO=YQhO,5:PO>QQhO'#DlOOQW,5:V,5:VOOQW,5:Y,5:YOOQW,5:S,5:SO>[Q!fO'#FhOOQS'#Fh'#FhOOQS'#Ex'#ExO?lQdO,59cOOQ[,59c,59cO@SQdO,59iOOQ[,59i,59iO@jQdO,59lOOQ[,59l,59lOOQ[,59n,59nO)VQdO,59pOAQQhO'#EYOOQW'#EY'#EYOAlQ`O1G0^O4^QhO1G0^OOQ[,59r,59rO)zQhO'#D[OOQ[,59t,59tOAqQ#tO,5:ZOA|QhO'#FROBZQ`O,5<]OOQS1G0d1G0dOOQS1G0f1G0fOOQS1G0h1G0hOBfQ`O1G0hOBkQdO'#EhOOQS1G0k1G0kOOQS1G0q1G0qOBvQaO,5:UO7QQ`O1G0sOOQS1G0s1G0sO0aQ`O1G0sOOQS-E9S-E9SOOQS1G0v1G0vOB}Q!fO1G0ZOCeQ`O'#EVOOQO1G0Z1G0ZOOQO,5;k,5;kOCjQdO,5;kOOQO-E8}-E8}OCwQ`O1G1tPOOO-E8s-E8sPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%h7+%hO)VQdO7+%hOOQS1G0Y1G0YODSQaO'#FmOD^Q`O,5:_ODcQ!fO'#EwOEaQdO'#FfOEkQ`O,59aOOQO1G0O1G0OOEpQ!bO7+%hO)VQdO1G/eOE{QhO1G/iOOQW1G/m1G/mOOQW1G/g1G/gOF^QhO,5;qOOQW-E9T-E9TOOQS7+&e7+&eOGRQhO'#D^OGaQhO'#FlOGlQ`O'#FlOGqQ`O,5:WOOQS-E8v-E8vOOQ[1G.}1G.}OOQ[1G/T1G/TOOQ[1G/W1G/WOOQ[1G/[1G/[OGvQdO,5:tOOQS7+%x7+%xOG{Q`O7+%xOHQQhO'#D]OHYQ`O,59vO)zQhO,59vOOQ[1G/u1G/uOHbQ`O1G/uOHgQhO,5;mOOQO-E9P-E9POOQS7+&S7+&SOHuQbO'#DSOOQO'#Ej'#EjOITQ`O'#EiOOQO'#Ei'#EiOI`Q`O'#FSOIhQdO,5;SOOQS,5;S,5;SOOQ[1G/p1G/pOOQS7+&_7+&_O7QQ`O7+&_OIsQ!fO'#FOO)VQdO'#FOOJzQdO7+%uOOQO7+%u7+%uOOQO,5:q,5:qOOQO1G1V1G1VOK_Q!bO<<ISOKjQdO'#E|OKtQ`O,5<XOOQP1G/y1G/yOOQS-E8u-E8uOK|QdO'#E{OLWQ`O,5<QOOQ]1G.{1G.{OOQP<<IS<<ISOL`Q`O<<ISOLeQdO7+%POOQO'#D`'#D`OLlQ!bO7+%TOLtQhO'#EzOMRQ`O,5<WO)VQdO,5<WOOQW1G/r1G/rOOQO'#E['#E[OMZQ`O1G0`OOQS<<Id<<IdO)VQdO,59wOMzQhO1G/bOOQ[1G/b1G/bONRQ`O1G/bOOQW-E8w-E8wOOQ[7+%a7+%aOOQO,5;T,5;TOBnQdO'#FTOI`Q`O,5;nOOQS,5;n,5;nOOQS-E9Q-E9QOOQS1G0n1G0nOOQS<<Iy<<IyONZQ!fO,5;jOOQS-E8|-E8|OOQO<<Ia<<IaOOQPAN>nAN>nO! bQ`OAN>nO! gQaO,5;hOOQO-E8z-E8zO! qQdO,5;gOOQO-E8y-E8yOOQW<<Hk<<HkOOQW<<Ho<<HoO! {QhO<<HoO!!^QhO,5;fO!!iQ`O,5;fOOQO-E8x-E8xO!!nQdO1G1rOGvQdO'#FQO!!xQ`O7+%zOOQW7+%z7+%zO!#QQ!bO1G/cOOQ[7+$|7+$|O!#]QhO7+$|P!#dQ`O'#EyOOQO,5;o,5;oOOQO-E9R-E9ROOQS1G1Y1G1YOOQPG24YG24YO!#iQ`OAN>ZO)VQdO1G1QO!#nQ`O7+'^OOQO,5;l,5;lOOQO-E9O-E9OOOQW<<If<<IfOOQ[<<Hh<<HhPOQW,5;e,5;eOOQWG23uG23uO!#vQdO7+&l",stateData:"!$Z~O$QOS$RQQ~OWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|RO$XTO~OQmOWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|lO$XTO~O#z$bP~P!jO$RqO~O`YXcYXdYXmYXpYXsYX!aYX!rYX!uYX#{YX$X[X~OgYX~P$ZO#|sO~O$XuO~O$XuO`$WXc$WXd$WXm$WXp$WXs$WX!a$WX!r$WX!u$WX#{$WXg$WX~O#|vO~O`xOcyOdyOmzOp{O!r|O!u!OO#{}O~Os!RO!a!PO~P&^Of!XO#|!TO#}!UO~O#|!YO~OW!^O#|![O$X!]O~OWVO^_O`WOcYOdYOmZOp[O!r]O!u^O#|RO$XTO~OS!fOc!gOd!gOh!cOs!RO!Y!eO!]!jO$O!bO~On!iO~P(dOQ!tOh!mOp!nOs!oOu!wOw!wO}!uO!d!vO#|!lO#}!rO$]!pO~OS!fOc!gOd!gOh!cO!Y!eO!]!jO$O!bO~Os$eP~P)zOw!|O!d!vO#|!{O~Ow#OO#|#OO~Oh#ROs!RO#c#TO~O#|#VO~Oc!xX~P$ZOc#YO~On#ZO#z$bXr$bX~O#z$bXr$bX~P!jO$S#^O$T#^O$U#`O~Of#eO#|!TO#}!UO~Os!RO!a!PO~Or$bP~P!jOh#oO~Oh#pO~Oo!kX!o!kX$X!mX~O#|#qO~O$X#sO~Oo#tO!o#uO~O`xOcyOdyOmzOp{O~Os!qa!a!qa!r!qa!u!qa#{!qag!qa~P-pOs!ta!a!ta!r!ta!u!ta#{!tag!ta~P-pOS!fOc!gOd!gOh!cO!Y!eO!]!jO~OR#yOu#yOw#yO$O#vO$]!pO~P/POn$PO!U#|O!a#}O~P(dOh$RO~O$O$TO~Oh#RO~O`$WOc$WOg$ZOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo$]O~P)VO`$WOc$WOl$WOm$WOn$WOr$_O~P)VOP$`OSvXcvXdvXhvXnvXyvX!YvX!]vX!}vX#PvX$OvX!WvXQvX`vXgvXlvXmvXpvXsvXuvXwvX}vX!dvX#|vX#}vX$]vXovXrvX!avX#zvX$dvX!pvX~Oy$aO!}$bO#P$cOn$eP~P)zOh#pOS$ZXc$ZXd$ZXn$ZXy$ZX!Y$ZX!]$ZX!}$ZX#P$ZX$O$ZXQ$ZX`$ZXg$ZXl$ZXm$ZXp$ZXs$ZXu$ZXw$ZX}$ZX!d$ZX#|$ZX#}$ZX$]$ZXo$ZXr$ZX!a$ZX#z$ZX$d$ZX!p$ZX~Oh$gO~Oh$iO~O!U#|O!a$jOs$eXn$eX~Os!RO~On$mOy$aO~On$nO~Ow$oO!d!vO~Os$pO~Os!RO!U#|O~Os!RO#c$vO~O#|#VOs#fX~O$d$zOn!wa#z!war!wa~P)VOn#sX#z#sXr#sX~P!jOn#ZO#z$bar$ba~O$S#^O$T#^O$U%RO~Oo%TO!o%UO~Os!qi!a!qi!r!qi!u!qi#{!qig!qi~P-pOs!si!a!si!r!si!u!si#{!sig!si~P-pOs!ti!a!ti!r!ti!u!ti#{!tig!ti~P-pOs#qa!a#qa~P&^Or%VO~Og$aP~P'oOg$YP~P)VOc!SXg!QX!U!QX!W!SX~Oc%_O!W%`O~Og%aO!U#|O~O!U#|OS#yXc#yXd#yXh#yXn#yXs#yX!Y#yX!]#yX!a#yX$O#yX~On%eO!a#}O~P(dO!U#|OS!Xac!Xad!Xah!Xan!Xas!Xa!Y!Xa!]!Xa!a!Xa$O!Xag!Xa~O$O%fOg$`P~P/POy$aOQ$[X`$[Xc$[Xg$[Xh$[Xl$[Xm$[Xn$[Xp$[Xs$[Xu$[Xw$[X}$[X!d$[X#|$[X#}$[X$]$[Xo$[Xr$[X~O`$WOc$WOg%kOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo%lO~P)VO`$WOc$WOl$WOm$WOn$WOr%mO~P)VOh%oOS!|Xc!|Xd!|Xn!|X!Y!|X!]!|X$O!|X~On%pO~Og%uOw%vO!e%vO~Os#uX!a#uXn#uX~P)zO!a$jOs$ean$ea~On%yO~Or&QO#|%{O$]%zO~Og&RO~P&^Oy$aO!a&VO$d$zOn!wi#z!wir!wi~P)VO$c&YO~On#sa#z#sar#sa~P!jOn#ZO#z$bir$bi~O!a&]Og$aX~P&^Og&_O~Oy$aOQ#kXg#kXh#kXp#kXs#kXu#kXw#kX}#kX!a#kX!d#kX#|#kX#}#kX$]#kX~O!a&aOg$YX~P)VOg&cO~Oo&dOy$aO!p&eO~OR#yOu#yOw#yO$O&gO$]!pO~O!U#|OS#yac#yad#yah#yan#yas#ya!Y#ya!]#ya!a#ya$O#ya~Oc!SXg!QX!U!QX!a!QX~O!U#|O!a&iOg$`X~Oc&kO~Og&lO~O#|&mO~On&oO~Oc&pO!U#|O~Og&rOn&qO~Og&uO~O!U#|Os#ua!a#uan#ua~OP$`OsvX!avXgvX~O$]%zOs#]X!a#]X~Os!RO!a&wO~Or&{O#|%{O$]%zO~Oy$aOQ#rXh#rXn#rXp#rXs#rXu#rXw#rX}#rX!a#rX!d#rX#z#rX#|#rX#}#rX$]#rX$d#rXr#rX~O!a&VO$d$zOn!wq#z!wqr!wq~P)VOo'QOy$aO!p'RO~Og#pX!a#pX~P'oO!a&]Og$aa~Og#oX!a#oX~P)VO!a&aOg$Ya~Oo'QO~Og'WO~P)VOg'XO!W'YO~O$O%fOg#nX!a#nX~P/PO!a&iOg$`a~O`'_Og'aO~OS#mac#mad#mah#ma!Y#ma!]#ma$O#ma~Og'cO~PMcOg'cOn'dO~Oy$aOQ#rah#ran#rap#ras#rau#raw#ra}#ra!a#ra!d#ra#z#ra#|#ra#}#ra$]#ra$d#rar#ra~Oo'iO~Og#pa!a#pa~P&^Og#oa!a#oa~P)VOR#yOu#yOw#yO$O&gO$]%zO~O!U#|Og#na!a#na~Oc'kO~O!a&iOg$`i~P)VO`'_Og'oO~Oy$aOg!Pin!Pi~Og'pO~PMcOn'qO~Og'rO~O!a&iOg$`q~Og#nq!a#nq~P)VO$Q!e$R$]`$]y!u~",goto:"4h$fPPPPP$gP$jP$s%V$s%i%{P$sP&R$sPP&XPPP&_&i&iPPPPP&iPP&iP'VP&iP&i(Q&iP(n(q(w(w)Z(wP(wP(wP(w(wP)j(w)vP(w)yPP*m*s$s*y$s+P+P+V+ZPP$sP$s$sP+a,],j,q$jP,zP,}P$jP$jP$jP-T$jP-W-Z-^-e$jP$jPP$jP-j$jP-m-s.S.j.x/O/Y/`/f/l/r/|0S0Y0`0f0lPPPPPPPPPPP0r0{P1q1t2vP3O3x4R4U4XPP4_RrQ_aOPco!R#Z$}q_OP]^co|}!O!P!R#R#Z#o$}&]qSOP]^co|}!O!P!R#R#Z#o$}&]qUOP]^co|}!O!P!R#R#Z#o$}&]QtTR#auQwWR#bxQ!VYR#cyQ#c!XS$f!s!tR%S#e!V!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k's!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sU#y!c%`'YU%}$p&P&wR&v%|!V!sdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sR$h!uQ%s$gR&s%tq!h`ei!c!d!e!q#|#}$O$R$e$g$j%t&iQ#w!cQ%h$RQ&h%`Q'[&iR'j'YQ#UjQ$U!jQ$t#TR&T$vR$S!f!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sQ!|gR$o!}Q!WYR#dyQ#c!WR%S#dQ!ZZR#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR'h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR'P&WR$e!qQ&n%oR'm'_R!}gR#PhR$q#PS&O$p&PR'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:159,nodeProps:[[`isolate`,-2,5,39,``],[`openedBy`,23,`(`,31,`[`,34,`{`],[`closedBy`,24,`)`,32,`]`,35,`}`]],propSources:[vZ],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$dYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOw~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+oYmYOy%jz!Q%j!Q![,_![!c%j!c!i,_!i#T%j#T#Z,_#Z;'S%j;'S;=`%{<%lO%jj,dY!e`Oy%jz!Q%j!Q![-S![!c%j!c!i-S!i#T%j#T#Z-S#Z;'S%j;'S;=`%{<%lO%jj-XY!e`Oy%jz!Q%j!Q![-w![!c%j!c!i-w!i#T%j#T#Z-w#Z;'S%j;'S;=`%{<%lO%jj.OYuY!e`Oy%jz!Q%j!Q![.n![!c%j!c!i.n!i#T%j#T#Z.n#Z;'S%j;'S;=`%{<%lO%jj.uYuY!e`Oy%jz!Q%j!Q![/e![!c%j!c!i/e!i#T%j#T#Z/e#Z;'S%j;'S;=`%{<%lO%jj/jY!e`Oy%jz!Q%j!Q![0Y![!c%j!c!i0Y!i#T%j#T#Z0Y#Z;'S%j;'S;=`%{<%lO%jj0aYuY!e`Oy%jz!Q%j!Q![1P![!c%j!c!i1P!i#T%j#T#Z1P#Z;'S%j;'S;=`%{<%lO%jj1UY!e`Oy%jz!Q%j!Q![1t![!c%j!c!i1t!i#T%j#T#Z1t#Z;'S%j;'S;=`%{<%lO%jj1{SuY!e`Oy%jz;'S%j;'S;=`%{<%lO%jd2[UOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jd2uS!oS!e`Oy%jz;'S%j;'S;=`%{<%lO%jb3WS^QOy%jz;'S%j;'S;=`%{<%lO%j~3gWOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{<%lO3d~4SRO;'S3d;'S;=`4];=`O3d~4`XOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{;=`<%l3d<%lO3d~5OP;=`<%l3dj5WShYOy%jz;'S%j;'S;=`%{<%lO%j~5iOg~n5pUWQyWOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jj6ZWyW!uQOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj6xU!e`Oy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%jj7cY!e`$]YOy%jz!Q%j!Q![7[![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj8WY!e`Oy%jz{%j{|8v|}%j}!O8v!O!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj8{U!e`Oy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj9fU!e`$]YOy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj:P[!e`$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj:zS!aYOy%jz;'S%j;'S;=`%{<%lO%jj;]WyWOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj;zU`YOy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%j~<cTyWOy%jz{<r{;'S%j;'S;=`%{<%lO%j~<yS!e`$R~Oy%jz;'S%j;'S;=`%{<%lO%jj=[[$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj>VUcYOy%jz![%j![!]>i!];'S%j;'S;=`%{<%lO%jj>pSdY!e`Oy%jz;'S%j;'S;=`%{<%lO%jj?RSnYOy%jz;'S%j;'S;=`%{<%lO%jh?dU!WWOy%jz!_%j!_!`?v!`;'S%j;'S;=`%{<%lO%jh?}S!WW!e`Oy%jz;'S%j;'S;=`%{<%lO%jl@bS!WW!oSOy%jz;'S%j;'S;=`%{<%lO%jj@uV!rQ!WWOy%jz!_%j!_!`?v!`!aA[!a;'S%j;'S;=`%{<%lO%jbAcS!rQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjArYOy%jz}%j}!OBb!O!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjBgW!e`Oy%jz!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjCW[lY!e`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[gZ,_Z,mZ,hZ,1,2,3,4,new De(`m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~`,28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>yZ[e]||-1},{term:138,get:e=>bZ[e]||-1},{term:4,get:e=>xZ[e]||-1},{term:28,get:e=>SZ[e]||-1},{term:136,get:e=>CZ[e]||-1}],tokenPrec:2256}),TZ=mt({css:()=>HZ,cssCompletionSource:()=>BZ,cssLanguage:()=>VZ,defineCSSCompletionSource:()=>zZ}),EZ=null;function DZ(){if(!EZ&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));EZ=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return EZ||[]}var OZ=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),kZ=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),AZ=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),jZ=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),MZ=/^(\w[\w-]*|-\w[\w-]*|)$/,NZ=/^-(-[\w-]*)?$/;function PZ(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`?t.sliceString(n.from,n.to)==`var`:!1}var FZ=new re,IZ=[`Declaration`];function LZ(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function RZ(e,t,n){if(t.to-t.from>4096){let r=FZ.get(t);if(r)return r;let i=[],a=new Set,o=t.cursor(at.IncludeAnonymous);if(o.firstChild())do for(let t of RZ(e,o.node,n))a.has(t.label)||(a.add(t.label),i.push(t));while(o.nextSibling());return FZ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(IZ)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var zZ=e=>t=>{let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:DZ(),validFor:MZ};if(i.name==`ValueName`)return{from:i.from,options:kZ,validFor:MZ};if(i.name==`PseudoClassName`)return{from:i.from,options:OZ,validFor:MZ};if(e(i)||(t.explicit||a)&&PZ(i,n.doc))return{from:e(i)||a?i.from:r,options:RZ(n.doc,LZ(i),e),validFor:NZ};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:DZ(),validFor:MZ};return{from:i.from,options:AZ,validFor:MZ}}if(i.name==`AtKeyword`)return{from:i.from,options:jZ,validFor:MZ};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:OZ,validFor:MZ}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:kZ,validFor:MZ}:o.name==`Block`||o.name==`Styles`?{from:r,options:DZ(),validFor:MZ}:null},BZ=zZ(e=>e.name==`VariableName`),VZ=Ge.define({name:`css`,parser:wZ.configure({props:[s.add({Declaration:Te()}),a.add({"Block KeyframeList":tt})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function HZ(){return new Ye(VZ,VZ.data.of({autocomplete:BZ}))}var UZ=55,WZ=1,GZ=56,KZ=2,qZ=57,JZ=3,YZ=4,XZ=5,ZZ=6,QZ=7,$Z=8,eQ=9,tQ=10,nQ=11,rQ=12,iQ=13,aQ=58,oQ=14,sQ=15,cQ=59,lQ=21,uQ=23,dQ=24,fQ=25,pQ=27,mQ=28,hQ=29,gQ=32,_Q=35,vQ=37,yQ=38,bQ=0,xQ=1,SQ={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},CQ={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},wQ={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function TQ(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var EQ=null,DQ=null,OQ=0;function kQ(e,t){let n=e.pos+t;if(OQ==n&&DQ==e)return EQ;let r=e.peek(t),i=``;for(;TQ(r);)i+=String.fromCharCode(r),r=e.peek(++t);return DQ=e,OQ=n,EQ=i?i.toLowerCase():r==NQ||r==PQ?void 0:null}var AQ=60,jQ=62,MQ=47,NQ=63,PQ=33,FQ=45;function IQ(e,t){this.name=e,this.parent=t}var LQ=[ZZ,tQ,QZ,$Z,eQ],RQ=new qe({start:null,shift(e,t,n,r){return LQ.indexOf(t)>-1?new IQ(kQ(r,1)||``,e):e},reduce(e,t){return t==lQ&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==ZZ||i==vQ?new IQ(kQ(r,1)||``,e):e},strict:!1}),zQ=new Ie((e,t)=>{if(e.next!=AQ){e.next<0&&t.context&&e.acceptToken(aQ);return}e.advance();let n=e.next==MQ;n&&e.advance();let r=kQ(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?sQ:oQ);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(nQ);if(i&&CQ[i])return e.acceptToken(aQ,-2);if(t.dialectEnabled(bQ))return e.acceptToken(rQ);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(iQ)}else{if(r==`script`)return e.acceptToken(QZ);if(r==`style`)return e.acceptToken($Z);if(r==`textarea`)return e.acceptToken(eQ);if(SQ.hasOwnProperty(r))return e.acceptToken(tQ);i&&wQ[i]&&wQ[i][r]?e.acceptToken(aQ,-1):e.acceptToken(ZZ)}},{contextual:!0}),BQ=new Ie(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(cQ);break}if(e.next==FQ)t++;else if(e.next==jQ&&t>=2){n>=3&&e.acceptToken(cQ,-2);break}else t=0;e.advance()}});function VQ(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}var HQ=new Ie((e,t)=>{if(e.next==MQ&&e.peek(1)==jQ){let n=t.dialectEnabled(xQ)||VQ(t.context);e.acceptToken(n?XZ:YZ,2)}else e.next==jQ&&e.acceptToken(YZ,1)});function UQ(e,t,n){let r=2+e.length;return new Ie(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==AQ||a==1&&i.next==MQ||a>=2&&a<r&&i.next==e.charCodeAt(a-2))a++,o++;else if(a==r&&i.next==jQ){s>o?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var WQ=UQ(`script`,UZ,WZ),GQ=UQ(`style`,GZ,KZ),KQ=UQ(`textarea`,qZ,JZ),qQ=y({"Text RawText IncompleteTag IncompleteCloseTag":A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.angleBracket,TagName:A.tagName,"MismatchedCloseTag/TagName":[A.tagName,A.invalid],AttributeName:A.attributeName,"AttributeValue UnquotedAttributeValue":A.attributeValue,Is:A.definitionOperator,"EntityReference CharacterReference":A.character,Comment:A.blockComment,ProcessingInst:A.processingInstruction,DoctypeDecl:A.documentMeta}),JQ=Ue.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:RQ,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[qQ],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[WQ,GQ,KQ,HQ,zQ,BQ,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function YQ(e,t){let n=Object.create(null);for(let r of e.getChildren(dQ)){let e=r.getChild(fQ),i=r.getChild(pQ)||r.getChild(mQ);e&&(n[t.read(e.from,e.to)]=i?i.type.id==pQ?t.read(i.from+1,i.to-1):t.read(i.from,i.to):``)}return n}function XQ(e,t){let n=e.getChild(uQ);return n?t.read(n.from,n.to):` `}function ZQ(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||=YQ(e.node.parent.firstChild,t)))return{parser:i.parser,bracketed:!0};return null}function QQ(e=[],t=[]){let n=[],r=[],i=[],a=[];for(let t of e)(t.tag==`script`?n:t.tag==`style`?r:t.tag==`textarea`?i:a).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return v((e,t)=>{let s=e.type.id;if(s==hQ)return ZQ(e,t,n);if(s==gQ)return ZQ(e,t,r);if(s==_Q)return ZQ(e,t,i);if(s==lQ&&a.length){let n=e.node,r=n.firstChild,i=r&&XQ(r,t),o;if(i){for(let e of a)if(e.tag==i&&(!e.attrs||e.attrs(o||=YQ(r,t)))){let t=n.lastChild,i=t.type.id==yQ?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}}if(o&&s==dQ){let n=e.node,r;if(r=n.firstChild){let e=o[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=XQ(n.parent,t))continue;let e=n.lastChild;if(e.type.id==pQ){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(e.type.id==mQ)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var $Q=316,e$=317,t$=1,n$=2,r$=3,i$=4,a$=318,o$=320,s$=321,c$=5,l$=6,u$=0,d$=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],f$=125,p$=59,m$=47,h$=42,g$=43,_$=45,v$=60,y$=44,b$=63,x$=46,S$=91,C$=new qe({start:!1,shift(e,t){return t==c$||t==l$||t==o$?e:t==s$},strict:!1}),w$=new Ie((e,t)=>{let{next:n}=e;(n==f$||n==-1||t.context)&&e.acceptToken(a$)},{contextual:!0,fallback:!0}),T$=new Ie((e,t)=>{let{next:n}=e,r;d$.indexOf(n)>-1||n==m$&&((r=e.peek(1))==m$||r==h$)||n!=f$&&n!=p$&&n!=-1&&!t.context&&e.acceptToken($Q)},{contextual:!0}),E$=new Ie((e,t)=>{e.next==S$&&!t.context&&e.acceptToken(e$)},{contextual:!0}),D$=new Ie((e,t)=>{let{next:n}=e;if(n==g$||n==_$){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(t$);e.acceptToken(n?t$:n$)}}else n==b$&&e.peek(1)==x$&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(r$))},{contextual:!0});function O$(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}var k$=new Ie((e,t)=>{if(e.next!=v$||!t.dialectEnabled(u$)||(e.advance(),e.next==m$))return;let n=0;for(;d$.indexOf(e.next)>-1;)e.advance(),n++;if(O$(e.next,!0)){for(e.advance(),n++;O$(e.next,!1);)e.advance(),n++;for(;d$.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==y$)return;for(let t=0;;t++){if(t==7){if(!O$(e.next,!0))return;break}if(e.next!=`extends`.charCodeAt(t))break;e.advance(),n++}}e.acceptToken(i$,-n)}),A$=y({"get set async static":A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":A.operatorKeyword,"let var const using function class extends":A.definitionKeyword,"import export from":A.moduleKeyword,"with debugger new":A.keyword,TemplateString:A.special(A.string),super:A.atom,BooleanLiteral:A.bool,this:A.self,null:A.null,Star:A.modifier,VariableName:A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.function(A.variableName),VariableDefinition:A.definition(A.variableName),Label:A.labelName,PropertyName:A.propertyName,PrivatePropertyName:A.special(A.propertyName),"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),"FunctionDeclaration/VariableDefinition":A.function(A.definition(A.variableName)),"ClassDeclaration/VariableDefinition":A.definition(A.className),"NewExpression/VariableName":A.className,PropertyDefinition:A.definition(A.propertyName),PrivatePropertyDefinition:A.definition(A.special(A.propertyName)),UpdateOp:A.updateOperator,"LineComment Hashbang":A.lineComment,BlockComment:A.blockComment,Number:A.number,String:A.string,Escape:A.escape,ArithOp:A.arithmeticOperator,LogicOp:A.logicOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,RegExp:A.regexp,Equals:A.definitionOperator,Arrow:A.function(A.punctuation),": Spread":A.punctuation,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,"InterpolationStart InterpolationEnd":A.special(A.brace),".":A.derefOperator,", ;":A.separator,"@":A.meta,TypeName:A.typeName,TypeDefinition:A.definition(A.typeName),"type enum interface implements namespace module declare":A.definitionKeyword,"abstract global Privacy readonly override":A.modifier,"is keyof unique infer asserts":A.operatorKeyword,JSXAttributeValue:A.attributeValue,JSXText:A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.attributeName,"JSXBuiltin/JSXIdentifier":A.standard(A.tagName)}),j$={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},M$={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},N$={__proto__:null,"<":193},P$=Ue.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jv'#JvO%[QlO'#JvOOQO'#Jy'#JyOOQO'#Ih'#IhOCQQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J}'#J}OC|Q!0MSO'#EgODWQpO'#EWOOQO'#Jx'#JxODlQpO'#JyOEyQpO'#EWODWQpO'#EgPFWO&2DjO'#CbPOOO)CD})CD}OOOO'#I`'#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO'#Ia'#IaOFqO&jO,59UOGPQ!L^O'#DcOOOO'#Ic'#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO'#IdOGyQ`O'#JtOIxQ!fO'#JtO+}QlO'#JtOJPQ`O,5:ROJgQ`O'#EpOJtQ`O'#KTOKPQ`O'#KSOKPQ`O'#KSOKXQ`O,5;^OK^Q`O'#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO'#KQONtQ`O'#KPO9eQ`O'#KPO! YQ`O'#KPO! bQ`O,5;]O! gQ`O'#KPO!#lQ!fO'#JsOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$[Q!fO,5:sOOQS'#Jz'#JzOOQO-E<j-E<jO9kQ`O,5=_O!$rQ`O,5=_O!$wQlO,5;ZO!&zQMhO'#EkO!(eQ`O,5;ZO!(jQlO'#DyO!(tQpO,5;dO!(|QpO,5;dO%[QlO,5;dOOQ['#FT'#FTOOQ['#FV'#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ['#FZ'#FZO!)[QlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO'#IpO!+_Q!0LrO,5<iO%[QlO,5;eO!&zQMhO,5;eO!+|QMhO,5;eO!-nQMhO'#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-uQ,UO'#FjO!.rQ,UO'#KXO!.^Q,UO'#KXO!.yQ,UO'#KXOOQO'#KX'#KXO!/_Q,UO,5<SOOOW,5<`,5<`O!/pQlO'#FvOOOW'#Io'#IoO7VO7dO,5<QO!/wQ,UO'#FxOOQ!0Lf,5<Q,5<QO!0hQ$IUO'#CyOOQ!0Lh'#C}'#C}O!0{O#@ItO'#DRO!1iQMjO,5<eO!1pQ`O,5<hO!3YQ(CWO'#GXO!3jQ`O'#GYO!3oQ`O'#GYO!5_Q(CWO'#G^O!6dQpO'#GbOOQO'#Gn'#GnO!,TQMhO'#GmOOQO'#Gp'#GpO!,TQMhO'#GoO!7VQ$IUO'#JlOOQ!0Lh'#Jl'#JlO!7aQ`O'#JkO!7oQ`O'#JjO!7wQ`O'#CuOOQ!0Lh'#C{'#C{O!8YQ`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO!8_Q`O,5<eO1SQ`O'#DZO!,TQMhO'#GPO!,TQMhO'#GRO!8gQ`O'#GTO!8lQ`O'#GUO!3oQ`O'#G[O!,TQMhO'#GaO<]Q`O'#JkO!8qQ`O'#EqO!9`Q`O,5<gOOQ!0Lb'#Cr'#CrO!9hQ`O'#ErO!:bQpO'#EsOOQ!0Lb'#KR'#KRO!:iQ!0LrO'#KaO9uQ!0LrO,5=cO`QlO,5>tOOQ['#Jh'#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!<hQ!0MxO,5:bO!:]QpO,5:`O!?RQ!0MxO,5:jO%[QlO,5:jO!AiQ!0MxO,5:lOOQO,5@z,5@zO!BYQMhO,5=_O!BhQ!0LrO'#JiO9`Q`O'#JiO!ByQ!0LrO,59ZO!CUQpO,59ZO!C^QMhO,59ZO:dQMhO,59ZO!CiQ`O,5;ZO!CqQ`O'#HbO!DVQ`O'#KdO%[QlO,5;}O!:]QpO,5<PO!D_Q`O,5=zO!DdQ`O,5=zO!DiQ`O,5=zO!DwQ`O,5=zO9uQ!0LrO,5=zO<]Q`O,5=jOOQO'#Cy'#CyO!EOQpO,5=gO!EWQMhO,5=hO!EcQ`O,5=jO!EhQ!bO,5=mO!EpQ`O'#K`O?YQ`O'#HWO9kQ`O'#HYO!EuQ`O'#HYO:dQMhO'#H[O!EzQ`O'#H[OOQ[,5=p,5=pO!FPQ`O'#H]O!FbQ`O'#CoO!FgQ`O,59PO!FqQ`O,59PO!HvQlO,59POOQ[,59P,59PO!IWQ!0LrO,59PO%[QlO,59PO!KcQlO'#HeOOQ['#Hf'#HfOOQ['#Hg'#HgO`QlO,5=}O!KyQ`O,5=}O`QlO,5>TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO'#D_O%[QlO'#JvO##sQpO'#JvO##}QpO'#DmO#$`QpO'#DmO#&qQlO'#DmO#&xQ`O'#JuO#'QQ`O,5:WO#'VQ`O'#EtO#'eQ`O'#KUO#'mQ`O,5;_O#'rQpO'#DmO#(PQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-E<f-E<fO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!ByQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CUQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO'#I^'#I^P#+RO&2DjO,58|POOO,58|,58|OOOO-E<^-E<^OOQ!0Lh1G.p1G.pOOOO-E<_-E<_OOOO,59},59}O#+^Q!bO,59}OOOO-E<a-E<aOOQ!0Lf1G/g1G/gO#+cQ!fO,5?OO+}QlO,5?OOOQO,5?U,5?UO#+mQlO'#IdOOQO-E<b-E<bO#+zQ`O,5@`O#,SQ!fO,5@`O#,ZQ`O,5@nOOQ!0Lf1G/m1G/mO%[QlO,5@oO#,cQ`O'#IjOOQO-E<h-E<hO#,ZQ`O,5@nOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@lO#,wQ!0LrO,5@lO#-YQ!0LrO,5@lO#-aQ`O,5@kO9eQ`O,5@kO#-iQ`O,5@kO#-wQ`O'#ImO#-aQ`O,5@kOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2yO9kQ`O1G2yOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh'#GW'#GWO#0rQ!0MzO'#JlO!$wQlO1G0uO#2}Q!fO'#JwO%[QlO'#JwO#3XQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#3^Q`O1G1OO#5rQ!0MxO1G1PO#5yQ!0MxO1G1PO#8aQ!0MxO1G1PO#8hQ!0MxO1G1PO#;OQ!0MxO1G1PO#=fQ!0MxO1G1PO#=mQ!0MxO1G1PO#=tQ!0MxO1G1PO#@[Q!0MxO1G1PO#@cQ!0MxO1G1PO#BpQ?MtO'#CiO#DkQ?MtO1G1`O#DrQ?MtO'#JsO#EVQ!0MxO,5?[OOQ!0Lb-E<n-E<nO#GdQ!0MxO1G1PO#HaQ!0MzO1G1POOQ!0Lf1G1P1G1PO#IdQMjO'#J|O#InQ`O,5:xO#IsQ!0MxO1G1cO#JgQ,UO,5<WO#JoQ,UO,5<XO#JwQ,UO'#FoO#K`Q`O'#FnOOQO'#KY'#KYOOQO'#In'#InO#KeQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#KvQ?MtO'#JrO#LQQ`O,5<bO!)[QlO,5<bOOOW-E<m-E<mOOQ!0Lf1G1l1G1lO#LVQpO'#KXOOQ!0Lf,5<d,5<dO#L_QpO,5<dO#LdQMhO'#DTOOOO'#Ib'#IbO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8lQ`O'#IrO#LvQ`O,5<zOOQ!0Lh,5<w,5<wO!,TQMhO'#IuO#MdQMjO,5=XO!,TQMhO'#IwO#NVQMjO,5=ZO!&zQMhO,5=]OOQO1G2S1G2SO#NaQ!dO'#CrO#NtQ(CWO'#ErO$ |QpO'#GbO$!dQ!dO,5<sO$!kQ`O'#K[O9eQ`O'#K[O$!yQ`O,5<uO$#aQ!dO'#C{O!,TQMhO,5<tO$#kQ`O'#GZO$$PQ`O,5<tO$$UQ!dO'#GWO$$cQ!dO'#K]O$$mQ`O'#K]O!&zQMhO'#K]O$$rQ`O,5<xO$$wQlO'#JvO$%RQpO'#GcO#$`QpO'#GcO$%dQ`O'#GgO!3oQ`O'#GkO$%iQ!0LrO'#ItO$%tQpO,5<|OOQ!0Lp,5<|,5<|O$%{QpO'#GcO$&YQpO'#GdO$&kQpO'#GdO$&pQMjO,5=XO$'QQMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$'bQ`O'#IyO$'vQ`O,5@UO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@VO$)TQ$IYO,59uOOQ!0Lh'#Jp'#JpO$)vQMjO,5<kO$*iQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*sQ`O,5<vO$*xQMjO,5<{O$+YQ`O'#KPO!$wQlO1G2RO$+_Q`O1G2RO9eQ`O'#KSO9eQ`O'#EtO%[QlO'#EtO9eQ`O'#I{O$+dQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-fQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$/jQMhO'#EkOOQ!0Lb,5@T,5@TO$/wQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$0YQ`O1G0uO$0_Q`O'#CiO$0jQ`O'#KeO$0rQ`O,5=|O$0wQ`O'#KeO$0|Q`O'#KeO$1[Q`O'#JRO$1jQ`O,5AOO$1rQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1yQ`O1G3fO$2OQ`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$2TQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$2YQ`O1G3SO$2bQpO'#HQOOQ[1G3U1G3UO!6_QpO'#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$2jQMhO,5=tO9kQ`O,5=tO$%dQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2xQ`O'#KcO$3TQ`O,5=wOOQ[1G.k1G.kO$3YQ!0LrO1G.kO@zQ`O1G.kO$3eQ`O1G.kO9uQ!0LrO1G.kO$5mQ!fO,5AQO$5zQ`O,5AQO9eQ`O,5AQO$6VQlO,5>PO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO'#HtOOQ[1G3x1G3xO$:tQ`O'#HzO?YQ`O'#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb'#G_'#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO'#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO'#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO'#Ig'#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5<iO$BOQ!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$BYQ`O1G5zO$BbQ`O1G6YO$BjQ!fO1G6ZO9eQ`O,5?UO$BtQ!0MxO1G6WO%[QlO1G6WO$CUQ!0LrO1G6WO$CgQ`O1G6VO$CgQ`O1G6VO9eQ`O1G6VO$CoQ`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$DTQ`O,5?XO$+YQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$DcQ`O7+(eO$DnQMhO7+(eO$D|Q!0MzO,5=XO$GXQ!0MzO,5=ZO$IdQ!0MzO,5=XO$KuQ!0MzO,5=ZO$NWQ!0MzO,59uO%!]Q!0MzO,5<kO%$hQ!0MzO,5<mO%&sQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%)UQ!0MxO7+&aO%)xQlO'#IfO%*VQ`O,5@cO%*_Q!fO,5@cOOQ!0Lf1G0P1G0PO%*iQ`O7+&jOOQ!0Lf7+&j7+&jO%*nQ?MtO,5:fO%[QlO7+&zO%*xQ?MtO,5:bO%+VQ?MtO,5:jO%+aQ?MtO,5:lO%+kQMhO'#IiO%+uQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+}Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+'Y7+'YOOOW7+'e7+'eOOOW1G1|1G1|O%,YQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%,_Q!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%,fQ!0MxO7+'kOOQ!0Lh,5?^,5?^O%-YQMhO1G2fP%-aQ`O'#IrPOQ!0Lh-E<p-E<pO%-}QMjO,5?aOOQ!0Lh-E<s-E<sO%.pQMjO,5?cOOQ!0Lh-E<u-E<uO%.zQ!dO1G2wO%/RQ!dO'#CrO%/iQMhO'#KSO$$wQlO'#JvOOQ!0Lh1G2_1G2_O%/sQ`O'#IqO%0[Q`O,5@vO%0[Q`O,5@vO%0dQ`O,5@vO%0oQ`O,5@vOOQO1G2a1G2aO%0}QMjO1G2`O$+YQ`O'#K[O!,TQMhO1G2`O%1_Q(CWO'#IsO%1lQ`O,5@wO!&zQMhO,5@wO%1tQ!dO,5@wOOQ!0Lh1G2d1G2dO%4UQ!fO'#CiO%4`Q`O,5=POOQ!0Lb,5<},5<}O%4hQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%4sQpO,5<}OOQ!0Lb,5=R,5=RO$+YQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$wQlO,5=PO%5RQ`O,5=OO%5^QpO,5=OO!,TQMhO'#IuO%6WQMjO1G2sO!,TQMhO'#IwO%6yQMjO1G2uO%7TQMjO1G5qO%7_QMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%7lQ`O1G2ZO!,TQMhO1G2bO%7qQ!0MxO7+'mOOQ!0Lf7+'m7+'mO!$wQlO7+'mO%8eQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%8jQ!dO'#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$DfQ`O7+(eO%8tQ!0MvO'#CiO%9XQ!0MvO,5=SO%9lQ`O,5=SO%9tQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9yQ`O'#JQO%:bQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%:bQ`O,5APO%:jQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+'T7+'TO%:oQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:tQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:yQ!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%;TQ`O'#KbO%;`Q`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<rQpO'#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<yQ`O1G3`O%=UQMhO1G3`O9uQ!0LrO1G3bO$%dQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%=dQ`O'#JPO%=xQ`O,5@}O%>QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ['#Kh'#KhOOQ['#JS'#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO'#HuO%?^Q`O'#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?MtO1G/sO?YQ`O1G/sO!)[QlO'#DmOOQO,5?P,5?POOQO-E<c-E<cOOQO,5?V,5?VOOQO-E<i-E<iO!CUQpO1G/sOOQO-E<e-E<eOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CUQpO7+&`OOQO7+%x7+%xO$AlQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@nQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@yQ!0LrO7+&XO%AXQ!0MxO7++rO%[QlO7++rO%AiQ`O7++qO%AiQ`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AqQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%BPQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%BXQ`O<<LPO%BdQ!0MzO,5?aO%DoQ!0MzO,5?cO%FzQ!0MzO1G2`O%I]Q!0MzO1G2sO%KhQ!0MzO1G2uO%MsQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%M}Q`O1G5}OOQ!0Lf<<JU<<JUO%NVQ?MtO1G0uO&!^Q?MtO1G1PO&!eQ?MtO1G1PO&$fQ?MtO1G1PO&$mQ?MtO1G1PO&&nQ?MtO1G1PO&(oQ?MtO1G1PO&(vQ?MtO1G1PO&(}Q?MtO1G1PO&+OQ?MtO1G1PO&+VQ?MtO1G1PO&+^Q!0MxO<<JfO&-UQ?MtO1G1PO&.RQ?MvO1G1PO&/UQ?MvO'#JlO&1[Q?MtO1G1cO&1iQ?MtO1G0UO&1sQMjO,5?TOOQO-E<g-E<gO!)[QlO'#FqOOQO'#KZ'#KZOOQO1G1u1G1uO&1}Q`O1G1tO&2SQ?MtO,5?[OOOW7+'h7+'hOOOO1G/Z1G/ZO&2^Q!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&2eQ`O,5?]O9eQ`O,5?]O$+YQ`O,5?]OOQO-E<o-E<oO&2sQ`O1G6bO&2sQ`O1G6bO&2{Q`O1G6bO&3WQMjO7+'zO&3hQ!dO,5?_O&3rQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3wQ!dO1G6cO&4RQ`O1G6cO&4ZQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%4hQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&4`QpO1G2iO&4nQ`O1G2kO$+YQ`O1G2jOCwQ`O1G2jO$$wQlO1G2kO&4vQ`O1G2jO&5jQMjO,5?aOOQ!0Lh-E<t-E<tO&6]QMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&6gQMjO7++]O&6qQMjO7++]OOQ!0Lh1G/c1G/cO&7OQ`O1G/cOOQ!0Lh7+'u7+'uO&7TQMjO7+'|O&7eQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&8XQ`O1G0zO!&zQMhO'#IzO&8^Q`O,5@xO&:`Q!fO<<LPO!&zQMhO1G2nO&:gQ!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:xQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;lQ`O,5?lO&;qQ`O,5?lOOQO-E=O-E=OO&<PQ`O1G6kO&<PQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&<XQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:yQ!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&<^QpO'#I|O&<iQ`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO'#JO'#JOO9uQ!0LrO'#JOO&<qQpO,5=uOOQ[,5=u,5=uO&<xQpO'#EgO&=PQpO'#GeO&=UQ`O7+(zO&=ZQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&=cQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$%dQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=nQ`O,5?kOOQO-E<}-E<}OOQO'#H^'#H^O&=yQ`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>RQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AlQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&?SQ!0LrO<<IsO&?_Q!0MxO<= ^O&?oQ`O<= ]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?wQ!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&@OQ`OANAkO%[QlOANAkO&@WQ!0MzO7+'zO&BiQ!0MzO,5?aO&DtQ!0MzO,5?cO&GPQ!0MzO7+'|O&IbQ!fO1G4lO&IlQ?MtO7+&aO&KpQ?MvO,5=XO&MwQ?MvO,5=ZO&NXQ?MvO,5=XO&NiQ?MvO,5=ZO&NyQ?MvO,59uO'#PQ?MvO,5<kO'%SQ?MvO,5<mO''hQ?MvO,5<{O')^Q?MtO7+'kO')kQ?MtO7+'mO')xQ`O,5<]OOQO7+'`7+'`OOQ!0Lh7+*d7+*dO')}QMjO<<K}OOQO1G4w1G4wO'*UQ`O1G4wO'*aQ`O1G4wO'*oQ`O7++|O'*oQ`O7++|O!&zQMhO1G4yO'*wQ!dO1G4yO'+RQ`O7++}O'+ZQ`O7+(VO'+fQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO'+pQ`O7+(VO!&zQMhO7+(VO$+YQ`O7+(UO'+uQ`O7+(VOCwQ`O7+(UO'+}QMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O',XQ!dO,5?fOOQO-E<x-E<xO',cQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO1G5W1G5WO',sQ`O1G5WO',xQ`O7+,VO',xQ`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO'-QQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO'-VQ`O,5?hOOQO-E<z-E<zO'-bQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO'-lQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&=UQ`O<<LfO'-qQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$%dQ`O<<LhO9`Q`O<<LhO'-yQpO1G5VO'.UQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<= r<= rOOQ[<= s<= sO'.^Q`O<= rO'.cQ`O<= sOOQ[<<Lq<<LqO'.hQ`O<<LqO'.mQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO'.tQ`O<<JQO'/PQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AlQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO'/ZQ!fOG27VO4UQ!fOG27VO'/bQ`OG27VO'/jQ?MtO<<JfO'/wQ?MvO1G2`O'1mQ?MvO,5?aO'3pQ?MvO,5?cO'5sQ?MvO1G2sO'7vQ?MvO1G2uO'9yQ?MtO<<KXO':WQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO':eQ`O7+*cO':pQ`O<= hO':xQ!dO7+*eOOQ!0Lb<<Kq<<KqO$+YQ`O<<KqOCwQ`O<<KqO';SQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO';_Q!dO<<KqOOQ!0Lb<<Kp<<KpO';iQ`O<<KqO!&zQMhO<<KqO$+YQ`O<<KpO';nQMjOANDcO';xQ!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO'<YQ`O<= qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO'<bQ`O7+,SO'<jQ`O1G2kO&=UQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO'<oQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$%dQ`OANBSOOQO'#H_'#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O'<wQ`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$AlQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO'<|Q!fOLD,qO'=TQ?MvO7+'zO'>yQ?MvO,5?aO'@|Q?MvO,5?cO'CPQ?MvO7+'|O'DuQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$+YQ`OANA]OCwQ`OANA]O'EVQ!dOANA]OOQ!0LbANAZANAZO'E^Q`OANA]O!&zQMhOANA]O'EiQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O'EsQ?MtO7+*nOOQO'#Gf'#GfOOQ[G27lG27lO&=UQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO'E}Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O'FXQ!0MzOG27TOOQ!0LbG26wG26wO$+YQ`OG26wO'HjQ`OG26wOCwQ`OG26wO'HuQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&=UQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$+YQ`OLD,cOCwQ`OLD,cO'H|Q`OLD,cO'IXQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO'I`Q?MvOG27TOOQ!0Lb!$( }!$( }O$+YQ`O!$( }OCwQ`O!$( }O'KUQ`O!$( }OOQ!0Lb!)9Ei!)9EiO$+YQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$+YQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO'#DzO1PQ`O'#EXO'KaQ!fO'#JrO'KhQ!L^O'#DvO'KoQlO'#EOO'KvQ!fO'#CiO'N^Q!fO'#CiO!)[QlO'#EQO'NnQlO,5;ZO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO'#IpO(!qQ`O,5<iO!)[QlO,5;eO(!yQMhO,5;eO($dQMhO,5;eO!)[QlO,5;wO!&zQMhO'#GmO(!yQMhO'#GmO!&zQMhO'#GoO(!yQMhO'#GoO1SQ`O'#DZO1SQ`O'#DZO!&zQMhO'#GPO(!yQMhO'#GPO!&zQMhO'#GRO(!yQMhO'#GRO!&zQMhO'#GaO(!yQMhO'#GaO!)[QlO,5:jO($kQpO'#D_O($uQpO'#JvO!)[QlO,5@oO'NnQlO1G0uO(%PQ?MtO'#CiO!)[QlO1G2PO!&zQMhO'#IuO(!yQMhO'#IuO!&zQMhO'#IwO(!yQMhO'#IwO(%ZQ!dO'#CrO!&zQMhO,5<tO(!yQMhO,5<tO'NnQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!yQMhO1G2`O!&zQMhO'#IuO(!yQMhO'#IuO!&zQMhO'#IwO(!yQMhO'#IwO!&zQMhO1G2bO(!yQMhO1G2bO'NnQlO7+'mO'NnQlO7+&aO!&zQMhOANAiO(!yQMhOANAiO(%nQ`O'#EoO(%sQ`O'#EoO(%{Q`O'#F]O(&QQ`O'#EyO(&VQ`O'#KTO(&bQ`O'#KRO(&mQ`O,5;ZO(&rQMjO,5<eO(&yQ`O'#GYO('OQ`O'#GYO('TQ`O,5<eO(']Q`O,5<gO('eQ`O,5;ZO('mQ?MtO1G1`O('tQ`O,5<tO('yQ`O,5<tO((OQ`O,5<vO((TQ`O,5<vO((YQ`O1G2RO((_Q`O1G0uO((dQMjO<<K}O((kQMjO<<K}O((rQMhO'#F|O9`Q`O'#F{OAuQ`O'#EnO!)[QlO,5;tO!3oQ`O'#GYO!3oQ`O'#GYO!3oQ`O'#G[O!3oQ`O'#G[O!,TQMhO7+(cO!,TQMhO7+(cO%.zQ!dO1G2wO%.zQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]",stateData:"()x~O'|OS'}OSTOS(ORQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&W!WO&^!XO&`!YO&b!ZO&d![O&g!]O&m!^O&s!_O&u!`O&w!aO&y!bO&{!cO(TSO(VTO(YUO(aVO(o[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O(O!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X'z]X(a]X(r]X(y]X(z]X~O!g%RX~P(qO_!}O(V#PO(W!}O(X#PO~O_#QO(X#PO(Y#PO(Z#QO~Ox#SO!U#TO(b#TO(c#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T<ZO(VTO(YUO(aVO(o[O~O![#ZO!]#WO!Y(hP!Y(vP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(VTO(YUO(aVO(o[O~Op#mO![#iO!|]O#i#lO#j#iO(T<[O!k(sP~P.iO!l#oO(T#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa(fX'z(fX'w(fX!k(fX!Y(fX!_(fX%i(fX!g(fX~P1qO#S$dO#`$eO$Q$eOP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX!_(gX%i(gX~Oa(gX'z(gX'w(gX!Y(gX!k(gXv(gX!g(gX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T$sO(VTO(YUO(a$uO(y$}O(z%POg(^P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(T%gO~O!g%mO~Oa%nO'z%nO~O!Q%rO~P%[O(U!lO~P%[O%n%vO~P%[Oh%VO!l%eO(T%gO(U!lO~Oe%}O!l%eO(T%gO~Oj$RO~O!_&PO(T%gO(U!lO(VTO(YUO`)WP~O!Q&SO!l&RO%j&VO&T&WO~P;SO!x#sO~O%s&YO!S)SX!_)SX(T)SX~O(T&ZO~Ol!PO!u&`O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&eOe&dO!x&bO%h&cO%{&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&kO#`&nO%j&iO(U!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO'x&{O'z%nO~Oa%nO'x'OO'z%nO~Oa%nO'x'QO'z%nO~O'w]X!Y]Xv]X!k]X&[]X!_]X%i]X!g]X~P(qO!b'_O!c'WO!d'WO(U!lO(VTO(YUO~Os'UO!S'TO!['XO(e'SO!^(iP!^(xP~P@nOn'bO!_'`O(T%gO~Oe'gO!l%eO(T%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<VO#T!pO#U!pO#W!pO#X!pO(U!lO(VTO(YUO(e!mO(o!sO~O!b'mO!c'lO!d'lO#V!pO#['nO#]'nO~PBYOa%nOh%VO!g#vO!l%eO'z%nO(r'pO~O!p'tO#`'rO~PChOs!nO!S!oO(VTO(YUO(e!mO(o!sO~O!_XOs(mX!S(mX!b(mX!c(mX!d(mX!|(mX#T(mX#U(mX#V(mX#W(mX#X(mX#[(mX#](mX(U(mX(V(mX(Y(mX(e(mX(o(mX~O!c'lO!d'lO(U!lO~PDWO(P'xO(Q'xO(R'zO~O_!}O(V'|O(W!}O(X'|O~O_#QO(X'|O(Y'|O(Z#QO~Ov(OO~P%[Ox#SO!U#TO(b#TO(c(RO~O![(TO!Y'WX!Y'^X!]'WX!]'^X~P+}O!](VO!Y(hX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](VO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~O!Y(hX~PHRO!Y([O~O!Y(uX!](uX!g(uX!k(uX(r(uX~O#`(uX#k#dX!^(uX~PJUO#`(]O!Y(wX!](wX~O!](^O!Y(vX~O!Y(aO~O#`$eO~PJUO!^(bO~P`OR#zO!Q#yO!S#{O!l#xO(aVOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(r!na(y!na(z!na~Oa!na'z!na'w!na!Y!na!k!nav!na!_!na%i!na!g!na~PKlO!k(cO~O!g#vO#`(dO(r'pO!](tXa(tX'z(tX~O!k(tX~PNXO!S%hO!_%iO!|]O#i(iO#j(hO(T%gO~O!](jO!k(sX~O!k(lO~O!S%hO!_%iO#j(hO(T%gO~OP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~O!g#vO!k(gX~P! uOR(nO!Q(mO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(T!{a~P!#vO!x(rO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~O#k(xO~O![(zO!k(kP~P%[O(e(|O(o[O~O!S)OO!l#xO(e(|O(o[O~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa'z$qa'w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX'y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO'y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S*YO!_*ZO!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op*`O![*^O(T*XO!k)OP~P!1uO#k*aO~O!l*bO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T*dO(VTO(YUO(a$uO(y$}O(z%PO~O![*gO!Y)PP~P!3tOr*sOs!nO!S*iO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO(e!mO~O!^*pO~P!5iO#S$dOn(`X!Q(`X'y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*xO#`*wOg(_X!](_X~O!]*yOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*|O~Og)}O(T&ZO~O!l+SO~O(T(vO~Op+WO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+XO~O!S%hO![+ZO!](^O!_%iO(T%gO!Y(vP~Os'[O!S+]O![+[O(VTO(YUO(e(|O~O!^(xP~P!9|O!]+^Oa)TX'z)TX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa!ja!]!ja'z!ja'w!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:tOR#zO!Q#yO!S#{O!l#xO(aVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(r!ra(y!ra(z!ra~Oa!ra'z!ra'w!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!=[OR#zO!Q#yO!S#{O!l#xO(aVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(r!ta(y!ta(z!ta~Oa!ta'z!ta'w!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?rOh%VOn+gO!_'`O%i+fO~O!g+iOa(]X!_(]X'z(]X!](]X~Oa%nO!_XO'z%nO~Oh%VO!l%eO~Oh%VO!l%eO(T%gO~O!g#vO#k(xO~Ob+tO%j+uO(T+qO(VTO(YUO!^)XP~O!]+vO`)WX~O[+zO~O`+{O~O!_&PO(T%gO(U!lO`)WP~O%j,OO~P;SOh%VO#`,SO~Oh%VOn,VO!_$|O~O!_,XO~O!Q,ZO!_XO~O%n%vO~O!x,`O~Oe,eO~Ob,fO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,kO`,jO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(VTO(YUO(aVO(o[O~O!_!eO!u!gO$W!kO(T!dO~P!FyO`,jOa%nO'z%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa,pOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,vO~O!_,xO~O&o,zO&q,{OP&laQ&laS&laY&laa&lad&lae&lal&lap&lar&las&lat&laz&la|&la!O&la!S&la!W&la!X&la!_&la!i&la!l&la!o&la!p&la!q&la!s&la!u&la!x&la!|&la$W&la$n&la%h&la%j&la%l&la%m&la%n&la%q&la%s&la%v&la%w&la%y&la&W&la&^&la&`&la&b&la&d&la&g&la&m&la&s&la&u&la&w&la&y&la&{&la'w&la(T&la(V&la(Y&la(a&la(o&la!^&la&e&lab&la&j&la~O(T-QO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-VO#`-UOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-XO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P'_On-iO!_'`O~O!Y-nO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO'z%nO~Oa%nO!g#vO#`-qO'z%nO~Oa%nO!g#vO!p-sO#`-qO'z%nO(r'pO~O(P'xO(Q'xO(R-zO~Ov-{O~O!Y'Wa!]'Wa~P!:tO![.PO!Y'WX!]'WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y'^X!]'^X~O#`.VO!](ta!k(taa(ta'z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]'aX!k'aX~OR.dO!l#xO~Oh%VOn.gO!_'`O%i.fO~Oa#ci!]#ci'z#ci'w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!Q*OO'y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a'z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X'z(`X(a(`X(r(`X!k(`X!Y(`X'w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].tO!k(kX~P!:tO!k.wO~O!Y.yO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi'z#mi(r#mi(y#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi'z#mi(r#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO#z<gO#{<hO(aVO(r$YO(y#|O(z#}O~O$O.{O~P#BwO#S$dO#`<nO$Q<nO$O(gX!^(gX~P! uOa'da!]'da'z'da'w'da!k'da!Y'dav'da!_'da%i'da!g'da~P!:tO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO(y#mi(z#mi~P#EyOn>]O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi'z$Pi'w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]<iO!^(fX~P#BwO!^/ZO~O!g)hO$f({X~O$f/]O~Ov/^O~P!&zOx)yO(b)zO(c/aO~O!S/dO~O(y$}On%aa!Q%aa'y%aa(z%aa!]%aa#`%aa~Og%aa$O%aa~P#L{O(z%POn%ca!Q%ca'y%ca(y%ca!]%ca#`%ca~Og%ca$O%ca~P#MnO!]fX!gfX!kfX!k$zX(rfX~P!0SOp%WO![/mO!](^O(T/lO!Y(vP!Y)PP~P!1uOr*sO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO~Os<}O!S/nO![+[O!^*pO(e<|O!^(xP~P$ [O!k/oO~P#/sO!]/pO!g#vO(r'pO!k)OX~O!k/uO~OnoX!QoX'yoX(yoX(zoX~O!g#vO!koX~P$#OOp/wO!S%hO![*^O!_%iO(T%gO!k)OP~O#k/xO~O!Y$zX!]$zX!g%RX~P!0SO!]/yO!Y)PX~P#/sO!g/{O~O!Y/}O~OpkO(T0OO~P.iOh%VOr0TO!g#vO!l%eO(r'pO~O!g+iO~Oa%nO!]0XO'z%nO~O!^0ZO~P!5iO!c0[O!d0[O(U!lO~P#$`Os!nO!S0]O(VTO(YUO(e!mO~O#[0_O~Og%aa!]%aa#`%aa$O%aa~P!1WOg%ca!]%ca#`%ca$O%ca~P!1WOj%dOk%dOl%dO(T&ZOg'mX!]'mX~O!]*yOg(^a~Og0hO~On0jO#`0iOg(_a!](_a~OR0kO!Q0kO!S0lO#S$dOn}a'y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$(cO!Q*OO'y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$)_O!Q*OO'y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$*QO#k0oO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0rO~O!]+^Oa)Ta'z)Ta~OR#zO!Q#yO!S#{O!l#xO(aVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(r!ri(y!ri(z!ri~Oa!ri'z!ri'w!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$+oOh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0{O%]0|O(T0zO~P$.VO!g+iOa(]a!_(]a'z(]a!](]a~O#k1SO~O[]X!]fX!^fX~O!]1TO!^)XX~O!^1VO~O[1WO~Ob1YO(T+qO(VTO(YUO~O!_&PO(T%gO`'uX!]'uX~O!]+vO`)Wa~O!k1]O~P!:tO[1`O~O`1aO~O#`1fO~On1iO!_$|O~O(e(|O!^)UP~Oh%VOn1rO!_1oO%i1qO~O[1|O!]1zO!^)VX~O!^1}O~O`2POa%nO'z%nO~O(T#nO(VTO(YUO~O#S$dO#`$eO$Q$eOP(gXR(gX[(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~Oj2SO&[2TOa(gX~P$3pOj2SO#`$eO&[2TO~Oa2VO~P%[Oa2XO~O&e2[OP&ciQ&ciS&ciY&cia&cid&cie&cil&cip&cir&cis&cit&ciz&ci|&ci!O&ci!S&ci!W&ci!X&ci!_&ci!i&ci!l&ci!o&ci!p&ci!q&ci!s&ci!u&ci!x&ci!|&ci$W&ci$n&ci%h&ci%j&ci%l&ci%m&ci%n&ci%q&ci%s&ci%v&ci%w&ci%y&ci&W&ci&^&ci&`&ci&b&ci&d&ci&g&ci&m&ci&s&ci&u&ci&w&ci&y&ci&{&ci'w&ci(T&ci(V&ci(Y&ci(a&ci(o&ci!^&cib&ci&j&ci~Ob2bO!^2`O&j2aO~P`O!_XO!l2dO~O&q,{OP&liQ&liS&liY&lia&lid&lie&lil&lip&lir&lis&lit&liz&li|&li!O&li!S&li!W&li!X&li!_&li!i&li!l&li!o&li!p&li!q&li!s&li!u&li!x&li!|&li$W&li$n&li%h&li%j&li%l&li%m&li%n&li%q&li%s&li%v&li%w&li%y&li&W&li&^&li&`&li&b&li&d&li&g&li&m&li&s&li&u&li&w&li&y&li&{&li'w&li(T&li(V&li(Y&li(a&li(o&li!^&li&e&lib&li&j&li~O!Y2jO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2pO(e!mO!]'XX!^'XX~P@nO!]-]O!^(ia~O!]'_X!^'_X~P!9|O!]-`O!^(xa~O!^2wO~P'_Oa%nO#`3QO'z%nO~Oa%nO!g#vO#`3QO'z%nO~Oa%nO!g#vO!p3UO#`3QO'z%nO(r'pO~Oa%nO'z%nO~P!:tO!]$_Ov$qa~O!Y'Wi!]'Wi~P!:tO!](VO!Y(hi~O!](^O!Y(vi~O!Y(wi!](wi~P!:tO!](ti!k(tia(ti'z(ti~P!:tO#`3WO!](ti!k(tia(ti'z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3]O#j3[O(T%gO~O!S%hO!_%iO#j3[O(T%gO~On3dO!_'`O%i3cO~Oh%VOn3dO!_'`O%i3cO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'z%aa(a%aa(r%aa!k%aa!Y%aa'w%aav%aa!_%aa%i%aa!g%aa~P#L{O#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'z%ca(a%ca(r%ca!k%ca!Y%ca'w%cav%ca!_%ca%i%ca!g%ca~P#MnO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'z%aa(a%aa(r%aa!k%aa!Y%aa'w%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/sO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'z%ca(a%ca(r%ca!k%ca!Y%ca'w%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/sO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a'z}a(a}a(r}a!k}a!Y}a'w}av}a!_}a%i}a!g}a~P$(cO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa'z$sa(a$sa(r$sa!k$sa!Y$sa'w$sav$sa!_$sa%i$sa!g$sa~P$)_O#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua'z$ua(a$ua(r$ua!k$ua!Y$ua'w$uav$ua!_$ua%i$ua!g$ua~P$*QO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta'z%Ta(a%Ta(r%Ta!k%Ta!Y%Ta'w%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/sOa#cq!]#cq'z#cq'w#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:tO![3lO!]'YX!k'YX~P%[O!].tO!k(ka~O!].tO!k(ka~P!:tO!Y3oO~O$O!na!^!na~PKlO$O!ja!]!ja!^!ja~P#BwO$O!ra!^!ra~P!=[O$O!ta!^!ta~P!?rOg']X!]']X~P!,TO!]/POg(pa~OSfO!_4TO$d4UO~O!^4YO~Ov4ZO~P#/sOa$mq!]$mq'z$mq'w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4]O~P!&zO!S4^O~O!Q*OO'y*PO(z%POn'ia(y'ia!]'ia#`'ia~Og'ia$O'ia~P%-fO!Q*OO'y*POn'ka(y'ka(z'ka!]'ka#`'ka~Og'ka$O'ka~P%.XO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SOp%WO(T=WO~P!1uOp4bO!S%hO![4aO!_%iO(T%gO!]'eX!k'eX~O!]/pO!k)Oa~O!]/pO!g#vO!k)Oa~O!]/pO!g#vO(r'pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4jO!Y'gX!]'gX~P!3tO!]/yO!Y)Pa~O!]/yO!Y)Pa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~Oj%YX!g%YX~P%2OOj4oO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4tO!l%eO(r'pO~Or4yO!g#vO(r'pO~Os!nO!S4zO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai'y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%5oO(z%POn%ci!Q%ci'y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%6bOg(_i!](_i~P!1WO#`5QOg(_i!](_i~P!1WO!k5VO~Oa$oq!]$oq'z$oq'w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5ZO~O!]5[O!_)QX~P#/sOa$zX!_$zX%^]X'z$zX!]$zX~P!0SO%^5_OaoX!_oX'zoX!]oX~P$#OOp5`O(T#nO~O%^5_O~Ob5fO%j5gO(T+qO(VTO(YUO!]'tX!^'tX~O!]1TO!^)Xa~O[5kO~O`5lO~O[5pO~Oa%nO'z%nO~P#/sO!]5uO#`5wO!^)UX~O!^5xO~Or6OOs!nO!S*iO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!pO#W!pO#X!pO#[5}O#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5|O~P%;eOn6TO!_1oO%i6SO~Oh%VOn6TO!_1oO%i6SO~Ob6[O(T#nO(VTO(YUO!]'sX!^'sX~O!]1zO!^)Va~O(VTO(YUO(e6^O~O`6bO~Oj6eO&[6fO~PNXO!k6gO~P%[Oa6iO~Oa6iO~P%[Ob2bO!^6nO&j2aO~P`O!g6pO~O!g6rOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6sO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6|O'z%nO~Oa%nO!g#vO#`6|O'z%nO~O!](tq!k(tqa(tq'z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7TO(T%gO~O!_'`O%i7WO~On7[O!_'`O%i7WO~O#k'iaP'iaR'ia['iaa'iaj'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia'z'ia(a'ia(r'ia!k'ia!Y'ia'w'iav'ia!_'ia%i'ia!g'ia~P%-fO#k'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka'z'ka(a'ka(r'ka!k'ka!Y'ka'w'kav'ka!_'ka%i'ka!g'ka~P%.XO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i'z$|i(a$|i(r$|i!k$|i!Y$|i'w$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/sO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai'z%ai(a%ai(r%ai!k%ai!Y%ai'w%aiv%ai!_%ai%i%ai!g%ai~P%5oO#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci'z%ci(a%ci(r%ci!k%ci!Y%ci'w%civ%ci!_%ci%i%ci!g%ci~P%6bO!]'Ya!k'Ya~P!:tO!].tO!k(ki~O$O#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#n#mi~P%NdO#n<_O~P%NdOP$[OR#zOr<kO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#r#mi~P&!lO#r<aO~P&!lOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<eO~P&&uO#x#mi~P&&uO#v<cO~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&)UO#z<gO~P&)UOa#|y!]#|y'z#|y'w#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:tO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO(y#mi(z#mi~P&,QOn>^O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&,QO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X'y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$+oOg']a!]']a~P!1WO!^7nO~O!]'da!^'da~P#BwO!Y7oO~P#/sO!g#vO(r'pO!]'ea!k'ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y'ga!]'ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r'pO~Oj8QO!g#vO~Or8TO!g#vO(r'pO~O!Q*OO'y*PO(z%POn'ja(y'ja!]'ja#`'ja~Og'ja$O'ja~P&5RO!Q*OO'y*POn'la(y'la(z'la!]'la#`'la~Og'la$O'la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy'z$oy'w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6rO~O!]5[O!_)Qa~O!_'`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7WO~P&8fO%^8[Oa%[i!_%[i'z%[i!]%[i~Oa#cy!]#cy'z#cy'w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]'pX!^'pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]'sa!^'sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O'z%nO~O!](ty!k(tya(ty'z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_'`O%i9bO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q'z$|q(a$|q(r$|q!k$|q!Y$|q'w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja'z'ja(a'ja(r'ja!k'ja!Y'ja'w'jav'ja!_'ja%i'ja!g'ja~P&5RO#k'laP'laR'la['laa'laj'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la'z'la(a'la(r'la!k'la!Y'la'w'lav'la!_'la%i'la!g'la~P&5tO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq'z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq'w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]'Yi!k'Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa'y%aa(z%aa~P&IyO(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca'y%ca(y%ca~P&LQOn>^O!Q*OO'y*PO(z%PO~P&IyOn>^O!Q*OO'y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a'y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO'y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO'y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>^O!Q*OO'y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P''VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]'ei!k'ei~O!g#vO(r'pO!]'ei!k'ei~O!]/pO!k)Oq~O!Y'gi!]'gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r'pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]'na!_'na~P#/sOa%[q!_%[q'z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]'pa!^'pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_'`O%i:rO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P''VO!Q*OO'y*PO(z%POP'iaR'ia['iaj'ian'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia$O'ia(a'ia(r'ia(y'ia!]'ia!^'ia~O!Q*OO'y*POP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka$O'ka(a'ka(r'ka(y'ka(z'ka!]'ka!^'ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai'y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci'y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]'eq!k'eq~O!]/pO!k)Oy~O!Y'gq!]'gq~P#/sOr:|O!g#vO(r'pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y'z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P''VO!Q*OO'y*PO(z%POP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja$O'ja(a'ja(r'ja(y'ja!]'ja!^'ja~O!Q*OO'y*POP'laR'la['laj'lan'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la$O'la(a'la(r'la(y'la(z'la!]'la!^'la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P''VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r'pO~O[;kO!Y;hO~P#/sO!]'pq!^'pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z'z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z'w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;tO!g#vO(r'pO~O!Y;uO~P#/sOr;|O!g#vO(r'pO~O!Y;}O~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P''VOr<QO!g#vO(r'pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%2OOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~O!gfX!k]X!kfX(rfX~P'LTOP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_XO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]<iO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<tO!S${O!_$|O!i>WO!l$xO#j<zO$W%`O$t<vO$v<xO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!yOr!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P'LTO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<^O~O!g#vO#k<^O~O#`<nO~Oj<bO~O#`=OO!](wX!^(wX~O#`<nO!](uX!^(uX~O#k=PO~Og=RO~P!1WO#k=XO~O#k=YO~Og=RO(T&ZO~O!g#vO#k=ZO~O!g#vO#k=PO~O$O=[O~P#BwO#k=]O~O#k=^O~O#k=cO~O#k=dO~O#k=eO~O#k=fO~O$O=gO~P!1WO$O=hO~P!1WOl=sO~P7eOk#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~(OT#o!X'|(U#ps#n#qr!Q'}$]'}(T$_(e~",goto:"$9Y)]PPPPPP)^PP)aP)rP+W/]PPPP6mPP7TPP=QPPP@tPA^PA^PPPA^PCfPA^PA^PA^PCjPCoPD^PIWPPPI[PPPPI[L_PPPLeMVPI[PI[PP! eI[PPPI[PI[P!#lI[P!'S!(X!(bP!)U!)Y!)U!,gPPPPPPP!-W!(XPP!-h!/YP!2iI[I[!2n!5z!:h!:h!>gPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#<e#<k#<n)aP#<q)aP#<z#<z#<zP)aP)aP)aP)aPP)aP#=Q#=TP#=T)aP#=XP#=[P)aP)aP)aP)aP)aP)a)aPP#=b#=h#=s#=y#>P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$ b$ i$ qPPP$']P$'f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ'`-e1o5{Q%tvQ%|yQ&T|Q&j!VS'W!e-]Q'f!iS'l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c'_Q-m'gQ-u'mQ0[*qQ1b,OQ1y,eR<{<Y%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_S#q]<V!r)_$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU+P%]<s<tQ+t&PQ,f&gQ,m&oQ0x+gQ0}+iQ1Y+uQ2R,kQ3`.gQ5`0|Q5f1TQ6[1zQ7Y3dQ8`5gR9e7['QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S!S!nQ!r!v!y!z$|'W'_'`'l'm'n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q&X|Q'U!eS'[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'b'r(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>R>S[#]WZ#W#Z'X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ'c!hQ'e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l'f'gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o>U<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hW%Ti%V*y>PS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^T)z$u){V+P%]<s<tW'[!e%i*Z-`S(}#y#zQ+c%rQ+y&SS.b(m(nQ1j,XQ5T0kR8i5u'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ'Y!eR2q-]!W!nQ!e!r!v!y!z$|'W'_'`'l'm'n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q'v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j'dQ-w'oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vS(o#p'iQ)P#zS+b%q.|S.c(n(pR3^.d'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS#q]<VQ&t!XQ&u!YQ&w![Q&x!]R2Z,vQ'a!hQ+e%wQ-h'cS.e(q+hQ2x-gW3b.h.i0w0yQ6w2yW7U3_3a3e5^U9a7V7X7ZU:q9c9d9fS;b:p:sQ;p;cR;x;qU!wQ'`-eT5y1o5{!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,s,x.[2[2_]!pQ!r'`-e1o5{T#q]<V%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S(}#y#zS.b(m(n!s=l$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU$fd)_,mS(p#p'iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}Q't!uS(f#g2US-s'k'wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uS<P;|;}R<S<QQ#wbQ's!uS(e#g2US(g#m+WQ+Y%fQ+j%xQ+p&OU-r'k't'wQ.W(fU/r*]*`/wQ0S*jQ0V*lQ1O+kQ1u,aS3R-s-vQ3Z.`S4e/s/tQ4n0PS4q0R0^Q4u0WQ6W1vQ7P3US7q4`4bQ7u4fU7|4r4x4{Q8P4wQ8v6XS9q7r7sQ9u7yQ9}8RQ:O8SQ:c8wQ:y9rS:z9v9xQ;S:QQ;^:dS;f:{;PS;r;g;hS;z;s;uS<O;{;}Q<R<PQ<T<SQ=o=jQ={=tR=|=uV!wQ'`-e%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S#wz!j!r=i$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=o>R%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ=t>QR=u>R%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=n'XU']!e%i*ZR2s-`%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!P<d)^)q-Z.|2k2n3p3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!T<f)^)q-Z.|2k2n3p3v3w3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!^$Zc#Y%q(S(Y(t(y)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<WQ4_/kz>S)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>['QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS$oh$pR4U/U'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{'T'b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^Q+T%aQ/c*Oo4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!U$yi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n=r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hQ=w>TQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hnoOXst!Z#d%m&r&t&u&w,s,x2[2_S*f${*YQ-R'OQ-S'QR4i/y%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f<o#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<p<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!d=S(u)c*[*e.j.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f<q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!h=U(u)c*[*e.k.l.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q'y!{R-y'ySsOtQ#dXT%ps#dQ#OTR'{#OQ#RUR'}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^'YR2r-^Q.u(yS3m.u3nR3n.vQ-e'`R2v-eY!rQ'`-e1o5{R'j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a']R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|<jQ-|<WR<j)qQ/q*]W4c/q4d7t9sU4d/r/s/tS7t4e4fR9s7u$e*Q$v(u)c)e*[*e*t*u+Q+R+V.l.m.o.p.q/_/g/i/k/v/|0d0e0v1e3f3g3h3}4R4[4g4h4l4|5O5R5S5W5r7]7^7_7`7e7f7h7i7j7p7w7z8U8X8Z9h9i9j9t9|:R:S:t:u:v:w:x:};R;e;j;v;y=p=}>O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p'k's't'wQ-w'oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ'd!iQ'o!uU+m%{%|%}Q-W'VU-k'e'f'gS-o'k'uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.l<oQ.m<qQ.o<uQ.p<wQ.q<yQ/_)yQ/g*RQ/i*TQ/k*VQ/v*aS/|*g/mQ0d*wQ0e*xl0v+f,V.f1i1q3c6S7W8q9b:`:r;[;dQ1e,SQ3f=SQ3g=UQ3h=XS3}<l<mQ4R/PS4[/d4^Q4g/xQ4h/yQ4l/{Q4|0`Q5O0bQ5R0iQ5S0jQ5W0oQ5r1fQ7]=]Q7^=_Q7_=aQ7`=cQ7e<pQ7f<rQ7h<vQ7i<xQ7j<zQ7p4_Q7w4jQ7z4oQ8U5QQ8X5[Q8Z5_Q9h=YQ9i=TQ9j=VQ9t7vQ9|8QQ:R8VQ:S8[Q:t=^Q:u=`Q:v=bQ:w=dQ:x9pQ:}9yQ;R:PQ;e=gQ;j;QQ;v;kQ;y=hQ=p>PQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.n<sR7g<tnpOXst!Z#d%m&r&t&u&w,s,x2[2_Q!fPS#fZ#oQ&|!`W'h!o*i0]4zQ(P#SQ)Q#{Q)r$nS,l&k&nQ,q&oQ-O&{S-T'T/nQ-g'bQ.x)OQ/[)sQ0s+]Q0y+gQ2W,pQ2y-iQ3a.gQ4W/VQ5U0lQ6Q1rQ6c2SQ6d2TQ6h2VQ6j2XQ6o2aQ7Z3dQ7m4TQ8s6TQ9P6eQ9Q6fQ9S6iQ9f7[Q:a8tR:k9T#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{'T'b)O*i+]+g,p,s,x-i.g/n0]0l1r2S2T2V2X2[2_2a3d4z6T6e6f6i7[8t9TQ#YWQ#eYQ%quQ%svS%uw!gS(S#W(VQ(Y#ZQ(t#uQ(y#xQ)R$OQ)S$PQ)T$QQ)U$RQ)V$SQ)W$TQ)X$UQ)Y$VQ)Z$WQ)[$XQ)^$ZQ)`$_Q)b$aQ)g$eW)q$n)s/V4TQ+d%tQ+x&RS-Z'X2pQ-x'rS-}(T.PQ.S(]Q.U(dQ.s(xQ.v(zQ.z<UQ.|<XQ.}<YQ/O<]Q/b)}Q0p+XQ2k-UQ2n-XQ3O-qQ3V.VQ3k.tQ3p<^Q3q<_Q3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:`⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:380,context:C$,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,`Expression`,-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,160,`JSXStartCloseTag`],[`closedBy`,-2,24,168,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,165,`JSXEndTag`]],propSources:[A$],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b'|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j'}0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b'}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(V':f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$i&j(Wp(Z!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$i&j(Z!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(o%1l(Wp(Z!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Wp(Z!b$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$i&j(Wp(Z!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Wp(Z!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(z+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(Y';W$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$d`$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(WpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$d`(WpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$i&j(Wp(Z!b(U%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$i&j(Wp(Z!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$i&j(Wp(Z!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$i&j(Wp(Z!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$i&j(Wp(Z!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$i&j(Z!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Wp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$i&j(Wp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Wp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Wp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(WpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$i&j(WpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Wp(Z!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Wp(Z!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Wp(Z!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Wp(Z!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Wp(Z!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Wp(Z!b(O0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$i&j(Wp(Z!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$i&j(Z!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Z!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(WpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(WpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Wp(Z!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Wp(Z!b$n7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$k&j(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#r(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$Q(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#s(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(r(Ct$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$i&j(Wp(Z!b(a+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$i&j(Wp(Z!b(T,2j$_#t(e$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$i&j(Wp(Z!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(y+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b'|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[T$,E$,D$,k$,2,3,4,5,6,7,8,9,10,11,12,13,14,w$,new De("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new De(`j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~`,25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>j$[e]||-1},{term:343,get:e=>M$[e]||-1},{term:95,get:e=>N$[e]||-1}],tokenPrec:15201}),F$=mt({autoCloseTags:()=>a1,javascript:()=>t1,javascriptLanguage:()=>q$,jsxLanguage:()=>X$,localCompletionSource:()=>K$,snippets:()=>I$,tsxLanguage:()=>Z$,typescriptLanguage:()=>Y$,typescriptSnippets:()=>L$}),I$=[Kq("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),Kq("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),Kq("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),Kq(`do {
396
+ \${}
397
+ } while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),Kq(`while (\${}) {
398
+ \${}
399
+ }`,{label:`while`,detail:`loop`,type:`keyword`}),Kq(`try {
400
+ \${}
401
+ } catch (\${error}) {
402
+ \${}
403
+ }`,{label:`try`,detail:`/ catch block`,type:`keyword`}),Kq(`if (\${}) {
404
+ \${}
405
+ }`,{label:`if`,detail:`block`,type:`keyword`}),Kq(`if (\${}) {
406
+ \${}
407
+ } else {
408
+ \${}
409
+ }`,{label:`if`,detail:`/ else block`,type:`keyword`}),Kq(`class \${name} {
410
+ constructor(\${params}) {
411
+ \${}
412
+ }
413
+ }`,{label:`class`,detail:`definition`,type:`keyword`}),Kq('import {${names}} from "${module}"\n${}',{label:`import`,detail:`named`,type:`keyword`}),Kq('import ${name} from "${module}"\n${}',{label:`import`,detail:`default`,type:`keyword`})],L$=I$.concat([Kq(`interface \${name} {
414
+ \${}
415
+ }`,{label:`interface`,detail:`definition`,type:`keyword`}),Kq("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),Kq(`enum \${name} {
416
+ \${}
417
+ }`,{label:`enum`,detail:`definition`,type:`keyword`})]),R$=new re,z$=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function B$(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var V$=[`FunctionDeclaration`],H$={FunctionDeclaration:B$(`function`),ClassDeclaration:B$(`class`),ClassExpression:()=>!0,EnumDeclaration:B$(`constant`),TypeAliasDeclaration:B$(`type`),NamespaceDeclaration:B$(`namespace`),VariableDefinition(e,t){e.matchContext(V$)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function U$(e,t){let n=R$.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(at.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=H$[t.name];if(e&&e(t,a)||z$.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of U$(e,t.node))r.push(n);return!1}}),R$.set(t,r),r}var W$=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,G$=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function K$(e){let t=d(e.state).resolveInner(e.pos,-1);if(G$.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&W$.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)z$.has(n.name)&&(r=r.concat(U$(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:W$}}var q$=Ge.define({name:`javascript`,parser:P$.configure({props:[s.add({IfStatement:Te({except:/^\s*({|else\b)/}),TryStatement:Te({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:rt,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Ze({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Te({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":tt,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),J$={test:e=>/^JSX/.test(e.name),facet:ue({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},Y$=q$.configure({dialect:`ts`},`typescript`),X$=q$.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[J$]:void 0)]}),Z$=q$.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[J$]:void 0)]},`typescript`),Q$=e=>({label:e,type:`keyword`}),$$=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(Q$),e1=$$.concat([`declare`,`implements`,`private`,`protected`,`public`].map(Q$));function t1(e={}){let t=e.jsx?e.typescript?Z$:X$:e.typescript?Y$:q$,n=e.typescript?L$.concat(e1):I$.concat($$);return new Ye(t,[q$.data.of({autocomplete:IK(G$,FK(n))}),q$.data.of({autocomplete:K$}),e.jsx?a1:[]])}function n1(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function r1(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var i1=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),a1=ce.inputHandler.of((e,t,n,r,i)=>{if((i1?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!q$.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=r1(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:et.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=n1(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=r1(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),o1=mt({autoCloseTags:()=>L1,html:()=>F1,htmlCompletionSource:()=>O1,htmlCompletionSourceWith:()=>k1,htmlLanguage:()=>P1}),s1=[`_blank`,`_self`,`_top`,`_parent`],c1=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],l1=[`get`,`post`,`put`,`delete`],u1=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],d1=[`true`,`false`],f1={},p1={a:{attrs:{href:null,ping:null,type:null,media:null,target:s1,hreflang:null}},abbr:f1,address:f1,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:f1,aside:f1,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:f1,base:{attrs:{href:null,target:s1}},bdi:f1,bdo:f1,blockquote:{attrs:{cite:null}},body:f1,br:f1,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:u1,formmethod:l1,formnovalidate:[`novalidate`],formtarget:s1,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:f1,center:f1,cite:f1,code:f1,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[`command`,`checkbox`,`radio`],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[`disabled`],checked:[`checked`]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[`disabled`],multiple:[`multiple`]}},datalist:{attrs:{data:null}},dd:f1,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:f1,div:f1,dl:f1,dt:f1,em:f1,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:f1,figure:f1,footer:f1,form:{attrs:{action:null,name:null,"accept-charset":c1,autocomplete:[`on`,`off`],enctype:u1,method:l1,novalidate:[`novalidate`],target:s1}},h1:f1,h2:f1,h3:f1,h4:f1,h5:f1,h6:f1,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:f1,hgroup:f1,hr:f1,html:{attrs:{manifest:null}},i:f1,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[`allow-top-navigation`,`allow-same-origin`,`allow-forms`,`allow-scripts`],seamless:[`seamless`]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[`audio/*`,`video/*`,`image/*`],autocomplete:[`on`,`off`],autofocus:[`autofocus`],checked:[`checked`],disabled:[`disabled`],formenctype:u1,formmethod:l1,formnovalidate:[`novalidate`],formtarget:s1,multiple:[`multiple`],readonly:[`readonly`],required:[`required`],type:[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]}},ins:{attrs:{cite:null,datetime:null}},kbd:f1,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:f1,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:[`all`,`16x16`,`16x16 32x32`,`16x16 32x32 64x64`]}},map:{attrs:{name:null}},mark:f1,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:c1,name:[`viewport`,`application-name`,`author`,`description`,`generator`,`keywords`],"http-equiv":[`content-language`,`content-type`,`default-style`,`refresh`]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:f1,noscript:f1,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[`typemustmatch`]}},ol:{attrs:{reversed:[`reversed`],start:null,type:[`1`,`a`,`A`,`i`,`I`]},children:[`li`,`script`,`template`,`ul`,`ol`]},optgroup:{attrs:{disabled:[`disabled`],label:null}},option:{attrs:{disabled:[`disabled`],label:null,selected:[`selected`],value:null}},output:{attrs:{for:null,form:null,name:null}},p:f1,param:{attrs:{name:null,value:null}},pre:f1,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:f1,rt:f1,ruby:f1,samp:f1,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:c1}},section:f1,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:f1,source:{attrs:{src:null,type:null,media:null}},span:f1,strong:f1,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:f1,summary:f1,sup:f1,table:f1,tbody:f1,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:f1,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[`autofocus`],disabled:[`disabled`],readonly:[`readonly`],required:[`required`],wrap:[`soft`,`hard`]}},tfoot:f1,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:f1,time:{attrs:{datetime:null}},title:f1,tr:f1,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:f1,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`auto`,`metadata`,`none`],autoplay:[`autoplay`],mediagroup:[`movie`],muted:[`muted`],controls:[`controls`]}},wbr:f1},m1={accesskey:null,class:null,contenteditable:d1,contextmenu:null,dir:[`ltr`,`rtl`,`auto`],draggable:[`true`,`false`,`auto`],dropzone:[`copy`,`move`,`link`,`string:`,`file:`],hidden:[`hidden`],id:null,inert:[`inert`],itemid:null,itemprop:null,itemref:null,itemscope:[`itemscope`],itemtype:null,lang:[`ar`,`bn`,`de`,`en-GB`,`en-US`,`es`,`fr`,`hi`,`id`,`ja`,`pa`,`pt`,`ru`,`tr`,`zh`],spellcheck:d1,autocorrect:d1,autocapitalize:d1,style:null,tabindex:null,title:null,translate:[`yes`,`no`],rel:[`stylesheet`,`alternate`,`author`,`bookmark`,`help`,`license`,`next`,`nofollow`,`noreferrer`,`prefetch`,`prev`,`search`,`tag`],role:`alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer`.split(` `),"aria-activedescendant":null,"aria-atomic":d1,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":d1,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":d1,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":d1,"aria-hidden":d1,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":d1,"aria-multiselectable":d1,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":d1,"aria-relevant":null,"aria-required":d1,"aria-selected":[`true`,`false`,`undefined`],"aria-setsize":null,"aria-sort":[`ascending`,`descending`,`none`,`other`],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},h1=`beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload`.split(` `).map(e=>`on`+e);for(let e of h1)m1[e]=null;var g1=class{constructor(e,t){this.tags={...p1,...e},this.globalAttrs={...m1,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};g1.default=new g1;function _1(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function v1(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`)if(t)t=!1;else return e;return null}function y1(e,t,n){return n.tags[_1(e,v1(t))]?.children||n.allTags}function b1(e,t){let n=[];for(let r=v1(t);r&&!r.type.isTop;r=v1(r.parent)){let i=_1(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var x1=/^[:\-\.\w\u00b7-\uffff]*$/;function S1(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=v1(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:y1(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(b1(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function C1(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:b1(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:x1}}function w1(e,t,n,r){let i=[],a=0;for(let r of y1(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of b1(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function T1(e,t,n,r,i){let a=v1(n),o=a?t.tags[_1(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:x1}}function E1(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=v1(n),i=r?t.tags[_1(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function D1(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?C1(n,i,i.from,r):S1(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?S1(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?C1(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?T1(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?E1(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?w1(n,e,i,r):null}function O1(e){return D1(g1.default,e)}function k1(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new g1(t,n):g1.default;return e=>D1(r,e)}var A1=q$.parser.configure({top:`SingleExpression`}),j1=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:Y$.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:X$.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:Z$.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:A1},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:q$.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:VZ.parser}],M1=[{name:`style`,parser:VZ.parser.configure({top:`Styles`})}].concat(h1.map(e=>({name:e,parser:q$.parser}))),N1=Ge.define({name:`html`,parser:JQ.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),Pe.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),P1=N1.configure({wrap:QQ(j1,M1)});function F1(e={}){let t=``,n;return e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=QQ((e.nestedLanguages||[]).concat(j1),(e.nestedAttributes||[]).concat(M1))),new Ye(n?N1.configure({wrap:n,dialect:t}):t?P1.configure({dialect:t}):P1,[P1.data.of({autocomplete:k1(e)}),e.autoCloseTags===!1?[]:L1,t1().support,HZ().support])}var I1=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `)),L1=ce.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!P1.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if(t.parent?.lastChild?.name!=`CloseTag`&&(a=_1(o.doc,t.parent,n))&&!I1.has(a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=_1(o.doc,e,n))&&!I1.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:et.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});function R1(e,t,n,r){let i=Tn(xC),a=Dn(dw),o=P.useRef(null),{lexicalNode:s}=bK(),c=P.useRef(!1),l=P.useRef(!1),u=P.useCallback(()=>{a({editorType:t,rootNode:s,editorRef:o.current})},[t,s,a]),d=P.useCallback(t=>{if(t.key===`ArrowDown`){let t=o.current?.getCodemirror()?.state;t&&t.doc.length===t.selection.ranges[0].to&&(c.current?(i?.update(()=>{var t;let n=Ul(e);n.getNextSibling()?((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectNext()):n.insertAfter(sl())}),c.current=!1):c.current=!0)}else if(t.key===`ArrowUp`){let t=o.current?.getCodemirror()?.state;t&&t.selection.ranges[0].from===0&&(l.current?(i?.update(()=>{var t;let n=Ul(e);n.getPreviousSibling()&&((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectPrevious())}),l.current=!1):l.current=!0)}else t.key===`Enter`?t.stopPropagation():(t.key===`Backspace`||t.key===`Delete`)&&(o.current?.getCodemirror()?.state)?.doc.length===0&&i?.update(()=>{Ul(e).remove()})},[i,e]);return P.useEffect(()=>{let e=o.current;return setTimeout(()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.addEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.addEventListener(`keydown`,d)},300),()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.removeEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.removeEventListener(`keydown`,d)}},[o,u,d,n]),P.useEffect(()=>{r.subscribe(()=>{var e;(e=o.current?.getCodemirror())==null||e.focus(),u()})},[r,o,e,u]),o}function Z(e){return new Ye(xe.define(e))}function z1(e){return X(()=>import(`./dist-BQK_wUMR.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var B1=[N.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return X(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),N.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return X(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),N.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return z1(`Cassandra`)}}),N.of({name:`CSS`,extensions:[`css`],load(){return X(()=>Promise.resolve().then(()=>TZ).then(e=>e.css()),void 0)}}),N.of({name:`Go`,extensions:[`go`],load(){return X(()=>import(`./dist-Dtv5S2qd.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),N.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return X(()=>Promise.resolve().then(()=>o1).then(e=>e.html()),void 0)}}),N.of({name:`Java`,extensions:[`java`],load(){return X(()=>import(`./dist-DKoyMSNr.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),N.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return X(()=>Promise.resolve().then(()=>F$).then(e=>e.javascript()),void 0)}}),N.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return X(()=>import(`./dist-DT9QkgTN.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),N.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return X(()=>import(`./dist-DotDq_kD.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),N.of({name:`JSX`,extensions:[`jsx`],load(){return X(()=>Promise.resolve().then(()=>F$).then(e=>e.javascript({jsx:!0})),void 0)}}),N.of({name:`LESS`,extensions:[`less`],load(){return X(()=>import(`./dist-B07Whoa6.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),N.of({name:`Liquid`,extensions:[`liquid`],load(){return X(()=>import(`./dist-D68eIqmX.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),N.of({name:`MariaDB SQL`,load(){return z1(`MariaSQL`)}}),N.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return X(()=>Promise.resolve().then(()=>bne).then(e=>e.markdown()),void 0)}}),N.of({name:`MS SQL`,load(){return z1(`MSSQL`)}}),N.of({name:`MySQL`,load(){return z1(`MySQL`)}}),N.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return X(()=>import(`./dist-De6eI3Cr.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),N.of({name:`PLSQL`,extensions:[`pls`],load(){return z1(`PLSQL`)}}),N.of({name:`PostgreSQL`,load(){return z1(`PostgreSQL`)}}),N.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return X(()=>import(`./dist-BACxmdQ2.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),N.of({name:`Rust`,extensions:[`rs`],load(){return X(()=>import(`./dist-B5ZAfwf5.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),N.of({name:`Sass`,extensions:[`sass`],load(){return X(()=>import(`./dist-TG9QLHKj.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),N.of({name:`SCSS`,extensions:[`scss`],load(){return X(()=>import(`./dist-TG9QLHKj.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),N.of({name:`SQL`,extensions:[`sql`],load(){return z1(`StandardSQL`)}}),N.of({name:`SQLite`,load(){return z1(`SQLite`)}}),N.of({name:`TSX`,extensions:[`tsx`],load(){return X(()=>Promise.resolve().then(()=>F$).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),N.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return X(()=>Promise.resolve().then(()=>F$).then(e=>e.javascript({typescript:!0})),void 0)}}),N.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return X(()=>import(`./dist-DLMjd26T.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),N.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return X(()=>import(`./dist-BkUONE3N.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),N.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return X(()=>import(`./dist-B5PTVnox.js`).then(e=>e.yaml()),__vite__mapDeps([15,1]))}}),N.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return X(()=>import(`./apl-14BqhLYK.js`).then(e=>Z(e.apl)),[])}}),N.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return X(()=>import(`./asciiarmor-WLvjqI7d.js`).then(e=>Z(e.asciiArmor)),[])}}),N.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return X(()=>import(`./asn1-Bg4FbdCg.js`).then(e=>Z(e.asn1({}))),[])}}),N.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return X(()=>import(`./asterisk-B2MO-X4d.js`).then(e=>Z(e.asterisk)),[])}}),N.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return X(()=>import(`./brainfuck-CV9kufud.js`).then(e=>Z(e.brainfuck)),[])}}),N.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return X(()=>import(`./cobol-BwO6DF08.js`).then(e=>Z(e.cobol)),[])}}),N.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.csharp)),[])}}),N.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Z(e.clojure)),[])}}),N.of({name:`ClojureScript`,extensions:[`cljs`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Z(e.clojure)),[])}}),N.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return X(()=>import(`./css-CbMZAQ1W.js`).then(e=>Z(e.gss)),[])}}),N.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return X(()=>import(`./cmake-i2VDNaRq.js`).then(e=>Z(e.cmake)),[])}}),N.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return X(()=>import(`./coffeescript-BtivDvRz.js`).then(e=>Z(e.coffeeScript)),[])}}),N.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return X(()=>import(`./commonlisp-DFkEQdLP.js`).then(e=>Z(e.commonLisp)),[])}}),N.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return X(()=>import(`./cypher-Dke5QOzv.js`).then(e=>Z(e.cypher)),[])}}),N.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return X(()=>import(`./python-Cs7sNzy_.js`).then(e=>Z(e.cython)),[])}}),N.of({name:`Crystal`,extensions:[`cr`],load(){return X(()=>import(`./crystal-CU0NkcVL.js`).then(e=>Z(e.crystal)),[])}}),N.of({name:`D`,extensions:[`d`],load(){return X(()=>import(`./d-TPqSVaHM.js`).then(e=>Z(e.d)),[])}}),N.of({name:`Dart`,extensions:[`dart`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.dart)),[])}}),N.of({name:`diff`,extensions:[`diff`,`patch`],load(){return X(()=>import(`./diff-B365LSoZ.js`).then(e=>Z(e.diff)),[])}}),N.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return X(()=>import(`./dockerfile-CJb2sekW.js`).then(e=>Z(e.dockerFile)),__vite__mapDeps([16,17]))}}),N.of({name:`DTD`,extensions:[`dtd`],load(){return X(()=>import(`./dtd-CBMymJ7O.js`).then(e=>Z(e.dtd)),[])}}),N.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return X(()=>import(`./dylan-08Azy1NK.js`).then(e=>Z(e.dylan)),[])}}),N.of({name:`EBNF`,load(){return X(()=>import(`./ebnf-Dkum_1J8.js`).then(e=>Z(e.ebnf)),[])}}),N.of({name:`ECL`,extensions:[`ecl`],load(){return X(()=>import(`./ecl-dhxjHL8y.js`).then(e=>Z(e.ecl)),[])}}),N.of({name:`edn`,extensions:[`edn`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Z(e.clojure)),[])}}),N.of({name:`Eiffel`,extensions:[`e`],load(){return X(()=>import(`./eiffel-C446m6dI.js`).then(e=>Z(e.eiffel)),[])}}),N.of({name:`Elm`,extensions:[`elm`],load(){return X(()=>import(`./elm-po1E9de0.js`).then(e=>Z(e.elm)),[])}}),N.of({name:`Erlang`,extensions:[`erl`],load(){return X(()=>import(`./erlang-BD5LkVkR.js`).then(e=>Z(e.erlang)),[])}}),N.of({name:`Esper`,load(){return X(()=>import(`./sql-DYI2GwJR.js`).then(e=>Z(e.esper)),[])}}),N.of({name:`Factor`,extensions:[`factor`],load(){return X(()=>import(`./factor-B2EMQZkP.js`).then(e=>Z(e.factor)),__vite__mapDeps([18,17]))}}),N.of({name:`FCL`,load(){return X(()=>import(`./fcl-DkEOamHd.js`).then(e=>Z(e.fcl)),[])}}),N.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return X(()=>import(`./forth-dCg2_HVB.js`).then(e=>Z(e.forth)),[])}}),N.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return X(()=>import(`./fortran-3ZpXLFh1.js`).then(e=>Z(e.fortran)),[])}}),N.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Z(e.fSharp)),[])}}),N.of({name:`Gas`,extensions:[`s`],load(){return X(()=>import(`./gas-DMmxLZRI.js`).then(e=>Z(e.gas)),[])}}),N.of({name:`Gherkin`,extensions:[`feature`],load(){return X(()=>import(`./gherkin-DUSFg2R6.js`).then(e=>Z(e.gherkin)),[])}}),N.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return X(()=>import(`./groovy-Cmduloe1.js`).then(e=>Z(e.groovy)),[])}}),N.of({name:`Haskell`,extensions:[`hs`],load(){return X(()=>import(`./haskell-Cyr255R9.js`).then(e=>Z(e.haskell)),[])}}),N.of({name:`Haxe`,extensions:[`hx`],load(){return X(()=>import(`./haxe-BJVKtprM.js`).then(e=>Z(e.haxe)),[])}}),N.of({name:`HXML`,extensions:[`hxml`],load(){return X(()=>import(`./haxe-BJVKtprM.js`).then(e=>Z(e.hxml)),[])}}),N.of({name:`HTTP`,load(){return X(()=>import(`./http-DszHFpc-.js`).then(e=>Z(e.http)),[])}}),N.of({name:`IDL`,extensions:[`pro`],load(){return X(()=>import(`./idl-Cati9Nrv.js`).then(e=>Z(e.idl)),[])}}),N.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return X(()=>import(`./javascript-C5pDVaoP.js`).then(e=>Z(e.jsonld)),[])}}),N.of({name:`Julia`,extensions:[`jl`],load(){return X(()=>import(`./julia-DlqY1cTU.js`).then(e=>Z(e.julia)),[])}}),N.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.kotlin)),[])}}),N.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return X(()=>import(`./livescript-C6p8-2W1.js`).then(e=>Z(e.liveScript)),[])}}),N.of({name:`Lua`,extensions:[`lua`],load(){return X(()=>import(`./lua-BxuTHaF7.js`).then(e=>Z(e.lua)),[])}}),N.of({name:`mIRC`,extensions:[`mrc`],load(){return X(()=>import(`./mirc-CCA0FRfl.js`).then(e=>Z(e.mirc)),[])}}),N.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return X(()=>import(`./mathematica-nDHZUMJT.js`).then(e=>Z(e.mathematica)),[])}}),N.of({name:`Modelica`,extensions:[`mo`],load(){return X(()=>import(`./modelica-Czx80fNR.js`).then(e=>Z(e.modelica)),[])}}),N.of({name:`MUMPS`,extensions:[`mps`],load(){return X(()=>import(`./mumps-Ds_ZaumL.js`).then(e=>Z(e.mumps)),[])}}),N.of({name:`Mbox`,extensions:[`mbox`],load(){return X(()=>import(`./mbox-DAaR0Hcz.js`).then(e=>Z(e.mbox)),[])}}),N.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return X(()=>import(`./nginx-D9M2PQ4U.js`).then(e=>Z(e.nginx)),[])}}),N.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return X(()=>import(`./nsis-DOo3SJmd.js`).then(e=>Z(e.nsis)),__vite__mapDeps([19,17]))}}),N.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return X(()=>import(`./ntriples-DLHGTvHs.js`).then(e=>Z(e.ntriples)),[])}}),N.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.objectiveC)),[])}}),N.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.objectiveCpp)),[])}}),N.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Z(e.oCaml)),[])}}),N.of({name:`Octave`,extensions:[`m`],load(){return X(()=>import(`./octave-8jj96JiC.js`).then(e=>Z(e.octave)),[])}}),N.of({name:`Oz`,extensions:[`oz`],load(){return X(()=>import(`./oz-BmMq7iC4.js`).then(e=>Z(e.oz)),[])}}),N.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return X(()=>import(`./pascal-BgMr6XpT.js`).then(e=>Z(e.pascal)),[])}}),N.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return X(()=>import(`./perl-D6YJObi_.js`).then(e=>Z(e.perl)),[])}}),N.of({name:`Pig`,extensions:[`pig`],load(){return X(()=>import(`./pig-nx7uchs8.js`).then(e=>Z(e.pig)),[])}}),N.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return X(()=>import(`./powershell-B4IPkVxR.js`).then(e=>Z(e.powerShell)),[])}}),N.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return X(()=>import(`./properties-CoavQdLC.js`).then(e=>Z(e.properties)),[])}}),N.of({name:`ProtoBuf`,extensions:[`proto`],load(){return X(()=>import(`./protobuf-D5EWhcmc.js`).then(e=>Z(e.protobuf)),[])}}),N.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return X(()=>import(`./pug-QU72BPAa.js`).then(e=>Z(e.pug)),__vite__mapDeps([20,21]))}}),N.of({name:`Puppet`,extensions:[`pp`],load(){return X(()=>import(`./puppet-B_0GFuyD.js`).then(e=>Z(e.puppet)),[])}}),N.of({name:`Q`,extensions:[`q`],load(){return X(()=>import(`./q-BIB9pPtI.js`).then(e=>Z(e.q)),[])}}),N.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return X(()=>import(`./r-CN5s4f3o.js`).then(e=>Z(e.r)),[])}}),N.of({name:`RPM Changes`,load(){return X(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Z(e.rpmChanges)),[])}}),N.of({name:`RPM Spec`,extensions:[`spec`],load(){return X(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Z(e.rpmSpec)),[])}}),N.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return X(()=>import(`./ruby-BVPradRk.js`).then(e=>Z(e.ruby)),[])}}),N.of({name:`SAS`,extensions:[`sas`],load(){return X(()=>import(`./sas-DN4j74IF.js`).then(e=>Z(e.sas)),[])}}),N.of({name:`Scala`,extensions:[`scala`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.scala)),[])}}),N.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return X(()=>import(`./scheme-CvNgHAnh.js`).then(e=>Z(e.scheme)),[])}}),N.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return X(()=>import(`./shell-BjiMLAaM.js`).then(e=>Z(e.shell)),[])}}),N.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return X(()=>import(`./sieve-C2U1O5Z4.js`).then(e=>Z(e.sieve)),[])}}),N.of({name:`Smalltalk`,extensions:[`st`],load(){return X(()=>import(`./smalltalk-DkYwYufV.js`).then(e=>Z(e.smalltalk)),[])}}),N.of({name:`Solr`,load(){return X(()=>import(`./solr-BopnSD-v.js`).then(e=>Z(e.solr)),[])}}),N.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Z(e.sml)),[])}}),N.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return X(()=>import(`./sparql-Cpg3YQfd.js`).then(e=>Z(e.sparql)),[])}}),N.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return X(()=>import(`./spreadsheet-kRxtVt9J.js`).then(e=>Z(e.spreadsheet)),[])}}),N.of({name:`Squirrel`,extensions:[`nut`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Z(e.squirrel)),[])}}),N.of({name:`Stylus`,extensions:[`styl`],load(){return X(()=>import(`./stylus-CARoeVE9.js`).then(e=>Z(e.stylus)),[])}}),N.of({name:`Swift`,extensions:[`swift`],load(){return X(()=>import(`./swift-DKNaLAK6.js`).then(e=>Z(e.swift)),[])}}),N.of({name:`sTeX`,load(){return X(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Z(e.stex)),[])}}),N.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return X(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Z(e.stex)),[])}}),N.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return X(()=>import(`./verilog-DVCHmufx.js`).then(e=>Z(e.verilog)),[])}}),N.of({name:`Tcl`,extensions:[`tcl`],load(){return X(()=>import(`./tcl-CQyXkgMH.js`).then(e=>Z(e.tcl)),[])}}),N.of({name:`Textile`,extensions:[`textile`],load(){return X(()=>import(`./textile-Yg_UWn-t.js`).then(e=>Z(e.textile)),[])}}),N.of({name:`TiddlyWiki`,load(){return X(()=>import(`./tiddlywiki-dqVbkfX4.js`).then(e=>Z(e.tiddlyWiki)),[])}}),N.of({name:`Tiki wiki`,load(){return X(()=>import(`./tiki-CC_ic8g0.js`).then(e=>Z(e.tiki)),[])}}),N.of({name:`TOML`,extensions:[`toml`],load(){return X(()=>import(`./toml-B7gGzVkJ.js`).then(e=>Z(e.toml)),[])}}),N.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return X(()=>import(`./troff-Bq3z6oAu.js`).then(e=>Z(e.troff)),[])}}),N.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return X(()=>import(`./ttcn-GvRgs2AT.js`).then(e=>Z(e.ttcn)),[])}}),N.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return X(()=>import(`./ttcn-cfg-CGCXz7Vo.js`).then(e=>Z(e.ttcnCfg)),[])}}),N.of({name:`Turtle`,extensions:[`ttl`],load(){return X(()=>import(`./turtle-CwIpz2yy.js`).then(e=>Z(e.turtle)),[])}}),N.of({name:`Web IDL`,extensions:[`webidl`],load(){return X(()=>import(`./webidl-egXQEWlC.js`).then(e=>Z(e.webIDL)),[])}}),N.of({name:`VB.NET`,extensions:[`vb`],load(){return X(()=>import(`./vb-BmcHUM2C.js`).then(e=>Z(e.vb)),[])}}),N.of({name:`VBScript`,extensions:[`vbs`],load(){return X(()=>import(`./vbscript-Cs9dylre.js`).then(e=>Z(e.vbScript)),[])}}),N.of({name:`Velocity`,extensions:[`vtl`],load(){return X(()=>import(`./velocity-CBWU0VCy.js`).then(e=>Z(e.velocity)),[])}}),N.of({name:`Verilog`,extensions:[`v`],load(){return X(()=>import(`./verilog-DVCHmufx.js`).then(e=>Z(e.verilog)),[])}}),N.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return X(()=>import(`./vhdl-BGDk4f1d.js`).then(e=>Z(e.vhdl)),[])}}),N.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return X(()=>import(`./xquery-5f0hn7cg.js`).then(e=>Z(e.xQuery)),[])}}),N.of({name:`Yacas`,extensions:[`ys`],load(){return X(()=>import(`./yacas-DNs9XkmQ.js`).then(e=>Z(e.yacas)),[])}}),N.of({name:`Z80`,extensions:[`z80`],load(){return X(()=>import(`./z80-B7Dfb4UO.js`).then(e=>Z(e.z80)),[])}}),N.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Z(e.mscgen)),[])}}),N.of({name:`Xù`,extensions:[`xu`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Z(e.xu)),[])}}),N.of({name:`MsGenny`,extensions:[`msgenny`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Z(e.msgenny)),[])}}),N.of({name:`Vue`,extensions:[`vue`],load(){return X(()=>import(`./dist-BFlEjppv.js`).then(e=>e.vue()),__vite__mapDeps([22,1]))}}),N.of({name:`Angular Template`,load(){return X(()=>import(`./dist-CigbyRK5.js`).then(e=>e.angular()),__vite__mapDeps([23,1]))}})],V1=`#2e3440`,H1=`#3b4252`,U1=`#434c5e`,W1=`#4c566a`,G1=`#e5e9f0`,K1=`#eceff4`,q1=`#8fbcbb`,J1=`#88c0d0`,Y1=`#81a1c1`,X1=`#5e81ac`,Z1=`#bf616a`,Q1=`#d08770`,$1=`#ebcb8b`,e0=`#a3be8c`,t0=`#b48ead`,n0=`#d30102`,r0=K1,i0=r0,a0=`#ffffff`,o0=H1,s0=r0,c0=H1,l0=[ce.theme({"&":{color:V1,backgroundColor:a0},".cm-content":{caretColor:c0},".cm-cursor, .cm-dropCursor":{borderLeftColor:c0},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:s0},".cm-panels":{backgroundColor:r0,color:W1},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid ${W1}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:G1},".cm-activeLine":{backgroundColor:i0},".cm-selectionMatch":{backgroundColor:G1},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${W1}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:K1},".cm-gutters":{backgroundColor:K1,color:V1,border:`none`},".cm-activeLineGutter":{backgroundColor:i0},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:o0},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:o0,borderBottomColor:o0},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:i0,color:W1}}},{dark:!1}),D(fe.define([{tag:A.keyword,color:X1},{tag:[A.name,A.deleted,A.character,A.propertyName,A.macroName],color:Q1},{tag:[A.variableName],color:Q1},{tag:[A.function(A.variableName)],color:X1},{tag:[A.labelName],color:Y1},{tag:[A.color,A.constant(A.name),A.standard(A.name)],color:X1},{tag:[A.definition(A.name),A.separator],color:e0},{tag:[A.brace],color:q1},{tag:[A.annotation],color:n0},{tag:[A.number,A.changed,A.annotation,A.modifier,A.self,A.namespace],color:J1},{tag:[A.typeName,A.className],color:$1},{tag:[A.operator,A.operatorKeyword],color:e0},{tag:[A.tagName],color:t0},{tag:[A.squareBracket],color:Z1},{tag:[A.angleBracket],color:Q1},{tag:[A.attributeName],color:$1},{tag:[A.regexp],color:X1},{tag:[A.quote],color:H1},{tag:[A.string],color:Q1},{tag:A.link,color:q1,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[A.url,A.escape,A.special(A.string)],color:Q1},{tag:[A.meta],color:J1},{tag:[A.comment],color:U1,fontStyle:`italic`},{tag:A.strong,fontWeight:`bold`,color:X1},{tag:A.emphasis,fontStyle:`italic`,color:X1},{tag:A.strikethrough,textDecoration:`line-through`},{tag:A.heading,fontWeight:`bold`,color:X1},{tag:A.special(A.heading1),fontWeight:`bold`,color:X1},{tag:A.heading1,fontWeight:`bold`,color:X1},{tag:[A.heading2,A.heading3,A.heading4],fontWeight:`bold`,color:X1},{tag:[A.heading5,A.heading6],color:X1},{tag:[A.atom,A.bool,A.special(A.variableName)],color:Q1},{tag:[A.processingInstruction,A.inserted],color:q1},{tag:[A.contentSeparator],color:$1},{tag:A.invalid,color:U1,borderBottom:`1px dotted ${n0}`}]))],u0=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,d0=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(u0(e)):u0,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return g(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ae(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=b(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(d0.prototype[Symbol.iterator]=function(){return this});var f0={from:-1,to:-1,match:/.*/.exec(``),precise:!0},p0=`gm`+(/x/.unicode==null?``:`u`),m0=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=f0,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new _0(e,t,n,r,i);this.re=new RegExp(t,p0+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=y0(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=y0(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},h0=new WeakMap,g0=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=h0.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return h0.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),h0.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},_0=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=f0,this.matchPos=y0(e,r),this.re=new RegExp(t,p0+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=g0.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=y0(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=g0.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(m0.prototype[Symbol.iterator]=_0.prototype[Symbol.iterator]=function(){return this});function v0(e){try{return new RegExp(e,p0),!0}catch{return!1}}function y0(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var b0=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=Fe(e,{label:t.phrase(`Go to line`),input:{type:`text`,name:`line`,value:n},focus:!0,submitLabel:t.phrase(`go`)});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i){e.dispatch({effects:r});return}let a=t.doc.lineAt(t.selection.main.head),[,o,s,c,l]=i,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),p=et.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[r,ce.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},x0={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},S0=u.define({combine(e){return j(e,x0,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function C0(e){let t=[k0,O0];return e&&t.push(S0.of(e)),t}var w0=He.mark({class:`cm-selectionMatch`}),T0=He.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function E0(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=M.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=M.Word)}function D0(e,t,n,r){return e(t.sliceDoc(n,n+1))==M.Word&&e(t.sliceDoc(r-1,r))==M.Word}var O0=le.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(S0),{state:n}=e,r=n.selection;if(r.ranges.length>1)return He.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return He.none;let e=n.wordAt(i.head);if(!e)return He.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return He.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(E0(o,n,i.from,i.to)&&D0(o,n,i.from,i.to)))return He.none}else if(a=n.sliceDoc(i.from,i.to),!a)return He.none}let s=[];for(let r of e.visibleRanges){let e=new d0(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||E0(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(T0.range(r,a)):(r>=i.to||a<=i.from)&&s.push(w0.range(r,a)),s.length>t.maxMatches))return He.none}}return He.set(s)}},{decorations:e=>e.decorations}),k0=ce.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),A0=({state:e,dispatch:t})=>{let{selection:n}=e,r=et.create(n.ranges.map(t=>e.wordAt(t.head)||et.cursor(t.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function j0(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new d0(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new d0(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var M0=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return A0({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=j0(e,r);return i?(t(e.update({selection:e.selection.addRange(et.range(i.from,i.to),!1),effects:ce.scrollIntoView(i.to)})),!0):!1},N0=u.define({combine(e){return j(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new p2(e),scrollToMatch:e=>ce.scrollIntoView(e)})}}),P0=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||v0(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
418
+ `:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new G0(this):new z0(this)}getCursor(e,t=0,n){let r=e.doc?e:ne.create({doc:e});return n??=r.doc.length,this.regexp?V0(this,r,t,n):L0(this,r,t,n)}},F0=class{constructor(e){this.spec=e}};function I0(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function L0(e,t,n,r){let i;return e.wholeWord&&(i=R0(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=I0(e.test,t,i)),new d0(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function R0(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(H0(i,n-a))!=M.Word||t(U0(i,n-a))!=M.Word)&&(t(U0(i,r-a))!=M.Word||t(H0(i,r-a))!=M.Word))}var z0=class extends F0{constructor(e){super(e)}nextMatch(e,t,n){let r=L0(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=L0(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=L0(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=L0(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=L0(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function B0(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function V0(e,t,n,r){let i;return e.wholeWord&&(i=W0(t.charCategorizer(t.selection.main.head))),e.test&&(i=B0(e.test,t,i)),new m0(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function H0(e,t){return e.slice(i(e,t,!1),t)}function U0(e,t){return e.slice(t,i(e,t))}function W0(e){return(t,n,r)=>!r[0].length||(e(H0(r.input,r.index))!=M.Word||e(U0(r.input,r.index))!=M.Word)&&(e(U0(r.input,r.index+r[0].length))!=M.Word||e(H0(r.input,r.index+r[0].length))!=M.Word)}var G0=class extends F0{nextMatch(e,t,n){let r=V0(this.spec,e,n,e.doc.length).next();return r.done&&(r=V0(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=V0(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=V0(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=V0(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},K0=S.define(),q0=S.define(),J0=w.define({create(e){return new Y0(s2(e).create(),null)},update(e,t){for(let n of t.effects)n.is(K0)?e=new Y0(n.value.create(),e.panel):n.is(q0)&&(e=new Y0(e.query,n.value?o2:null));return e},provide:e=>Ee.from(e,e=>e.panel)}),Y0=class{constructor(e,t){this.query=e,this.panel=t}},X0=He.mark({class:`cm-searchMatch`}),Z0=He.mark({class:`cm-searchMatch cm-searchMatch-selected`}),Q0=le.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(J0))}update(e){let t=e.state.field(J0);(t!=e.startState.field(J0)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return He.none;let{view:r}=this,i=new n;for(let t=0,n=r.visibleRanges,a=n.length;t<a;t++){let{from:o,to:s}=n[t];for(;t<a-1&&s>n[t+1].from-500;)s=n[++t].to;e.highlight(r.state,o,s,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?Z0:X0)})}return i.finish()}},{decorations:e=>e.decorations});function $0(e){return t=>{let n=t.state.field(J0,!1);return n&&n.query.spec.valid?e(t,n):u2(t)}}var e2=$0((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=et.single(r.from,r.to),a=e.state.facet(N0);return e.dispatch({selection:i,effects:[_2(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),l2(e),!0}),t2=$0((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=et.single(i.from,i.to),o=e.state.facet(N0);return e.dispatch({selection:a,effects:[_2(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),l2(e),!0}),n2=$0((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:et.create(n.map(e=>et.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),r2=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new d0(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(et.range(t.value.from,t.value.to))}return t(e.update({selection:et.create(a,o),userEvent:`select.search.matches`})),!0},i2=$0((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),u.push(ce.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=et.single(o.from,o.to).map(d),u.push(_2(e,o)),u.push(n.facet(N0).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),a2=$0((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:ce.announce.of(r),userEvent:`input.replace.all`}),!0});function o2(e){return e.state.facet(N0).createPanel(e)}function s2(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(N0);return new P0({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function c2(e){let t=Le(e,o2);return t&&t.dom.querySelector(`[main-field]`)}function l2(e){let t=c2(e);t&&t==e.root.activeElement&&t.select()}var u2=e=>{let t=e.state.field(J0,!1);if(t&&t.panel){let n=c2(e);if(n&&n!=e.root.activeElement){let r=s2(e.state,t.query.spec);r.valid&&e.dispatch({effects:K0.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[q0.of(!0),t?K0.of(s2(e.state,t.query.spec)):S.appendConfig.of(y2)]});return!0},d2=e=>{let t=e.state.field(J0,!1);if(!t||!t.panel)return!1;let n=Le(e,o2);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:q0.of(!1)}),!0},f2=[{key:`Mod-f`,run:u2,scope:`editor search-panel`},{key:`F3`,run:e2,shift:t2,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:e2,shift:t2,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:d2,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:r2},{key:`Mod-Alt-g`,run:b0},{key:`Mod-d`,run:M0,preventDefault:!0}],p2=class{constructor(e){this.view=e;let t=this.query=e.state.field(J0).query.spec;this.commit=this.commit.bind(this),this.searchField=de(`input`,{value:t.search,placeholder:m2(e,`Find`),"aria-label":m2(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=de(`input`,{value:t.replace,placeholder:m2(e,`Replace`),"aria-label":m2(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=de(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=de(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=de(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return de(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=de(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>e2(e),[m2(e,`next`)]),n(`prev`,()=>t2(e),[m2(e,`previous`)]),n(`select`,()=>n2(e),[m2(e,`all`)]),de(`label`,null,[this.caseField,m2(e,`match case`)]),de(`label`,null,[this.reField,m2(e,`regexp`)]),de(`label`,null,[this.wordField,m2(e,`by word`)]),...e.state.readOnly?[]:[de(`br`),this.replaceField,n(`replace`,()=>i2(e),[m2(e,`replace`)]),n(`replaceAll`,()=>a2(e),[m2(e,`replace all`)])],de(`button`,{name:`close`,onclick:()=>d2(e),"aria-label":m2(e,`close`),type:`button`},[`×`])])}commit(){let e=new P0({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:K0.of(e)}))}keydown(e){Ve(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?t2:e2)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),i2(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(K0)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(N0).top}};function m2(e,t){return e.state.phrase(t)}var h2=30,g2=/[\s\.,:;?!]/;function _2(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-h2),o=Math.min(i,n+h2),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<h2;e++)if(!g2.test(s[e+1])&&g2.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-h2;e--)if(!g2.test(s[e-1])&&g2.test(s[e])){s=s.slice(0,e);break}}return ce.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var v2=ce.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),y2=[J0,E.low(Q0),v2],b2=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},x2=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,r,i){let a=i.facet(F2).markerFilter;a&&(t=a(t,i));let o=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new n,c=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let e=0;;){let t=e==o.length?null:o[e];if(!t&&!c.length)break;let n,r;if(c.length)n=l,r=c.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,c.push(t),e++}for(;e<o.length;){let t=o[e];if(t.from==n&&(t.to>t.from||t.to==n))c.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(c.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let a=K2(c);if(i)s.add(n,n,He.widget({widget:new z2(a),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);s.add(n,r,He.mark({class:`cm-lintRange cm-lintRange-`+a+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<c.length;e++)c[e].to<=l&&c.splice(e--,1)}let p=s.finish();return new e(p,r,S2(p))}};function S2(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0))if(!r)r=new b2(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new b2(r.from,n,r.diagnostic)}),r}function C2(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(F2).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(T2))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function w2(e,t){return e.field(O2,!1)?t:t.concat(S.appendConfig.of(q2))}var T2=S.define(),E2=S.define(),D2=S.define(),O2=w.define({create(){return new x2(He.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=S2(n,e.selected.diagnostic,i)||S2(n,null,i)}!n.size&&i&&t.state.facet(F2).autoPanel&&(i=null),e=new x2(n,i,r)}for(let n of t.effects)if(n.is(T2)){let r=t.state.facet(F2).autoPanel?n.value.length?V2.open:null:e.panel;e=x2.init(n.value,r,t.state)}else n.is(E2)?e=new x2(e.diagnostics,n.value?V2.open:null,e.selected):n.is(D2)&&(e=new x2(e.diagnostics,e.panel,n.value));return e},provide:e=>[Ee.from(e,e=>e.panel),ce.decorations.from(e,e=>e.diagnostics)]}),k2=He.mark({class:`cm-lintRange cm-lintRange-active`});function A2(e,t,n){let{diagnostics:r}=e.state.field(O2),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(F2).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:e.state.doc.lineAt(a).to<o,create(){return{dom:j2(e,i)}}}:null}function j2(e,t){return de(`ul`,{class:`cm-tooltip-lint`},t.map(t=>R2(e,t,!1)))}var M2=e=>{let t=e.state.field(O2,!1);(!t||!t.panel)&&e.dispatch({effects:w2(e.state,[E2.of(!0)])});let n=Le(e,V2.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},N2=e=>{let t=e.state.field(O2,!1);return!t||!t.panel?!1:(e.dispatch({effects:E2.of(!1)}),!0)},P2=[{key:`Mod-Shift-m`,run:M2,preventDefault:!0},{key:`F8`,run:e=>{let t=e.state.field(O2,!1);if(!t)return!1;let n=e.state.selection.main,r=S2(t.diagnostics,null,n.to+1);return!r&&(r=S2(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],F2=u.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...j(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:I2,tooltipFilter:I2,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function I2(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function L2(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function R2(e,t,n){let r=n?L2(t.actions):[];return de(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},de(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=S2(e.state.field(O2).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),de(`u`,s.slice(c,c+1)),s.slice(c+1)];return de(`button`,{type:`button`,class:`cm-diagnosticAction`+(n.markClass?` `+n.markClass:``),onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&de(`div`,{class:`cm-diagnosticSource`},t.source))}var z2=class extends k{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return de(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},B2=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=R2(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},V2=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)N2(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=L2(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=S2(this.view.state.field(O2).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=de(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=de(`div`,{class:`cm-panel-lint`},this.list,de(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>N2(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(O2).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(O2),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new B2(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new B2(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=S2(this.view.state.field(O2).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:D2.of(t)})}static open(t){return new e(t)}};function H2(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function U2(e){return H2(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var W2=ce.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:U2(`#d11`)},".cm-lintRange-warning":{backgroundImage:U2(`orange`)},".cm-lintRange-info":{backgroundImage:U2(`#999`)},".cm-lintRange-hint":{backgroundImage:U2(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function G2(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function K2(e){let t=`hint`,n=1;for(let r of e){let e=G2(r.severity);e>n&&(n=e,t=r.severity)}return t}var q2=[O2,ce.decorations.compute([O2],e=>{let{selected:t,panel:n}=e.field(O2);return!t||!n||t.from==t.to?He.none:He.set([k2.range(t.from,t.to)])}),_e(A2,{hideOn:C2}),W2],J2=[Xe(),ze(),Ke(),PJ(),me(),be(),Je(),ne.allowMultipleSelections.of(!0),T(),D(Ce,{fallback:!0}),Be(),Qq(),hJ(),Se(),e(),pe(),C0(),Ne.of([...iJ,...VX,...f2,...$J,...ee,...gJ,...P2])];Ke(),PJ(),be(),D(Ce,{fallback:!0}),Ne.of([...VX,...$J]);function Y2(e,[t,n]){return Math.min(n,Math.max(t,e))}function X2(e){let t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Z2=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Q2=`VisuallyHidden`,$2=P.forwardRef((e,t)=>(0,F.jsx)(pO.span,{...e,ref:t,style:{...Z2,...e.style}}));$2.displayName=Q2;var e4=$2,t4=[` `,`Enter`,`ArrowUp`,`ArrowDown`],n4=[` `,`Enter`],r4=`Select`,[i4,a4,o4]=SN(r4),[s4,$te]=iO(r4,[o4,aj]),c4=aj(),[l4,u4]=s4(r4),[d4,f4]=s4(r4),p4=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=c4(t),[g,_]=P.useState(null),[v,y]=P.useState(null),[b,x]=P.useState(!1),S=wN(l),[C,w]=Nj({prop:r,defaultProp:i??!1,onChange:a,caller:r4}),[T,E]=Nj({prop:o,defaultProp:s,onChange:c,caller:r4}),D=P.useRef(null),O=g?m||!!g.closest(`form`):!0,[k,A]=P.useState(new Set),j=Array.from(k).map(e=>e.props.value).join(`;`);return(0,F.jsx)(xj,{...h,children:(0,F.jsxs)(l4,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:JO(),value:T,onValueChange:E,open:C,onOpenChange:w,dir:S,triggerPointerDownPosRef:D,disabled:f,children:[(0,F.jsx)(i4.Provider,{scope:t,children:(0,F.jsx)(d4,{scope:e.__scopeSelect,onNativeOptionAdd:P.useCallback(e=>{A(t=>new Set(t).add(e))},[]),onNativeOptionRemove:P.useCallback(e=>{A(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?(0,F.jsxs)(c3,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>E(e.target.value),disabled:f,form:m,children:[T===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(k)]},j):null]})})};p4.displayName=r4;var m4=`SelectTrigger`,h4=P.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=c4(n),o=u4(m4,n),s=o.disabled||r,c=nO(t,o.onTriggerChange),l=a4(n),u=P.useRef(`touch`),[d,f,p]=u3(e=>{let t=l().filter(e=>!e.disabled),n=d3(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(Sj,{asChild:!0,...a,children:(0,F.jsx)(pO.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":l3(o.value)?``:void 0,...i,ref:c,onClick:$D(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:$D(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:$D(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&t4.includes(e.key)&&(m(),e.preventDefault())})})})});h4.displayName=m4;var g4=`SelectValue`,_4=P.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=u4(g4,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=nO(t,c.onValueNodeChange);return GO(()=>{l(u)},[l,u]),(0,F.jsx)(pO.span,{...s,ref:d,style:{pointerEvents:`none`},children:l3(c.value)?(0,F.jsx)(F.Fragment,{children:o}):a})});_4.displayName=g4;var v4=`SelectIcon`,y4=P.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,F.jsx)(pO.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});y4.displayName=v4;var b4=`SelectPortal`,x4=e=>(0,F.jsx)(Ej,{asChild:!0,...e});x4.displayName=b4;var S4=`SelectContent`,C4=P.forwardRef((e,t)=>{let n=u4(S4,e.__scopeSelect),[r,i]=P.useState();if(GO(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?pT.createPortal((0,F.jsx)(T4,{scope:e.__scopeSelect,children:(0,F.jsx)(i4.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(k4,{...e,ref:t})});C4.displayName=S4;var w4=10,[T4,E4]=s4(S4),D4=`SelectContentImpl`,O4=oO(`SelectContent.RemoveScroll`),k4=P.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=u4(S4,n),[y,b]=P.useState(null),[x,S]=P.useState(null),C=nO(t,e=>b(e)),[w,T]=P.useState(null),[E,D]=P.useState(null),O=a4(n),[k,A]=P.useState(!1),j=P.useRef(!1);P.useEffect(()=>{if(y)return Wj(y)},[y]),DO();let ee=P.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),M=P.useCallback(()=>ee([w,y]),[ee,w,y]);P.useEffect(()=>{k&&M()},[k,M]);let{onOpenChange:te,triggerPointerDownPosRef:ne}=v;P.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ne.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||te(!1),document.removeEventListener(`pointermove`,t),ne.current=null};return ne.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,te,ne]),P.useEffect(()=>{let e=()=>te(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[te]);let[re,ie]=u3(e=>{let t=O().filter(e=>!e.disabled),n=d3(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ae=P.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(j.current=!0))},[v.value]),oe=P.useCallback(()=>y?.focus(),[y]),se=P.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),ce=r===`popper`?N4:j4,le=ce===N4?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,F.jsx)(T4,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ae,selectedItem:w,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:M,selectedItemText:E,position:r,isPositioned:k,searchRef:re,children:(0,F.jsx)($M,{as:O4,allowPinchZoom:!0,children:(0,F.jsx)(NO,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$D(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(CO,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,F.jsx)(ce,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...le,onPlaced:()=>A(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:$D(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>ee(t)),e.preventDefault()}})})})})})})});k4.displayName=D4;var A4=`SelectItemAlignedPosition`,j4=P.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=u4(S4,n),o=E4(S4,n),[s,c]=P.useState(null),[l,u]=P.useState(null),d=nO(t,e=>u(e)),f=a4(n),p=P.useRef(!1),m=P.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=P.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-w4,d=Y2(a,[w4,Math.max(w4,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-w4,d=Y2(a,[w4,Math.max(w4,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-w4*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-w4,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${w4}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);GO(()=>y(),[y]);let[b,x]=P.useState();return GO(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,F.jsx)(P4,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:P.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,F.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,F.jsx)(pO.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});j4.displayName=A4;var M4=`SelectPopperPosition`,N4=P.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=w4,...a}=e,o=c4(n);return(0,F.jsx)(Cj,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});N4.displayName=M4;var[P4,F4]=s4(S4,{}),I4=`SelectViewport`,L4=P.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=E4(I4,n),o=F4(I4,n),s=nO(t,a.onViewportChange),c=P.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(i4.Slot,{scope:n,children:(0,F.jsx)(pO.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:$D(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-w4*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});L4.displayName=I4;var R4=`SelectGroup`,[z4,B4]=s4(R4),V4=P.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=JO();return(0,F.jsx)(z4,{scope:n,id:i,children:(0,F.jsx)(pO.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});V4.displayName=R4;var H4=`SelectLabel`,U4=P.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=B4(H4,n);return(0,F.jsx)(pO.div,{id:i.id,...r,ref:t})});U4.displayName=H4;var W4=`SelectItem`,[G4,K4]=s4(W4),q4=P.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=u4(W4,n),c=E4(W4,n),l=s.value===r,[u,d]=P.useState(a??``),[f,p]=P.useState(!1),m=nO(t,e=>c.itemRefCallback?.(e,r,i)),h=JO(),g=P.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(G4,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:P.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(i4.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,F.jsx)(pO.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:$D(o.onFocus,()=>p(!0)),onBlur:$D(o.onBlur,()=>p(!1)),onClick:$D(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:$D(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:$D(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:$D(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$D(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:$D(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(n4.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});q4.displayName=W4;var J4=`SelectItemText`,Y4=P.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=u4(J4,n),s=E4(J4,n),c=K4(J4,n),l=f4(J4,n),[u,d]=P.useState(null),f=nO(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=P.useMemo(()=>(0,F.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return GO(()=>(h(m),()=>g(m)),[h,g,m]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(pO.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?pT.createPortal(a.children,o.valueNode):null]})});Y4.displayName=J4;var X4=`SelectItemIndicator`,Z4=P.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return K4(X4,n).isSelected?(0,F.jsx)(pO.span,{"aria-hidden":!0,...r,ref:t}):null});Z4.displayName=X4;var Q4=`SelectScrollUpButton`,$4=P.forwardRef((e,t)=>{let n=E4(Q4,e.__scopeSelect),r=F4(Q4,e.__scopeSelect),[i,a]=P.useState(!1),o=nO(t,r.onScrollButtonChange);return GO(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(n3,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});$4.displayName=Q4;var e3=`SelectScrollDownButton`,t3=P.forwardRef((e,t)=>{let n=E4(e3,e.__scopeSelect),r=F4(e3,e.__scopeSelect),[i,a]=P.useState(!1),o=nO(t,r.onScrollButtonChange);return GO(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(n3,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});t3.displayName=e3;var n3=P.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=E4(`SelectScrollButton`,n),o=P.useRef(null),s=a4(n),c=P.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return P.useEffect(()=>()=>c(),[c]),GO(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,F.jsx)(pO.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:$D(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:$D(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:$D(i.onPointerLeave,()=>{c()})})}),r3=`SelectSeparator`,i3=P.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(pO.div,{"aria-hidden":!0,...r,ref:t})});i3.displayName=r3;var a3=`SelectArrow`,o3=P.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=c4(n),a=u4(a3,n),o=E4(a3,n);return a.open&&o.position===`popper`?(0,F.jsx)(wj,{...i,...r,ref:t}):null});o3.displayName=a3;var s3=`SelectBubbleInput`,c3=P.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=P.useRef(null),a=nO(r,i),o=X2(t);return P.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,F.jsx)(pO.select,{...n,style:{...Z2,...n.style},ref:a,defaultValue:t})});c3.displayName=s3;function l3(e){return e===``||e===void 0}function u3(e){let t=hO(e),n=P.useRef(``),r=P.useRef(0),i=P.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=P.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return P.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function d3(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=f3(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function f3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var p3=p4,m3=h4,h3=_4,g3=y4,_3=x4,v3=C4,y3=L4,b3=q4,x3=Y4,S3=i3,[C3,ene]=iO(`Tooltip`,[aj]),w3=aj(),T3=`TooltipProvider`,E3=700,D3=`tooltip.open`,[O3,k3]=C3(T3),A3=e=>{let{__scopeTooltip:t,delayDuration:n=E3,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=P.useRef(!0),s=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,F.jsx)(O3,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:P.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};A3.displayName=T3;var j3=`Tooltip`,[M3,N3]=C3(j3),P3=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=k3(j3,e.__scopeTooltip),l=w3(t),[u,d]=P.useState(null),f=JO(),p=P.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=P.useRef(!1),[_,v]=Nj({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(D3))):c.onClose(),a?.(e)},caller:j3}),y=P.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=P.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return P.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,F.jsx)(xj,{...l,children:(0,F.jsx)(M3,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:P.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:P.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};P3.displayName=j3;var F3=`TooltipTrigger`,I3=P.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=N3(F3,n),a=k3(F3,n),o=w3(n),s=nO(t,P.useRef(null),i.onTriggerChange),c=P.useRef(!1),l=P.useRef(!1),u=P.useCallback(()=>c.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,F.jsx)(Sj,{asChild:!0,...o,children:(0,F.jsx)(pO.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:$D(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:$D(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:$D(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:$D(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:$D(e.onBlur,i.onClose),onClick:$D(e.onClick,i.onClose)})})});I3.displayName=F3;var L3=`TooltipPortal`,[R3,z3]=C3(L3,{forceMount:void 0}),B3=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=N3(L3,t);return(0,F.jsx)(R3,{scope:t,forceMount:n,children:(0,F.jsx)(Oj,{present:n||a.open,children:(0,F.jsx)(Ej,{asChild:!0,container:i,children:r})})})};B3.displayName=L3;var V3=`TooltipContent`,H3=P.forwardRef((e,t)=>{let n=z3(V3,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=N3(V3,e.__scopeTooltip);return(0,F.jsx)(Oj,{present:r||o.open,children:o.disableHoverableContent?(0,F.jsx)(q3,{side:i,...a,ref:t}):(0,F.jsx)(U3,{side:i,...a,ref:t})})}),U3=P.forwardRef((e,t)=>{let n=N3(V3,e.__scopeTooltip),r=k3(V3,e.__scopeTooltip),i=P.useRef(null),a=nO(t,i),[o,s]=P.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=P.useCallback(()=>{s(null),d(!1)},[d]),p=P.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Z3(r,X3(r,n.getBoundingClientRect())),a=Q3(t.getBoundingClientRect());s(e6([...i,...a])),d(!0)},[d]);return P.useEffect(()=>()=>f(),[f]),P.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),P.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!$3(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,F.jsx)(q3,{...e,ref:a})}),[W3,G3]=C3(j3,{isInside:!1}),K3=lO(`TooltipContent`),q3=P.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=N3(V3,n),l=w3(n),{onClose:u}=c;return P.useEffect(()=>(document.addEventListener(D3,u),()=>document.removeEventListener(D3,u)),[u]),P.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,F.jsx)(CO,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,F.jsxs)(Cj,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,F.jsx)(K3,{children:r}),(0,F.jsx)(W3,{scope:n,isInside:!0,children:(0,F.jsx)(e4,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});H3.displayName=V3;var J3=`TooltipArrow`,Y3=P.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=w3(n);return G3(J3,n).isInside?null:(0,F.jsx)(wj,{...i,...r,ref:t})});Y3.displayName=J3;function X3(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Z3(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Q3(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function $3(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function e6(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),t6(t)}function t6(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var n6=A3,r6=P3,i6=I3,a6=B3,o6=H3,s6=Y3,c6=P.forwardRef(({title:e,children:t},n)=>{let r=Tn(YC);return P.createElement(n6,{delayDuration:100},P.createElement(r6,null,P.createElement(i6,{ref:n,asChild:!0},P.createElement(`span`,{className:J.tooltipTrigger},t)),P.createElement(a6,{container:r?.current},P.createElement(o6,{className:(0,AE.default)(J.tooltipContent),sideOffset:10},e))))}),l6=P.forwardRef(({children:e,className:t,...n},r)=>P.createElement(b3,{...n,ref:r,className:(0,AE.default)(t,J.selectItem)},P.createElement(x3,null,e))),u6=({title:e,placeholder:t,className:n})=>{let[r,i]=En(wC,pw);return P.createElement(c6,{title:e},P.createElement(m3,{"aria-label":t,className:(0,AE.default)(J.selectTrigger,n),"data-toolbar-item":!0,disabled:r},P.createElement(h3,{placeholder:t}),P.createElement(g3,{className:J.selectDropdownArrow},i(`arrow_drop_down`))))},d6=({children:e,className:t=J.selectContainer})=>{let n=Tn(YC);return P.createElement(_3,{container:n?.current},P.createElement(v3,{className:(0,AE.default)(t,`mdxeditor-select-content`),onCloseAutoFocus:e=>{e.preventDefault()},position:`popper`},P.createElement(y3,{"data-editor-dropdown":!0,style:{maxHeight:`var(--radix-select-content-available-height)`}},e)))},f6=e=>P.createElement(p3,{value:e.value||``,onValueChange:e.onChange,disabled:e.disabled},P.createElement(u6,{title:e.triggerTitle,placeholder:e.placeholder}),P.createElement(d6,null,e.items.map((e,t)=>e===`separator`?P.createElement(S3,{key:t}):P.createElement(l6,{key:t,value:e.value},e.label)))),p6=({language:e,nodeKey:t,code:n,focusEmitter:r})=>{let i=Hw(),{parentEditor:a,lexicalNode:o}=bK(),[s,c,l,u,d]=En(wC,y6,b6,pw,_6),f=R1(t,`codeblock`,e,r),{setCode:p}=bK(),m=P.useRef(null),h=P.useRef(null),{value:g,items:_}=P.useMemo(()=>g6(d,e),[d,e]),v=P.useRef(p);return v.current=p,f.current={getCodemirror:()=>m.current},P.useEffect(()=>{let t=h.current;return(async()=>{let r=[...c,J2,l0,Xe(),Ne.of([HX]),ce.lineWrapping,ce.updateListener.of(({state:e})=>{v.current(e.doc.toString())}),ce.domEventHandlers({focus:()=>{a.update(()=>{$l(null)})}})];if(s&&r.push(ne.readOnly.of(!0)),e!==``){let t=d.keyMap[e]??e,n=d.supportMap[t];if(n)r.push(n.extension);else if(l){let t=B1.find(t=>t.name===e||t.alias.includes(e)||t.extensions.includes(e));if(t)try{let e=await t.load();r.push(e.extension)}catch{console.warn(`failed to load language support for`,e)}}}t.innerHTML=``,m.current=new ce({parent:t,state:ne.create({doc:n,extensions:r})}),t.addEventListener(`keydown`,m6)})(),()=>{var e;(e=m.current)==null||e.destroy(),m.current=null,t.removeEventListener(`keydown`,m6)}},[s,e,...c]),P.createElement(`div`,{className:J.codeMirrorWrapper},P.createElement(`div`,{className:J.codeMirrorToolbar},P.createElement(f6,{disabled:s,value:g,onChange:e=>{a.update(()=>{o.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{a.update(()=>{o.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.inlineLanguage`,`Language`),items:_}),P.createElement(`button`,{className:J.iconButton,type:`button`,disabled:s,title:i(`codeblock.delete`,`Delete code block`),onClick:e=>{e.preventDefault(),a.update(()=>{o.remove()})}},u(`delete_small`))),P.createElement(`div`,{ref:h}))};function m6(e){e.stopPropagation()}function h6(e){let t=[],n={},r={};if(Array.isArray(e))for(let i of e){let e=i.alias?.[0]??i.name.toLowerCase(),a=e||`__EMPTY_VALUE__`;if(t.push({value:a,label:i.name}),n[e]=a,i.alias)for(let e of i.alias)n[e]=a;if(i.extensions)for(let e of i.extensions)n[e]=a;n[i.name.toLowerCase()]=a,i.support&&(r[a]=i.support)}else{let r={};for(let[i,a]of Object.entries(e))a in r||(r[a]=i,t.push({value:i||`__EMPTY_VALUE__`,label:a})),n[i]=r[a]||`__EMPTY_VALUE__`}return{items:t,keyMap:n,supportMap:r}}function g6(e,t){let n=e.keyMap[t]??t;return!n||e.items.some(e=>e.value===n)?{value:n,items:e.items}:{value:n,items:[...e.items,{value:n,label:t}]}}var _6=bn(h6({js:`JavaScript`,ts:`TypeScript`,tsx:`TypeScript (React)`,jsx:`JavaScript (React)`,css:`CSS`})),v6=xn(e=>{e.link(e.pipe(v6,On(({language:e,code:t})=>({code:t,language:e,meta:``}))),EK)}),y6=bn([]),b6=bn(!0),x6=Fn({update(e,t){e.pubIn({[_6]:h6(t?.codeBlockLanguages??{}),[y6]:t?.codeMirrorExtensions??[],[b6]:t?.autoLoadLanguageSupport??!0})},init(e,t){let n=h6(t?.codeBlockLanguages??{});e.pubIn({[_6]:n,[y6]:t?.codeMirrorExtensions??[],[DK]:S6(),[b6]:t?.autoLoadLanguageSupport??!0})}});function S6(e){return{match(e,t){return!t},priority:1,Editor:p6}}function C6({url:e,title:t,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:a,showLinkTitleField:o,showAnchorTextField:s}){let{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=XL({values:{url:e,title:t,text:n}}),p=Hw();return P.createElement(`form`,{onSubmit:e=>{l(r)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),i()},onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),i())},className:(0,AE.default)(J.multiFieldForm,J.linkDialogEditForm)},P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`link-url`},p(`createLink.url`,`URL`)),P.createElement(DV,{register:c,initialInputValue:e,inputName:`url`,suggestions:a,setValue:d,control:u,placeholder:p(`createLink.urlPlaceholder`,`Select or paste an URL`),autofocus:!0})),s?P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`link-text`,title:p(`createLink.textTooltip`,`The text to be displayed for the link`)},p(`createLink.text`,`Anchor text`)),P.createElement(`input`,{id:`link-text`,className:J.textInput,size:40,...c(`text`)})):null,o?P.createElement(`div`,{className:J.formField},P.createElement(`label`,{htmlFor:`link-title`,title:p(`createLink.titleTooltip`,`The link's title attribute, shown on hover`)},p(`createLink.title`,`Link title`)),P.createElement(`input`,{id:`link-title`,className:J.textInput,size:40,...c(`title`)})):null,P.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},P.createElement(`button`,{type:`submit`,title:p(`createLink.saveTooltip`,`Set URL`),"aria-label":p(`createLink.saveTooltip`,`Set URL`),className:(0,AE.default)(J.primaryButton)},p(`dialogControls.save`,`Save`)),P.createElement(`button`,{type:`reset`,title:p(`createLink.cancelTooltip`,`Cancel change`),"aria-label":p(`createLink.cancelTooltip`,`Cancel change`),className:(0,AE.default)(J.secondaryButton)},p(`dialogControls.cancel`,`Cancel`))))}var w6=()=>{let[e,t,n,r,i,a,o]=En(YC,xC,pw,O6,P6,F6,R6),s=Dn(D6),c=Dn(k6),l=Dn(A6),u=Dn(j6),d=Dn(M6);P.useEffect(()=>{let e=()=>{t?.getEditorState().read(()=>{s(!0)})};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e)}},[t,s]);let[f,p]=P.useState(!1),m=Hw();if(r.type===`inactive`)return null;let h=r.rectangle,g=r.type===`preview`&&r.url.startsWith(`http`);return P.createElement(_N,{open:!0},P.createElement(vN,{"data-visible":r.type===`edit`,className:J.linkDialogAnchor,style:{top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`,height:`${h.height}px`}}),P.createElement(yN,{container:e?.current},P.createElement(bN,{className:(0,AE.default)(J.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:e=>{e.preventDefault()},key:r.linkNodeKey},r.type===`edit`&&P.createElement(C6,{url:r.url,title:r.title,text:r.text,onSubmit:c,onCancel:l.bind(null),linkAutocompleteSuggestions:i,showLinkTitleField:o,showAnchorTextField:r.withAnchorText}),r.type===`preview`&&P.createElement(P.Fragment,null,P.createElement(`a`,{className:J.linkDialogPreviewAnchor,href:r.url,...g?{target:`_blank`,rel:`noreferrer`}:{},onClick:e=>{a!==null&&(e.preventDefault(),a(r.url))},title:g?m(`linkPreview.open`,`Open {{url}} in new window`,{url:r.url}):r.url},P.createElement(`span`,null,r.url),g&&n(`open_in_new`)),P.createElement(T6,{onClick:()=>{u()},title:m(`linkPreview.edit`,`Edit link URL`),"aria-label":m(`linkPreview.edit`,`Edit link URL`)},n(`edit`)),P.createElement(n6,null,P.createElement(r6,{open:f},P.createElement(i6,{asChild:!0},P.createElement(T6,{title:m(`linkPreview.copyToClipboard`,`Copy to clipboard`),"aria-label":m(`linkPreview.copyToClipboard`,`Copy to clipboard`),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{p(!0),setTimeout(()=>{p(!1)},1e3)})}},n(f?`check`:`content_copy`))),P.createElement(a6,{container:e?.current},P.createElement(o6,{className:(0,AE.default)(J.tooltipContent),sideOffset:5},m(`linkPreview.copied`,`Copied!`),P.createElement(s6,null))))),P.createElement(T6,{title:m(`linkPreview.remove`,`Remove link`),"aria-label":m(`linkPreview.remove`,`Remove link`),onClick:()=>{d()}},n(`link_off`))),P.createElement(xN,{className:J.popoverArrow}))))},T6=P.forwardRef(({className:e,...t},n)=>P.createElement(`button`,{className:(0,AE.default)(J.actionButton,e),ref:n,...t}));function E6(e){if(!e)return null;let t=wE(e);if(t===null)return null;let n=t.getParent();return yT(n)?n:yT(t)?t:null}var D6=xn(),O6=bn({type:`inactive`},e=>{e.pub(_w,t=>t.registerCommand(Ca,()=>e.getValue(O6).type===`preview`?(e.pub(O6,{type:`inactive`}),!0):!1,1)),e.sub(e.pipe(Fw),t=>{t!==`rich-text`&&e.pub(O6,{type:`inactive`})}),e.pub(_w,t=>t.registerCommand(ma,t=>t.key===`k`&&(BE?t.metaKey:t.ctrlKey)&&!e.getValue(wC)&&z(B())?(e.pub(N6),t.stopPropagation(),t.preventDefault(),!0):!1,3)),e.sub(e.pipe(j6,kn(O6,xC)),([,t,n])=>{if(t.type===`preview`)setTimeout(()=>{n?.getEditorState().read(()=>{let n=Ul(t.linkNodeKey),r=yT(n)?n.getTextContent().length>0&&n.getChildrenSize()<=1:!1,i=r&&n?n.getTextContent():``;e.pub(O6,{type:`edit`,initialUrl:t.url,url:t.url,title:t.title,text:i,withAnchorText:r,linkNodeKey:t.linkNodeKey,rectangle:t.rectangle})})});else throw Error(`Cannot switch to edit mode when not in preview mode`)}),e.sub(e.pipe(k6,kn(xC,O6,MC)),([t,n,r,i])=>{let a=t.text?.trim()??``,o=t.url?.trim()??``,s=t.title?.trim()??``;if(o!==``){if(i?.isCollapsed()){let e=a||s||o;n?.update(()=>{let t=E6(i);if(!t){let t=vT(o,{title:s});t.append(us(e)),Qs([t]),t.select()}else if(ST(t)){let e=vT(o,{title:s});e.append(us(a)),t.replace(e),e.select()}else t.setURL(o),t.setTitle(s),L6(t.getFirstChild(),a)},{discrete:!0})}else n?.update(()=>{L6(i?.anchor.getNode(),a)}),n?.dispatchCommand(CT,{url:o,title:s});e.pub(O6,{type:`preview`,linkNodeKey:r.linkNodeKey,rectangle:r.rectangle,title:s,url:o})}else r.type===`edit`&&r.initialUrl!==``&&n?.dispatchCommand(CT,null),e.pub(O6,{type:`inactive`})}),e.link(e.pipe(A6,kn(O6,xC),On(([,e,t])=>{if(e.type===`edit`)return t?.focus(),e.initialUrl===``?{type:`inactive`}:{type:`preview`,url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw Error(`Cannot cancel edit when not in edit mode`)})),O6),e.link(e.pipe(e.combine(MC,D6),kn(xC,O6,wC),On(([[e],t,n,r])=>{if(z(e)&&t&&!r){let n=E6(e);if(!e.isCollapsed())return{type:`inactive`};if(n){let e=OE(t);return e?{type:`preview`,url:n.getURL(),linkNodeKey:n.getKey(),title:n.getTitle(),rectangle:e}:{type:`inactive`}}else return{type:`inactive`}}else return{type:`inactive`}})),O6)}),k6=xn(),A6=Sn();Sn();var j6=Sn(),M6=Sn(e=>{e.sub(e.pipe(M6,kn(xC)),([,e])=>{e?.dispatchCommand(CT,null)})}),N6=Sn(e=>{e.sub(e.pipe(N6,kn(MC,xC),jn(([,e])=>z(e))),([,t,n])=>{n?.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{let r=E6(t),i=OE(n),a=r?.getURL()??``,o=r?.getURL()??``,s=r?.getTitle()??``,c=r?.getKey()??``,l=r?r.getTextContent().length>0&&r.getChildrenSize()<=1:!!t?.isCollapsed(),u=l&&r?r.getTextContent():``;e.pub(O6,{type:`edit`,initialUrl:a,url:o,title:s,text:u,withAnchorText:l,linkNodeKey:c,rectangle:i})})})})})}),P6=bn([]),F6=bn(null),I6=bn(null,e=>{e.pub(_w,t=>{function n(n){let[r,i]=e.getValues([wC,I6]);!r||i===null||t.update(()=>{let e=ql(n.target);if(e!==null){let t=Dp(e,e=>e instanceof _T);t!==null&&i(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener(`click`,n),t&&t.removeEventListener(`click`,n)})})});function L6(e,t){R(e)&&t&&(e.setTextContent(t),e.selectStart())}var R6=bn(!0),z6=Fn({init(e,t){e.pub(bw,t?.LinkDialog??w6),e.pub(F6,t?.onClickLinkCallback??null),e.pub(I6,t?.onReadOnlyClickLinkCallback??null),e.pub(R6,t?.showLinkTitleField??!0)},update(e,t={}){e.pub(P6,t.linkAutocompleteSuggestions??[])}});function B6(e,t){return P.forwardRef((n,r)=>{let i=(0,AE.default)(t.className,n.className);return P.createElement(e,{...t,...n,className:i,ref:r})})}function V6(e){return({title:t,children:n,...r})=>P.createElement(e,{"aria-label":t,...r},P.createElement(c6,{title:t},n))}var H6=({readOnly:e,children:t,className:n})=>P.createElement(DP,{className:(0,AE.default)(`mdxeditor-toolbar`,J.toolbarRoot,{[J.readOnlyToolbarRoot]:e},n),...e?{tabIndex:-1}:{}},t),U6=V6(B6(kP,{className:J.toolbarButton,"data-toolbar-item":!0})),W6=B6(jP,{className:J.toolbarToggleItem,"data-toolbar-item":!0});B6(AP,{type:`single`,className:J.toolbarToggleSingleGroup});var G6=P.forwardRef(({on:e,title:t,children:n,disabled:r,...i},a)=>P.createElement(AP,{type:`single`,className:J.toolbarToggleSingleGroup,...i,value:e?`on`:`off`,ref:a},P.createElement(W6,{"aria-label":t,value:`on`,disabled:r},P.createElement(c6,{title:t},n)))),K6=({items:e})=>P.createElement(`div`,{className:J.toolbarGroupOfGroups},e.map((e,t)=>P.createElement(G6,{key:t,title:e.title,on:e.active,onValueChange:t=>{e.onChange(t===`on`)},disabled:e.disabled},e.contents))),q6=({value:e,onChange:t,className:n,ggClassName:r,items:i,disabled:a})=>{let o=Hw();return P.createElement(`div`,{className:(0,AE.default)(J.toolbarGroupOfGroups,r)},P.createElement(AP,{"aria-label":o(`toolbar.toggleGroup`,`toggle group`),type:`single`,className:(0,AE.default)(J.toolbarToggleSingleGroup,n),onValueChange:t,value:e||``,disabled:a,onFocus:e=>{e.preventDefault()}},i.map((e,t)=>P.createElement(W6,{key:t,"aria-label":e.title,value:e.value},P.createElement(c6,{title:e.title},e.contents)))))};function J6(e){return Object.hasOwn(e,`when`)}var Y6=({options:e})=>{let t=Tn(dw),n=P.useMemo(()=>{let n=e.find(e=>{if(J6(e)){if(e.when(t))return!0}else return!0});return n?J6(n)?n.contents():n.fallback():null},[e,t]);return P.createElement(`div`,{style:{display:`flex`}},n)},X6=OP,Z6=bn(()=>null),Q6=bn(``),$6=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",e8=Fn({init(e,t){let n=t?.toolbarPosition===`bottom`?ww:Sw;e.pubIn({[Z6]:t?.toolbarContents??$6,[Q6]:t?.toolbarClassName??``,[n]:()=>{let[e,t,n]=En(Z6,wC,Q6);return P.createElement(H6,{className:n,readOnly:t},e())}})},update(e,t){e.pub(Z6,t?.toolbarContents??$6),e.pub(Q6,t?.toolbarClassName??``)}}),t8=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(t,n=t){return new e(this.fromA+t,this.toA+t,this.fromB+n,this.toB+n)}};function n8(e,t,n,r,i,a){if(e==r)return[];let o=f8(e,t,n,r,i,a),s=p8(e,t+o,n,r,i+o,a);t+=o,n-=s,i+=o,a-=s;let c=n-t,l=a-i;if(!c||!l)return[new t8(t,n,i,a)];if(c>l){let o=e.slice(t,n).indexOf(r.slice(i,a));if(o>-1)return[new t8(t,t+o,i,i),new t8(t+o+l,n,a,a)]}else if(l>c){let o=r.slice(i,a).indexOf(e.slice(t,n));if(o>-1)return[new t8(t,t,i,i+o),new t8(n,n,i+o+c,a)]}if(c==1||l==1)return[new t8(t,n,i,a)];let u=h8(e,t,n,r,i,a);if(u){let[o,s,c]=u;return n8(e,t,o,r,i,s).concat(n8(e,o+c,n,r,s+c,a))}return o8(e,t,n,r,i,a)}var r8=1e9,i8=0,a8=!1;function o8(e,t,n,r,i,a){let o=n-t,s=a-i;if(r8<1e9&&Math.min(o,s)>r8*16||i8>0&&Date.now()>i8)return Math.min(o,s)>r8*64?[new t8(t,n,i,a)]:g8(e,t,n,r,i,a);let c=Math.ceil((o+s)/2);c8.reset(c),l8.reset(c);let l=(n,a)=>e.charCodeAt(t+n)==r.charCodeAt(i+a),u=(t,i)=>e.charCodeAt(n-t-1)==r.charCodeAt(a-i-1),d=(o-s)%2==0?null:l8,f=d?null:c8;for(let p=0;p<c;p++){if(p>r8||i8>0&&!(p&63)&&Date.now()>i8)return g8(e,t,n,r,i,a);let m=c8.advance(p,o,s,c,d,!1,l)||l8.advance(p,o,s,c,f,!0,u);if(m)return u8(e,t,n,t+m[0],r,i,a,i+m[1])}return[new t8(t,n,i,a)]}var s8=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let e=0;e<this.len;e++)this.vec[e]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,t,n,r,i,a,o){for(let s=-e+this.start;s<=e-this.end;s+=2){let c=r+s,l=s==-e||s!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,u=l-s;for(;l<t&&u<n&&o(l,u);)l++,u++;if(this.vec[c]=l,l>t)this.end+=2;else if(u>n)this.start+=2;else if(i){let e=r+(t-n)-s;if(e>=0&&e<this.len&&i.vec[e]!=-1)if(a){let n=i.vec[e];if(n>=t-l)return[n,r+n-e]}else{let n=t-i.vec[e];if(l>=n)return[l,u]}}}return null}},c8=new s8,l8=new s8;function u8(e,t,n,r,i,a,o,s){let c=!1;return!j8(e,r)&&++r==n&&(c=!0),!j8(i,s)&&++s==o&&(c=!0),c?[new t8(t,n,a,o)]:n8(e,t,r,i,a,s).concat(n8(e,r,n,i,s,o))}function d8(e,t){let n=1,r=Math.min(e,t);for(;n<r;)n<<=1;return n}function f8(e,t,n,r,i,a){if(t==n||t==a||e.charCodeAt(t)!=r.charCodeAt(i))return 0;let o=d8(n-t,a-i);for(let s=t,c=i;;){let i=s+o,l=c+o;if(i>n||l>a||e.slice(s,i)!=r.slice(c,l)){if(o==1)return s-t-+!j8(e,s);o>>=1}else if(i==n||l==a)return i-t;else s=i,c=l}}function p8(e,t,n,r,i,a){if(t==n||i==a||e.charCodeAt(n-1)!=r.charCodeAt(a-1))return 0;let o=d8(n-t,a-i);for(let s=n,c=a;;){let a=s-o,l=c-o;if(a<t||l<i||e.slice(a,s)!=r.slice(l,c)){if(o==1)return n-s-+!j8(e,s);o>>=1}else if(a==t||l==i)return n-a;else s=a,c=l}}function m8(e,t,n,r,i,a,o,s){let c=r.slice(i,a),l=null;for(;;){if(l||o<s)return l;for(let s=t+o;;){j8(e,s)||s++;let u=s+o;if(j8(e,u)||(u+=u==s+1?1:-1),u>=n)break;let d=e.slice(s,u),f=-1;for(;(f=c.indexOf(d,f+1))!=-1;){let o=f8(e,u,n,r,i+f+d.length,a),c=p8(e,t,s,r,i,i+f),p=d.length+o+c;(!l||l[2]<p)&&(l=[s-c,i+f-c,p])}s=u}if(s<0)return l;o>>=1}}function h8(e,t,n,r,i,a){let o=n-t,s=a-i;if(o<s){let o=h8(r,i,a,e,t,n);return o&&[o[1],o[0],o[2]]}return o<4||s*2<o?null:m8(e,t,n,r,i,a,Math.floor(o/4),-1)}function g8(e,t,n,r,i,a){a8=!0;let o=n-t,s=a-i,c;if(o<s){let s=m8(r,i,a,e,t,n,Math.floor(o/6),50);c=s&&[s[1],s[0],s[2]]}else c=m8(e,t,n,r,i,a,Math.floor(s/6),50);if(!c)return[new t8(t,n,i,a)];let[l,u,d]=c;return n8(e,t,l,r,i,u).concat(n8(e,l+d,n,r,u+d,a))}function _8(e,t){for(let n=1;n<e.length;n++){let r=e[n-1],i=e[n];r.toA>i.fromA-t&&r.toB>i.fromB-t&&(e[n-1]=new t8(r.fromA,i.toA,r.fromB,i.toB),e.splice(n--,1))}}function v8(e,t,n){for(;;){_8(n,1);let r=!1;for(let i=0;i<n.length;i++){let a=n[i],o,s;(o=f8(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new t8(a.fromA+o,a.toA,a.fromB+o,a.toB)),(s=p8(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new t8(a.fromA,a.toA-s,a.fromB,a.toB-s));let c=a.toA-a.fromA,l=a.toB-a.fromB;if(c&&l)continue;let u=a.fromA-(i?n[i-1].toA:0),d=(i<n.length-1?n[i+1].fromA:e.length)-a.toA;if(!u||!d)continue;let f=c?e.slice(a.fromA,a.toA):t.slice(a.fromB,a.toB);u<=f.length&&e.slice(a.fromA-u,a.fromA)==f.slice(f.length-u)?(n[i]=new t8(a.fromA-u,a.toA-u,a.fromB-u,a.toB-u),r=!0):d<=f.length&&e.slice(a.toA,a.toA+d)==f.slice(0,d)&&(n[i]=new t8(a.fromA+d,a.toA+d,a.fromB+d,a.toB+d),r=!0)}if(!r)break}return n}function y8(e,t,n){for(let r=0,i=0;i<e.length;i++){let a=e[i],o=a.toA-a.fromA,s=a.toB-a.fromB;if(o&&s||o>3||s>3){let c=i==e.length-1?t.length:e[i+1].fromA,l=a.fromA-r,u=c-a.toA,d=E8(t,a.fromA,l),f=T8(t,a.toA,u),p=a.fromA-d,m=f-a.toA;if((!o||!s)&&p&&m){let l=Math.max(o,s),[u,h,g]=o?[t,a.fromA,a.toA]:[n,a.fromB,a.toB];l>p&&t.slice(d,a.fromA)==u.slice(g-p,g)?(a=e[i]=new t8(d,d+o,a.fromB-p,a.toB-p),d=a.fromA,f=T8(t,a.toA,c-a.toA)):l>m&&t.slice(a.toA,f)==u.slice(h,h+m)&&(a=e[i]=new t8(f-o,f,a.fromB+m,a.toB+m),f=a.toA,d=E8(t,a.fromA,a.fromA-r)),p=a.fromA-d,m=f-a.toA}if(p||m)a=e[i]=new t8(a.fromA-p,a.toA+m,a.fromB-p,a.toB+m);else if(!o){let t=O8(n,a.fromB,a.toB),r,o=t<0?-1:D8(n,a.toB,a.fromB);t>-1&&(r=t-a.fromB)<=u&&n.slice(a.fromB,t)==n.slice(a.toB,a.toB+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toB-o)<=l&&n.slice(a.fromB-r,a.fromB)==n.slice(o,a.toB)&&(a=e[i]=a.offset(-r))}else if(!s){let n=O8(t,a.fromA,a.toA),r,o=n<0?-1:D8(t,a.toA,a.fromA);n>-1&&(r=n-a.fromA)<=u&&t.slice(a.fromA,n)==t.slice(a.toA,a.toA+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toA-o)<=l&&t.slice(a.fromA-r,a.fromA)==t.slice(o,a.toA)&&(a=e[i]=a.offset(-r))}}r=a.toA}return _8(e,3),e}var b8;try{b8=RegExp(`[\\p{Alphabetic}\\p{Number}]`,`u`)}catch{}function x8(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function S8(e,t){if(t==e.length)return 0;let n=e.charCodeAt(t);return n<192?+!!x8(n):b8?!k8(n)||t==e.length-1?+!!b8.test(String.fromCharCode(n)):b8.test(e.slice(t,t+2))?2:0:0}function C8(e,t){if(!t)return 0;let n=e.charCodeAt(t-1);return n<192?+!!x8(n):b8?!A8(n)||t==1?+!!b8.test(String.fromCharCode(n)):b8.test(e.slice(t-2,t))?2:0:0}var w8=8;function T8(e,t,n){if(t==e.length||!C8(e,t))return t;for(let r=t,i=t+n,a=0;a<w8;a++){let t=S8(e,r);if(!t||r+t>i)return r;r+=t}return t}function E8(e,t,n){if(!t||!S8(e,t))return t;for(let r=t,i=t-n,a=0;a<w8;a++){let t=C8(e,r);if(!t||r-t<i)return r;r-=t}return t}function D8(e,t,n){for(;t!=n;t--)if(e.charCodeAt(t-1)==10)return t;return-1}function O8(e,t,n){for(;t!=n;t++)if(e.charCodeAt(t)==10)return t;return-1}var k8=e=>e>=55296&&e<=56319,A8=e=>e>=56320&&e<=57343;function j8(e,t){return!t||t==e.length||!k8(e.charCodeAt(t-1))||!A8(e.charCodeAt(t))}function M8(e,t,n){let r=n?.override;return r?r(e,t):(r8=(n?.scanLimit??1e9)>>1,i8=n?.timeout?Date.now()+n.timeout:0,a8=!1,v8(e,t,n8(e,0,e.length,t,0,t.length)))}function N8(){return!a8}function P8(e,t,n){return y8(M8(e,t,n),e,t)}var F8=u.define({combine:e=>e[0]}),I8=S.define(),L8=u.define(),R8=w.define({create(e){return null},update(e,t){for(let n of t.effects)n.is(I8)&&(e=n.value);for(let n of t.state.facet(L8))e=n(e,t);return e}}),z8=class e{constructor(e,t,n,r,i,a=!0){this.changes=e,this.fromA=t,this.toA=n,this.fromB=r,this.toB=i,this.precise=a}offset(t,n){return t||n?new e(this.changes,this.fromA+t,this.toA+t,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,n){return H8(P8(e.toString(),t.toString(),n),e,t,0,0,N8())}static updateA(e,t,n,r,i){return K8(G8(e,r,!0,n.length),e,t,n,i)}static updateB(e,t,n,r,i){return K8(G8(e,r,!1,t.length),e,t,n,i)}};function B8(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.to==e&&a.to==t&&e<n.length&&t<r.length?[e+1,t+1]:[i.from,a.from]}function V8(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.from==e&&a.from==t?[e,t]:[i.to+1,a.to+1]}function H8(e,t,n,r,i,a){let o=[];for(let s=0;s<e.length;s++){let c=e[s],[l,u]=B8(c.fromA+r,c.fromB+i,t,n),[d,f]=V8(c.toA+r,c.toB+i,t,n),p=[c.offset(-l+r,-u+i)];for(;s<e.length-1;){let a=e[s+1],[o,c]=B8(a.fromA+r,a.fromB+i,t,n);if(o>d+1&&c>f+1)break;p.push(a.offset(-l+r,-u+i)),[d,f]=V8(a.toA+r,a.toB+i,t,n),s++}o.push(new z8(p,l,Math.max(l,d),u,Math.max(u,f),a))}return o}var U8=1e3;function W8(e,t,n,r){let i=0,a=e.length;for(;;){if(i==a){let r=0,a=0;i&&({toA:r,toB:a}=e[i-1]);let o=t-(n?r:a);return[r+o,a+o]}let o=i+a>>1,s=e[o],[c,l]=n?[s.fromA,s.toA]:[s.fromB,s.toB];if(c>t)a=o;else if(l<=t)i=o+1;else return r?[s.fromA,s.fromB]:[s.toA,s.toB]}}function G8(e,t,n,r){let i=[];return t.iterChangedRanges((a,o,s,c)=>{let l=0,u=n?t.length:r,d=0,f=n?r:t.length;a>U8&&([l,d]=W8(e,a-U8,n,!0)),o<t.length-U8&&([u,f]=W8(e,o+U8,n,!1));let p=c-s-(o-a),m,[h,g]=n?[p,0]:[0,p];i.length&&(m=i[i.length-1]).toA>=l?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:u,toB:f,diffA:m.diffA+h,diffB:m.diffB+g}:i.push({fromA:l,toA:u,fromB:d,toB:f,diffA:h,diffB:g})}),i}function K8(e,t,n,r,i){if(!e.length)return t;let a=[];for(let o=0,s=0,c=0,l=0;;o++){let u=o==e.length?null:e[o],d=u?u.fromA+s:n.length,f=u?u.fromB+c:r.length;for(;l<t.length;){let e=t[l];if(u&&(e.toA+s>d||e.toB+c>f))break;a.push(e.offset(s,c)),l++}if(!u)break;let p=u.toA+s+u.diffA,m=u.toB+c+u.diffB,h=P8(n.sliceString(d,p),r.sliceString(f,m),i);for(let e of H8(h,n,r,d,f,N8()))a.push(e);for(s+=u.diffA,c+=u.diffB;l<t.length;){let e=t[l];if(e.fromA+s>p&&e.fromB+c>m)break;l++}}return a}var q8={scanLimit:500},J8=le.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=i5(e))}update(e){(e.docChanged||e.viewportChanged||X8(e.startState,e.state)||Z8(e.startState,e.state))&&({deco:this.deco,gutter:this.gutter}=i5(e.view))}},{decorations:e=>e.deco}),Y8=E.low(Oe({class:`cm-changeGutter`,markers:e=>e.plugin(J8)?.gutter||Me.empty}));function X8(e,t){return e.field(R8,!1)!=t.field(R8,!1)}function Z8(e,t){return e.facet(F8)!=t.facet(F8)}var Q8=He.line({class:`cm-changedLine`}),$8=He.mark({class:`cm-changedText`}),e5=He.mark({tagName:`ins`,class:`cm-insertedLine`}),t5=He.mark({tagName:`del`,class:`cm-deletedLine`}),n5=new class extends se{constructor(){super(...arguments),this.elementClass=`cm-changedLineGutter`}};function r5(e,t,n,r,i,a){let o=n?e.fromA:e.fromB,s=n?e.toA:e.toB,c=0;if(o!=s){i.add(o,o,Q8),i.add(o,s,n?t5:e5),a&&a.add(o,o,n5);for(let l=t.iterRange(o,s-1),u=o;!l.next().done;){if(l.lineBreak){u++,i.add(u,u,Q8),a&&a.add(u,u,n5);continue}let t=u+l.value.length;if(r)for(;c<e.changes.length;){let r=e.changes[c],a=o+(n?r.fromA:r.fromB),s=o+(n?r.toA:r.toB),l=Math.max(u,a),d=Math.min(t,s);if(l<d&&i.add(l,d,$8),s<t)c++;else break}u=t}}}function i5(e){let t=e.state.field(R8),{side:r,highlightChanges:i,markGutter:a,overrideChunk:o}=e.state.facet(F8),s=r==`a`,c=new n,l=a?new n:null,{from:u,to:d}=e.viewport;for(let n of t){if((s?n.fromA:n.fromB)>=d)break;(s?n.toA:n.toB)>u&&(!o||!o(e.state,n,c,l))&&r5(n,e.state.doc,s,i,c,l)}return{deco:c.finish(),gutter:l&&l.finish()}}var a5=class extends k{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement(`div`);return e.className=`cm-mergeSpacer`,e.style.height=this.height+`px`,e}updateDOM(e){return e.style.height=this.height+`px`,!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},o5=S.define({map:(e,t)=>e.map(t)}),s5=w.define({create:()=>He.none,update:(e,t)=>{for(let e of t.effects)if(e.is(o5))return e.value;return e.map(t.changes)},provide:e=>ce.decorations.from(e)}),c5=.01;function l5(e,t){if(e.size!=t.size)return!1;let n=e.iter(),r=t.iter();for(;n.value;){if(n.from!=r.from||Math.abs(n.value.spec.widget.height-r.value.spec.widget.height)>1)return!1;n.next(),r.next()}return!0}function u5(e,t,r){let i=new n,a=new n,o=e.state.field(s5).iter(),s=t.state.field(s5).iter(),c=0,l=0,u=0,d=0,f=e.viewport,p=t.viewport;for(let n=0;;n++){let m=n<r.length?r[n]:null,h=m?m.fromA:e.state.doc.length,g=m?m.fromB:t.state.doc.length;if(c<h){let n=e.lineBlockAt(c).top+u-(t.lineBlockAt(l).top+d);n<-c5?(u-=n,i.add(c,c,He.widget({widget:new a5(-n),block:!0,side:-1}))):n>c5&&(d+=n,a.add(l,l,He.widget({widget:new a5(n),block:!0,side:-1})))}if(h>c+1e3&&c<f.from&&h>f.from&&l<p.from&&g>p.from){let e=Math.min(f.from-c,p.from-l);c+=e,l+=e,n--}else if(m)c=m.toA,l=m.toB;else break;for(;o.value&&o.from<c;)u-=o.value.spec.widget.height,o.next();for(;s.value&&s.from<l;)d-=s.value.spec.widget.height,s.next()}for(;o.value;)u-=o.value.spec.widget.height,o.next();for(;s.value;)d-=s.value.spec.widget.height,s.next();let m=e.contentHeight+u-(t.contentHeight+d);m<c5?i.add(e.state.doc.length,e.state.doc.length,He.widget({widget:new a5(-m),block:!0,side:1})):m>c5&&a.add(t.state.doc.length,t.state.doc.length,He.widget({widget:new a5(m),block:!0,side:1}));let h=i.finish(),g=a.finish();l5(h,e.state.field(s5))||e.dispatch({effects:o5.of(h)}),l5(g,t.state.field(s5))||t.dispatch({effects:o5.of(g)})}var d5=S.define({map:(e,t)=>t.mapPos(e)}),f5=class extends k{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement(`div`);return t.className=`cm-collapsedLines`,t.textContent=e.state.phrase(`$ unchanged lines`,this.lines),t.addEventListener(`click`,t=>{let n=e.posAtDOM(t.target);e.dispatch({effects:d5.of(n)});let{side:r,sibling:i}=e.state.facet(F8);i&&i().dispatch({effects:d5.of(p5(n,e.state.field(R8),r==`a`))})}),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return`collapsed-unchanged-code`}};function p5(e,t,n){let r=0,i=0;for(let a=0;;a++){let o=a<t.length?t[a]:null;if(!o||(n?o.fromA:o.fromB)>=e)return i+(e-r);[r,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}var m5=w.define({create(e){return He.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(d5)&&(e=e.update({filter:e=>e!=n.value}));return e},provide:e=>ce.decorations.from(e)});function h5({margin:e=3,minSize:t=4}){return m5.init(n=>g5(n,e,t))}function g5(e,t,r){let i=new n,a=e.facet(F8).side==`a`,o=e.field(R8),s=1;for(let n=0;;n++){let c=n<o.length?o[n]:null,l=n?s+t:1,u=c?e.doc.lineAt(a?c.fromA:c.fromB).number-1-t:e.doc.lines,d=u-l+1;if(d>=r&&i.add(e.doc.line(l).from,e.doc.line(u).to,He.replace({widget:new f5(d),block:!0})),!c)break;s=e.doc.lineAt(Math.min(e.doc.length,a?c.toA:c.toB)).number}return i.finish()}var _5=ce.styleModule.of(new Qe({".cm-mergeView":{overflowY:`auto`},".cm-mergeViewEditors":{display:`flex`,alignItems:`stretch`},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:`hidden`},".cm-merge-revert":{width:`1.6em`,flexGrow:0,flexShrink:0,position:`relative`},".cm-merge-revert button":{position:`absolute`,display:`block`,width:`100%`,boxSizing:`border-box`,textAlign:`center`,background:`none`,border:`none`,font:`inherit`,cursor:`pointer`}})),v5=ce.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:`auto !important`,overflowY:`visible !important`},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:`rgba(160, 128, 100, .08)`},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:`rgba(100, 160, 128, .08)`},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat`},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat`},"&light.cm-merge-b .cm-changedText":{background:`linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat`},"&dark.cm-merge-b .cm-changedText":{background:`linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat`},"&.cm-merge-b .cm-deletedText":{background:`#ff000033`},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:`none`},".cm-deletedChunk":{paddingLeft:`6px`,"& .cm-chunkButtons":{position:`absolute`,insetInlineEnd:`5px`},"& button":{border:`none`,cursor:`pointer`,color:`white`,margin:`0 2px`,borderRadius:`3px`,"&[name=accept]":{background:`#2a2`},"&[name=reject]":{background:`#d43`}}},".cm-collapsedLines":{padding:`5px 5px 5px 10px`,cursor:`pointer`,"&:before":{content:`"⦚"`,marginInlineEnd:`7px`},"&:after":{content:`"⦚"`,marginInlineStart:`7px`}},"&light .cm-collapsedLines":{color:`#444`,background:`linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)`},"&dark .cm-collapsedLines":{color:`#ddd`,background:`linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)`},".cm-changeGutter":{width:`3px`,paddingLeft:`1px`},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:`#e43`},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:`#fa9`},"&light.cm-merge-b .cm-changedLineGutter":{background:`#2b2`},"&dark.cm-merge-b .cm-changedLineGutter":{background:`#8f8`},".cm-inlineChangedLineGutter":{background:`#75d`}}),y5=new o,b5=new o,x5=class{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig||q8;let t=[E.low(J8),v5,_5,s5,ce.updateListener.of(e=>{this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some(e=>e.effects.some(e=>e.is(o5)))&&this.measure()})],n=[F8.of({side:`a`,sibling:()=>this.b,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&n.push(Y8);let r=ne.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],ce.editorAttributes.of({class:`cm-merge-a`}),b5.of(n),t]}),i=[F8.of({side:`b`,sibling:()=>this.a,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&i.push(Y8);let a=ne.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],ce.editorAttributes.of({class:`cm-merge-b`}),b5.of(i),t]});this.chunks=z8.build(r.doc,a.doc,this.diffConf);let o=[R8.init(()=>this.chunks),y5.of(e.collapseUnchanged?h5(e.collapseUnchanged):[])];r=r.update({effects:S.appendConfig.of(o)}).state,a=a.update({effects:S.appendConfig.of(o)}).state,this.dom=document.createElement(`div`),this.dom.className=`cm-mergeView`,this.editorDOM=this.dom.appendChild(document.createElement(`div`)),this.editorDOM.className=`cm-mergeViewEditors`;let s=e.orientation||`a-b`,c=document.createElement(`div`);c.className=`cm-mergeViewEditor`;let l=document.createElement(`div`);l.className=`cm-mergeViewEditor`,this.editorDOM.appendChild(s==`a-b`?c:l),this.editorDOM.appendChild(s==`a-b`?l:c),this.a=new ce({state:r,parent:c,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)}),this.b=new ce({state:a,parent:l,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)}),this.setupRevertControls(!!e.revertControls,e.revertControls==`b-to-a`,e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some(e=>e.docChanged)){let n=e[e.length-1],r=e.reduce((e,t)=>e.compose(t.changes),nt.empty(e[0].startState.doc.length));this.chunks=t==this.a?z8.updateA(this.chunks,n.newDoc,this.b.state.doc,r,this.diffConf):z8.updateB(this.chunks,this.a.state.doc,n.newDoc,r,this.diffConf),t.update([...e,n.state.update({effects:I8.of(this.chunks)})]);let i=t==this.a?this.b:this.a;i.update([i.state.update({effects:I8.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if(`diffConfig`in e&&(this.diffConf=e.diffConfig),`orientation`in e){let t=e.orientation!=`b-a`;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,n=this.b.dom.parentNode;e.remove(),n.remove(),this.editorDOM.insertBefore(t?e:n,this.editorDOM.firstChild),this.editorDOM.appendChild(t?n:e),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent=``)}}if(`revertControls`in e||`renderRevertControl`in e){let t=!!this.revertDOM,n=this.revertToA,r=this.renderRevert;`revertControls`in e&&(t=!!e.revertControls,n=e.revertControls==`b-to-a`),`renderRevertControl`in e&&(r=e.renderRevertControl),this.setupRevertControls(t,n,r)}let t=`highlightChanges`in e,n=`gutter`in e,r=`collapseUnchanged`in e;if(t||n||r){let i=[],a=[];if(t||n){let r=this.a.state.facet(F8),o=n?e.gutter!==!1:r.markGutter,s=t?e.highlightChanges!==!1:r.highlightChanges;i.push(b5.reconfigure([F8.of({side:`a`,sibling:()=>this.b,highlightChanges:s,markGutter:o}),o?Y8:[]])),a.push(b5.reconfigure([F8.of({side:`b`,sibling:()=>this.a,highlightChanges:s,markGutter:o}),o?Y8:[]]))}if(r){let t=y5.reconfigure(e.collapseUnchanged?h5(e.collapseUnchanged):[]);i.push(t),a.push(t)}this.a.dispatch({effects:i}),this.b.dispatch({effects:a})}this.scheduleMeasure()}setupRevertControls(e,t,n){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=n,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement(`div`),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener(`mousedown`,e=>this.revertClicked(e)),this.revertDOM.className=`cm-merge-revert`):this.revertDOM&&(this.revertDOM.textContent=``)}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame(()=>{this.measuring=-1,this.measure()})}}measure(){u5(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,n=this.a.viewport,r=this.b.viewport;for(let i=0;i<this.chunks.length;i++){let a=this.chunks[i];if(a.fromA>n.to||a.fromB>r.to)break;if(a.fromA<n.from||a.fromB<r.from)continue;let o=this.a.lineBlockAt(a.fromA).top+`px`;for(;t&&+t.dataset.chunk<i;)t=S5(t);t&&t.dataset.chunk==String(i)?(t.style.top!=o&&(t.style.top=o),t=t.nextSibling):e.insertBefore(this.renderRevertButton(o,i),t)}for(;t;)t=S5(t)}renderRevertButton(e,t){let n;if(this.renderRevert)n=this.renderRevert();else{n=document.createElement(`button`);let e=this.a.state.phrase(`Revert this chunk`);n.setAttribute(`aria-label`,e),n.setAttribute(`title`,e),n.textContent=this.revertToLeft?`⇜`:`⇝`}return n.style.top=e,n.setAttribute(`data-chunk`,String(t)),n}revertClicked(e){let t=e.target,n;for(;t&&t.parentNode!=this.revertDOM;)t=t.parentNode;if(t&&(n=this.chunks[t.dataset.chunk])){let[t,r,i,a,o,s]=this.revertToA?[this.b,this.a,n.fromB,n.toB,n.fromA,n.toA]:[this.a,this.b,n.fromA,n.toA,n.fromB,n.toB],c=t.state.sliceDoc(i,Math.max(i,a-1));i!=a&&s<=r.state.doc.length&&(c+=t.state.lineBreak),r.dispatch({changes:{from:o,to:Math.min(r.state.doc.length,s),insert:c},userEvent:`revert`}),e.preventDefault()}}destroy(){this.a.destroy(),this.b.destroy(),this.measuring>-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}};function S5(e){let t=e.nextSibling;return e.remove(),t}var C5=class e{static create(t,n,r,i,a){return new e(t,n,r,i+(i<<8)+t+(n<<4)|0,a,[],[])}constructor(e,t,n,i,a,o,s){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=a,this.children=o,this.positions=s,this.hashProp=[[r.contextHash,i]]}addChild(e,t){e.prop(r.contextHash)!=this.hash&&(e=new p(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new p(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new p(m.none,e,t,n,this.hashProp)})}},Q;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})(Q||={});var w5=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},T5=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return k5(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function E5(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Q.OrderedList?I5:F5)(n,t,!1);return r>0&&(e.type!=Q.BulletList||N5(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var D5={[Q.Blockquote](e,t,n){return n.next==62?(n.markers.push(u7(Q.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(O5(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0):!1},[Q.ListItem](e,t,n){return n.indent<n.baseIndent+e.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Q.OrderedList]:E5,[Q.BulletList]:E5,[Q.Document](){return!0}};function O5(e){return e==32||e==9||e==10||e==13}function k5(e,t=0){for(;t<e.length&&O5(e.charCodeAt(t));)t++;return t}function A5(e,t,n){for(;t>n&&O5(e.charCodeAt(t-1));)t--;return t}function j5(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function M5(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function N5(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!O5(n))return-1}return n&&e.next==45&&R5(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(X5.SetextHeading)>-1||r<3?-1:1}function P5(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function F5(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||O5(e.text.charCodeAt(e.pos+1)))&&(!n||P5(t,Q.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function I5(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!O5(e.text.charCodeAt(r+1))||n&&!P5(t,Q.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function L5(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function R5(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&O5(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var z5=/^[ \t]*$/,B5=/-->/,V5=/\?>/,H5=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,B5],[/^\s*<\?/,V5],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,z5],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,z5]];function U5(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=H5.length-+!!n;e<t;e++)if(H5[e][0].test(r))return e;return-1}function W5(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function G5(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==Q.CodeText?e[r].to=n:e.push(u7(Q.CodeText,t,n))}var K5={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(G5(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){G5(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==Q.CodeText?G5(o,e.from,e.to):o.push(e);s=[]}G5(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&G5(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=Q.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish(Q.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=j5(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=A5(t.text,t.text.length,o),c=[u7(Q.CodeMark,r,r+a)];o<s&&c.push(u7(Q.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&G5(c,e.lineStart-1,e.lineStart),c.push(u7(Q.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}else{o=!0,n||(G5(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(G5(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish(Q.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=M5(t);return n<0?!1:(e.startContext(Q.Blockquote,t.pos),e.addNode(Q.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(N5(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(Q.HorizontalRule,n),!0},BulletList(e,t){let n=F5(t,e,!1);if(n<0)return!1;e.block.type!=Q.BulletList&&e.startContext(Q.BulletList,t.basePos,t.next);let r=W5(t,t.pos+1);return e.startContext(Q.ListItem,t.basePos,r-t.baseIndent),e.addNode(Q.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=I5(t,e,!1);if(n<0)return!1;e.block.type!=Q.OrderedList&&e.startContext(Q.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=W5(t,t.pos+n);return e.startContext(Q.ListItem,t.basePos,r-t.baseIndent),e.addNode(Q.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=L5(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=A5(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;(o==a||o==r||!O5(t.text.charCodeAt(o-1)))&&(o=t.text.length);let s=e.buffer.write(Q.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write(Q.HeaderMark,o-r,a-r);let c=s.finish(Q.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=U5(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=H5[n][1],a=[],o=i!=z5;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==B5?Q.CommentBlock:i==V5?Q.ProcessingInstructionBlock:Q.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},q5=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
419
+ `+t.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,n,i):!1}finish(e,t){return(this.stage==2||this.stage==3)&&k5(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,n){return e.addLeafElement(t,u7(Q.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(b7(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(u7(Q.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(v7(e,k5(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=k5(e,this.pos),n=0;if(t>this.pos){let r=y7(e,t,this.start);if(r){let t=J5(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=J5(e,this.pos),n>0&&n<e.length?n:-1}else return J5(e,this.pos)}};function J5(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!O5(n))return-1}return t}var Y5=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:R5(t),i=t.next;if(r<0)return!1;let a=u7(Q.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,u7(i==61?Q.SetextHeading1:Q.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},X5={LinkReference(e,t){return t.content.charCodeAt(0)==91?new q5(t):null},SetextHeading(){return new Y5}},Z5=[(e,t)=>L5(t)>=0,(e,t)=>j5(t)>=0,(e,t)=>M5(t)>=0,(e,t)=>F5(t,e,!0)>=0,(e,t)=>I5(t,e,!0)>=0,(e,t)=>N5(t,e,!0)>=0,(e,t)=>U5(t,e,!0)>=0],Q5={text:``,end:0},$5=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new T5,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=C5.create(Q.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new ine(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}let t=new w5(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
420
+ `+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=C7(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=Q5;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+Q[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
421
+ `?``:t;else{let e=t.indexOf(`
422
+ `);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=C5.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new p(this.parser.nodeSet.types[e],o7,o7,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(S7(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?e7(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=S7(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Q.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?u7(this.parser.getNodeType(e),t,n,r):new l7(e,t)}get buffer(){return new s7(this.parser.nodeSet)}};function e7(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=e7(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new p(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var t7=class e extends oe{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new $5(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=r7(t);if(!n)return this;let{nodeSet:i,skipContextMarkup:a}=this,o=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),c=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),d=this.endLeafBlock.slice(),f=this.wrappers;if(n7(n.defineNodes)){a=Object.assign({},a);let e=i.types.slice(),t;for(let i of n.defineNodes){let{name:n,block:o,composite:s,style:c}=typeof i==`string`?{name:i}:i;if(e.some(e=>e.name==n))continue;s&&(a[e.length]=(e,t,n)=>s(t,n,e.value));let l=e.length,u=s?[`Block`,`BlockContext`]:o?l>=Q.ATXHeading1&&l<=Q.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(m.define({id:l,name:n,props:u&&[[r.group,u]]})),c&&(t||={},Array.isArray(c)||c instanceof h?t[n]=c:Object.assign(t,c))}i=new ie(e),t&&(i=i.extend(y(t)))}if(n7(n.props)&&(i=i.extend(...n.props)),n7(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(o[t]=s[t]=void 0),n>-1&&(l[n]=void 0)}if(n7(n.parseBlock))for(let e of n.parseBlock){let t=c.indexOf(e.name);if(t>-1)o[t]=e.parse,s[t]=e.leaf;else{let t=e.before?i7(c,e.before):e.after?i7(c,e.after)+1:c.length-1;o.splice(t,0,e.parse),s.splice(t,0,e.leaf),c.splice(t,0,e.name)}e.endLeaf&&d.push(e.endLeaf)}if(n7(n.parseInline))for(let e of n.parseInline){let t=u.indexOf(e.name);if(t>-1)l[t]=e.parse;else{let t=e.before?i7(u,e.before):e.after?i7(u,e.after)+1:u.length-1;l.splice(t,0,e.parse),u.splice(t,0,e.name)}}return n.wrap&&(f=f.concat(n.wrap)),new e(i,o,s,c,d,a,l,u,f)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new x7(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function n7(e){return e!=null&&e.length>0}function r7(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=r7(e[0]);if(e.length==1)return t;let n=r7(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||o7).concat(t||o7),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function i7(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var a7=[m.none];for(let e=1,t;t=Q[e];e++)a7[e]=m.define({id:e,name:t,props:e>=Q.Escape?[]:[[r.group,e in D5?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var o7=[],s7=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return p.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},c7=class{constructor(e,t,n,r=o7){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new s7(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},l7=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return o7}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function u7(e,t,n,r){return new c7(e,t,n,r)}var d7={resolve:`Emphasis`,mark:`EmphasisMark`},f7={resolve:`Emphasis`,mark:`EmphasisMark`},p7={},m7={},h7=class{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}},tne=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,g7=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{g7=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var _7={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(tne.charCodeAt(t)==r)return e.append(u7(Q.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(u7(Q.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(u7(Q.InlineCode,n,r+1,[u7(Q.CodeMark,n,n+i),u7(Q.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(u7(Q.Autolink,n,n+1+i[0].length,[u7(Q.LinkMark,n,n+1),u7(Q.URL,n+1,n+i[0].length),u7(Q.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(u7(Q.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(u7(Q.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(u7(Q.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=g7.test(i),s=g7.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new h7(t==95?d7:f7,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(u7(Q.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(u7(Q.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new h7(p7,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new h7(m7,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof h7&&(r.type==p7||r.type==m7)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=nne(e,i,r.type==p7?Q.Link:Q.Image,r.from,n+1);if(r.type==p7)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof h7&&t.type==p7&&(t.side=0)}return a.to}}return-1}};function nne(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(u7(Q.LinkMark,r,r+(n==Q.Image?2:1))),t.push(u7(Q.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=v7(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=y7(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(u7(Q.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(u7(Q.LinkMark,n,s)))}else if(o==91){let n=b7(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return u7(n,r,s,t)}function v7(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return u7(Q.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}else{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(O5(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?u7(Q.URL,t+n,i+n):i==e.length?null:!1}}function y7(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return u7(Q.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function b7(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return r?!1:u7(Q.LinkLabel,t+n,a+1+n);else{if(r&&!O5(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var x7=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new h7(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof h7&&(t.type==p7||t.type==m7))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof h7&&n.type.resolve&&n.side&2))continue;let r=n.type==d7||n.type==f7,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof h7&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.to-e.from+i)%3==0&&((e.to-e.from)%3||i%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof c7&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new h7(a.type,a.from,l,a.side):null,(this.parts[t]=r&&n.to!=u?new h7(n.type,u,n.to,n.side):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof c7&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof h7&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof h7?t:null}skipSpace(e){return k5(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?u7(this.parser.getNodeType(e),t,n,r):new l7(e,t)}};x7.linkStart=p7,x7.imageStart=m7;function S7(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof c7&&(n[r]=new c7(t.type,t.from,t.to,S7(t.children,[e])))}else n.splice(r++,0,e)}return n}var rne=[Q.CodeBlock,Q.ListItem,Q.OrderedList,Q.BulletList],ine=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
423
+ `;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(r.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=C7(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new p(e.parser.nodeSet.types[Q.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(rne.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function C7(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var ane=y({"Blockquote/...":A.quote,HorizontalRule:A.contentSeparator,"ATXHeading1/... SetextHeading1/...":A.heading1,"ATXHeading2/... SetextHeading2/...":A.heading2,"ATXHeading3/...":A.heading3,"ATXHeading4/...":A.heading4,"ATXHeading5/...":A.heading5,"ATXHeading6/...":A.heading6,"Comment CommentBlock":A.comment,Escape:A.escape,Entity:A.character,"Emphasis/...":A.emphasis,"StrongEmphasis/...":A.strong,"Link/... Image/...":A.link,"OrderedList/... BulletList/...":A.list,"BlockQuote/...":A.quote,"InlineCode CodeText":A.monospace,"URL Autolink":A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":A.processingInstruction,"CodeInfo LinkLabel":A.labelName,LinkTitle:A.string,Paragraph:A.content}),one=new t7(new ie(a7).extend(ane),Object.keys(K5).map(e=>K5[e]),Object.keys(K5).map(e=>X5[e]),Object.keys(K5),Z5,D5,Object.keys(_7).map(e=>_7[e]),Object.keys(_7),[]);function sne(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function cne(e){let{codeParser:t,htmlParser:n}=e;return{wrap:v((e,r)=>{let i=e.type.id;if(t&&(i==Q.CodeBlock||i==Q.FencedCode)){let n=``;if(i==Q.FencedCode){let t=e.node.getChild(Q.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==Q.CodeText,bracketed:i==Q.FencedCode}}else if(n&&(i==Q.HTMLBlock||i==Q.HTMLTag||i==Q.CommentBlock))return{parser:n,overlay:sne(e.node,e.from,e.to)};return null})}}var lne={resolve:`Strikethrough`,mark:`StrikethroughMark`},une={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":A.strikethrough}},{name:`StrikethroughMark`,style:A.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=g7.test(r),c=g7.test(i);return e.addDelimiter(lne,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function w7(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function T7(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var E7=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,D7=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&E7.test(r=t.text.slice(t.pos))){let i=[];w7(e,n.content,0,i,n.start)==w7(e,r,t.pos)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];w7(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},dne={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":A.heading}},`TableRow`,{name:`TableCell`,style:A.content},{name:`TableDelimiter`,style:A.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return T7(t.content,0)?new D7:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof D7)||!T7(t.text,t.basePos))return!1;let r=e.peekLine();return E7.test(r)&&w7(e,t.text,t.basePos)==w7(e,r,t.basePos)},before:`SetextHeading`}]},fne=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},pne={defineNodes:[{name:`Task`,block:!0,style:A.list},{name:`TaskMarker`,style:A.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new fne:null},after:`SetextHeading`}]},O7=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,k7=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,mne=/[\w-]+\.[\w-]+($|\/)/,A7=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,j7=/\/[a-zA-Z\d@.]+/gy;function M7(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function hne(e,t){k7.lastIndex=t;let n=k7.exec(e);if(!n||mne.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&M7(e,t,r,`)`)>M7(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function N7(e,t){A7.lastIndex=t;let n=A7.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var gne=[dne,pne,une,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;O7.lastIndex=r;let i=O7.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=hne(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=N7(e.text,r):(a=N7(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(j7.lastIndex=a,i=j7.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function P7(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),O5(s))break}return-1}}var _ne={defineNodes:[{name:`Superscript`,style:A.special(A.content)},{name:`SuperscriptMark`,style:A.processingInstruction}],parseInline:[{name:`Superscript`,parse:P7(94,`Superscript`,`SuperscriptMark`)}]},vne={defineNodes:[{name:`Subscript`,style:A.special(A.content)},{name:`SubscriptMark`,style:A.processingInstruction}],parseInline:[{name:`Subscript`,parse:P7(126,`Subscript`,`SubscriptMark`)}]},yne={defineNodes:[{name:`Emoji`,style:A.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},bne=mt({commonmarkLanguage:()=>B7,deleteMarkupBackward:()=>Z7,insertNewlineContinueMarkup:()=>J7,insertNewlineContinueMarkupCommand:()=>q7,markdown:()=>e9,markdownKeymap:()=>Q7,markdownLanguage:()=>V7,pasteURLAsLink:()=>n9}),F7=ue({commentTokens:{block:{open:`<!--`,close:`-->`}}}),I7=new r,L7=one.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||R7(e)!=null||xne(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),I7.add(R7),s.add({Document:()=>null}),ke.add({Document:F7})]});function R7(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function xne(e){return e.name==`OrderedList`||e.name==`BulletList`}function Sne(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=R7(e.type))!=null&&r<=t)break;n=e}return n.to}var Cne=$e.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(I7);if(e==null)continue;let t=Sne(r,e);if(t>n)return{from:n,to:t}}return null});function z7(e){return new ge(F7,e,[],`markdown`)}var B7=z7(L7),V7=z7(L7.configure([gne,vne,_ne,yne,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function wne(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):N.matchLanguageName(e,n,!0),t instanceof N)return t.support?t.support.language.parser:ve.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var H7=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}else{for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}}marker(e,t){let n=this.node.name==`OrderedList`?String(+W7(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function U7(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new H7(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new H7(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new H7(i.parent,s,s+t,a[1],e,n,i))}}return r}function W7(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function G7(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=W7(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function K7(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=ot(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var q7=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!V7.isActiveAt(t,n.from,-1)&&!V7.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=U7(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){let n=l.node.firstChild,r=l.node.getChild(`ListItem`,`ListItem`);if(n.to>=o||r&&r.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&G7(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&G7(e.item,i,r),{range:et.cursor(t+n.length),changes:r}}else{let e=X7(c,t,s);return{range:et.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&G7(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?ot(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=K7(p,t),Tne(l.node,t.doc)&&(p=X7(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:et.cursor(m+p.length+1),changes:d}});return a?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},J7=q7();function Y7(e){return e.name==`QuoteMark`||e.name==`ListMark`}function Tne(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function X7(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?ot(n.text,4,e[t+1].from)-r.length:null,t<i);return K7(r,t)}function Ene(e,t){let n=e.resolveInner(t,-1),r=t;Y7(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(Y7(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var Z7=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&V7.isActiveAt(e,t.from)){let t=a.lineAt(i),r=U7(Ene(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:et.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(ot(t.text,4,n.to)-ot(t.text,4,n.from));return r==t.from&&(i=K7(i,e)),{range:et.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:et.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return r?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Q7=[{key:`Enter`,run:J7},{key:`Backspace`,run:Z7}],$7=F1({matchClosingTags:!1});function e9(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=B7,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=$7}=e;if(!(i instanceof t7))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,Cne],u;o&&l.push(n9),n instanceof Ye?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?wne(t,u):void 0;c.push(cne({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(Ne.of(Q7)));let f=z7(i.configure(c));return a&&l.push(f.data.of({autocomplete:Dne})),new Ye(f,l)}function Dne(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:One(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var t9=null;function One(){if(t9)return t9;let e=O1(new MK(ne.create({extensions:$7}),0,!0));return t9=e?e.options:[]}var kne=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,n9=ce.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!V7.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||kne.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),a?!1:(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),r9=[J2,l0,e9(),Xe(),ce.lineWrapping],Ane=()=>{let[e,t,n]=En(PC,wC,o9),r=Dn(Iw),i=Dn(fw),a=P.useRef(null),o=P.useCallback(o=>{var s;if(o!==null){let s=[...n,...r9,ce.updateListener.of(({state:e})=>{r(e.doc.toString())}),ce.focusChangeEffect.of((e,t)=>(t||i(new FocusEvent(`blur`)),null))];t&&s.push(ne.readOnly.of(!0)),o.innerHTML=``,a.current=new ce({parent:o,state:ne.create({doc:e,extensions:s})})}else (s=a.current)==null||s.destroy(),a.current=null},[e,t,r,n,i]);return P.createElement(`div`,{ref:o,className:`cm-sourceView mdxeditor-source-editor`})};function i9(e,t){e!==void 0&&e.dispatch({changes:{from:0,to:e.state.doc.length,insert:t}})}var jne=()=>{let e=wn(),[t,n,r,i]=En(PC,a9,wC,s9),a=Dn(Iw),o=P.useRef(null),s=P.useRef(null),c=Tn(o9),l=Dn(fw);return P.useEffect(()=>e.sub(a9,e=>{i9(s.current?.a,e)}),[e]),P.useEffect(()=>e.sub(PC,e=>{i9(s.current?.b,e)}),[e]),P.useEffect(()=>{let e=r||i;return s.current=new x5({...e?{renderRevertControl:void 0,revertControls:void 0}:{renderRevertControl:()=>{let e=document.createElement(`button`);return e.classList.add(`cm-merge-revert`),e.appendChild(document.createTextNode(`⮕`)),e},revertControls:`a-to-b`},parent:o.current,orientation:`a-b`,gutter:!0,a:{doc:n,extensions:[...c,...r9,ne.readOnly.of(!0)]},b:{doc:t,extensions:[...c,...r9,ne.readOnly.of(e),ce.updateListener.of(({state:e})=>{a(e.doc.toString())}),ce.focusChangeEffect.of((e,t)=>(t||l(new FocusEvent(`blur`)),null))]}}),()=>{var e;(e=s.current)==null||e.destroy(),s.current=null}},[a,c]),P.createElement(`div`,{ref:o,className:`mdxeditor-diff-editor`})},Mne=({children:e})=>{let[t,n]=En(kC,Fw);return P.createElement(`div`,{className:`mdxeditor-diff-source-wrapper`},t?P.createElement(`div`,{className:J.markdownParseError},P.createElement(`p`,null,t.error,`.`),P.createElement(`p`,null,`You can fix the errors in source mode and switch to rich text mode when you are ready.`)):null,P.createElement(`div`,{className:`mdxeditor-rich-text-editor`,style:{display:n===`rich-text`&&t==null?`block`:`none`}},e),n===`diff`?P.createElement(jne,null):null,n===`source`?P.createElement(Ane,null):null)},a9=bn(``),o9=bn([]),s9=bn(!1),Nne=Fn({update:(e,t)=>{e.pub(a9,t?.diffMarkdown??``)},init(e,t){e.pubIn({[a9]:t?.diffMarkdown??``,[o9]:t?.codeMirrorExtensions??[],[Ew]:Mne,[s9]:t?.readOnlyDiff??!1,[Fw]:t?.viewMode??`rich-text`})}});Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return r}),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(l(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var c=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;function l(e){var t=e.replace(o,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?c(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):s[t]||e}),t}e.languages.md=e.languages.markdown})(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.objectivec=Prism.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec[`class-name`],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism);function c9(e,t){for(let n of e.childNodes){if(wd(n)&&n.tagName===t)return!0;c9(n,t)}return!1}var l9=`data-language`,u9=`data-highlight-language`,d9=`data-theme`,f9=class e extends Vc{static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=document.createElement(`code`);Sp(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(l9,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(u9,n));let r=this.getTheme();r&&t.setAttribute(d9,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(l9,r):i&&t.removeAttribute(l9);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(u9,r):t.removeAttribute(u9):a&&r&&t.setAttribute(u9,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(d9,o):s&&t.removeAttribute(d9);let c=this.__style,l=e.__style;return c?c!==l&&t.setAttribute(`style`,c):l&&t.removeAttribute(`style`),!1}exportDOM(e){let t=document.createElement(`pre`);Sp(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(l9,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(u9,n));let r=this.getTheme();r&&t.setAttribute(d9,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),{element:t}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||c9(e,`BR`))?{conversion:h9,priority:1}:null,div:()=>({conversion:Pne,priority:1}),pre:()=>({conversion:h9,priority:0}),table:e=>v9(e)?{conversion:Fne,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return Lne(t)||n&&v9(n)?{conversion:g9,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&v9(t)?{conversion:g9,priority:3}:null}}}static importJSON(e){return p9().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){let n=this.getChildren(),r=n.length;if(r>=2&&n[r-1].getTextContent()===`
424
+ `&&n[r-2].getTextContent()===`
425
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r){n[r-1].remove(),n[r-2].remove();let e=sl();return this.insertAfter(e,t),e}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if(R(o)){let e=zne(o),t=[];for(;;)if(ms(e))t.push(ps()),e=e.getNextSibling();else if(S9(e)){let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&r[n]===` `;)n++;if(n!==0&&t.push(x9(` `.repeat(n))),n!==i)break;e=e.getNextSibling()}else break;let n=o.splitText(i.offset)[0],r=i.offset===0?0:1,a=n.getIndexWithinParent()+r,s=o.getParentOrThrow(),c=[Ho(),...t];s.splice(a,0,c);let l=t[t.length-1];l?l.select():i.offset===0?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(m9(o)){let{offset:t}=e.anchor;o.splice(t,0,[Ho()]),o.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=sl();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function p9(e,t){return Wd(f9).setLanguage(e).setTheme(t)}function m9(e){return e instanceof f9}function h9(e){return{node:p9(e.getAttribute(l9))}}function Pne(e){let t=e,n=_9(t);return!n&&!Ine(t)?{node:null}:{node:n?p9():null}}function Fne(){return{node:p9()}}function g9(){return{node:null}}function _9(e){return e.style.fontFamily.match(`monospace`)!==null}function Ine(e){let t=e.parentElement;for(;t!==null;){if(_9(t))return!0;t=t.parentElement}return!1}function Lne(e){return e.classList.contains(`js-file-line`)}function v9(e){return e.classList.contains(`js-file-line-container`)}var y9=class e extends es{constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return Sp(t,b9(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=b9(n.theme,e.__highlightType),a=b9(n.theme,this.__highlightType);return i!==a&&(i&&Cp(t,i),a&&Sp(t,a)),r}static importJSON(e){return x9().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return p9()}};function b9(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function x9(e=``,t){return pd(new y9(e,t))}function S9(e){return e instanceof y9}function Rne(e,t){let n=e;for(let r=uf(e,t);r&&(S9(r.origin)||ms(r.origin));r=wp(r))n=r.origin;return n}function zne(e){return Rne(e,`previous`)}(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
426
+ ?|
427
+ |(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,`PREFIXES`,{value:t})})(Prism),globalThis.Prism||window.Prism;function C9(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function Bne(e){let t=C9(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var w9=/[!-/:-@[-`{-~\s]/;function Vne(e){return R(e)&&!e.hasFormat(`code`)}function Hne(e){throw Error(e)}function Une(e,t,n,r){if(!dd(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExp:a,replace:o}of r){let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(o(e,s?[s,...i]:i,r,!1)!==!1)return a.remove(),!0}}return!1}function Wne(e,t,n,r){if(!dd(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExpStart:a,replace:o,regExpEnd:s}of r){if(s&&!(`optional`in s)||s&&`optional`in s&&!s.optional)continue;let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(o(e,s?[s,...i]:i,r,null,null,!1)!==!1)return a.remove(),!0}}return!1}function Gne(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t<r.length&&(r=r.slice(0,t));for(let t of i){if(!t.replace||!t.regExp)continue;let n=r.match(t.regExp);if(n===null)continue;let i=n.index||0,a=i+n[0].length,o;return i===0?[o]=e.splitText(a):[,o]=e.splitText(i,a),o.selectNext(0,0),t.replace(o,n),!0}return!1}function Kne(e,t,n){let r=e.getTextContent(),i=t-1,a=r[i],o=n[a];if(!o)return!1;for(let t of o){let{tag:n}=t,o=n.length,s=i-o+1;if(o>1&&!E9(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(t.intraword===!1&&c&&!w9.test(c))continue;let l=e,u=l,d=T9(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!Uo(f);)if(R(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=T9(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(t.intraword===!1&&m&&!w9.test(m))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=B(),y=zs();$l(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.hasFormat(e)||y.formatText(e);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return z(v)&&(y.format=v.format),!0}return!1}function T9(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(E9(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function E9(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function qne(e,t=W9){let n=Bne(t),r=C9(n.textFormat,({tag:e})=>e[e.length-1]),i=C9(n.textMatch,({trigger:e})=>e);for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||Hne(`MarkdownShortcuts: missing dependency ${n.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}}let a=(e,t,a)=>{Une(e,t,a,n.element)||Wne(e,t,a,n.multilineElement)||Gne(t,a,i)||Kne(t,a,r)};return e.registerUpdateListener(({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let o=r.read(B),s=i.read(B);if(!z(s)||!z(o)||!o.isCollapsed()||o.is(s))return;let c=o.anchor.key,l=o.anchor.offset,u=r._nodeMap.get(c);!R(u)||!n.has(c)||l!==1&&l>s.anchor.offset+1||e.update(()=>{if(!Vne(u))return;let e=u.getParent();e===null||m9(e)||a(e,u,o.anchor.offset)})})}var Jne=/^(\s*)(\d{1,})\.\s/,Yne=/^(\s*)[-*+]\s/,Xne=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,Zne=/^(#{1,6})\s/,Qne=/^>\s/,$ne=/^[ \t]*```([\w-]+)?/,ere=/[ \t]*```$/,D9=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},O9=4;function tre(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/O9)),r}var k9=e=>(t,n,r,i)=>{let a=t.getPreviousSibling(),o=t.getNextSibling(),s=$T(e===`check`?r[3]===`x`:void 0);if(cE(o)&&o.getListType()===e){let e=o.getFirstChild();e===null?o.append(s):e.insertBefore(s),t.remove()}else if(cE(a)&&a.getListType()===e)a.append(s),t.remove();else{let n=sE(e,e===`number`?Number(r[2]):void 0);n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let c=tre(r[1]);c&&s.setIndent(c)},A9=(e,t,n)=>{let r=[],i=e.getChildren(),a=0;for(let o of i)if(eE(o)){if(o.getChildrenSize()===1){let e=o.getFirstChild();if(cE(e)){r.push(A9(e,t,n+1));continue}}let i=` `.repeat(n*O9),s=e.getListType(),c=s===`number`?`${e.getStart()+a}. `:s===`check`?`- [${o.getChecked()?`x`:` `}] `:`- `;r.push(i+c+t(o)),a++}return r.join(`
428
+ `)},nre={dependencies:[Bm],export:(e,t)=>{if(!Gm(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:Zne,replace:D9(e=>Wm(`h`+e[1].length)),type:`element`},j9={dependencies:[Lm],export:(e,t)=>{if(!zm(e))return null;let n=t(e).split(`
429
+ `),r=[];for(let e of n)r.push(`> `+e);return r.join(`
430
+ `)},regExp:Qne,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(zm(n)){n.splice(n.getChildrenSize(),0,[Ho(),...t]),e.remove();return}}let i=Rm();i.append(...t),e.replace(i),r||i.select(0,0)},type:`element`},M9={dependencies:[f9],export:e=>{if(!m9(e))return null;let t=e.getTextContent();return"```"+(e.getLanguage()||``)+(t?`
431
+ `+t:``)+"\n```"},regExpEnd:{optional:!0,regExp:ere},regExpStart:$ne,replace:(e,t,n,r,i,a)=>{let o,s;if(!t&&i){if(i.length===1)r?(o=p9(),s=n[1]+i[0]):(o=p9(n[1]),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{if(o=p9(n[1]),i[0].trim().length===0)for(;i.length>0&&!i[0].length;)i.shift();else i[0]=i[0].startsWith(` `)?i[0].slice(1):i[0];for(;i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(`
432
+ `)}let t=us(s);o.append(t),e.append(o)}else t&&D9(e=>p9(e?e[1]:void 0))(e,t,n,a)},type:`multiline-element`},N9={dependencies:[tE,YT],export:(e,t)=>cE(e)?A9(e,t,0):null,regExp:Yne,replace:k9(`bullet`),type:`element`},P9={dependencies:[tE,YT],export:(e,t)=>cE(e)?A9(e,t,0):null,regExp:Xne,replace:k9(`check`),type:`element`},F9={dependencies:[tE,YT],export:(e,t)=>cE(e)?A9(e,t,0):null,regExp:Jne,replace:k9(`number`),type:`element`},I9={format:[`code`],tag:"`",type:`text-format`},rre={format:[`highlight`],tag:`==`,type:`text-format`},L9={format:[`bold`,`italic`],tag:`***`,type:`text-format`},R9={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},z9={format:[`bold`],tag:`**`,type:`text-format`},B9={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},ire={format:[`strikethrough`],tag:`~~`,type:`text-format`},V9={format:[`italic`],tag:`*`,type:`text-format`},H9={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},U9={dependencies:[_T],export:(e,t,n)=>{if(!yT(e)||ST(e))return null;let r=e.getTitle(),i=t(e);return r?`[${i}](${e.getURL()} "${r}")`:`[${i}](${e.getURL()})`},importRegExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{let[,n,r,i]=t,a=vT(r,{title:i}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(o<s)return;if(o>s){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=us(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(us(l)),u},trigger:`)`,type:`text-match`},are=[nre,j9,N9,F9],ore=[M9],sre=[I9,L9,R9,z9,B9,rre,V9,H9,ire],cre=[U9],W9=[...are,...ore,...sre,...cre],lre=[{dependencies:[$E],export:e=>nD(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=tD();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},...W9];function G9({transformers:e=lre}){let[t]=Bn();return(0,P.useEffect)(()=>qne(t,e),[t,e]),null}var ure=Fn({init(e){let t=e.getValue(Lw),n=mre(t,t.includes(`headings`)?e.getValue(qE):[]),r=n.filter(e=>!pre.has(e));e.pubIn({[bw]:()=>P.createElement(G9,{transformers:n}),[Dw]:()=>P.createElement(G9,{transformers:n}),[kw]:()=>P.createElement(G9,{transformers:r})})}}),dre=e=>(t,n,r)=>{let i=e(r);i.append(...n),t.replace(i),i.select(0,0)},fre={dependencies:[$E],export:e=>nD(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=tD();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},pre=new Set([F9,N9,P9]);function mre(e,t){let n=[L9,R9,z9,B9,I9,V9,H9];if(e.includes(`headings`)){let e=Math.min(...t),r=Math.max(...t),i=RegExp(`^(#{${e},${r}})\\s`),a={dependencies:[Bm],export:(e,t)=>{if(!Gm(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:i,replace:dre(e=>Wm(`h${e[1].length}`)),type:`element`};n.push(a)}if(e.includes(`thematicBreak`)&&n.push(fre),e.includes(`quote`)&&n.push(j9),e.includes(`link`)&&n.push(U9),e.includes(`lists`)&&n.push(F9,N9,P9),e.includes(`codeblock`)){let e={...M9,dependencies:[vK],replace:(e,t,n)=>{let r=xK({code:``,language:n[1]??``,meta:``});e.selectPrevious(),e.replace(r),setTimeout(()=>{r.select()},80)}};n.push(e)}return n}var hre=()=>{let e=Dn(Nw),t=Tn(Mw),n=Tn(Lw),r=n.includes(`quote`),i=n.includes(`headings`),a=Hw();if(!r&&!i)return null;let o=[{label:a(`toolbar.blockTypes.paragraph`,`Paragraph`),value:`paragraph`}];if(r&&o.push({label:a(`toolbar.blockTypes.quote`,`Quote`),value:`quote`}),i){let e=Tn(qE);o.push(...e.map(e=>({label:a(`toolbar.blockTypes.heading`,`Heading {{level}}`,{level:e}),value:`h${e}`})))}return P.createElement(f6,{value:t,onChange:t=>{switch(t){case`quote`:e(()=>Rm());break;case`paragraph`:e(()=>sl());break;case``:break;default:if(t.startsWith(`h`))e(()=>Wm(t));else throw Error(`Unknown block type: ${t}`)}},triggerTitle:a(`toolbar.blockTypeSelect.selectBlockTypeTooltip`,`Select block type`),placeholder:a(`toolbar.blockTypeSelect.placeholder`,`Block type`),items:o})},K9=({format:e,addTitle:t,removeTitle:n,icon:r,formatName:i})=>{let[a,o]=En(OC,pw),s=Dn(jC),c=(a&e)!==0;return P.createElement(G6,{title:c?n:t,on:c,onValueChange:()=>{s(i)}},o(r))},gre=({options:e})=>{let t=Hw(),n=e===void 0;return P.createElement(`div`,{className:J.toolbarGroupOfGroups},n||e.includes(`Bold`)?P.createElement(K9,{format:1,addTitle:t(`toolbar.bold`,`Bold`),removeTitle:t(`toolbar.removeBold`,`Remove bold`),icon:`format_bold`,formatName:`bold`}):null,n||e.includes(`Italic`)?P.createElement(K9,{format:2,addTitle:t(`toolbar.italic`,`Italic`),removeTitle:t(`toolbar.removeItalic`,`Remove italic`),icon:`format_italic`,formatName:`italic`}):null,n||e.includes(`Underline`)?P.createElement(K9,{format:8,addTitle:t(`toolbar.underline`,`Underline`),removeTitle:t(`toolbar.removeUnderline`,`Remove underline`),icon:`format_underlined`,formatName:`underline`}):null)},_re=({options:e})=>{let t=Hw(),n=e===void 0;return P.createElement(`div`,{className:J.toolbarGroupOfGroups},n||e.includes(`Strikethrough`)?P.createElement(K9,{format:4,addTitle:t(`toolbar.strikethrough`,`Strikethrough`),removeTitle:t(`toolbar.removeStrikethrough`,`Remove strikethrough`),icon:`strikeThrough`,formatName:`strikethrough`}):null,n||e.includes(`Sup`)?P.createElement(K9,{format:64,addTitle:t(`toolbar.superscript`,`Superscript`),removeTitle:t(`toolbar.removeSuperscript`,`Remove superscript`),icon:`superscript`,formatName:`superscript`}):null,n||e.includes(`Sub`)?P.createElement(K9,{format:32,addTitle:t(`toolbar.subscript`,`Subscript`),removeTitle:t(`toolbar.removeSubscript`,`Remove subscript`),icon:`subscript`,formatName:`subscript`}):null)},vre=()=>{let[e,t,n]=En(dw,xC,_6),r=SK(e.rootNode)?e.rootNode:null,i=Hw();if(!r)return null;let{value:a,items:o}=g6(n,r.getLanguage());return P.createElement(`div`,{className:J.selectWithLabel},P.createElement(`label`,null,i(`codeBlock.language`,`Code block language`)),P.createElement(f6,{value:a||`__EMPTY_VALUE__`,onChange:e=>{t?.update(()=>{r.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{t.update(()=>{r.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.language`,`Code block language`),items:o}))},yre=()=>{let[e,t]=En(OC,pw),n=Dn(jC),r=Hw(),i=(e&16)!=0,a=i?r(`toolbar.removeInlineCode`,`Remove code format`):r(`toolbar.inlineCode`,`Inline code format`);return P.createElement(K6,{items:[{title:a,contents:t(`code`),active:i,onChange:n.bind(null,`code`)}]})},bre=()=>{let e=Dn(N6),t=Tn(pw),n=Hw();return P.createElement(U6,{"aria-label":n(`toolbar.link`,`Create link`),title:n(`toolbar.link`,`Create link`),onClick:t=>{e()}},t(`link`))},xre=({children:e,SourceToolbar:t,options:n=[`rich-text`,`diff`,`source`]})=>{let[r,i]=En(Fw,pw),a=Dn(Fw),o=Hw(),s=[];return n.includes(`rich-text`)&&s.push({title:o(`toolbar.richText`,`Rich text`),contents:i(`rich_text`),value:`rich-text`}),n.includes(`diff`)&&s.push({title:o(`toolbar.diffMode`,`Diff mode`),contents:i(`difference`),value:`diff`}),n.includes(`source`)&&s.push({title:o(`toolbar.source`,`Source mode`),contents:i(`markdown`),value:`source`}),P.createElement(P.Fragment,null,r===`rich-text`?e:r===`diff`?P.createElement(`span`,{className:J.toolbarTitleMode},o(`toolbar.diffMode`,`Diff mode`)):t??P.createElement(`span`,{className:J.toolbarTitleMode},o(`toolbar.source`,`Source mode`)),P.createElement(`div`,{className:J.diffSourceToggleWrapper},P.createElement(q6,{className:J.diffSourceToggle,ggClassName:J.ggDiffSourceToggle,value:r,items:s,onChange:e=>{a(e===``?`rich-text`:e)}})))},q9=()=>{let e=Dn(EK),t=Tn(pw),n=Hw();return P.createElement(U6,{title:n(`toolbar.codeBlock`,`Insert Code Block`),onClick:()=>{e({})}},t(`frame_source`))},Sre=()=>{let e=Dn(pK),[t,n]=En(hK,pw),r=Hw();return P.createElement(U6,{title:t?r(`toolbar.editFrontmatter`,`Edit frontmatter`):r(`toolbar.insertFrontmatter`,`Insert frontmatter`),className:(0,AE.default)({[J.activeToolbarButton]:t}),onClick:()=>{e()}},n(`frontmatter`))},Cre=P.forwardRef((e,t)=>{let n=Dn(iH),[r,i]=En(wC,pw),a=Hw();return P.createElement(kP,{"aria-label":a(`toolbar.image`,`Insert image`),className:J.toolbarButton,ref:t,disabled:r,onClick:()=>{n()}},P.createElement(c6,{title:a(`toolbar.image`,`Insert image`)},i(`add_photo`)))}),wre=()=>{let e=Tn(pw),t=Dn($P),n=Hw(),r=Tn(Aw);return P.createElement(U6,{title:n(`toolbar.table`,`Insert Table`),onClick:()=>{t({rows:3,columns:3})},...r?{"aria-disabled":!0,"data-disabled":!0,disabled:!0}:{}},e(`table`))},Tre=()=>{let e=Dn(aD),t=Tn(pw),n=Hw();return P.createElement(U6,{title:n(`toolbar.thematicBreak`,`Insert thematic break`),onClick:()=>{e()}},t(`horizontal_rule`))},Ere={bullet:`format_list_bulleted`,number:`format_list_numbered`,check:`format_list_checked`},Dre=({options:e=[`bullet`,`number`,`check`]})=>{let[t,n,r]=En(vD,pw,Aw),i=Dn(yD),a=Hw(),o={bullet:a(`toolbar.bulletedList`,`Bulleted list`),number:a(`toolbar.numberedList`,`Numbered list`),check:a(`toolbar.checkList`,`Check list`)},s=e.map(e=>({value:e,title:o[e],contents:n(Ere[e])}));return P.createElement(q6,{value:t||``,items:s,onChange:i,disabled:r})},J9=()=>{let[e,t]=En(pw,xC),[n,r]=P.useState(!1),[i,a]=P.useState(!1),o=Hw();return P.useEffect(()=>{if(t)return yp(t.registerCommand(Ba,e=>(r(e),!1),4),t.registerCommand(za,e=>(a(e),!1),4))},[t]),P.createElement(K6,{items:[{title:o(`toolbar.undo`,`Undo {{shortcut}}`,{shortcut:BE?`⌘Z`:`Ctrl+Z`}),disabled:!n,contents:e(`undo`),active:!1,onChange:()=>t?.dispatchCommand(fa,void 0)},{title:o(`toolbar.redo`,`Redo {{shortcut}}`,{shortcut:BE?`⌘Y`:`Ctrl+Y`}),disabled:!i,contents:e(`redo`),active:!1,onChange:()=>t?.dispatchCommand(pa,void 0)}]})},Ore=pt((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return te[e]||(te[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,ie[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
433
+ let props = %s;
434
+ <%s {...props} />
435
+ React keys must be passed directly to JSX without using spread:
436
+ let props = %s;
437
+ <%s key={someKey} {...props} />`,o,p,m,p),ie[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=vt(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,ee=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var M,te={},ne=m.react_stack_bottom_frame.bind(m,o)(),re=ee(i(o)),ie={};e.Fragment=_,e.jsxDEV=function(e,t,n,r){var a=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,r,a?Error(`react-stack-top-frame`):ne,a?ee(i(e)):re)}})()})),$=pt(((e,t)=>{t.exports=Ore()}))(),Y9=`/root/code/pibo/.worktrees/release-1.11.4/src/apps/shared/MarkdownEditor.tsx`,kre=900,Are={txt:`Text`,text:`Text`,plaintext:`Plain Text`,md:`Markdown`,tsx:`TSX`,ts:`TypeScript`,js:`JavaScript`,json:`JSON`,css:`CSS`,bash:`Bash`,sh:`Shell`,shell:`Shell`,yaml:`YAML`,yml:`YAML`,toml:`TOML`,cron:`Cron`};function jre(e){let t=e,n=!1;for(;;){let e=t.getParent();if(e===null||dd(e))return null;let r=t.getNextSibling();if(r!==null)return!n&&R(r)?null:{parent:e,offset:t.getIndexWithinParent()+1};if(!e.isInline())return{parent:e,offset:t.getIndexWithinParent()+1};t=e,n=!0}}var Mre=Fn({init(e){e.pub(gw,e=>e.registerCommand(L,t=>{let n=t;if(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)return!1;let r=!1;return e.update(()=>{let e=B();if(!z(e)||!e.isCollapsed()||e.anchor.type!==`text`)return;let t=e.anchor.getNode();if(!R(t)||!(t.getFormat()&16)||e.anchor.offset!==t.getTextContentSize())return;let n=jre(t);n&&(e.anchor.set(n.parent.getKey(),n.offset,`element`),e.focus.set(n.parent.getKey(),n.offset,`element`),e.setFormat(e.format&-17),r=!0)}),r?(n.preventDefault(),!0):!1},3))}});function Nre(){return(0,$.jsxDEV)(Y6,{options:[{when:e=>e?.editorType===`codeblock`,contents:()=>(0,$.jsxDEV)($.Fragment,{children:[(0,$.jsxDEV)(J9,{},void 0,!1,{fileName:Y9,lineNumber:170,columnNumber:8},this),(0,$.jsxDEV)(X6,{},void 0,!1,{fileName:Y9,lineNumber:171,columnNumber:8},this),(0,$.jsxDEV)(vre,{},void 0,!1,{fileName:Y9,lineNumber:172,columnNumber:8},this),(0,$.jsxDEV)(X6,{},void 0,!1,{fileName:Y9,lineNumber:173,columnNumber:8},this),(0,$.jsxDEV)(q9,{},void 0,!1,{fileName:Y9,lineNumber:174,columnNumber:8},this)]},void 0,!0)},{fallback:()=>(0,$.jsxDEV)($.Fragment,{children:[(0,$.jsxDEV)(J9,{},void 0,!1,{fileName:Y9,lineNumber:181,columnNumber:8},this),(0,$.jsxDEV)(X6,{},void 0,!1,{fileName:Y9,lineNumber:182,columnNumber:8},this),(0,$.jsxDEV)(gre,{options:[`Bold`,`Italic`]},void 0,!1,{fileName:Y9,lineNumber:183,columnNumber:8},this),(0,$.jsxDEV)(_re,{options:[`Strikethrough`]},void 0,!1,{fileName:Y9,lineNumber:184,columnNumber:8},this),(0,$.jsxDEV)(yre,{},void 0,!1,{fileName:Y9,lineNumber:185,columnNumber:8},this),(0,$.jsxDEV)(X6,{},void 0,!1,{fileName:Y9,lineNumber:186,columnNumber:8},this),(0,$.jsxDEV)(hre,{},void 0,!1,{fileName:Y9,lineNumber:187,columnNumber:8},this),(0,$.jsxDEV)(Dre,{},void 0,!1,{fileName:Y9,lineNumber:188,columnNumber:8},this),(0,$.jsxDEV)(bre,{},void 0,!1,{fileName:Y9,lineNumber:189,columnNumber:8},this),(0,$.jsxDEV)(X6,{},void 0,!1,{fileName:Y9,lineNumber:190,columnNumber:8},this),(0,$.jsxDEV)(Cre,{},void 0,!1,{fileName:Y9,lineNumber:191,columnNumber:8},this),(0,$.jsxDEV)(wre,{},void 0,!1,{fileName:Y9,lineNumber:192,columnNumber:8},this),(0,$.jsxDEV)(Tre,{},void 0,!1,{fileName:Y9,lineNumber:193,columnNumber:8},this),(0,$.jsxDEV)(q9,{},void 0,!1,{fileName:Y9,lineNumber:194,columnNumber:8},this),(0,$.jsxDEV)(Sre,{},void 0,!1,{fileName:Y9,lineNumber:195,columnNumber:8},this)]},void 0,!0)}]},void 0,!1,{fileName:Y9,lineNumber:164,columnNumber:3},this)}var Pre=(0,P.memo)((0,P.forwardRef)(function({documentKey:e,initialMarkdown:t,onPersist:n,onSaveStateChange:r,readOnly:i=!1,ariaLabel:a=`Markdown editor`},o){let s=(0,P.useRef)(null),c=(0,P.useRef)(null),l=(0,P.useRef)(e),u=(0,P.useRef)(t),d=(0,P.useRef)(t),f=(0,P.useRef)(null),p=(0,P.useRef)(null),m=(0,P.useRef)(null),[h,g]=(0,P.useState)(`rich`),[_,v]=(0,P.useState)(t),[y,b]=(0,P.useState)(0),[x,S]=(0,P.useState)(!1),[C,w]=(0,P.useState)(null),T=(0,P.useCallback)(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null)},[]),E=(0,P.useCallback)(async()=>{if(i){r(`saved`);return}p.current&&await p.current;let e=u.current;if(e===d.current){r(`saved`);return}r(`saving`),f.current=e;let t=(async()=>{await n(e),d.current=e})();p.current=t;try{if(await t,u.current===d.current){r(`saved`);return}await E()}catch(e){throw r(`error`),e instanceof Error?e:Error(`Autosave failed`)}finally{p.current===t&&(p.current=null,f.current=null)}},[n,r,i]),D=(0,P.useCallback)(()=>{i||(T(),m.current=window.setTimeout(()=>{m.current=null,E().catch(()=>void 0)},kre))},[T,E,i]),O=(0,P.useCallback)((e,t)=>{if(u.current=e,v(e),t){d.current=e,r(`saved`);return}if(i){r(`saved`);return}if(e===d.current){T(),r(`saved`);return}r(`idle`),D()},[T,r,i,D]),k=(0,P.useMemo)(()=>[JE(),bD(),qte(),pee(),DF(),z6(),fH(),eF(),OK({defaultCodeBlockLanguage:`txt`,codeBlockEditorDescriptors:[{priority:-10,match:()=>!0,Editor:p6}]}),x6({codeBlockLanguages:Are}),Wte(),Nne({viewMode:`rich-text`}),ure(),Mre(),e8({toolbarContents:()=>(0,$.jsxDEV)(xre,{options:[`rich-text`,`source`],children:(0,$.jsxDEV)(Nre,{},void 0,!1,{fileName:Y9,lineNumber:330,columnNumber:8},this)},void 0,!1,{fileName:Y9,lineNumber:329,columnNumber:7},this)})],[]);(0,P.useImperativeHandle)(o,()=>({flushSave:async()=>{T(),await E()},getMarkdown:()=>u.current})),(0,P.useEffect)(()=>()=>T(),[T]),(0,P.useEffect)(()=>{let n=l.current!==e,i=t!==d.current,a=!n&&p.current!==null&&t===f.current;!n&&!i||a||(l.current=e,T(),p.current=null,f.current=null,u.current=t,d.current=t,v(t),g(`rich`),n||b(e=>e+1),r(`saved`))},[e,t,r,T]),(0,P.useEffect)(()=>{if(!x)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),S(!1))};window.addEventListener(`keydown`,t);let n=window.requestAnimationFrame(()=>{h===`plain`||i?c.current?.focus({preventScroll:!0}):s.current?.focus(void 0,{preventScroll:!0})});return()=>{window.cancelAnimationFrame(n),window.removeEventListener(`keydown`,t),document.body.style.overflow=e}},[h,x,i]);let A=h===`plain`||i?(0,$.jsxDEV)(`div`,{className:`markdown-editor__plain-fallback`,children:[(0,$.jsxDEV)(`p`,{className:`markdown-editor__plain-notice`,children:i?`This document is read-only. Create a managed copy to edit it.`:`The rich editor could not safely load this document. You are editing raw Markdown.`},void 0,!1,{fileName:Y9,lineNumber:392,columnNumber:5},this),(0,$.jsxDEV)(`textarea`,{ref:c,className:`markdown-editor__plain-textarea`,"aria-label":`${a} source`,value:i?t:_,readOnly:i,onChange:e=>{if(i)return;let t=e.currentTarget.value;if(v(t),u.current=t,t===d.current){T(),r(`saved`);return}r(`idle`),D()},spellCheck:!1},void 0,!1,{fileName:Y9,lineNumber:397,columnNumber:5},this)]},void 0,!0,{fileName:Y9,lineNumber:391,columnNumber:4},this):(0,$.jsxDEV)(RE,{ref:s,className:`markdown-editor__mdx`,markdown:t,onChange:O,onError:e=>{console.error(`MDXEditor error`,e.error);let t=e.source||u.current;u.current=t,v(t),g(`plain`)},contentEditableClassName:`markdown-editor__content`,placeholder:(0,$.jsxDEV)(`span`,{children:`Start writing Markdown…`},void 0,!1,{fileName:Y9,lineNumber:434,columnNumber:18},this),overlayContainer:C,plugins:k},`${e}:${y}`,!1,{fileName:Y9,lineNumber:420,columnNumber:4},this);return(0,$.jsxDEV)($.Fragment,{children:[x?(0,$.jsxDEV)(`button`,{type:`button`,className:`markdown-editor__backdrop`,"aria-label":`Exit focused Markdown editor`,onClick:()=>S(!1)},void 0,!1,{fileName:Y9,lineNumber:443,columnNumber:6},this):null,(0,$.jsxDEV)(`div`,{ref:w,className:`markdown-editor-shell${x?` markdown-editor-shell--expanded`:``}`,"aria-label":a,"data-expanded":x?`true`:`false`,"data-read-only":i?`true`:`false`,children:[(0,$.jsxDEV)(`div`,{className:`markdown-editor__utility-bar`,children:[(0,$.jsxDEV)(`div`,{className:`markdown-editor__identity`,children:[(0,$.jsxDEV)(Pt,{size:14,"aria-hidden":`true`},void 0,!1,{fileName:Y9,lineNumber:459,columnNumber:8},this),(0,$.jsxDEV)(`span`,{children:`Markdown`},void 0,!1,{fileName:Y9,lineNumber:460,columnNumber:8},this),(0,$.jsxDEV)(`span`,{className:`markdown-editor__mode-label`,children:i?`Read only`:h===`plain`?`Source fallback`:`Rich + source`},void 0,!1,{fileName:Y9,lineNumber:461,columnNumber:8},this)]},void 0,!0,{fileName:Y9,lineNumber:458,columnNumber:7},this),(0,$.jsxDEV)(`button`,{type:`button`,className:`markdown-editor__expand-button`,"aria-label":x?`Exit focused editor`:`Open focused editor`,"aria-pressed":x,title:x?`Exit focused editor (Esc)`:`Open focused editor`,onClick:()=>S(e=>!e),children:[x?(0,$.jsxDEV)(Lt,{size:16,"aria-hidden":`true`},void 0,!1,{fileName:Y9,lineNumber:471,columnNumber:20},this):(0,$.jsxDEV)(It,{size:16,"aria-hidden":`true`},void 0,!1,{fileName:Y9,lineNumber:471,columnNumber:65},this),(0,$.jsxDEV)(`span`,{children:x?`Exit focus`:`Focus`},void 0,!1,{fileName:Y9,lineNumber:472,columnNumber:8},this)]},void 0,!0,{fileName:Y9,lineNumber:463,columnNumber:7},this)]},void 0,!0,{fileName:Y9,lineNumber:457,columnNumber:6},this),A]},void 0,!0,{fileName:Y9,lineNumber:450,columnNumber:5},this)]},void 0,!0)})),X9=`/root/code/pibo/.worktrees/release-1.11.4/src/apps/context-files-ui/src/main.tsx`;function Fre(){let e=(0,P.useRef)(null),t=(0,P.useRef)(`saved`),[n,r]=(0,P.useState)([]),[i,a]=(0,P.useState)(null),[o,s]=(0,P.useState)(null),[c,l]=(0,P.useState)([]),[u,d]=(0,P.useState)(null),[f,p]=(0,P.useState)(`saved`),[m,h]=(0,P.useState)(null),[g,_]=(0,P.useState)(null),[v,y]=(0,P.useState)(!0),[b,x]=(0,P.useState)(!1),[S,C]=(0,P.useState)(``),[w,T]=(0,P.useState)(`global`),[E,D]=(0,P.useState)(``),[O,k]=(0,P.useState)(``);(0,P.useEffect)(()=>{t.current=f},[f]);let A=(0,P.useCallback)(async e=>{if(s(e),a(e.key),h(null),_(null),!e.managed){l([]),d(null);return}let[t,n]=await Promise.all([Xt(e.key),e.sourceRef?Zt(e.key).catch(()=>null):Promise.resolve(null)]);l(t.revisions),d(n)},[]),j=(0,P.useCallback)(async()=>{let e=await Ut();r(e),a(t=>t??e[0]?.key??null)},[]),ee=(0,P.useCallback)(async e=>{await A(await Wt(e))},[A]);(0,P.useEffect)(()=>{j().catch(e=>_(e instanceof Error?e.message:String(e))).finally(()=>y(!1))},[j]),(0,P.useEffect)(()=>{if(!i){s(null);return}ee(i).catch(e=>_(e instanceof Error?e.message:String(e)))},[i,ee]),(0,P.useEffect)(()=>{let e=new EventSource(`/api/context-files/events`);return e.addEventListener(`pibo-product`,e=>{let n=Lre(e);if(!n?.type.startsWith(`context-file.`))return;j().catch(e=>_(e instanceof Error?e.message:String(e)));let r=n.payload?.key;if(!(!r||r!==i)&&n.source!==`web`){if(t.current===`idle`||t.current===`saving`){h(`This file changed on disk while you had local edits. Review before saving again.`);return}ee(r).catch(e=>_(e instanceof Error?e.message:String(e)))}}),e.onerror=()=>{_(`Live context-file updates disconnected.`)},()=>e.close()},[ee,j,i]);let M=(0,P.useMemo)(()=>n.find(e=>e.key===i)??null,[n,i]);(0,P.useEffect)(()=>{k(o?.agentProfileName??``)},[o?.agentProfileName,o?.key]);let te=(0,P.useCallback)(async t=>{try{await e.current?.flushSave(),a(t)}catch(e){_(e instanceof Error?e.message:String(e))}},[]),ne=(0,P.useCallback)(async()=>{try{let e=await Gt({label:S,scope:w,agentProfileName:w===`agent`?E:void 0,markdown:``});C(``),D(``),await j(),await A(e),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[E,S,w,A,j]),re=(0,P.useCallback)(async e=>{if(o)try{await A(await qt(o.key,{markdown:e,expectedVersion:o.version})),h(null),await j()}catch(e){throw Rre(e)&&(await A(e.data.file),h(`The file changed before save. The editor reloaded the latest disk version.`)),e}},[o,A,j]),ie=(0,P.useCallback)(async()=>{i&&(await ee(i),await j())},[ee,j,i]),ae=(0,P.useCallback)(async()=>{if(M?.removable)try{await Yt(M.key,!0),a(null),s(null),await j(),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[j,M]),oe=(0,P.useCallback)(async e=>{if(o?.managed)try{await A(await Jt(o.key,{scope:e,agentProfileName:e===`agent`?O:void 0})),await j(),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[o,A,O,j]),se=(0,P.useCallback)(async()=>{if(!(!M||M.source!==`plugin`)){x(!0);try{let e=await Kt(M.key);await j(),await A(e),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[A,j,M]),ce=(0,P.useCallback)(async()=>{if(!(!o?.managed||!o.sourceRef)){x(!0);try{let e=await Qt(o.key);await j(),await A(e)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,A,j]),le=(0,P.useCallback)(async()=>{if(!(!o?.managed||o.linkState!==`linked-stale`)){x(!0);try{let e=await $t(o.key);await j(),await A(e)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,A,j]),ue=(0,P.useCallback)(async e=>{if(o?.managed){x(!0);try{let t=await en(o.key,e);await j(),await A(t)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,A,j]);return(0,$.jsxDEV)(`div`,{className:`app-shell`,children:[(0,$.jsxDEV)(`aside`,{className:`sidebar`,children:[(0,$.jsxDEV)(`div`,{className:`sidebar-header`,children:[(0,$.jsxDEV)(`div`,{children:[(0,$.jsxDEV)(`p`,{className:`eyebrow`,children:`Pibo`},void 0,!1,{fileName:X9,lineNumber:286,columnNumber:7},this),(0,$.jsxDEV)(`h1`,{children:`Context Files`},void 0,!1,{fileName:X9,lineNumber:287,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:285,columnNumber:6},this),(0,$.jsxDEV)(`a`,{className:`chat-link`,href:`/apps/chat`,children:`Chat`},void 0,!1,{fileName:X9,lineNumber:289,columnNumber:6},this)]},void 0,!0,{fileName:X9,lineNumber:284,columnNumber:5},this),(0,$.jsxDEV)(`section`,{className:`tool-panel`,children:[(0,$.jsxDEV)(`div`,{className:`segmented`,children:[(0,$.jsxDEV)(`button`,{className:w===`global`?`active`:``,type:`button`,onClick:()=>T(`global`),children:[(0,$.jsxDEV)(Nt,{size:15},void 0,!1,{fileName:X9,lineNumber:295,columnNumber:8},this),`Global`]},void 0,!0,{fileName:X9,lineNumber:294,columnNumber:7},this),(0,$.jsxDEV)(`button`,{className:w===`agent`?`active`:``,type:`button`,onClick:()=>T(`agent`),children:[(0,$.jsxDEV)(Ft,{size:15},void 0,!1,{fileName:X9,lineNumber:299,columnNumber:8},this),`Agent`]},void 0,!0,{fileName:X9,lineNumber:298,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:293,columnNumber:6},this),(0,$.jsxDEV)(`input`,{value:S,onChange:e=>C(e.currentTarget.value),placeholder:`Context file name`},void 0,!1,{fileName:X9,lineNumber:303,columnNumber:6},this),w===`agent`?(0,$.jsxDEV)(`input`,{value:E,onChange:e=>D(e.currentTarget.value),placeholder:`agent-profile-name`},void 0,!1,{fileName:X9,lineNumber:305,columnNumber:7},this):null,(0,$.jsxDEV)(`button`,{className:`primary-action`,type:`button`,disabled:!S.trim()||w===`agent`&&!E.trim(),onClick:()=>void ne(),children:`Create File`},void 0,!1,{fileName:X9,lineNumber:307,columnNumber:6},this)]},void 0,!0,{fileName:X9,lineNumber:292,columnNumber:5},this),(0,$.jsxDEV)(`section`,{className:`file-list`,"aria-label":`Context files`,children:[(0,$.jsxDEV)(`div`,{className:`list-title`,children:[(0,$.jsxDEV)(Ft,{size:15},void 0,!1,{fileName:X9,lineNumber:314,columnNumber:7},this),(0,$.jsxDEV)(`span`,{children:[n.length,` files`]},void 0,!0,{fileName:X9,lineNumber:315,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:313,columnNumber:6},this),v?(0,$.jsxDEV)(`div`,{className:`empty`,children:`Loading`},void 0,!1,{fileName:X9,lineNumber:317,columnNumber:17},this):null,n.map(e=>(0,$.jsxDEV)(`button`,{type:`button`,className:e.key===i?`file-row selected`:`file-row`,onClick:()=>void te(e.key),children:[(0,$.jsxDEV)(`span`,{className:`file-name`,children:e.label||e.key},void 0,!1,{fileName:X9,lineNumber:325,columnNumber:8},this),(0,$.jsxDEV)(`span`,{className:`file-path`,children:e.path},void 0,!1,{fileName:X9,lineNumber:326,columnNumber:8},this),(0,$.jsxDEV)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:Q9(e)},void 0,!1,{fileName:X9,lineNumber:327,columnNumber:8},this),(0,$.jsxDEV)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:$9(e.linkState)},void 0,!1,{fileName:X9,lineNumber:328,columnNumber:8},this),e.exists?null:(0,$.jsxDEV)(`span`,{className:`missing`,children:`missing`},void 0,!1,{fileName:X9,lineNumber:329,columnNumber:30},this)]},e.key,!0,{fileName:X9,lineNumber:319,columnNumber:7},this)),!v&&n.length===0?(0,$.jsxDEV)(`div`,{className:`empty`,children:`No context files registered`},void 0,!1,{fileName:X9,lineNumber:332,columnNumber:40},this):null]},void 0,!0,{fileName:X9,lineNumber:312,columnNumber:5},this)]},void 0,!0,{fileName:X9,lineNumber:283,columnNumber:4},this),(0,$.jsxDEV)(`main`,{className:`editor-pane`,children:[(0,$.jsxDEV)(`header`,{className:`editor-header`,children:[(0,$.jsxDEV)(`div`,{className:`editor-title`,children:[(0,$.jsxDEV)(`p`,{className:`eyebrow`,children:M?Q9(M):`Context File`},void 0,!1,{fileName:X9,lineNumber:339,columnNumber:7},this),(0,$.jsxDEV)(`h2`,{children:o?.label||o?.key||`No file selected`},void 0,!1,{fileName:X9,lineNumber:340,columnNumber:7},this),o?(0,$.jsxDEV)(`p`,{className:`path-line`,children:o.path},void 0,!1,{fileName:X9,lineNumber:341,columnNumber:19},this):null]},void 0,!0,{fileName:X9,lineNumber:338,columnNumber:6},this),(0,$.jsxDEV)(`div`,{className:`editor-actions`,children:[(0,$.jsxDEV)(`span`,{className:`save-pill save-pill--${f}`,children:[(0,$.jsxDEV)(zt,{size:15},void 0,!1,{fileName:X9,lineNumber:345,columnNumber:8},this),Ire(f)]},void 0,!0,{fileName:X9,lineNumber:344,columnNumber:7},this),(0,$.jsxDEV)(`button`,{className:`icon-button`,type:`button`,title:`Reload`,onClick:()=>void ie(),children:(0,$.jsxDEV)(Rt,{size:16},void 0,!1,{fileName:X9,lineNumber:349,columnNumber:8},this)},void 0,!1,{fileName:X9,lineNumber:348,columnNumber:7},this),(0,$.jsxDEV)(`button`,{className:`icon-button danger`,type:`button`,title:`Remove managed file`,disabled:!M?.removable,onClick:()=>void ae(),children:(0,$.jsxDEV)(Bt,{size:16},void 0,!1,{fileName:X9,lineNumber:358,columnNumber:8},this)},void 0,!1,{fileName:X9,lineNumber:351,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:343,columnNumber:6},this)]},void 0,!0,{fileName:X9,lineNumber:337,columnNumber:5},this),g?(0,$.jsxDEV)(Z9,{tone:`error`,text:g},void 0,!1,{fileName:X9,lineNumber:363,columnNumber:14},this):null,m?(0,$.jsxDEV)(Z9,{tone:`warning`,text:m},void 0,!1,{fileName:X9,lineNumber:364,columnNumber:17},this):null,o?(0,$.jsxDEV)(`div`,{className:`scope-controls`,children:[(0,$.jsxDEV)(`div`,{children:[`State: `,(0,$.jsxDEV)(`strong`,{children:$9(o.linkState)},void 0,!1,{fileName:X9,lineNumber:367,columnNumber:19},this)]},void 0,!0,{fileName:X9,lineNumber:367,columnNumber:7},this),o.sourceRef?(0,$.jsxDEV)(`div`,{children:[`Source: `,(0,$.jsxDEV)(`code`,{children:o.sourceRef},void 0,!1,{fileName:X9,lineNumber:368,columnNumber:42},this)]},void 0,!0,{fileName:X9,lineNumber:368,columnNumber:29},this):null,o.sourceHash?(0,$.jsxDEV)(`div`,{children:[`Hash: `,(0,$.jsxDEV)(`code`,{children:o.sourceHash},void 0,!1,{fileName:X9,lineNumber:369,columnNumber:41},this)]},void 0,!0,{fileName:X9,lineNumber:369,columnNumber:30},this):null]},void 0,!0,{fileName:X9,lineNumber:366,columnNumber:6},this):null,o?.source===`plugin`?(0,$.jsxDEV)(`div`,{className:`scope-controls`,children:[(0,$.jsxDEV)(`div`,{children:`This is a plugin-owned source file. Create a managed copy before editing.`},void 0,!1,{fileName:X9,lineNumber:374,columnNumber:7},this),(0,$.jsxDEV)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void se(),children:`Create Managed Copy`},void 0,!1,{fileName:X9,lineNumber:375,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:373,columnNumber:6},this):null,o?.managed?(0,$.jsxDEV)(`div`,{className:`scope-controls`,children:[(0,$.jsxDEV)(`div`,{className:`segmented`,children:[(0,$.jsxDEV)(`button`,{type:`button`,className:o.scope===`global`?`active`:``,onClick:()=>void oe(`global`),children:`Global`},void 0,!1,{fileName:X9,lineNumber:383,columnNumber:8},this),(0,$.jsxDEV)(`button`,{type:`button`,className:o.scope===`agent`?`active`:``,onClick:()=>void oe(`agent`),disabled:!O.trim(),children:`Agent`},void 0,!1,{fileName:X9,lineNumber:386,columnNumber:8},this)]},void 0,!0,{fileName:X9,lineNumber:382,columnNumber:7},this),(0,$.jsxDEV)(`input`,{value:O,onChange:e=>k(e.currentTarget.value),placeholder:`agent-profile-name`},void 0,!1,{fileName:X9,lineNumber:390,columnNumber:7},this),o.sourceRef?(0,$.jsxDEV)($.Fragment,{children:[(0,$.jsxDEV)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void ce(),children:`Reset To Source`},void 0,!1,{fileName:X9,lineNumber:393,columnNumber:9},this),o.linkState===`linked-stale`?(0,$.jsxDEV)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void le(),children:`Adopt Source`},void 0,!1,{fileName:X9,lineNumber:397,columnNumber:10},this):null]},void 0,!0):null]},void 0,!0,{fileName:X9,lineNumber:381,columnNumber:6},this):null,o?.exists?(0,$.jsxDEV)(`div`,{className:`editor-frame`,children:(0,$.jsxDEV)(Pre,{ref:e,documentKey:o.key,initialMarkdown:o.markdown,onPersist:re,onSaveStateChange:p,readOnly:!o.editable,ariaLabel:o.label?`${o.label} Markdown editor`:`Context file Markdown editor`},void 0,!1,{fileName:X9,lineNumber:408,columnNumber:7},this)},void 0,!1,{fileName:X9,lineNumber:407,columnNumber:6},this):(0,$.jsxDEV)(`div`,{className:`empty-editor`,children:[(0,$.jsxDEV)(Vt,{size:20},void 0,!1,{fileName:X9,lineNumber:420,columnNumber:7},this),o?`The selected file is missing on disk.`:`Select or create a context file.`]},void 0,!0,{fileName:X9,lineNumber:419,columnNumber:6},this),o?.managed&&c.length>0?(0,$.jsxDEV)(`div`,{className:`scope-controls`,children:[(0,$.jsxDEV)(`h3`,{children:`Revisions`},void 0,!1,{fileName:X9,lineNumber:426,columnNumber:7},this),(0,$.jsxDEV)(`div`,{className:`file-list`,children:c.map(e=>(0,$.jsxDEV)(`div`,{className:`file-row`,children:[(0,$.jsxDEV)(`div`,{children:[(0,$.jsxDEV)(`strong`,{children:e.kind},void 0,!1,{fileName:X9,lineNumber:431,columnNumber:11},this),` `,e.active?`(active)`:``]},void 0,!0,{fileName:X9,lineNumber:430,columnNumber:10},this),(0,$.jsxDEV)(`div`,{children:e.note??e.id},void 0,!1,{fileName:X9,lineNumber:433,columnNumber:10},this),(0,$.jsxDEV)(`div`,{children:e.createdAt},void 0,!1,{fileName:X9,lineNumber:434,columnNumber:10},this),e.active?null:(0,$.jsxDEV)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void ue(e.id),children:`Restore`},void 0,!1,{fileName:X9,lineNumber:436,columnNumber:11},this)]},e.id,!0,{fileName:X9,lineNumber:429,columnNumber:9},this))},void 0,!1,{fileName:X9,lineNumber:427,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:425,columnNumber:6},this):null,o?.managed&&u?(0,$.jsxDEV)(`div`,{className:`scope-controls`,children:[(0,$.jsxDEV)(`h3`,{children:`Diff`},void 0,!1,{fileName:X9,lineNumber:447,columnNumber:7},this),(0,$.jsxDEV)(`div`,{className:`file-list`,children:u.chunks.map((e,t)=>(0,$.jsxDEV)(`pre`,{className:`file-row`,children:e.lines.map(t=>`${e.type===`add`?`+`:e.type===`remove`?`-`:` `} ${t}`).join(`
438
+ `)},`${e.type}-${t}`,!1,{fileName:X9,lineNumber:450,columnNumber:9},this))},void 0,!1,{fileName:X9,lineNumber:448,columnNumber:7},this)]},void 0,!0,{fileName:X9,lineNumber:446,columnNumber:6},this):null]},void 0,!0,{fileName:X9,lineNumber:336,columnNumber:4},this)]},void 0,!0,{fileName:X9,lineNumber:282,columnNumber:3},this)}function Z9({tone:e,text:t}){return(0,$.jsxDEV)(`div`,{className:`status-banner status-banner--${e}`,children:t},void 0,!1,{fileName:X9,lineNumber:461,columnNumber:9},this)}function Ire(e){return e===`saving`?`Saving`:e===`saved`?`Saved`:e===`error`?`Error`:`Unsaved`}function Q9(e){return e.source===`plugin`?`Plugin Global`:e.scope===`agent`?e.agentProfileName?`Agent ${e.agentProfileName}`:`Agent Local`:`Global`}function $9(e){return e===`plugin-only`?`Plugin Only`:e===`linked-clean`?`Linked Clean`:e===`linked-dirty`?`Linked Dirty`:e===`linked-stale`?`Linked Stale`:e===`orphaned`?`Orphaned`:`Managed Unlinked`}function Lre(e){try{let t=JSON.parse(e.data);return t&&typeof t.type==`string`?t:void 0}catch{return}}function Rre(e){return typeof e==`object`&&!!e&&`status`in e&&e.status===409&&`data`in e&&typeof e.data==`object`&&e.data?.file!==void 0}(0,Ht.createRoot)(document.getElementById(`root`)).render((0,$.jsxDEV)(P.StrictMode,{children:(0,$.jsxDEV)(Fre,{},void 0,!1,{fileName:X9,lineNumber:509,columnNumber:3},void 0)},void 0,!1,{fileName:X9,lineNumber:508,columnNumber:2},void 0));export{IK as a,FK as i,q$ as n,Kq as o,zZ as r,F1 as t};