@abtnode/webapp 1.16.28 → 1.16.29-beta-e04c6f40

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 (205) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-B8Ae2MjM.js → Add-xExgHDod.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-BNt-WuI3.js → ArrowDropDown-KUzipi3t.js} +1 -1
  5. package/dist/assets/{Autocomplete-Bo6UH2XL.js → Autocomplete-Er311sva.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-CkmMkQDW.js → Breadcrumbs-Pqx4il3S.js} +1 -1
  7. package/dist/assets/{ButtonGroup-OcQcEz6r.js → ButtonGroup-BcupcRIM.js} +1 -1
  8. package/dist/assets/{CheckCircle-BnRenrK4.js → CheckCircle-zUiCwNZs.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Dp9aa91c.js → ChevronLeft-Bet4yQzf.js} +1 -1
  10. package/dist/assets/{ChevronRight-C3NPaw6o.js → ChevronRight-DVus-Y96.js} +1 -1
  11. package/dist/assets/{Close-Cbaq-RRq.js → Close-O3YNtovt.js} +1 -1
  12. package/dist/assets/Delete-DOCRW1Ln.js +1 -0
  13. package/dist/assets/{DeleteOutline-B4LqoCK2.js → DeleteOutline-CUojn4xn.js} +1 -1
  14. package/dist/assets/{Done-BCLH1e-Y.js → Done-BbWcazKr.js} +1 -1
  15. package/dist/assets/{Edit-i_Bman7K.js → Edit-BhCFwv7o.js} +1 -1
  16. package/dist/assets/{EditIcon-DmNEjmIQ.js → EditIcon-CERx0ivQ.js} +1 -1
  17. package/dist/assets/{FilterList-fpG1-3KQ.js → FilterList-BRYDdfFq.js} +4 -4
  18. package/dist/assets/{Google-DLkd6TAZ.js → Google-CdmAvvA5.js} +3 -3
  19. package/dist/assets/{Https-amCzjB1a.js → Https-D3zQe1g3.js} +1 -1
  20. package/dist/assets/{InputAdornment-C6LFxcti.js → InputAdornment-CiVUPEjM.js} +1 -1
  21. package/dist/assets/{InputLabel-avYwCvJM.js → InputLabel-Cl0jKlH9.js} +1 -1
  22. package/dist/assets/{LastPage-DnBOlrut.js → LastPage-DIXa5YVo.js} +1 -1
  23. package/dist/assets/{Launch-DPclIZbd.js → Launch-u57ssxVt.js} +1 -1
  24. package/dist/assets/{Link-DfSEdivF.js → Link-8ntBDNt-.js} +1 -1
  25. package/dist/assets/{LoadingButton-xveWP_M5.js → LoadingButton-BhxaC5Ed.js} +1 -1
  26. package/dist/assets/{LockIcon-9c7sG23a.js → LockIcon-CkFf2isB.js} +1 -1
  27. package/dist/assets/{Loop-DwAWKPvc.js → Loop-BnL-Vxc4.js} +1 -1
  28. package/dist/assets/{MoreVert-Nc1QBj2D.js → MoreVert-LBoMA9yq.js} +1 -1
  29. package/dist/assets/{Pagination-D5t0OCBH.js → Pagination-B0vuu0Jz.js} +1 -1
  30. package/dist/assets/{Public-BLh26Bb9.js → Public-BPRyPUP1.js} +1 -1
  31. package/dist/assets/{SchemaReference.es--oFfd0mm.js → SchemaReference.es-Cw9PnK9u.js} +1 -1
  32. package/dist/assets/{Search-DnnCUnjB.js → Search-DoXY8XQp.js} +1 -1
  33. package/dist/assets/{Select-CBA-xyOJ.js → Select-CSRNZbOq.js} +2 -2
  34. package/dist/assets/{Skeleton-CQPjJHp3.js → Skeleton-CZxXS4jE.js} +5 -5
  35. package/dist/assets/{Slider-Bdpm9oO4.js → Slider-BcITXKtu.js} +1 -1
  36. package/dist/assets/{Stepper-UEQaZPW7.js → Stepper-mccJibcr.js} +1 -1
  37. package/dist/assets/TextField-HCXJkIb-.js +1 -0
  38. package/dist/assets/{ToggleButtonGroup-Drarswgi.js → ToggleButtonGroup-DNi-APKM.js} +1 -1
  39. package/dist/assets/{ViewList-CoYI2XgO.js → ViewList-B0D9uEjF.js} +1 -1
  40. package/dist/assets/{actions-BAUfPsQv.js → actions-CAskIzvr.js} +1 -1
  41. package/dist/assets/actions-Cs-U54uv.js +11 -0
  42. package/dist/assets/{agreement-_qYynElX.js → agreement-Dqwk0Qk1.js} +3 -3
  43. package/dist/assets/api-UGqvGbaE.js +1 -0
  44. package/dist/assets/app-avatar-DnQtdz_O.js +1 -0
  45. package/dist/assets/ar-DDqDOM6_.js +1 -0
  46. package/dist/assets/{audit-logs-BqT_1MLt.js → audit-logs-elaTyIYr.js} +1 -1
  47. package/dist/assets/{brace-fold.es-CkrKXotH.js → brace-fold.es-CHAwFrP-.js} +1 -1
  48. package/dist/assets/{bundle-avatar-RiFaz1Hb.js → bundle-avatar-DQKqTcLf.js} +1 -1
  49. package/dist/assets/{chart-Cinf5zq_.js → chart-B4WtoTol.js} +1 -1
  50. package/dist/assets/{click-to-copy-Bj13kdln.js → click-to-copy-BxTGXnkW.js} +1 -1
  51. package/dist/assets/{closebrackets.es-C32XuxI5.js → closebrackets.es-Cowrx9Wh.js} +1 -1
  52. package/dist/assets/{codemirror.es-oms3GpFv.js → codemirror.es-DDaWBk7v.js} +1 -1
  53. package/dist/assets/{comment.es-AVZXTIDr.js → comment.es-BpMZ3nSF.js} +1 -1
  54. package/dist/assets/config-navigation-mgsMFCq0.js +25 -0
  55. package/dist/assets/de-Df9PmQSL.js +1 -0
  56. package/dist/assets/delete-confirm-G3-jMPGR.js +1 -0
  57. package/dist/assets/{detail-CHKmnQLc.js → detail-BBKDt7TH.js} +3 -3
  58. package/dist/assets/{dialog.es-DHZdXjGS.js → dialog.es-CRh6VOLz.js} +1 -1
  59. package/dist/assets/{download-DFPnF7mz.js → download-BK5ocL5s.js} +1 -1
  60. package/dist/assets/es-BQD9zWi-.js +1 -0
  61. package/dist/assets/{foldgutter.es-CSicbQSJ.js → foldgutter.es-CHLe3IFg.js} +1 -1
  62. package/dist/assets/fr-DNx2OQyQ.js +1 -0
  63. package/dist/assets/getValidReactChildren-C2KGwF2r.js +1 -0
  64. package/dist/assets/hi-BmEkoTIE.js +1 -0
  65. package/dist/assets/{hint.es-DAEQ9N76.js → hint.es-qHNwvQXY.js} +1 -1
  66. package/dist/assets/{hint.es2-DYXluLKu.js → hint.es2-DRHlNN6z.js} +1 -1
  67. package/dist/assets/id-DXu5sStK.js +1 -0
  68. package/dist/assets/{iframe-DwuYX0Xq.js → iframe-D-PNyLg3.js} +1 -1
  69. package/dist/assets/{index-B60jROHj.js → index-3ruoHhFa.js} +26 -26
  70. package/dist/assets/{index-zFXZLqso.js → index-3sl31tmo.js} +2 -2
  71. package/dist/assets/{index-CZKHzmkC.js → index-B1h0P1L0.js} +1 -1
  72. package/dist/assets/index-B1yKtvhn.js +54 -0
  73. package/dist/assets/{index-BbS1Wq4p.js → index-B6HWus5t.js} +1 -1
  74. package/dist/assets/{index-baq8DMtQ.js → index-BhwGm9ir.js} +9 -9
  75. package/dist/assets/{index-DKkTRBZn.js → index-BlSaylBC.js} +4 -4
  76. package/dist/assets/{index-DOsg2sHH.js → index-Boc7heJK.js} +1 -1
  77. package/dist/assets/{index-cmiUur_8.js → index-Boe-4fof.js} +1 -1
  78. package/dist/assets/{index-CiZAReVP.js → index-Br7MMAwb.js} +1 -1
  79. package/dist/assets/{index-ZQu91rXz.js → index-Bt8_a71i.js} +1 -1
  80. package/dist/assets/{index-BVznp3M0.js → index-C4esebAE.js} +1 -1
  81. package/dist/assets/{index-BbW2IRRR.js → index-C5c3sxc7.js} +3 -3
  82. package/dist/assets/{index-0RUAEm49.js → index-C7piHvhS.js} +2 -2
  83. package/dist/assets/{index-BKi0XLcv.js → index-C8OOX63T.js} +1 -1
  84. package/dist/assets/{index-DfNh08gP.js → index-CAP7ccf-.js} +3 -3
  85. package/dist/assets/{index-Cl2QG8J6.js → index-CCMFLAjE.js} +16 -16
  86. package/dist/assets/{index-CKOyruf_.js → index-CGedY69r.js} +2 -2
  87. package/dist/assets/{index-ByF3apMm.js → index-CI3-G8f5.js} +3 -3
  88. package/dist/assets/{index-9R6mPPbN.js → index-CMw6A55r.js} +1 -1
  89. package/dist/assets/index-COVe-oac.js +1 -0
  90. package/dist/assets/{index-D5MDxbqt.js → index-CTWxKp8R.js} +1 -1
  91. package/dist/assets/{index-DHYJxTcV.js → index-CU4Kco8M.js} +57 -57
  92. package/dist/assets/{index-DrWhB0MJ.js → index-CfjU2vkP.js} +1 -1
  93. package/dist/assets/{index-BBnT5XB9.js → index-Cjw9QiwF.js} +1 -1
  94. package/dist/assets/{index-CyYUysSv.js → index-CpWB9aT7.js} +1 -1
  95. package/dist/assets/{index-CIbzY-F7.js → index-CsGASsXO.js} +1 -1
  96. package/dist/assets/{index-v2cqn0eS.js → index-CuZgQfxG.js} +1 -1
  97. package/dist/assets/{index-BnFWpIPQ.js → index-Cx08Fq4-.js} +1 -1
  98. package/dist/assets/{index-CHjwpGia.js → index-D0mxQWU5.js} +7 -7
  99. package/dist/assets/{index-DSByvARI.js → index-DHWCojAQ.js} +1 -1
  100. package/dist/assets/{index-DcU_Cijj.js → index-DIJ53y8c.js} +1 -1
  101. package/dist/assets/index-DIbFXQTV.js +1 -0
  102. package/dist/assets/{index-7J6TijHC.js → index-Dkkm6kzm.js} +1 -1
  103. package/dist/assets/{index-rPqHtLu4.js → index-Dw9clXjq.js} +1 -1
  104. package/dist/assets/{index-CucnV9EX.js → index-DzW0Cxov.js} +25 -25
  105. package/dist/assets/index-LlxzMpy3.js +231 -0
  106. package/dist/assets/{index-DV2quTIn.js → index-M5WcRzZV.js} +1 -1
  107. package/dist/assets/index-P1GJ1Y4T.js +177 -0
  108. package/dist/assets/{index-CqcpZ8C3.js → index-Pf5VRxU2.js} +174 -210
  109. package/dist/assets/{index-CtzAe2AR.js → index-RQQsaMDK.js} +1 -1
  110. package/dist/assets/{index-DPx9NPlp.js → index-_RvLZsys.js} +1 -1
  111. package/dist/assets/index-hFhjFjqL.js +58 -0
  112. package/dist/assets/{index-ECk6dODK.js → index-y8_7sFXl.js} +10 -10
  113. package/dist/assets/{index.es-Dkh9ejMp.js → index.es-0GspS0hl.js} +1 -1
  114. package/dist/assets/{index.esm-Hqw0Nfnx.js → index.esm-CJT_Vb_Y.js} +1 -1
  115. package/dist/assets/{info-addon.es-5NmROke-.js → info-addon.es-BvWPiOWh.js} +1 -1
  116. package/dist/assets/{info.es-CsELEfUv.js → info.es-D6grONEz.js} +1 -1
  117. package/dist/assets/{install-from-url-DXGlT7R8.js → install-from-url-CLk48T0_.js} +1 -1
  118. package/dist/assets/invitation-4W3IOdXy.js +200 -0
  119. package/dist/assets/{is-path-prefix-equal-CoJozASB.js → is-path-prefix-equal-DQciVrFn.js} +1 -1
  120. package/dist/assets/{isEqual-BLnnfE4T.js → isEqual-C5Iu_kl-.js} +1 -1
  121. package/dist/assets/{item-tD3jAfba.js → item-C9bzNYRu.js} +31 -31
  122. package/dist/assets/ja-thyFR9rH.js +1 -0
  123. package/dist/assets/{javascript.es-BIUhEWTj.js → javascript.es-CWlPpygW.js} +1 -1
  124. package/dist/assets/{jump-to-line.es-BQjWkUgo.js → jump-to-line.es-D7dd2At6.js} +1 -1
  125. package/dist/assets/{jump.es-D8ZxFsmc.js → jump.es-WtAW-Ijf.js} +1 -1
  126. package/dist/assets/ko-BJSWgMML.js +1 -0
  127. package/dist/assets/{line-DW0juCGB.js → line-Cfyg0g9I.js} +4 -4
  128. package/dist/assets/{lint.es-Dv2pWRyz.js → lint.es-aUUps1ME.js} +1 -1
  129. package/dist/assets/{lint.es2-CqGQ_rnk.js → lint.es2-CDvv_d9A.js} +1 -1
  130. package/dist/assets/{lint.es3-g58ofVJA.js → lint.es3-DTrQmP6j.js} +1 -1
  131. package/dist/assets/{list-header-tjKXNgOR.js → list-header-BG2QMZZz.js} +1 -1
  132. package/dist/assets/{log-BFiA_Tyh.js → log-DIJPVIRP.js} +1 -1
  133. package/dist/assets/{lottie-yeTV0Y2m.js → lottie-BkwIvhEu.js} +1 -1
  134. package/dist/assets/{matchbrackets.es-B-Xj5H9Q.js → matchbrackets.es-CCjeMHPP.js} +1 -1
  135. package/dist/assets/{memory-C7a59RsU.js → memory-CYabGN8q.js} +1 -1
  136. package/dist/assets/{mode.es-BSNxo6gK.js → mode.es-kZQjUXx0.js} +1 -1
  137. package/dist/assets/{mode.es2-C1LDwVOl.js → mode.es2-hCaXf0ad.js} +1 -1
  138. package/dist/assets/{mode.es3-C6-ZTyOk.js → mode.es3-DlVh9_RV.js} +1 -1
  139. package/dist/assets/{onlineParser.es-BzK7GlZv.js → onlineParser.es-g03lcwfp.js} +1 -1
  140. package/dist/assets/overview-BFHUS9cz.js +23 -0
  141. package/dist/assets/{pt-fvVMjgC8.js → pt-D828CXoS.js} +1 -1
  142. package/dist/assets/{react-1fE0Sobf.js → react-DjQtZm70.js} +7 -7
  143. package/dist/assets/{redux-hfExDDyr.js → redux-0yltQfyb.js} +1 -1
  144. package/dist/assets/{resource-dialog-DinbvH2C.js → resource-dialog-B2vu5Of2.js} +2 -2
  145. package/dist/assets/ru-t_aX-wsm.js +1 -0
  146. package/dist/assets/{runtime-tAjj0dmb.js → runtime-C9hFU3Ij.js} +1 -1
  147. package/dist/assets/{search.es-DxfjuUNu.js → search.es-C20qP8Vq.js} +1 -1
  148. package/dist/assets/{searchcursor.es-C0Z2DY1c.js → searchcursor.es-Cy-3eaEN.js} +1 -1
  149. package/dist/assets/service-CkoGqY1V.js +1 -0
  150. package/dist/assets/{show-hint.es-q24U0q_A.js → show-hint.es-DAqKK5Qn.js} +1 -1
  151. package/dist/assets/{slicedToArray-CYGiqzmA.js → slicedToArray-Bl_ysqUF.js} +3 -3
  152. package/dist/assets/{spaces-C58gy1rM.js → spaces-CE3KwDvq.js} +1 -1
  153. package/dist/assets/{sublime.es-BffqyCoy.js → sublime.es-DPcVE8hJ.js} +1 -1
  154. package/dist/assets/{switch-control-CuPWIx6T.js → switch-control-CCSLs9W3.js} +1 -1
  155. package/dist/assets/{table-icons-DOOoyljy.js → table-icons-B9NLkXar.js} +10 -10
  156. package/dist/assets/{tag-Cxx1sXPF.js → tag-_nponNF2.js} +1 -1
  157. package/dist/assets/{team-BynFP1rM.js → team-wy2ENAAe.js} +1 -1
  158. package/dist/assets/th-DvaD_9E5.js +1 -0
  159. package/dist/assets/toUpper-D-lxmi1w.js +1 -0
  160. package/dist/assets/{traffic-D03HdfGL.js → traffic-BU3E2tw9.js} +5 -5
  161. package/dist/assets/{url-evaluation-dheoi_Nj.js → url-evaluation-CAG0Y4FK.js} +4 -4
  162. package/dist/assets/{url-join-DMIMYkEk.js → url-join-DMJmszyo.js} +1 -1
  163. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DWywlTbc.js → use-blocklet-info-for-connect-did-spaces-Bc-o6Zkq.js} +1 -1
  164. package/dist/assets/{useLocalStorage-C3GQNaV2.js → useLocalStorage-D4xQyg06.js} +1 -1
  165. package/dist/assets/{util-cf4pvQDW.js → util-CuvemqGW.js} +1 -1
  166. package/dist/assets/vi-B4VdHKzm.js +1 -0
  167. package/dist/assets/{wait-container-BwlRhWl0.js → wait-container-CdR6E8LE.js} +4 -4
  168. package/dist/assets/{withStyles-BkcRLEgx.js → withStyles-Ct7uoTy7.js} +1 -1
  169. package/dist/assets/wrap-locale-C2k9YLGh.js +1 -0
  170. package/dist/assets/zh-D0ck6JaG.js +2 -0
  171. package/dist/assets/zh-tw-C19pg5Jo.js +1 -0
  172. package/dist/index.html +1 -1
  173. package/dist/service-worker.js +1 -1
  174. package/package.json +1 -1
  175. package/dist/assets/Delete-CnrKsAGC.js +0 -1
  176. package/dist/assets/TextField-DjRhIjo4.js +0 -1
  177. package/dist/assets/actions-C1t0ka-G.js +0 -11
  178. package/dist/assets/api-xvCGCwMn.js +0 -1
  179. package/dist/assets/app-avatar-DcgC0kB0.js +0 -1
  180. package/dist/assets/ar-B5gcsN0k.js +0 -1
  181. package/dist/assets/config-navigation-LFUjTzgk.js +0 -25
  182. package/dist/assets/de-WUCASh9G.js +0 -1
  183. package/dist/assets/delete-confirm-BoeDYrYX.js +0 -1
  184. package/dist/assets/es-DsRorAcf.js +0 -1
  185. package/dist/assets/fr-CUMFVKph.js +0 -1
  186. package/dist/assets/getValidReactChildren-GMOIXwRG.js +0 -1
  187. package/dist/assets/hi-BinC6-tx.js +0 -1
  188. package/dist/assets/id-BVFhYsL8.js +0 -1
  189. package/dist/assets/index-BKck0oIO.js +0 -234
  190. package/dist/assets/index-DU7hJgoO.js +0 -1
  191. package/dist/assets/index-DmPgcoiv.js +0 -150
  192. package/dist/assets/index-DsUZ7uiP.js +0 -58
  193. package/dist/assets/index-HOVCi07-.js +0 -54
  194. package/dist/assets/invitation-CSNEw5oM.js +0 -200
  195. package/dist/assets/ja-B1xj2XMp.js +0 -1
  196. package/dist/assets/ko-Buo9FEc0.js +0 -1
  197. package/dist/assets/overview-BlWFlRx2.js +0 -23
  198. package/dist/assets/ru-OQD02sOm.js +0 -1
  199. package/dist/assets/service-1GhnQw9a.js +0 -1
  200. package/dist/assets/th-DaDxf6qI.js +0 -1
  201. package/dist/assets/toUpper-mYvRPeiI.js +0 -1
  202. package/dist/assets/vi-D2hO2mdU.js +0 -1
  203. package/dist/assets/wrap-locale-BqGpRCMA.js +0 -1
  204. package/dist/assets/zh-OQY8LvIH.js +0 -2
  205. package/dist/assets/zh-tw-Dd8o0udA.js +0 -1
@@ -1,15 +1,15 @@
1
- const __vite__fileDeps=["./codemirror.es-oms3GpFv.js","./index-CqcpZ8C3.js","./index-D7K8de1w.css","./show-hint.es-q24U0q_A.js","./matchbrackets.es-B-Xj5H9Q.js","./closebrackets.es-C32XuxI5.js","./brace-fold.es-CkrKXotH.js","./foldgutter.es-CSicbQSJ.js","./lint.es3-g58ofVJA.js","./searchcursor.es-C0Z2DY1c.js","./jump-to-line.es-BQjWkUgo.js","./dialog.es-DHZdXjGS.js","./sublime.es-BffqyCoy.js","./javascript.es-BIUhEWTj.js","./comment.es-AVZXTIDr.js","./search.es-DxfjuUNu.js","./hint.es-DAEQ9N76.js","./Range.es-DaV7MD2W.js","./onlineParser.es-BzK7GlZv.js","./introspection.es-CPJcz6nz.js","./lint.es-Dv2pWRyz.js","./info.es-CsELEfUv.js","./SchemaReference.es--oFfd0mm.js","./forEachState.es-D8bf0zSr.js","./info-addon.es-5NmROke-.js","./jump.es-D8ZxFsmc.js","./mode.es-BSNxo6gK.js","./hint.es2-DYXluLKu.js","./lint.es2-CqGQ_rnk.js","./mode.es3-C6-ZTyOk.js","./mode.es2-C1LDwVOl.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{cK as ii,cL as Xk,Y as Q1,r as ie,bo as Xe,ba as L,cM as Uv,cN as zv,cO as Kk,g as Y1,cP as ex,cQ as tx,cR as nx,cS as rx,cT as ox,j as J1,f as ix,cU as sx}from"./index-CqcpZ8C3.js";var Z1={};const ax=ii(Xk);var vp={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function g(E,C){for(var S=0;S<C.length;S++){var N=C[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(E,N.key,N)}}return function(E,C,S){return C&&g(E.prototype,C),S&&g(E,S),E}}(),o=ie,i=l(o),a=Q1;function l(g){return g&&g.__esModule?g:{default:g}}function f(g,E,C){return E in g?Object.defineProperty(g,E,{value:C,enumerable:!0,configurable:!0,writable:!0}):g[E]=C,g}function d(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function h(g,E){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:g}function v(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(g,E):g.__proto__=E)}var y=function(g){v(E,g);function E(C){d(this,E);var S=h(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C));return S.scriptLoaderId="id"+S.constructor.idCount++,S}return n(E,[{key:"componentDidMount",value:function(){var S=this.props,N=S.onError,D=S.onLoad,T=S.url;if(this.constructor.loadedScripts[T]){D();return}if(this.constructor.erroredScripts[T]){N();return}if(this.constructor.scriptObservers[T]){this.constructor.scriptObservers[T][this.scriptLoaderId]=this.props;return}this.constructor.scriptObservers[T]=f({},this.scriptLoaderId,this.props),this.createScript()}},{key:"componentWillUnmount",value:function(){var S=this.props.url,N=this.constructor.scriptObservers[S];N&&delete N[this.scriptLoaderId]}},{key:"createScript",value:function(){var S=this,N=this.props,D=N.onCreate,T=N.url,O=N.attributes,V=document.createElement("script");D(),O&&Object.keys(O).forEach(function(P){return V.setAttribute(P,O[P])}),V.src=T,V.hasAttribute("async")||(V.async=1);var Y=function(U){var K=S.constructor.scriptObservers[T];Object.keys(K).forEach(function(G){U(K[G])&&delete S.constructor.scriptObservers[T][S.scriptLoaderId]})};V.onload=function(){S.constructor.loadedScripts[T]=!0,Y(function(P){return P.onLoad(),!0})},V.onerror=function(){S.constructor.erroredScripts[T]=!0,Y(function(P){return P.onError(),!0})},document.body.appendChild(V)}},{key:"render",value:function(){return null}}]),E}(i.default.Component);y.propTypes={attributes:a.PropTypes.object,onCreate:a.PropTypes.func,onError:a.PropTypes.func.isRequired,onLoad:a.PropTypes.func.isRequired,url:a.PropTypes.string.isRequired},y.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},y.scriptObservers={},y.loadedScripts={},y.erroredScripts={},y.idCount=0,e.default=y,t.exports=e.default})(vp,vp.exports);var cx=vp.exports;const lx="16.8.1",ux=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});function Pe(t,e){if(!!!t)throw new Error(e)}function gn(t){return typeof(t==null?void 0:t.then)=="function"}function yn(t){return typeof t=="object"&&t!==null}function _t(t,e){if(!!!t)throw new Error(e??"Unexpected invariant triggered.")}const fx=/\r\n|[\n\r]/g;function cl(t,e){let n=0,o=1;for(const i of t.body.matchAll(fx)){if(typeof i.index=="number"||_t(!1),i.index>=e)break;n=i.index+i[0].length,o+=1}return{line:o,column:e+1-n}}function X1(t){return td(t.source,cl(t.source,t.start))}function td(t,e){const n=t.locationOffset.column-1,o="".padStart(n)+t.body,i=e.line-1,a=t.locationOffset.line-1,l=e.line+a,f=e.line===1?n:0,d=e.column+f,h=`${t.name}:${l}:${d}
1
+ const __vite__fileDeps=["./codemirror.es-DDaWBk7v.js","./index-Pf5VRxU2.js","./index-D7K8de1w.css","./show-hint.es-DAqKK5Qn.js","./matchbrackets.es-CCjeMHPP.js","./closebrackets.es-Cowrx9Wh.js","./brace-fold.es-CHAwFrP-.js","./foldgutter.es-CHLe3IFg.js","./lint.es3-DTrQmP6j.js","./searchcursor.es-Cy-3eaEN.js","./jump-to-line.es-D7dd2At6.js","./dialog.es-CRh6VOLz.js","./sublime.es-DPcVE8hJ.js","./javascript.es-CWlPpygW.js","./comment.es-BpMZ3nSF.js","./search.es-C20qP8Vq.js","./hint.es-qHNwvQXY.js","./Range.es-DaV7MD2W.js","./onlineParser.es-g03lcwfp.js","./introspection.es-CPJcz6nz.js","./lint.es-aUUps1ME.js","./info.es-D6grONEz.js","./SchemaReference.es-Cw9PnK9u.js","./forEachState.es-D8bf0zSr.js","./info-addon.es-BvWPiOWh.js","./jump.es-WtAW-Ijf.js","./mode.es-kZQjUXx0.js","./hint.es2-DRHlNN6z.js","./lint.es2-CDvv_d9A.js","./mode.es3-DlVh9_RV.js","./mode.es2-hCaXf0ad.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{cv as ii,cS as Xk,Y as Q1,r as ie,bn as Xe,b9 as F,cT as Uv,cU as zv,cV as Kk,g as Y1,cz as ex,cW as tx,cX as nx,cY as rx,cZ as ox,j as J1,f as ix,c_ as sx}from"./index-Pf5VRxU2.js";var Z1={};const ax=ii(Xk);var vp={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function g(E,C){for(var S=0;S<C.length;S++){var N=C[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(E,N.key,N)}}return function(E,C,S){return C&&g(E.prototype,C),S&&g(E,S),E}}(),o=ie,i=l(o),a=Q1;function l(g){return g&&g.__esModule?g:{default:g}}function f(g,E,C){return E in g?Object.defineProperty(g,E,{value:C,enumerable:!0,configurable:!0,writable:!0}):g[E]=C,g}function d(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function h(g,E){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:g}function v(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(g,E):g.__proto__=E)}var y=function(g){v(E,g);function E(C){d(this,E);var S=h(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C));return S.scriptLoaderId="id"+S.constructor.idCount++,S}return n(E,[{key:"componentDidMount",value:function(){var S=this.props,N=S.onError,D=S.onLoad,T=S.url;if(this.constructor.loadedScripts[T]){D();return}if(this.constructor.erroredScripts[T]){N();return}if(this.constructor.scriptObservers[T]){this.constructor.scriptObservers[T][this.scriptLoaderId]=this.props;return}this.constructor.scriptObservers[T]=f({},this.scriptLoaderId,this.props),this.createScript()}},{key:"componentWillUnmount",value:function(){var S=this.props.url,N=this.constructor.scriptObservers[S];N&&delete N[this.scriptLoaderId]}},{key:"createScript",value:function(){var S=this,N=this.props,D=N.onCreate,T=N.url,O=N.attributes,V=document.createElement("script");D(),O&&Object.keys(O).forEach(function(P){return V.setAttribute(P,O[P])}),V.src=T,V.hasAttribute("async")||(V.async=1);var Y=function(U){var K=S.constructor.scriptObservers[T];Object.keys(K).forEach(function(G){U(K[G])&&delete S.constructor.scriptObservers[T][S.scriptLoaderId]})};V.onload=function(){S.constructor.loadedScripts[T]=!0,Y(function(P){return P.onLoad(),!0})},V.onerror=function(){S.constructor.erroredScripts[T]=!0,Y(function(P){return P.onError(),!0})},document.body.appendChild(V)}},{key:"render",value:function(){return null}}]),E}(i.default.Component);y.propTypes={attributes:a.PropTypes.object,onCreate:a.PropTypes.func,onError:a.PropTypes.func.isRequired,onLoad:a.PropTypes.func.isRequired,url:a.PropTypes.string.isRequired},y.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},y.scriptObservers={},y.loadedScripts={},y.erroredScripts={},y.idCount=0,e.default=y,t.exports=e.default})(vp,vp.exports);var cx=vp.exports;const lx="16.8.1",ux=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});function Pe(t,e){if(!!!t)throw new Error(e)}function gn(t){return typeof(t==null?void 0:t.then)=="function"}function yn(t){return typeof t=="object"&&t!==null}function _t(t,e){if(!!!t)throw new Error(e??"Unexpected invariant triggered.")}const fx=/\r\n|[\n\r]/g;function cl(t,e){let n=0,o=1;for(const i of t.body.matchAll(fx)){if(typeof i.index=="number"||_t(!1),i.index>=e)break;n=i.index+i[0].length,o+=1}return{line:o,column:e+1-n}}function X1(t){return td(t.source,cl(t.source,t.start))}function td(t,e){const n=t.locationOffset.column-1,o="".padStart(n)+t.body,i=e.line-1,a=t.locationOffset.line-1,l=e.line+a,f=e.line===1?n:0,d=e.column+f,h=`${t.name}:${l}:${d}
3
3
  `,v=o.split(/\r\n|[\n\r]/g),y=v[i];if(y.length>120){const g=Math.floor(d/80),E=d%80,C=[];for(let S=0;S<y.length;S+=80)C.push(y.slice(S,S+80));return h+Hv([[`${l} |`,C[0]],...C.slice(1,g+1).map(S=>["|",S]),["|","^".padStart(E)],["|",C[g+1]]])}return h+Hv([[`${l-1} |`,v[i-1]],[`${l} |`,y],["|","^".padStart(d)],[`${l+1} |`,v[i+1]]])}function Hv(t){const e=t.filter(([o,i])=>i!==void 0),n=Math.max(...e.map(([o])=>o.length));return e.map(([o,i])=>o.padStart(n)+(i?" "+i:"")).join(`
4
4
  `)}function px(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class oe extends Error{constructor(e,...n){var o,i,a;const{nodes:l,source:f,positions:d,path:h,originalError:v,extensions:y}=px(n);super(e),this.name="GraphQLError",this.path=h??void 0,this.originalError=v??void 0,this.nodes=Gv(Array.isArray(l)?l:l?[l]:void 0);const g=Gv((o=this.nodes)===null||o===void 0?void 0:o.map(C=>C.loc).filter(C=>C!=null));this.source=f??(g==null||(i=g[0])===null||i===void 0?void 0:i.source),this.positions=d??(g==null?void 0:g.map(C=>C.start)),this.locations=d&&f?d.map(C=>cl(f,C)):g==null?void 0:g.map(C=>cl(C.source,C.start));const E=yn(v==null?void 0:v.extensions)?v==null?void 0:v.extensions:void 0;this.extensions=(a=y??E)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),v!=null&&v.stack?Object.defineProperty(this,"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,oe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`
5
5
 
6
6
  `+X1(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=`
7
7
 
8
- `+td(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Gv(t){return t===void 0||t.length===0?void 0:t}function dx(t){return t.toString()}function hx(t){return t.toJSON()}function Lt(t,e,n){return new oe(`Syntax Error: ${n}`,{source:t,positions:[e]})}let K1=class{constructor(e,n,o){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=o}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nd=class{constructor(e,n,o,i,a,l){this.kind=e,this.start=n,this.end=o,this.line=i,this.column=a,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const e0={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},mx=new Set(Object.keys(e0));function gp(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&mx.has(e)}var Ft;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ft||(Ft={}));var Te;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Te||(Te={}));var R;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}));function yp(t){return t===9||t===32}function da(t){return t>=48&&t<=57}function t0(t){return t>=97&&t<=122||t>=65&&t<=90}function rd(t){return t0(t)||t===95}function n0(t){return t0(t)||da(t)||t===95}function vx(t){var e;let n=Number.MAX_SAFE_INTEGER,o=null,i=-1;for(let l=0;l<t.length;++l){var a;const f=t[l],d=gx(f);d!==f.length&&(o=(a=o)!==null&&a!==void 0?a:l,i=l,l!==0&&d<n&&(n=d))}return t.map((l,f)=>f===0?l:l.slice(n)).slice((e=o)!==null&&e!==void 0?e:0,i+1)}function gx(t){let e=0;for(;e<t.length&&yp(t.charCodeAt(e));)++e;return e}function yx(t){if(t==="")return!0;let e=!0,n=!1,o=!0,i=!1;for(let a=0;a<t.length;++a)switch(t.codePointAt(a)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(e&&!i)return!1;i=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:o&&(o=n),e=!1}return!(e||o&&i)}function r0(t,e){const n=t.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=o.length===1,a=o.length>1&&o.slice(1).every(E=>E.length===0||yp(E.charCodeAt(0))),l=n.endsWith('\\"""'),f=t.endsWith('"')&&!l,d=t.endsWith("\\"),h=f||d,v=!(e!=null&&e.minimize)&&(!i||t.length>70||h||a||l);let y="";const g=i&&yp(t.charCodeAt(0));return(v&&!g||a)&&(y+=`
8
+ `+td(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Gv(t){return t===void 0||t.length===0?void 0:t}function dx(t){return t.toString()}function hx(t){return t.toJSON()}function Ft(t,e,n){return new oe(`Syntax Error: ${n}`,{source:t,positions:[e]})}let K1=class{constructor(e,n,o){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=o}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nd=class{constructor(e,n,o,i,a,l){this.kind=e,this.start=n,this.end=o,this.line=i,this.column=a,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const e0={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},mx=new Set(Object.keys(e0));function gp(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&mx.has(e)}var Lt;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Lt||(Lt={}));var Te;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Te||(Te={}));var R;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}));function yp(t){return t===9||t===32}function da(t){return t>=48&&t<=57}function t0(t){return t>=97&&t<=122||t>=65&&t<=90}function rd(t){return t0(t)||t===95}function n0(t){return t0(t)||da(t)||t===95}function vx(t){var e;let n=Number.MAX_SAFE_INTEGER,o=null,i=-1;for(let l=0;l<t.length;++l){var a;const f=t[l],d=gx(f);d!==f.length&&(o=(a=o)!==null&&a!==void 0?a:l,i=l,l!==0&&d<n&&(n=d))}return t.map((l,f)=>f===0?l:l.slice(n)).slice((e=o)!==null&&e!==void 0?e:0,i+1)}function gx(t){let e=0;for(;e<t.length&&yp(t.charCodeAt(e));)++e;return e}function yx(t){if(t==="")return!0;let e=!0,n=!1,o=!0,i=!1;for(let a=0;a<t.length;++a)switch(t.codePointAt(a)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(e&&!i)return!1;i=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:o&&(o=n),e=!1}return!(e||o&&i)}function r0(t,e){const n=t.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=o.length===1,a=o.length>1&&o.slice(1).every(E=>E.length===0||yp(E.charCodeAt(0))),l=n.endsWith('\\"""'),f=t.endsWith('"')&&!l,d=t.endsWith("\\"),h=f||d,v=!(e!=null&&e.minimize)&&(!i||t.length>70||h||a||l);let y="";const g=i&&yp(t.charCodeAt(0));return(v&&!g||a)&&(y+=`
9
9
  `),y+=n,(v||h)&&(y+=`
10
- `),'"""'+y+'"""'}var se;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(se||(se={}));class od{constructor(e){const n=new nd(se.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==se.EOF)do if(e.next)e=e.next;else{const n=bx(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===se.COMMENT);return e}}function o0(t){return t===se.BANG||t===se.DOLLAR||t===se.AMP||t===se.PAREN_L||t===se.PAREN_R||t===se.SPREAD||t===se.COLON||t===se.EQUALS||t===se.AT||t===se.BRACKET_L||t===se.BRACKET_R||t===se.BRACE_L||t===se.PIPE||t===se.BRACE_R}function ss(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Bl(t,e){return i0(t.charCodeAt(e))&&s0(t.charCodeAt(e+1))}function i0(t){return t>=55296&&t<=56319}function s0(t){return t>=56320&&t<=57343}function Zo(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return se.EOF;if(n>=32&&n<=126){const o=String.fromCodePoint(n);return o==='"'?`'"'`:`"${o}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function At(t,e,n,o,i){const a=t.line,l=1+n-t.lineStart;return new nd(e,n,o,a,l,i)}function bx(t,e){const n=t.source.body,o=n.length;let i=e;for(;i<o;){const a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return Ex(t,i);case 33:return At(t,se.BANG,i,i+1);case 36:return At(t,se.DOLLAR,i,i+1);case 38:return At(t,se.AMP,i,i+1);case 40:return At(t,se.PAREN_L,i,i+1);case 41:return At(t,se.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return At(t,se.SPREAD,i,i+3);break;case 58:return At(t,se.COLON,i,i+1);case 61:return At(t,se.EQUALS,i,i+1);case 64:return At(t,se.AT,i,i+1);case 91:return At(t,se.BRACKET_L,i,i+1);case 93:return At(t,se.BRACKET_R,i,i+1);case 123:return At(t,se.BRACE_L,i,i+1);case 124:return At(t,se.PIPE,i,i+1);case 125:return At(t,se.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Cx(t,i):kx(t,i)}if(da(a)||a===45)return _x(t,i,a);if(rd(a))return Ax(t,i);throw Lt(t.source,i,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:ss(a)||Bl(n,i)?`Unexpected character: ${Zo(t,i)}.`:`Invalid character: ${Zo(t,i)}.`)}return At(t,se.EOF,o,o)}function Ex(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(a===10||a===13)break;if(ss(a))++i;else if(Bl(n,i))i+=2;else break}return At(t,se.COMMENT,e,i,n.slice(e+1,i))}function _x(t,e,n){const o=t.source.body;let i=e,a=n,l=!1;if(a===45&&(a=o.charCodeAt(++i)),a===48){if(a=o.charCodeAt(++i),da(a))throw Lt(t.source,i,`Invalid number, unexpected digit after 0: ${Zo(t,i)}.`)}else i=Vf(t,i,a),a=o.charCodeAt(i);if(a===46&&(l=!0,a=o.charCodeAt(++i),i=Vf(t,i,a),a=o.charCodeAt(i)),(a===69||a===101)&&(l=!0,a=o.charCodeAt(++i),(a===43||a===45)&&(a=o.charCodeAt(++i)),i=Vf(t,i,a),a=o.charCodeAt(i)),a===46||rd(a))throw Lt(t.source,i,`Invalid number, expected digit but got: ${Zo(t,i)}.`);return At(t,l?se.FLOAT:se.INT,e,i,o.slice(e,i))}function Vf(t,e,n){if(!da(n))throw Lt(t.source,e,`Invalid number, expected digit but got: ${Zo(t,e)}.`);const o=t.source.body;let i=e+1;for(;da(o.charCodeAt(i));)++i;return i}function kx(t,e){const n=t.source.body,o=n.length;let i=e+1,a=i,l="";for(;i<o;){const f=n.charCodeAt(i);if(f===34)return l+=n.slice(a,i),At(t,se.STRING,e,i+1,l);if(f===92){l+=n.slice(a,i);const d=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?xx(t,i):wx(t,i):$x(t,i);l+=d.value,i+=d.size,a=i;continue}if(f===10||f===13)break;if(ss(f))++i;else if(Bl(n,i))i+=2;else throw Lt(t.source,i,`Invalid character within String: ${Zo(t,i)}.`)}throw Lt(t.source,i,"Unterminated string.")}function xx(t,e){const n=t.source.body;let o=0,i=3;for(;i<12;){const a=n.charCodeAt(e+i++);if(a===125){if(i<5||!ss(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|na(a),o<0)break}throw Lt(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function wx(t,e){const n=t.source.body,o=Wv(n,e+2);if(ss(o))return{value:String.fromCodePoint(o),size:6};if(i0(o)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const i=Wv(n,e+8);if(s0(i))return{value:String.fromCodePoint(o,i),size:12}}throw Lt(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function Wv(t,e){return na(t.charCodeAt(e))<<12|na(t.charCodeAt(e+1))<<8|na(t.charCodeAt(e+2))<<4|na(t.charCodeAt(e+3))}function na(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function $x(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
11
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Lt(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function Cx(t,e){const n=t.source.body,o=n.length;let i=t.lineStart,a=e+3,l=a,f="";const d=[];for(;a<o;){const h=n.charCodeAt(a);if(h===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){f+=n.slice(l,a),d.push(f);const v=At(t,se.BLOCK_STRING,e,a+3,vx(d).join(`
12
- `));return t.line+=d.length-1,t.lineStart=i,v}if(h===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){f+=n.slice(l,a),l=a+1,a+=4;continue}if(h===10||h===13){f+=n.slice(l,a),d.push(f),h===13&&n.charCodeAt(a+1)===10?a+=2:++a,f="",l=a,i=a;continue}if(ss(h))++a;else if(Bl(n,a))a+=2;else throw Lt(t.source,a,`Invalid character within String: ${Zo(t,a)}.`)}throw Lt(t.source,a,"Unterminated string.")}function Ax(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(n0(a))++i;else break}return At(t,se.NAME,e,i,n.slice(e,i))}const Sx=10,a0=2;function ae(t){return Vl(t,[])}function Vl(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Tx(t,e);default:return String(t)}}function Tx(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(Dx(t)){const o=t.toJSON();if(o!==t)return typeof o=="string"?o:Vl(o,n)}else if(Array.isArray(t))return Ox(t,n);return Nx(t,n)}function Dx(t){return typeof t.toJSON=="function"}function Nx(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>a0?"["+Ix(t)+"]":"{ "+n.map(([i,a])=>i+": "+Vl(a,e)).join(", ")+" }"}function Ox(t,e){if(t.length===0)return"[]";if(e.length>a0)return"[Array]";const n=Math.min(Sx,t.length),o=t.length-n,i=[];for(let a=0;a<n;++a)i.push(Vl(t[a],e));return o===1?i.push("... 1 more item"):o>1&&i.push(`... ${o} more items`),"["+i.join(", ")+"]"}function Ix(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const Jn=globalThis.process?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var o;const i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(o=e.constructor)===null||o===void 0?void 0:o.name;if(i===a){const l=ae(e);throw new Error(`Cannot use ${i} "${l}" from another module or realm.
10
+ `),'"""'+y+'"""'}var se;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(se||(se={}));class od{constructor(e){const n=new nd(se.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==se.EOF)do if(e.next)e=e.next;else{const n=bx(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===se.COMMENT);return e}}function o0(t){return t===se.BANG||t===se.DOLLAR||t===se.AMP||t===se.PAREN_L||t===se.PAREN_R||t===se.SPREAD||t===se.COLON||t===se.EQUALS||t===se.AT||t===se.BRACKET_L||t===se.BRACKET_R||t===se.BRACE_L||t===se.PIPE||t===se.BRACE_R}function ss(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Bl(t,e){return i0(t.charCodeAt(e))&&s0(t.charCodeAt(e+1))}function i0(t){return t>=55296&&t<=56319}function s0(t){return t>=56320&&t<=57343}function Zo(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return se.EOF;if(n>=32&&n<=126){const o=String.fromCodePoint(n);return o==='"'?`'"'`:`"${o}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function At(t,e,n,o,i){const a=t.line,l=1+n-t.lineStart;return new nd(e,n,o,a,l,i)}function bx(t,e){const n=t.source.body,o=n.length;let i=e;for(;i<o;){const a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return Ex(t,i);case 33:return At(t,se.BANG,i,i+1);case 36:return At(t,se.DOLLAR,i,i+1);case 38:return At(t,se.AMP,i,i+1);case 40:return At(t,se.PAREN_L,i,i+1);case 41:return At(t,se.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return At(t,se.SPREAD,i,i+3);break;case 58:return At(t,se.COLON,i,i+1);case 61:return At(t,se.EQUALS,i,i+1);case 64:return At(t,se.AT,i,i+1);case 91:return At(t,se.BRACKET_L,i,i+1);case 93:return At(t,se.BRACKET_R,i,i+1);case 123:return At(t,se.BRACE_L,i,i+1);case 124:return At(t,se.PIPE,i,i+1);case 125:return At(t,se.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Cx(t,i):kx(t,i)}if(da(a)||a===45)return _x(t,i,a);if(rd(a))return Ax(t,i);throw Ft(t.source,i,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:ss(a)||Bl(n,i)?`Unexpected character: ${Zo(t,i)}.`:`Invalid character: ${Zo(t,i)}.`)}return At(t,se.EOF,o,o)}function Ex(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(a===10||a===13)break;if(ss(a))++i;else if(Bl(n,i))i+=2;else break}return At(t,se.COMMENT,e,i,n.slice(e+1,i))}function _x(t,e,n){const o=t.source.body;let i=e,a=n,l=!1;if(a===45&&(a=o.charCodeAt(++i)),a===48){if(a=o.charCodeAt(++i),da(a))throw Ft(t.source,i,`Invalid number, unexpected digit after 0: ${Zo(t,i)}.`)}else i=Vf(t,i,a),a=o.charCodeAt(i);if(a===46&&(l=!0,a=o.charCodeAt(++i),i=Vf(t,i,a),a=o.charCodeAt(i)),(a===69||a===101)&&(l=!0,a=o.charCodeAt(++i),(a===43||a===45)&&(a=o.charCodeAt(++i)),i=Vf(t,i,a),a=o.charCodeAt(i)),a===46||rd(a))throw Ft(t.source,i,`Invalid number, expected digit but got: ${Zo(t,i)}.`);return At(t,l?se.FLOAT:se.INT,e,i,o.slice(e,i))}function Vf(t,e,n){if(!da(n))throw Ft(t.source,e,`Invalid number, expected digit but got: ${Zo(t,e)}.`);const o=t.source.body;let i=e+1;for(;da(o.charCodeAt(i));)++i;return i}function kx(t,e){const n=t.source.body,o=n.length;let i=e+1,a=i,l="";for(;i<o;){const f=n.charCodeAt(i);if(f===34)return l+=n.slice(a,i),At(t,se.STRING,e,i+1,l);if(f===92){l+=n.slice(a,i);const d=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?xx(t,i):wx(t,i):$x(t,i);l+=d.value,i+=d.size,a=i;continue}if(f===10||f===13)break;if(ss(f))++i;else if(Bl(n,i))i+=2;else throw Ft(t.source,i,`Invalid character within String: ${Zo(t,i)}.`)}throw Ft(t.source,i,"Unterminated string.")}function xx(t,e){const n=t.source.body;let o=0,i=3;for(;i<12;){const a=n.charCodeAt(e+i++);if(a===125){if(i<5||!ss(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|na(a),o<0)break}throw Ft(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function wx(t,e){const n=t.source.body,o=Wv(n,e+2);if(ss(o))return{value:String.fromCodePoint(o),size:6};if(i0(o)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const i=Wv(n,e+8);if(s0(i))return{value:String.fromCodePoint(o,i),size:12}}throw Ft(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function Wv(t,e){return na(t.charCodeAt(e))<<12|na(t.charCodeAt(e+1))<<8|na(t.charCodeAt(e+2))<<4|na(t.charCodeAt(e+3))}function na(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function $x(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
11
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ft(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function Cx(t,e){const n=t.source.body,o=n.length;let i=t.lineStart,a=e+3,l=a,f="";const d=[];for(;a<o;){const h=n.charCodeAt(a);if(h===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){f+=n.slice(l,a),d.push(f);const v=At(t,se.BLOCK_STRING,e,a+3,vx(d).join(`
12
+ `));return t.line+=d.length-1,t.lineStart=i,v}if(h===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){f+=n.slice(l,a),l=a+1,a+=4;continue}if(h===10||h===13){f+=n.slice(l,a),d.push(f),h===13&&n.charCodeAt(a+1)===10?a+=2:++a,f="",l=a,i=a;continue}if(ss(h))++a;else if(Bl(n,a))a+=2;else throw Ft(t.source,a,`Invalid character within String: ${Zo(t,a)}.`)}throw Ft(t.source,a,"Unterminated string.")}function Ax(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(n0(a))++i;else break}return At(t,se.NAME,e,i,n.slice(e,i))}const Sx=10,a0=2;function ae(t){return Vl(t,[])}function Vl(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Tx(t,e);default:return String(t)}}function Tx(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(Dx(t)){const o=t.toJSON();if(o!==t)return typeof o=="string"?o:Vl(o,n)}else if(Array.isArray(t))return Ox(t,n);return Nx(t,n)}function Dx(t){return typeof t.toJSON=="function"}function Nx(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>a0?"["+Ix(t)+"]":"{ "+n.map(([i,a])=>i+": "+Vl(a,e)).join(", ")+" }"}function Ox(t,e){if(t.length===0)return"[]";if(e.length>a0)return"[Array]";const n=Math.min(Sx,t.length),o=t.length-n,i=[];for(let a=0;a<n;++a)i.push(Vl(t[a],e));return o===1?i.push("... 1 more item"):o>1&&i.push(`... ${o} more items`),"["+i.join(", ")+"]"}function Ix(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const Jn=globalThis.process?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var o;const i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(o=e.constructor)===null||o===void 0?void 0:o.name;if(i===a){const l=ae(e);throw new Error(`Cannot use ${i} "${l}" from another module or realm.
13
13
 
14
14
  Ensure that there is only one instance of "graphql" in the node_modules
15
15
  directory. If different versions of "graphql" are the dependencies of other
@@ -20,7 +20,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
20
20
  Duplicate "graphql" modules cannot be used at the same time since different
21
21
  versions may have different capabilities and behavior. The data from one
22
22
  version used in the function from another could produce confusing and
23
- spurious results.`)}}return!1};class jl{constructor(e,n="GraphQL request",o={line:1,column:1}){typeof e=="string"||Pe(!1,`Body must be a string. Received: ${ae(e)}.`),this.body=e,this.name=n,this.locationOffset=o,this.locationOffset.line>0||Pe(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pe(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function c0(t){return Jn(t,jl)}function Zn(t,e){return new Ul(t,e).parseDocument()}function l0(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseValueLiteral(!1);return n.expectToken(se.EOF),o}function Lx(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseConstValueLiteral();return n.expectToken(se.EOF),o}function Fx(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseTypeReference();return n.expectToken(se.EOF),o}class Ul{constructor(e,n={}){const o=c0(e)?e:new jl(e);this._lexer=new od(o),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(se.NAME);return this.node(e,{kind:R.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(se.SOF,this.parseDefinition,se.EOF)})}parseDefinition(){if(this.peek(se.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===se.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Lt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(se.BRACE_L))return this.node(e,{kind:R.OPERATION_DEFINITION,operation:Ft.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let o;return this.peek(se.NAME)&&(o=this.parseName()),this.node(e,{kind:R.OPERATION_DEFINITION,operation:n,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(se.NAME);switch(e.value){case"query":return Ft.QUERY;case"mutation":return Ft.MUTATION;case"subscription":return Ft.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(se.PAREN_L,this.parseVariableDefinition,se.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(se.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(se.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(se.DOLLAR),this.node(e,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(se.BRACE_L,this.parseSelection,se.BRACE_R)})}parseSelection(){return this.peek(se.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let o,i;return this.expectOptionalToken(se.COLON)?(o=n,i=this.parseName()):i=n,this.node(e,{kind:R.FIELD,alias:o,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(se.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(se.PAREN_L,n,se.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:R.ARGUMENT,name:o,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(se.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(se.NAME)?this.node(e,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:R.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case se.BRACKET_L:return this.parseList(e);case se.BRACE_L:return this.parseObject(e);case se.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case se.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case se.STRING:case se.BLOCK_STRING:return this.parseStringLiteral();case se.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case se.DOLLAR:if(e)if(this.expectToken(se.DOLLAR),this._lexer.token.kind===se.NAME){const o=this._lexer.token.value;throw Lt(this._lexer.source,n.start,`Unexpected variable "$${o}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:R.STRING,value:e.value,block:e.kind===se.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(se.BRACKET_L,n,se.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(se.BRACE_L,n,se.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:o,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(se.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(se.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(se.BRACKET_L)){const o=this.parseTypeReference();this.expectToken(se.BRACKET_R),n=this.node(e,{kind:R.LIST_TYPE,type:o})}else n=this.parseNamedType();return this.expectOptionalToken(se.BANG)?this.node(e,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(se.STRING)||this.peek(se.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const o=this.parseConstDirectives(),i=this.many(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);return this.node(e,{kind:R.SCHEMA_DEFINITION,description:n,directives:o,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(se.COLON);const o=this.parseNamedType();return this.node(e,{kind:R.OPERATION_TYPE_DEFINITION,operation:n,type:o})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const o=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:R.SCALAR_TYPE_DEFINITION,description:n,name:o,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(e,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(se.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseFieldDefinition,se.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName(),i=this.parseArgumentDefs();this.expectToken(se.COLON);const a=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(e,{kind:R.FIELD_DEFINITION,description:n,name:o,arguments:i,type:a,directives:l})}parseArgumentDefs(){return this.optionalMany(se.PAREN_L,this.parseInputValueDef,se.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName();this.expectToken(se.COLON);const i=this.parseTypeReference();let a;this.expectOptionalToken(se.EQUALS)&&(a=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(e,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:o,type:i,defaultValue:a,directives:l})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(e,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:l})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:R.UNION_TYPE_DEFINITION,description:n,name:o,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(se.EQUALS)?this.delimitedMany(se.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:o,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(se.BRACE_L,this.parseEnumValueDefinition,se.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:R.ENUM_VALUE_DEFINITION,description:n,name:o,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Lt(this._lexer.source,this._lexer.token.start,`${Pc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:o,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseInputValueDef,se.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===se.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.optionalMany(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:R.SCHEMA_EXTENSION,directives:n,operationTypes:o})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();if(o.length===0)throw this.unexpected();return this.node(e,{kind:R.SCALAR_TYPE_EXTENSION,name:n,directives:o})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.UNION_TYPE_EXTENSION,name:n,directives:o,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.ENUM_TYPE_EXTENSION,name:n,directives:o,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:o,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(se.AT);const o=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(e,{kind:R.DIRECTIVE_DEFINITION,description:n,name:o,arguments:i,repeatable:a,locations:l})}parseDirectiveLocations(){return this.delimitedMany(se.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Te,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new K1(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw Lt(this._lexer.source,n.start,`Expected ${u0(e)}, found ${Pc(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===se.NAME&&n.value===e)this.advanceLexer();else throw Lt(this._lexer.source,n.start,`Expected "${e}", found ${Pc(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===se.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e??this._lexer.token;return Lt(this._lexer.source,n.start,`Unexpected ${Pc(n)}.`)}any(e,n,o){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(o);)i.push(n.call(this));return i}optionalMany(e,n,o){if(this.expectOptionalToken(e)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}return[]}many(e,n,o){this.expectToken(e);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}delimitedMany(e,n){this.expectOptionalToken(e);const o=[];do o.push(n.call(this));while(this.expectOptionalToken(e));return o}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==se.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Lt(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Pc(t){const e=t.value;return u0(t.kind)+(e!=null?` "${e}"`:"")}function u0(t){return o0(t)?`"${t}"`:t}const Rx=5;function Hr(t,e){const[n,o]=e?[t,e]:[void 0,t];let i=" Did you mean ";n&&(i+=n+" ");const a=o.map(d=>`"${d}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}const l=a.slice(0,Rx),f=l.pop();return i+l.join(", ")+", or "+f+"?"}function Qv(t){return t}function Gr(t,e){const n=Object.create(null);for(const o of t)n[e(o)]=o;return n}function mo(t,e,n){const o=Object.create(null);for(const i of t)o[e(i)]=n(i);return o}function Pr(t,e){const n=Object.create(null);for(const o of Object.keys(t))n[o]=e(t[o],o);return n}function Oa(t,e){let n=0,o=0;for(;n<t.length&&o<e.length;){let i=t.charCodeAt(n),a=e.charCodeAt(o);if(Bc(i)&&Bc(a)){let l=0;do++n,l=l*10+i-bp,i=t.charCodeAt(n);while(Bc(i)&&l>0);let f=0;do++o,f=f*10+a-bp,a=e.charCodeAt(o);while(Bc(a)&&f>0);if(l<f)return-1;if(l>f)return 1}else{if(i<a)return-1;if(i>a)return 1;++n,++o}}return t.length-e.length}const bp=48,Mx=57;function Bc(t){return!isNaN(t)&&bp<=t&&t<=Mx}function Eo(t,e){const n=Object.create(null),o=new qx(t),i=Math.floor(t.length*.4)+1;for(const a of e){const l=o.measure(a,i);l!==void 0&&(n[a]=l)}return Object.keys(n).sort((a,l)=>{const f=n[a]-n[l];return f!==0?f:Oa(a,l)})}class qx{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Yv(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,n){if(this._input===e)return 0;const o=e.toLowerCase();if(this._inputLowerCase===o)return 1;let i=Yv(o),a=this._inputArray;if(i.length<a.length){const v=i;i=a,a=v}const l=i.length,f=a.length;if(l-f>n)return;const d=this._rows;for(let v=0;v<=f;v++)d[0][v]=v;for(let v=1;v<=l;v++){const y=d[(v-1)%3],g=d[v%3];let E=g[0]=v;for(let C=1;C<=f;C++){const S=i[v-1]===a[C-1]?0:1;let N=Math.min(y[C]+1,g[C-1]+1,y[C-1]+S);if(v>1&&C>1&&i[v-1]===a[C-2]&&i[v-2]===a[C-1]){const D=d[(v-2)%3][C-2];N=Math.min(N,D+1)}N<E&&(E=N),g[C]=N}if(E>n)return}const h=d[l%3][f];return h<=n?h:void 0}}function Yv(t){const e=t.length,n=new Array(e);for(let o=0;o<e;++o)n[o]=t.charCodeAt(o);return n}function qn(t){if(t==null)return Object.create(null);if(Object.getPrototypeOf(t)===null)return t;const e=Object.create(null);for(const[n,o]of Object.entries(t))e[n]=o;return e}function Px(t){return`"${t.replace(Bx,Vx)}"`}const Bx=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Vx(t){return jx[t.charCodeAt(0)]}const jx=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vi=Object.freeze({});function un(t,e,n=e0){const o=new Map;for(const D of Object.values(R))o.set(D,Yi(e,D));let i,a=Array.isArray(t),l=[t],f=-1,d=[],h=t,v,y;const g=[],E=[];do{f++;const D=f===l.length,T=D&&d.length!==0;if(D){if(v=E.length===0?void 0:g[g.length-1],h=y,y=E.pop(),T)if(a){h=h.slice();let V=0;for(const[Y,P]of d){const U=Y-V;P===null?(h.splice(U,1),V++):h[U]=P}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[V,Y]of d)h[V]=Y}f=i.index,l=i.keys,d=i.edits,a=i.inArray,i=i.prev}else if(y){if(v=a?f:l[f],h=y[v],h==null)continue;g.push(v)}let O;if(!Array.isArray(h)){var C,S;gp(h)||Pe(!1,`Invalid AST Node: ${ae(h)}.`);const V=D?(C=o.get(h.kind))===null||C===void 0?void 0:C.leave:(S=o.get(h.kind))===null||S===void 0?void 0:S.enter;if(O=V==null?void 0:V.call(e,h,v,y,g,E),O===Vi)break;if(O===!1){if(!D){g.pop();continue}}else if(O!==void 0&&(d.push([v,O]),!D))if(gp(O))h=O;else{g.pop();continue}}if(O===void 0&&T&&d.push([v,h]),D)g.pop();else{var N;i={inArray:a,index:f,keys:l,edits:d,prev:i},a=Array.isArray(h),l=a?h:(N=n[h.kind])!==null&&N!==void 0?N:[],f=-1,d=[],y&&E.push(y),y=h}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function id(t){const e=new Array(t.length).fill(null),n=Object.create(null);for(const o of Object.values(R)){let i=!1;const a=new Array(t.length).fill(void 0),l=new Array(t.length).fill(void 0);for(let d=0;d<t.length;++d){const{enter:h,leave:v}=Yi(t[d],o);i||(i=h!=null||v!=null),a[d]=h,l[d]=v}if(!i)continue;const f={enter(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=a[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===!1)e[y]=h;else if(g===Vi)e[y]=Vi;else if(g!==void 0)return g}},leave(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=l[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===Vi)e[y]=Vi;else if(g!==void 0&&g!==!1)return g}else e[y]===h&&(e[y]=null)}};n[o]=f}return n}function Yi(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Ux(t,e,n){const{enter:o,leave:i}=Yi(t,e);return n?i:o}function Je(t){return un(t,Hx)}const zx=80,Hx={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ce(t.definitions,`
23
+ spurious results.`)}}return!1};class jl{constructor(e,n="GraphQL request",o={line:1,column:1}){typeof e=="string"||Pe(!1,`Body must be a string. Received: ${ae(e)}.`),this.body=e,this.name=n,this.locationOffset=o,this.locationOffset.line>0||Pe(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pe(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function c0(t){return Jn(t,jl)}function Zn(t,e){return new Ul(t,e).parseDocument()}function l0(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseValueLiteral(!1);return n.expectToken(se.EOF),o}function Fx(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseConstValueLiteral();return n.expectToken(se.EOF),o}function Lx(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseTypeReference();return n.expectToken(se.EOF),o}class Ul{constructor(e,n={}){const o=c0(e)?e:new jl(e);this._lexer=new od(o),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(se.NAME);return this.node(e,{kind:R.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(se.SOF,this.parseDefinition,se.EOF)})}parseDefinition(){if(this.peek(se.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===se.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ft(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(se.BRACE_L))return this.node(e,{kind:R.OPERATION_DEFINITION,operation:Lt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let o;return this.peek(se.NAME)&&(o=this.parseName()),this.node(e,{kind:R.OPERATION_DEFINITION,operation:n,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(se.NAME);switch(e.value){case"query":return Lt.QUERY;case"mutation":return Lt.MUTATION;case"subscription":return Lt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(se.PAREN_L,this.parseVariableDefinition,se.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(se.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(se.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(se.DOLLAR),this.node(e,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(se.BRACE_L,this.parseSelection,se.BRACE_R)})}parseSelection(){return this.peek(se.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let o,i;return this.expectOptionalToken(se.COLON)?(o=n,i=this.parseName()):i=n,this.node(e,{kind:R.FIELD,alias:o,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(se.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(se.PAREN_L,n,se.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:R.ARGUMENT,name:o,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(se.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(se.NAME)?this.node(e,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:R.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case se.BRACKET_L:return this.parseList(e);case se.BRACE_L:return this.parseObject(e);case se.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case se.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case se.STRING:case se.BLOCK_STRING:return this.parseStringLiteral();case se.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case se.DOLLAR:if(e)if(this.expectToken(se.DOLLAR),this._lexer.token.kind===se.NAME){const o=this._lexer.token.value;throw Ft(this._lexer.source,n.start,`Unexpected variable "$${o}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:R.STRING,value:e.value,block:e.kind===se.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(se.BRACKET_L,n,se.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(se.BRACE_L,n,se.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:o,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(se.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(se.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(se.BRACKET_L)){const o=this.parseTypeReference();this.expectToken(se.BRACKET_R),n=this.node(e,{kind:R.LIST_TYPE,type:o})}else n=this.parseNamedType();return this.expectOptionalToken(se.BANG)?this.node(e,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(se.STRING)||this.peek(se.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const o=this.parseConstDirectives(),i=this.many(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);return this.node(e,{kind:R.SCHEMA_DEFINITION,description:n,directives:o,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(se.COLON);const o=this.parseNamedType();return this.node(e,{kind:R.OPERATION_TYPE_DEFINITION,operation:n,type:o})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const o=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:R.SCALAR_TYPE_DEFINITION,description:n,name:o,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(e,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(se.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseFieldDefinition,se.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName(),i=this.parseArgumentDefs();this.expectToken(se.COLON);const a=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(e,{kind:R.FIELD_DEFINITION,description:n,name:o,arguments:i,type:a,directives:l})}parseArgumentDefs(){return this.optionalMany(se.PAREN_L,this.parseInputValueDef,se.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName();this.expectToken(se.COLON);const i=this.parseTypeReference();let a;this.expectOptionalToken(se.EQUALS)&&(a=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(e,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:o,type:i,defaultValue:a,directives:l})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(e,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:l})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:R.UNION_TYPE_DEFINITION,description:n,name:o,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(se.EQUALS)?this.delimitedMany(se.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:o,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(se.BRACE_L,this.parseEnumValueDefinition,se.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:R.ENUM_VALUE_DEFINITION,description:n,name:o,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ft(this._lexer.source,this._lexer.token.start,`${Pc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:o,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseInputValueDef,se.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===se.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.optionalMany(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:R.SCHEMA_EXTENSION,directives:n,operationTypes:o})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();if(o.length===0)throw this.unexpected();return this.node(e,{kind:R.SCALAR_TYPE_EXTENSION,name:n,directives:o})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.UNION_TYPE_EXTENSION,name:n,directives:o,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.ENUM_TYPE_EXTENSION,name:n,directives:o,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:o,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(se.AT);const o=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(e,{kind:R.DIRECTIVE_DEFINITION,description:n,name:o,arguments:i,repeatable:a,locations:l})}parseDirectiveLocations(){return this.delimitedMany(se.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Te,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new K1(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw Ft(this._lexer.source,n.start,`Expected ${u0(e)}, found ${Pc(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===se.NAME&&n.value===e)this.advanceLexer();else throw Ft(this._lexer.source,n.start,`Expected "${e}", found ${Pc(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===se.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e??this._lexer.token;return Ft(this._lexer.source,n.start,`Unexpected ${Pc(n)}.`)}any(e,n,o){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(o);)i.push(n.call(this));return i}optionalMany(e,n,o){if(this.expectOptionalToken(e)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}return[]}many(e,n,o){this.expectToken(e);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}delimitedMany(e,n){this.expectOptionalToken(e);const o=[];do o.push(n.call(this));while(this.expectOptionalToken(e));return o}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==se.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Ft(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Pc(t){const e=t.value;return u0(t.kind)+(e!=null?` "${e}"`:"")}function u0(t){return o0(t)?`"${t}"`:t}const Rx=5;function Hr(t,e){const[n,o]=e?[t,e]:[void 0,t];let i=" Did you mean ";n&&(i+=n+" ");const a=o.map(d=>`"${d}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}const l=a.slice(0,Rx),f=l.pop();return i+l.join(", ")+", or "+f+"?"}function Qv(t){return t}function Gr(t,e){const n=Object.create(null);for(const o of t)n[e(o)]=o;return n}function mo(t,e,n){const o=Object.create(null);for(const i of t)o[e(i)]=n(i);return o}function Pr(t,e){const n=Object.create(null);for(const o of Object.keys(t))n[o]=e(t[o],o);return n}function Oa(t,e){let n=0,o=0;for(;n<t.length&&o<e.length;){let i=t.charCodeAt(n),a=e.charCodeAt(o);if(Bc(i)&&Bc(a)){let l=0;do++n,l=l*10+i-bp,i=t.charCodeAt(n);while(Bc(i)&&l>0);let f=0;do++o,f=f*10+a-bp,a=e.charCodeAt(o);while(Bc(a)&&f>0);if(l<f)return-1;if(l>f)return 1}else{if(i<a)return-1;if(i>a)return 1;++n,++o}}return t.length-e.length}const bp=48,Mx=57;function Bc(t){return!isNaN(t)&&bp<=t&&t<=Mx}function Eo(t,e){const n=Object.create(null),o=new qx(t),i=Math.floor(t.length*.4)+1;for(const a of e){const l=o.measure(a,i);l!==void 0&&(n[a]=l)}return Object.keys(n).sort((a,l)=>{const f=n[a]-n[l];return f!==0?f:Oa(a,l)})}class qx{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Yv(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,n){if(this._input===e)return 0;const o=e.toLowerCase();if(this._inputLowerCase===o)return 1;let i=Yv(o),a=this._inputArray;if(i.length<a.length){const v=i;i=a,a=v}const l=i.length,f=a.length;if(l-f>n)return;const d=this._rows;for(let v=0;v<=f;v++)d[0][v]=v;for(let v=1;v<=l;v++){const y=d[(v-1)%3],g=d[v%3];let E=g[0]=v;for(let C=1;C<=f;C++){const S=i[v-1]===a[C-1]?0:1;let N=Math.min(y[C]+1,g[C-1]+1,y[C-1]+S);if(v>1&&C>1&&i[v-1]===a[C-2]&&i[v-2]===a[C-1]){const D=d[(v-2)%3][C-2];N=Math.min(N,D+1)}N<E&&(E=N),g[C]=N}if(E>n)return}const h=d[l%3][f];return h<=n?h:void 0}}function Yv(t){const e=t.length,n=new Array(e);for(let o=0;o<e;++o)n[o]=t.charCodeAt(o);return n}function qn(t){if(t==null)return Object.create(null);if(Object.getPrototypeOf(t)===null)return t;const e=Object.create(null);for(const[n,o]of Object.entries(t))e[n]=o;return e}function Px(t){return`"${t.replace(Bx,Vx)}"`}const Bx=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Vx(t){return jx[t.charCodeAt(0)]}const jx=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vi=Object.freeze({});function un(t,e,n=e0){const o=new Map;for(const D of Object.values(R))o.set(D,Yi(e,D));let i,a=Array.isArray(t),l=[t],f=-1,d=[],h=t,v,y;const g=[],E=[];do{f++;const D=f===l.length,T=D&&d.length!==0;if(D){if(v=E.length===0?void 0:g[g.length-1],h=y,y=E.pop(),T)if(a){h=h.slice();let V=0;for(const[Y,P]of d){const U=Y-V;P===null?(h.splice(U,1),V++):h[U]=P}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[V,Y]of d)h[V]=Y}f=i.index,l=i.keys,d=i.edits,a=i.inArray,i=i.prev}else if(y){if(v=a?f:l[f],h=y[v],h==null)continue;g.push(v)}let O;if(!Array.isArray(h)){var C,S;gp(h)||Pe(!1,`Invalid AST Node: ${ae(h)}.`);const V=D?(C=o.get(h.kind))===null||C===void 0?void 0:C.leave:(S=o.get(h.kind))===null||S===void 0?void 0:S.enter;if(O=V==null?void 0:V.call(e,h,v,y,g,E),O===Vi)break;if(O===!1){if(!D){g.pop();continue}}else if(O!==void 0&&(d.push([v,O]),!D))if(gp(O))h=O;else{g.pop();continue}}if(O===void 0&&T&&d.push([v,h]),D)g.pop();else{var N;i={inArray:a,index:f,keys:l,edits:d,prev:i},a=Array.isArray(h),l=a?h:(N=n[h.kind])!==null&&N!==void 0?N:[],f=-1,d=[],y&&E.push(y),y=h}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function id(t){const e=new Array(t.length).fill(null),n=Object.create(null);for(const o of Object.values(R)){let i=!1;const a=new Array(t.length).fill(void 0),l=new Array(t.length).fill(void 0);for(let d=0;d<t.length;++d){const{enter:h,leave:v}=Yi(t[d],o);i||(i=h!=null||v!=null),a[d]=h,l[d]=v}if(!i)continue;const f={enter(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=a[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===!1)e[y]=h;else if(g===Vi)e[y]=Vi;else if(g!==void 0)return g}},leave(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=l[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===Vi)e[y]=Vi;else if(g!==void 0&&g!==!1)return g}else e[y]===h&&(e[y]=null)}};n[o]=f}return n}function Yi(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Ux(t,e,n){const{enter:o,leave:i}=Yi(t,e);return n?i:o}function Je(t){return un(t,Hx)}const zx=80,Hx={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ce(t.definitions,`
24
24
 
25
25
  `)},OperationDefinition:{leave(t){const e=He("(",Ce(t.variableDefinitions,", "),")"),n=Ce([t.operation,Ce([t.name,e]),Ce(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:o})=>t+": "+e+He(" = ",n)+He(" ",Ce(o," "))},SelectionSet:{leave:({selections:t})=>Gn(t)},Field:{leave({alias:t,name:e,arguments:n,directives:o,selectionSet:i}){const a=He("",t,": ")+e;let l=a+He("(",Ce(n,", "),")");return l.length>zx&&(l=a+He(`(
26
26
  `,nl(Ce(n,`
@@ -47,15 +47,15 @@ spurious results.`)}}return!1};class jl{constructor(e,n="GraphQL request",o={lin
47
47
  `)),`
48
48
  }`)}function He(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function nl(t){return He(" ",t.replace(/\n/g,`
49
49
  `))}function Jv(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
50
- `)))!==null&&e!==void 0?e:!1}function ll(t,e){switch(t.kind){case R.NULL:return null;case R.INT:return parseInt(t.value,10);case R.FLOAT:return parseFloat(t.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return t.value;case R.LIST:return t.values.map(n=>ll(n,e));case R.OBJECT:return mo(t.fields,n=>n.name.value,n=>ll(n.value,e));case R.VARIABLE:return e==null?void 0:e[t.name.value]}}function _n(t){if(t!=null||Pe(!1,"Must provide name."),typeof t=="string"||Pe(!1,"Expected name to be a string."),t.length===0)throw new oe("Expected name to be a non-empty string.");for(let e=1;e<t.length;++e)if(!n0(t.charCodeAt(e)))throw new oe(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!rd(t.charCodeAt(0)))throw new oe(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function f0(t){if(t==="true"||t==="false"||t==="null")throw new oe(`Enum values cannot be named: ${t}`);return _n(t)}function go(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||lt(t)||at(t)||Ie(t)}function Gx(t){if(!go(t))throw new Error(`Expected ${ae(t)} to be a GraphQL type.`);return t}function kn(t){return Jn(t,_r)}function Wx(t){if(!kn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Scalar type.`);return t}function Ue(t){return Jn(t,Ln)}function p0(t){if(!Ue(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Object type.`);return t}function Ke(t){return Jn(t,Ji)}function d0(t){if(!Ke(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Interface type.`);return t}function St(t){return Jn(t,Zi)}function Qx(t){if(!St(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Union type.`);return t}function xt(t){return Jn(t,yo)}function Yx(t){if(!xt(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Enum type.`);return t}function lt(t){return Jn(t,Xi)}function Jx(t){if(!lt(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Input Object type.`);return t}function at(t){return Jn(t,Ut)}function Zx(t){if(!at(t))throw new Error(`Expected ${ae(t)} to be a GraphQL List type.`);return t}function Ie(t){return Jn(t,qe)}function Xx(t){if(!Ie(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Non-Null type.`);return t}function ln(t){return kn(t)||xt(t)||lt(t)||Ia(t)&&ln(t.ofType)}function Kx(t){if(!ln(t))throw new Error(`Expected ${ae(t)} to be a GraphQL input type.`);return t}function vo(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||Ia(t)&&vo(t.ofType)}function ew(t){if(!vo(t))throw new Error(`Expected ${ae(t)} to be a GraphQL output type.`);return t}function fn(t){return kn(t)||xt(t)}function tw(t){if(!fn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL leaf type.`);return t}function Er(t){return Ue(t)||Ke(t)||St(t)}function nw(t){if(!Er(t))throw new Error(`Expected ${ae(t)} to be a GraphQL composite type.`);return t}function br(t){return Ke(t)||St(t)}function rw(t){if(!br(t))throw new Error(`Expected ${ae(t)} to be a GraphQL abstract type.`);return t}class Ut{constructor(e){go(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class qe{constructor(e){sd(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ia(t){return at(t)||Ie(t)}function ow(t){if(!Ia(t))throw new Error(`Expected ${ae(t)} to be a GraphQL wrapping type.`);return t}function sd(t){return go(t)&&!Ie(t)}function h0(t){if(!sd(t))throw new Error(`Expected ${ae(t)} to be a GraphQL nullable type.`);return t}function ad(t){if(t)return Ie(t)?t.ofType:t}function as(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||lt(t)}function iw(t){if(!as(t))throw new Error(`Expected ${ae(t)} to be a GraphQL named type.`);return t}function Rt(t){if(t){let e=t;for(;Ia(e);)e=e.ofType;return e}}function cd(t){return typeof t=="function"?t():t}function ld(t){return typeof t=="function"?t():t}class _r{constructor(e){var n,o,i,a;const l=(n=e.parseValue)!==null&&n!==void 0?n:Qv;this.name=_n(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=(o=e.serialize)!==null&&o!==void 0?o:Qv,this.parseValue=l,this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(f,d)=>l(ll(f,d)),this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[],e.specifiedByURL==null||typeof e.specifiedByURL=="string"||Pe(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ae(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize=="function"||Pe(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue=="function"&&typeof e.parseLiteral=="function"||Pe(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ln{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>v0(e),this._interfaces=()=>m0(e),e.isTypeOf==null||typeof e.isTypeOf=="function"||Pe(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ae(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:y0(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function m0(t){var e;const n=cd((e=t.interfaces)!==null&&e!==void 0?e:[]);return Array.isArray(n)||Pe(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),n}function v0(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>{var i;zi(n)||Pe(!1,`${t.name}.${o} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Pe(!1,`${t.name}.${o} field resolver must be a function if provided, but got: ${ae(n.resolve)}.`);const a=(i=n.args)!==null&&i!==void 0?i:{};return zi(a)||Pe(!1,`${t.name}.${o} args must be an object with argument names as keys.`),{name:_n(o),description:n.description,type:n.type,args:g0(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}})}function g0(t){return Object.entries(t).map(([e,n])=>({name:_n(e),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zi(t){return yn(t)&&!Array.isArray(t)}function y0(t){return Pr(t,e=>({description:e.description,type:e.type,args:b0(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function b0(t){return mo(t,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _o(t){return Ie(t.type)&&t.defaultValue===void 0}class Ji{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=v0.bind(void 0,e),this._interfaces=m0.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:y0(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Zi{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=sw.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function sw(t){const e=cd(t.types);return Array.isArray(e)||Pe(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class yo{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=aw(this.name,e.values),this._valueLookup=new Map(this._values.map(o=>[o.value,o])),this._nameLookup=Gr(this._values,o=>o.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const n=this._valueLookup.get(e);if(n===void 0)throw new oe(`Enum "${this.name}" cannot represent value: ${ae(e)}`);return n.name}parseValue(e){if(typeof e!="string"){const o=ae(e);throw new oe(`Enum "${this.name}" cannot represent non-string value: ${o}.`+Vc(this,o))}const n=this.getValue(e);if(n==null)throw new oe(`Value "${e}" does not exist in "${this.name}" enum.`+Vc(this,e));return n.value}parseLiteral(e,n){if(e.kind!==R.ENUM){const i=Je(e);throw new oe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Vc(this,i),{nodes:e})}const o=this.getValue(e.value);if(o==null){const i=Je(e);throw new oe(`Value "${i}" does not exist in "${this.name}" enum.`+Vc(this,i),{nodes:e})}return o.value}toConfig(){const e=mo(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Vc(t,e){const n=t.getValues().map(i=>i.name),o=Eo(e,n);return Hr("the enum value",o)}function aw(t,e){return zi(e)||Pe(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([n,o])=>(zi(o)||Pe(!1,`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${ae(o)}.`),{name:f0(n),description:o.description,value:o.value!==void 0?o.value:n,deprecationReason:o.deprecationReason,extensions:qn(o.extensions),astNode:o.astNode}))}class Xi{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=cw.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const e=Pr(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function cw(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>(!("resolve"in n)||Pe(!1,`${t.name}.${o} field has a resolve property, but Input Types cannot define resolvers.`),{name:_n(o),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zl(t){return Ie(t.type)&&t.defaultValue===void 0}function ul(t,e){return t===e?!0:Ie(t)&&Ie(e)||at(t)&&at(e)?ul(t.ofType,e.ofType):!1}function Qo(t,e,n){return e===n?!0:Ie(n)?Ie(e)?Qo(t,e.ofType,n.ofType):!1:Ie(e)?Qo(t,e.ofType,n):at(n)?at(e)?Qo(t,e.ofType,n.ofType):!1:at(e)?!1:br(n)&&(Ke(e)||Ue(e))&&t.isSubType(n,e)}function Ep(t,e,n){return e===n?!0:br(e)?br(n)?t.getPossibleTypes(e).some(o=>t.isSubType(n,o)):t.isSubType(e,n):br(n)?t.isSubType(n,e):!1}const rl=2147483647,ol=-2147483648,E0=new _r({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isInteger(n))throw new oe(`Int cannot represent non-integer value: ${ae(e)}`);if(n>rl||n<ol)throw new oe("Int cannot represent non 32-bit signed integer value: "+ae(e));return n},parseValue(t){if(typeof t!="number"||!Number.isInteger(t))throw new oe(`Int cannot represent non-integer value: ${ae(t)}`);if(t>rl||t<ol)throw new oe(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==R.INT)throw new oe(`Int cannot represent non-integer value: ${Je(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>rl||e<ol)throw new oe(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),ud=new _r({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isFinite(n))throw new oe(`Float cannot represent non numeric value: ${ae(e)}`);return n},parseValue(t){if(typeof t!="number"||!Number.isFinite(t))throw new oe(`Float cannot represent non numeric value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.FLOAT&&t.kind!==R.INT)throw new oe(`Float cannot represent non numeric value: ${Je(t)}`,t);return parseFloat(t.value)}}),yt=new _r({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(t){const e=Fa(t);if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number"&&Number.isFinite(e))return e.toString();throw new oe(`String cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t!="string")throw new oe(`String cannot represent a non string value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.STRING)throw new oe(`String cannot represent a non string value: ${Je(t)}`,{nodes:t});return t.value}}),vn=new _r({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e;if(Number.isFinite(e))return e!==0;throw new oe(`Boolean cannot represent a non boolean value: ${ae(e)}`)},parseValue(t){if(typeof t!="boolean")throw new oe(`Boolean cannot represent a non boolean value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.BOOLEAN)throw new oe(`Boolean cannot represent a non boolean value: ${Je(t)}`,{nodes:t});return t.value}}),fd=new _r({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(t){const e=Fa(t);if(typeof e=="string")return e;if(Number.isInteger(e))return String(e);throw new oe(`ID cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t=="string")return t;if(typeof t=="number"&&Number.isInteger(t))return t.toString();throw new oe(`ID cannot represent value: ${ae(t)}`)},parseLiteral(t){if(t.kind!==R.STRING&&t.kind!==R.INT)throw new oe("ID cannot represent a non-string and non-integer value: "+Je(t),{nodes:t});return t.value}}),La=Object.freeze([yt,E0,ud,vn,fd]);function Hl(t){return La.some(({name:e})=>t.name===e)}function Fa(t){if(yn(t)){if(typeof t.valueOf=="function"){const e=t.valueOf();if(!yn(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function Gl(t){return Jn(t,kr)}function lw(t){if(!Gl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL directive.`);return t}class kr{constructor(e){var n,o;this.name=_n(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=(n=e.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=qn(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||Pe(!1,`@${e.name} locations must be an Array.`);const i=(o=e.args)!==null&&o!==void 0?o:{};yn(i)&&!Array.isArray(i)||Pe(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=g0(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:b0(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pd=new kr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(vn),description:"Included when true."}}}),dd=new kr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(vn),description:"Skipped when true."}}}),hd="No longer supported",Wl=new kr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Te.FIELD_DEFINITION,Te.ARGUMENT_DEFINITION,Te.INPUT_FIELD_DEFINITION,Te.ENUM_VALUE],args:{reason:{type:yt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:hd}}}),md=new kr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Te.SCALAR],args:{url:{type:new qe(yt),description:"The URL that specifies the behavior of this scalar."}}}),ko=Object.freeze([pd,dd,Wl,md]);function vd(t){return ko.some(({name:e})=>e===t.name)}function gd(t){return typeof t=="object"&&typeof(t==null?void 0:t[Symbol.iterator])=="function"}function jr(t,e){if(Ie(e)){const n=jr(t,e.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(t===null)return{kind:R.NULL};if(t===void 0)return null;if(at(e)){const n=e.ofType;if(gd(t)){const o=[];for(const i of t){const a=jr(i,n);a!=null&&o.push(a)}return{kind:R.LIST,values:o}}return jr(t,n)}if(lt(e)){if(!yn(t))return null;const n=[];for(const o of Object.values(e.getFields())){const i=jr(t[o.name],o.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:o.name},value:i})}return{kind:R.OBJECT,fields:n}}if(fn(e)){const n=e.serialize(t);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const o=String(n);return Zv.test(o)?{kind:R.INT,value:o}:{kind:R.FLOAT,value:o}}if(typeof n=="string")return xt(e)?{kind:R.ENUM,value:n}:e===fd&&Zv.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ae(n)}.`)}_t(!1,"Unexpected input type: "+ae(e))}const Zv=/^-?(?:0|[1-9][0-9]*)$/,Ql=new Ln({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:yt,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new qe(new Ut(new qe(Dn))),resolve(t){return Object.values(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new qe(Dn),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Dn,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Dn,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new qe(new Ut(new qe(yd))),resolve:t=>t.getDirectives()}})}),yd=new Ln({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
50
+ `)))!==null&&e!==void 0?e:!1}function ll(t,e){switch(t.kind){case R.NULL:return null;case R.INT:return parseInt(t.value,10);case R.FLOAT:return parseFloat(t.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return t.value;case R.LIST:return t.values.map(n=>ll(n,e));case R.OBJECT:return mo(t.fields,n=>n.name.value,n=>ll(n.value,e));case R.VARIABLE:return e==null?void 0:e[t.name.value]}}function _n(t){if(t!=null||Pe(!1,"Must provide name."),typeof t=="string"||Pe(!1,"Expected name to be a string."),t.length===0)throw new oe("Expected name to be a non-empty string.");for(let e=1;e<t.length;++e)if(!n0(t.charCodeAt(e)))throw new oe(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!rd(t.charCodeAt(0)))throw new oe(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function f0(t){if(t==="true"||t==="false"||t==="null")throw new oe(`Enum values cannot be named: ${t}`);return _n(t)}function go(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||lt(t)||at(t)||Ie(t)}function Gx(t){if(!go(t))throw new Error(`Expected ${ae(t)} to be a GraphQL type.`);return t}function kn(t){return Jn(t,_r)}function Wx(t){if(!kn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Scalar type.`);return t}function Ue(t){return Jn(t,Fn)}function p0(t){if(!Ue(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Object type.`);return t}function Ke(t){return Jn(t,Ji)}function d0(t){if(!Ke(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Interface type.`);return t}function St(t){return Jn(t,Zi)}function Qx(t){if(!St(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Union type.`);return t}function xt(t){return Jn(t,yo)}function Yx(t){if(!xt(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Enum type.`);return t}function lt(t){return Jn(t,Xi)}function Jx(t){if(!lt(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Input Object type.`);return t}function at(t){return Jn(t,Ut)}function Zx(t){if(!at(t))throw new Error(`Expected ${ae(t)} to be a GraphQL List type.`);return t}function Ie(t){return Jn(t,qe)}function Xx(t){if(!Ie(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Non-Null type.`);return t}function ln(t){return kn(t)||xt(t)||lt(t)||Ia(t)&&ln(t.ofType)}function Kx(t){if(!ln(t))throw new Error(`Expected ${ae(t)} to be a GraphQL input type.`);return t}function vo(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||Ia(t)&&vo(t.ofType)}function ew(t){if(!vo(t))throw new Error(`Expected ${ae(t)} to be a GraphQL output type.`);return t}function fn(t){return kn(t)||xt(t)}function tw(t){if(!fn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL leaf type.`);return t}function Er(t){return Ue(t)||Ke(t)||St(t)}function nw(t){if(!Er(t))throw new Error(`Expected ${ae(t)} to be a GraphQL composite type.`);return t}function br(t){return Ke(t)||St(t)}function rw(t){if(!br(t))throw new Error(`Expected ${ae(t)} to be a GraphQL abstract type.`);return t}class Ut{constructor(e){go(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class qe{constructor(e){sd(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ia(t){return at(t)||Ie(t)}function ow(t){if(!Ia(t))throw new Error(`Expected ${ae(t)} to be a GraphQL wrapping type.`);return t}function sd(t){return go(t)&&!Ie(t)}function h0(t){if(!sd(t))throw new Error(`Expected ${ae(t)} to be a GraphQL nullable type.`);return t}function ad(t){if(t)return Ie(t)?t.ofType:t}function as(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||lt(t)}function iw(t){if(!as(t))throw new Error(`Expected ${ae(t)} to be a GraphQL named type.`);return t}function Rt(t){if(t){let e=t;for(;Ia(e);)e=e.ofType;return e}}function cd(t){return typeof t=="function"?t():t}function ld(t){return typeof t=="function"?t():t}class _r{constructor(e){var n,o,i,a;const l=(n=e.parseValue)!==null&&n!==void 0?n:Qv;this.name=_n(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=(o=e.serialize)!==null&&o!==void 0?o:Qv,this.parseValue=l,this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(f,d)=>l(ll(f,d)),this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[],e.specifiedByURL==null||typeof e.specifiedByURL=="string"||Pe(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ae(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize=="function"||Pe(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue=="function"&&typeof e.parseLiteral=="function"||Pe(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Fn{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>v0(e),this._interfaces=()=>m0(e),e.isTypeOf==null||typeof e.isTypeOf=="function"||Pe(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ae(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:y0(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function m0(t){var e;const n=cd((e=t.interfaces)!==null&&e!==void 0?e:[]);return Array.isArray(n)||Pe(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),n}function v0(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>{var i;zi(n)||Pe(!1,`${t.name}.${o} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Pe(!1,`${t.name}.${o} field resolver must be a function if provided, but got: ${ae(n.resolve)}.`);const a=(i=n.args)!==null&&i!==void 0?i:{};return zi(a)||Pe(!1,`${t.name}.${o} args must be an object with argument names as keys.`),{name:_n(o),description:n.description,type:n.type,args:g0(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}})}function g0(t){return Object.entries(t).map(([e,n])=>({name:_n(e),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zi(t){return yn(t)&&!Array.isArray(t)}function y0(t){return Pr(t,e=>({description:e.description,type:e.type,args:b0(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function b0(t){return mo(t,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _o(t){return Ie(t.type)&&t.defaultValue===void 0}class Ji{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=v0.bind(void 0,e),this._interfaces=m0.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:y0(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Zi{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=sw.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function sw(t){const e=cd(t.types);return Array.isArray(e)||Pe(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class yo{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=aw(this.name,e.values),this._valueLookup=new Map(this._values.map(o=>[o.value,o])),this._nameLookup=Gr(this._values,o=>o.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const n=this._valueLookup.get(e);if(n===void 0)throw new oe(`Enum "${this.name}" cannot represent value: ${ae(e)}`);return n.name}parseValue(e){if(typeof e!="string"){const o=ae(e);throw new oe(`Enum "${this.name}" cannot represent non-string value: ${o}.`+Vc(this,o))}const n=this.getValue(e);if(n==null)throw new oe(`Value "${e}" does not exist in "${this.name}" enum.`+Vc(this,e));return n.value}parseLiteral(e,n){if(e.kind!==R.ENUM){const i=Je(e);throw new oe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Vc(this,i),{nodes:e})}const o=this.getValue(e.value);if(o==null){const i=Je(e);throw new oe(`Value "${i}" does not exist in "${this.name}" enum.`+Vc(this,i),{nodes:e})}return o.value}toConfig(){const e=mo(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Vc(t,e){const n=t.getValues().map(i=>i.name),o=Eo(e,n);return Hr("the enum value",o)}function aw(t,e){return zi(e)||Pe(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([n,o])=>(zi(o)||Pe(!1,`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${ae(o)}.`),{name:f0(n),description:o.description,value:o.value!==void 0?o.value:n,deprecationReason:o.deprecationReason,extensions:qn(o.extensions),astNode:o.astNode}))}class Xi{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=cw.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const e=Pr(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function cw(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>(!("resolve"in n)||Pe(!1,`${t.name}.${o} field has a resolve property, but Input Types cannot define resolvers.`),{name:_n(o),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zl(t){return Ie(t.type)&&t.defaultValue===void 0}function ul(t,e){return t===e?!0:Ie(t)&&Ie(e)||at(t)&&at(e)?ul(t.ofType,e.ofType):!1}function Qo(t,e,n){return e===n?!0:Ie(n)?Ie(e)?Qo(t,e.ofType,n.ofType):!1:Ie(e)?Qo(t,e.ofType,n):at(n)?at(e)?Qo(t,e.ofType,n.ofType):!1:at(e)?!1:br(n)&&(Ke(e)||Ue(e))&&t.isSubType(n,e)}function Ep(t,e,n){return e===n?!0:br(e)?br(n)?t.getPossibleTypes(e).some(o=>t.isSubType(n,o)):t.isSubType(e,n):br(n)?t.isSubType(n,e):!1}const rl=2147483647,ol=-2147483648,E0=new _r({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=La(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isInteger(n))throw new oe(`Int cannot represent non-integer value: ${ae(e)}`);if(n>rl||n<ol)throw new oe("Int cannot represent non 32-bit signed integer value: "+ae(e));return n},parseValue(t){if(typeof t!="number"||!Number.isInteger(t))throw new oe(`Int cannot represent non-integer value: ${ae(t)}`);if(t>rl||t<ol)throw new oe(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==R.INT)throw new oe(`Int cannot represent non-integer value: ${Je(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>rl||e<ol)throw new oe(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),ud=new _r({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(t){const e=La(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isFinite(n))throw new oe(`Float cannot represent non numeric value: ${ae(e)}`);return n},parseValue(t){if(typeof t!="number"||!Number.isFinite(t))throw new oe(`Float cannot represent non numeric value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.FLOAT&&t.kind!==R.INT)throw new oe(`Float cannot represent non numeric value: ${Je(t)}`,t);return parseFloat(t.value)}}),yt=new _r({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(t){const e=La(t);if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number"&&Number.isFinite(e))return e.toString();throw new oe(`String cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t!="string")throw new oe(`String cannot represent a non string value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.STRING)throw new oe(`String cannot represent a non string value: ${Je(t)}`,{nodes:t});return t.value}}),vn=new _r({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=La(t);if(typeof e=="boolean")return e;if(Number.isFinite(e))return e!==0;throw new oe(`Boolean cannot represent a non boolean value: ${ae(e)}`)},parseValue(t){if(typeof t!="boolean")throw new oe(`Boolean cannot represent a non boolean value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==R.BOOLEAN)throw new oe(`Boolean cannot represent a non boolean value: ${Je(t)}`,{nodes:t});return t.value}}),fd=new _r({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(t){const e=La(t);if(typeof e=="string")return e;if(Number.isInteger(e))return String(e);throw new oe(`ID cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t=="string")return t;if(typeof t=="number"&&Number.isInteger(t))return t.toString();throw new oe(`ID cannot represent value: ${ae(t)}`)},parseLiteral(t){if(t.kind!==R.STRING&&t.kind!==R.INT)throw new oe("ID cannot represent a non-string and non-integer value: "+Je(t),{nodes:t});return t.value}}),Fa=Object.freeze([yt,E0,ud,vn,fd]);function Hl(t){return Fa.some(({name:e})=>t.name===e)}function La(t){if(yn(t)){if(typeof t.valueOf=="function"){const e=t.valueOf();if(!yn(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function Gl(t){return Jn(t,kr)}function lw(t){if(!Gl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL directive.`);return t}class kr{constructor(e){var n,o;this.name=_n(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=(n=e.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=qn(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||Pe(!1,`@${e.name} locations must be an Array.`);const i=(o=e.args)!==null&&o!==void 0?o:{};yn(i)&&!Array.isArray(i)||Pe(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=g0(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:b0(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pd=new kr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(vn),description:"Included when true."}}}),dd=new kr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(vn),description:"Skipped when true."}}}),hd="No longer supported",Wl=new kr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Te.FIELD_DEFINITION,Te.ARGUMENT_DEFINITION,Te.INPUT_FIELD_DEFINITION,Te.ENUM_VALUE],args:{reason:{type:yt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:hd}}}),md=new kr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Te.SCALAR],args:{url:{type:new qe(yt),description:"The URL that specifies the behavior of this scalar."}}}),ko=Object.freeze([pd,dd,Wl,md]);function vd(t){return ko.some(({name:e})=>e===t.name)}function gd(t){return typeof t=="object"&&typeof(t==null?void 0:t[Symbol.iterator])=="function"}function jr(t,e){if(Ie(e)){const n=jr(t,e.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(t===null)return{kind:R.NULL};if(t===void 0)return null;if(at(e)){const n=e.ofType;if(gd(t)){const o=[];for(const i of t){const a=jr(i,n);a!=null&&o.push(a)}return{kind:R.LIST,values:o}}return jr(t,n)}if(lt(e)){if(!yn(t))return null;const n=[];for(const o of Object.values(e.getFields())){const i=jr(t[o.name],o.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:o.name},value:i})}return{kind:R.OBJECT,fields:n}}if(fn(e)){const n=e.serialize(t);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const o=String(n);return Zv.test(o)?{kind:R.INT,value:o}:{kind:R.FLOAT,value:o}}if(typeof n=="string")return xt(e)?{kind:R.ENUM,value:n}:e===fd&&Zv.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ae(n)}.`)}_t(!1,"Unexpected input type: "+ae(e))}const Zv=/^-?(?:0|[1-9][0-9]*)$/,Ql=new Fn({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:yt,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new qe(new Ut(new qe(Dn))),resolve(t){return Object.values(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new qe(Dn),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Dn,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Dn,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new qe(new Ut(new qe(yd))),resolve:t=>t.getDirectives()}})}),yd=new Fn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
51
51
 
52
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isRepeatable:{type:new qe(vn),resolve:t=>t.isRepeatable},locations:{type:new qe(new Ut(new qe(bd))),resolve:t=>t.locations},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}}})}),bd=new yo({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Te.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Te.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Te.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Te.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Te.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Te.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Te.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Te.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Te.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Te.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Te.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Te.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Te.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Te.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Te.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Te.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Te.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Te.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Te.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Dn=new Ln({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new qe(kd),resolve(t){if(kn(t))return ot.SCALAR;if(Ue(t))return ot.OBJECT;if(Ke(t))return ot.INTERFACE;if(St(t))return ot.UNION;if(xt(t))return ot.ENUM;if(lt(t))return ot.INPUT_OBJECT;if(at(t))return ot.LIST;if(Ie(t))return ot.NON_NULL;_t(!1,`Unexpected type: "${ae(t)}".`)}},name:{type:yt,resolve:t=>"name"in t?t.name:void 0},description:{type:yt,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:yt,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new Ut(new qe(Ed)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Ue(t)||Ke(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},interfaces:{type:new Ut(new qe(Dn)),resolve(t){if(Ue(t)||Ke(t))return t.getInterfaces()}},possibleTypes:{type:new Ut(new qe(Dn)),resolve(t,e,n,{schema:o}){if(br(t))return o.getPossibleTypes(t)}},enumValues:{type:new Ut(new qe(_d)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(xt(t)){const n=t.getValues();return e?n:n.filter(o=>o.deprecationReason==null)}}},inputFields:{type:new Ut(new qe(Ra)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(lt(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},ofType:{type:Dn,resolve:t=>"ofType"in t?t.ofType:void 0}})}),Ed=new Ln({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}},type:{type:new qe(Dn),resolve:t=>t.type},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),Ra=new Ln({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},type:{type:new qe(Dn),resolve:t=>t.type},defaultValue:{type:yt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:n}=t,o=jr(n,e);return o?Je(o):null}},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),_d=new Ln({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})});var ot;(function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"})(ot||(ot={}));const kd=new yo({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ot.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ot.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ot.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ot.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ot.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ot.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ot.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ot.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ha={name:"__schema",type:new qe(Ql),description:"Access the current type schema of this server.",args:[],resolve:(t,e,n,{schema:o})=>o,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ma={name:"__type",type:Dn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new qe(yt),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},n,{schema:o})=>o.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},va={name:"__typename",type:new qe(yt),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,n,{parentType:o})=>o.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ma=Object.freeze([Ql,yd,bd,Dn,Ed,Ra,_d,kd]);function si(t){return Ma.some(({name:e})=>t.name===e)}function fl(t){return Jn(t,cs)}function xd(t){if(!fl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL schema.`);return t}class cs{constructor(e){var n,o;this.__validationErrors=e.assumeValid===!0?[]:void 0,yn(e)||Pe(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Pe(!1,`"types" must be Array if provided but got: ${ae(e.types)}.`),!e.directives||Array.isArray(e.directives)||Pe(!1,`"directives" must be Array if provided but got: ${ae(e.directives)}.`),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=(o=e.directives)!==null&&o!==void 0?o:ko;const i=new Set(e.types);if(e.types!=null)for(const a of e.types)i.delete(a),Wn(a,i);this._queryType!=null&&Wn(this._queryType,i),this._mutationType!=null&&Wn(this._mutationType,i),this._subscriptionType!=null&&Wn(this._subscriptionType,i);for(const a of this._directives)if(Gl(a))for(const l of a.args)Wn(l.type,i);Wn(Ql,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const a of i){if(a==null)continue;const l=a.name;if(l||Pe(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[l]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${l}".`);if(this._typeMap[l]=a,Ke(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.interfaces.push(a)}}else if(Ue(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case Ft.QUERY:return this.getQueryType();case Ft.MUTATION:return this.getMutationType();case Ft.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return St(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const n=this._implementationsMap[e.name];return n??{objects:[],interfaces:[]}}isSubType(e,n){let o=this._subTypeMap[e.name];if(o===void 0){if(o=Object.create(null),St(e))for(const i of e.getTypes())o[i.name]=!0;else{const i=this.getImplementations(e);for(const a of i.objects)o[a.name]=!0;for(const a of i.interfaces)o[a.name]=!0}this._subTypeMap[e.name]=o}return o[n.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(n=>n.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Wn(t,e){const n=Rt(t);if(!e.has(n)){if(e.add(n),St(n))for(const o of n.getTypes())Wn(o,e);else if(Ue(n)||Ke(n)){for(const o of n.getInterfaces())Wn(o,e);for(const o of Object.values(n.getFields())){Wn(o.type,e);for(const i of o.args)Wn(i.type,e)}}else if(lt(n))for(const o of Object.values(n.getFields()))Wn(o.type,e)}return e}function Yl(t){if(xd(t),t.__validationErrors)return t.__validationErrors;const e=new uw(t);fw(e),pw(e),dw(e);const n=e.getErrors();return t.__validationErrors=n,n}function wd(t){const e=Yl(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
52
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isRepeatable:{type:new qe(vn),resolve:t=>t.isRepeatable},locations:{type:new qe(new Ut(new qe(bd))),resolve:t=>t.locations},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}}})}),bd=new yo({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Te.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Te.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Te.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Te.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Te.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Te.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Te.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Te.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Te.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Te.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Te.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Te.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Te.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Te.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Te.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Te.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Te.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Te.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Te.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Dn=new Fn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new qe(kd),resolve(t){if(kn(t))return ot.SCALAR;if(Ue(t))return ot.OBJECT;if(Ke(t))return ot.INTERFACE;if(St(t))return ot.UNION;if(xt(t))return ot.ENUM;if(lt(t))return ot.INPUT_OBJECT;if(at(t))return ot.LIST;if(Ie(t))return ot.NON_NULL;_t(!1,`Unexpected type: "${ae(t)}".`)}},name:{type:yt,resolve:t=>"name"in t?t.name:void 0},description:{type:yt,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:yt,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new Ut(new qe(Ed)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Ue(t)||Ke(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},interfaces:{type:new Ut(new qe(Dn)),resolve(t){if(Ue(t)||Ke(t))return t.getInterfaces()}},possibleTypes:{type:new Ut(new qe(Dn)),resolve(t,e,n,{schema:o}){if(br(t))return o.getPossibleTypes(t)}},enumValues:{type:new Ut(new qe(_d)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(xt(t)){const n=t.getValues();return e?n:n.filter(o=>o.deprecationReason==null)}}},inputFields:{type:new Ut(new qe(Ra)),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(lt(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},ofType:{type:Dn,resolve:t=>"ofType"in t?t.ofType:void 0}})}),Ed=new Fn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:vn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}},type:{type:new qe(Dn),resolve:t=>t.type},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),Ra=new Fn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},type:{type:new qe(Dn),resolve:t=>t.type},defaultValue:{type:yt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:n}=t,o=jr(n,e);return o?Je(o):null}},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),_d=new Fn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isDeprecated:{type:new qe(vn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})});var ot;(function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"})(ot||(ot={}));const kd=new yo({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ot.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ot.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ot.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ot.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ot.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ot.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ot.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ot.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ha={name:"__schema",type:new qe(Ql),description:"Access the current type schema of this server.",args:[],resolve:(t,e,n,{schema:o})=>o,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ma={name:"__type",type:Dn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new qe(yt),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},n,{schema:o})=>o.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},va={name:"__typename",type:new qe(yt),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,n,{parentType:o})=>o.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ma=Object.freeze([Ql,yd,bd,Dn,Ed,Ra,_d,kd]);function si(t){return Ma.some(({name:e})=>t.name===e)}function fl(t){return Jn(t,cs)}function xd(t){if(!fl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL schema.`);return t}class cs{constructor(e){var n,o;this.__validationErrors=e.assumeValid===!0?[]:void 0,yn(e)||Pe(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Pe(!1,`"types" must be Array if provided but got: ${ae(e.types)}.`),!e.directives||Array.isArray(e.directives)||Pe(!1,`"directives" must be Array if provided but got: ${ae(e.directives)}.`),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=(o=e.directives)!==null&&o!==void 0?o:ko;const i=new Set(e.types);if(e.types!=null)for(const a of e.types)i.delete(a),Wn(a,i);this._queryType!=null&&Wn(this._queryType,i),this._mutationType!=null&&Wn(this._mutationType,i),this._subscriptionType!=null&&Wn(this._subscriptionType,i);for(const a of this._directives)if(Gl(a))for(const l of a.args)Wn(l.type,i);Wn(Ql,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const a of i){if(a==null)continue;const l=a.name;if(l||Pe(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[l]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${l}".`);if(this._typeMap[l]=a,Ke(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.interfaces.push(a)}}else if(Ue(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case Lt.QUERY:return this.getQueryType();case Lt.MUTATION:return this.getMutationType();case Lt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return St(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const n=this._implementationsMap[e.name];return n??{objects:[],interfaces:[]}}isSubType(e,n){let o=this._subTypeMap[e.name];if(o===void 0){if(o=Object.create(null),St(e))for(const i of e.getTypes())o[i.name]=!0;else{const i=this.getImplementations(e);for(const a of i.objects)o[a.name]=!0;for(const a of i.interfaces)o[a.name]=!0}this._subTypeMap[e.name]=o}return o[n.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(n=>n.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Wn(t,e){const n=Rt(t);if(!e.has(n)){if(e.add(n),St(n))for(const o of n.getTypes())Wn(o,e);else if(Ue(n)||Ke(n)){for(const o of n.getInterfaces())Wn(o,e);for(const o of Object.values(n.getFields())){Wn(o.type,e);for(const i of o.args)Wn(i.type,e)}}else if(lt(n))for(const o of Object.values(n.getFields()))Wn(o.type,e)}return e}function Yl(t){if(xd(t),t.__validationErrors)return t.__validationErrors;const e=new uw(t);fw(e),pw(e),dw(e);const n=e.getErrors();return t.__validationErrors=n,n}function wd(t){const e=Yl(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
53
53
 
54
- `))}class uw{constructor(e){this._errors=[],this.schema=e}reportError(e,n){const o=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new oe(e,{nodes:o}))}getErrors(){return this._errors}}function fw(t){const e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!Ue(n)){var o;t.reportError(`Query root type must be Object type, it cannot be ${ae(n)}.`,(o=jf(e,Ft.QUERY))!==null&&o!==void 0?o:n.astNode)}const i=e.getMutationType();if(i&&!Ue(i)){var a;t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ae(i)}.`,(a=jf(e,Ft.MUTATION))!==null&&a!==void 0?a:i.astNode)}const l=e.getSubscriptionType();if(l&&!Ue(l)){var f;t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ae(l)}.`,(f=jf(e,Ft.SUBSCRIPTION))!==null&&f!==void 0?f:l.astNode)}}function jf(t,e){var n;return(n=[t.astNode,...t.extensionASTNodes].flatMap(o=>{var i;return(i=o==null?void 0:o.operationTypes)!==null&&i!==void 0?i:[]}).find(o=>o.operation===e))===null||n===void 0?void 0:n.type}function pw(t){for(const n of t.schema.getDirectives()){if(!Gl(n)){t.reportError(`Expected directive but got: ${ae(n)}.`,n==null?void 0:n.astNode);continue}Xo(t,n);for(const o of n.args)if(Xo(t,o),ln(o.type)||t.reportError(`The type of @${n.name}(${o.name}:) must be Input Type but got: ${ae(o.type)}.`,o.astNode),_o(o)&&o.deprecationReason!=null){var e;t.reportError(`Required argument @${n.name}(${o.name}:) cannot be deprecated.`,[$d(o.astNode),(e=o.astNode)===null||e===void 0?void 0:e.type])}}}function Xo(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function dw(t){const e=bw(t),n=t.schema.getTypeMap();for(const o of Object.values(n)){if(!as(o)){t.reportError(`Expected GraphQL named type but got: ${ae(o)}.`,o.astNode);continue}si(o)||Xo(t,o),Ue(o)||Ke(o)?(Xv(t,o),Kv(t,o)):St(o)?vw(t,o):xt(o)?gw(t,o):lt(o)&&(yw(t,o),e(o))}}function Xv(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const l of n){if(Xo(t,l),!vo(l.type)){var o;t.reportError(`The type of ${e.name}.${l.name} must be Output Type but got: ${ae(l.type)}.`,(o=l.astNode)===null||o===void 0?void 0:o.type)}for(const f of l.args){const d=f.name;if(Xo(t,f),!ln(f.type)){var i;t.reportError(`The type of ${e.name}.${l.name}(${d}:) must be Input Type but got: ${ae(f.type)}.`,(i=f.astNode)===null||i===void 0?void 0:i.type)}if(_o(f)&&f.deprecationReason!=null){var a;t.reportError(`Required argument ${e.name}.${l.name}(${d}:) cannot be deprecated.`,[$d(f.astNode),(a=f.astNode)===null||a===void 0?void 0:a.type])}}}}function Kv(t,e){const n=Object.create(null);for(const o of e.getInterfaces()){if(!Ke(o)){t.reportError(`Type ${ae(e)} must only implement Interface types, it cannot implement ${ae(o)}.`,aa(e,o));continue}if(e===o){t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,aa(e,o));continue}if(n[o.name]){t.reportError(`Type ${e.name} can only implement ${o.name} once.`,aa(e,o));continue}n[o.name]=!0,mw(t,e,o),hw(t,e,o)}}function hw(t,e,n){const o=e.getFields();for(const d of Object.values(n.getFields())){const h=d.name,v=o[h];if(!v){t.reportError(`Interface field ${n.name}.${h} expected but ${e.name} does not provide it.`,[d.astNode,e.astNode,...e.extensionASTNodes]);continue}if(!Qo(t.schema,v.type,d.type)){var i,a;t.reportError(`Interface field ${n.name}.${h} expects type ${ae(d.type)} but ${e.name}.${h} is type ${ae(v.type)}.`,[(i=d.astNode)===null||i===void 0?void 0:i.type,(a=v.astNode)===null||a===void 0?void 0:a.type])}for(const y of d.args){const g=y.name,E=v.args.find(C=>C.name===g);if(!E){t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expected but ${e.name}.${h} does not provide it.`,[y.astNode,v.astNode]);continue}if(!ul(y.type,E.type)){var l,f;t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expects type ${ae(y.type)} but ${e.name}.${h}(${g}:) is type ${ae(E.type)}.`,[(l=y.astNode)===null||l===void 0?void 0:l.type,(f=E.astNode)===null||f===void 0?void 0:f.type])}}for(const y of v.args){const g=y.name;!d.args.find(C=>C.name===g)&&_o(y)&&t.reportError(`Object field ${e.name}.${h} includes required argument ${g} that is missing from the Interface field ${n.name}.${h}.`,[y.astNode,d.astNode])}}}function mw(t,e,n){const o=e.getInterfaces();for(const i of n.getInterfaces())o.includes(i)||t.reportError(i===e?`Type ${e.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${e.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...aa(n,i),...aa(e,n)])}function vw(t,e){const n=e.getTypes();n.length===0&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const o=Object.create(null);for(const i of n){if(o[i.name]){t.reportError(`Union type ${e.name} can only include type ${i.name} once.`,eg(e,i.name));continue}o[i.name]=!0,Ue(i)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${ae(i)}.`,eg(e,String(i)))}}function gw(t,e){const n=e.getValues();n.length===0&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const o of n)Xo(t,o)}function yw(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const a of n){if(Xo(t,a),!ln(a.type)){var o;t.reportError(`The type of ${e.name}.${a.name} must be Input Type but got: ${ae(a.type)}.`,(o=a.astNode)===null||o===void 0?void 0:o.type)}if(zl(a)&&a.deprecationReason!=null){var i;t.reportError(`Required input field ${e.name}.${a.name} cannot be deprecated.`,[$d(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}}}function bw(t){const e=Object.create(null),n=[],o=Object.create(null);return i;function i(a){if(e[a.name])return;e[a.name]=!0,o[a.name]=n.length;const l=Object.values(a.getFields());for(const f of l)if(Ie(f.type)&&lt(f.type.ofType)){const d=f.type.ofType,h=o[d.name];if(n.push(f),h===void 0)i(d);else{const v=n.slice(h),y=v.map(g=>g.name).join(".");t.reportError(`Cannot reference Input Object "${d.name}" within itself through a series of non-null fields: "${y}".`,v.map(g=>g.astNode))}n.pop()}o[a.name]=void 0}}function aa(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var l;return(l=a.interfaces)!==null&&l!==void 0?l:[]}).filter(a=>a.name.value===e.name)}function eg(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var l;return(l=a.types)!==null&&l!==void 0?l:[]}).filter(a=>a.name.value===e)}function $d(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(n=>n.name.value===Wl.name)}function tn(t,e){switch(e.kind){case R.LIST_TYPE:{const n=tn(t,e.type);return n&&new Ut(n)}case R.NON_NULL_TYPE:{const n=tn(t,e.type);return n&&new qe(n)}case R.NAMED_TYPE:return t.getType(e.name.value)}}class ai{constructor(e,n,o){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=o??Ew,n&&(ln(n)&&this._inputTypeStack.push(n),Er(n)&&this._parentTypeStack.push(n),vo(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const n=this._schema;switch(e.kind){case R.SELECTION_SET:{const i=Rt(this.getType());this._parentTypeStack.push(Er(i)?i:void 0);break}case R.FIELD:{const i=this.getParentType();let a,l;i&&(a=this._getFieldDef(n,i,e),a&&(l=a.type)),this._fieldDefStack.push(a),this._typeStack.push(vo(l)?l:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case R.OPERATION_DEFINITION:{const i=n.getRootType(e.operation);this._typeStack.push(Ue(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{const i=e.typeCondition,a=i?tn(n,i):Rt(this.getType());this._typeStack.push(vo(a)?a:void 0);break}case R.VARIABLE_DEFINITION:{const i=tn(n,e.type);this._inputTypeStack.push(ln(i)?i:void 0);break}case R.ARGUMENT:{var o;let i,a;const l=(o=this.getDirective())!==null&&o!==void 0?o:this.getFieldDef();l&&(i=l.args.find(f=>f.name===e.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.LIST:{const i=ad(this.getInputType()),a=at(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.OBJECT_FIELD:{const i=Rt(this.getInputType());let a,l;lt(i)&&(l=i.getFields()[e.name.value],l&&(a=l.type)),this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.ENUM:{const i=Rt(this.getInputType());let a;xt(i)&&(a=i.getValue(e.value)),this._enumValue=a;break}}}leave(e){switch(e.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break}}}function Ew(t,e,n){const o=n.name.value;if(o===ha.name&&t.getQueryType()===e)return ha;if(o===ma.name&&t.getQueryType()===e)return ma;if(o===va.name&&Er(e))return va;if(Ue(e)||Ke(e))return e.getFields()[o]}function qa(t,e){return{enter(...n){const o=n[0];t.enter(o);const i=Yi(e,o.kind).enter;if(i){const a=i.apply(e,n);return a!==void 0&&(t.leave(o),gp(a)&&t.enter(a)),a}},leave(...n){const o=n[0],i=Yi(e,o.kind).leave;let a;return i&&(a=i.apply(e,n)),t.leave(o),a}}}function _w(t){return Cd(t)||Ad(t)||Sd(t)}function Cd(t){return t.kind===R.OPERATION_DEFINITION||t.kind===R.FRAGMENT_DEFINITION}function kw(t){return t.kind===R.FIELD||t.kind===R.FRAGMENT_SPREAD||t.kind===R.INLINE_FRAGMENT}function _0(t){return t.kind===R.VARIABLE||t.kind===R.INT||t.kind===R.FLOAT||t.kind===R.STRING||t.kind===R.BOOLEAN||t.kind===R.NULL||t.kind===R.ENUM||t.kind===R.LIST||t.kind===R.OBJECT}function _p(t){return _0(t)&&(t.kind===R.LIST?t.values.some(_p):t.kind===R.OBJECT?t.fields.some(e=>_p(e.value)):t.kind!==R.VARIABLE)}function xw(t){return t.kind===R.NAMED_TYPE||t.kind===R.LIST_TYPE||t.kind===R.NON_NULL_TYPE}function Ad(t){return t.kind===R.SCHEMA_DEFINITION||ls(t)||t.kind===R.DIRECTIVE_DEFINITION}function ls(t){return t.kind===R.SCALAR_TYPE_DEFINITION||t.kind===R.OBJECT_TYPE_DEFINITION||t.kind===R.INTERFACE_TYPE_DEFINITION||t.kind===R.UNION_TYPE_DEFINITION||t.kind===R.ENUM_TYPE_DEFINITION||t.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Sd(t){return t.kind===R.SCHEMA_EXTENSION||Jl(t)}function Jl(t){return t.kind===R.SCALAR_TYPE_EXTENSION||t.kind===R.OBJECT_TYPE_EXTENSION||t.kind===R.INTERFACE_TYPE_EXTENSION||t.kind===R.UNION_TYPE_EXTENSION||t.kind===R.ENUM_TYPE_EXTENSION||t.kind===R.INPUT_OBJECT_TYPE_EXTENSION}function k0(t){return{Document(e){for(const n of e.definitions)if(!Cd(n)){const o=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';t.reportError(new oe(`The ${o} definition is not executable.`,{nodes:n}))}return!1}}}function x0(t){return{Field(e){const n=t.getParentType();if(n&&!t.getFieldDef()){const i=t.getSchema(),a=e.name.value;let l=Hr("to use an inline fragment on",ww(i,n,a));l===""&&(l=Hr($w(n,a))),t.reportError(new oe(`Cannot query field "${a}" on type "${n.name}".`+l,{nodes:e}))}}}}function ww(t,e,n){if(!br(e))return[];const o=new Set,i=Object.create(null);for(const l of t.getPossibleTypes(e))if(l.getFields()[n]){o.add(l),i[l.name]=1;for(const f of l.getInterfaces()){var a;f.getFields()[n]&&(o.add(f),i[f.name]=((a=i[f.name])!==null&&a!==void 0?a:0)+1)}}return[...o].sort((l,f)=>{const d=i[f.name]-i[l.name];return d!==0?d:Ke(l)&&t.isSubType(l,f)?-1:Ke(f)&&t.isSubType(f,l)?1:Oa(l.name,f.name)}).map(l=>l.name)}function $w(t,e){if(Ue(t)||Ke(t)){const n=Object.keys(t.getFields());return Eo(e,n)}return[]}function w0(t){return{InlineFragment(e){const n=e.typeCondition;if(n){const o=tn(t.getSchema(),n);if(o&&!Er(o)){const i=Je(n);t.reportError(new oe(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(e){const n=tn(t.getSchema(),e.typeCondition);if(n&&!Er(n)){const o=Je(e.typeCondition);t.reportError(new oe(`Fragment "${e.name.value}" cannot condition on non composite type "${o}".`,{nodes:e.typeCondition}))}}}}function $0(t){return{...C0(t),Argument(e){const n=t.getArgument(),o=t.getFieldDef(),i=t.getParentType();if(!n&&o&&i){const a=e.name.value,l=o.args.map(d=>d.name),f=Eo(a,l);t.reportError(new oe(`Unknown argument "${a}" on field "${i.name}.${o.name}".`+Hr(f),{nodes:e}))}}}}function C0(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const l of o)e[l.name]=l.args.map(f=>f.name);const i=t.getDocument().definitions;for(const l of i)if(l.kind===R.DIRECTIVE_DEFINITION){var a;const f=(a=l.arguments)!==null&&a!==void 0?a:[];e[l.name.value]=f.map(d=>d.name.value)}return{Directive(l){const f=l.name.value,d=e[f];if(l.arguments&&d)for(const h of l.arguments){const v=h.name.value;if(!d.includes(v)){const y=Eo(v,d);t.reportError(new oe(`Unknown argument "${v}" on directive "@${f}".`+Hr(y),{nodes:h}))}}return!1}}}function Td(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const a of o)e[a.name]=a.locations;const i=t.getDocument().definitions;for(const a of i)a.kind===R.DIRECTIVE_DEFINITION&&(e[a.name.value]=a.locations.map(l=>l.value));return{Directive(a,l,f,d,h){const v=a.name.value,y=e[v];if(!y){t.reportError(new oe(`Unknown directive "@${v}".`,{nodes:a}));return}const g=Cw(h);g&&!y.includes(g)&&t.reportError(new oe(`Directive "@${v}" may not be used on ${g}.`,{nodes:a}))}}}function Cw(t){const e=t[t.length-1];switch("kind"in e||_t(!1),e.kind){case R.OPERATION_DEFINITION:return Aw(e.operation);case R.FIELD:return Te.FIELD;case R.FRAGMENT_SPREAD:return Te.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return Te.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return Te.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return Te.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return Te.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return Te.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return Te.OBJECT;case R.FIELD_DEFINITION:return Te.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return Te.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return Te.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return Te.ENUM;case R.ENUM_VALUE_DEFINITION:return Te.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return Te.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{const n=t[t.length-3];return"kind"in n||_t(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?Te.INPUT_FIELD_DEFINITION:Te.ARGUMENT_DEFINITION}default:_t(!1,"Unexpected kind: "+ae(e.kind))}}function Aw(t){switch(t){case Ft.QUERY:return Te.QUERY;case Ft.MUTATION:return Te.MUTATION;case Ft.SUBSCRIPTION:return Te.SUBSCRIPTION}}function A0(t){return{FragmentSpread(e){const n=e.name.value;t.getFragment(n)||t.reportError(new oe(`Unknown fragment "${n}".`,{nodes:e.name}))}}}function Dd(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);for(const a of t.getDocument().definitions)ls(a)&&(o[a.name.value]=!0);const i=[...Object.keys(n),...Object.keys(o)];return{NamedType(a,l,f,d,h){const v=a.name.value;if(!n[v]&&!o[v]){var y;const g=(y=h[2])!==null&&y!==void 0?y:f,E=g!=null&&Sw(g);if(E&&tg.includes(v))return;const C=Eo(v,E?tg.concat(i):i);t.reportError(new oe(`Unknown type "${v}".`+Hr(C),{nodes:a}))}}}}const tg=[...La,...Ma].map(t=>t.name);function Sw(t){return"kind"in t&&(Ad(t)||Sd(t))}function S0(t){let e=0;return{Document(n){e=n.definitions.filter(o=>o.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&e>1&&t.reportError(new oe("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function T0(t){var e,n,o;const i=t.getSchema(),a=(e=(n=(o=i==null?void 0:i.astNode)!==null&&o!==void 0?o:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType();let l=0;return{SchemaDefinition(f){if(a){t.reportError(new oe("Cannot define a new schema within a schema extension.",{nodes:f}));return}l>0&&t.reportError(new oe("Must provide only one schema definition.",{nodes:f})),++l}}}function D0(t){const e=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(e[a.name.value])return;const l=a.name.value;e[l]=!0;const f=t.getFragmentSpreads(a.selectionSet);if(f.length!==0){o[l]=n.length;for(const d of f){const h=d.name.value,v=o[h];if(n.push(d),v===void 0){const y=t.getFragment(h);y&&i(y)}else{const y=n.slice(v),g=y.slice(0,-1).map(E=>'"'+E.name.value+'"').join(", ");t.reportError(new oe(`Cannot spread fragment "${h}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}o[l]=void 0}}}function N0(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i}of o){const a=i.name.value;e[a]!==!0&&t.reportError(new oe(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){e[n.variable.name.value]=!0}}}function O0(t){const e=[],n=[];return{OperationDefinition(o){return e.push(o),!1},FragmentDefinition(o){return n.push(o),!1},Document:{leave(){const o=Object.create(null);for(const i of e)for(const a of t.getRecursivelyReferencedFragments(i))o[a.name.value]=!0;for(const i of n){const a=i.name.value;o[a]!==!0&&t.reportError(new oe(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}function I0(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(n){const o=Object.create(null),i=t.getRecursiveVariableUsages(n);for(const{node:a}of i)o[a.name.value]=!0;for(const a of e){const l=a.variable.name.value;o[l]!==!0&&t.reportError(new oe(n.name?`Variable "$${l}" is never used in operation "${n.name.value}".`:`Variable "$${l}" is never used.`,{nodes:a}))}}},VariableDefinition(n){e.push(n)}}}function Zl(t){switch(t.kind){case R.OBJECT:return{...t,fields:Tw(t.fields)};case R.LIST:return{...t,values:t.values.map(Zl)};case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return t}}function Tw(t){return t.map(e=>({...e,value:Zl(e.value)})).sort((e,n)=>Oa(e.name.value,n.name.value))}function L0(t){return Array.isArray(t)?t.map(([e,n])=>`subfields "${e}" conflict because `+L0(n)).join(" and "):t}function F0(t){const e=new Fw,n=new Map;return{SelectionSet(o){const i=Dw(t,n,e,t.getParentType(),o);for(const[[a,l],f,d]of i){const h=L0(l);t.reportError(new oe(`Fields "${a}" conflict because ${h}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:f.concat(d)}))}}}}function Dw(t,e,n,o,i){const a=[],[l,f]=hl(t,e,o,i);if(Ow(t,a,e,n,l),f.length!==0)for(let d=0;d<f.length;d++){pl(t,a,e,n,!1,l,f[d]);for(let h=d+1;h<f.length;h++)dl(t,a,e,n,!1,f[d],f[h])}return a}function pl(t,e,n,o,i,a,l){const f=t.getFragment(l);if(!f)return;const[d,h]=xp(t,n,f);if(a!==d){Nd(t,e,n,o,i,a,d);for(const v of h)o.has(v,l,i)||(o.add(v,l,i),pl(t,e,n,o,i,a,v))}}function dl(t,e,n,o,i,a,l){if(a===l||o.has(a,l,i))return;o.add(a,l,i);const f=t.getFragment(a),d=t.getFragment(l);if(!f||!d)return;const[h,v]=xp(t,n,f),[y,g]=xp(t,n,d);Nd(t,e,n,o,i,h,y);for(const E of g)dl(t,e,n,o,i,a,E);for(const E of v)dl(t,e,n,o,i,E,l)}function Nw(t,e,n,o,i,a,l,f){const d=[],[h,v]=hl(t,e,i,a),[y,g]=hl(t,e,l,f);Nd(t,d,e,n,o,h,y);for(const E of g)pl(t,d,e,n,o,h,E);for(const E of v)pl(t,d,e,n,o,y,E);for(const E of v)for(const C of g)dl(t,d,e,n,o,E,C);return d}function Ow(t,e,n,o,i){for(const[a,l]of Object.entries(i))if(l.length>1)for(let f=0;f<l.length;f++)for(let d=f+1;d<l.length;d++){const h=R0(t,n,o,!1,a,l[f],l[d]);h&&e.push(h)}}function Nd(t,e,n,o,i,a,l){for(const[f,d]of Object.entries(a)){const h=l[f];if(h)for(const v of d)for(const y of h){const g=R0(t,n,o,i,f,v,y);g&&e.push(g)}}}function R0(t,e,n,o,i,a,l){const[f,d,h]=a,[v,y,g]=l,E=o||f!==v&&Ue(f)&&Ue(v);if(!E){const T=d.name.value,O=y.name.value;if(T!==O)return[[i,`"${T}" and "${O}" are different fields`],[d],[y]];if(!Iw(d,y))return[[i,"they have differing arguments"],[d],[y]]}const C=h==null?void 0:h.type,S=g==null?void 0:g.type;if(C&&S&&kp(C,S))return[[i,`they return conflicting types "${ae(C)}" and "${ae(S)}"`],[d],[y]];const N=d.selectionSet,D=y.selectionSet;if(N&&D){const T=Nw(t,e,n,E,Rt(C),N,Rt(S),D);return Lw(T,i,d,y)}}function Iw(t,e){const n=t.arguments,o=e.arguments;if(n===void 0||n.length===0)return o===void 0||o.length===0;if(o===void 0||o.length===0||n.length!==o.length)return!1;const i=new Map(o.map(({name:a,value:l})=>[a.value,l]));return n.every(a=>{const l=a.value,f=i.get(a.name.value);return f===void 0?!1:ng(l)===ng(f)})}function ng(t){return Je(Zl(t))}function kp(t,e){return at(t)?at(e)?kp(t.ofType,e.ofType):!0:at(e)?!0:Ie(t)?Ie(e)?kp(t.ofType,e.ofType):!0:Ie(e)?!0:fn(t)||fn(e)?t!==e:!1}function hl(t,e,n,o){const i=e.get(o);if(i)return i;const a=Object.create(null),l=Object.create(null);M0(t,n,o,a,l);const f=[a,Object.keys(l)];return e.set(o,f),f}function xp(t,e,n){const o=e.get(n.selectionSet);if(o)return o;const i=tn(t.getSchema(),n.typeCondition);return hl(t,e,i,n.selectionSet)}function M0(t,e,n,o,i){for(const a of n.selections)switch(a.kind){case R.FIELD:{const l=a.name.value;let f;(Ue(e)||Ke(e))&&(f=e.getFields()[l]);const d=a.alias?a.alias.value:l;o[d]||(o[d]=[]),o[d].push([e,a,f]);break}case R.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case R.INLINE_FRAGMENT:{const l=a.typeCondition,f=l?tn(t.getSchema(),l):e;M0(t,f,a.selectionSet,o,i);break}}}function Lw(t,e,n,o){if(t.length>0)return[[e,t.map(([i])=>i)],[n,...t.map(([,i])=>i).flat()],[o,...t.map(([,,i])=>i).flat()]]}class Fw{constructor(){this._data=new Map}has(e,n,o){var i;const[a,l]=e<n?[e,n]:[n,e],f=(i=this._data.get(a))===null||i===void 0?void 0:i.get(l);return f===void 0?!1:o?!0:o===f}add(e,n,o){const[i,a]=e<n?[e,n]:[n,e],l=this._data.get(i);l===void 0?this._data.set(i,new Map([[a,o]])):l.set(a,o)}}function q0(t){return{InlineFragment(e){const n=t.getType(),o=t.getParentType();if(Er(n)&&Er(o)&&!Ep(t.getSchema(),n,o)){const i=ae(o),a=ae(n);t.reportError(new oe(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:e}))}},FragmentSpread(e){const n=e.name.value,o=Rw(t,n),i=t.getParentType();if(o&&i&&!Ep(t.getSchema(),o,i)){const a=ae(i),l=ae(o);t.reportError(new oe(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${l}".`,{nodes:e}))}}}}function Rw(t,e){const n=t.getFragment(e);if(n){const o=tn(t.getSchema(),n.typeCondition);if(Er(o))return o}}function P0(t){const e=t.getSchema(),n=Object.create(null);for(const i of t.getDocument().definitions)ls(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:o,ObjectTypeExtension:o,InterfaceTypeExtension:o,UnionTypeExtension:o,EnumTypeExtension:o,InputObjectTypeExtension:o};function o(i){const a=i.name.value,l=n[a],f=e==null?void 0:e.getType(a);let d;if(l?d=Mw[l.kind]:f&&(d=qw(f)),d){if(d!==i.kind){const h=Pw(i.kind);t.reportError(new oe(`Cannot extend non-${h} type "${a}".`,{nodes:l?[l,i]:i}))}}else{const h=Object.keys({...n,...e==null?void 0:e.getTypeMap()}),v=Eo(a,h);t.reportError(new oe(`Cannot extend type "${a}" because it is not defined.`+Hr(v),{nodes:i.name}))}}}const Mw={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION};function qw(t){if(kn(t))return R.SCALAR_TYPE_EXTENSION;if(Ue(t))return R.OBJECT_TYPE_EXTENSION;if(Ke(t))return R.INTERFACE_TYPE_EXTENSION;if(St(t))return R.UNION_TYPE_EXTENSION;if(xt(t))return R.ENUM_TYPE_EXTENSION;if(lt(t))return R.INPUT_OBJECT_TYPE_EXTENSION;_t(!1,"Unexpected type: "+ae(t))}function Pw(t){switch(t){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:_t(!1,"Unexpected kind: "+ae(t))}}function B0(t){return{...V0(t),Field:{leave(e){var n;const o=t.getFieldDef();if(!o)return!1;const i=new Set((n=e.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(const a of o.args)if(!i.has(a.name)&&_o(a)){const l=ae(a.type);t.reportError(new oe(`Field "${o.name}" argument "${a.name}" of type "${l}" is required, but it was not provided.`,{nodes:e}))}}}}}function V0(t){var e;const n=Object.create(null),o=t.getSchema(),i=(e=o==null?void 0:o.getDirectives())!==null&&e!==void 0?e:ko;for(const f of i)n[f.name]=Gr(f.args.filter(_o),d=>d.name);const a=t.getDocument().definitions;for(const f of a)if(f.kind===R.DIRECTIVE_DEFINITION){var l;const d=(l=f.arguments)!==null&&l!==void 0?l:[];n[f.name.value]=Gr(d.filter(Bw),h=>h.name.value)}return{Directive:{leave(f){const d=f.name.value,h=n[d];if(h){var v;const y=(v=f.arguments)!==null&&v!==void 0?v:[],g=new Set(y.map(E=>E.name.value));for(const[E,C]of Object.entries(h))if(!g.has(E)){const S=go(C.type)?ae(C.type):Je(C.type);t.reportError(new oe(`Directive "@${d}" argument "${E}" of type "${S}" is required, but it was not provided.`,{nodes:f}))}}}}}}function Bw(t){return t.type.kind===R.NON_NULL_TYPE&&t.defaultValue==null}function j0(t){return{Field(e){const n=t.getType(),o=e.selectionSet;if(n){if(fn(Rt(n))){if(o){const i=e.name.value,a=ae(n);t.reportError(new oe(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:o}))}}else if(!o){const i=e.name.value,a=ae(n);t.reportError(new oe(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:e}))}}}}}function U0(t){return t.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function Ki(t,e,n){return{prev:t,key:e,typename:n}}function hn(t){const e=[];let n=t;for(;n;)e.push(n.key),n=n.prev;return e.reverse()}function z0(t,e,n=Vw){return ra(t,e,n,void 0)}function Vw(t,e,n){let o="Invalid value "+ae(e);throw t.length>0&&(o+=` at "value${U0(t)}"`),n.message=o+": "+n.message,n}function ra(t,e,n,o){if(Ie(e)){if(t!=null)return ra(t,e.ofType,n,o);n(hn(o),t,new oe(`Expected non-nullable type "${ae(e)}" not to be null.`));return}if(t==null)return null;if(at(e)){const i=e.ofType;return gd(t)?Array.from(t,(a,l)=>{const f=Ki(o,l,void 0);return ra(a,i,n,f)}):[ra(t,i,n,o)]}if(lt(e)){if(!yn(t)){n(hn(o),t,new oe(`Expected type "${e.name}" to be an object.`));return}const i={},a=e.getFields();for(const l of Object.values(a)){const f=t[l.name];if(f===void 0){if(l.defaultValue!==void 0)i[l.name]=l.defaultValue;else if(Ie(l.type)){const d=ae(l.type);n(hn(o),t,new oe(`Field "${l.name}" of required type "${d}" was not provided.`))}continue}i[l.name]=ra(f,l.type,n,Ki(o,l.name,e.name))}for(const l of Object.keys(t))if(!a[l]){const f=Eo(l,Object.keys(e.getFields()));n(hn(o),t,new oe(`Field "${l}" is not defined by type "${e.name}".`+Hr(f)))}return i}if(fn(e)){let i;try{i=e.parseValue(t)}catch(a){a instanceof oe?n(hn(o),t,a):n(hn(o),t,new oe(`Expected type "${e.name}". `+a.message,{originalError:a}));return}return i===void 0&&n(hn(o),t,new oe(`Expected type "${e.name}".`)),i}_t(!1,"Unexpected input type: "+ae(e))}function vr(t,e,n){if(t){if(t.kind===R.VARIABLE){const o=t.name.value;if(n==null||n[o]===void 0)return;const i=n[o];return i===null&&Ie(e)?void 0:i}if(Ie(e))return t.kind===R.NULL?void 0:vr(t,e.ofType,n);if(t.kind===R.NULL)return null;if(at(e)){const o=e.ofType;if(t.kind===R.LIST){const a=[];for(const l of t.values)if(rg(l,n)){if(Ie(o))return;a.push(null)}else{const f=vr(l,o,n);if(f===void 0)return;a.push(f)}return a}const i=vr(t,o,n);return i===void 0?void 0:[i]}if(lt(e)){if(t.kind!==R.OBJECT)return;const o=Object.create(null),i=Gr(t.fields,a=>a.name.value);for(const a of Object.values(e.getFields())){const l=i[a.name];if(!l||rg(l.value,n)){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if(Ie(a.type))return;continue}const f=vr(l.value,a.type,n);if(f===void 0)return;o[a.name]=f}return o}if(fn(e)){let o;try{o=e.parseLiteral(t,n)}catch{return}return o===void 0?void 0:o}_t(!1,"Unexpected input type: "+ae(e))}}function rg(t,e){return t.kind===R.VARIABLE&&(e==null||e[t.name.value]===void 0)}function H0(t,e,n,o){const i=[],a=o==null?void 0:o.maxErrors;try{const l=jw(t,e,n,f=>{if(a!=null&&i.length>=a)throw new oe("Too many errors processing variables, error limit reached. Execution aborted.");i.push(f)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function jw(t,e,n,o){const i={};for(const a of e){const l=a.variable.name.value,f=tn(t,a.type);if(!ln(f)){const h=Je(a.type);o(new oe(`Variable "$${l}" expected value of type "${h}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!G0(n,l)){if(a.defaultValue)i[l]=vr(a.defaultValue,f);else if(Ie(f)){const h=ae(f);o(new oe(`Variable "$${l}" of required type "${h}" was not provided.`,{nodes:a}))}continue}const d=n[l];if(d===null&&Ie(f)){const h=ae(f);o(new oe(`Variable "$${l}" of non-null type "${h}" must not be null.`,{nodes:a}));continue}i[l]=z0(d,f,(h,v,y)=>{let g=`Variable "$${l}" got invalid value `+ae(v);h.length>0&&(g+=` at "${l}${U0(h)}"`),o(new oe(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Xl(t,e,n){var o;const i={},a=(o=e.arguments)!==null&&o!==void 0?o:[],l=Gr(a,f=>f.name.value);for(const f of t.args){const d=f.name,h=f.type,v=l[d];if(!v){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new oe(`Argument "${d}" of required type "${ae(h)}" was not provided.`,{nodes:e});continue}const y=v.value;let g=y.kind===R.NULL;if(y.kind===R.VARIABLE){const C=y.name.value;if(n==null||!G0(n,C)){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new oe(`Argument "${d}" of required type "${ae(h)}" was provided the variable "$${C}" which was not provided a runtime value.`,{nodes:y});continue}g=n[C]==null}if(g&&Ie(h))throw new oe(`Argument "${d}" of non-null type "${ae(h)}" must not be null.`,{nodes:y});const E=vr(y,h,n);if(E===void 0)throw new oe(`Argument "${d}" has invalid value ${Je(y)}.`,{nodes:y});i[d]=E}return i}function ga(t,e,n){var o;const i=(o=e.directives)===null||o===void 0?void 0:o.find(a=>a.name.value===t.name);if(i)return Xl(t,i,n)}function G0(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Od(t,e,n,o,i){const a=new Map;return ml(t,e,n,o,i,a,new Set),a}function Uw(t,e,n,o,i){const a=new Map,l=new Set;for(const f of i)f.selectionSet&&ml(t,e,n,o,f.selectionSet,a,l);return a}function ml(t,e,n,o,i,a,l){for(const f of i.selections)switch(f.kind){case R.FIELD:{if(!Uf(n,f))continue;const d=zw(f),h=a.get(d);h!==void 0?h.push(f):a.set(d,[f]);break}case R.INLINE_FRAGMENT:{if(!Uf(n,f)||!og(t,f,o))continue;ml(t,e,n,o,f.selectionSet,a,l);break}case R.FRAGMENT_SPREAD:{const d=f.name.value;if(l.has(d)||!Uf(n,f))continue;l.add(d);const h=e[d];if(!h||!og(t,h,o))continue;ml(t,e,n,o,h.selectionSet,a,l);break}}}function Uf(t,e){const n=ga(dd,e,t);if((n==null?void 0:n.if)===!0)return!1;const o=ga(pd,e,t);return(o==null?void 0:o.if)!==!1}function og(t,e,n){const o=e.typeCondition;if(!o)return!0;const i=tn(t,o);return i===n?!0:br(i)?t.isSubType(i,n):!1}function zw(t){return t.alias?t.alias.value:t.name.value}function W0(t){return{OperationDefinition(e){if(e.operation==="subscription"){const n=t.getSchema(),o=n.getSubscriptionType();if(o){const i=e.name?e.name.value:null,a=Object.create(null),l=t.getDocument(),f=Object.create(null);for(const h of l.definitions)h.kind===R.FRAGMENT_DEFINITION&&(f[h.name.value]=h);const d=Od(n,f,a,o,e.selectionSet);if(d.size>1){const y=[...d.values()].slice(1).flat();t.reportError(new oe(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(const h of d.values())h[0].name.value.startsWith("__")&&t.reportError(new oe(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:h}))}}}}}function Id(t,e){const n=new Map;for(const o of t){const i=e(o),a=n.get(i);a===void 0?n.set(i,[o]):a.push(o)}return n}function Q0(t){return{DirectiveDefinition(o){var i;const a=(i=o.arguments)!==null&&i!==void 0?i:[];return n(`@${o.name.value}`,a)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(o){var i;const a=o.name.value,l=(i=o.fields)!==null&&i!==void 0?i:[];for(const d of l){var f;const h=d.name.value,v=(f=d.arguments)!==null&&f!==void 0?f:[];n(`${a}.${h}`,v)}return!1}function n(o,i){const a=Id(i,l=>l.name.value);for(const[l,f]of a)f.length>1&&t.reportError(new oe(`Argument "${o}(${l}:)" can only be defined once.`,{nodes:f.map(d=>d.name)}));return!1}}function Ld(t){return{Field:e,Directive:e};function e(n){var o;const i=(o=n.arguments)!==null&&o!==void 0?o:[],a=Id(i,l=>l.name.value);for(const[l,f]of a)f.length>1&&t.reportError(new oe(`There can be only one argument named "${l}".`,{nodes:f.map(d=>d.name)}))}}function Y0(t){const e=Object.create(null),n=t.getSchema();return{DirectiveDefinition(o){const i=o.name.value;if(n!=null&&n.getDirective(i)){t.reportError(new oe(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:o.name}));return}return e[i]?t.reportError(new oe(`There can be only one directive named "@${i}".`,{nodes:[e[i],o.name]})):e[i]=o.name,!1}}}function Fd(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const f of o)e[f.name]=!f.isRepeatable;const i=t.getDocument().definitions;for(const f of i)f.kind===R.DIRECTIVE_DEFINITION&&(e[f.name.value]=!f.repeatable);const a=Object.create(null),l=Object.create(null);return{enter(f){if(!("directives"in f)||!f.directives)return;let d;if(f.kind===R.SCHEMA_DEFINITION||f.kind===R.SCHEMA_EXTENSION)d=a;else if(ls(f)||Jl(f)){const h=f.name.value;d=l[h],d===void 0&&(l[h]=d=Object.create(null))}else d=Object.create(null);for(const h of f.directives){const v=h.name.value;e[v]&&(d[v]?t.reportError(new oe(`The directive "@${v}" can only be used once at this location.`,{nodes:[d[v],h]})):d[v]=h)}}}}function J0(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var l;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(l=a.values)!==null&&l!==void 0?l:[],h=o[f];for(const v of d){const y=v.name.value,g=n[f];xt(g)&&g.getValue(y)?t.reportError(new oe(`Enum value "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new oe(`Enum value "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function Z0(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var l;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(l=a.fields)!==null&&l!==void 0?l:[],h=o[f];for(const v of d){const y=v.name.value;Hw(n[f],y)?t.reportError(new oe(`Field "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new oe(`Field "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function Hw(t,e){return Ue(t)||Ke(t)||lt(t)?t.getFields()[e]!=null:!1}function X0(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const o=n.name.value;return e[o]?t.reportError(new oe(`There can be only one fragment named "${o}".`,{nodes:[e[o],n.name]})):e[o]=n.name,!1}}}function Rd(t){const e=[];let n=Object.create(null);return{ObjectValue:{enter(){e.push(n),n=Object.create(null)},leave(){const o=e.pop();o||_t(!1),n=o}},ObjectField(o){const i=o.name.value;n[i]?t.reportError(new oe(`There can be only one input field named "${i}".`,{nodes:[n[i],o.name]})):n[i]=o.name}}}function K0(t){const e=Object.create(null);return{OperationDefinition(n){const o=n.name;return o&&(e[o.value]?t.reportError(new oe(`There can be only one operation named "${o.value}".`,{nodes:[e[o.value],o]})):e[o.value]=o),!1},FragmentDefinition:()=>!1}}function eb(t){const e=t.getSchema(),n=Object.create(null),o=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var l;const f=(l=a.operationTypes)!==null&&l!==void 0?l:[];for(const d of f){const h=d.operation,v=n[h];o[h]?t.reportError(new oe(`Type for ${h} already defined in the schema. It cannot be redefined.`,{nodes:d})):v?t.reportError(new oe(`There can be only one ${h} type in schema.`,{nodes:[v,d]})):n[h]=d}return!1}}function tb(t){const e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:o,ObjectTypeDefinition:o,InterfaceTypeDefinition:o,UnionTypeDefinition:o,EnumTypeDefinition:o,InputObjectTypeDefinition:o};function o(i){const a=i.name.value;if(n!=null&&n.getType(a)){t.reportError(new oe(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return e[a]?t.reportError(new oe(`There can be only one type named "${a}".`,{nodes:[e[a],i.name]})):e[a]=i.name,!1}}function nb(t){return{OperationDefinition(e){var n;const o=(n=e.variableDefinitions)!==null&&n!==void 0?n:[],i=Id(o,a=>a.variable.name.value);for(const[a,l]of i)l.length>1&&t.reportError(new oe(`There can be only one variable named "$${a}".`,{nodes:l.map(f=>f.variable.name)}))}}}function rb(t){return{ListValue(e){const n=ad(t.getParentInputType());if(!at(n))return Vo(t,e),!1},ObjectValue(e){const n=Rt(t.getInputType());if(!lt(n))return Vo(t,e),!1;const o=Gr(e.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!o[i.name]&&zl(i)){const l=ae(i.type);t.reportError(new oe(`Field "${n.name}.${i.name}" of required type "${l}" was not provided.`,{nodes:e}))}},ObjectField(e){const n=Rt(t.getParentInputType());if(!t.getInputType()&&lt(n)){const i=Eo(e.name.value,Object.keys(n.getFields()));t.reportError(new oe(`Field "${e.name.value}" is not defined by type "${n.name}".`+Hr(i),{nodes:e}))}},NullValue(e){const n=t.getInputType();Ie(n)&&t.reportError(new oe(`Expected value of type "${ae(n)}", found ${Je(e)}.`,{nodes:e}))},EnumValue:e=>Vo(t,e),IntValue:e=>Vo(t,e),FloatValue:e=>Vo(t,e),StringValue:e=>Vo(t,e),BooleanValue:e=>Vo(t,e)}}function Vo(t,e){const n=t.getInputType();if(!n)return;const o=Rt(n);if(!fn(o)){const i=ae(n);t.reportError(new oe(`Expected value of type "${i}", found ${Je(e)}.`,{nodes:e}));return}try{if(o.parseLiteral(e,void 0)===void 0){const a=ae(n);t.reportError(new oe(`Expected value of type "${a}", found ${Je(e)}.`,{nodes:e}))}}catch(i){const a=ae(n);i instanceof oe?t.reportError(i):t.reportError(new oe(`Expected value of type "${a}", found ${Je(e)}; `+i.message,{nodes:e,originalError:i}))}}function ob(t){return{VariableDefinition(e){const n=tn(t.getSchema(),e.type);if(n!==void 0&&!ln(n)){const o=e.variable.name.value,i=Je(e.type);t.reportError(new oe(`Variable "$${o}" cannot be non-input type "${i}".`,{nodes:e.type}))}}}}function ib(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i,type:a,defaultValue:l}of o){const f=i.name.value,d=e[f];if(d&&a){const h=t.getSchema(),v=tn(h,d.type);if(v&&!Gw(h,v,d.defaultValue,a,l)){const y=ae(v),g=ae(a);t.reportError(new oe(`Variable "$${f}" of type "${y}" used in position expecting type "${g}".`,{nodes:[d,i]}))}}}}},VariableDefinition(n){e[n.variable.name.value]=n}}}function Gw(t,e,n,o,i){if(Ie(o)&&!Ie(e)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;const f=o.ofType;return Qo(t,e,f)}return Qo(t,e,o)}const sb=Object.freeze([k0,K0,S0,W0,Dd,w0,ob,j0,x0,X0,A0,O0,q0,D0,nb,N0,I0,Td,Fd,$0,Ld,rb,B0,ib,F0,Rd]),Ww=Object.freeze([T0,eb,tb,J0,Z0,Q0,Y0,Dd,Td,Fd,P0,C0,Ld,Rd,V0]);class ab{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const o of this.getDocument().definitions)o.kind===R.FRAGMENT_DEFINITION&&(n[o.name.value]=o);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const o=[e];let i;for(;i=o.pop();)for(const a of i.selections)a.kind===R.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&o.push(a.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const o=Object.create(null),i=[e.selectionSet];let a;for(;a=i.pop();)for(const l of this.getFragmentSpreads(a)){const f=l.name.value;if(o[f]!==!0){o[f]=!0;const d=this.getFragment(f);d&&(n.push(d),i.push(d.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}class Qw extends ab{constructor(e,n,o){super(e,o),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class cb extends ab{constructor(e,n,o,i){super(n,i),this._schema=e,this._typeInfo=o,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const o=[],i=new ai(this._schema);un(e,qa(i,{VariableDefinition:()=>!1,Variable(a){o.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=o,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const o of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(o));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function lb(t,e,n=sb,o,i=new ai(t)){var a;const l=(a=o==null?void 0:o.maxErrors)!==null&&a!==void 0?a:100;e||Pe(!1,"Must provide document."),wd(t);const f=Object.freeze({}),d=[],h=new cb(t,e,i,y=>{if(d.length>=l)throw d.push(new oe("Too many validation errors, error limit reached. Validation aborted.")),f;d.push(y)}),v=id(n.map(y=>y(h)));try{un(e,qa(i,v))}catch(y){if(y!==f)throw y}return d}function ub(t,e,n=Ww){const o=[],i=new Qw(t,e,l=>{o.push(l)}),a=n.map(l=>l(i));return un(t,id(a)),o}function Yw(t){const e=ub(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
54
+ `))}class uw{constructor(e){this._errors=[],this.schema=e}reportError(e,n){const o=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new oe(e,{nodes:o}))}getErrors(){return this._errors}}function fw(t){const e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!Ue(n)){var o;t.reportError(`Query root type must be Object type, it cannot be ${ae(n)}.`,(o=jf(e,Lt.QUERY))!==null&&o!==void 0?o:n.astNode)}const i=e.getMutationType();if(i&&!Ue(i)){var a;t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ae(i)}.`,(a=jf(e,Lt.MUTATION))!==null&&a!==void 0?a:i.astNode)}const l=e.getSubscriptionType();if(l&&!Ue(l)){var f;t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ae(l)}.`,(f=jf(e,Lt.SUBSCRIPTION))!==null&&f!==void 0?f:l.astNode)}}function jf(t,e){var n;return(n=[t.astNode,...t.extensionASTNodes].flatMap(o=>{var i;return(i=o==null?void 0:o.operationTypes)!==null&&i!==void 0?i:[]}).find(o=>o.operation===e))===null||n===void 0?void 0:n.type}function pw(t){for(const n of t.schema.getDirectives()){if(!Gl(n)){t.reportError(`Expected directive but got: ${ae(n)}.`,n==null?void 0:n.astNode);continue}Xo(t,n);for(const o of n.args)if(Xo(t,o),ln(o.type)||t.reportError(`The type of @${n.name}(${o.name}:) must be Input Type but got: ${ae(o.type)}.`,o.astNode),_o(o)&&o.deprecationReason!=null){var e;t.reportError(`Required argument @${n.name}(${o.name}:) cannot be deprecated.`,[$d(o.astNode),(e=o.astNode)===null||e===void 0?void 0:e.type])}}}function Xo(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function dw(t){const e=bw(t),n=t.schema.getTypeMap();for(const o of Object.values(n)){if(!as(o)){t.reportError(`Expected GraphQL named type but got: ${ae(o)}.`,o.astNode);continue}si(o)||Xo(t,o),Ue(o)||Ke(o)?(Xv(t,o),Kv(t,o)):St(o)?vw(t,o):xt(o)?gw(t,o):lt(o)&&(yw(t,o),e(o))}}function Xv(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const l of n){if(Xo(t,l),!vo(l.type)){var o;t.reportError(`The type of ${e.name}.${l.name} must be Output Type but got: ${ae(l.type)}.`,(o=l.astNode)===null||o===void 0?void 0:o.type)}for(const f of l.args){const d=f.name;if(Xo(t,f),!ln(f.type)){var i;t.reportError(`The type of ${e.name}.${l.name}(${d}:) must be Input Type but got: ${ae(f.type)}.`,(i=f.astNode)===null||i===void 0?void 0:i.type)}if(_o(f)&&f.deprecationReason!=null){var a;t.reportError(`Required argument ${e.name}.${l.name}(${d}:) cannot be deprecated.`,[$d(f.astNode),(a=f.astNode)===null||a===void 0?void 0:a.type])}}}}function Kv(t,e){const n=Object.create(null);for(const o of e.getInterfaces()){if(!Ke(o)){t.reportError(`Type ${ae(e)} must only implement Interface types, it cannot implement ${ae(o)}.`,aa(e,o));continue}if(e===o){t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,aa(e,o));continue}if(n[o.name]){t.reportError(`Type ${e.name} can only implement ${o.name} once.`,aa(e,o));continue}n[o.name]=!0,mw(t,e,o),hw(t,e,o)}}function hw(t,e,n){const o=e.getFields();for(const d of Object.values(n.getFields())){const h=d.name,v=o[h];if(!v){t.reportError(`Interface field ${n.name}.${h} expected but ${e.name} does not provide it.`,[d.astNode,e.astNode,...e.extensionASTNodes]);continue}if(!Qo(t.schema,v.type,d.type)){var i,a;t.reportError(`Interface field ${n.name}.${h} expects type ${ae(d.type)} but ${e.name}.${h} is type ${ae(v.type)}.`,[(i=d.astNode)===null||i===void 0?void 0:i.type,(a=v.astNode)===null||a===void 0?void 0:a.type])}for(const y of d.args){const g=y.name,E=v.args.find(C=>C.name===g);if(!E){t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expected but ${e.name}.${h} does not provide it.`,[y.astNode,v.astNode]);continue}if(!ul(y.type,E.type)){var l,f;t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expects type ${ae(y.type)} but ${e.name}.${h}(${g}:) is type ${ae(E.type)}.`,[(l=y.astNode)===null||l===void 0?void 0:l.type,(f=E.astNode)===null||f===void 0?void 0:f.type])}}for(const y of v.args){const g=y.name;!d.args.find(C=>C.name===g)&&_o(y)&&t.reportError(`Object field ${e.name}.${h} includes required argument ${g} that is missing from the Interface field ${n.name}.${h}.`,[y.astNode,d.astNode])}}}function mw(t,e,n){const o=e.getInterfaces();for(const i of n.getInterfaces())o.includes(i)||t.reportError(i===e?`Type ${e.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${e.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...aa(n,i),...aa(e,n)])}function vw(t,e){const n=e.getTypes();n.length===0&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const o=Object.create(null);for(const i of n){if(o[i.name]){t.reportError(`Union type ${e.name} can only include type ${i.name} once.`,eg(e,i.name));continue}o[i.name]=!0,Ue(i)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${ae(i)}.`,eg(e,String(i)))}}function gw(t,e){const n=e.getValues();n.length===0&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const o of n)Xo(t,o)}function yw(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const a of n){if(Xo(t,a),!ln(a.type)){var o;t.reportError(`The type of ${e.name}.${a.name} must be Input Type but got: ${ae(a.type)}.`,(o=a.astNode)===null||o===void 0?void 0:o.type)}if(zl(a)&&a.deprecationReason!=null){var i;t.reportError(`Required input field ${e.name}.${a.name} cannot be deprecated.`,[$d(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}}}function bw(t){const e=Object.create(null),n=[],o=Object.create(null);return i;function i(a){if(e[a.name])return;e[a.name]=!0,o[a.name]=n.length;const l=Object.values(a.getFields());for(const f of l)if(Ie(f.type)&&lt(f.type.ofType)){const d=f.type.ofType,h=o[d.name];if(n.push(f),h===void 0)i(d);else{const v=n.slice(h),y=v.map(g=>g.name).join(".");t.reportError(`Cannot reference Input Object "${d.name}" within itself through a series of non-null fields: "${y}".`,v.map(g=>g.astNode))}n.pop()}o[a.name]=void 0}}function aa(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var l;return(l=a.interfaces)!==null&&l!==void 0?l:[]}).filter(a=>a.name.value===e.name)}function eg(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var l;return(l=a.types)!==null&&l!==void 0?l:[]}).filter(a=>a.name.value===e)}function $d(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(n=>n.name.value===Wl.name)}function tn(t,e){switch(e.kind){case R.LIST_TYPE:{const n=tn(t,e.type);return n&&new Ut(n)}case R.NON_NULL_TYPE:{const n=tn(t,e.type);return n&&new qe(n)}case R.NAMED_TYPE:return t.getType(e.name.value)}}class ai{constructor(e,n,o){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=o??Ew,n&&(ln(n)&&this._inputTypeStack.push(n),Er(n)&&this._parentTypeStack.push(n),vo(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const n=this._schema;switch(e.kind){case R.SELECTION_SET:{const i=Rt(this.getType());this._parentTypeStack.push(Er(i)?i:void 0);break}case R.FIELD:{const i=this.getParentType();let a,l;i&&(a=this._getFieldDef(n,i,e),a&&(l=a.type)),this._fieldDefStack.push(a),this._typeStack.push(vo(l)?l:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case R.OPERATION_DEFINITION:{const i=n.getRootType(e.operation);this._typeStack.push(Ue(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{const i=e.typeCondition,a=i?tn(n,i):Rt(this.getType());this._typeStack.push(vo(a)?a:void 0);break}case R.VARIABLE_DEFINITION:{const i=tn(n,e.type);this._inputTypeStack.push(ln(i)?i:void 0);break}case R.ARGUMENT:{var o;let i,a;const l=(o=this.getDirective())!==null&&o!==void 0?o:this.getFieldDef();l&&(i=l.args.find(f=>f.name===e.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.LIST:{const i=ad(this.getInputType()),a=at(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.OBJECT_FIELD:{const i=Rt(this.getInputType());let a,l;lt(i)&&(l=i.getFields()[e.name.value],l&&(a=l.type)),this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push(ln(a)?a:void 0);break}case R.ENUM:{const i=Rt(this.getInputType());let a;xt(i)&&(a=i.getValue(e.value)),this._enumValue=a;break}}}leave(e){switch(e.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break}}}function Ew(t,e,n){const o=n.name.value;if(o===ha.name&&t.getQueryType()===e)return ha;if(o===ma.name&&t.getQueryType()===e)return ma;if(o===va.name&&Er(e))return va;if(Ue(e)||Ke(e))return e.getFields()[o]}function qa(t,e){return{enter(...n){const o=n[0];t.enter(o);const i=Yi(e,o.kind).enter;if(i){const a=i.apply(e,n);return a!==void 0&&(t.leave(o),gp(a)&&t.enter(a)),a}},leave(...n){const o=n[0],i=Yi(e,o.kind).leave;let a;return i&&(a=i.apply(e,n)),t.leave(o),a}}}function _w(t){return Cd(t)||Ad(t)||Sd(t)}function Cd(t){return t.kind===R.OPERATION_DEFINITION||t.kind===R.FRAGMENT_DEFINITION}function kw(t){return t.kind===R.FIELD||t.kind===R.FRAGMENT_SPREAD||t.kind===R.INLINE_FRAGMENT}function _0(t){return t.kind===R.VARIABLE||t.kind===R.INT||t.kind===R.FLOAT||t.kind===R.STRING||t.kind===R.BOOLEAN||t.kind===R.NULL||t.kind===R.ENUM||t.kind===R.LIST||t.kind===R.OBJECT}function _p(t){return _0(t)&&(t.kind===R.LIST?t.values.some(_p):t.kind===R.OBJECT?t.fields.some(e=>_p(e.value)):t.kind!==R.VARIABLE)}function xw(t){return t.kind===R.NAMED_TYPE||t.kind===R.LIST_TYPE||t.kind===R.NON_NULL_TYPE}function Ad(t){return t.kind===R.SCHEMA_DEFINITION||ls(t)||t.kind===R.DIRECTIVE_DEFINITION}function ls(t){return t.kind===R.SCALAR_TYPE_DEFINITION||t.kind===R.OBJECT_TYPE_DEFINITION||t.kind===R.INTERFACE_TYPE_DEFINITION||t.kind===R.UNION_TYPE_DEFINITION||t.kind===R.ENUM_TYPE_DEFINITION||t.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Sd(t){return t.kind===R.SCHEMA_EXTENSION||Jl(t)}function Jl(t){return t.kind===R.SCALAR_TYPE_EXTENSION||t.kind===R.OBJECT_TYPE_EXTENSION||t.kind===R.INTERFACE_TYPE_EXTENSION||t.kind===R.UNION_TYPE_EXTENSION||t.kind===R.ENUM_TYPE_EXTENSION||t.kind===R.INPUT_OBJECT_TYPE_EXTENSION}function k0(t){return{Document(e){for(const n of e.definitions)if(!Cd(n)){const o=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';t.reportError(new oe(`The ${o} definition is not executable.`,{nodes:n}))}return!1}}}function x0(t){return{Field(e){const n=t.getParentType();if(n&&!t.getFieldDef()){const i=t.getSchema(),a=e.name.value;let l=Hr("to use an inline fragment on",ww(i,n,a));l===""&&(l=Hr($w(n,a))),t.reportError(new oe(`Cannot query field "${a}" on type "${n.name}".`+l,{nodes:e}))}}}}function ww(t,e,n){if(!br(e))return[];const o=new Set,i=Object.create(null);for(const l of t.getPossibleTypes(e))if(l.getFields()[n]){o.add(l),i[l.name]=1;for(const f of l.getInterfaces()){var a;f.getFields()[n]&&(o.add(f),i[f.name]=((a=i[f.name])!==null&&a!==void 0?a:0)+1)}}return[...o].sort((l,f)=>{const d=i[f.name]-i[l.name];return d!==0?d:Ke(l)&&t.isSubType(l,f)?-1:Ke(f)&&t.isSubType(f,l)?1:Oa(l.name,f.name)}).map(l=>l.name)}function $w(t,e){if(Ue(t)||Ke(t)){const n=Object.keys(t.getFields());return Eo(e,n)}return[]}function w0(t){return{InlineFragment(e){const n=e.typeCondition;if(n){const o=tn(t.getSchema(),n);if(o&&!Er(o)){const i=Je(n);t.reportError(new oe(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(e){const n=tn(t.getSchema(),e.typeCondition);if(n&&!Er(n)){const o=Je(e.typeCondition);t.reportError(new oe(`Fragment "${e.name.value}" cannot condition on non composite type "${o}".`,{nodes:e.typeCondition}))}}}}function $0(t){return{...C0(t),Argument(e){const n=t.getArgument(),o=t.getFieldDef(),i=t.getParentType();if(!n&&o&&i){const a=e.name.value,l=o.args.map(d=>d.name),f=Eo(a,l);t.reportError(new oe(`Unknown argument "${a}" on field "${i.name}.${o.name}".`+Hr(f),{nodes:e}))}}}}function C0(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const l of o)e[l.name]=l.args.map(f=>f.name);const i=t.getDocument().definitions;for(const l of i)if(l.kind===R.DIRECTIVE_DEFINITION){var a;const f=(a=l.arguments)!==null&&a!==void 0?a:[];e[l.name.value]=f.map(d=>d.name.value)}return{Directive(l){const f=l.name.value,d=e[f];if(l.arguments&&d)for(const h of l.arguments){const v=h.name.value;if(!d.includes(v)){const y=Eo(v,d);t.reportError(new oe(`Unknown argument "${v}" on directive "@${f}".`+Hr(y),{nodes:h}))}}return!1}}}function Td(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const a of o)e[a.name]=a.locations;const i=t.getDocument().definitions;for(const a of i)a.kind===R.DIRECTIVE_DEFINITION&&(e[a.name.value]=a.locations.map(l=>l.value));return{Directive(a,l,f,d,h){const v=a.name.value,y=e[v];if(!y){t.reportError(new oe(`Unknown directive "@${v}".`,{nodes:a}));return}const g=Cw(h);g&&!y.includes(g)&&t.reportError(new oe(`Directive "@${v}" may not be used on ${g}.`,{nodes:a}))}}}function Cw(t){const e=t[t.length-1];switch("kind"in e||_t(!1),e.kind){case R.OPERATION_DEFINITION:return Aw(e.operation);case R.FIELD:return Te.FIELD;case R.FRAGMENT_SPREAD:return Te.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return Te.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return Te.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return Te.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return Te.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return Te.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return Te.OBJECT;case R.FIELD_DEFINITION:return Te.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return Te.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return Te.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return Te.ENUM;case R.ENUM_VALUE_DEFINITION:return Te.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return Te.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{const n=t[t.length-3];return"kind"in n||_t(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?Te.INPUT_FIELD_DEFINITION:Te.ARGUMENT_DEFINITION}default:_t(!1,"Unexpected kind: "+ae(e.kind))}}function Aw(t){switch(t){case Lt.QUERY:return Te.QUERY;case Lt.MUTATION:return Te.MUTATION;case Lt.SUBSCRIPTION:return Te.SUBSCRIPTION}}function A0(t){return{FragmentSpread(e){const n=e.name.value;t.getFragment(n)||t.reportError(new oe(`Unknown fragment "${n}".`,{nodes:e.name}))}}}function Dd(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);for(const a of t.getDocument().definitions)ls(a)&&(o[a.name.value]=!0);const i=[...Object.keys(n),...Object.keys(o)];return{NamedType(a,l,f,d,h){const v=a.name.value;if(!n[v]&&!o[v]){var y;const g=(y=h[2])!==null&&y!==void 0?y:f,E=g!=null&&Sw(g);if(E&&tg.includes(v))return;const C=Eo(v,E?tg.concat(i):i);t.reportError(new oe(`Unknown type "${v}".`+Hr(C),{nodes:a}))}}}}const tg=[...Fa,...Ma].map(t=>t.name);function Sw(t){return"kind"in t&&(Ad(t)||Sd(t))}function S0(t){let e=0;return{Document(n){e=n.definitions.filter(o=>o.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&e>1&&t.reportError(new oe("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function T0(t){var e,n,o;const i=t.getSchema(),a=(e=(n=(o=i==null?void 0:i.astNode)!==null&&o!==void 0?o:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType();let l=0;return{SchemaDefinition(f){if(a){t.reportError(new oe("Cannot define a new schema within a schema extension.",{nodes:f}));return}l>0&&t.reportError(new oe("Must provide only one schema definition.",{nodes:f})),++l}}}function D0(t){const e=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(e[a.name.value])return;const l=a.name.value;e[l]=!0;const f=t.getFragmentSpreads(a.selectionSet);if(f.length!==0){o[l]=n.length;for(const d of f){const h=d.name.value,v=o[h];if(n.push(d),v===void 0){const y=t.getFragment(h);y&&i(y)}else{const y=n.slice(v),g=y.slice(0,-1).map(E=>'"'+E.name.value+'"').join(", ");t.reportError(new oe(`Cannot spread fragment "${h}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}o[l]=void 0}}}function N0(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i}of o){const a=i.name.value;e[a]!==!0&&t.reportError(new oe(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){e[n.variable.name.value]=!0}}}function O0(t){const e=[],n=[];return{OperationDefinition(o){return e.push(o),!1},FragmentDefinition(o){return n.push(o),!1},Document:{leave(){const o=Object.create(null);for(const i of e)for(const a of t.getRecursivelyReferencedFragments(i))o[a.name.value]=!0;for(const i of n){const a=i.name.value;o[a]!==!0&&t.reportError(new oe(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}function I0(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(n){const o=Object.create(null),i=t.getRecursiveVariableUsages(n);for(const{node:a}of i)o[a.name.value]=!0;for(const a of e){const l=a.variable.name.value;o[l]!==!0&&t.reportError(new oe(n.name?`Variable "$${l}" is never used in operation "${n.name.value}".`:`Variable "$${l}" is never used.`,{nodes:a}))}}},VariableDefinition(n){e.push(n)}}}function Zl(t){switch(t.kind){case R.OBJECT:return{...t,fields:Tw(t.fields)};case R.LIST:return{...t,values:t.values.map(Zl)};case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return t}}function Tw(t){return t.map(e=>({...e,value:Zl(e.value)})).sort((e,n)=>Oa(e.name.value,n.name.value))}function F0(t){return Array.isArray(t)?t.map(([e,n])=>`subfields "${e}" conflict because `+F0(n)).join(" and "):t}function L0(t){const e=new Lw,n=new Map;return{SelectionSet(o){const i=Dw(t,n,e,t.getParentType(),o);for(const[[a,l],f,d]of i){const h=F0(l);t.reportError(new oe(`Fields "${a}" conflict because ${h}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:f.concat(d)}))}}}}function Dw(t,e,n,o,i){const a=[],[l,f]=hl(t,e,o,i);if(Ow(t,a,e,n,l),f.length!==0)for(let d=0;d<f.length;d++){pl(t,a,e,n,!1,l,f[d]);for(let h=d+1;h<f.length;h++)dl(t,a,e,n,!1,f[d],f[h])}return a}function pl(t,e,n,o,i,a,l){const f=t.getFragment(l);if(!f)return;const[d,h]=xp(t,n,f);if(a!==d){Nd(t,e,n,o,i,a,d);for(const v of h)o.has(v,l,i)||(o.add(v,l,i),pl(t,e,n,o,i,a,v))}}function dl(t,e,n,o,i,a,l){if(a===l||o.has(a,l,i))return;o.add(a,l,i);const f=t.getFragment(a),d=t.getFragment(l);if(!f||!d)return;const[h,v]=xp(t,n,f),[y,g]=xp(t,n,d);Nd(t,e,n,o,i,h,y);for(const E of g)dl(t,e,n,o,i,a,E);for(const E of v)dl(t,e,n,o,i,E,l)}function Nw(t,e,n,o,i,a,l,f){const d=[],[h,v]=hl(t,e,i,a),[y,g]=hl(t,e,l,f);Nd(t,d,e,n,o,h,y);for(const E of g)pl(t,d,e,n,o,h,E);for(const E of v)pl(t,d,e,n,o,y,E);for(const E of v)for(const C of g)dl(t,d,e,n,o,E,C);return d}function Ow(t,e,n,o,i){for(const[a,l]of Object.entries(i))if(l.length>1)for(let f=0;f<l.length;f++)for(let d=f+1;d<l.length;d++){const h=R0(t,n,o,!1,a,l[f],l[d]);h&&e.push(h)}}function Nd(t,e,n,o,i,a,l){for(const[f,d]of Object.entries(a)){const h=l[f];if(h)for(const v of d)for(const y of h){const g=R0(t,n,o,i,f,v,y);g&&e.push(g)}}}function R0(t,e,n,o,i,a,l){const[f,d,h]=a,[v,y,g]=l,E=o||f!==v&&Ue(f)&&Ue(v);if(!E){const T=d.name.value,O=y.name.value;if(T!==O)return[[i,`"${T}" and "${O}" are different fields`],[d],[y]];if(!Iw(d,y))return[[i,"they have differing arguments"],[d],[y]]}const C=h==null?void 0:h.type,S=g==null?void 0:g.type;if(C&&S&&kp(C,S))return[[i,`they return conflicting types "${ae(C)}" and "${ae(S)}"`],[d],[y]];const N=d.selectionSet,D=y.selectionSet;if(N&&D){const T=Nw(t,e,n,E,Rt(C),N,Rt(S),D);return Fw(T,i,d,y)}}function Iw(t,e){const n=t.arguments,o=e.arguments;if(n===void 0||n.length===0)return o===void 0||o.length===0;if(o===void 0||o.length===0||n.length!==o.length)return!1;const i=new Map(o.map(({name:a,value:l})=>[a.value,l]));return n.every(a=>{const l=a.value,f=i.get(a.name.value);return f===void 0?!1:ng(l)===ng(f)})}function ng(t){return Je(Zl(t))}function kp(t,e){return at(t)?at(e)?kp(t.ofType,e.ofType):!0:at(e)?!0:Ie(t)?Ie(e)?kp(t.ofType,e.ofType):!0:Ie(e)?!0:fn(t)||fn(e)?t!==e:!1}function hl(t,e,n,o){const i=e.get(o);if(i)return i;const a=Object.create(null),l=Object.create(null);M0(t,n,o,a,l);const f=[a,Object.keys(l)];return e.set(o,f),f}function xp(t,e,n){const o=e.get(n.selectionSet);if(o)return o;const i=tn(t.getSchema(),n.typeCondition);return hl(t,e,i,n.selectionSet)}function M0(t,e,n,o,i){for(const a of n.selections)switch(a.kind){case R.FIELD:{const l=a.name.value;let f;(Ue(e)||Ke(e))&&(f=e.getFields()[l]);const d=a.alias?a.alias.value:l;o[d]||(o[d]=[]),o[d].push([e,a,f]);break}case R.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case R.INLINE_FRAGMENT:{const l=a.typeCondition,f=l?tn(t.getSchema(),l):e;M0(t,f,a.selectionSet,o,i);break}}}function Fw(t,e,n,o){if(t.length>0)return[[e,t.map(([i])=>i)],[n,...t.map(([,i])=>i).flat()],[o,...t.map(([,,i])=>i).flat()]]}class Lw{constructor(){this._data=new Map}has(e,n,o){var i;const[a,l]=e<n?[e,n]:[n,e],f=(i=this._data.get(a))===null||i===void 0?void 0:i.get(l);return f===void 0?!1:o?!0:o===f}add(e,n,o){const[i,a]=e<n?[e,n]:[n,e],l=this._data.get(i);l===void 0?this._data.set(i,new Map([[a,o]])):l.set(a,o)}}function q0(t){return{InlineFragment(e){const n=t.getType(),o=t.getParentType();if(Er(n)&&Er(o)&&!Ep(t.getSchema(),n,o)){const i=ae(o),a=ae(n);t.reportError(new oe(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:e}))}},FragmentSpread(e){const n=e.name.value,o=Rw(t,n),i=t.getParentType();if(o&&i&&!Ep(t.getSchema(),o,i)){const a=ae(i),l=ae(o);t.reportError(new oe(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${l}".`,{nodes:e}))}}}}function Rw(t,e){const n=t.getFragment(e);if(n){const o=tn(t.getSchema(),n.typeCondition);if(Er(o))return o}}function P0(t){const e=t.getSchema(),n=Object.create(null);for(const i of t.getDocument().definitions)ls(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:o,ObjectTypeExtension:o,InterfaceTypeExtension:o,UnionTypeExtension:o,EnumTypeExtension:o,InputObjectTypeExtension:o};function o(i){const a=i.name.value,l=n[a],f=e==null?void 0:e.getType(a);let d;if(l?d=Mw[l.kind]:f&&(d=qw(f)),d){if(d!==i.kind){const h=Pw(i.kind);t.reportError(new oe(`Cannot extend non-${h} type "${a}".`,{nodes:l?[l,i]:i}))}}else{const h=Object.keys({...n,...e==null?void 0:e.getTypeMap()}),v=Eo(a,h);t.reportError(new oe(`Cannot extend type "${a}" because it is not defined.`+Hr(v),{nodes:i.name}))}}}const Mw={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION};function qw(t){if(kn(t))return R.SCALAR_TYPE_EXTENSION;if(Ue(t))return R.OBJECT_TYPE_EXTENSION;if(Ke(t))return R.INTERFACE_TYPE_EXTENSION;if(St(t))return R.UNION_TYPE_EXTENSION;if(xt(t))return R.ENUM_TYPE_EXTENSION;if(lt(t))return R.INPUT_OBJECT_TYPE_EXTENSION;_t(!1,"Unexpected type: "+ae(t))}function Pw(t){switch(t){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:_t(!1,"Unexpected kind: "+ae(t))}}function B0(t){return{...V0(t),Field:{leave(e){var n;const o=t.getFieldDef();if(!o)return!1;const i=new Set((n=e.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(const a of o.args)if(!i.has(a.name)&&_o(a)){const l=ae(a.type);t.reportError(new oe(`Field "${o.name}" argument "${a.name}" of type "${l}" is required, but it was not provided.`,{nodes:e}))}}}}}function V0(t){var e;const n=Object.create(null),o=t.getSchema(),i=(e=o==null?void 0:o.getDirectives())!==null&&e!==void 0?e:ko;for(const f of i)n[f.name]=Gr(f.args.filter(_o),d=>d.name);const a=t.getDocument().definitions;for(const f of a)if(f.kind===R.DIRECTIVE_DEFINITION){var l;const d=(l=f.arguments)!==null&&l!==void 0?l:[];n[f.name.value]=Gr(d.filter(Bw),h=>h.name.value)}return{Directive:{leave(f){const d=f.name.value,h=n[d];if(h){var v;const y=(v=f.arguments)!==null&&v!==void 0?v:[],g=new Set(y.map(E=>E.name.value));for(const[E,C]of Object.entries(h))if(!g.has(E)){const S=go(C.type)?ae(C.type):Je(C.type);t.reportError(new oe(`Directive "@${d}" argument "${E}" of type "${S}" is required, but it was not provided.`,{nodes:f}))}}}}}}function Bw(t){return t.type.kind===R.NON_NULL_TYPE&&t.defaultValue==null}function j0(t){return{Field(e){const n=t.getType(),o=e.selectionSet;if(n){if(fn(Rt(n))){if(o){const i=e.name.value,a=ae(n);t.reportError(new oe(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:o}))}}else if(!o){const i=e.name.value,a=ae(n);t.reportError(new oe(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:e}))}}}}}function U0(t){return t.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function Ki(t,e,n){return{prev:t,key:e,typename:n}}function hn(t){const e=[];let n=t;for(;n;)e.push(n.key),n=n.prev;return e.reverse()}function z0(t,e,n=Vw){return ra(t,e,n,void 0)}function Vw(t,e,n){let o="Invalid value "+ae(e);throw t.length>0&&(o+=` at "value${U0(t)}"`),n.message=o+": "+n.message,n}function ra(t,e,n,o){if(Ie(e)){if(t!=null)return ra(t,e.ofType,n,o);n(hn(o),t,new oe(`Expected non-nullable type "${ae(e)}" not to be null.`));return}if(t==null)return null;if(at(e)){const i=e.ofType;return gd(t)?Array.from(t,(a,l)=>{const f=Ki(o,l,void 0);return ra(a,i,n,f)}):[ra(t,i,n,o)]}if(lt(e)){if(!yn(t)){n(hn(o),t,new oe(`Expected type "${e.name}" to be an object.`));return}const i={},a=e.getFields();for(const l of Object.values(a)){const f=t[l.name];if(f===void 0){if(l.defaultValue!==void 0)i[l.name]=l.defaultValue;else if(Ie(l.type)){const d=ae(l.type);n(hn(o),t,new oe(`Field "${l.name}" of required type "${d}" was not provided.`))}continue}i[l.name]=ra(f,l.type,n,Ki(o,l.name,e.name))}for(const l of Object.keys(t))if(!a[l]){const f=Eo(l,Object.keys(e.getFields()));n(hn(o),t,new oe(`Field "${l}" is not defined by type "${e.name}".`+Hr(f)))}return i}if(fn(e)){let i;try{i=e.parseValue(t)}catch(a){a instanceof oe?n(hn(o),t,a):n(hn(o),t,new oe(`Expected type "${e.name}". `+a.message,{originalError:a}));return}return i===void 0&&n(hn(o),t,new oe(`Expected type "${e.name}".`)),i}_t(!1,"Unexpected input type: "+ae(e))}function vr(t,e,n){if(t){if(t.kind===R.VARIABLE){const o=t.name.value;if(n==null||n[o]===void 0)return;const i=n[o];return i===null&&Ie(e)?void 0:i}if(Ie(e))return t.kind===R.NULL?void 0:vr(t,e.ofType,n);if(t.kind===R.NULL)return null;if(at(e)){const o=e.ofType;if(t.kind===R.LIST){const a=[];for(const l of t.values)if(rg(l,n)){if(Ie(o))return;a.push(null)}else{const f=vr(l,o,n);if(f===void 0)return;a.push(f)}return a}const i=vr(t,o,n);return i===void 0?void 0:[i]}if(lt(e)){if(t.kind!==R.OBJECT)return;const o=Object.create(null),i=Gr(t.fields,a=>a.name.value);for(const a of Object.values(e.getFields())){const l=i[a.name];if(!l||rg(l.value,n)){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if(Ie(a.type))return;continue}const f=vr(l.value,a.type,n);if(f===void 0)return;o[a.name]=f}return o}if(fn(e)){let o;try{o=e.parseLiteral(t,n)}catch{return}return o===void 0?void 0:o}_t(!1,"Unexpected input type: "+ae(e))}}function rg(t,e){return t.kind===R.VARIABLE&&(e==null||e[t.name.value]===void 0)}function H0(t,e,n,o){const i=[],a=o==null?void 0:o.maxErrors;try{const l=jw(t,e,n,f=>{if(a!=null&&i.length>=a)throw new oe("Too many errors processing variables, error limit reached. Execution aborted.");i.push(f)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function jw(t,e,n,o){const i={};for(const a of e){const l=a.variable.name.value,f=tn(t,a.type);if(!ln(f)){const h=Je(a.type);o(new oe(`Variable "$${l}" expected value of type "${h}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!G0(n,l)){if(a.defaultValue)i[l]=vr(a.defaultValue,f);else if(Ie(f)){const h=ae(f);o(new oe(`Variable "$${l}" of required type "${h}" was not provided.`,{nodes:a}))}continue}const d=n[l];if(d===null&&Ie(f)){const h=ae(f);o(new oe(`Variable "$${l}" of non-null type "${h}" must not be null.`,{nodes:a}));continue}i[l]=z0(d,f,(h,v,y)=>{let g=`Variable "$${l}" got invalid value `+ae(v);h.length>0&&(g+=` at "${l}${U0(h)}"`),o(new oe(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Xl(t,e,n){var o;const i={},a=(o=e.arguments)!==null&&o!==void 0?o:[],l=Gr(a,f=>f.name.value);for(const f of t.args){const d=f.name,h=f.type,v=l[d];if(!v){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new oe(`Argument "${d}" of required type "${ae(h)}" was not provided.`,{nodes:e});continue}const y=v.value;let g=y.kind===R.NULL;if(y.kind===R.VARIABLE){const C=y.name.value;if(n==null||!G0(n,C)){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new oe(`Argument "${d}" of required type "${ae(h)}" was provided the variable "$${C}" which was not provided a runtime value.`,{nodes:y});continue}g=n[C]==null}if(g&&Ie(h))throw new oe(`Argument "${d}" of non-null type "${ae(h)}" must not be null.`,{nodes:y});const E=vr(y,h,n);if(E===void 0)throw new oe(`Argument "${d}" has invalid value ${Je(y)}.`,{nodes:y});i[d]=E}return i}function ga(t,e,n){var o;const i=(o=e.directives)===null||o===void 0?void 0:o.find(a=>a.name.value===t.name);if(i)return Xl(t,i,n)}function G0(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Od(t,e,n,o,i){const a=new Map;return ml(t,e,n,o,i,a,new Set),a}function Uw(t,e,n,o,i){const a=new Map,l=new Set;for(const f of i)f.selectionSet&&ml(t,e,n,o,f.selectionSet,a,l);return a}function ml(t,e,n,o,i,a,l){for(const f of i.selections)switch(f.kind){case R.FIELD:{if(!Uf(n,f))continue;const d=zw(f),h=a.get(d);h!==void 0?h.push(f):a.set(d,[f]);break}case R.INLINE_FRAGMENT:{if(!Uf(n,f)||!og(t,f,o))continue;ml(t,e,n,o,f.selectionSet,a,l);break}case R.FRAGMENT_SPREAD:{const d=f.name.value;if(l.has(d)||!Uf(n,f))continue;l.add(d);const h=e[d];if(!h||!og(t,h,o))continue;ml(t,e,n,o,h.selectionSet,a,l);break}}}function Uf(t,e){const n=ga(dd,e,t);if((n==null?void 0:n.if)===!0)return!1;const o=ga(pd,e,t);return(o==null?void 0:o.if)!==!1}function og(t,e,n){const o=e.typeCondition;if(!o)return!0;const i=tn(t,o);return i===n?!0:br(i)?t.isSubType(i,n):!1}function zw(t){return t.alias?t.alias.value:t.name.value}function W0(t){return{OperationDefinition(e){if(e.operation==="subscription"){const n=t.getSchema(),o=n.getSubscriptionType();if(o){const i=e.name?e.name.value:null,a=Object.create(null),l=t.getDocument(),f=Object.create(null);for(const h of l.definitions)h.kind===R.FRAGMENT_DEFINITION&&(f[h.name.value]=h);const d=Od(n,f,a,o,e.selectionSet);if(d.size>1){const y=[...d.values()].slice(1).flat();t.reportError(new oe(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(const h of d.values())h[0].name.value.startsWith("__")&&t.reportError(new oe(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:h}))}}}}}function Id(t,e){const n=new Map;for(const o of t){const i=e(o),a=n.get(i);a===void 0?n.set(i,[o]):a.push(o)}return n}function Q0(t){return{DirectiveDefinition(o){var i;const a=(i=o.arguments)!==null&&i!==void 0?i:[];return n(`@${o.name.value}`,a)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(o){var i;const a=o.name.value,l=(i=o.fields)!==null&&i!==void 0?i:[];for(const d of l){var f;const h=d.name.value,v=(f=d.arguments)!==null&&f!==void 0?f:[];n(`${a}.${h}`,v)}return!1}function n(o,i){const a=Id(i,l=>l.name.value);for(const[l,f]of a)f.length>1&&t.reportError(new oe(`Argument "${o}(${l}:)" can only be defined once.`,{nodes:f.map(d=>d.name)}));return!1}}function Fd(t){return{Field:e,Directive:e};function e(n){var o;const i=(o=n.arguments)!==null&&o!==void 0?o:[],a=Id(i,l=>l.name.value);for(const[l,f]of a)f.length>1&&t.reportError(new oe(`There can be only one argument named "${l}".`,{nodes:f.map(d=>d.name)}))}}function Y0(t){const e=Object.create(null),n=t.getSchema();return{DirectiveDefinition(o){const i=o.name.value;if(n!=null&&n.getDirective(i)){t.reportError(new oe(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:o.name}));return}return e[i]?t.reportError(new oe(`There can be only one directive named "@${i}".`,{nodes:[e[i],o.name]})):e[i]=o.name,!1}}}function Ld(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const f of o)e[f.name]=!f.isRepeatable;const i=t.getDocument().definitions;for(const f of i)f.kind===R.DIRECTIVE_DEFINITION&&(e[f.name.value]=!f.repeatable);const a=Object.create(null),l=Object.create(null);return{enter(f){if(!("directives"in f)||!f.directives)return;let d;if(f.kind===R.SCHEMA_DEFINITION||f.kind===R.SCHEMA_EXTENSION)d=a;else if(ls(f)||Jl(f)){const h=f.name.value;d=l[h],d===void 0&&(l[h]=d=Object.create(null))}else d=Object.create(null);for(const h of f.directives){const v=h.name.value;e[v]&&(d[v]?t.reportError(new oe(`The directive "@${v}" can only be used once at this location.`,{nodes:[d[v],h]})):d[v]=h)}}}}function J0(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var l;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(l=a.values)!==null&&l!==void 0?l:[],h=o[f];for(const v of d){const y=v.name.value,g=n[f];xt(g)&&g.getValue(y)?t.reportError(new oe(`Enum value "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new oe(`Enum value "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function Z0(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var l;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(l=a.fields)!==null&&l!==void 0?l:[],h=o[f];for(const v of d){const y=v.name.value;Hw(n[f],y)?t.reportError(new oe(`Field "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new oe(`Field "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function Hw(t,e){return Ue(t)||Ke(t)||lt(t)?t.getFields()[e]!=null:!1}function X0(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const o=n.name.value;return e[o]?t.reportError(new oe(`There can be only one fragment named "${o}".`,{nodes:[e[o],n.name]})):e[o]=n.name,!1}}}function Rd(t){const e=[];let n=Object.create(null);return{ObjectValue:{enter(){e.push(n),n=Object.create(null)},leave(){const o=e.pop();o||_t(!1),n=o}},ObjectField(o){const i=o.name.value;n[i]?t.reportError(new oe(`There can be only one input field named "${i}".`,{nodes:[n[i],o.name]})):n[i]=o.name}}}function K0(t){const e=Object.create(null);return{OperationDefinition(n){const o=n.name;return o&&(e[o.value]?t.reportError(new oe(`There can be only one operation named "${o.value}".`,{nodes:[e[o.value],o]})):e[o.value]=o),!1},FragmentDefinition:()=>!1}}function eb(t){const e=t.getSchema(),n=Object.create(null),o=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var l;const f=(l=a.operationTypes)!==null&&l!==void 0?l:[];for(const d of f){const h=d.operation,v=n[h];o[h]?t.reportError(new oe(`Type for ${h} already defined in the schema. It cannot be redefined.`,{nodes:d})):v?t.reportError(new oe(`There can be only one ${h} type in schema.`,{nodes:[v,d]})):n[h]=d}return!1}}function tb(t){const e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:o,ObjectTypeDefinition:o,InterfaceTypeDefinition:o,UnionTypeDefinition:o,EnumTypeDefinition:o,InputObjectTypeDefinition:o};function o(i){const a=i.name.value;if(n!=null&&n.getType(a)){t.reportError(new oe(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return e[a]?t.reportError(new oe(`There can be only one type named "${a}".`,{nodes:[e[a],i.name]})):e[a]=i.name,!1}}function nb(t){return{OperationDefinition(e){var n;const o=(n=e.variableDefinitions)!==null&&n!==void 0?n:[],i=Id(o,a=>a.variable.name.value);for(const[a,l]of i)l.length>1&&t.reportError(new oe(`There can be only one variable named "$${a}".`,{nodes:l.map(f=>f.variable.name)}))}}}function rb(t){return{ListValue(e){const n=ad(t.getParentInputType());if(!at(n))return Vo(t,e),!1},ObjectValue(e){const n=Rt(t.getInputType());if(!lt(n))return Vo(t,e),!1;const o=Gr(e.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!o[i.name]&&zl(i)){const l=ae(i.type);t.reportError(new oe(`Field "${n.name}.${i.name}" of required type "${l}" was not provided.`,{nodes:e}))}},ObjectField(e){const n=Rt(t.getParentInputType());if(!t.getInputType()&&lt(n)){const i=Eo(e.name.value,Object.keys(n.getFields()));t.reportError(new oe(`Field "${e.name.value}" is not defined by type "${n.name}".`+Hr(i),{nodes:e}))}},NullValue(e){const n=t.getInputType();Ie(n)&&t.reportError(new oe(`Expected value of type "${ae(n)}", found ${Je(e)}.`,{nodes:e}))},EnumValue:e=>Vo(t,e),IntValue:e=>Vo(t,e),FloatValue:e=>Vo(t,e),StringValue:e=>Vo(t,e),BooleanValue:e=>Vo(t,e)}}function Vo(t,e){const n=t.getInputType();if(!n)return;const o=Rt(n);if(!fn(o)){const i=ae(n);t.reportError(new oe(`Expected value of type "${i}", found ${Je(e)}.`,{nodes:e}));return}try{if(o.parseLiteral(e,void 0)===void 0){const a=ae(n);t.reportError(new oe(`Expected value of type "${a}", found ${Je(e)}.`,{nodes:e}))}}catch(i){const a=ae(n);i instanceof oe?t.reportError(i):t.reportError(new oe(`Expected value of type "${a}", found ${Je(e)}; `+i.message,{nodes:e,originalError:i}))}}function ob(t){return{VariableDefinition(e){const n=tn(t.getSchema(),e.type);if(n!==void 0&&!ln(n)){const o=e.variable.name.value,i=Je(e.type);t.reportError(new oe(`Variable "$${o}" cannot be non-input type "${i}".`,{nodes:e.type}))}}}}function ib(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i,type:a,defaultValue:l}of o){const f=i.name.value,d=e[f];if(d&&a){const h=t.getSchema(),v=tn(h,d.type);if(v&&!Gw(h,v,d.defaultValue,a,l)){const y=ae(v),g=ae(a);t.reportError(new oe(`Variable "$${f}" of type "${y}" used in position expecting type "${g}".`,{nodes:[d,i]}))}}}}},VariableDefinition(n){e[n.variable.name.value]=n}}}function Gw(t,e,n,o,i){if(Ie(o)&&!Ie(e)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;const f=o.ofType;return Qo(t,e,f)}return Qo(t,e,o)}const sb=Object.freeze([k0,K0,S0,W0,Dd,w0,ob,j0,x0,X0,A0,O0,q0,D0,nb,N0,I0,Td,Ld,$0,Fd,rb,B0,ib,L0,Rd]),Ww=Object.freeze([T0,eb,tb,J0,Z0,Q0,Y0,Dd,Td,Ld,P0,C0,Fd,Rd,V0]);class ab{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const o of this.getDocument().definitions)o.kind===R.FRAGMENT_DEFINITION&&(n[o.name.value]=o);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const o=[e];let i;for(;i=o.pop();)for(const a of i.selections)a.kind===R.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&o.push(a.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const o=Object.create(null),i=[e.selectionSet];let a;for(;a=i.pop();)for(const l of this.getFragmentSpreads(a)){const f=l.name.value;if(o[f]!==!0){o[f]=!0;const d=this.getFragment(f);d&&(n.push(d),i.push(d.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}class Qw extends ab{constructor(e,n,o){super(e,o),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class cb extends ab{constructor(e,n,o,i){super(n,i),this._schema=e,this._typeInfo=o,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const o=[],i=new ai(this._schema);un(e,qa(i,{VariableDefinition:()=>!1,Variable(a){o.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=o,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const o of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(o));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function lb(t,e,n=sb,o,i=new ai(t)){var a;const l=(a=o==null?void 0:o.maxErrors)!==null&&a!==void 0?a:100;e||Pe(!1,"Must provide document."),wd(t);const f=Object.freeze({}),d=[],h=new cb(t,e,i,y=>{if(d.length>=l)throw d.push(new oe("Too many validation errors, error limit reached. Validation aborted.")),f;d.push(y)}),v=id(n.map(y=>y(h)));try{un(e,qa(i,v))}catch(y){if(y!==f)throw y}return d}function ub(t,e,n=Ww){const o=[],i=new Qw(t,e,l=>{o.push(l)}),a=n.map(l=>l(i));return un(t,id(a)),o}function Yw(t){const e=ub(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
55
55
 
56
56
  `))}function Jw(t,e){const n=ub(t,e);if(n.length!==0)throw new Error(n.map(o=>o.message).join(`
57
57
 
58
- `))}function Zw(t){let e;return function(o,i,a){e===void 0&&(e=new WeakMap);let l=e.get(o);l===void 0&&(l=new WeakMap,e.set(o,l));let f=l.get(i);f===void 0&&(f=new WeakMap,l.set(i,f));let d=f.get(a);return d===void 0&&(d=t(o,i,a),f.set(a,d)),d}}function ig(t){return Promise.all(Object.values(t)).then(e=>{const n=Object.create(null);for(const[o,i]of Object.keys(t).entries())n[i]=e[o];return n})}function Xw(t,e,n){let o=n;for(const i of t)o=gn(o)?o.then(a=>e(a,i)):e(o,i);return o}function Kw(t){return t instanceof Error?t:new e$(t)}class e$ extends Error{constructor(e){super("Unexpected error value: "+ae(e)),this.name="NonErrorThrown",this.thrownValue=e}}function es(t,e,n){var o;const i=Kw(t);return t$(i)?i:new oe(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:e,source:i.source,positions:i.positions,path:n,originalError:i})}function t$(t){return Array.isArray(t.path)}const n$=Zw((t,e,n)=>Uw(t.schema,t.fragments,t.variableValues,e,n));function Kl(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:n,variableValues:o,rootValue:i}=t;pb(e,n,o);const a=db(t);if(!("schema"in a))return{errors:a};try{const{operation:l}=a,f=r$(a,l,i);return gn(f)?f.then(d=>jc(d,a.errors),d=>(a.errors.push(d),jc(null,a.errors))):jc(f,a.errors)}catch(l){return a.errors.push(l),jc(null,a.errors)}}function fb(t){const e=Kl(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function jc(t,e){return e.length===0?{data:t}:{errors:e,data:t}}function pb(t,e,n){e||Pe(!1,"Must provide document."),wd(t),n==null||yn(n)||Pe(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function db(t){var e,n;const{schema:o,document:i,rootValue:a,contextValue:l,variableValues:f,operationName:d,fieldResolver:h,typeResolver:v,subscribeFieldResolver:y}=t;let g;const E=Object.create(null);for(const N of i.definitions)switch(N.kind){case R.OPERATION_DEFINITION:if(d==null){if(g!==void 0)return[new oe("Must provide operation name if query contains multiple operations.")];g=N}else((e=N.name)===null||e===void 0?void 0:e.value)===d&&(g=N);break;case R.FRAGMENT_DEFINITION:E[N.name.value]=N;break}if(!g)return d!=null?[new oe(`Unknown operation named "${d}".`)]:[new oe("Must provide an operation.")];const C=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],S=H0(o,C,f??{},{maxErrors:50});return S.errors?S.errors:{schema:o,fragments:E,rootValue:a,contextValue:l,operation:g,variableValues:S.coerced,fieldResolver:h??$p,typeResolver:v??vb,subscribeFieldResolver:y??$p,errors:[]}}function r$(t,e,n){const o=t.schema.getRootType(e.operation);if(o==null)throw new oe(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const i=Od(t.schema,t.fragments,t.variableValues,o,e.selectionSet),a=void 0;switch(e.operation){case Ft.QUERY:return vl(t,o,n,a,i);case Ft.MUTATION:return o$(t,o,n,a,i);case Ft.SUBSCRIPTION:return vl(t,o,n,a,i)}}function o$(t,e,n,o,i){return Xw(i.entries(),(a,[l,f])=>{const d=Ki(o,l,e.name),h=hb(t,e,n,f,d);return h===void 0?a:gn(h)?h.then(v=>(a[l]=v,a)):(a[l]=h,a)},Object.create(null))}function vl(t,e,n,o,i){const a=Object.create(null);let l=!1;try{for(const[f,d]of i.entries()){const h=Ki(o,f,e.name),v=hb(t,e,n,d,h);v!==void 0&&(a[f]=v,gn(v)&&(l=!0))}}catch(f){if(l)return ig(a).finally(()=>{throw f});throw f}return l?ig(a):a}function hb(t,e,n,o,i){var a;const l=gb(t.schema,e,o[0]);if(!l)return;const f=l.type,d=(a=l.resolve)!==null&&a!==void 0?a:t.fieldResolver,h=mb(t,l,o,e,i);try{const v=Xl(l,o[0],t.variableValues),y=t.contextValue,g=d(n,v,y,h);let E;return gn(g)?E=g.then(C=>ya(t,f,o,h,i,C)):E=ya(t,f,o,h,i,g),gn(E)?E.then(void 0,C=>{const S=es(C,o,hn(i));return gl(S,f,t)}):E}catch(v){const y=es(v,o,hn(i));return gl(y,f,t)}}function mb(t,e,n,o,i){return{fieldName:e.name,fieldNodes:n,returnType:e.type,parentType:o,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function gl(t,e,n){if(Ie(e))throw t;return n.errors.push(t),null}function ya(t,e,n,o,i,a){if(a instanceof Error)throw a;if(Ie(e)){const l=ya(t,e.ofType,n,o,i,a);if(l===null)throw new Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return l}if(a==null)return null;if(at(e))return i$(t,e,n,o,i,a);if(fn(e))return s$(e,a);if(br(e))return a$(t,e,n,o,i,a);if(Ue(e))return wp(t,e,n,o,i,a);_t(!1,"Cannot complete value of unexpected output type: "+ae(e))}function i$(t,e,n,o,i,a){if(!gd(a))throw new oe(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);const l=e.ofType;let f=!1;const d=Array.from(a,(h,v)=>{const y=Ki(i,v,void 0);try{let g;return gn(h)?g=h.then(E=>ya(t,l,n,o,y,E)):g=ya(t,l,n,o,y,h),gn(g)?(f=!0,g.then(void 0,E=>{const C=es(E,n,hn(y));return gl(C,l,t)})):g}catch(g){const E=es(g,n,hn(y));return gl(E,l,t)}});return f?Promise.all(d):d}function s$(t,e){const n=t.serialize(e);if(n==null)throw new Error(`Expected \`${ae(t)}.serialize(${ae(e)})\` to return non-nullable value, returned: ${ae(n)}`);return n}function a$(t,e,n,o,i,a){var l;const f=(l=e.resolveType)!==null&&l!==void 0?l:t.typeResolver,d=t.contextValue,h=f(a,d,o,e);return gn(h)?h.then(v=>wp(t,sg(v,t,e,n,o,a),n,o,i,a)):wp(t,sg(h,t,e,n,o,a),n,o,i,a)}function sg(t,e,n,o,i,a){if(t==null)throw new oe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if(Ue(t))throw new oe("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof t!="string")throw new oe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ae(a)}, received "${ae(t)}".`);const l=e.schema.getType(t);if(l==null)throw new oe(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:o});if(!Ue(l))throw new oe(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`,{nodes:o});if(!e.schema.isSubType(n,l))throw new oe(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:o});return l}function wp(t,e,n,o,i,a){const l=n$(t,e,n);if(e.isTypeOf){const f=e.isTypeOf(a,t.contextValue,o);if(gn(f))return f.then(d=>{if(!d)throw ag(e,a,n);return vl(t,e,a,i,l)});if(!f)throw ag(e,a,n)}return vl(t,e,a,i,l)}function ag(t,e,n){return new oe(`Expected value of type "${t.name}" but got: ${ae(e)}.`,{nodes:n})}const vb=function(t,e,n,o){if(yn(t)&&typeof t.__typename=="string")return t.__typename;const i=n.schema.getPossibleTypes(o),a=[];for(let l=0;l<i.length;l++){const f=i[l];if(f.isTypeOf){const d=f.isTypeOf(t,e,n);if(gn(d))a[l]=d;else if(d)return f.name}}if(a.length)return Promise.all(a).then(l=>{for(let f=0;f<l.length;f++)if(l[f])return i[f].name})},$p=function(t,e,n,o){if(yn(t)||typeof t=="function"){const i=t[o.fieldName];return typeof i=="function"?t[o.fieldName](e,n,o):i}};function gb(t,e,n){const o=n.name.value;return o===ha.name&&t.getQueryType()===e?ha:o===ma.name&&t.getQueryType()===e?ma:o===va.name?va:e.getFields()[o]}function c$(t){return new Promise(e=>e(yb(t)))}function l$(t){const e=yb(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function yb(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:n,rootValue:o,contextValue:i,variableValues:a,operationName:l,fieldResolver:f,typeResolver:d}=t,h=Yl(e);if(h.length>0)return{errors:h};let v;try{v=Zn(n)}catch(g){return{errors:[g]}}const y=lb(e,v);return y.length>0?{errors:y}:Kl({schema:e,document:v,rootValue:o,contextValue:i,variableValues:a,operationName:l,fieldResolver:f,typeResolver:d})}function bb(t){return typeof(t==null?void 0:t[Symbol.asyncIterator])=="function"}function u$(t,e){const n=t[Symbol.asyncIterator]();async function o(i){if(i.done)return i;try{return{value:await e(i.value),done:!1}}catch(a){if(typeof n.return=="function")try{await n.return()}catch{}throw a}}return{async next(){return o(await n.next())},async return(){return typeof n.return=="function"?o(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return o(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function f$(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await Eb(t);return bb(e)?u$(e,o=>Kl({...t,rootValue:o})):e}function p$(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}async function Eb(...t){const e=p$(t),{schema:n,document:o,variableValues:i}=e;pb(n,o,i);const a=db(e);if(!("schema"in a))return{errors:a};try{const l=await d$(a);if(!bb(l))throw new Error(`Subscription field must return Async Iterable. Received: ${ae(l)}.`);return l}catch(l){if(l instanceof oe)return{errors:[l]};throw l}}async function d$(t){const{schema:e,fragments:n,operation:o,variableValues:i,rootValue:a}=t,l=e.getSubscriptionType();if(l==null)throw new oe("Schema is not configured to execute subscription operation.",{nodes:o});const f=Od(e,n,i,l,o.selectionSet),[d,h]=[...f.entries()][0],v=gb(e,l,h[0]);if(!v){const C=h[0].name.value;throw new oe(`The subscription field "${C}" is not defined.`,{nodes:h})}const y=Ki(void 0,d,l.name),g=mb(t,v,h,l,y);try{var E;const C=Xl(v,h[0],i),S=t.contextValue,D=await((E=v.subscribe)!==null&&E!==void 0?E:t.subscribeFieldResolver)(a,C,S,g);if(D instanceof Error)throw D;return D}catch(C){throw es(C,h,hn(y))}}function h$(t){return{Field(e){const n=t.getFieldDef(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getParentType();i!=null||_t(!1),t.reportError(new oe(`The field ${i.name}.${n.name} is deprecated. ${o}`,{nodes:e}))}},Argument(e){const n=t.getArgument(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getDirective();if(i!=null)t.reportError(new oe(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}));else{const a=t.getParentType(),l=t.getFieldDef();a!=null&&l!=null||_t(!1),t.reportError(new oe(`Field "${a.name}.${l.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}))}}},ObjectField(e){const n=Rt(t.getParentInputType());if(lt(n)){const o=n.getFields()[e.name.value],i=o==null?void 0:o.deprecationReason;i!=null&&t.reportError(new oe(`The input field ${n.name}.${o.name} is deprecated. ${i}`,{nodes:e}))}},EnumValue(e){const n=t.getEnumValue(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=Rt(t.getInputType());i!=null||_t(!1),t.reportError(new oe(`The enum value "${i.name}.${n.name}" is deprecated. ${o}`,{nodes:e}))}}}}function m$(t){return{Field(e){const n=Rt(t.getType());n&&si(n)&&t.reportError(new oe(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Md(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...t},n=e.descriptions?"description":"",o=e.specifiedByUrl?"specifiedByURL":"",i=e.directiveIsRepeatable?"isRepeatable":"",a=e.schemaDescription?n:"";function l(f){return e.inputValueDeprecation?f:""}return`
58
+ `))}function Zw(t){let e;return function(o,i,a){e===void 0&&(e=new WeakMap);let l=e.get(o);l===void 0&&(l=new WeakMap,e.set(o,l));let f=l.get(i);f===void 0&&(f=new WeakMap,l.set(i,f));let d=f.get(a);return d===void 0&&(d=t(o,i,a),f.set(a,d)),d}}function ig(t){return Promise.all(Object.values(t)).then(e=>{const n=Object.create(null);for(const[o,i]of Object.keys(t).entries())n[i]=e[o];return n})}function Xw(t,e,n){let o=n;for(const i of t)o=gn(o)?o.then(a=>e(a,i)):e(o,i);return o}function Kw(t){return t instanceof Error?t:new e$(t)}class e$ extends Error{constructor(e){super("Unexpected error value: "+ae(e)),this.name="NonErrorThrown",this.thrownValue=e}}function es(t,e,n){var o;const i=Kw(t);return t$(i)?i:new oe(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:e,source:i.source,positions:i.positions,path:n,originalError:i})}function t$(t){return Array.isArray(t.path)}const n$=Zw((t,e,n)=>Uw(t.schema,t.fragments,t.variableValues,e,n));function Kl(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:n,variableValues:o,rootValue:i}=t;pb(e,n,o);const a=db(t);if(!("schema"in a))return{errors:a};try{const{operation:l}=a,f=r$(a,l,i);return gn(f)?f.then(d=>jc(d,a.errors),d=>(a.errors.push(d),jc(null,a.errors))):jc(f,a.errors)}catch(l){return a.errors.push(l),jc(null,a.errors)}}function fb(t){const e=Kl(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function jc(t,e){return e.length===0?{data:t}:{errors:e,data:t}}function pb(t,e,n){e||Pe(!1,"Must provide document."),wd(t),n==null||yn(n)||Pe(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function db(t){var e,n;const{schema:o,document:i,rootValue:a,contextValue:l,variableValues:f,operationName:d,fieldResolver:h,typeResolver:v,subscribeFieldResolver:y}=t;let g;const E=Object.create(null);for(const N of i.definitions)switch(N.kind){case R.OPERATION_DEFINITION:if(d==null){if(g!==void 0)return[new oe("Must provide operation name if query contains multiple operations.")];g=N}else((e=N.name)===null||e===void 0?void 0:e.value)===d&&(g=N);break;case R.FRAGMENT_DEFINITION:E[N.name.value]=N;break}if(!g)return d!=null?[new oe(`Unknown operation named "${d}".`)]:[new oe("Must provide an operation.")];const C=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],S=H0(o,C,f??{},{maxErrors:50});return S.errors?S.errors:{schema:o,fragments:E,rootValue:a,contextValue:l,operation:g,variableValues:S.coerced,fieldResolver:h??$p,typeResolver:v??vb,subscribeFieldResolver:y??$p,errors:[]}}function r$(t,e,n){const o=t.schema.getRootType(e.operation);if(o==null)throw new oe(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const i=Od(t.schema,t.fragments,t.variableValues,o,e.selectionSet),a=void 0;switch(e.operation){case Lt.QUERY:return vl(t,o,n,a,i);case Lt.MUTATION:return o$(t,o,n,a,i);case Lt.SUBSCRIPTION:return vl(t,o,n,a,i)}}function o$(t,e,n,o,i){return Xw(i.entries(),(a,[l,f])=>{const d=Ki(o,l,e.name),h=hb(t,e,n,f,d);return h===void 0?a:gn(h)?h.then(v=>(a[l]=v,a)):(a[l]=h,a)},Object.create(null))}function vl(t,e,n,o,i){const a=Object.create(null);let l=!1;try{for(const[f,d]of i.entries()){const h=Ki(o,f,e.name),v=hb(t,e,n,d,h);v!==void 0&&(a[f]=v,gn(v)&&(l=!0))}}catch(f){if(l)return ig(a).finally(()=>{throw f});throw f}return l?ig(a):a}function hb(t,e,n,o,i){var a;const l=gb(t.schema,e,o[0]);if(!l)return;const f=l.type,d=(a=l.resolve)!==null&&a!==void 0?a:t.fieldResolver,h=mb(t,l,o,e,i);try{const v=Xl(l,o[0],t.variableValues),y=t.contextValue,g=d(n,v,y,h);let E;return gn(g)?E=g.then(C=>ya(t,f,o,h,i,C)):E=ya(t,f,o,h,i,g),gn(E)?E.then(void 0,C=>{const S=es(C,o,hn(i));return gl(S,f,t)}):E}catch(v){const y=es(v,o,hn(i));return gl(y,f,t)}}function mb(t,e,n,o,i){return{fieldName:e.name,fieldNodes:n,returnType:e.type,parentType:o,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function gl(t,e,n){if(Ie(e))throw t;return n.errors.push(t),null}function ya(t,e,n,o,i,a){if(a instanceof Error)throw a;if(Ie(e)){const l=ya(t,e.ofType,n,o,i,a);if(l===null)throw new Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return l}if(a==null)return null;if(at(e))return i$(t,e,n,o,i,a);if(fn(e))return s$(e,a);if(br(e))return a$(t,e,n,o,i,a);if(Ue(e))return wp(t,e,n,o,i,a);_t(!1,"Cannot complete value of unexpected output type: "+ae(e))}function i$(t,e,n,o,i,a){if(!gd(a))throw new oe(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);const l=e.ofType;let f=!1;const d=Array.from(a,(h,v)=>{const y=Ki(i,v,void 0);try{let g;return gn(h)?g=h.then(E=>ya(t,l,n,o,y,E)):g=ya(t,l,n,o,y,h),gn(g)?(f=!0,g.then(void 0,E=>{const C=es(E,n,hn(y));return gl(C,l,t)})):g}catch(g){const E=es(g,n,hn(y));return gl(E,l,t)}});return f?Promise.all(d):d}function s$(t,e){const n=t.serialize(e);if(n==null)throw new Error(`Expected \`${ae(t)}.serialize(${ae(e)})\` to return non-nullable value, returned: ${ae(n)}`);return n}function a$(t,e,n,o,i,a){var l;const f=(l=e.resolveType)!==null&&l!==void 0?l:t.typeResolver,d=t.contextValue,h=f(a,d,o,e);return gn(h)?h.then(v=>wp(t,sg(v,t,e,n,o,a),n,o,i,a)):wp(t,sg(h,t,e,n,o,a),n,o,i,a)}function sg(t,e,n,o,i,a){if(t==null)throw new oe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if(Ue(t))throw new oe("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof t!="string")throw new oe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ae(a)}, received "${ae(t)}".`);const l=e.schema.getType(t);if(l==null)throw new oe(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:o});if(!Ue(l))throw new oe(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`,{nodes:o});if(!e.schema.isSubType(n,l))throw new oe(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:o});return l}function wp(t,e,n,o,i,a){const l=n$(t,e,n);if(e.isTypeOf){const f=e.isTypeOf(a,t.contextValue,o);if(gn(f))return f.then(d=>{if(!d)throw ag(e,a,n);return vl(t,e,a,i,l)});if(!f)throw ag(e,a,n)}return vl(t,e,a,i,l)}function ag(t,e,n){return new oe(`Expected value of type "${t.name}" but got: ${ae(e)}.`,{nodes:n})}const vb=function(t,e,n,o){if(yn(t)&&typeof t.__typename=="string")return t.__typename;const i=n.schema.getPossibleTypes(o),a=[];for(let l=0;l<i.length;l++){const f=i[l];if(f.isTypeOf){const d=f.isTypeOf(t,e,n);if(gn(d))a[l]=d;else if(d)return f.name}}if(a.length)return Promise.all(a).then(l=>{for(let f=0;f<l.length;f++)if(l[f])return i[f].name})},$p=function(t,e,n,o){if(yn(t)||typeof t=="function"){const i=t[o.fieldName];return typeof i=="function"?t[o.fieldName](e,n,o):i}};function gb(t,e,n){const o=n.name.value;return o===ha.name&&t.getQueryType()===e?ha:o===ma.name&&t.getQueryType()===e?ma:o===va.name?va:e.getFields()[o]}function c$(t){return new Promise(e=>e(yb(t)))}function l$(t){const e=yb(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function yb(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:n,rootValue:o,contextValue:i,variableValues:a,operationName:l,fieldResolver:f,typeResolver:d}=t,h=Yl(e);if(h.length>0)return{errors:h};let v;try{v=Zn(n)}catch(g){return{errors:[g]}}const y=lb(e,v);return y.length>0?{errors:y}:Kl({schema:e,document:v,rootValue:o,contextValue:i,variableValues:a,operationName:l,fieldResolver:f,typeResolver:d})}function bb(t){return typeof(t==null?void 0:t[Symbol.asyncIterator])=="function"}function u$(t,e){const n=t[Symbol.asyncIterator]();async function o(i){if(i.done)return i;try{return{value:await e(i.value),done:!1}}catch(a){if(typeof n.return=="function")try{await n.return()}catch{}throw a}}return{async next(){return o(await n.next())},async return(){return typeof n.return=="function"?o(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return o(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function f$(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await Eb(t);return bb(e)?u$(e,o=>Kl({...t,rootValue:o})):e}function p$(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}async function Eb(...t){const e=p$(t),{schema:n,document:o,variableValues:i}=e;pb(n,o,i);const a=db(e);if(!("schema"in a))return{errors:a};try{const l=await d$(a);if(!bb(l))throw new Error(`Subscription field must return Async Iterable. Received: ${ae(l)}.`);return l}catch(l){if(l instanceof oe)return{errors:[l]};throw l}}async function d$(t){const{schema:e,fragments:n,operation:o,variableValues:i,rootValue:a}=t,l=e.getSubscriptionType();if(l==null)throw new oe("Schema is not configured to execute subscription operation.",{nodes:o});const f=Od(e,n,i,l,o.selectionSet),[d,h]=[...f.entries()][0],v=gb(e,l,h[0]);if(!v){const C=h[0].name.value;throw new oe(`The subscription field "${C}" is not defined.`,{nodes:h})}const y=Ki(void 0,d,l.name),g=mb(t,v,h,l,y);try{var E;const C=Xl(v,h[0],i),S=t.contextValue,D=await((E=v.subscribe)!==null&&E!==void 0?E:t.subscribeFieldResolver)(a,C,S,g);if(D instanceof Error)throw D;return D}catch(C){throw es(C,h,hn(y))}}function h$(t){return{Field(e){const n=t.getFieldDef(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getParentType();i!=null||_t(!1),t.reportError(new oe(`The field ${i.name}.${n.name} is deprecated. ${o}`,{nodes:e}))}},Argument(e){const n=t.getArgument(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getDirective();if(i!=null)t.reportError(new oe(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}));else{const a=t.getParentType(),l=t.getFieldDef();a!=null&&l!=null||_t(!1),t.reportError(new oe(`Field "${a.name}.${l.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}))}}},ObjectField(e){const n=Rt(t.getParentInputType());if(lt(n)){const o=n.getFields()[e.name.value],i=o==null?void 0:o.deprecationReason;i!=null&&t.reportError(new oe(`The input field ${n.name}.${o.name} is deprecated. ${i}`,{nodes:e}))}},EnumValue(e){const n=t.getEnumValue(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=Rt(t.getInputType());i!=null||_t(!1),t.reportError(new oe(`The enum value "${i.name}.${n.name}" is deprecated. ${o}`,{nodes:e}))}}}}function m$(t){return{Field(e){const n=Rt(t.getType());n&&si(n)&&t.reportError(new oe(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Md(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...t},n=e.descriptions?"description":"",o=e.specifiedByUrl?"specifiedByURL":"",i=e.directiveIsRepeatable?"isRepeatable":"",a=e.schemaDescription?n:"";function l(f){return e.inputValueDeprecation?f:""}return`
59
59
  query IntrospectionQuery {
60
60
  __schema {
61
61
  ${a}
@@ -160,30 +160,30 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
160
160
  }
161
161
  }
162
162
  }
163
- `}function v$(t,e){let n=null;for(const i of t.definitions)if(i.kind===R.OPERATION_DEFINITION){var o;if(e==null){if(n)return null;n=i}else if(((o=i.name)===null||o===void 0?void 0:o.value)===e)return i}return n}function g$(t,e){if(e.operation==="query"){const n=t.getQueryType();if(!n)throw new oe("Schema does not define the required query root type.",{nodes:e});return n}if(e.operation==="mutation"){const n=t.getMutationType();if(!n)throw new oe("Schema is not configured for mutations.",{nodes:e});return n}if(e.operation==="subscription"){const n=t.getSubscriptionType();if(!n)throw new oe("Schema is not configured for subscriptions.",{nodes:e});return n}throw new oe("Can only have query, mutation and subscription operations.",{nodes:e})}function y$(t,e){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...e},o=Zn(Md(n)),i=fb({schema:t,document:o});return!i.errors&&i.data||_t(!1),i.data}function _b(t,e){yn(t)&&yn(t.__schema)||Pe(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ae(t)}.`);const n=t.__schema,o=mo(n.types,G=>G.name,G=>g(G));for(const G of[...La,...Ma])o[G.name]&&(o[G.name]=G);const i=n.queryType?v(n.queryType):null,a=n.mutationType?v(n.mutationType):null,l=n.subscriptionType?v(n.subscriptionType):null,f=n.directives?n.directives.map(K):[];return new cs({description:n.description,query:i,mutation:a,subscription:l,types:Object.values(o),directives:f,assumeValid:e==null?void 0:e.assumeValid});function d(G){if(G.kind===ot.LIST){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");return new Ut(d(Q))}if(G.kind===ot.NON_NULL){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");const re=d(Q);return new qe(h0(re))}return h(G)}function h(G){const Q=G.name;if(!Q)throw new Error(`Unknown type reference: ${ae(G)}.`);const re=o[Q];if(!re)throw new Error(`Invalid or incomplete schema, unknown type: ${Q}. Ensure that a full introspection query is used in order to build a client schema.`);return re}function v(G){return p0(h(G))}function y(G){return d0(h(G))}function g(G){if(G!=null&&G.name!=null&&G.kind!=null)switch(G.kind){case ot.SCALAR:return E(G);case ot.OBJECT:return S(G);case ot.INTERFACE:return N(G);case ot.UNION:return D(G);case ot.ENUM:return T(G);case ot.INPUT_OBJECT:return O(G)}const Q=ae(G);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Q}.`)}function E(G){return new _r({name:G.name,description:G.description,specifiedByURL:G.specifiedByURL})}function C(G){if(G.interfaces===null&&G.kind===ot.INTERFACE)return[];if(!G.interfaces){const Q=ae(G);throw new Error(`Introspection result missing interfaces: ${Q}.`)}return G.interfaces.map(y)}function S(G){return new Ln({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function N(G){return new Ji({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function D(G){if(!G.possibleTypes){const Q=ae(G);throw new Error(`Introspection result missing possibleTypes: ${Q}.`)}return new Zi({name:G.name,description:G.description,types:()=>G.possibleTypes.map(v)})}function T(G){if(!G.enumValues){const Q=ae(G);throw new Error(`Introspection result missing enumValues: ${Q}.`)}return new yo({name:G.name,description:G.description,values:mo(G.enumValues,Q=>Q.name,Q=>({description:Q.description,deprecationReason:Q.deprecationReason}))})}function O(G){if(!G.inputFields){const Q=ae(G);throw new Error(`Introspection result missing inputFields: ${Q}.`)}return new Xi({name:G.name,description:G.description,fields:()=>P(G.inputFields)})}function V(G){if(!G.fields)throw new Error(`Introspection result missing fields: ${ae(G)}.`);return mo(G.fields,Q=>Q.name,Y)}function Y(G){const Q=d(G.type);if(!vo(Q)){const re=ae(Q);throw new Error(`Introspection must provide output type for fields, but received: ${re}.`)}if(!G.args){const re=ae(G);throw new Error(`Introspection result missing field args: ${re}.`)}return{description:G.description,deprecationReason:G.deprecationReason,type:Q,args:P(G.args)}}function P(G){return mo(G,Q=>Q.name,U)}function U(G){const Q=d(G.type);if(!ln(Q)){const _e=ae(Q);throw new Error(`Introspection must provide input type for arguments, but received: ${_e}.`)}const re=G.defaultValue!=null?vr(l0(G.defaultValue),Q):void 0;return{description:G.description,type:Q,defaultValue:re,deprecationReason:G.deprecationReason}}function K(G){if(!G.args){const Q=ae(G);throw new Error(`Introspection result missing directive args: ${Q}.`)}if(!G.locations){const Q=ae(G);throw new Error(`Introspection result missing directive locations: ${Q}.`)}return new kr({name:G.name,description:G.description,isRepeatable:G.isRepeatable,locations:G.locations.slice(),args:P(G.args)})}}function b$(t,e,n){xd(t),e!=null&&e.kind===R.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&Jw(e,t);const o=t.toConfig(),i=kb(o,e,n);return o===i?t:new cs(i)}function kb(t,e,n){var o,i,a,l;const f=[],d=Object.create(null),h=[];let v;const y=[];for(const Z of e.definitions)if(Z.kind===R.SCHEMA_DEFINITION)v=Z;else if(Z.kind===R.SCHEMA_EXTENSION)y.push(Z);else if(ls(Z))f.push(Z);else if(Jl(Z)){const fe=Z.name.value,de=d[fe];d[fe]=de?de.concat([Z]):[Z]}else Z.kind===R.DIRECTIVE_DEFINITION&&h.push(Z);if(Object.keys(d).length===0&&f.length===0&&h.length===0&&y.length===0&&v==null)return t;const g=Object.create(null);for(const Z of t.types)g[Z.name]=T(Z);for(const Z of f){var E;const fe=Z.name.value;g[fe]=(E=cg[fe])!==null&&E!==void 0?E:Me(Z)}const C={query:t.query&&N(t.query),mutation:t.mutation&&N(t.mutation),subscription:t.subscription&&N(t.subscription),...v&&re([v]),...re(y)};return{description:(o=v)===null||o===void 0||(i=o.description)===null||i===void 0?void 0:i.value,...C,types:Object.values(g),directives:[...t.directives.map(D),...h.map(F)],extensions:Object.create(null),astNode:(a=v)!==null&&a!==void 0?a:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(y),assumeValid:(l=n==null?void 0:n.assumeValid)!==null&&l!==void 0?l:!1};function S(Z){return at(Z)?new Ut(S(Z.ofType)):Ie(Z)?new qe(S(Z.ofType)):N(Z)}function N(Z){return g[Z.name]}function D(Z){const fe=Z.toConfig();return new kr({...fe,args:Pr(fe.args,Q)})}function T(Z){if(si(Z)||Hl(Z))return Z;if(kn(Z))return Y(Z);if(Ue(Z))return P(Z);if(Ke(Z))return U(Z);if(St(Z))return K(Z);if(xt(Z))return V(Z);if(lt(Z))return O(Z);_t(!1,"Unexpected type: "+ae(Z))}function O(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Xi({...de,fields:()=>({...Pr(de.fields,ye=>({...ye,type:S(ye.type)})),...J(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function V(Z){var fe;const de=Z.toConfig(),ge=(fe=d[Z.name])!==null&&fe!==void 0?fe:[];return new yo({...de,values:{...de.values,...te(ge)},extensionASTNodes:de.extensionASTNodes.concat(ge)})}function Y(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];let ye=de.specifiedByURL;for(const ke of ge){var he;ye=(he=lg(ke))!==null&&he!==void 0?he:ye}return new _r({...de,specifiedByURL:ye,extensionASTNodes:de.extensionASTNodes.concat(ge)})}function P(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Ln({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function U(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Ji({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function K(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Zi({...de,types:()=>[...Z.getTypes().map(N),...$e(ge)],extensionASTNodes:de.extensionASTNodes.concat(ge)})}function G(Z){return{...Z,type:S(Z.type),args:Z.args&&Pr(Z.args,Q)}}function Q(Z){return{...Z,type:S(Z.type)}}function re(Z){const fe={};for(const ge of Z){var de;const ye=(de=ge.operationTypes)!==null&&de!==void 0?de:[];for(const he of ye)fe[he.operation]=_e(he.type)}return fe}function _e(Z){var fe;const de=Z.name.value,ge=(fe=cg[de])!==null&&fe!==void 0?fe:g[de];if(ge===void 0)throw new Error(`Unknown type: "${de}".`);return ge}function H(Z){return Z.kind===R.LIST_TYPE?new Ut(H(Z.type)):Z.kind===R.NON_NULL_TYPE?new qe(H(Z.type)):_e(Z)}function F(Z){var fe;return new kr({name:Z.name.value,description:(fe=Z.description)===null||fe===void 0?void 0:fe.value,locations:Z.locations.map(({value:de})=>de),isRepeatable:Z.repeatable,args:j(Z.arguments),astNode:Z})}function x(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={type:H(ke.type),description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,args:j(ke.arguments),deprecationReason:Uc(ke),astNode:ke}}}return fe}function j(Z){const fe=Z??[],de=Object.create(null);for(const ye of fe){var ge;const he=H(ye.type);de[ye.name.value]={type:he,description:(ge=ye.description)===null||ge===void 0?void 0:ge.value,defaultValue:vr(ye.defaultValue,he),deprecationReason:Uc(ye),astNode:ye}}return de}function J(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;const De=H(ke.type);fe[ke.name.value]={type:De,description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,defaultValue:vr(ke.defaultValue,De),deprecationReason:Uc(ke),astNode:ke}}}return fe}function te(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.values)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,deprecationReason:Uc(ke),astNode:ke}}}return fe}function pe(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.interfaces)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function $e(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.types)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function Me(Z){var fe;const de=Z.name.value,ge=(fe=d[de])!==null&&fe!==void 0?fe:[];switch(Z.kind){case R.OBJECT_TYPE_DEFINITION:{var ye;const Be=[Z,...ge];return new Ln({name:de,description:(ye=Z.description)===null||ye===void 0?void 0:ye.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case R.INTERFACE_TYPE_DEFINITION:{var he;const Be=[Z,...ge];return new Ji({name:de,description:(he=Z.description)===null||he===void 0?void 0:he.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case R.ENUM_TYPE_DEFINITION:{var ke;const Be=[Z,...ge];return new yo({name:de,description:(ke=Z.description)===null||ke===void 0?void 0:ke.value,values:te(Be),astNode:Z,extensionASTNodes:ge})}case R.UNION_TYPE_DEFINITION:{var De;const Be=[Z,...ge];return new Zi({name:de,description:(De=Z.description)===null||De===void 0?void 0:De.value,types:()=>$e(Be),astNode:Z,extensionASTNodes:ge})}case R.SCALAR_TYPE_DEFINITION:{var xn;return new _r({name:de,description:(xn=Z.description)===null||xn===void 0?void 0:xn.value,specifiedByURL:lg(Z),astNode:Z,extensionASTNodes:ge})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var Ve;const Be=[Z,...ge];return new Xi({name:de,description:(Ve=Z.description)===null||Ve===void 0?void 0:Ve.value,fields:()=>J(Be),astNode:Z,extensionASTNodes:ge})}}}}const cg=Gr([...La,...Ma],t=>t.name);function Uc(t){const e=ga(Wl,t);return e==null?void 0:e.reason}function lg(t){const e=ga(md,t);return e==null?void 0:e.url}function xb(t,e){t!=null&&t.kind===R.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(e==null?void 0:e.assumeValid)!==!0&&(e==null?void 0:e.assumeValidSDL)!==!0&&Yw(t);const o=kb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(o.astNode==null)for(const a of o.types)switch(a.name){case"Query":o.query=a;break;case"Mutation":o.mutation=a;break;case"Subscription":o.subscription=a;break}const i=[...o.directives,...ko.filter(a=>o.directives.every(l=>l.name!==a.name))];return new cs({...o,directives:i})}function E$(t,e){const n=Zn(t,{noLocation:e==null?void 0:e.noLocation,allowLegacyFragmentVariables:e==null?void 0:e.allowLegacyFragmentVariables});return xb(n,{assumeValidSDL:e==null?void 0:e.assumeValidSDL,assumeValid:e==null?void 0:e.assumeValid})}function _$(t){const e=t.toConfig(),n=mo(zf(e.types),g=>g.name,y);return new cs({...e,types:Object.values(n),directives:zf(e.directives).map(l),query:a(e.query),mutation:a(e.mutation),subscription:a(e.subscription)});function o(g){return at(g)?new Ut(o(g.ofType)):Ie(g)?new qe(o(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function l(g){const E=g.toConfig();return new kr({...E,locations:wb(E.locations,C=>C),args:f(E.args)})}function f(g){return zc(g,E=>({...E,type:o(E.type)}))}function d(g){return zc(g,E=>({...E,type:o(E.type),args:E.args&&f(E.args)}))}function h(g){return zc(g,E=>({...E,type:o(E.type)}))}function v(g){return zf(g).map(i)}function y(g){if(kn(g)||si(g))return g;if(Ue(g)){const E=g.toConfig();return new Ln({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(Ke(g)){const E=g.toConfig();return new Ji({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(St(g)){const E=g.toConfig();return new Zi({...E,types:()=>v(E.types)})}if(xt(g)){const E=g.toConfig();return new yo({...E,values:zc(E.values,C=>C)})}if(lt(g)){const E=g.toConfig();return new Xi({...E,fields:()=>h(E.fields)})}_t(!1,"Unexpected type: "+ae(g))}}function zc(t,e){const n=Object.create(null);for(const o of Object.keys(t).sort(Oa))n[o]=e(t[o]);return n}function zf(t){return wb(t,e=>e.name)}function wb(t,e){return t.slice().sort((n,o)=>{const i=e(n),a=e(o);return Oa(i,a)})}function k$(t){return $b(t,e=>!vd(e),w$)}function x$(t){return $b(t,vd,si)}function w$(t){return!Hl(t)&&!si(t)}function $b(t,e,n){const o=t.getDirectives().filter(e),i=Object.values(t.getTypeMap()).filter(n);return[$$(t),...o.map(a=>I$(a)),...i.map(a=>Cb(a))].filter(Boolean).join(`
163
+ `}function v$(t,e){let n=null;for(const i of t.definitions)if(i.kind===R.OPERATION_DEFINITION){var o;if(e==null){if(n)return null;n=i}else if(((o=i.name)===null||o===void 0?void 0:o.value)===e)return i}return n}function g$(t,e){if(e.operation==="query"){const n=t.getQueryType();if(!n)throw new oe("Schema does not define the required query root type.",{nodes:e});return n}if(e.operation==="mutation"){const n=t.getMutationType();if(!n)throw new oe("Schema is not configured for mutations.",{nodes:e});return n}if(e.operation==="subscription"){const n=t.getSubscriptionType();if(!n)throw new oe("Schema is not configured for subscriptions.",{nodes:e});return n}throw new oe("Can only have query, mutation and subscription operations.",{nodes:e})}function y$(t,e){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...e},o=Zn(Md(n)),i=fb({schema:t,document:o});return!i.errors&&i.data||_t(!1),i.data}function _b(t,e){yn(t)&&yn(t.__schema)||Pe(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ae(t)}.`);const n=t.__schema,o=mo(n.types,G=>G.name,G=>g(G));for(const G of[...Fa,...Ma])o[G.name]&&(o[G.name]=G);const i=n.queryType?v(n.queryType):null,a=n.mutationType?v(n.mutationType):null,l=n.subscriptionType?v(n.subscriptionType):null,f=n.directives?n.directives.map(K):[];return new cs({description:n.description,query:i,mutation:a,subscription:l,types:Object.values(o),directives:f,assumeValid:e==null?void 0:e.assumeValid});function d(G){if(G.kind===ot.LIST){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");return new Ut(d(Q))}if(G.kind===ot.NON_NULL){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");const re=d(Q);return new qe(h0(re))}return h(G)}function h(G){const Q=G.name;if(!Q)throw new Error(`Unknown type reference: ${ae(G)}.`);const re=o[Q];if(!re)throw new Error(`Invalid or incomplete schema, unknown type: ${Q}. Ensure that a full introspection query is used in order to build a client schema.`);return re}function v(G){return p0(h(G))}function y(G){return d0(h(G))}function g(G){if(G!=null&&G.name!=null&&G.kind!=null)switch(G.kind){case ot.SCALAR:return E(G);case ot.OBJECT:return S(G);case ot.INTERFACE:return N(G);case ot.UNION:return D(G);case ot.ENUM:return T(G);case ot.INPUT_OBJECT:return O(G)}const Q=ae(G);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Q}.`)}function E(G){return new _r({name:G.name,description:G.description,specifiedByURL:G.specifiedByURL})}function C(G){if(G.interfaces===null&&G.kind===ot.INTERFACE)return[];if(!G.interfaces){const Q=ae(G);throw new Error(`Introspection result missing interfaces: ${Q}.`)}return G.interfaces.map(y)}function S(G){return new Fn({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function N(G){return new Ji({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function D(G){if(!G.possibleTypes){const Q=ae(G);throw new Error(`Introspection result missing possibleTypes: ${Q}.`)}return new Zi({name:G.name,description:G.description,types:()=>G.possibleTypes.map(v)})}function T(G){if(!G.enumValues){const Q=ae(G);throw new Error(`Introspection result missing enumValues: ${Q}.`)}return new yo({name:G.name,description:G.description,values:mo(G.enumValues,Q=>Q.name,Q=>({description:Q.description,deprecationReason:Q.deprecationReason}))})}function O(G){if(!G.inputFields){const Q=ae(G);throw new Error(`Introspection result missing inputFields: ${Q}.`)}return new Xi({name:G.name,description:G.description,fields:()=>P(G.inputFields)})}function V(G){if(!G.fields)throw new Error(`Introspection result missing fields: ${ae(G)}.`);return mo(G.fields,Q=>Q.name,Y)}function Y(G){const Q=d(G.type);if(!vo(Q)){const re=ae(Q);throw new Error(`Introspection must provide output type for fields, but received: ${re}.`)}if(!G.args){const re=ae(G);throw new Error(`Introspection result missing field args: ${re}.`)}return{description:G.description,deprecationReason:G.deprecationReason,type:Q,args:P(G.args)}}function P(G){return mo(G,Q=>Q.name,U)}function U(G){const Q=d(G.type);if(!ln(Q)){const _e=ae(Q);throw new Error(`Introspection must provide input type for arguments, but received: ${_e}.`)}const re=G.defaultValue!=null?vr(l0(G.defaultValue),Q):void 0;return{description:G.description,type:Q,defaultValue:re,deprecationReason:G.deprecationReason}}function K(G){if(!G.args){const Q=ae(G);throw new Error(`Introspection result missing directive args: ${Q}.`)}if(!G.locations){const Q=ae(G);throw new Error(`Introspection result missing directive locations: ${Q}.`)}return new kr({name:G.name,description:G.description,isRepeatable:G.isRepeatable,locations:G.locations.slice(),args:P(G.args)})}}function b$(t,e,n){xd(t),e!=null&&e.kind===R.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&Jw(e,t);const o=t.toConfig(),i=kb(o,e,n);return o===i?t:new cs(i)}function kb(t,e,n){var o,i,a,l;const f=[],d=Object.create(null),h=[];let v;const y=[];for(const Z of e.definitions)if(Z.kind===R.SCHEMA_DEFINITION)v=Z;else if(Z.kind===R.SCHEMA_EXTENSION)y.push(Z);else if(ls(Z))f.push(Z);else if(Jl(Z)){const fe=Z.name.value,de=d[fe];d[fe]=de?de.concat([Z]):[Z]}else Z.kind===R.DIRECTIVE_DEFINITION&&h.push(Z);if(Object.keys(d).length===0&&f.length===0&&h.length===0&&y.length===0&&v==null)return t;const g=Object.create(null);for(const Z of t.types)g[Z.name]=T(Z);for(const Z of f){var E;const fe=Z.name.value;g[fe]=(E=cg[fe])!==null&&E!==void 0?E:Me(Z)}const C={query:t.query&&N(t.query),mutation:t.mutation&&N(t.mutation),subscription:t.subscription&&N(t.subscription),...v&&re([v]),...re(y)};return{description:(o=v)===null||o===void 0||(i=o.description)===null||i===void 0?void 0:i.value,...C,types:Object.values(g),directives:[...t.directives.map(D),...h.map(L)],extensions:Object.create(null),astNode:(a=v)!==null&&a!==void 0?a:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(y),assumeValid:(l=n==null?void 0:n.assumeValid)!==null&&l!==void 0?l:!1};function S(Z){return at(Z)?new Ut(S(Z.ofType)):Ie(Z)?new qe(S(Z.ofType)):N(Z)}function N(Z){return g[Z.name]}function D(Z){const fe=Z.toConfig();return new kr({...fe,args:Pr(fe.args,Q)})}function T(Z){if(si(Z)||Hl(Z))return Z;if(kn(Z))return Y(Z);if(Ue(Z))return P(Z);if(Ke(Z))return U(Z);if(St(Z))return K(Z);if(xt(Z))return V(Z);if(lt(Z))return O(Z);_t(!1,"Unexpected type: "+ae(Z))}function O(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Xi({...de,fields:()=>({...Pr(de.fields,ye=>({...ye,type:S(ye.type)})),...J(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function V(Z){var fe;const de=Z.toConfig(),ge=(fe=d[Z.name])!==null&&fe!==void 0?fe:[];return new yo({...de,values:{...de.values,...te(ge)},extensionASTNodes:de.extensionASTNodes.concat(ge)})}function Y(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];let ye=de.specifiedByURL;for(const ke of ge){var he;ye=(he=lg(ke))!==null&&he!==void 0?he:ye}return new _r({...de,specifiedByURL:ye,extensionASTNodes:de.extensionASTNodes.concat(ge)})}function P(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Fn({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function U(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Ji({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function K(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Zi({...de,types:()=>[...Z.getTypes().map(N),...$e(ge)],extensionASTNodes:de.extensionASTNodes.concat(ge)})}function G(Z){return{...Z,type:S(Z.type),args:Z.args&&Pr(Z.args,Q)}}function Q(Z){return{...Z,type:S(Z.type)}}function re(Z){const fe={};for(const ge of Z){var de;const ye=(de=ge.operationTypes)!==null&&de!==void 0?de:[];for(const he of ye)fe[he.operation]=_e(he.type)}return fe}function _e(Z){var fe;const de=Z.name.value,ge=(fe=cg[de])!==null&&fe!==void 0?fe:g[de];if(ge===void 0)throw new Error(`Unknown type: "${de}".`);return ge}function H(Z){return Z.kind===R.LIST_TYPE?new Ut(H(Z.type)):Z.kind===R.NON_NULL_TYPE?new qe(H(Z.type)):_e(Z)}function L(Z){var fe;return new kr({name:Z.name.value,description:(fe=Z.description)===null||fe===void 0?void 0:fe.value,locations:Z.locations.map(({value:de})=>de),isRepeatable:Z.repeatable,args:j(Z.arguments),astNode:Z})}function x(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={type:H(ke.type),description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,args:j(ke.arguments),deprecationReason:Uc(ke),astNode:ke}}}return fe}function j(Z){const fe=Z??[],de=Object.create(null);for(const ye of fe){var ge;const he=H(ye.type);de[ye.name.value]={type:he,description:(ge=ye.description)===null||ge===void 0?void 0:ge.value,defaultValue:vr(ye.defaultValue,he),deprecationReason:Uc(ye),astNode:ye}}return de}function J(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;const De=H(ke.type);fe[ke.name.value]={type:De,description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,defaultValue:vr(ke.defaultValue,De),deprecationReason:Uc(ke),astNode:ke}}}return fe}function te(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.values)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,deprecationReason:Uc(ke),astNode:ke}}}return fe}function pe(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.interfaces)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function $e(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.types)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function Me(Z){var fe;const de=Z.name.value,ge=(fe=d[de])!==null&&fe!==void 0?fe:[];switch(Z.kind){case R.OBJECT_TYPE_DEFINITION:{var ye;const Be=[Z,...ge];return new Fn({name:de,description:(ye=Z.description)===null||ye===void 0?void 0:ye.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case R.INTERFACE_TYPE_DEFINITION:{var he;const Be=[Z,...ge];return new Ji({name:de,description:(he=Z.description)===null||he===void 0?void 0:he.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case R.ENUM_TYPE_DEFINITION:{var ke;const Be=[Z,...ge];return new yo({name:de,description:(ke=Z.description)===null||ke===void 0?void 0:ke.value,values:te(Be),astNode:Z,extensionASTNodes:ge})}case R.UNION_TYPE_DEFINITION:{var De;const Be=[Z,...ge];return new Zi({name:de,description:(De=Z.description)===null||De===void 0?void 0:De.value,types:()=>$e(Be),astNode:Z,extensionASTNodes:ge})}case R.SCALAR_TYPE_DEFINITION:{var xn;return new _r({name:de,description:(xn=Z.description)===null||xn===void 0?void 0:xn.value,specifiedByURL:lg(Z),astNode:Z,extensionASTNodes:ge})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var Ve;const Be=[Z,...ge];return new Xi({name:de,description:(Ve=Z.description)===null||Ve===void 0?void 0:Ve.value,fields:()=>J(Be),astNode:Z,extensionASTNodes:ge})}}}}const cg=Gr([...Fa,...Ma],t=>t.name);function Uc(t){const e=ga(Wl,t);return e==null?void 0:e.reason}function lg(t){const e=ga(md,t);return e==null?void 0:e.url}function xb(t,e){t!=null&&t.kind===R.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(e==null?void 0:e.assumeValid)!==!0&&(e==null?void 0:e.assumeValidSDL)!==!0&&Yw(t);const o=kb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(o.astNode==null)for(const a of o.types)switch(a.name){case"Query":o.query=a;break;case"Mutation":o.mutation=a;break;case"Subscription":o.subscription=a;break}const i=[...o.directives,...ko.filter(a=>o.directives.every(l=>l.name!==a.name))];return new cs({...o,directives:i})}function E$(t,e){const n=Zn(t,{noLocation:e==null?void 0:e.noLocation,allowLegacyFragmentVariables:e==null?void 0:e.allowLegacyFragmentVariables});return xb(n,{assumeValidSDL:e==null?void 0:e.assumeValidSDL,assumeValid:e==null?void 0:e.assumeValid})}function _$(t){const e=t.toConfig(),n=mo(zf(e.types),g=>g.name,y);return new cs({...e,types:Object.values(n),directives:zf(e.directives).map(l),query:a(e.query),mutation:a(e.mutation),subscription:a(e.subscription)});function o(g){return at(g)?new Ut(o(g.ofType)):Ie(g)?new qe(o(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function l(g){const E=g.toConfig();return new kr({...E,locations:wb(E.locations,C=>C),args:f(E.args)})}function f(g){return zc(g,E=>({...E,type:o(E.type)}))}function d(g){return zc(g,E=>({...E,type:o(E.type),args:E.args&&f(E.args)}))}function h(g){return zc(g,E=>({...E,type:o(E.type)}))}function v(g){return zf(g).map(i)}function y(g){if(kn(g)||si(g))return g;if(Ue(g)){const E=g.toConfig();return new Fn({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(Ke(g)){const E=g.toConfig();return new Ji({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(St(g)){const E=g.toConfig();return new Zi({...E,types:()=>v(E.types)})}if(xt(g)){const E=g.toConfig();return new yo({...E,values:zc(E.values,C=>C)})}if(lt(g)){const E=g.toConfig();return new Xi({...E,fields:()=>h(E.fields)})}_t(!1,"Unexpected type: "+ae(g))}}function zc(t,e){const n=Object.create(null);for(const o of Object.keys(t).sort(Oa))n[o]=e(t[o]);return n}function zf(t){return wb(t,e=>e.name)}function wb(t,e){return t.slice().sort((n,o)=>{const i=e(n),a=e(o);return Oa(i,a)})}function k$(t){return $b(t,e=>!vd(e),w$)}function x$(t){return $b(t,vd,si)}function w$(t){return!Hl(t)&&!si(t)}function $b(t,e,n){const o=t.getDirectives().filter(e),i=Object.values(t.getTypeMap()).filter(n);return[$$(t),...o.map(a=>I$(a)),...i.map(a=>Cb(a))].filter(Boolean).join(`
164
164
 
165
- `)}function $$(t){if(t.description==null&&C$(t))return;const e=[],n=t.getQueryType();n&&e.push(` query: ${n.name}`);const o=t.getMutationType();o&&e.push(` mutation: ${o.name}`);const i=t.getSubscriptionType();return i&&e.push(` subscription: ${i.name}`),Fn(t)+`schema {
165
+ `)}function $$(t){if(t.description==null&&C$(t))return;const e=[],n=t.getQueryType();n&&e.push(` query: ${n.name}`);const o=t.getMutationType();o&&e.push(` mutation: ${o.name}`);const i=t.getSubscriptionType();return i&&e.push(` subscription: ${i.name}`),Ln(t)+`schema {
166
166
  ${e.join(`
167
167
  `)}
168
- }`}function C$(t){const e=t.getQueryType();if(e&&e.name!=="Query")return!1;const n=t.getMutationType();if(n&&n.name!=="Mutation")return!1;const o=t.getSubscriptionType();return!(o&&o.name!=="Subscription")}function Cb(t){if(kn(t))return A$(t);if(Ue(t))return S$(t);if(Ke(t))return T$(t);if(St(t))return D$(t);if(xt(t))return N$(t);if(lt(t))return O$(t);_t(!1,"Unexpected type: "+ae(t))}function A$(t){return Fn(t)+`scalar ${t.name}`+L$(t)}function Ab(t){const e=t.getInterfaces();return e.length?" implements "+e.map(n=>n.name).join(" & "):""}function S$(t){return Fn(t)+`type ${t.name}`+Ab(t)+Sb(t)}function T$(t){return Fn(t)+`interface ${t.name}`+Ab(t)+Sb(t)}function D$(t){const e=t.getTypes(),n=e.length?" = "+e.join(" | "):"";return Fn(t)+"union "+t.name+n}function N$(t){const e=t.getValues().map((n,o)=>Fn(n," ",!o)+" "+n.name+Pd(n.deprecationReason));return Fn(t)+`enum ${t.name}`+qd(e)}function O$(t){const e=Object.values(t.getFields()).map((n,o)=>Fn(n," ",!o)+" "+Cp(n));return Fn(t)+`input ${t.name}`+qd(e)}function Sb(t){const e=Object.values(t.getFields()).map((n,o)=>Fn(n," ",!o)+" "+n.name+Tb(n.args," ")+": "+String(n.type)+Pd(n.deprecationReason));return qd(e)}function qd(t){return t.length!==0?` {
168
+ }`}function C$(t){const e=t.getQueryType();if(e&&e.name!=="Query")return!1;const n=t.getMutationType();if(n&&n.name!=="Mutation")return!1;const o=t.getSubscriptionType();return!(o&&o.name!=="Subscription")}function Cb(t){if(kn(t))return A$(t);if(Ue(t))return S$(t);if(Ke(t))return T$(t);if(St(t))return D$(t);if(xt(t))return N$(t);if(lt(t))return O$(t);_t(!1,"Unexpected type: "+ae(t))}function A$(t){return Ln(t)+`scalar ${t.name}`+F$(t)}function Ab(t){const e=t.getInterfaces();return e.length?" implements "+e.map(n=>n.name).join(" & "):""}function S$(t){return Ln(t)+`type ${t.name}`+Ab(t)+Sb(t)}function T$(t){return Ln(t)+`interface ${t.name}`+Ab(t)+Sb(t)}function D$(t){const e=t.getTypes(),n=e.length?" = "+e.join(" | "):"";return Ln(t)+"union "+t.name+n}function N$(t){const e=t.getValues().map((n,o)=>Ln(n," ",!o)+" "+n.name+Pd(n.deprecationReason));return Ln(t)+`enum ${t.name}`+qd(e)}function O$(t){const e=Object.values(t.getFields()).map((n,o)=>Ln(n," ",!o)+" "+Cp(n));return Ln(t)+`input ${t.name}`+qd(e)}function Sb(t){const e=Object.values(t.getFields()).map((n,o)=>Ln(n," ",!o)+" "+n.name+Tb(n.args," ")+": "+String(n.type)+Pd(n.deprecationReason));return qd(e)}function qd(t){return t.length!==0?` {
169
169
  `+t.join(`
170
170
  `)+`
171
171
  }`:""}function Tb(t,e=""){return t.length===0?"":t.every(n=>!n.description)?"("+t.map(Cp).join(", ")+")":`(
172
- `+t.map((n,o)=>Fn(n," "+e,!o)+" "+e+Cp(n)).join(`
172
+ `+t.map((n,o)=>Ln(n," "+e,!o)+" "+e+Cp(n)).join(`
173
173
  `)+`
174
- `+e+")"}function Cp(t){const e=jr(t.defaultValue,t.type);let n=t.name+": "+String(t.type);return e&&(n+=` = ${Je(e)}`),n+Pd(t.deprecationReason)}function I$(t){return Fn(t)+"directive @"+t.name+Tb(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}function Pd(t){return t==null?"":t!==hd?` @deprecated(reason: ${Je({kind:R.STRING,value:t})})`:" @deprecated"}function L$(t){return t.specifiedByURL==null?"":` @specifiedBy(url: ${Je({kind:R.STRING,value:t.specifiedByURL})})`}function Fn(t,e="",n=!0){const{description:o}=t;if(o==null)return"";const i=Je({kind:R.STRING,value:o,block:yx(o)});return(e&&!n?`
174
+ `+e+")"}function Cp(t){const e=jr(t.defaultValue,t.type);let n=t.name+": "+String(t.type);return e&&(n+=` = ${Je(e)}`),n+Pd(t.deprecationReason)}function I$(t){return Ln(t)+"directive @"+t.name+Tb(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}function Pd(t){return t==null?"":t!==hd?` @deprecated(reason: ${Je({kind:R.STRING,value:t})})`:" @deprecated"}function F$(t){return t.specifiedByURL==null?"":` @specifiedBy(url: ${Je({kind:R.STRING,value:t.specifiedByURL})})`}function Ln(t,e="",n=!0){const{description:o}=t;if(o==null)return"";const i=Je({kind:R.STRING,value:o,block:yx(o)});return(e&&!n?`
175
175
  `+e:e)+i.replace(/\n/g,`
176
176
  `+e)+`
177
- `}function F$(t){const e=[];for(const n of t)e.push(...n.definitions);return{kind:R.DOCUMENT,definitions:e}}function R$(t){const e=[],n=Object.create(null);for(const i of t.definitions)switch(i.kind){case R.OPERATION_DEFINITION:e.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=ug(i.selectionSet);break}const o=Object.create(null);for(const i of e){const a=new Set;for(const f of ug(i.selectionSet))Db(a,n,f);const l=i.name?i.name.value:"";o[l]={kind:R.DOCUMENT,definitions:t.definitions.filter(f=>f===i||f.kind===R.FRAGMENT_DEFINITION&&a.has(f.name.value))}}return o}function Db(t,e,n){if(!t.has(n)){t.add(n);const o=e[n];if(o!==void 0)for(const i of o)Db(t,e,i)}}function ug(t){const e=[];return un(t,{FragmentSpread(n){e.push(n.name.value)}}),e}function M$(t){const e=c0(t)?t:new jl(t),n=e.body,o=new od(e);let i="",a=!1;for(;o.advance().kind!==se.EOF;){const l=o.token,f=l.kind,d=!o0(l.kind);a&&(d||l.kind===se.SPREAD)&&(i+=" ");const h=n.slice(l.start,l.end);f===se.BLOCK_STRING?i+=r0(l.value,{minimize:!0}):i+=h,a=d}return i}function q$(t){const e=Nb(t);if(e)throw e;return t}function Nb(t){if(typeof t=="string"||Pe(!1,"Expected name to be a string."),t.startsWith("__"))return new oe(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{_n(t)}catch(e){return e}}var gt;(function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(gt||(gt={}));var Yn;(function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Yn||(Yn={}));function P$(t,e){return Ob(t,e).filter(n=>n.type in gt)}function B$(t,e){return Ob(t,e).filter(n=>n.type in Yn)}function Ob(t,e){return[...j$(t,e),...V$(t,e)]}function V$(t,e){const n=[],o=Wr(t.getDirectives(),e.getDirectives());for(const i of o.removed)n.push({type:gt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,a]of o.persisted){const l=Wr(i.args,a.args);for(const f of l.added)_o(f)&&n.push({type:gt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${f.name} on directive ${i.name} was added.`});for(const f of l.removed)n.push({type:gt.DIRECTIVE_ARG_REMOVED,description:`${f.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:gt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const f of i.locations)a.locations.includes(f)||n.push({type:gt.DIRECTIVE_LOCATION_REMOVED,description:`${f} was removed from ${i.name}.`})}return n}function j$(t,e){const n=[],o=Wr(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const i of o.removed)n.push({type:gt.TYPE_REMOVED,description:Hl(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,a]of o.persisted)xt(i)&&xt(a)?n.push(...H$(i,a)):St(i)&&St(a)?n.push(...z$(i,a)):lt(i)&&lt(a)?n.push(...U$(i,a)):Ue(i)&&Ue(a)?n.push(...pg(i,a),...fg(i,a)):Ke(i)&&Ke(a)?n.push(...pg(i,a),...fg(i,a)):i.constructor!==a.constructor&&n.push({type:gt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${dg(i)} to ${dg(a)}.`});return n}function U$(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.added)zl(i)?n.push({type:gt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${t.name} was added.`}):n.push({type:Yn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${t.name} was added.`});for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)ca(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function z$(t,e){const n=[],o=Wr(t.getTypes(),e.getTypes());for(const i of o.added)n.push({type:Yn.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${t.name}.`});for(const i of o.removed)n.push({type:gt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${t.name}.`});return n}function H$(t,e){const n=[],o=Wr(t.getValues(),e.getValues());for(const i of o.added)n.push({type:Yn.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${t.name}.`});for(const i of o.removed)n.push({type:gt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${t.name}.`});return n}function fg(t,e){const n=[],o=Wr(t.getInterfaces(),e.getInterfaces());for(const i of o.added)n.push({type:Yn.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${t.name}.`});for(const i of o.removed)n.push({type:gt.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${i.name}.`});return n}function pg(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)n.push(...G$(t,i,a)),oa(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function G$(t,e,n){const o=[],i=Wr(e.args,n.args);for(const a of i.removed)o.push({type:gt.ARG_REMOVED,description:`${t.name}.${e.name} arg ${a.name} was removed.`});for(const[a,l]of i.persisted)if(!ca(a.type,l.type))o.push({type:gt.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(l.type)}.`});else if(a.defaultValue!==void 0)if(l.defaultValue===void 0)o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} defaultValue was removed.`});else{const d=hg(a.defaultValue,a.type),h=hg(l.defaultValue,l.type);d!==h&&o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} has changed defaultValue from ${d} to ${h}.`})}for(const a of i.added)_o(a)?o.push({type:gt.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${t.name}.${e.name} was added.`}):o.push({type:Yn.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${t.name}.${e.name} was added.`});return o}function oa(t,e){return at(t)?at(e)&&oa(t.ofType,e.ofType)||Ie(e)&&oa(t,e.ofType):Ie(t)?Ie(e)&&oa(t.ofType,e.ofType):as(e)&&t.name===e.name||Ie(e)&&oa(t,e.ofType)}function ca(t,e){return at(t)?at(e)&&ca(t.ofType,e.ofType):Ie(t)?Ie(e)&&ca(t.ofType,e.ofType)||!Ie(e)&&ca(t.ofType,e):as(e)&&t.name===e.name}function dg(t){if(kn(t))return"a Scalar type";if(Ue(t))return"an Object type";if(Ke(t))return"an Interface type";if(St(t))return"a Union type";if(xt(t))return"an Enum type";if(lt(t))return"an Input type";_t(!1,"Unexpected type: "+ae(t))}function hg(t,e){const n=jr(t,e);return n!=null||_t(!1),Je(Zl(n))}function Wr(t,e){const n=[],o=[],i=[],a=Gr(t,({name:f})=>f),l=Gr(e,({name:f})=>f);for(const f of t){const d=l[f.name];d===void 0?o.push(f):i.push([f,d])}for(const f of e)a[f.name]===void 0&&n.push(f);return{added:n,persisted:i,removed:o}}const W$=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Vi,get BreakingChangeType(){return gt},DEFAULT_DEPRECATION_REASON:hd,get DangerousChangeType(){return Yn},get DirectiveLocation(){return Te},ExecutableDefinitionsRule:k0,FieldsOnCorrectTypeRule:x0,FragmentsOnCompositeTypesRule:w0,GRAPHQL_MAX_INT:rl,GRAPHQL_MIN_INT:ol,GraphQLBoolean:vn,GraphQLDeprecatedDirective:Wl,GraphQLDirective:kr,GraphQLEnumType:yo,GraphQLError:oe,GraphQLFloat:ud,GraphQLID:fd,GraphQLIncludeDirective:pd,GraphQLInputObjectType:Xi,GraphQLInt:E0,GraphQLInterfaceType:Ji,GraphQLList:Ut,GraphQLNonNull:qe,GraphQLObjectType:Ln,GraphQLScalarType:_r,GraphQLSchema:cs,GraphQLSkipDirective:dd,GraphQLSpecifiedByDirective:md,GraphQLString:yt,GraphQLUnionType:Zi,get Kind(){return R},KnownArgumentNamesRule:$0,KnownDirectivesRule:Td,KnownFragmentNamesRule:A0,KnownTypeNamesRule:Dd,Lexer:od,Location:K1,LoneAnonymousOperationRule:S0,LoneSchemaDefinitionRule:T0,NoDeprecatedCustomRule:h$,NoFragmentCyclesRule:D0,NoSchemaIntrospectionCustomRule:m$,NoUndefinedVariablesRule:N0,NoUnusedFragmentsRule:O0,NoUnusedVariablesRule:I0,get OperationTypeNode(){return Ft},OverlappingFieldsCanBeMergedRule:F0,PossibleFragmentSpreadsRule:q0,PossibleTypeExtensionsRule:P0,ProvidedRequiredArgumentsRule:B0,ScalarLeafsRule:j0,SchemaMetaFieldDef:ha,SingleFieldSubscriptionsRule:W0,Source:jl,Token:nd,get TokenKind(){return se},TypeInfo:ai,get TypeKind(){return ot},TypeMetaFieldDef:ma,TypeNameMetaFieldDef:va,UniqueArgumentDefinitionNamesRule:Q0,UniqueArgumentNamesRule:Ld,UniqueDirectiveNamesRule:Y0,UniqueDirectivesPerLocationRule:Fd,UniqueEnumValueNamesRule:J0,UniqueFieldDefinitionNamesRule:Z0,UniqueFragmentNamesRule:X0,UniqueInputFieldNamesRule:Rd,UniqueOperationNamesRule:K0,UniqueOperationTypesRule:eb,UniqueTypeNamesRule:tb,UniqueVariableNamesRule:nb,ValidationContext:cb,ValuesOfCorrectTypeRule:rb,VariablesAreInputTypesRule:ob,VariablesInAllowedPositionRule:ib,__Directive:yd,__DirectiveLocation:bd,__EnumValue:_d,__Field:Ed,__InputValue:Ra,__Schema:Ql,__Type:Dn,__TypeKind:kd,assertAbstractType:rw,assertCompositeType:nw,assertDirective:lw,assertEnumType:Yx,assertEnumValueName:f0,assertInputObjectType:Jx,assertInputType:Kx,assertInterfaceType:d0,assertLeafType:tw,assertListType:Zx,assertName:_n,assertNamedType:iw,assertNonNullType:Xx,assertNullableType:h0,assertObjectType:p0,assertOutputType:ew,assertScalarType:Wx,assertSchema:xd,assertType:Gx,assertUnionType:Qx,assertValidName:q$,assertValidSchema:wd,assertWrappingType:ow,astFromValue:jr,buildASTSchema:xb,buildClientSchema:_b,buildSchema:E$,coerceInputValue:z0,concatAST:F$,createSourceEventStream:Eb,defaultFieldResolver:$p,defaultTypeResolver:vb,doTypesOverlap:Ep,execute:Kl,executeSync:fb,extendSchema:b$,findBreakingChanges:P$,findDangerousChanges:B$,formatError:hx,getArgumentValues:Xl,getDirectiveValues:ga,getEnterLeaveForKind:Yi,getIntrospectionQuery:Md,getLocation:cl,getNamedType:Rt,getNullableType:ad,getOperationAST:v$,getOperationRootType:g$,getVariableValues:H0,getVisitFn:Ux,graphql:c$,graphqlSync:l$,introspectionFromSchema:y$,introspectionTypes:Ma,isAbstractType:br,isCompositeType:Er,isConstValueNode:_p,isDefinitionNode:_w,isDirective:Gl,isEnumType:xt,isEqualType:ul,isExecutableDefinitionNode:Cd,isInputObjectType:lt,isInputType:ln,isInterfaceType:Ke,isIntrospectionType:si,isLeafType:fn,isListType:at,isNamedType:as,isNonNullType:Ie,isNullableType:sd,isObjectType:Ue,isOutputType:vo,isRequiredArgument:_o,isRequiredInputField:zl,isScalarType:kn,isSchema:fl,isSelectionNode:kw,isSpecifiedDirective:vd,isSpecifiedScalarType:Hl,isType:go,isTypeDefinitionNode:ls,isTypeExtensionNode:Jl,isTypeNode:xw,isTypeSubTypeOf:Qo,isTypeSystemDefinitionNode:Ad,isTypeSystemExtensionNode:Sd,isUnionType:St,isValidNameError:Nb,isValueNode:_0,isWrappingType:Ia,lexicographicSortSchema:_$,locatedError:es,parse:Zn,parseConstValue:Lx,parseType:Fx,parseValue:l0,print:Je,printError:dx,printIntrospectionSchema:x$,printLocation:X1,printSchema:k$,printSourceLocation:td,printType:Cb,resolveObjMapThunk:ld,resolveReadonlyArrayThunk:cd,responsePathAsArray:hn,separateOperations:R$,specifiedDirectives:ko,specifiedRules:sb,specifiedScalarTypes:La,stripIgnoredCharacters:M$,subscribe:f$,syntaxError:Lt,typeFromAST:tn,validate:lb,validateSchema:Yl,valueFromAST:vr,valueFromASTUntyped:ll,version:lx,versionInfo:ux,visit:un,visitInParallel:id,visitWithTypeInfo:qa},Symbol.toStringTag,{value:"Module"}));var Ib=Object.defineProperty,Q$=Object.defineProperties,Y$=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,Lb=Object.prototype.hasOwnProperty,Fb=Object.prototype.propertyIsEnumerable,mg=(t,e,n)=>e in t?Ib(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mn=(t,e)=>{for(var n in e||(e={}))Lb.call(e,n)&&mg(t,n,e[n]);if(yl)for(var n of yl(e))Fb.call(e,n)&&mg(t,n,e[n]);return t},Ur=(t,e)=>Q$(t,Y$(e)),$=(t,e)=>Ib(t,"name",{value:e,configurable:!0}),J$=(t,e)=>{var n={};for(var o in t)Lb.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&yl)for(var o of yl(t))e.indexOf(o)<0&&Fb.call(t,o)&&(n[o]=t[o]);return n},e8e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof zv<"u"?zv:typeof self<"u"?self:{};function Rb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}$(Rb,"getDefaultExportFromCjs");function Mb(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e}$(Mb,"getAugmentedNamespace");/*!
177
+ `}function L$(t){const e=[];for(const n of t)e.push(...n.definitions);return{kind:R.DOCUMENT,definitions:e}}function R$(t){const e=[],n=Object.create(null);for(const i of t.definitions)switch(i.kind){case R.OPERATION_DEFINITION:e.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=ug(i.selectionSet);break}const o=Object.create(null);for(const i of e){const a=new Set;for(const f of ug(i.selectionSet))Db(a,n,f);const l=i.name?i.name.value:"";o[l]={kind:R.DOCUMENT,definitions:t.definitions.filter(f=>f===i||f.kind===R.FRAGMENT_DEFINITION&&a.has(f.name.value))}}return o}function Db(t,e,n){if(!t.has(n)){t.add(n);const o=e[n];if(o!==void 0)for(const i of o)Db(t,e,i)}}function ug(t){const e=[];return un(t,{FragmentSpread(n){e.push(n.name.value)}}),e}function M$(t){const e=c0(t)?t:new jl(t),n=e.body,o=new od(e);let i="",a=!1;for(;o.advance().kind!==se.EOF;){const l=o.token,f=l.kind,d=!o0(l.kind);a&&(d||l.kind===se.SPREAD)&&(i+=" ");const h=n.slice(l.start,l.end);f===se.BLOCK_STRING?i+=r0(l.value,{minimize:!0}):i+=h,a=d}return i}function q$(t){const e=Nb(t);if(e)throw e;return t}function Nb(t){if(typeof t=="string"||Pe(!1,"Expected name to be a string."),t.startsWith("__"))return new oe(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{_n(t)}catch(e){return e}}var gt;(function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(gt||(gt={}));var Yn;(function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Yn||(Yn={}));function P$(t,e){return Ob(t,e).filter(n=>n.type in gt)}function B$(t,e){return Ob(t,e).filter(n=>n.type in Yn)}function Ob(t,e){return[...j$(t,e),...V$(t,e)]}function V$(t,e){const n=[],o=Wr(t.getDirectives(),e.getDirectives());for(const i of o.removed)n.push({type:gt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,a]of o.persisted){const l=Wr(i.args,a.args);for(const f of l.added)_o(f)&&n.push({type:gt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${f.name} on directive ${i.name} was added.`});for(const f of l.removed)n.push({type:gt.DIRECTIVE_ARG_REMOVED,description:`${f.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:gt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const f of i.locations)a.locations.includes(f)||n.push({type:gt.DIRECTIVE_LOCATION_REMOVED,description:`${f} was removed from ${i.name}.`})}return n}function j$(t,e){const n=[],o=Wr(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const i of o.removed)n.push({type:gt.TYPE_REMOVED,description:Hl(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,a]of o.persisted)xt(i)&&xt(a)?n.push(...H$(i,a)):St(i)&&St(a)?n.push(...z$(i,a)):lt(i)&&lt(a)?n.push(...U$(i,a)):Ue(i)&&Ue(a)?n.push(...pg(i,a),...fg(i,a)):Ke(i)&&Ke(a)?n.push(...pg(i,a),...fg(i,a)):i.constructor!==a.constructor&&n.push({type:gt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${dg(i)} to ${dg(a)}.`});return n}function U$(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.added)zl(i)?n.push({type:gt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${t.name} was added.`}):n.push({type:Yn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${t.name} was added.`});for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)ca(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function z$(t,e){const n=[],o=Wr(t.getTypes(),e.getTypes());for(const i of o.added)n.push({type:Yn.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${t.name}.`});for(const i of o.removed)n.push({type:gt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${t.name}.`});return n}function H$(t,e){const n=[],o=Wr(t.getValues(),e.getValues());for(const i of o.added)n.push({type:Yn.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${t.name}.`});for(const i of o.removed)n.push({type:gt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${t.name}.`});return n}function fg(t,e){const n=[],o=Wr(t.getInterfaces(),e.getInterfaces());for(const i of o.added)n.push({type:Yn.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${t.name}.`});for(const i of o.removed)n.push({type:gt.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${i.name}.`});return n}function pg(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)n.push(...G$(t,i,a)),oa(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function G$(t,e,n){const o=[],i=Wr(e.args,n.args);for(const a of i.removed)o.push({type:gt.ARG_REMOVED,description:`${t.name}.${e.name} arg ${a.name} was removed.`});for(const[a,l]of i.persisted)if(!ca(a.type,l.type))o.push({type:gt.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(l.type)}.`});else if(a.defaultValue!==void 0)if(l.defaultValue===void 0)o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} defaultValue was removed.`});else{const d=hg(a.defaultValue,a.type),h=hg(l.defaultValue,l.type);d!==h&&o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} has changed defaultValue from ${d} to ${h}.`})}for(const a of i.added)_o(a)?o.push({type:gt.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${t.name}.${e.name} was added.`}):o.push({type:Yn.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${t.name}.${e.name} was added.`});return o}function oa(t,e){return at(t)?at(e)&&oa(t.ofType,e.ofType)||Ie(e)&&oa(t,e.ofType):Ie(t)?Ie(e)&&oa(t.ofType,e.ofType):as(e)&&t.name===e.name||Ie(e)&&oa(t,e.ofType)}function ca(t,e){return at(t)?at(e)&&ca(t.ofType,e.ofType):Ie(t)?Ie(e)&&ca(t.ofType,e.ofType)||!Ie(e)&&ca(t.ofType,e):as(e)&&t.name===e.name}function dg(t){if(kn(t))return"a Scalar type";if(Ue(t))return"an Object type";if(Ke(t))return"an Interface type";if(St(t))return"a Union type";if(xt(t))return"an Enum type";if(lt(t))return"an Input type";_t(!1,"Unexpected type: "+ae(t))}function hg(t,e){const n=jr(t,e);return n!=null||_t(!1),Je(Zl(n))}function Wr(t,e){const n=[],o=[],i=[],a=Gr(t,({name:f})=>f),l=Gr(e,({name:f})=>f);for(const f of t){const d=l[f.name];d===void 0?o.push(f):i.push([f,d])}for(const f of e)a[f.name]===void 0&&n.push(f);return{added:n,persisted:i,removed:o}}const W$=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Vi,get BreakingChangeType(){return gt},DEFAULT_DEPRECATION_REASON:hd,get DangerousChangeType(){return Yn},get DirectiveLocation(){return Te},ExecutableDefinitionsRule:k0,FieldsOnCorrectTypeRule:x0,FragmentsOnCompositeTypesRule:w0,GRAPHQL_MAX_INT:rl,GRAPHQL_MIN_INT:ol,GraphQLBoolean:vn,GraphQLDeprecatedDirective:Wl,GraphQLDirective:kr,GraphQLEnumType:yo,GraphQLError:oe,GraphQLFloat:ud,GraphQLID:fd,GraphQLIncludeDirective:pd,GraphQLInputObjectType:Xi,GraphQLInt:E0,GraphQLInterfaceType:Ji,GraphQLList:Ut,GraphQLNonNull:qe,GraphQLObjectType:Fn,GraphQLScalarType:_r,GraphQLSchema:cs,GraphQLSkipDirective:dd,GraphQLSpecifiedByDirective:md,GraphQLString:yt,GraphQLUnionType:Zi,get Kind(){return R},KnownArgumentNamesRule:$0,KnownDirectivesRule:Td,KnownFragmentNamesRule:A0,KnownTypeNamesRule:Dd,Lexer:od,Location:K1,LoneAnonymousOperationRule:S0,LoneSchemaDefinitionRule:T0,NoDeprecatedCustomRule:h$,NoFragmentCyclesRule:D0,NoSchemaIntrospectionCustomRule:m$,NoUndefinedVariablesRule:N0,NoUnusedFragmentsRule:O0,NoUnusedVariablesRule:I0,get OperationTypeNode(){return Lt},OverlappingFieldsCanBeMergedRule:L0,PossibleFragmentSpreadsRule:q0,PossibleTypeExtensionsRule:P0,ProvidedRequiredArgumentsRule:B0,ScalarLeafsRule:j0,SchemaMetaFieldDef:ha,SingleFieldSubscriptionsRule:W0,Source:jl,Token:nd,get TokenKind(){return se},TypeInfo:ai,get TypeKind(){return ot},TypeMetaFieldDef:ma,TypeNameMetaFieldDef:va,UniqueArgumentDefinitionNamesRule:Q0,UniqueArgumentNamesRule:Fd,UniqueDirectiveNamesRule:Y0,UniqueDirectivesPerLocationRule:Ld,UniqueEnumValueNamesRule:J0,UniqueFieldDefinitionNamesRule:Z0,UniqueFragmentNamesRule:X0,UniqueInputFieldNamesRule:Rd,UniqueOperationNamesRule:K0,UniqueOperationTypesRule:eb,UniqueTypeNamesRule:tb,UniqueVariableNamesRule:nb,ValidationContext:cb,ValuesOfCorrectTypeRule:rb,VariablesAreInputTypesRule:ob,VariablesInAllowedPositionRule:ib,__Directive:yd,__DirectiveLocation:bd,__EnumValue:_d,__Field:Ed,__InputValue:Ra,__Schema:Ql,__Type:Dn,__TypeKind:kd,assertAbstractType:rw,assertCompositeType:nw,assertDirective:lw,assertEnumType:Yx,assertEnumValueName:f0,assertInputObjectType:Jx,assertInputType:Kx,assertInterfaceType:d0,assertLeafType:tw,assertListType:Zx,assertName:_n,assertNamedType:iw,assertNonNullType:Xx,assertNullableType:h0,assertObjectType:p0,assertOutputType:ew,assertScalarType:Wx,assertSchema:xd,assertType:Gx,assertUnionType:Qx,assertValidName:q$,assertValidSchema:wd,assertWrappingType:ow,astFromValue:jr,buildASTSchema:xb,buildClientSchema:_b,buildSchema:E$,coerceInputValue:z0,concatAST:L$,createSourceEventStream:Eb,defaultFieldResolver:$p,defaultTypeResolver:vb,doTypesOverlap:Ep,execute:Kl,executeSync:fb,extendSchema:b$,findBreakingChanges:P$,findDangerousChanges:B$,formatError:hx,getArgumentValues:Xl,getDirectiveValues:ga,getEnterLeaveForKind:Yi,getIntrospectionQuery:Md,getLocation:cl,getNamedType:Rt,getNullableType:ad,getOperationAST:v$,getOperationRootType:g$,getVariableValues:H0,getVisitFn:Ux,graphql:c$,graphqlSync:l$,introspectionFromSchema:y$,introspectionTypes:Ma,isAbstractType:br,isCompositeType:Er,isConstValueNode:_p,isDefinitionNode:_w,isDirective:Gl,isEnumType:xt,isEqualType:ul,isExecutableDefinitionNode:Cd,isInputObjectType:lt,isInputType:ln,isInterfaceType:Ke,isIntrospectionType:si,isLeafType:fn,isListType:at,isNamedType:as,isNonNullType:Ie,isNullableType:sd,isObjectType:Ue,isOutputType:vo,isRequiredArgument:_o,isRequiredInputField:zl,isScalarType:kn,isSchema:fl,isSelectionNode:kw,isSpecifiedDirective:vd,isSpecifiedScalarType:Hl,isType:go,isTypeDefinitionNode:ls,isTypeExtensionNode:Jl,isTypeNode:xw,isTypeSubTypeOf:Qo,isTypeSystemDefinitionNode:Ad,isTypeSystemExtensionNode:Sd,isUnionType:St,isValidNameError:Nb,isValueNode:_0,isWrappingType:Ia,lexicographicSortSchema:_$,locatedError:es,parse:Zn,parseConstValue:Fx,parseType:Lx,parseValue:l0,print:Je,printError:dx,printIntrospectionSchema:x$,printLocation:X1,printSchema:k$,printSourceLocation:td,printType:Cb,resolveObjMapThunk:ld,resolveReadonlyArrayThunk:cd,responsePathAsArray:hn,separateOperations:R$,specifiedDirectives:ko,specifiedRules:sb,specifiedScalarTypes:Fa,stripIgnoredCharacters:M$,subscribe:f$,syntaxError:Ft,typeFromAST:tn,validate:lb,validateSchema:Yl,valueFromAST:vr,valueFromASTUntyped:ll,version:lx,versionInfo:ux,visit:un,visitInParallel:id,visitWithTypeInfo:qa},Symbol.toStringTag,{value:"Module"}));var Ib=Object.defineProperty,Q$=Object.defineProperties,Y$=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,Fb=Object.prototype.hasOwnProperty,Lb=Object.prototype.propertyIsEnumerable,mg=(t,e,n)=>e in t?Ib(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mn=(t,e)=>{for(var n in e||(e={}))Fb.call(e,n)&&mg(t,n,e[n]);if(yl)for(var n of yl(e))Lb.call(e,n)&&mg(t,n,e[n]);return t},Ur=(t,e)=>Q$(t,Y$(e)),$=(t,e)=>Ib(t,"name",{value:e,configurable:!0}),J$=(t,e)=>{var n={};for(var o in t)Fb.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&yl)for(var o of yl(t))e.indexOf(o)<0&&Lb.call(t,o)&&(n[o]=t[o]);return n},e8e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof zv<"u"?zv:typeof self<"u"?self:{};function Rb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}$(Rb,"getDefaultExportFromCjs");function Mb(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e}$(Mb,"getAugmentedNamespace");/*!
178
178
  * escape-html
179
179
  * Copyright(c) 2012-2013 TJ Holowaychuk
180
180
  * Copyright(c) 2015 Andreas Lubbe
181
181
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
182
182
  * MIT Licensed
183
- */var Z$=/["'&<>]/,X$=qb;function qb(t){var e=""+t,n=Z$.exec(e);if(!n)return e;var o,i="",a=0,l=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}l!==a&&(i+=e.substring(l,a)),l=a+1,i+=o}return l!==a?i+e.substring(l,a):i}$(qb,"escapeHtml$1");var et={};const K$="Á",eC="á",tC="Ă",nC="ă",rC="∾",oC="∿",iC="∾̳",sC="Â",aC="â",cC="´",lC="А",uC="а",fC="Æ",pC="æ",dC="⁡",hC="𝔄",mC="𝔞",vC="À",gC="à",yC="ℵ",bC="ℵ",EC="Α",_C="α",kC="Ā",xC="ā",wC="⨿",$C="&",CC="&",AC="⩕",SC="⩓",TC="∧",DC="⩜",NC="⩘",OC="⩚",IC="∠",LC="⦤",FC="∠",RC="⦨",MC="⦩",qC="⦪",PC="⦫",BC="⦬",VC="⦭",jC="⦮",UC="⦯",zC="∡",HC="∟",GC="⊾",WC="⦝",QC="∢",YC="Å",JC="⍼",ZC="Ą",XC="ą",KC="𝔸",eA="𝕒",tA="⩯",nA="≈",rA="⩰",oA="≊",iA="≋",sA="'",aA="⁡",cA="≈",lA="≊",uA="Å",fA="å",pA="𝒜",dA="𝒶",hA="≔",mA="*",vA="≈",gA="≍",yA="Ã",bA="ã",EA="Ä",_A="ä",kA="∳",xA="⨑",wA="≌",$A="϶",CA="‵",AA="∽",SA="⋍",TA="∖",DA="⫧",NA="⊽",OA="⌅",IA="⌆",LA="⌅",FA="⎵",RA="⎶",MA="≌",qA="Б",PA="б",BA="„",VA="∵",jA="∵",UA="∵",zA="⦰",HA="϶",GA="ℬ",WA="ℬ",QA="Β",YA="β",JA="ℶ",ZA="≬",XA="𝔅",KA="𝔟",eS="⋂",tS="◯",nS="⋃",rS="⨀",oS="⨁",iS="⨂",sS="⨆",aS="★",cS="▽",lS="△",uS="⨄",fS="⋁",pS="⋀",dS="⤍",hS="⧫",mS="▪",vS="▴",gS="▾",yS="◂",bS="▸",ES="␣",_S="▒",kS="░",xS="▓",wS="█",$S="=⃥",CS="≡⃥",AS="⫭",SS="⌐",TS="𝔹",DS="𝕓",NS="⊥",OS="⊥",IS="⋈",LS="⧉",FS="┐",RS="╕",MS="╖",qS="╗",PS="┌",BS="╒",VS="╓",jS="╔",US="─",zS="═",HS="┬",GS="╤",WS="╥",QS="╦",YS="┴",JS="╧",ZS="╨",XS="╩",KS="⊟",eT="⊞",tT="⊠",nT="┘",rT="╛",oT="╜",iT="╝",sT="└",aT="╘",cT="╙",lT="╚",uT="│",fT="║",pT="┼",dT="╪",hT="╫",mT="╬",vT="┤",gT="╡",yT="╢",bT="╣",ET="├",_T="╞",kT="╟",xT="╠",wT="‵",$T="˘",CT="˘",AT="¦",ST="𝒷",TT="ℬ",DT="⁏",NT="∽",OT="⋍",IT="⧅",LT="\\",FT="⟈",RT="•",MT="•",qT="≎",PT="⪮",BT="≏",VT="≎",jT="≏",UT="Ć",zT="ć",HT="⩄",GT="⩉",WT="⩋",QT="∩",YT="⋒",JT="⩇",ZT="⩀",XT="ⅅ",KT="∩︀",eD="⁁",tD="ˇ",nD="ℭ",rD="⩍",oD="Č",iD="č",sD="Ç",aD="ç",cD="Ĉ",lD="ĉ",uD="∰",fD="⩌",pD="⩐",dD="Ċ",hD="ċ",mD="¸",vD="¸",gD="⦲",yD="¢",bD="·",ED="·",_D="𝔠",kD="ℭ",xD="Ч",wD="ч",$D="✓",CD="✓",AD="Χ",SD="χ",TD="ˆ",DD="≗",ND="↺",OD="↻",ID="⊛",LD="⊚",FD="⊝",RD="⊙",MD="®",qD="Ⓢ",PD="⊖",BD="⊕",VD="⊗",jD="○",UD="⧃",zD="≗",HD="⨐",GD="⫯",WD="⧂",QD="∲",YD="”",JD="’",ZD="♣",XD="♣",KD=":",eN="∷",tN="⩴",nN="≔",rN="≔",oN=",",iN="@",sN="∁",aN="∘",cN="∁",lN="ℂ",uN="≅",fN="⩭",pN="≡",dN="∮",hN="∯",mN="∮",vN="𝕔",gN="ℂ",yN="∐",bN="∐",EN="©",_N="©",kN="℗",xN="∳",wN="↵",$N="✗",CN="⨯",AN="𝒞",SN="𝒸",TN="⫏",DN="⫑",NN="⫐",ON="⫒",IN="⋯",LN="⤸",FN="⤵",RN="⋞",MN="⋟",qN="↶",PN="⤽",BN="⩈",VN="⩆",jN="≍",UN="∪",zN="⋓",HN="⩊",GN="⊍",WN="⩅",QN="∪︀",YN="↷",JN="⤼",ZN="⋞",XN="⋟",KN="⋎",eO="⋏",tO="¤",nO="↶",rO="↷",oO="⋎",iO="⋏",sO="∲",aO="∱",cO="⌭",lO="†",uO="‡",fO="ℸ",pO="↓",dO="↡",hO="⇓",mO="‐",vO="⫤",gO="⊣",yO="⤏",bO="˝",EO="Ď",_O="ď",kO="Д",xO="д",wO="‡",$O="⇊",CO="ⅅ",AO="ⅆ",SO="⤑",TO="⩷",DO="°",NO="∇",OO="Δ",IO="δ",LO="⦱",FO="⥿",RO="𝔇",MO="𝔡",qO="⥥",PO="⇃",BO="⇂",VO="´",jO="˙",UO="˝",zO="`",HO="˜",GO="⋄",WO="⋄",QO="⋄",YO="♦",JO="♦",ZO="¨",XO="ⅆ",KO="ϝ",eI="⋲",tI="÷",nI="÷",rI="⋇",oI="⋇",iI="Ђ",sI="ђ",aI="⌞",cI="⌍",lI="$",uI="𝔻",fI="𝕕",pI="¨",dI="˙",hI="⃜",mI="≐",vI="≑",gI="≐",yI="∸",bI="∔",EI="⊡",_I="⌆",kI="∯",xI="¨",wI="⇓",$I="⇐",CI="⇔",AI="⫤",SI="⟸",TI="⟺",DI="⟹",NI="⇒",OI="⊨",II="⇑",LI="⇕",FI="∥",RI="⤓",MI="↓",qI="↓",PI="⇓",BI="⇵",VI="̑",jI="⇊",UI="⇃",zI="⇂",HI="⥐",GI="⥞",WI="⥖",QI="↽",YI="⥟",JI="⥗",ZI="⇁",XI="↧",KI="⊤",eL="⤐",tL="⌟",nL="⌌",rL="𝒟",oL="𝒹",iL="Ѕ",sL="ѕ",aL="⧶",cL="Đ",lL="đ",uL="⋱",fL="▿",pL="▾",dL="⇵",hL="⥯",mL="⦦",vL="Џ",gL="џ",yL="⟿",bL="É",EL="é",_L="⩮",kL="Ě",xL="ě",wL="Ê",$L="ê",CL="≖",AL="≕",SL="Э",TL="э",DL="⩷",NL="Ė",OL="ė",IL="≑",LL="ⅇ",FL="≒",RL="𝔈",ML="𝔢",qL="⪚",PL="È",BL="è",VL="⪖",jL="⪘",UL="⪙",zL="∈",HL="⏧",GL="ℓ",WL="⪕",QL="⪗",YL="Ē",JL="ē",ZL="∅",XL="∅",KL="◻",eF="∅",tF="▫",nF=" ",rF=" ",oF=" ",iF="Ŋ",sF="ŋ",aF=" ",cF="Ę",lF="ę",uF="𝔼",fF="𝕖",pF="⋕",dF="⧣",hF="⩱",mF="ε",vF="Ε",gF="ε",yF="ϵ",bF="≖",EF="≕",_F="≂",kF="⪖",xF="⪕",wF="⩵",$F="=",CF="≂",AF="≟",SF="⇌",TF="≡",DF="⩸",NF="⧥",OF="⥱",IF="≓",LF="ℯ",FF="ℰ",RF="≐",MF="⩳",qF="≂",PF="Η",BF="η",VF="Ð",jF="ð",UF="Ë",zF="ë",HF="€",GF="!",WF="∃",QF="∃",YF="ℰ",JF="ⅇ",ZF="ⅇ",XF="≒",KF="Ф",eR="ф",tR="♀",nR="ffi",rR="ff",oR="ffl",iR="𝔉",sR="𝔣",aR="fi",cR="◼",lR="▪",uR="fj",fR="♭",pR="fl",dR="▱",hR="ƒ",mR="𝔽",vR="𝕗",gR="∀",yR="∀",bR="⋔",ER="⫙",_R="ℱ",kR="⨍",xR="½",wR="⅓",$R="¼",CR="⅕",AR="⅙",SR="⅛",TR="⅔",DR="⅖",NR="¾",OR="⅗",IR="⅜",LR="⅘",FR="⅚",RR="⅝",MR="⅞",qR="⁄",PR="⌢",BR="𝒻",VR="ℱ",jR="ǵ",UR="Γ",zR="γ",HR="Ϝ",GR="ϝ",WR="⪆",QR="Ğ",YR="ğ",JR="Ģ",ZR="Ĝ",XR="ĝ",KR="Г",eM="г",tM="Ġ",nM="ġ",rM="≥",oM="≧",iM="⪌",sM="⋛",aM="≥",cM="≧",lM="⩾",uM="⪩",fM="⩾",pM="⪀",dM="⪂",hM="⪄",mM="⋛︀",vM="⪔",gM="𝔊",yM="𝔤",bM="≫",EM="⋙",_M="⋙",kM="ℷ",xM="Ѓ",wM="ѓ",$M="⪥",CM="≷",AM="⪒",SM="⪤",TM="⪊",DM="⪊",NM="⪈",OM="≩",IM="⪈",LM="≩",FM="⋧",RM="𝔾",MM="𝕘",qM="`",PM="≥",BM="⋛",VM="≧",jM="⪢",UM="≷",zM="⩾",HM="≳",GM="𝒢",WM="ℊ",QM="≳",YM="⪎",JM="⪐",ZM="⪧",XM="⩺",KM=">",eq=">",tq="≫",nq="⋗",rq="⦕",oq="⩼",iq="⪆",sq="⥸",aq="⋗",cq="⋛",lq="⪌",uq="≷",fq="≳",pq="≩︀",dq="≩︀",hq="ˇ",mq=" ",vq="½",gq="ℋ",yq="Ъ",bq="ъ",Eq="⥈",_q="↔",kq="⇔",xq="↭",wq="^",$q="ℏ",Cq="Ĥ",Aq="ĥ",Sq="♥",Tq="♥",Dq="…",Nq="⊹",Oq="𝔥",Iq="ℌ",Lq="ℋ",Fq="⤥",Rq="⤦",Mq="⇿",qq="∻",Pq="↩",Bq="↪",Vq="𝕙",jq="ℍ",Uq="―",zq="─",Hq="𝒽",Gq="ℋ",Wq="ℏ",Qq="Ħ",Yq="ħ",Jq="≎",Zq="≏",Xq="⁃",Kq="‐",eP="Í",tP="í",nP="⁣",rP="Î",oP="î",iP="И",sP="и",aP="İ",cP="Е",lP="е",uP="¡",fP="⇔",pP="𝔦",dP="ℑ",hP="Ì",mP="ì",vP="ⅈ",gP="⨌",yP="∭",bP="⧜",EP="℩",_P="IJ",kP="ij",xP="Ī",wP="ī",$P="ℑ",CP="ⅈ",AP="ℐ",SP="ℑ",TP="ı",DP="ℑ",NP="⊷",OP="Ƶ",IP="⇒",LP="℅",FP="∞",RP="⧝",MP="ı",qP="⊺",PP="∫",BP="∬",VP="ℤ",jP="∫",UP="⊺",zP="⋂",HP="⨗",GP="⨼",WP="⁣",QP="⁢",YP="Ё",JP="ё",ZP="Į",XP="į",KP="𝕀",e3="𝕚",t3="Ι",n3="ι",r3="⨼",o3="¿",i3="𝒾",s3="ℐ",a3="∈",c3="⋵",l3="⋹",u3="⋴",f3="⋳",p3="∈",d3="⁢",h3="Ĩ",m3="ĩ",v3="І",g3="і",y3="Ï",b3="ï",E3="Ĵ",_3="ĵ",k3="Й",x3="й",w3="𝔍",$3="𝔧",C3="ȷ",A3="𝕁",S3="𝕛",T3="𝒥",D3="𝒿",N3="Ј",O3="ј",I3="Є",L3="є",F3="Κ",R3="κ",M3="ϰ",q3="Ķ",P3="ķ",B3="К",V3="к",j3="𝔎",U3="𝔨",z3="ĸ",H3="Х",G3="х",W3="Ќ",Q3="ќ",Y3="𝕂",J3="𝕜",Z3="𝒦",X3="𝓀",K3="⇚",eB="Ĺ",tB="ĺ",nB="⦴",rB="ℒ",oB="Λ",iB="λ",sB="⟨",aB="⟪",cB="⦑",lB="⟨",uB="⪅",fB="ℒ",pB="«",dB="⇤",hB="⤟",mB="←",vB="↞",gB="⇐",yB="⤝",bB="↩",EB="↫",_B="⤹",kB="⥳",xB="↢",wB="⤙",$B="⤛",CB="⪫",AB="⪭",SB="⪭︀",TB="⤌",DB="⤎",NB="❲",OB="{",IB="[",LB="⦋",FB="⦏",RB="⦍",MB="Ľ",qB="ľ",PB="Ļ",BB="ļ",VB="⌈",jB="{",UB="Л",zB="л",HB="⤶",GB="“",WB="„",QB="⥧",YB="⥋",JB="↲",ZB="≤",XB="≦",KB="⟨",e5="⇤",t5="←",n5="←",r5="⇐",o5="⇆",i5="↢",s5="⌈",a5="⟦",c5="⥡",l5="⥙",u5="⇃",f5="⌊",p5="↽",d5="↼",h5="⇇",m5="↔",v5="↔",g5="⇔",y5="⇆",b5="⇋",E5="↭",_5="⥎",k5="↤",x5="⊣",w5="⥚",$5="⋋",C5="⧏",A5="⊲",S5="⊴",T5="⥑",D5="⥠",N5="⥘",O5="↿",I5="⥒",L5="↼",F5="⪋",R5="⋚",M5="≤",q5="≦",P5="⩽",B5="⪨",V5="⩽",j5="⩿",U5="⪁",z5="⪃",H5="⋚︀",G5="⪓",W5="⪅",Q5="⋖",Y5="⋚",J5="⪋",Z5="⋚",X5="≦",K5="≶",eV="≶",tV="⪡",nV="≲",rV="⩽",oV="≲",iV="⥼",sV="⌊",aV="𝔏",cV="𝔩",lV="≶",uV="⪑",fV="⥢",pV="↽",dV="↼",hV="⥪",mV="▄",vV="Љ",gV="љ",yV="⇇",bV="≪",EV="⋘",_V="⌞",kV="⇚",xV="⥫",wV="◺",$V="Ŀ",CV="ŀ",AV="⎰",SV="⎰",TV="⪉",DV="⪉",NV="⪇",OV="≨",IV="⪇",LV="≨",FV="⋦",RV="⟬",MV="⇽",qV="⟦",PV="⟵",BV="⟵",VV="⟸",jV="⟷",UV="⟷",zV="⟺",HV="⟼",GV="⟶",WV="⟶",QV="⟹",YV="↫",JV="↬",ZV="⦅",XV="𝕃",KV="𝕝",e9="⨭",t9="⨴",n9="∗",r9="_",o9="↙",i9="↘",s9="◊",a9="◊",c9="⧫",l9="(",u9="⦓",f9="⇆",p9="⌟",d9="⇋",h9="⥭",m9="‎",v9="⊿",g9="‹",y9="𝓁",b9="ℒ",E9="↰",_9="↰",k9="≲",x9="⪍",w9="⪏",$9="[",C9="‘",A9="‚",S9="Ł",T9="ł",D9="⪦",N9="⩹",O9="<",I9="<",L9="≪",F9="⋖",R9="⋋",M9="⋉",q9="⥶",P9="⩻",B9="◃",V9="⊴",j9="◂",U9="⦖",z9="⥊",H9="⥦",G9="≨︀",W9="≨︀",Q9="¯",Y9="♂",J9="✠",Z9="✠",X9="↦",K9="↦",e4="↧",t4="↤",n4="↥",r4="▮",o4="⨩",i4="М",s4="м",a4="—",c4="∺",l4="∡",u4=" ",f4="ℳ",p4="𝔐",d4="𝔪",h4="℧",m4="µ",v4="*",g4="⫰",y4="∣",b4="·",E4="⊟",_4="−",k4="∸",x4="⨪",w4="∓",$4="⫛",C4="…",A4="∓",S4="⊧",T4="𝕄",D4="𝕞",N4="∓",O4="𝓂",I4="ℳ",L4="∾",F4="Μ",R4="μ",M4="⊸",q4="⊸",P4="∇",B4="Ń",V4="ń",j4="∠⃒",U4="≉",z4="⩰̸",H4="≋̸",G4="ʼn",W4="≉",Q4="♮",Y4="ℕ",J4="♮",Z4=" ",X4="≎̸",K4="≏̸",ej="⩃",tj="Ň",nj="ň",rj="Ņ",oj="ņ",ij="≇",sj="⩭̸",aj="⩂",cj="Н",lj="н",uj="–",fj="⤤",pj="↗",dj="⇗",hj="↗",mj="≠",vj="≐̸",gj="​",yj="​",bj="​",Ej="​",_j="≢",kj="⤨",xj="≂̸",wj="≫",$j="≪",Cj=`
184
- `,Aj="∄",Sj="∄",Tj="𝔑",Dj="𝔫",Nj="≧̸",Oj="≱",Ij="≱",Lj="≧̸",Fj="⩾̸",Rj="⩾̸",Mj="⋙̸",qj="≵",Pj="≫⃒",Bj="≯",Vj="≯",jj="≫̸",Uj="↮",zj="⇎",Hj="⫲",Gj="∋",Wj="⋼",Qj="⋺",Yj="∋",Jj="Њ",Zj="њ",Xj="↚",Kj="⇍",e6="‥",t6="≦̸",n6="≰",r6="↚",o6="⇍",i6="↮",s6="⇎",a6="≰",c6="≦̸",l6="⩽̸",u6="⩽̸",f6="≮",p6="⋘̸",d6="≴",h6="≪⃒",m6="≮",v6="⋪",g6="⋬",y6="≪̸",b6="∤",E6="⁠",_6=" ",k6="𝕟",x6="ℕ",w6="⫬",$6="¬",C6="≢",A6="≭",S6="∦",T6="∉",D6="≠",N6="≂̸",O6="∄",I6="≯",L6="≱",F6="≧̸",R6="≫̸",M6="≹",q6="⩾̸",P6="≵",B6="≎̸",V6="≏̸",j6="∉",U6="⋵̸",z6="⋹̸",H6="∉",G6="⋷",W6="⋶",Q6="⧏̸",Y6="⋪",J6="⋬",Z6="≮",X6="≰",K6="≸",eU="≪̸",tU="⩽̸",nU="≴",rU="⪢̸",oU="⪡̸",iU="∌",sU="∌",aU="⋾",cU="⋽",lU="⊀",uU="⪯̸",fU="⋠",pU="∌",dU="⧐̸",hU="⋫",mU="⋭",vU="⊏̸",gU="⋢",yU="⊐̸",bU="⋣",EU="⊂⃒",_U="⊈",kU="⊁",xU="⪰̸",wU="⋡",$U="≿̸",CU="⊃⃒",AU="⊉",SU="≁",TU="≄",DU="≇",NU="≉",OU="∤",IU="∦",LU="∦",FU="⫽⃥",RU="∂̸",MU="⨔",qU="⊀",PU="⋠",BU="⊀",VU="⪯̸",jU="⪯̸",UU="⤳̸",zU="↛",HU="⇏",GU="↝̸",WU="↛",QU="⇏",YU="⋫",JU="⋭",ZU="⊁",XU="⋡",KU="⪰̸",ez="𝒩",tz="𝓃",nz="∤",rz="∦",oz="≁",iz="≄",sz="≄",az="∤",cz="∦",lz="⋢",uz="⋣",fz="⊄",pz="⫅̸",dz="⊈",hz="⊂⃒",mz="⊈",vz="⫅̸",gz="⊁",yz="⪰̸",bz="⊅",Ez="⫆̸",_z="⊉",kz="⊃⃒",xz="⊉",wz="⫆̸",$z="≹",Cz="Ñ",Az="ñ",Sz="≸",Tz="⋪",Dz="⋬",Nz="⋫",Oz="⋭",Iz="Ν",Lz="ν",Fz="#",Rz="№",Mz=" ",qz="≍⃒",Pz="⊬",Bz="⊭",Vz="⊮",jz="⊯",Uz="≥⃒",zz=">⃒",Hz="⤄",Gz="⧞",Wz="⤂",Qz="≤⃒",Yz="<⃒",Jz="⊴⃒",Zz="⤃",Xz="⊵⃒",Kz="∼⃒",e8="⤣",t8="↖",n8="⇖",r8="↖",o8="⤧",i8="Ó",s8="ó",a8="⊛",c8="Ô",l8="ô",u8="⊚",f8="О",p8="о",d8="⊝",h8="Ő",m8="ő",v8="⨸",g8="⊙",y8="⦼",b8="Œ",E8="œ",_8="⦿",k8="𝔒",x8="𝔬",w8="˛",$8="Ò",C8="ò",A8="⧁",S8="⦵",T8="Ω",D8="∮",N8="↺",O8="⦾",I8="⦻",L8="‾",F8="⧀",R8="Ō",M8="ō",q8="Ω",P8="ω",B8="Ο",V8="ο",j8="⦶",U8="⊖",z8="𝕆",H8="𝕠",G8="⦷",W8="“",Q8="‘",Y8="⦹",J8="⊕",Z8="↻",X8="⩔",K8="∨",e7="⩝",t7="ℴ",n7="ℴ",r7="ª",o7="º",i7="⊶",s7="⩖",a7="⩗",c7="⩛",l7="Ⓢ",u7="𝒪",f7="ℴ",p7="Ø",d7="ø",h7="⊘",m7="Õ",v7="õ",g7="⨶",y7="⨷",b7="⊗",E7="Ö",_7="ö",k7="⌽",x7="‾",w7="⏞",$7="⎴",C7="⏜",A7="¶",S7="∥",T7="∥",D7="⫳",N7="⫽",O7="∂",I7="∂",L7="П",F7="п",R7="%",M7=".",q7="‰",P7="⊥",B7="‱",V7="𝔓",j7="𝔭",U7="Φ",z7="φ",H7="ϕ",G7="ℳ",W7="☎",Q7="Π",Y7="π",J7="⋔",Z7="ϖ",X7="ℏ",K7="ℎ",eH="ℏ",tH="⨣",nH="⊞",rH="⨢",oH="+",iH="∔",sH="⨥",aH="⩲",cH="±",lH="±",uH="⨦",fH="⨧",pH="±",dH="ℌ",hH="⨕",mH="𝕡",vH="ℙ",gH="£",yH="⪷",bH="⪻",EH="≺",_H="≼",kH="⪷",xH="≺",wH="≼",$H="≺",CH="⪯",AH="≼",SH="≾",TH="⪯",DH="⪹",NH="⪵",OH="⋨",IH="⪯",LH="⪳",FH="≾",RH="′",MH="″",qH="ℙ",PH="⪹",BH="⪵",VH="⋨",jH="∏",UH="∏",zH="⌮",HH="⌒",GH="⌓",WH="∝",QH="∝",YH="∷",JH="∝",ZH="≾",XH="⊰",KH="𝒫",eG="𝓅",tG="Ψ",nG="ψ",rG=" ",oG="𝔔",iG="𝔮",sG="⨌",aG="𝕢",cG="ℚ",lG="⁗",uG="𝒬",fG="𝓆",pG="ℍ",dG="⨖",hG="?",mG="≟",vG='"',gG='"',yG="⇛",bG="∽̱",EG="Ŕ",_G="ŕ",kG="√",xG="⦳",wG="⟩",$G="⟫",CG="⦒",AG="⦥",SG="⟩",TG="»",DG="⥵",NG="⇥",OG="⤠",IG="⤳",LG="→",FG="↠",RG="⇒",MG="⤞",qG="↪",PG="↬",BG="⥅",VG="⥴",jG="⤖",UG="↣",zG="↝",HG="⤚",GG="⤜",WG="∶",QG="ℚ",YG="⤍",JG="⤏",ZG="⤐",XG="❳",KG="}",eW="]",tW="⦌",nW="⦎",rW="⦐",oW="Ř",iW="ř",sW="Ŗ",aW="ŗ",cW="⌉",lW="}",uW="Р",fW="р",pW="⤷",dW="⥩",hW="”",mW="”",vW="↳",gW="ℜ",yW="ℛ",bW="ℜ",EW="ℝ",_W="ℜ",kW="▭",xW="®",wW="®",$W="∋",CW="⇋",AW="⥯",SW="⥽",TW="⌋",DW="𝔯",NW="ℜ",OW="⥤",IW="⇁",LW="⇀",FW="⥬",RW="Ρ",MW="ρ",qW="ϱ",PW="⟩",BW="⇥",VW="→",jW="→",UW="⇒",zW="⇄",HW="↣",GW="⌉",WW="⟧",QW="⥝",YW="⥕",JW="⇂",ZW="⌋",XW="⇁",KW="⇀",eQ="⇄",tQ="⇌",nQ="⇉",rQ="↝",oQ="↦",iQ="⊢",sQ="⥛",aQ="⋌",cQ="⧐",lQ="⊳",uQ="⊵",fQ="⥏",pQ="⥜",dQ="⥔",hQ="↾",mQ="⥓",vQ="⇀",gQ="˚",yQ="≓",bQ="⇄",EQ="⇌",_Q="‏",kQ="⎱",xQ="⎱",wQ="⫮",$Q="⟭",CQ="⇾",AQ="⟧",SQ="⦆",TQ="𝕣",DQ="ℝ",NQ="⨮",OQ="⨵",IQ="⥰",LQ=")",FQ="⦔",RQ="⨒",MQ="⇉",qQ="⇛",PQ="›",BQ="𝓇",VQ="ℛ",jQ="↱",UQ="↱",zQ="]",HQ="’",GQ="’",WQ="⋌",QQ="⋊",YQ="▹",JQ="⊵",ZQ="▸",XQ="⧎",KQ="⧴",eY="⥨",tY="℞",nY="Ś",rY="ś",oY="‚",iY="⪸",sY="Š",aY="š",cY="⪼",lY="≻",uY="≽",fY="⪰",pY="⪴",dY="Ş",hY="ş",mY="Ŝ",vY="ŝ",gY="⪺",yY="⪶",bY="⋩",EY="⨓",_Y="≿",kY="С",xY="с",wY="⊡",$Y="⋅",CY="⩦",AY="⤥",SY="↘",TY="⇘",DY="↘",NY="§",OY=";",IY="⤩",LY="∖",FY="∖",RY="✶",MY="𝔖",qY="𝔰",PY="⌢",BY="♯",VY="Щ",jY="щ",UY="Ш",zY="ш",HY="↓",GY="←",WY="∣",QY="∥",YY="→",JY="↑",ZY="­",XY="Σ",KY="σ",eJ="ς",tJ="ς",nJ="∼",rJ="⩪",oJ="≃",iJ="≃",sJ="⪞",aJ="⪠",cJ="⪝",lJ="⪟",uJ="≆",fJ="⨤",pJ="⥲",dJ="←",hJ="∘",mJ="∖",vJ="⨳",gJ="⧤",yJ="∣",bJ="⌣",EJ="⪪",_J="⪬",kJ="⪬︀",xJ="Ь",wJ="ь",$J="⌿",CJ="⧄",AJ="/",SJ="𝕊",TJ="𝕤",DJ="♠",NJ="♠",OJ="∥",IJ="⊓",LJ="⊓︀",FJ="⊔",RJ="⊔︀",MJ="√",qJ="⊏",PJ="⊑",BJ="⊏",VJ="⊑",jJ="⊐",UJ="⊒",zJ="⊐",HJ="⊒",GJ="□",WJ="□",QJ="⊓",YJ="⊏",JJ="⊑",ZJ="⊐",XJ="⊒",KJ="⊔",eZ="▪",tZ="□",nZ="▪",rZ="→",oZ="𝒮",iZ="𝓈",sZ="∖",aZ="⌣",cZ="⋆",lZ="⋆",uZ="☆",fZ="★",pZ="ϵ",dZ="ϕ",hZ="¯",mZ="⊂",vZ="⋐",gZ="⪽",yZ="⫅",bZ="⊆",EZ="⫃",_Z="⫁",kZ="⫋",xZ="⊊",wZ="⪿",$Z="⥹",CZ="⊂",AZ="⋐",SZ="⊆",TZ="⫅",DZ="⊆",NZ="⊊",OZ="⫋",IZ="⫇",LZ="⫕",FZ="⫓",RZ="⪸",MZ="≻",qZ="≽",PZ="≻",BZ="⪰",VZ="≽",jZ="≿",UZ="⪰",zZ="⪺",HZ="⪶",GZ="⋩",WZ="≿",QZ="∋",YZ="∑",JZ="∑",ZZ="♪",XZ="¹",KZ="²",eX="³",tX="⊃",nX="⋑",rX="⪾",oX="⫘",iX="⫆",sX="⊇",aX="⫄",cX="⊃",lX="⊇",uX="⟉",fX="⫗",pX="⥻",dX="⫂",hX="⫌",mX="⊋",vX="⫀",gX="⊃",yX="⋑",bX="⊇",EX="⫆",_X="⊋",kX="⫌",xX="⫈",wX="⫔",$X="⫖",CX="⤦",AX="↙",SX="⇙",TX="↙",DX="⤪",NX="ß",OX=" ",IX="⌖",LX="Τ",FX="τ",RX="⎴",MX="Ť",qX="ť",PX="Ţ",BX="ţ",VX="Т",jX="т",UX="⃛",zX="⌕",HX="𝔗",GX="𝔱",WX="∴",QX="∴",YX="∴",JX="Θ",ZX="θ",XX="ϑ",KX="ϑ",eK="≈",tK="∼",nK="  ",rK=" ",oK=" ",iK="≈",sK="∼",aK="Þ",cK="þ",lK="˜",uK="∼",fK="≃",pK="≅",dK="≈",hK="⨱",mK="⊠",vK="×",gK="⨰",yK="∭",bK="⤨",EK="⌶",_K="⫱",kK="⊤",xK="𝕋",wK="𝕥",$K="⫚",CK="⤩",AK="‴",SK="™",TK="™",DK="▵",NK="▿",OK="◃",IK="⊴",LK="≜",FK="▹",RK="⊵",MK="◬",qK="≜",PK="⨺",BK="⃛",VK="⨹",jK="⧍",UK="⨻",zK="⏢",HK="𝒯",GK="𝓉",WK="Ц",QK="ц",YK="Ћ",JK="ћ",ZK="Ŧ",XK="ŧ",KK="≬",eee="↞",tee="↠",nee="Ú",ree="ú",oee="↑",iee="↟",see="⇑",aee="⥉",cee="Ў",lee="ў",uee="Ŭ",fee="ŭ",pee="Û",dee="û",hee="У",mee="у",vee="⇅",gee="Ű",yee="ű",bee="⥮",Eee="⥾",_ee="𝔘",kee="𝔲",xee="Ù",wee="ù",$ee="⥣",Cee="↿",Aee="↾",See="▀",Tee="⌜",Dee="⌜",Nee="⌏",Oee="◸",Iee="Ū",Lee="ū",Fee="¨",Ree="_",Mee="⏟",qee="⎵",Pee="⏝",Bee="⋃",Vee="⊎",jee="Ų",Uee="ų",zee="𝕌",Hee="𝕦",Gee="⤒",Wee="↑",Qee="↑",Yee="⇑",Jee="⇅",Zee="↕",Xee="↕",Kee="⇕",ete="⥮",tte="↿",nte="↾",rte="⊎",ote="↖",ite="↗",ste="υ",ate="ϒ",cte="ϒ",lte="Υ",ute="υ",fte="↥",pte="⊥",dte="⇈",hte="⌝",mte="⌝",vte="⌎",gte="Ů",yte="ů",bte="◹",Ete="𝒰",_te="𝓊",kte="⋰",xte="Ũ",wte="ũ",$te="▵",Cte="▴",Ate="⇈",Ste="Ü",Tte="ü",Dte="⦧",Nte="⦜",Ote="ϵ",Ite="ϰ",Lte="∅",Fte="ϕ",Rte="ϖ",Mte="∝",qte="↕",Pte="⇕",Bte="ϱ",Vte="ς",jte="⊊︀",Ute="⫋︀",zte="⊋︀",Hte="⫌︀",Gte="ϑ",Wte="⊲",Qte="⊳",Yte="⫨",Jte="⫫",Zte="⫩",Xte="В",Kte="в",ene="⊢",tne="⊨",nne="⊩",rne="⊫",one="⫦",ine="⊻",sne="∨",ane="⋁",cne="≚",lne="⋮",une="|",fne="‖",pne="|",dne="‖",hne="∣",mne="|",vne="❘",gne="≀",yne=" ",bne="𝔙",Ene="𝔳",_ne="⊲",kne="⊂⃒",xne="⊃⃒",wne="𝕍",$ne="𝕧",Cne="∝",Ane="⊳",Sne="𝒱",Tne="𝓋",Dne="⫋︀",Nne="⊊︀",One="⫌︀",Ine="⊋︀",Lne="⊪",Fne="⦚",Rne="Ŵ",Mne="ŵ",qne="⩟",Pne="∧",Bne="⋀",Vne="≙",jne="℘",Une="𝔚",zne="𝔴",Hne="𝕎",Gne="𝕨",Wne="℘",Qne="≀",Yne="≀",Jne="𝒲",Zne="𝓌",Xne="⋂",Kne="◯",ere="⋃",tre="▽",nre="𝔛",rre="𝔵",ore="⟷",ire="⟺",sre="Ξ",are="ξ",cre="⟵",lre="⟸",ure="⟼",fre="⋻",pre="⨀",dre="𝕏",hre="𝕩",mre="⨁",vre="⨂",gre="⟶",yre="⟹",bre="𝒳",Ere="𝓍",_re="⨆",kre="⨄",xre="△",wre="⋁",$re="⋀",Cre="Ý",Are="ý",Sre="Я",Tre="я",Dre="Ŷ",Nre="ŷ",Ore="Ы",Ire="ы",Lre="¥",Fre="𝔜",Rre="𝔶",Mre="Ї",qre="ї",Pre="𝕐",Bre="𝕪",Vre="𝒴",jre="𝓎",Ure="Ю",zre="ю",Hre="ÿ",Gre="Ÿ",Wre="Ź",Qre="ź",Yre="Ž",Jre="ž",Zre="З",Xre="з",Kre="Ż",eoe="ż",toe="ℨ",noe="​",roe="Ζ",ooe="ζ",ioe="𝔷",soe="ℨ",aoe="Ж",coe="ж",loe="⇝",uoe="𝕫",foe="ℤ",poe="𝒵",doe="𝓏",hoe="‍",moe="‌";var voe={Aacute:K$,aacute:eC,Abreve:tC,abreve:nC,ac:rC,acd:oC,acE:iC,Acirc:sC,acirc:aC,acute:cC,Acy:lC,acy:uC,AElig:fC,aelig:pC,af:dC,Afr:hC,afr:mC,Agrave:vC,agrave:gC,alefsym:yC,aleph:bC,Alpha:EC,alpha:_C,Amacr:kC,amacr:xC,amalg:wC,amp:$C,AMP:CC,andand:AC,And:SC,and:TC,andd:DC,andslope:NC,andv:OC,ang:IC,ange:LC,angle:FC,angmsdaa:RC,angmsdab:MC,angmsdac:qC,angmsdad:PC,angmsdae:BC,angmsdaf:VC,angmsdag:jC,angmsdah:UC,angmsd:zC,angrt:HC,angrtvb:GC,angrtvbd:WC,angsph:QC,angst:YC,angzarr:JC,Aogon:ZC,aogon:XC,Aopf:KC,aopf:eA,apacir:tA,ap:nA,apE:rA,ape:oA,apid:iA,apos:sA,ApplyFunction:aA,approx:cA,approxeq:lA,Aring:uA,aring:fA,Ascr:pA,ascr:dA,Assign:hA,ast:mA,asymp:vA,asympeq:gA,Atilde:yA,atilde:bA,Auml:EA,auml:_A,awconint:kA,awint:xA,backcong:wA,backepsilon:$A,backprime:CA,backsim:AA,backsimeq:SA,Backslash:TA,Barv:DA,barvee:NA,barwed:OA,Barwed:IA,barwedge:LA,bbrk:FA,bbrktbrk:RA,bcong:MA,Bcy:qA,bcy:PA,bdquo:BA,becaus:VA,because:jA,Because:UA,bemptyv:zA,bepsi:HA,bernou:GA,Bernoullis:WA,Beta:QA,beta:YA,beth:JA,between:ZA,Bfr:XA,bfr:KA,bigcap:eS,bigcirc:tS,bigcup:nS,bigodot:rS,bigoplus:oS,bigotimes:iS,bigsqcup:sS,bigstar:aS,bigtriangledown:cS,bigtriangleup:lS,biguplus:uS,bigvee:fS,bigwedge:pS,bkarow:dS,blacklozenge:hS,blacksquare:mS,blacktriangle:vS,blacktriangledown:gS,blacktriangleleft:yS,blacktriangleright:bS,blank:ES,blk12:_S,blk14:kS,blk34:xS,block:wS,bne:$S,bnequiv:CS,bNot:AS,bnot:SS,Bopf:TS,bopf:DS,bot:NS,bottom:OS,bowtie:IS,boxbox:LS,boxdl:FS,boxdL:RS,boxDl:MS,boxDL:qS,boxdr:PS,boxdR:BS,boxDr:VS,boxDR:jS,boxh:US,boxH:zS,boxhd:HS,boxHd:GS,boxhD:WS,boxHD:QS,boxhu:YS,boxHu:JS,boxhU:ZS,boxHU:XS,boxminus:KS,boxplus:eT,boxtimes:tT,boxul:nT,boxuL:rT,boxUl:oT,boxUL:iT,boxur:sT,boxuR:aT,boxUr:cT,boxUR:lT,boxv:uT,boxV:fT,boxvh:pT,boxvH:dT,boxVh:hT,boxVH:mT,boxvl:vT,boxvL:gT,boxVl:yT,boxVL:bT,boxvr:ET,boxvR:_T,boxVr:kT,boxVR:xT,bprime:wT,breve:$T,Breve:CT,brvbar:AT,bscr:ST,Bscr:TT,bsemi:DT,bsim:NT,bsime:OT,bsolb:IT,bsol:LT,bsolhsub:FT,bull:RT,bullet:MT,bump:qT,bumpE:PT,bumpe:BT,Bumpeq:VT,bumpeq:jT,Cacute:UT,cacute:zT,capand:HT,capbrcup:GT,capcap:WT,cap:QT,Cap:YT,capcup:JT,capdot:ZT,CapitalDifferentialD:XT,caps:KT,caret:eD,caron:tD,Cayleys:nD,ccaps:rD,Ccaron:oD,ccaron:iD,Ccedil:sD,ccedil:aD,Ccirc:cD,ccirc:lD,Cconint:uD,ccups:fD,ccupssm:pD,Cdot:dD,cdot:hD,cedil:mD,Cedilla:vD,cemptyv:gD,cent:yD,centerdot:bD,CenterDot:ED,cfr:_D,Cfr:kD,CHcy:xD,chcy:wD,check:$D,checkmark:CD,Chi:AD,chi:SD,circ:TD,circeq:DD,circlearrowleft:ND,circlearrowright:OD,circledast:ID,circledcirc:LD,circleddash:FD,CircleDot:RD,circledR:MD,circledS:qD,CircleMinus:PD,CirclePlus:BD,CircleTimes:VD,cir:jD,cirE:UD,cire:zD,cirfnint:HD,cirmid:GD,cirscir:WD,ClockwiseContourIntegral:QD,CloseCurlyDoubleQuote:YD,CloseCurlyQuote:JD,clubs:ZD,clubsuit:XD,colon:KD,Colon:eN,Colone:tN,colone:nN,coloneq:rN,comma:oN,commat:iN,comp:sN,compfn:aN,complement:cN,complexes:lN,cong:uN,congdot:fN,Congruent:pN,conint:dN,Conint:hN,ContourIntegral:mN,copf:vN,Copf:gN,coprod:yN,Coproduct:bN,copy:EN,COPY:_N,copysr:kN,CounterClockwiseContourIntegral:xN,crarr:wN,cross:$N,Cross:CN,Cscr:AN,cscr:SN,csub:TN,csube:DN,csup:NN,csupe:ON,ctdot:IN,cudarrl:LN,cudarrr:FN,cuepr:RN,cuesc:MN,cularr:qN,cularrp:PN,cupbrcap:BN,cupcap:VN,CupCap:jN,cup:UN,Cup:zN,cupcup:HN,cupdot:GN,cupor:WN,cups:QN,curarr:YN,curarrm:JN,curlyeqprec:ZN,curlyeqsucc:XN,curlyvee:KN,curlywedge:eO,curren:tO,curvearrowleft:nO,curvearrowright:rO,cuvee:oO,cuwed:iO,cwconint:sO,cwint:aO,cylcty:cO,dagger:lO,Dagger:uO,daleth:fO,darr:pO,Darr:dO,dArr:hO,dash:mO,Dashv:vO,dashv:gO,dbkarow:yO,dblac:bO,Dcaron:EO,dcaron:_O,Dcy:kO,dcy:xO,ddagger:wO,ddarr:$O,DD:CO,dd:AO,DDotrahd:SO,ddotseq:TO,deg:DO,Del:NO,Delta:OO,delta:IO,demptyv:LO,dfisht:FO,Dfr:RO,dfr:MO,dHar:qO,dharl:PO,dharr:BO,DiacriticalAcute:VO,DiacriticalDot:jO,DiacriticalDoubleAcute:UO,DiacriticalGrave:zO,DiacriticalTilde:HO,diam:GO,diamond:WO,Diamond:QO,diamondsuit:YO,diams:JO,die:ZO,DifferentialD:XO,digamma:KO,disin:eI,div:tI,divide:nI,divideontimes:rI,divonx:oI,DJcy:iI,djcy:sI,dlcorn:aI,dlcrop:cI,dollar:lI,Dopf:uI,dopf:fI,Dot:pI,dot:dI,DotDot:hI,doteq:mI,doteqdot:vI,DotEqual:gI,dotminus:yI,dotplus:bI,dotsquare:EI,doublebarwedge:_I,DoubleContourIntegral:kI,DoubleDot:xI,DoubleDownArrow:wI,DoubleLeftArrow:$I,DoubleLeftRightArrow:CI,DoubleLeftTee:AI,DoubleLongLeftArrow:SI,DoubleLongLeftRightArrow:TI,DoubleLongRightArrow:DI,DoubleRightArrow:NI,DoubleRightTee:OI,DoubleUpArrow:II,DoubleUpDownArrow:LI,DoubleVerticalBar:FI,DownArrowBar:RI,downarrow:MI,DownArrow:qI,Downarrow:PI,DownArrowUpArrow:BI,DownBreve:VI,downdownarrows:jI,downharpoonleft:UI,downharpoonright:zI,DownLeftRightVector:HI,DownLeftTeeVector:GI,DownLeftVectorBar:WI,DownLeftVector:QI,DownRightTeeVector:YI,DownRightVectorBar:JI,DownRightVector:ZI,DownTeeArrow:XI,DownTee:KI,drbkarow:eL,drcorn:tL,drcrop:nL,Dscr:rL,dscr:oL,DScy:iL,dscy:sL,dsol:aL,Dstrok:cL,dstrok:lL,dtdot:uL,dtri:fL,dtrif:pL,duarr:dL,duhar:hL,dwangle:mL,DZcy:vL,dzcy:gL,dzigrarr:yL,Eacute:bL,eacute:EL,easter:_L,Ecaron:kL,ecaron:xL,Ecirc:wL,ecirc:$L,ecir:CL,ecolon:AL,Ecy:SL,ecy:TL,eDDot:DL,Edot:NL,edot:OL,eDot:IL,ee:LL,efDot:FL,Efr:RL,efr:ML,eg:qL,Egrave:PL,egrave:BL,egs:VL,egsdot:jL,el:UL,Element:zL,elinters:HL,ell:GL,els:WL,elsdot:QL,Emacr:YL,emacr:JL,empty:ZL,emptyset:XL,EmptySmallSquare:KL,emptyv:eF,EmptyVerySmallSquare:tF,emsp13:nF,emsp14:rF,emsp:oF,ENG:iF,eng:sF,ensp:aF,Eogon:cF,eogon:lF,Eopf:uF,eopf:fF,epar:pF,eparsl:dF,eplus:hF,epsi:mF,Epsilon:vF,epsilon:gF,epsiv:yF,eqcirc:bF,eqcolon:EF,eqsim:_F,eqslantgtr:kF,eqslantless:xF,Equal:wF,equals:$F,EqualTilde:CF,equest:AF,Equilibrium:SF,equiv:TF,equivDD:DF,eqvparsl:NF,erarr:OF,erDot:IF,escr:LF,Escr:FF,esdot:RF,Esim:MF,esim:qF,Eta:PF,eta:BF,ETH:VF,eth:jF,Euml:UF,euml:zF,euro:HF,excl:GF,exist:WF,Exists:QF,expectation:YF,exponentiale:JF,ExponentialE:ZF,fallingdotseq:XF,Fcy:KF,fcy:eR,female:tR,ffilig:nR,fflig:rR,ffllig:oR,Ffr:iR,ffr:sR,filig:aR,FilledSmallSquare:cR,FilledVerySmallSquare:lR,fjlig:uR,flat:fR,fllig:pR,fltns:dR,fnof:hR,Fopf:mR,fopf:vR,forall:gR,ForAll:yR,fork:bR,forkv:ER,Fouriertrf:_R,fpartint:kR,frac12:xR,frac13:wR,frac14:$R,frac15:CR,frac16:AR,frac18:SR,frac23:TR,frac25:DR,frac34:NR,frac35:OR,frac38:IR,frac45:LR,frac56:FR,frac58:RR,frac78:MR,frasl:qR,frown:PR,fscr:BR,Fscr:VR,gacute:jR,Gamma:UR,gamma:zR,Gammad:HR,gammad:GR,gap:WR,Gbreve:QR,gbreve:YR,Gcedil:JR,Gcirc:ZR,gcirc:XR,Gcy:KR,gcy:eM,Gdot:tM,gdot:nM,ge:rM,gE:oM,gEl:iM,gel:sM,geq:aM,geqq:cM,geqslant:lM,gescc:uM,ges:fM,gesdot:pM,gesdoto:dM,gesdotol:hM,gesl:mM,gesles:vM,Gfr:gM,gfr:yM,gg:bM,Gg:EM,ggg:_M,gimel:kM,GJcy:xM,gjcy:wM,gla:$M,gl:CM,glE:AM,glj:SM,gnap:TM,gnapprox:DM,gne:NM,gnE:OM,gneq:IM,gneqq:LM,gnsim:FM,Gopf:RM,gopf:MM,grave:qM,GreaterEqual:PM,GreaterEqualLess:BM,GreaterFullEqual:VM,GreaterGreater:jM,GreaterLess:UM,GreaterSlantEqual:zM,GreaterTilde:HM,Gscr:GM,gscr:WM,gsim:QM,gsime:YM,gsiml:JM,gtcc:ZM,gtcir:XM,gt:KM,GT:eq,Gt:tq,gtdot:nq,gtlPar:rq,gtquest:oq,gtrapprox:iq,gtrarr:sq,gtrdot:aq,gtreqless:cq,gtreqqless:lq,gtrless:uq,gtrsim:fq,gvertneqq:pq,gvnE:dq,Hacek:hq,hairsp:mq,half:vq,hamilt:gq,HARDcy:yq,hardcy:bq,harrcir:Eq,harr:_q,hArr:kq,harrw:xq,Hat:wq,hbar:$q,Hcirc:Cq,hcirc:Aq,hearts:Sq,heartsuit:Tq,hellip:Dq,hercon:Nq,hfr:Oq,Hfr:Iq,HilbertSpace:Lq,hksearow:Fq,hkswarow:Rq,hoarr:Mq,homtht:qq,hookleftarrow:Pq,hookrightarrow:Bq,hopf:Vq,Hopf:jq,horbar:Uq,HorizontalLine:zq,hscr:Hq,Hscr:Gq,hslash:Wq,Hstrok:Qq,hstrok:Yq,HumpDownHump:Jq,HumpEqual:Zq,hybull:Xq,hyphen:Kq,Iacute:eP,iacute:tP,ic:nP,Icirc:rP,icirc:oP,Icy:iP,icy:sP,Idot:aP,IEcy:cP,iecy:lP,iexcl:uP,iff:fP,ifr:pP,Ifr:dP,Igrave:hP,igrave:mP,ii:vP,iiiint:gP,iiint:yP,iinfin:bP,iiota:EP,IJlig:_P,ijlig:kP,Imacr:xP,imacr:wP,image:$P,ImaginaryI:CP,imagline:AP,imagpart:SP,imath:TP,Im:DP,imof:NP,imped:OP,Implies:IP,incare:LP,in:"∈",infin:FP,infintie:RP,inodot:MP,intcal:qP,int:PP,Int:BP,integers:VP,Integral:jP,intercal:UP,Intersection:zP,intlarhk:HP,intprod:GP,InvisibleComma:WP,InvisibleTimes:QP,IOcy:YP,iocy:JP,Iogon:ZP,iogon:XP,Iopf:KP,iopf:e3,Iota:t3,iota:n3,iprod:r3,iquest:o3,iscr:i3,Iscr:s3,isin:a3,isindot:c3,isinE:l3,isins:u3,isinsv:f3,isinv:p3,it:d3,Itilde:h3,itilde:m3,Iukcy:v3,iukcy:g3,Iuml:y3,iuml:b3,Jcirc:E3,jcirc:_3,Jcy:k3,jcy:x3,Jfr:w3,jfr:$3,jmath:C3,Jopf:A3,jopf:S3,Jscr:T3,jscr:D3,Jsercy:N3,jsercy:O3,Jukcy:I3,jukcy:L3,Kappa:F3,kappa:R3,kappav:M3,Kcedil:q3,kcedil:P3,Kcy:B3,kcy:V3,Kfr:j3,kfr:U3,kgreen:z3,KHcy:H3,khcy:G3,KJcy:W3,kjcy:Q3,Kopf:Y3,kopf:J3,Kscr:Z3,kscr:X3,lAarr:K3,Lacute:eB,lacute:tB,laemptyv:nB,lagran:rB,Lambda:oB,lambda:iB,lang:sB,Lang:aB,langd:cB,langle:lB,lap:uB,Laplacetrf:fB,laquo:pB,larrb:dB,larrbfs:hB,larr:mB,Larr:vB,lArr:gB,larrfs:yB,larrhk:bB,larrlp:EB,larrpl:_B,larrsim:kB,larrtl:xB,latail:wB,lAtail:$B,lat:CB,late:AB,lates:SB,lbarr:TB,lBarr:DB,lbbrk:NB,lbrace:OB,lbrack:IB,lbrke:LB,lbrksld:FB,lbrkslu:RB,Lcaron:MB,lcaron:qB,Lcedil:PB,lcedil:BB,lceil:VB,lcub:jB,Lcy:UB,lcy:zB,ldca:HB,ldquo:GB,ldquor:WB,ldrdhar:QB,ldrushar:YB,ldsh:JB,le:ZB,lE:XB,LeftAngleBracket:KB,LeftArrowBar:e5,leftarrow:t5,LeftArrow:n5,Leftarrow:r5,LeftArrowRightArrow:o5,leftarrowtail:i5,LeftCeiling:s5,LeftDoubleBracket:a5,LeftDownTeeVector:c5,LeftDownVectorBar:l5,LeftDownVector:u5,LeftFloor:f5,leftharpoondown:p5,leftharpoonup:d5,leftleftarrows:h5,leftrightarrow:m5,LeftRightArrow:v5,Leftrightarrow:g5,leftrightarrows:y5,leftrightharpoons:b5,leftrightsquigarrow:E5,LeftRightVector:_5,LeftTeeArrow:k5,LeftTee:x5,LeftTeeVector:w5,leftthreetimes:$5,LeftTriangleBar:C5,LeftTriangle:A5,LeftTriangleEqual:S5,LeftUpDownVector:T5,LeftUpTeeVector:D5,LeftUpVectorBar:N5,LeftUpVector:O5,LeftVectorBar:I5,LeftVector:L5,lEg:F5,leg:R5,leq:M5,leqq:q5,leqslant:P5,lescc:B5,les:V5,lesdot:j5,lesdoto:U5,lesdotor:z5,lesg:H5,lesges:G5,lessapprox:W5,lessdot:Q5,lesseqgtr:Y5,lesseqqgtr:J5,LessEqualGreater:Z5,LessFullEqual:X5,LessGreater:K5,lessgtr:eV,LessLess:tV,lesssim:nV,LessSlantEqual:rV,LessTilde:oV,lfisht:iV,lfloor:sV,Lfr:aV,lfr:cV,lg:lV,lgE:uV,lHar:fV,lhard:pV,lharu:dV,lharul:hV,lhblk:mV,LJcy:vV,ljcy:gV,llarr:yV,ll:bV,Ll:EV,llcorner:_V,Lleftarrow:kV,llhard:xV,lltri:wV,Lmidot:$V,lmidot:CV,lmoustache:AV,lmoust:SV,lnap:TV,lnapprox:DV,lne:NV,lnE:OV,lneq:IV,lneqq:LV,lnsim:FV,loang:RV,loarr:MV,lobrk:qV,longleftarrow:PV,LongLeftArrow:BV,Longleftarrow:VV,longleftrightarrow:jV,LongLeftRightArrow:UV,Longleftrightarrow:zV,longmapsto:HV,longrightarrow:GV,LongRightArrow:WV,Longrightarrow:QV,looparrowleft:YV,looparrowright:JV,lopar:ZV,Lopf:XV,lopf:KV,loplus:e9,lotimes:t9,lowast:n9,lowbar:r9,LowerLeftArrow:o9,LowerRightArrow:i9,loz:s9,lozenge:a9,lozf:c9,lpar:l9,lparlt:u9,lrarr:f9,lrcorner:p9,lrhar:d9,lrhard:h9,lrm:m9,lrtri:v9,lsaquo:g9,lscr:y9,Lscr:b9,lsh:E9,Lsh:_9,lsim:k9,lsime:x9,lsimg:w9,lsqb:$9,lsquo:C9,lsquor:A9,Lstrok:S9,lstrok:T9,ltcc:D9,ltcir:N9,lt:O9,LT:I9,Lt:L9,ltdot:F9,lthree:R9,ltimes:M9,ltlarr:q9,ltquest:P9,ltri:B9,ltrie:V9,ltrif:j9,ltrPar:U9,lurdshar:z9,luruhar:H9,lvertneqq:G9,lvnE:W9,macr:Q9,male:Y9,malt:J9,maltese:Z9,Map:"⤅",map:X9,mapsto:K9,mapstodown:e4,mapstoleft:t4,mapstoup:n4,marker:r4,mcomma:o4,Mcy:i4,mcy:s4,mdash:a4,mDDot:c4,measuredangle:l4,MediumSpace:u4,Mellintrf:f4,Mfr:p4,mfr:d4,mho:h4,micro:m4,midast:v4,midcir:g4,mid:y4,middot:b4,minusb:E4,minus:_4,minusd:k4,minusdu:x4,MinusPlus:w4,mlcp:$4,mldr:C4,mnplus:A4,models:S4,Mopf:T4,mopf:D4,mp:N4,mscr:O4,Mscr:I4,mstpos:L4,Mu:F4,mu:R4,multimap:M4,mumap:q4,nabla:P4,Nacute:B4,nacute:V4,nang:j4,nap:U4,napE:z4,napid:H4,napos:G4,napprox:W4,natural:Q4,naturals:Y4,natur:J4,nbsp:Z4,nbump:X4,nbumpe:K4,ncap:ej,Ncaron:tj,ncaron:nj,Ncedil:rj,ncedil:oj,ncong:ij,ncongdot:sj,ncup:aj,Ncy:cj,ncy:lj,ndash:uj,nearhk:fj,nearr:pj,neArr:dj,nearrow:hj,ne:mj,nedot:vj,NegativeMediumSpace:gj,NegativeThickSpace:yj,NegativeThinSpace:bj,NegativeVeryThinSpace:Ej,nequiv:_j,nesear:kj,nesim:xj,NestedGreaterGreater:wj,NestedLessLess:$j,NewLine:Cj,nexist:Aj,nexists:Sj,Nfr:Tj,nfr:Dj,ngE:Nj,nge:Oj,ngeq:Ij,ngeqq:Lj,ngeqslant:Fj,nges:Rj,nGg:Mj,ngsim:qj,nGt:Pj,ngt:Bj,ngtr:Vj,nGtv:jj,nharr:Uj,nhArr:zj,nhpar:Hj,ni:Gj,nis:Wj,nisd:Qj,niv:Yj,NJcy:Jj,njcy:Zj,nlarr:Xj,nlArr:Kj,nldr:e6,nlE:t6,nle:n6,nleftarrow:r6,nLeftarrow:o6,nleftrightarrow:i6,nLeftrightarrow:s6,nleq:a6,nleqq:c6,nleqslant:l6,nles:u6,nless:f6,nLl:p6,nlsim:d6,nLt:h6,nlt:m6,nltri:v6,nltrie:g6,nLtv:y6,nmid:b6,NoBreak:E6,NonBreakingSpace:_6,nopf:k6,Nopf:x6,Not:w6,not:$6,NotCongruent:C6,NotCupCap:A6,NotDoubleVerticalBar:S6,NotElement:T6,NotEqual:D6,NotEqualTilde:N6,NotExists:O6,NotGreater:I6,NotGreaterEqual:L6,NotGreaterFullEqual:F6,NotGreaterGreater:R6,NotGreaterLess:M6,NotGreaterSlantEqual:q6,NotGreaterTilde:P6,NotHumpDownHump:B6,NotHumpEqual:V6,notin:j6,notindot:U6,notinE:z6,notinva:H6,notinvb:G6,notinvc:W6,NotLeftTriangleBar:Q6,NotLeftTriangle:Y6,NotLeftTriangleEqual:J6,NotLess:Z6,NotLessEqual:X6,NotLessGreater:K6,NotLessLess:eU,NotLessSlantEqual:tU,NotLessTilde:nU,NotNestedGreaterGreater:rU,NotNestedLessLess:oU,notni:iU,notniva:sU,notnivb:aU,notnivc:cU,NotPrecedes:lU,NotPrecedesEqual:uU,NotPrecedesSlantEqual:fU,NotReverseElement:pU,NotRightTriangleBar:dU,NotRightTriangle:hU,NotRightTriangleEqual:mU,NotSquareSubset:vU,NotSquareSubsetEqual:gU,NotSquareSuperset:yU,NotSquareSupersetEqual:bU,NotSubset:EU,NotSubsetEqual:_U,NotSucceeds:kU,NotSucceedsEqual:xU,NotSucceedsSlantEqual:wU,NotSucceedsTilde:$U,NotSuperset:CU,NotSupersetEqual:AU,NotTilde:SU,NotTildeEqual:TU,NotTildeFullEqual:DU,NotTildeTilde:NU,NotVerticalBar:OU,nparallel:IU,npar:LU,nparsl:FU,npart:RU,npolint:MU,npr:qU,nprcue:PU,nprec:BU,npreceq:VU,npre:jU,nrarrc:UU,nrarr:zU,nrArr:HU,nrarrw:GU,nrightarrow:WU,nRightarrow:QU,nrtri:YU,nrtrie:JU,nsc:ZU,nsccue:XU,nsce:KU,Nscr:ez,nscr:tz,nshortmid:nz,nshortparallel:rz,nsim:oz,nsime:iz,nsimeq:sz,nsmid:az,nspar:cz,nsqsube:lz,nsqsupe:uz,nsub:fz,nsubE:pz,nsube:dz,nsubset:hz,nsubseteq:mz,nsubseteqq:vz,nsucc:gz,nsucceq:yz,nsup:bz,nsupE:Ez,nsupe:_z,nsupset:kz,nsupseteq:xz,nsupseteqq:wz,ntgl:$z,Ntilde:Cz,ntilde:Az,ntlg:Sz,ntriangleleft:Tz,ntrianglelefteq:Dz,ntriangleright:Nz,ntrianglerighteq:Oz,Nu:Iz,nu:Lz,num:Fz,numero:Rz,numsp:Mz,nvap:qz,nvdash:Pz,nvDash:Bz,nVdash:Vz,nVDash:jz,nvge:Uz,nvgt:zz,nvHarr:Hz,nvinfin:Gz,nvlArr:Wz,nvle:Qz,nvlt:Yz,nvltrie:Jz,nvrArr:Zz,nvrtrie:Xz,nvsim:Kz,nwarhk:e8,nwarr:t8,nwArr:n8,nwarrow:r8,nwnear:o8,Oacute:i8,oacute:s8,oast:a8,Ocirc:c8,ocirc:l8,ocir:u8,Ocy:f8,ocy:p8,odash:d8,Odblac:h8,odblac:m8,odiv:v8,odot:g8,odsold:y8,OElig:b8,oelig:E8,ofcir:_8,Ofr:k8,ofr:x8,ogon:w8,Ograve:$8,ograve:C8,ogt:A8,ohbar:S8,ohm:T8,oint:D8,olarr:N8,olcir:O8,olcross:I8,oline:L8,olt:F8,Omacr:R8,omacr:M8,Omega:q8,omega:P8,Omicron:B8,omicron:V8,omid:j8,ominus:U8,Oopf:z8,oopf:H8,opar:G8,OpenCurlyDoubleQuote:W8,OpenCurlyQuote:Q8,operp:Y8,oplus:J8,orarr:Z8,Or:X8,or:K8,ord:e7,order:t7,orderof:n7,ordf:r7,ordm:o7,origof:i7,oror:s7,orslope:a7,orv:c7,oS:l7,Oscr:u7,oscr:f7,Oslash:p7,oslash:d7,osol:h7,Otilde:m7,otilde:v7,otimesas:g7,Otimes:y7,otimes:b7,Ouml:E7,ouml:_7,ovbar:k7,OverBar:x7,OverBrace:w7,OverBracket:$7,OverParenthesis:C7,para:A7,parallel:S7,par:T7,parsim:D7,parsl:N7,part:O7,PartialD:I7,Pcy:L7,pcy:F7,percnt:R7,period:M7,permil:q7,perp:P7,pertenk:B7,Pfr:V7,pfr:j7,Phi:U7,phi:z7,phiv:H7,phmmat:G7,phone:W7,Pi:Q7,pi:Y7,pitchfork:J7,piv:Z7,planck:X7,planckh:K7,plankv:eH,plusacir:tH,plusb:nH,pluscir:rH,plus:oH,plusdo:iH,plusdu:sH,pluse:aH,PlusMinus:cH,plusmn:lH,plussim:uH,plustwo:fH,pm:pH,Poincareplane:dH,pointint:hH,popf:mH,Popf:vH,pound:gH,prap:yH,Pr:bH,pr:EH,prcue:_H,precapprox:kH,prec:xH,preccurlyeq:wH,Precedes:$H,PrecedesEqual:CH,PrecedesSlantEqual:AH,PrecedesTilde:SH,preceq:TH,precnapprox:DH,precneqq:NH,precnsim:OH,pre:IH,prE:LH,precsim:FH,prime:RH,Prime:MH,primes:qH,prnap:PH,prnE:BH,prnsim:VH,prod:jH,Product:UH,profalar:zH,profline:HH,profsurf:GH,prop:WH,Proportional:QH,Proportion:YH,propto:JH,prsim:ZH,prurel:XH,Pscr:KH,pscr:eG,Psi:tG,psi:nG,puncsp:rG,Qfr:oG,qfr:iG,qint:sG,qopf:aG,Qopf:cG,qprime:lG,Qscr:uG,qscr:fG,quaternions:pG,quatint:dG,quest:hG,questeq:mG,quot:vG,QUOT:gG,rAarr:yG,race:bG,Racute:EG,racute:_G,radic:kG,raemptyv:xG,rang:wG,Rang:$G,rangd:CG,range:AG,rangle:SG,raquo:TG,rarrap:DG,rarrb:NG,rarrbfs:OG,rarrc:IG,rarr:LG,Rarr:FG,rArr:RG,rarrfs:MG,rarrhk:qG,rarrlp:PG,rarrpl:BG,rarrsim:VG,Rarrtl:jG,rarrtl:UG,rarrw:zG,ratail:HG,rAtail:GG,ratio:WG,rationals:QG,rbarr:YG,rBarr:JG,RBarr:ZG,rbbrk:XG,rbrace:KG,rbrack:eW,rbrke:tW,rbrksld:nW,rbrkslu:rW,Rcaron:oW,rcaron:iW,Rcedil:sW,rcedil:aW,rceil:cW,rcub:lW,Rcy:uW,rcy:fW,rdca:pW,rdldhar:dW,rdquo:hW,rdquor:mW,rdsh:vW,real:gW,realine:yW,realpart:bW,reals:EW,Re:_W,rect:kW,reg:xW,REG:wW,ReverseElement:$W,ReverseEquilibrium:CW,ReverseUpEquilibrium:AW,rfisht:SW,rfloor:TW,rfr:DW,Rfr:NW,rHar:OW,rhard:IW,rharu:LW,rharul:FW,Rho:RW,rho:MW,rhov:qW,RightAngleBracket:PW,RightArrowBar:BW,rightarrow:VW,RightArrow:jW,Rightarrow:UW,RightArrowLeftArrow:zW,rightarrowtail:HW,RightCeiling:GW,RightDoubleBracket:WW,RightDownTeeVector:QW,RightDownVectorBar:YW,RightDownVector:JW,RightFloor:ZW,rightharpoondown:XW,rightharpoonup:KW,rightleftarrows:eQ,rightleftharpoons:tQ,rightrightarrows:nQ,rightsquigarrow:rQ,RightTeeArrow:oQ,RightTee:iQ,RightTeeVector:sQ,rightthreetimes:aQ,RightTriangleBar:cQ,RightTriangle:lQ,RightTriangleEqual:uQ,RightUpDownVector:fQ,RightUpTeeVector:pQ,RightUpVectorBar:dQ,RightUpVector:hQ,RightVectorBar:mQ,RightVector:vQ,ring:gQ,risingdotseq:yQ,rlarr:bQ,rlhar:EQ,rlm:_Q,rmoustache:kQ,rmoust:xQ,rnmid:wQ,roang:$Q,roarr:CQ,robrk:AQ,ropar:SQ,ropf:TQ,Ropf:DQ,roplus:NQ,rotimes:OQ,RoundImplies:IQ,rpar:LQ,rpargt:FQ,rppolint:RQ,rrarr:MQ,Rrightarrow:qQ,rsaquo:PQ,rscr:BQ,Rscr:VQ,rsh:jQ,Rsh:UQ,rsqb:zQ,rsquo:HQ,rsquor:GQ,rthree:WQ,rtimes:QQ,rtri:YQ,rtrie:JQ,rtrif:ZQ,rtriltri:XQ,RuleDelayed:KQ,ruluhar:eY,rx:tY,Sacute:nY,sacute:rY,sbquo:oY,scap:iY,Scaron:sY,scaron:aY,Sc:cY,sc:lY,sccue:uY,sce:fY,scE:pY,Scedil:dY,scedil:hY,Scirc:mY,scirc:vY,scnap:gY,scnE:yY,scnsim:bY,scpolint:EY,scsim:_Y,Scy:kY,scy:xY,sdotb:wY,sdot:$Y,sdote:CY,searhk:AY,searr:SY,seArr:TY,searrow:DY,sect:NY,semi:OY,seswar:IY,setminus:LY,setmn:FY,sext:RY,Sfr:MY,sfr:qY,sfrown:PY,sharp:BY,SHCHcy:VY,shchcy:jY,SHcy:UY,shcy:zY,ShortDownArrow:HY,ShortLeftArrow:GY,shortmid:WY,shortparallel:QY,ShortRightArrow:YY,ShortUpArrow:JY,shy:ZY,Sigma:XY,sigma:KY,sigmaf:eJ,sigmav:tJ,sim:nJ,simdot:rJ,sime:oJ,simeq:iJ,simg:sJ,simgE:aJ,siml:cJ,simlE:lJ,simne:uJ,simplus:fJ,simrarr:pJ,slarr:dJ,SmallCircle:hJ,smallsetminus:mJ,smashp:vJ,smeparsl:gJ,smid:yJ,smile:bJ,smt:EJ,smte:_J,smtes:kJ,SOFTcy:xJ,softcy:wJ,solbar:$J,solb:CJ,sol:AJ,Sopf:SJ,sopf:TJ,spades:DJ,spadesuit:NJ,spar:OJ,sqcap:IJ,sqcaps:LJ,sqcup:FJ,sqcups:RJ,Sqrt:MJ,sqsub:qJ,sqsube:PJ,sqsubset:BJ,sqsubseteq:VJ,sqsup:jJ,sqsupe:UJ,sqsupset:zJ,sqsupseteq:HJ,square:GJ,Square:WJ,SquareIntersection:QJ,SquareSubset:YJ,SquareSubsetEqual:JJ,SquareSuperset:ZJ,SquareSupersetEqual:XJ,SquareUnion:KJ,squarf:eZ,squ:tZ,squf:nZ,srarr:rZ,Sscr:oZ,sscr:iZ,ssetmn:sZ,ssmile:aZ,sstarf:cZ,Star:lZ,star:uZ,starf:fZ,straightepsilon:pZ,straightphi:dZ,strns:hZ,sub:mZ,Sub:vZ,subdot:gZ,subE:yZ,sube:bZ,subedot:EZ,submult:_Z,subnE:kZ,subne:xZ,subplus:wZ,subrarr:$Z,subset:CZ,Subset:AZ,subseteq:SZ,subseteqq:TZ,SubsetEqual:DZ,subsetneq:NZ,subsetneqq:OZ,subsim:IZ,subsub:LZ,subsup:FZ,succapprox:RZ,succ:MZ,succcurlyeq:qZ,Succeeds:PZ,SucceedsEqual:BZ,SucceedsSlantEqual:VZ,SucceedsTilde:jZ,succeq:UZ,succnapprox:zZ,succneqq:HZ,succnsim:GZ,succsim:WZ,SuchThat:QZ,sum:YZ,Sum:JZ,sung:ZZ,sup1:XZ,sup2:KZ,sup3:eX,sup:tX,Sup:nX,supdot:rX,supdsub:oX,supE:iX,supe:sX,supedot:aX,Superset:cX,SupersetEqual:lX,suphsol:uX,suphsub:fX,suplarr:pX,supmult:dX,supnE:hX,supne:mX,supplus:vX,supset:gX,Supset:yX,supseteq:bX,supseteqq:EX,supsetneq:_X,supsetneqq:kX,supsim:xX,supsub:wX,supsup:$X,swarhk:CX,swarr:AX,swArr:SX,swarrow:TX,swnwar:DX,szlig:NX,Tab:OX,target:IX,Tau:LX,tau:FX,tbrk:RX,Tcaron:MX,tcaron:qX,Tcedil:PX,tcedil:BX,Tcy:VX,tcy:jX,tdot:UX,telrec:zX,Tfr:HX,tfr:GX,there4:WX,therefore:QX,Therefore:YX,Theta:JX,theta:ZX,thetasym:XX,thetav:KX,thickapprox:eK,thicksim:tK,ThickSpace:nK,ThinSpace:rK,thinsp:oK,thkap:iK,thksim:sK,THORN:aK,thorn:cK,tilde:lK,Tilde:uK,TildeEqual:fK,TildeFullEqual:pK,TildeTilde:dK,timesbar:hK,timesb:mK,times:vK,timesd:gK,tint:yK,toea:bK,topbot:EK,topcir:_K,top:kK,Topf:xK,topf:wK,topfork:$K,tosa:CK,tprime:AK,trade:SK,TRADE:TK,triangle:DK,triangledown:NK,triangleleft:OK,trianglelefteq:IK,triangleq:LK,triangleright:FK,trianglerighteq:RK,tridot:MK,trie:qK,triminus:PK,TripleDot:BK,triplus:VK,trisb:jK,tritime:UK,trpezium:zK,Tscr:HK,tscr:GK,TScy:WK,tscy:QK,TSHcy:YK,tshcy:JK,Tstrok:ZK,tstrok:XK,twixt:KK,twoheadleftarrow:eee,twoheadrightarrow:tee,Uacute:nee,uacute:ree,uarr:oee,Uarr:iee,uArr:see,Uarrocir:aee,Ubrcy:cee,ubrcy:lee,Ubreve:uee,ubreve:fee,Ucirc:pee,ucirc:dee,Ucy:hee,ucy:mee,udarr:vee,Udblac:gee,udblac:yee,udhar:bee,ufisht:Eee,Ufr:_ee,ufr:kee,Ugrave:xee,ugrave:wee,uHar:$ee,uharl:Cee,uharr:Aee,uhblk:See,ulcorn:Tee,ulcorner:Dee,ulcrop:Nee,ultri:Oee,Umacr:Iee,umacr:Lee,uml:Fee,UnderBar:Ree,UnderBrace:Mee,UnderBracket:qee,UnderParenthesis:Pee,Union:Bee,UnionPlus:Vee,Uogon:jee,uogon:Uee,Uopf:zee,uopf:Hee,UpArrowBar:Gee,uparrow:Wee,UpArrow:Qee,Uparrow:Yee,UpArrowDownArrow:Jee,updownarrow:Zee,UpDownArrow:Xee,Updownarrow:Kee,UpEquilibrium:ete,upharpoonleft:tte,upharpoonright:nte,uplus:rte,UpperLeftArrow:ote,UpperRightArrow:ite,upsi:ste,Upsi:ate,upsih:cte,Upsilon:lte,upsilon:ute,UpTeeArrow:fte,UpTee:pte,upuparrows:dte,urcorn:hte,urcorner:mte,urcrop:vte,Uring:gte,uring:yte,urtri:bte,Uscr:Ete,uscr:_te,utdot:kte,Utilde:xte,utilde:wte,utri:$te,utrif:Cte,uuarr:Ate,Uuml:Ste,uuml:Tte,uwangle:Dte,vangrt:Nte,varepsilon:Ote,varkappa:Ite,varnothing:Lte,varphi:Fte,varpi:Rte,varpropto:Mte,varr:qte,vArr:Pte,varrho:Bte,varsigma:Vte,varsubsetneq:jte,varsubsetneqq:Ute,varsupsetneq:zte,varsupsetneqq:Hte,vartheta:Gte,vartriangleleft:Wte,vartriangleright:Qte,vBar:Yte,Vbar:Jte,vBarv:Zte,Vcy:Xte,vcy:Kte,vdash:ene,vDash:tne,Vdash:nne,VDash:rne,Vdashl:one,veebar:ine,vee:sne,Vee:ane,veeeq:cne,vellip:lne,verbar:une,Verbar:fne,vert:pne,Vert:dne,VerticalBar:hne,VerticalLine:mne,VerticalSeparator:vne,VerticalTilde:gne,VeryThinSpace:yne,Vfr:bne,vfr:Ene,vltri:_ne,vnsub:kne,vnsup:xne,Vopf:wne,vopf:$ne,vprop:Cne,vrtri:Ane,Vscr:Sne,vscr:Tne,vsubnE:Dne,vsubne:Nne,vsupnE:One,vsupne:Ine,Vvdash:Lne,vzigzag:Fne,Wcirc:Rne,wcirc:Mne,wedbar:qne,wedge:Pne,Wedge:Bne,wedgeq:Vne,weierp:jne,Wfr:Une,wfr:zne,Wopf:Hne,wopf:Gne,wp:Wne,wr:Qne,wreath:Yne,Wscr:Jne,wscr:Zne,xcap:Xne,xcirc:Kne,xcup:ere,xdtri:tre,Xfr:nre,xfr:rre,xharr:ore,xhArr:ire,Xi:sre,xi:are,xlarr:cre,xlArr:lre,xmap:ure,xnis:fre,xodot:pre,Xopf:dre,xopf:hre,xoplus:mre,xotime:vre,xrarr:gre,xrArr:yre,Xscr:bre,xscr:Ere,xsqcup:_re,xuplus:kre,xutri:xre,xvee:wre,xwedge:$re,Yacute:Cre,yacute:Are,YAcy:Sre,yacy:Tre,Ycirc:Dre,ycirc:Nre,Ycy:Ore,ycy:Ire,yen:Lre,Yfr:Fre,yfr:Rre,YIcy:Mre,yicy:qre,Yopf:Pre,yopf:Bre,Yscr:Vre,yscr:jre,YUcy:Ure,yucy:zre,yuml:Hre,Yuml:Gre,Zacute:Wre,zacute:Qre,Zcaron:Yre,zcaron:Jre,Zcy:Zre,zcy:Xre,Zdot:Kre,zdot:eoe,zeetrf:toe,ZeroWidthSpace:noe,Zeta:roe,zeta:ooe,zfr:ioe,Zfr:soe,ZHcy:aoe,zhcy:coe,zigrarr:loe,zopf:uoe,Zopf:foe,Zscr:poe,zscr:doe,zwj:hoe,zwnj:moe},Pb=voe,Bd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,us={},vg={};function Bb(t){var e,n,o=vg[t];if(o)return o;for(o=vg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}$(Bb,"getEncodeCache");function Pa(t,e,n){var o,i,a,l,f,d="";for(typeof e!="string"&&(n=e,e=Pa.defaultChars),typeof n>"u"&&(n=!0),f=Bb(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(l=t.charCodeAt(o+1),l>=56320&&l<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}$(Pa,"encode$1");Pa.defaultChars=";/?:@&=+$,-_.!~*'()#";Pa.componentChars="-_.!~*'()";var goe=Pa,gg={};function Vb(t){var e,n,o=gg[t];if(o)return o;for(o=gg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}$(Vb,"getDecodeCache");function Ba(t,e){var n;return typeof e!="string"&&(e=Ba.defaultChars),n=Vb(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,l,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(l=parseInt(o.slice(i+1,i+3),16),l<128){y+=n[l];continue}if((l&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=l<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((l&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=l<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((l&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=l<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}$(Ba,"decode$1");Ba.defaultChars=";/?:@&=+$,#";Ba.componentChars="";var yoe=Ba,boe=$(function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n},"format");function ba(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}$(ba,"Url");var Eoe=/^([a-z0-9.+-]+:)/i,_oe=/:[0-9]*$/,koe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xoe=["<",">",'"',"`"," ","\r",`
185
- `," "],woe=["{","}","|","\\","^","`"].concat(xoe),$oe=["'"].concat(woe),yg=["%","/","?",";","#"].concat($oe),bg=["/","?","#"],Coe=255,Eg=/^[+a-z0-9A-Z_-]{0,63}$/,Aoe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_g={javascript:!0,"javascript:":!0},kg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jb(t,e){if(t&&t instanceof ba)return t;var n=new ba;return n.parse(t,e),n}$(jb,"urlParse");ba.prototype.parse=function(t,e){var n,o,i,a,l,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=koe.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=Eoe.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l=f.substr(0,2)==="//",l&&!(h&&_g[h])&&(f=f.substr(2),this.slashes=!0)),!_g[h]&&(l||h&&!kg[h])){var v=-1;for(n=0;n<bg.length;n++)a=f.indexOf(bg[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<yg.length;n++)a=f.indexOf(yg[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(Eg)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(Eg)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match(Aoe);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>Coe&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),kg[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ba.prototype.parseHost=function(t){var e=_oe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Soe=jb;us.encode=goe;us.decode=yoe;us.format=boe;us.parse=Soe;var fs={},Ub=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zb=/[\0-\x1F\x7F-\x9F]/,Toe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Hb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;fs.Any=Ub;fs.Cc=zb;fs.Cf=Toe;fs.P=Bd;fs.Z=Hb;(function(t){function e(F){return Object.prototype.toString.call(F)}$(e,"_class");function n(F){return e(F)==="[object String]"}$(n,"isString");var o=Object.prototype.hasOwnProperty;function i(F,x){return o.call(F,x)}$(i,"has");function a(F){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){F[J]=j[J]})}}),F}$(a,"assign");function l(F,x,j){return[].concat(F.slice(0,x),j,F.slice(x+1))}$(l,"arrayReplaceAt");function f(F){return!(F>=55296&&F<=57343||F>=64976&&F<=65007||(F&65535)===65535||(F&65535)===65534||F>=0&&F<=8||F===11||F>=14&&F<=31||F>=127&&F<=159||F>1114111)}$(f,"isValidEntityCode");function d(F){if(F>65535){F-=65536;var x=55296+(F>>10),j=56320+(F&1023);return String.fromCharCode(x,j)}return String.fromCharCode(F)}$(d,"fromCodePoint");var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=Pb;function C(F,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):F}$(C,"replaceEntityPattern");function S(F){return F.indexOf("\\")<0?F:F.replace(h,"$1")}$(S,"unescapeMd");function N(F){return F.indexOf("\\")<0&&F.indexOf("&")<0?F:F.replace(y,function(x,j,J){return j||C(x,J)})}$(N,"unescapeAll");var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function V(F){return O[F]}$(V,"replaceUnsafeChar");function Y(F){return D.test(F)?F.replace(T,V):F}$(Y,"escapeHtml");var P=/[.?*+^$[\]\\(){}|-]/g;function U(F){return F.replace(P,"\\$&")}$(U,"escapeRE");function K(F){switch(F){case 9:case 32:return!0}return!1}$(K,"isSpace");function G(F){if(F>=8192&&F<=8202)return!0;switch(F){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}$(G,"isWhiteSpace");var Q=Bd;function re(F){return Q.test(F)}$(re,"isPunctChar");function _e(F){switch(F){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}$(_e,"isMdAsciiPunct");function H(F){return F=F.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(F=F.replace(/ẞ/g,"ß")),F.toLowerCase().toUpperCase()}$(H,"normalizeReference"),t.lib={},t.lib.mdurl=us,t.lib.ucmicro=fs,t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=l,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=re,t.escapeRE=U,t.normalizeReference=H})(et);var eu={},Doe=$(function(e,n,o){var i,a,l,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(l=e.src.charCodeAt(e.pos),l===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),l===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},"parseLinkLabel"),xg=et.unescapeAll,Noe=$(function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=xg(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=xg(e.slice(f,n)),d.lines=l,d.pos=n,d.ok=!0),d},"parseLinkDestination"),Ooe=et.unescapeAll,Ioe=$(function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=l,d.str=Ooe(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?l++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&l++),n++}return d},"parseLinkTitle");eu.parseLinkLabel=Doe;eu.parseLinkDestination=Noe;eu.parseLinkTitle=Ioe;var Loe=et.assign,Foe=et.unescapeAll,Ko=et.escapeHtml,wr={};wr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+Ko(t[e].content)+"</code>"};wr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+Ko(t[e].content)+`</code></pre>
186
- `};wr.fence=function(t,e,n,o,i){var a=t[e],l=a.info?Foe(a.info).trim():"",f="",d="",h,v,y,g,E;return l&&(y=l.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||Ko(a.content):h=Ko(a.content),h.indexOf("<pre")===0?h+`
183
+ */var Z$=/["'&<>]/,X$=qb;function qb(t){var e=""+t,n=Z$.exec(e);if(!n)return e;var o,i="",a=0,l=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}l!==a&&(i+=e.substring(l,a)),l=a+1,i+=o}return l!==a?i+e.substring(l,a):i}$(qb,"escapeHtml$1");var et={};const K$="Á",eC="á",tC="Ă",nC="ă",rC="∾",oC="∿",iC="∾̳",sC="Â",aC="â",cC="´",lC="А",uC="а",fC="Æ",pC="æ",dC="⁡",hC="𝔄",mC="𝔞",vC="À",gC="à",yC="ℵ",bC="ℵ",EC="Α",_C="α",kC="Ā",xC="ā",wC="⨿",$C="&",CC="&",AC="⩕",SC="⩓",TC="∧",DC="⩜",NC="⩘",OC="⩚",IC="∠",FC="⦤",LC="∠",RC="⦨",MC="⦩",qC="⦪",PC="⦫",BC="⦬",VC="⦭",jC="⦮",UC="⦯",zC="∡",HC="∟",GC="⊾",WC="⦝",QC="∢",YC="Å",JC="⍼",ZC="Ą",XC="ą",KC="𝔸",eA="𝕒",tA="⩯",nA="≈",rA="⩰",oA="≊",iA="≋",sA="'",aA="⁡",cA="≈",lA="≊",uA="Å",fA="å",pA="𝒜",dA="𝒶",hA="≔",mA="*",vA="≈",gA="≍",yA="Ã",bA="ã",EA="Ä",_A="ä",kA="∳",xA="⨑",wA="≌",$A="϶",CA="‵",AA="∽",SA="⋍",TA="∖",DA="⫧",NA="⊽",OA="⌅",IA="⌆",FA="⌅",LA="⎵",RA="⎶",MA="≌",qA="Б",PA="б",BA="„",VA="∵",jA="∵",UA="∵",zA="⦰",HA="϶",GA="ℬ",WA="ℬ",QA="Β",YA="β",JA="ℶ",ZA="≬",XA="𝔅",KA="𝔟",eS="⋂",tS="◯",nS="⋃",rS="⨀",oS="⨁",iS="⨂",sS="⨆",aS="★",cS="▽",lS="△",uS="⨄",fS="⋁",pS="⋀",dS="⤍",hS="⧫",mS="▪",vS="▴",gS="▾",yS="◂",bS="▸",ES="␣",_S="▒",kS="░",xS="▓",wS="█",$S="=⃥",CS="≡⃥",AS="⫭",SS="⌐",TS="𝔹",DS="𝕓",NS="⊥",OS="⊥",IS="⋈",FS="⧉",LS="┐",RS="╕",MS="╖",qS="╗",PS="┌",BS="╒",VS="╓",jS="╔",US="─",zS="═",HS="┬",GS="╤",WS="╥",QS="╦",YS="┴",JS="╧",ZS="╨",XS="╩",KS="⊟",eT="⊞",tT="⊠",nT="┘",rT="╛",oT="╜",iT="╝",sT="└",aT="╘",cT="╙",lT="╚",uT="│",fT="║",pT="┼",dT="╪",hT="╫",mT="╬",vT="┤",gT="╡",yT="╢",bT="╣",ET="├",_T="╞",kT="╟",xT="╠",wT="‵",$T="˘",CT="˘",AT="¦",ST="𝒷",TT="ℬ",DT="⁏",NT="∽",OT="⋍",IT="⧅",FT="\\",LT="⟈",RT="•",MT="•",qT="≎",PT="⪮",BT="≏",VT="≎",jT="≏",UT="Ć",zT="ć",HT="⩄",GT="⩉",WT="⩋",QT="∩",YT="⋒",JT="⩇",ZT="⩀",XT="ⅅ",KT="∩︀",eD="⁁",tD="ˇ",nD="ℭ",rD="⩍",oD="Č",iD="č",sD="Ç",aD="ç",cD="Ĉ",lD="ĉ",uD="∰",fD="⩌",pD="⩐",dD="Ċ",hD="ċ",mD="¸",vD="¸",gD="⦲",yD="¢",bD="·",ED="·",_D="𝔠",kD="ℭ",xD="Ч",wD="ч",$D="✓",CD="✓",AD="Χ",SD="χ",TD="ˆ",DD="≗",ND="↺",OD="↻",ID="⊛",FD="⊚",LD="⊝",RD="⊙",MD="®",qD="Ⓢ",PD="⊖",BD="⊕",VD="⊗",jD="○",UD="⧃",zD="≗",HD="⨐",GD="⫯",WD="⧂",QD="∲",YD="”",JD="’",ZD="♣",XD="♣",KD=":",eN="∷",tN="⩴",nN="≔",rN="≔",oN=",",iN="@",sN="∁",aN="∘",cN="∁",lN="ℂ",uN="≅",fN="⩭",pN="≡",dN="∮",hN="∯",mN="∮",vN="𝕔",gN="ℂ",yN="∐",bN="∐",EN="©",_N="©",kN="℗",xN="∳",wN="↵",$N="✗",CN="⨯",AN="𝒞",SN="𝒸",TN="⫏",DN="⫑",NN="⫐",ON="⫒",IN="⋯",FN="⤸",LN="⤵",RN="⋞",MN="⋟",qN="↶",PN="⤽",BN="⩈",VN="⩆",jN="≍",UN="∪",zN="⋓",HN="⩊",GN="⊍",WN="⩅",QN="∪︀",YN="↷",JN="⤼",ZN="⋞",XN="⋟",KN="⋎",eO="⋏",tO="¤",nO="↶",rO="↷",oO="⋎",iO="⋏",sO="∲",aO="∱",cO="⌭",lO="†",uO="‡",fO="ℸ",pO="↓",dO="↡",hO="⇓",mO="‐",vO="⫤",gO="⊣",yO="⤏",bO="˝",EO="Ď",_O="ď",kO="Д",xO="д",wO="‡",$O="⇊",CO="ⅅ",AO="ⅆ",SO="⤑",TO="⩷",DO="°",NO="∇",OO="Δ",IO="δ",FO="⦱",LO="⥿",RO="𝔇",MO="𝔡",qO="⥥",PO="⇃",BO="⇂",VO="´",jO="˙",UO="˝",zO="`",HO="˜",GO="⋄",WO="⋄",QO="⋄",YO="♦",JO="♦",ZO="¨",XO="ⅆ",KO="ϝ",eI="⋲",tI="÷",nI="÷",rI="⋇",oI="⋇",iI="Ђ",sI="ђ",aI="⌞",cI="⌍",lI="$",uI="𝔻",fI="𝕕",pI="¨",dI="˙",hI="⃜",mI="≐",vI="≑",gI="≐",yI="∸",bI="∔",EI="⊡",_I="⌆",kI="∯",xI="¨",wI="⇓",$I="⇐",CI="⇔",AI="⫤",SI="⟸",TI="⟺",DI="⟹",NI="⇒",OI="⊨",II="⇑",FI="⇕",LI="∥",RI="⤓",MI="↓",qI="↓",PI="⇓",BI="⇵",VI="̑",jI="⇊",UI="⇃",zI="⇂",HI="⥐",GI="⥞",WI="⥖",QI="↽",YI="⥟",JI="⥗",ZI="⇁",XI="↧",KI="⊤",eF="⤐",tF="⌟",nF="⌌",rF="𝒟",oF="𝒹",iF="Ѕ",sF="ѕ",aF="⧶",cF="Đ",lF="đ",uF="⋱",fF="▿",pF="▾",dF="⇵",hF="⥯",mF="⦦",vF="Џ",gF="џ",yF="⟿",bF="É",EF="é",_F="⩮",kF="Ě",xF="ě",wF="Ê",$F="ê",CF="≖",AF="≕",SF="Э",TF="э",DF="⩷",NF="Ė",OF="ė",IF="≑",FF="ⅇ",LF="≒",RF="𝔈",MF="𝔢",qF="⪚",PF="È",BF="è",VF="⪖",jF="⪘",UF="⪙",zF="∈",HF="⏧",GF="ℓ",WF="⪕",QF="⪗",YF="Ē",JF="ē",ZF="∅",XF="∅",KF="◻",eL="∅",tL="▫",nL=" ",rL=" ",oL=" ",iL="Ŋ",sL="ŋ",aL=" ",cL="Ę",lL="ę",uL="𝔼",fL="𝕖",pL="⋕",dL="⧣",hL="⩱",mL="ε",vL="Ε",gL="ε",yL="ϵ",bL="≖",EL="≕",_L="≂",kL="⪖",xL="⪕",wL="⩵",$L="=",CL="≂",AL="≟",SL="⇌",TL="≡",DL="⩸",NL="⧥",OL="⥱",IL="≓",FL="ℯ",LL="ℰ",RL="≐",ML="⩳",qL="≂",PL="Η",BL="η",VL="Ð",jL="ð",UL="Ë",zL="ë",HL="€",GL="!",WL="∃",QL="∃",YL="ℰ",JL="ⅇ",ZL="ⅇ",XL="≒",KL="Ф",eR="ф",tR="♀",nR="ffi",rR="ff",oR="ffl",iR="𝔉",sR="𝔣",aR="fi",cR="◼",lR="▪",uR="fj",fR="♭",pR="fl",dR="▱",hR="ƒ",mR="𝔽",vR="𝕗",gR="∀",yR="∀",bR="⋔",ER="⫙",_R="ℱ",kR="⨍",xR="½",wR="⅓",$R="¼",CR="⅕",AR="⅙",SR="⅛",TR="⅔",DR="⅖",NR="¾",OR="⅗",IR="⅜",FR="⅘",LR="⅚",RR="⅝",MR="⅞",qR="⁄",PR="⌢",BR="𝒻",VR="ℱ",jR="ǵ",UR="Γ",zR="γ",HR="Ϝ",GR="ϝ",WR="⪆",QR="Ğ",YR="ğ",JR="Ģ",ZR="Ĝ",XR="ĝ",KR="Г",eM="г",tM="Ġ",nM="ġ",rM="≥",oM="≧",iM="⪌",sM="⋛",aM="≥",cM="≧",lM="⩾",uM="⪩",fM="⩾",pM="⪀",dM="⪂",hM="⪄",mM="⋛︀",vM="⪔",gM="𝔊",yM="𝔤",bM="≫",EM="⋙",_M="⋙",kM="ℷ",xM="Ѓ",wM="ѓ",$M="⪥",CM="≷",AM="⪒",SM="⪤",TM="⪊",DM="⪊",NM="⪈",OM="≩",IM="⪈",FM="≩",LM="⋧",RM="𝔾",MM="𝕘",qM="`",PM="≥",BM="⋛",VM="≧",jM="⪢",UM="≷",zM="⩾",HM="≳",GM="𝒢",WM="ℊ",QM="≳",YM="⪎",JM="⪐",ZM="⪧",XM="⩺",KM=">",eq=">",tq="≫",nq="⋗",rq="⦕",oq="⩼",iq="⪆",sq="⥸",aq="⋗",cq="⋛",lq="⪌",uq="≷",fq="≳",pq="≩︀",dq="≩︀",hq="ˇ",mq=" ",vq="½",gq="ℋ",yq="Ъ",bq="ъ",Eq="⥈",_q="↔",kq="⇔",xq="↭",wq="^",$q="ℏ",Cq="Ĥ",Aq="ĥ",Sq="♥",Tq="♥",Dq="…",Nq="⊹",Oq="𝔥",Iq="ℌ",Fq="ℋ",Lq="⤥",Rq="⤦",Mq="⇿",qq="∻",Pq="↩",Bq="↪",Vq="𝕙",jq="ℍ",Uq="―",zq="─",Hq="𝒽",Gq="ℋ",Wq="ℏ",Qq="Ħ",Yq="ħ",Jq="≎",Zq="≏",Xq="⁃",Kq="‐",eP="Í",tP="í",nP="⁣",rP="Î",oP="î",iP="И",sP="и",aP="İ",cP="Е",lP="е",uP="¡",fP="⇔",pP="𝔦",dP="ℑ",hP="Ì",mP="ì",vP="ⅈ",gP="⨌",yP="∭",bP="⧜",EP="℩",_P="IJ",kP="ij",xP="Ī",wP="ī",$P="ℑ",CP="ⅈ",AP="ℐ",SP="ℑ",TP="ı",DP="ℑ",NP="⊷",OP="Ƶ",IP="⇒",FP="℅",LP="∞",RP="⧝",MP="ı",qP="⊺",PP="∫",BP="∬",VP="ℤ",jP="∫",UP="⊺",zP="⋂",HP="⨗",GP="⨼",WP="⁣",QP="⁢",YP="Ё",JP="ё",ZP="Į",XP="į",KP="𝕀",e3="𝕚",t3="Ι",n3="ι",r3="⨼",o3="¿",i3="𝒾",s3="ℐ",a3="∈",c3="⋵",l3="⋹",u3="⋴",f3="⋳",p3="∈",d3="⁢",h3="Ĩ",m3="ĩ",v3="І",g3="і",y3="Ï",b3="ï",E3="Ĵ",_3="ĵ",k3="Й",x3="й",w3="𝔍",$3="𝔧",C3="ȷ",A3="𝕁",S3="𝕛",T3="𝒥",D3="𝒿",N3="Ј",O3="ј",I3="Є",F3="є",L3="Κ",R3="κ",M3="ϰ",q3="Ķ",P3="ķ",B3="К",V3="к",j3="𝔎",U3="𝔨",z3="ĸ",H3="Х",G3="х",W3="Ќ",Q3="ќ",Y3="𝕂",J3="𝕜",Z3="𝒦",X3="𝓀",K3="⇚",eB="Ĺ",tB="ĺ",nB="⦴",rB="ℒ",oB="Λ",iB="λ",sB="⟨",aB="⟪",cB="⦑",lB="⟨",uB="⪅",fB="ℒ",pB="«",dB="⇤",hB="⤟",mB="←",vB="↞",gB="⇐",yB="⤝",bB="↩",EB="↫",_B="⤹",kB="⥳",xB="↢",wB="⤙",$B="⤛",CB="⪫",AB="⪭",SB="⪭︀",TB="⤌",DB="⤎",NB="❲",OB="{",IB="[",FB="⦋",LB="⦏",RB="⦍",MB="Ľ",qB="ľ",PB="Ļ",BB="ļ",VB="⌈",jB="{",UB="Л",zB="л",HB="⤶",GB="“",WB="„",QB="⥧",YB="⥋",JB="↲",ZB="≤",XB="≦",KB="⟨",e5="⇤",t5="←",n5="←",r5="⇐",o5="⇆",i5="↢",s5="⌈",a5="⟦",c5="⥡",l5="⥙",u5="⇃",f5="⌊",p5="↽",d5="↼",h5="⇇",m5="↔",v5="↔",g5="⇔",y5="⇆",b5="⇋",E5="↭",_5="⥎",k5="↤",x5="⊣",w5="⥚",$5="⋋",C5="⧏",A5="⊲",S5="⊴",T5="⥑",D5="⥠",N5="⥘",O5="↿",I5="⥒",F5="↼",L5="⪋",R5="⋚",M5="≤",q5="≦",P5="⩽",B5="⪨",V5="⩽",j5="⩿",U5="⪁",z5="⪃",H5="⋚︀",G5="⪓",W5="⪅",Q5="⋖",Y5="⋚",J5="⪋",Z5="⋚",X5="≦",K5="≶",eV="≶",tV="⪡",nV="≲",rV="⩽",oV="≲",iV="⥼",sV="⌊",aV="𝔏",cV="𝔩",lV="≶",uV="⪑",fV="⥢",pV="↽",dV="↼",hV="⥪",mV="▄",vV="Љ",gV="љ",yV="⇇",bV="≪",EV="⋘",_V="⌞",kV="⇚",xV="⥫",wV="◺",$V="Ŀ",CV="ŀ",AV="⎰",SV="⎰",TV="⪉",DV="⪉",NV="⪇",OV="≨",IV="⪇",FV="≨",LV="⋦",RV="⟬",MV="⇽",qV="⟦",PV="⟵",BV="⟵",VV="⟸",jV="⟷",UV="⟷",zV="⟺",HV="⟼",GV="⟶",WV="⟶",QV="⟹",YV="↫",JV="↬",ZV="⦅",XV="𝕃",KV="𝕝",e9="⨭",t9="⨴",n9="∗",r9="_",o9="↙",i9="↘",s9="◊",a9="◊",c9="⧫",l9="(",u9="⦓",f9="⇆",p9="⌟",d9="⇋",h9="⥭",m9="‎",v9="⊿",g9="‹",y9="𝓁",b9="ℒ",E9="↰",_9="↰",k9="≲",x9="⪍",w9="⪏",$9="[",C9="‘",A9="‚",S9="Ł",T9="ł",D9="⪦",N9="⩹",O9="<",I9="<",F9="≪",L9="⋖",R9="⋋",M9="⋉",q9="⥶",P9="⩻",B9="◃",V9="⊴",j9="◂",U9="⦖",z9="⥊",H9="⥦",G9="≨︀",W9="≨︀",Q9="¯",Y9="♂",J9="✠",Z9="✠",X9="↦",K9="↦",e4="↧",t4="↤",n4="↥",r4="▮",o4="⨩",i4="М",s4="м",a4="—",c4="∺",l4="∡",u4=" ",f4="ℳ",p4="𝔐",d4="𝔪",h4="℧",m4="µ",v4="*",g4="⫰",y4="∣",b4="·",E4="⊟",_4="−",k4="∸",x4="⨪",w4="∓",$4="⫛",C4="…",A4="∓",S4="⊧",T4="𝕄",D4="𝕞",N4="∓",O4="𝓂",I4="ℳ",F4="∾",L4="Μ",R4="μ",M4="⊸",q4="⊸",P4="∇",B4="Ń",V4="ń",j4="∠⃒",U4="≉",z4="⩰̸",H4="≋̸",G4="ʼn",W4="≉",Q4="♮",Y4="ℕ",J4="♮",Z4=" ",X4="≎̸",K4="≏̸",ej="⩃",tj="Ň",nj="ň",rj="Ņ",oj="ņ",ij="≇",sj="⩭̸",aj="⩂",cj="Н",lj="н",uj="–",fj="⤤",pj="↗",dj="⇗",hj="↗",mj="≠",vj="≐̸",gj="​",yj="​",bj="​",Ej="​",_j="≢",kj="⤨",xj="≂̸",wj="≫",$j="≪",Cj=`
184
+ `,Aj="∄",Sj="∄",Tj="𝔑",Dj="𝔫",Nj="≧̸",Oj="≱",Ij="≱",Fj="≧̸",Lj="⩾̸",Rj="⩾̸",Mj="⋙̸",qj="≵",Pj="≫⃒",Bj="≯",Vj="≯",jj="≫̸",Uj="↮",zj="⇎",Hj="⫲",Gj="∋",Wj="⋼",Qj="⋺",Yj="∋",Jj="Њ",Zj="њ",Xj="↚",Kj="⇍",e6="‥",t6="≦̸",n6="≰",r6="↚",o6="⇍",i6="↮",s6="⇎",a6="≰",c6="≦̸",l6="⩽̸",u6="⩽̸",f6="≮",p6="⋘̸",d6="≴",h6="≪⃒",m6="≮",v6="⋪",g6="⋬",y6="≪̸",b6="∤",E6="⁠",_6=" ",k6="𝕟",x6="ℕ",w6="⫬",$6="¬",C6="≢",A6="≭",S6="∦",T6="∉",D6="≠",N6="≂̸",O6="∄",I6="≯",F6="≱",L6="≧̸",R6="≫̸",M6="≹",q6="⩾̸",P6="≵",B6="≎̸",V6="≏̸",j6="∉",U6="⋵̸",z6="⋹̸",H6="∉",G6="⋷",W6="⋶",Q6="⧏̸",Y6="⋪",J6="⋬",Z6="≮",X6="≰",K6="≸",eU="≪̸",tU="⩽̸",nU="≴",rU="⪢̸",oU="⪡̸",iU="∌",sU="∌",aU="⋾",cU="⋽",lU="⊀",uU="⪯̸",fU="⋠",pU="∌",dU="⧐̸",hU="⋫",mU="⋭",vU="⊏̸",gU="⋢",yU="⊐̸",bU="⋣",EU="⊂⃒",_U="⊈",kU="⊁",xU="⪰̸",wU="⋡",$U="≿̸",CU="⊃⃒",AU="⊉",SU="≁",TU="≄",DU="≇",NU="≉",OU="∤",IU="∦",FU="∦",LU="⫽⃥",RU="∂̸",MU="⨔",qU="⊀",PU="⋠",BU="⊀",VU="⪯̸",jU="⪯̸",UU="⤳̸",zU="↛",HU="⇏",GU="↝̸",WU="↛",QU="⇏",YU="⋫",JU="⋭",ZU="⊁",XU="⋡",KU="⪰̸",ez="𝒩",tz="𝓃",nz="∤",rz="∦",oz="≁",iz="≄",sz="≄",az="∤",cz="∦",lz="⋢",uz="⋣",fz="⊄",pz="⫅̸",dz="⊈",hz="⊂⃒",mz="⊈",vz="⫅̸",gz="⊁",yz="⪰̸",bz="⊅",Ez="⫆̸",_z="⊉",kz="⊃⃒",xz="⊉",wz="⫆̸",$z="≹",Cz="Ñ",Az="ñ",Sz="≸",Tz="⋪",Dz="⋬",Nz="⋫",Oz="⋭",Iz="Ν",Fz="ν",Lz="#",Rz="№",Mz=" ",qz="≍⃒",Pz="⊬",Bz="⊭",Vz="⊮",jz="⊯",Uz="≥⃒",zz=">⃒",Hz="⤄",Gz="⧞",Wz="⤂",Qz="≤⃒",Yz="<⃒",Jz="⊴⃒",Zz="⤃",Xz="⊵⃒",Kz="∼⃒",e8="⤣",t8="↖",n8="⇖",r8="↖",o8="⤧",i8="Ó",s8="ó",a8="⊛",c8="Ô",l8="ô",u8="⊚",f8="О",p8="о",d8="⊝",h8="Ő",m8="ő",v8="⨸",g8="⊙",y8="⦼",b8="Œ",E8="œ",_8="⦿",k8="𝔒",x8="𝔬",w8="˛",$8="Ò",C8="ò",A8="⧁",S8="⦵",T8="Ω",D8="∮",N8="↺",O8="⦾",I8="⦻",F8="‾",L8="⧀",R8="Ō",M8="ō",q8="Ω",P8="ω",B8="Ο",V8="ο",j8="⦶",U8="⊖",z8="𝕆",H8="𝕠",G8="⦷",W8="“",Q8="‘",Y8="⦹",J8="⊕",Z8="↻",X8="⩔",K8="∨",e7="⩝",t7="ℴ",n7="ℴ",r7="ª",o7="º",i7="⊶",s7="⩖",a7="⩗",c7="⩛",l7="Ⓢ",u7="𝒪",f7="ℴ",p7="Ø",d7="ø",h7="⊘",m7="Õ",v7="õ",g7="⨶",y7="⨷",b7="⊗",E7="Ö",_7="ö",k7="⌽",x7="‾",w7="⏞",$7="⎴",C7="⏜",A7="¶",S7="∥",T7="∥",D7="⫳",N7="⫽",O7="∂",I7="∂",F7="П",L7="п",R7="%",M7=".",q7="‰",P7="⊥",B7="‱",V7="𝔓",j7="𝔭",U7="Φ",z7="φ",H7="ϕ",G7="ℳ",W7="☎",Q7="Π",Y7="π",J7="⋔",Z7="ϖ",X7="ℏ",K7="ℎ",eH="ℏ",tH="⨣",nH="⊞",rH="⨢",oH="+",iH="∔",sH="⨥",aH="⩲",cH="±",lH="±",uH="⨦",fH="⨧",pH="±",dH="ℌ",hH="⨕",mH="𝕡",vH="ℙ",gH="£",yH="⪷",bH="⪻",EH="≺",_H="≼",kH="⪷",xH="≺",wH="≼",$H="≺",CH="⪯",AH="≼",SH="≾",TH="⪯",DH="⪹",NH="⪵",OH="⋨",IH="⪯",FH="⪳",LH="≾",RH="′",MH="″",qH="ℙ",PH="⪹",BH="⪵",VH="⋨",jH="∏",UH="∏",zH="⌮",HH="⌒",GH="⌓",WH="∝",QH="∝",YH="∷",JH="∝",ZH="≾",XH="⊰",KH="𝒫",eG="𝓅",tG="Ψ",nG="ψ",rG=" ",oG="𝔔",iG="𝔮",sG="⨌",aG="𝕢",cG="ℚ",lG="⁗",uG="𝒬",fG="𝓆",pG="ℍ",dG="⨖",hG="?",mG="≟",vG='"',gG='"',yG="⇛",bG="∽̱",EG="Ŕ",_G="ŕ",kG="√",xG="⦳",wG="⟩",$G="⟫",CG="⦒",AG="⦥",SG="⟩",TG="»",DG="⥵",NG="⇥",OG="⤠",IG="⤳",FG="→",LG="↠",RG="⇒",MG="⤞",qG="↪",PG="↬",BG="⥅",VG="⥴",jG="⤖",UG="↣",zG="↝",HG="⤚",GG="⤜",WG="∶",QG="ℚ",YG="⤍",JG="⤏",ZG="⤐",XG="❳",KG="}",eW="]",tW="⦌",nW="⦎",rW="⦐",oW="Ř",iW="ř",sW="Ŗ",aW="ŗ",cW="⌉",lW="}",uW="Р",fW="р",pW="⤷",dW="⥩",hW="”",mW="”",vW="↳",gW="ℜ",yW="ℛ",bW="ℜ",EW="ℝ",_W="ℜ",kW="▭",xW="®",wW="®",$W="∋",CW="⇋",AW="⥯",SW="⥽",TW="⌋",DW="𝔯",NW="ℜ",OW="⥤",IW="⇁",FW="⇀",LW="⥬",RW="Ρ",MW="ρ",qW="ϱ",PW="⟩",BW="⇥",VW="→",jW="→",UW="⇒",zW="⇄",HW="↣",GW="⌉",WW="⟧",QW="⥝",YW="⥕",JW="⇂",ZW="⌋",XW="⇁",KW="⇀",eQ="⇄",tQ="⇌",nQ="⇉",rQ="↝",oQ="↦",iQ="⊢",sQ="⥛",aQ="⋌",cQ="⧐",lQ="⊳",uQ="⊵",fQ="⥏",pQ="⥜",dQ="⥔",hQ="↾",mQ="⥓",vQ="⇀",gQ="˚",yQ="≓",bQ="⇄",EQ="⇌",_Q="‏",kQ="⎱",xQ="⎱",wQ="⫮",$Q="⟭",CQ="⇾",AQ="⟧",SQ="⦆",TQ="𝕣",DQ="ℝ",NQ="⨮",OQ="⨵",IQ="⥰",FQ=")",LQ="⦔",RQ="⨒",MQ="⇉",qQ="⇛",PQ="›",BQ="𝓇",VQ="ℛ",jQ="↱",UQ="↱",zQ="]",HQ="’",GQ="’",WQ="⋌",QQ="⋊",YQ="▹",JQ="⊵",ZQ="▸",XQ="⧎",KQ="⧴",eY="⥨",tY="℞",nY="Ś",rY="ś",oY="‚",iY="⪸",sY="Š",aY="š",cY="⪼",lY="≻",uY="≽",fY="⪰",pY="⪴",dY="Ş",hY="ş",mY="Ŝ",vY="ŝ",gY="⪺",yY="⪶",bY="⋩",EY="⨓",_Y="≿",kY="С",xY="с",wY="⊡",$Y="⋅",CY="⩦",AY="⤥",SY="↘",TY="⇘",DY="↘",NY="§",OY=";",IY="⤩",FY="∖",LY="∖",RY="✶",MY="𝔖",qY="𝔰",PY="⌢",BY="♯",VY="Щ",jY="щ",UY="Ш",zY="ш",HY="↓",GY="←",WY="∣",QY="∥",YY="→",JY="↑",ZY="­",XY="Σ",KY="σ",eJ="ς",tJ="ς",nJ="∼",rJ="⩪",oJ="≃",iJ="≃",sJ="⪞",aJ="⪠",cJ="⪝",lJ="⪟",uJ="≆",fJ="⨤",pJ="⥲",dJ="←",hJ="∘",mJ="∖",vJ="⨳",gJ="⧤",yJ="∣",bJ="⌣",EJ="⪪",_J="⪬",kJ="⪬︀",xJ="Ь",wJ="ь",$J="⌿",CJ="⧄",AJ="/",SJ="𝕊",TJ="𝕤",DJ="♠",NJ="♠",OJ="∥",IJ="⊓",FJ="⊓︀",LJ="⊔",RJ="⊔︀",MJ="√",qJ="⊏",PJ="⊑",BJ="⊏",VJ="⊑",jJ="⊐",UJ="⊒",zJ="⊐",HJ="⊒",GJ="□",WJ="□",QJ="⊓",YJ="⊏",JJ="⊑",ZJ="⊐",XJ="⊒",KJ="⊔",eZ="▪",tZ="□",nZ="▪",rZ="→",oZ="𝒮",iZ="𝓈",sZ="∖",aZ="⌣",cZ="⋆",lZ="⋆",uZ="☆",fZ="★",pZ="ϵ",dZ="ϕ",hZ="¯",mZ="⊂",vZ="⋐",gZ="⪽",yZ="⫅",bZ="⊆",EZ="⫃",_Z="⫁",kZ="⫋",xZ="⊊",wZ="⪿",$Z="⥹",CZ="⊂",AZ="⋐",SZ="⊆",TZ="⫅",DZ="⊆",NZ="⊊",OZ="⫋",IZ="⫇",FZ="⫕",LZ="⫓",RZ="⪸",MZ="≻",qZ="≽",PZ="≻",BZ="⪰",VZ="≽",jZ="≿",UZ="⪰",zZ="⪺",HZ="⪶",GZ="⋩",WZ="≿",QZ="∋",YZ="∑",JZ="∑",ZZ="♪",XZ="¹",KZ="²",eX="³",tX="⊃",nX="⋑",rX="⪾",oX="⫘",iX="⫆",sX="⊇",aX="⫄",cX="⊃",lX="⊇",uX="⟉",fX="⫗",pX="⥻",dX="⫂",hX="⫌",mX="⊋",vX="⫀",gX="⊃",yX="⋑",bX="⊇",EX="⫆",_X="⊋",kX="⫌",xX="⫈",wX="⫔",$X="⫖",CX="⤦",AX="↙",SX="⇙",TX="↙",DX="⤪",NX="ß",OX=" ",IX="⌖",FX="Τ",LX="τ",RX="⎴",MX="Ť",qX="ť",PX="Ţ",BX="ţ",VX="Т",jX="т",UX="⃛",zX="⌕",HX="𝔗",GX="𝔱",WX="∴",QX="∴",YX="∴",JX="Θ",ZX="θ",XX="ϑ",KX="ϑ",eK="≈",tK="∼",nK="  ",rK=" ",oK=" ",iK="≈",sK="∼",aK="Þ",cK="þ",lK="˜",uK="∼",fK="≃",pK="≅",dK="≈",hK="⨱",mK="⊠",vK="×",gK="⨰",yK="∭",bK="⤨",EK="⌶",_K="⫱",kK="⊤",xK="𝕋",wK="𝕥",$K="⫚",CK="⤩",AK="‴",SK="™",TK="™",DK="▵",NK="▿",OK="◃",IK="⊴",FK="≜",LK="▹",RK="⊵",MK="◬",qK="≜",PK="⨺",BK="⃛",VK="⨹",jK="⧍",UK="⨻",zK="⏢",HK="𝒯",GK="𝓉",WK="Ц",QK="ц",YK="Ћ",JK="ћ",ZK="Ŧ",XK="ŧ",KK="≬",eee="↞",tee="↠",nee="Ú",ree="ú",oee="↑",iee="↟",see="⇑",aee="⥉",cee="Ў",lee="ў",uee="Ŭ",fee="ŭ",pee="Û",dee="û",hee="У",mee="у",vee="⇅",gee="Ű",yee="ű",bee="⥮",Eee="⥾",_ee="𝔘",kee="𝔲",xee="Ù",wee="ù",$ee="⥣",Cee="↿",Aee="↾",See="▀",Tee="⌜",Dee="⌜",Nee="⌏",Oee="◸",Iee="Ū",Fee="ū",Lee="¨",Ree="_",Mee="⏟",qee="⎵",Pee="⏝",Bee="⋃",Vee="⊎",jee="Ų",Uee="ų",zee="𝕌",Hee="𝕦",Gee="⤒",Wee="↑",Qee="↑",Yee="⇑",Jee="⇅",Zee="↕",Xee="↕",Kee="⇕",ete="⥮",tte="↿",nte="↾",rte="⊎",ote="↖",ite="↗",ste="υ",ate="ϒ",cte="ϒ",lte="Υ",ute="υ",fte="↥",pte="⊥",dte="⇈",hte="⌝",mte="⌝",vte="⌎",gte="Ů",yte="ů",bte="◹",Ete="𝒰",_te="𝓊",kte="⋰",xte="Ũ",wte="ũ",$te="▵",Cte="▴",Ate="⇈",Ste="Ü",Tte="ü",Dte="⦧",Nte="⦜",Ote="ϵ",Ite="ϰ",Fte="∅",Lte="ϕ",Rte="ϖ",Mte="∝",qte="↕",Pte="⇕",Bte="ϱ",Vte="ς",jte="⊊︀",Ute="⫋︀",zte="⊋︀",Hte="⫌︀",Gte="ϑ",Wte="⊲",Qte="⊳",Yte="⫨",Jte="⫫",Zte="⫩",Xte="В",Kte="в",ene="⊢",tne="⊨",nne="⊩",rne="⊫",one="⫦",ine="⊻",sne="∨",ane="⋁",cne="≚",lne="⋮",une="|",fne="‖",pne="|",dne="‖",hne="∣",mne="|",vne="❘",gne="≀",yne=" ",bne="𝔙",Ene="𝔳",_ne="⊲",kne="⊂⃒",xne="⊃⃒",wne="𝕍",$ne="𝕧",Cne="∝",Ane="⊳",Sne="𝒱",Tne="𝓋",Dne="⫋︀",Nne="⊊︀",One="⫌︀",Ine="⊋︀",Fne="⊪",Lne="⦚",Rne="Ŵ",Mne="ŵ",qne="⩟",Pne="∧",Bne="⋀",Vne="≙",jne="℘",Une="𝔚",zne="𝔴",Hne="𝕎",Gne="𝕨",Wne="℘",Qne="≀",Yne="≀",Jne="𝒲",Zne="𝓌",Xne="⋂",Kne="◯",ere="⋃",tre="▽",nre="𝔛",rre="𝔵",ore="⟷",ire="⟺",sre="Ξ",are="ξ",cre="⟵",lre="⟸",ure="⟼",fre="⋻",pre="⨀",dre="𝕏",hre="𝕩",mre="⨁",vre="⨂",gre="⟶",yre="⟹",bre="𝒳",Ere="𝓍",_re="⨆",kre="⨄",xre="△",wre="⋁",$re="⋀",Cre="Ý",Are="ý",Sre="Я",Tre="я",Dre="Ŷ",Nre="ŷ",Ore="Ы",Ire="ы",Fre="¥",Lre="𝔜",Rre="𝔶",Mre="Ї",qre="ї",Pre="𝕐",Bre="𝕪",Vre="𝒴",jre="𝓎",Ure="Ю",zre="ю",Hre="ÿ",Gre="Ÿ",Wre="Ź",Qre="ź",Yre="Ž",Jre="ž",Zre="З",Xre="з",Kre="Ż",eoe="ż",toe="ℨ",noe="​",roe="Ζ",ooe="ζ",ioe="𝔷",soe="ℨ",aoe="Ж",coe="ж",loe="⇝",uoe="𝕫",foe="ℤ",poe="𝒵",doe="𝓏",hoe="‍",moe="‌";var voe={Aacute:K$,aacute:eC,Abreve:tC,abreve:nC,ac:rC,acd:oC,acE:iC,Acirc:sC,acirc:aC,acute:cC,Acy:lC,acy:uC,AElig:fC,aelig:pC,af:dC,Afr:hC,afr:mC,Agrave:vC,agrave:gC,alefsym:yC,aleph:bC,Alpha:EC,alpha:_C,Amacr:kC,amacr:xC,amalg:wC,amp:$C,AMP:CC,andand:AC,And:SC,and:TC,andd:DC,andslope:NC,andv:OC,ang:IC,ange:FC,angle:LC,angmsdaa:RC,angmsdab:MC,angmsdac:qC,angmsdad:PC,angmsdae:BC,angmsdaf:VC,angmsdag:jC,angmsdah:UC,angmsd:zC,angrt:HC,angrtvb:GC,angrtvbd:WC,angsph:QC,angst:YC,angzarr:JC,Aogon:ZC,aogon:XC,Aopf:KC,aopf:eA,apacir:tA,ap:nA,apE:rA,ape:oA,apid:iA,apos:sA,ApplyFunction:aA,approx:cA,approxeq:lA,Aring:uA,aring:fA,Ascr:pA,ascr:dA,Assign:hA,ast:mA,asymp:vA,asympeq:gA,Atilde:yA,atilde:bA,Auml:EA,auml:_A,awconint:kA,awint:xA,backcong:wA,backepsilon:$A,backprime:CA,backsim:AA,backsimeq:SA,Backslash:TA,Barv:DA,barvee:NA,barwed:OA,Barwed:IA,barwedge:FA,bbrk:LA,bbrktbrk:RA,bcong:MA,Bcy:qA,bcy:PA,bdquo:BA,becaus:VA,because:jA,Because:UA,bemptyv:zA,bepsi:HA,bernou:GA,Bernoullis:WA,Beta:QA,beta:YA,beth:JA,between:ZA,Bfr:XA,bfr:KA,bigcap:eS,bigcirc:tS,bigcup:nS,bigodot:rS,bigoplus:oS,bigotimes:iS,bigsqcup:sS,bigstar:aS,bigtriangledown:cS,bigtriangleup:lS,biguplus:uS,bigvee:fS,bigwedge:pS,bkarow:dS,blacklozenge:hS,blacksquare:mS,blacktriangle:vS,blacktriangledown:gS,blacktriangleleft:yS,blacktriangleright:bS,blank:ES,blk12:_S,blk14:kS,blk34:xS,block:wS,bne:$S,bnequiv:CS,bNot:AS,bnot:SS,Bopf:TS,bopf:DS,bot:NS,bottom:OS,bowtie:IS,boxbox:FS,boxdl:LS,boxdL:RS,boxDl:MS,boxDL:qS,boxdr:PS,boxdR:BS,boxDr:VS,boxDR:jS,boxh:US,boxH:zS,boxhd:HS,boxHd:GS,boxhD:WS,boxHD:QS,boxhu:YS,boxHu:JS,boxhU:ZS,boxHU:XS,boxminus:KS,boxplus:eT,boxtimes:tT,boxul:nT,boxuL:rT,boxUl:oT,boxUL:iT,boxur:sT,boxuR:aT,boxUr:cT,boxUR:lT,boxv:uT,boxV:fT,boxvh:pT,boxvH:dT,boxVh:hT,boxVH:mT,boxvl:vT,boxvL:gT,boxVl:yT,boxVL:bT,boxvr:ET,boxvR:_T,boxVr:kT,boxVR:xT,bprime:wT,breve:$T,Breve:CT,brvbar:AT,bscr:ST,Bscr:TT,bsemi:DT,bsim:NT,bsime:OT,bsolb:IT,bsol:FT,bsolhsub:LT,bull:RT,bullet:MT,bump:qT,bumpE:PT,bumpe:BT,Bumpeq:VT,bumpeq:jT,Cacute:UT,cacute:zT,capand:HT,capbrcup:GT,capcap:WT,cap:QT,Cap:YT,capcup:JT,capdot:ZT,CapitalDifferentialD:XT,caps:KT,caret:eD,caron:tD,Cayleys:nD,ccaps:rD,Ccaron:oD,ccaron:iD,Ccedil:sD,ccedil:aD,Ccirc:cD,ccirc:lD,Cconint:uD,ccups:fD,ccupssm:pD,Cdot:dD,cdot:hD,cedil:mD,Cedilla:vD,cemptyv:gD,cent:yD,centerdot:bD,CenterDot:ED,cfr:_D,Cfr:kD,CHcy:xD,chcy:wD,check:$D,checkmark:CD,Chi:AD,chi:SD,circ:TD,circeq:DD,circlearrowleft:ND,circlearrowright:OD,circledast:ID,circledcirc:FD,circleddash:LD,CircleDot:RD,circledR:MD,circledS:qD,CircleMinus:PD,CirclePlus:BD,CircleTimes:VD,cir:jD,cirE:UD,cire:zD,cirfnint:HD,cirmid:GD,cirscir:WD,ClockwiseContourIntegral:QD,CloseCurlyDoubleQuote:YD,CloseCurlyQuote:JD,clubs:ZD,clubsuit:XD,colon:KD,Colon:eN,Colone:tN,colone:nN,coloneq:rN,comma:oN,commat:iN,comp:sN,compfn:aN,complement:cN,complexes:lN,cong:uN,congdot:fN,Congruent:pN,conint:dN,Conint:hN,ContourIntegral:mN,copf:vN,Copf:gN,coprod:yN,Coproduct:bN,copy:EN,COPY:_N,copysr:kN,CounterClockwiseContourIntegral:xN,crarr:wN,cross:$N,Cross:CN,Cscr:AN,cscr:SN,csub:TN,csube:DN,csup:NN,csupe:ON,ctdot:IN,cudarrl:FN,cudarrr:LN,cuepr:RN,cuesc:MN,cularr:qN,cularrp:PN,cupbrcap:BN,cupcap:VN,CupCap:jN,cup:UN,Cup:zN,cupcup:HN,cupdot:GN,cupor:WN,cups:QN,curarr:YN,curarrm:JN,curlyeqprec:ZN,curlyeqsucc:XN,curlyvee:KN,curlywedge:eO,curren:tO,curvearrowleft:nO,curvearrowright:rO,cuvee:oO,cuwed:iO,cwconint:sO,cwint:aO,cylcty:cO,dagger:lO,Dagger:uO,daleth:fO,darr:pO,Darr:dO,dArr:hO,dash:mO,Dashv:vO,dashv:gO,dbkarow:yO,dblac:bO,Dcaron:EO,dcaron:_O,Dcy:kO,dcy:xO,ddagger:wO,ddarr:$O,DD:CO,dd:AO,DDotrahd:SO,ddotseq:TO,deg:DO,Del:NO,Delta:OO,delta:IO,demptyv:FO,dfisht:LO,Dfr:RO,dfr:MO,dHar:qO,dharl:PO,dharr:BO,DiacriticalAcute:VO,DiacriticalDot:jO,DiacriticalDoubleAcute:UO,DiacriticalGrave:zO,DiacriticalTilde:HO,diam:GO,diamond:WO,Diamond:QO,diamondsuit:YO,diams:JO,die:ZO,DifferentialD:XO,digamma:KO,disin:eI,div:tI,divide:nI,divideontimes:rI,divonx:oI,DJcy:iI,djcy:sI,dlcorn:aI,dlcrop:cI,dollar:lI,Dopf:uI,dopf:fI,Dot:pI,dot:dI,DotDot:hI,doteq:mI,doteqdot:vI,DotEqual:gI,dotminus:yI,dotplus:bI,dotsquare:EI,doublebarwedge:_I,DoubleContourIntegral:kI,DoubleDot:xI,DoubleDownArrow:wI,DoubleLeftArrow:$I,DoubleLeftRightArrow:CI,DoubleLeftTee:AI,DoubleLongLeftArrow:SI,DoubleLongLeftRightArrow:TI,DoubleLongRightArrow:DI,DoubleRightArrow:NI,DoubleRightTee:OI,DoubleUpArrow:II,DoubleUpDownArrow:FI,DoubleVerticalBar:LI,DownArrowBar:RI,downarrow:MI,DownArrow:qI,Downarrow:PI,DownArrowUpArrow:BI,DownBreve:VI,downdownarrows:jI,downharpoonleft:UI,downharpoonright:zI,DownLeftRightVector:HI,DownLeftTeeVector:GI,DownLeftVectorBar:WI,DownLeftVector:QI,DownRightTeeVector:YI,DownRightVectorBar:JI,DownRightVector:ZI,DownTeeArrow:XI,DownTee:KI,drbkarow:eF,drcorn:tF,drcrop:nF,Dscr:rF,dscr:oF,DScy:iF,dscy:sF,dsol:aF,Dstrok:cF,dstrok:lF,dtdot:uF,dtri:fF,dtrif:pF,duarr:dF,duhar:hF,dwangle:mF,DZcy:vF,dzcy:gF,dzigrarr:yF,Eacute:bF,eacute:EF,easter:_F,Ecaron:kF,ecaron:xF,Ecirc:wF,ecirc:$F,ecir:CF,ecolon:AF,Ecy:SF,ecy:TF,eDDot:DF,Edot:NF,edot:OF,eDot:IF,ee:FF,efDot:LF,Efr:RF,efr:MF,eg:qF,Egrave:PF,egrave:BF,egs:VF,egsdot:jF,el:UF,Element:zF,elinters:HF,ell:GF,els:WF,elsdot:QF,Emacr:YF,emacr:JF,empty:ZF,emptyset:XF,EmptySmallSquare:KF,emptyv:eL,EmptyVerySmallSquare:tL,emsp13:nL,emsp14:rL,emsp:oL,ENG:iL,eng:sL,ensp:aL,Eogon:cL,eogon:lL,Eopf:uL,eopf:fL,epar:pL,eparsl:dL,eplus:hL,epsi:mL,Epsilon:vL,epsilon:gL,epsiv:yL,eqcirc:bL,eqcolon:EL,eqsim:_L,eqslantgtr:kL,eqslantless:xL,Equal:wL,equals:$L,EqualTilde:CL,equest:AL,Equilibrium:SL,equiv:TL,equivDD:DL,eqvparsl:NL,erarr:OL,erDot:IL,escr:FL,Escr:LL,esdot:RL,Esim:ML,esim:qL,Eta:PL,eta:BL,ETH:VL,eth:jL,Euml:UL,euml:zL,euro:HL,excl:GL,exist:WL,Exists:QL,expectation:YL,exponentiale:JL,ExponentialE:ZL,fallingdotseq:XL,Fcy:KL,fcy:eR,female:tR,ffilig:nR,fflig:rR,ffllig:oR,Ffr:iR,ffr:sR,filig:aR,FilledSmallSquare:cR,FilledVerySmallSquare:lR,fjlig:uR,flat:fR,fllig:pR,fltns:dR,fnof:hR,Fopf:mR,fopf:vR,forall:gR,ForAll:yR,fork:bR,forkv:ER,Fouriertrf:_R,fpartint:kR,frac12:xR,frac13:wR,frac14:$R,frac15:CR,frac16:AR,frac18:SR,frac23:TR,frac25:DR,frac34:NR,frac35:OR,frac38:IR,frac45:FR,frac56:LR,frac58:RR,frac78:MR,frasl:qR,frown:PR,fscr:BR,Fscr:VR,gacute:jR,Gamma:UR,gamma:zR,Gammad:HR,gammad:GR,gap:WR,Gbreve:QR,gbreve:YR,Gcedil:JR,Gcirc:ZR,gcirc:XR,Gcy:KR,gcy:eM,Gdot:tM,gdot:nM,ge:rM,gE:oM,gEl:iM,gel:sM,geq:aM,geqq:cM,geqslant:lM,gescc:uM,ges:fM,gesdot:pM,gesdoto:dM,gesdotol:hM,gesl:mM,gesles:vM,Gfr:gM,gfr:yM,gg:bM,Gg:EM,ggg:_M,gimel:kM,GJcy:xM,gjcy:wM,gla:$M,gl:CM,glE:AM,glj:SM,gnap:TM,gnapprox:DM,gne:NM,gnE:OM,gneq:IM,gneqq:FM,gnsim:LM,Gopf:RM,gopf:MM,grave:qM,GreaterEqual:PM,GreaterEqualLess:BM,GreaterFullEqual:VM,GreaterGreater:jM,GreaterLess:UM,GreaterSlantEqual:zM,GreaterTilde:HM,Gscr:GM,gscr:WM,gsim:QM,gsime:YM,gsiml:JM,gtcc:ZM,gtcir:XM,gt:KM,GT:eq,Gt:tq,gtdot:nq,gtlPar:rq,gtquest:oq,gtrapprox:iq,gtrarr:sq,gtrdot:aq,gtreqless:cq,gtreqqless:lq,gtrless:uq,gtrsim:fq,gvertneqq:pq,gvnE:dq,Hacek:hq,hairsp:mq,half:vq,hamilt:gq,HARDcy:yq,hardcy:bq,harrcir:Eq,harr:_q,hArr:kq,harrw:xq,Hat:wq,hbar:$q,Hcirc:Cq,hcirc:Aq,hearts:Sq,heartsuit:Tq,hellip:Dq,hercon:Nq,hfr:Oq,Hfr:Iq,HilbertSpace:Fq,hksearow:Lq,hkswarow:Rq,hoarr:Mq,homtht:qq,hookleftarrow:Pq,hookrightarrow:Bq,hopf:Vq,Hopf:jq,horbar:Uq,HorizontalLine:zq,hscr:Hq,Hscr:Gq,hslash:Wq,Hstrok:Qq,hstrok:Yq,HumpDownHump:Jq,HumpEqual:Zq,hybull:Xq,hyphen:Kq,Iacute:eP,iacute:tP,ic:nP,Icirc:rP,icirc:oP,Icy:iP,icy:sP,Idot:aP,IEcy:cP,iecy:lP,iexcl:uP,iff:fP,ifr:pP,Ifr:dP,Igrave:hP,igrave:mP,ii:vP,iiiint:gP,iiint:yP,iinfin:bP,iiota:EP,IJlig:_P,ijlig:kP,Imacr:xP,imacr:wP,image:$P,ImaginaryI:CP,imagline:AP,imagpart:SP,imath:TP,Im:DP,imof:NP,imped:OP,Implies:IP,incare:FP,in:"∈",infin:LP,infintie:RP,inodot:MP,intcal:qP,int:PP,Int:BP,integers:VP,Integral:jP,intercal:UP,Intersection:zP,intlarhk:HP,intprod:GP,InvisibleComma:WP,InvisibleTimes:QP,IOcy:YP,iocy:JP,Iogon:ZP,iogon:XP,Iopf:KP,iopf:e3,Iota:t3,iota:n3,iprod:r3,iquest:o3,iscr:i3,Iscr:s3,isin:a3,isindot:c3,isinE:l3,isins:u3,isinsv:f3,isinv:p3,it:d3,Itilde:h3,itilde:m3,Iukcy:v3,iukcy:g3,Iuml:y3,iuml:b3,Jcirc:E3,jcirc:_3,Jcy:k3,jcy:x3,Jfr:w3,jfr:$3,jmath:C3,Jopf:A3,jopf:S3,Jscr:T3,jscr:D3,Jsercy:N3,jsercy:O3,Jukcy:I3,jukcy:F3,Kappa:L3,kappa:R3,kappav:M3,Kcedil:q3,kcedil:P3,Kcy:B3,kcy:V3,Kfr:j3,kfr:U3,kgreen:z3,KHcy:H3,khcy:G3,KJcy:W3,kjcy:Q3,Kopf:Y3,kopf:J3,Kscr:Z3,kscr:X3,lAarr:K3,Lacute:eB,lacute:tB,laemptyv:nB,lagran:rB,Lambda:oB,lambda:iB,lang:sB,Lang:aB,langd:cB,langle:lB,lap:uB,Laplacetrf:fB,laquo:pB,larrb:dB,larrbfs:hB,larr:mB,Larr:vB,lArr:gB,larrfs:yB,larrhk:bB,larrlp:EB,larrpl:_B,larrsim:kB,larrtl:xB,latail:wB,lAtail:$B,lat:CB,late:AB,lates:SB,lbarr:TB,lBarr:DB,lbbrk:NB,lbrace:OB,lbrack:IB,lbrke:FB,lbrksld:LB,lbrkslu:RB,Lcaron:MB,lcaron:qB,Lcedil:PB,lcedil:BB,lceil:VB,lcub:jB,Lcy:UB,lcy:zB,ldca:HB,ldquo:GB,ldquor:WB,ldrdhar:QB,ldrushar:YB,ldsh:JB,le:ZB,lE:XB,LeftAngleBracket:KB,LeftArrowBar:e5,leftarrow:t5,LeftArrow:n5,Leftarrow:r5,LeftArrowRightArrow:o5,leftarrowtail:i5,LeftCeiling:s5,LeftDoubleBracket:a5,LeftDownTeeVector:c5,LeftDownVectorBar:l5,LeftDownVector:u5,LeftFloor:f5,leftharpoondown:p5,leftharpoonup:d5,leftleftarrows:h5,leftrightarrow:m5,LeftRightArrow:v5,Leftrightarrow:g5,leftrightarrows:y5,leftrightharpoons:b5,leftrightsquigarrow:E5,LeftRightVector:_5,LeftTeeArrow:k5,LeftTee:x5,LeftTeeVector:w5,leftthreetimes:$5,LeftTriangleBar:C5,LeftTriangle:A5,LeftTriangleEqual:S5,LeftUpDownVector:T5,LeftUpTeeVector:D5,LeftUpVectorBar:N5,LeftUpVector:O5,LeftVectorBar:I5,LeftVector:F5,lEg:L5,leg:R5,leq:M5,leqq:q5,leqslant:P5,lescc:B5,les:V5,lesdot:j5,lesdoto:U5,lesdotor:z5,lesg:H5,lesges:G5,lessapprox:W5,lessdot:Q5,lesseqgtr:Y5,lesseqqgtr:J5,LessEqualGreater:Z5,LessFullEqual:X5,LessGreater:K5,lessgtr:eV,LessLess:tV,lesssim:nV,LessSlantEqual:rV,LessTilde:oV,lfisht:iV,lfloor:sV,Lfr:aV,lfr:cV,lg:lV,lgE:uV,lHar:fV,lhard:pV,lharu:dV,lharul:hV,lhblk:mV,LJcy:vV,ljcy:gV,llarr:yV,ll:bV,Ll:EV,llcorner:_V,Lleftarrow:kV,llhard:xV,lltri:wV,Lmidot:$V,lmidot:CV,lmoustache:AV,lmoust:SV,lnap:TV,lnapprox:DV,lne:NV,lnE:OV,lneq:IV,lneqq:FV,lnsim:LV,loang:RV,loarr:MV,lobrk:qV,longleftarrow:PV,LongLeftArrow:BV,Longleftarrow:VV,longleftrightarrow:jV,LongLeftRightArrow:UV,Longleftrightarrow:zV,longmapsto:HV,longrightarrow:GV,LongRightArrow:WV,Longrightarrow:QV,looparrowleft:YV,looparrowright:JV,lopar:ZV,Lopf:XV,lopf:KV,loplus:e9,lotimes:t9,lowast:n9,lowbar:r9,LowerLeftArrow:o9,LowerRightArrow:i9,loz:s9,lozenge:a9,lozf:c9,lpar:l9,lparlt:u9,lrarr:f9,lrcorner:p9,lrhar:d9,lrhard:h9,lrm:m9,lrtri:v9,lsaquo:g9,lscr:y9,Lscr:b9,lsh:E9,Lsh:_9,lsim:k9,lsime:x9,lsimg:w9,lsqb:$9,lsquo:C9,lsquor:A9,Lstrok:S9,lstrok:T9,ltcc:D9,ltcir:N9,lt:O9,LT:I9,Lt:F9,ltdot:L9,lthree:R9,ltimes:M9,ltlarr:q9,ltquest:P9,ltri:B9,ltrie:V9,ltrif:j9,ltrPar:U9,lurdshar:z9,luruhar:H9,lvertneqq:G9,lvnE:W9,macr:Q9,male:Y9,malt:J9,maltese:Z9,Map:"⤅",map:X9,mapsto:K9,mapstodown:e4,mapstoleft:t4,mapstoup:n4,marker:r4,mcomma:o4,Mcy:i4,mcy:s4,mdash:a4,mDDot:c4,measuredangle:l4,MediumSpace:u4,Mellintrf:f4,Mfr:p4,mfr:d4,mho:h4,micro:m4,midast:v4,midcir:g4,mid:y4,middot:b4,minusb:E4,minus:_4,minusd:k4,minusdu:x4,MinusPlus:w4,mlcp:$4,mldr:C4,mnplus:A4,models:S4,Mopf:T4,mopf:D4,mp:N4,mscr:O4,Mscr:I4,mstpos:F4,Mu:L4,mu:R4,multimap:M4,mumap:q4,nabla:P4,Nacute:B4,nacute:V4,nang:j4,nap:U4,napE:z4,napid:H4,napos:G4,napprox:W4,natural:Q4,naturals:Y4,natur:J4,nbsp:Z4,nbump:X4,nbumpe:K4,ncap:ej,Ncaron:tj,ncaron:nj,Ncedil:rj,ncedil:oj,ncong:ij,ncongdot:sj,ncup:aj,Ncy:cj,ncy:lj,ndash:uj,nearhk:fj,nearr:pj,neArr:dj,nearrow:hj,ne:mj,nedot:vj,NegativeMediumSpace:gj,NegativeThickSpace:yj,NegativeThinSpace:bj,NegativeVeryThinSpace:Ej,nequiv:_j,nesear:kj,nesim:xj,NestedGreaterGreater:wj,NestedLessLess:$j,NewLine:Cj,nexist:Aj,nexists:Sj,Nfr:Tj,nfr:Dj,ngE:Nj,nge:Oj,ngeq:Ij,ngeqq:Fj,ngeqslant:Lj,nges:Rj,nGg:Mj,ngsim:qj,nGt:Pj,ngt:Bj,ngtr:Vj,nGtv:jj,nharr:Uj,nhArr:zj,nhpar:Hj,ni:Gj,nis:Wj,nisd:Qj,niv:Yj,NJcy:Jj,njcy:Zj,nlarr:Xj,nlArr:Kj,nldr:e6,nlE:t6,nle:n6,nleftarrow:r6,nLeftarrow:o6,nleftrightarrow:i6,nLeftrightarrow:s6,nleq:a6,nleqq:c6,nleqslant:l6,nles:u6,nless:f6,nLl:p6,nlsim:d6,nLt:h6,nlt:m6,nltri:v6,nltrie:g6,nLtv:y6,nmid:b6,NoBreak:E6,NonBreakingSpace:_6,nopf:k6,Nopf:x6,Not:w6,not:$6,NotCongruent:C6,NotCupCap:A6,NotDoubleVerticalBar:S6,NotElement:T6,NotEqual:D6,NotEqualTilde:N6,NotExists:O6,NotGreater:I6,NotGreaterEqual:F6,NotGreaterFullEqual:L6,NotGreaterGreater:R6,NotGreaterLess:M6,NotGreaterSlantEqual:q6,NotGreaterTilde:P6,NotHumpDownHump:B6,NotHumpEqual:V6,notin:j6,notindot:U6,notinE:z6,notinva:H6,notinvb:G6,notinvc:W6,NotLeftTriangleBar:Q6,NotLeftTriangle:Y6,NotLeftTriangleEqual:J6,NotLess:Z6,NotLessEqual:X6,NotLessGreater:K6,NotLessLess:eU,NotLessSlantEqual:tU,NotLessTilde:nU,NotNestedGreaterGreater:rU,NotNestedLessLess:oU,notni:iU,notniva:sU,notnivb:aU,notnivc:cU,NotPrecedes:lU,NotPrecedesEqual:uU,NotPrecedesSlantEqual:fU,NotReverseElement:pU,NotRightTriangleBar:dU,NotRightTriangle:hU,NotRightTriangleEqual:mU,NotSquareSubset:vU,NotSquareSubsetEqual:gU,NotSquareSuperset:yU,NotSquareSupersetEqual:bU,NotSubset:EU,NotSubsetEqual:_U,NotSucceeds:kU,NotSucceedsEqual:xU,NotSucceedsSlantEqual:wU,NotSucceedsTilde:$U,NotSuperset:CU,NotSupersetEqual:AU,NotTilde:SU,NotTildeEqual:TU,NotTildeFullEqual:DU,NotTildeTilde:NU,NotVerticalBar:OU,nparallel:IU,npar:FU,nparsl:LU,npart:RU,npolint:MU,npr:qU,nprcue:PU,nprec:BU,npreceq:VU,npre:jU,nrarrc:UU,nrarr:zU,nrArr:HU,nrarrw:GU,nrightarrow:WU,nRightarrow:QU,nrtri:YU,nrtrie:JU,nsc:ZU,nsccue:XU,nsce:KU,Nscr:ez,nscr:tz,nshortmid:nz,nshortparallel:rz,nsim:oz,nsime:iz,nsimeq:sz,nsmid:az,nspar:cz,nsqsube:lz,nsqsupe:uz,nsub:fz,nsubE:pz,nsube:dz,nsubset:hz,nsubseteq:mz,nsubseteqq:vz,nsucc:gz,nsucceq:yz,nsup:bz,nsupE:Ez,nsupe:_z,nsupset:kz,nsupseteq:xz,nsupseteqq:wz,ntgl:$z,Ntilde:Cz,ntilde:Az,ntlg:Sz,ntriangleleft:Tz,ntrianglelefteq:Dz,ntriangleright:Nz,ntrianglerighteq:Oz,Nu:Iz,nu:Fz,num:Lz,numero:Rz,numsp:Mz,nvap:qz,nvdash:Pz,nvDash:Bz,nVdash:Vz,nVDash:jz,nvge:Uz,nvgt:zz,nvHarr:Hz,nvinfin:Gz,nvlArr:Wz,nvle:Qz,nvlt:Yz,nvltrie:Jz,nvrArr:Zz,nvrtrie:Xz,nvsim:Kz,nwarhk:e8,nwarr:t8,nwArr:n8,nwarrow:r8,nwnear:o8,Oacute:i8,oacute:s8,oast:a8,Ocirc:c8,ocirc:l8,ocir:u8,Ocy:f8,ocy:p8,odash:d8,Odblac:h8,odblac:m8,odiv:v8,odot:g8,odsold:y8,OElig:b8,oelig:E8,ofcir:_8,Ofr:k8,ofr:x8,ogon:w8,Ograve:$8,ograve:C8,ogt:A8,ohbar:S8,ohm:T8,oint:D8,olarr:N8,olcir:O8,olcross:I8,oline:F8,olt:L8,Omacr:R8,omacr:M8,Omega:q8,omega:P8,Omicron:B8,omicron:V8,omid:j8,ominus:U8,Oopf:z8,oopf:H8,opar:G8,OpenCurlyDoubleQuote:W8,OpenCurlyQuote:Q8,operp:Y8,oplus:J8,orarr:Z8,Or:X8,or:K8,ord:e7,order:t7,orderof:n7,ordf:r7,ordm:o7,origof:i7,oror:s7,orslope:a7,orv:c7,oS:l7,Oscr:u7,oscr:f7,Oslash:p7,oslash:d7,osol:h7,Otilde:m7,otilde:v7,otimesas:g7,Otimes:y7,otimes:b7,Ouml:E7,ouml:_7,ovbar:k7,OverBar:x7,OverBrace:w7,OverBracket:$7,OverParenthesis:C7,para:A7,parallel:S7,par:T7,parsim:D7,parsl:N7,part:O7,PartialD:I7,Pcy:F7,pcy:L7,percnt:R7,period:M7,permil:q7,perp:P7,pertenk:B7,Pfr:V7,pfr:j7,Phi:U7,phi:z7,phiv:H7,phmmat:G7,phone:W7,Pi:Q7,pi:Y7,pitchfork:J7,piv:Z7,planck:X7,planckh:K7,plankv:eH,plusacir:tH,plusb:nH,pluscir:rH,plus:oH,plusdo:iH,plusdu:sH,pluse:aH,PlusMinus:cH,plusmn:lH,plussim:uH,plustwo:fH,pm:pH,Poincareplane:dH,pointint:hH,popf:mH,Popf:vH,pound:gH,prap:yH,Pr:bH,pr:EH,prcue:_H,precapprox:kH,prec:xH,preccurlyeq:wH,Precedes:$H,PrecedesEqual:CH,PrecedesSlantEqual:AH,PrecedesTilde:SH,preceq:TH,precnapprox:DH,precneqq:NH,precnsim:OH,pre:IH,prE:FH,precsim:LH,prime:RH,Prime:MH,primes:qH,prnap:PH,prnE:BH,prnsim:VH,prod:jH,Product:UH,profalar:zH,profline:HH,profsurf:GH,prop:WH,Proportional:QH,Proportion:YH,propto:JH,prsim:ZH,prurel:XH,Pscr:KH,pscr:eG,Psi:tG,psi:nG,puncsp:rG,Qfr:oG,qfr:iG,qint:sG,qopf:aG,Qopf:cG,qprime:lG,Qscr:uG,qscr:fG,quaternions:pG,quatint:dG,quest:hG,questeq:mG,quot:vG,QUOT:gG,rAarr:yG,race:bG,Racute:EG,racute:_G,radic:kG,raemptyv:xG,rang:wG,Rang:$G,rangd:CG,range:AG,rangle:SG,raquo:TG,rarrap:DG,rarrb:NG,rarrbfs:OG,rarrc:IG,rarr:FG,Rarr:LG,rArr:RG,rarrfs:MG,rarrhk:qG,rarrlp:PG,rarrpl:BG,rarrsim:VG,Rarrtl:jG,rarrtl:UG,rarrw:zG,ratail:HG,rAtail:GG,ratio:WG,rationals:QG,rbarr:YG,rBarr:JG,RBarr:ZG,rbbrk:XG,rbrace:KG,rbrack:eW,rbrke:tW,rbrksld:nW,rbrkslu:rW,Rcaron:oW,rcaron:iW,Rcedil:sW,rcedil:aW,rceil:cW,rcub:lW,Rcy:uW,rcy:fW,rdca:pW,rdldhar:dW,rdquo:hW,rdquor:mW,rdsh:vW,real:gW,realine:yW,realpart:bW,reals:EW,Re:_W,rect:kW,reg:xW,REG:wW,ReverseElement:$W,ReverseEquilibrium:CW,ReverseUpEquilibrium:AW,rfisht:SW,rfloor:TW,rfr:DW,Rfr:NW,rHar:OW,rhard:IW,rharu:FW,rharul:LW,Rho:RW,rho:MW,rhov:qW,RightAngleBracket:PW,RightArrowBar:BW,rightarrow:VW,RightArrow:jW,Rightarrow:UW,RightArrowLeftArrow:zW,rightarrowtail:HW,RightCeiling:GW,RightDoubleBracket:WW,RightDownTeeVector:QW,RightDownVectorBar:YW,RightDownVector:JW,RightFloor:ZW,rightharpoondown:XW,rightharpoonup:KW,rightleftarrows:eQ,rightleftharpoons:tQ,rightrightarrows:nQ,rightsquigarrow:rQ,RightTeeArrow:oQ,RightTee:iQ,RightTeeVector:sQ,rightthreetimes:aQ,RightTriangleBar:cQ,RightTriangle:lQ,RightTriangleEqual:uQ,RightUpDownVector:fQ,RightUpTeeVector:pQ,RightUpVectorBar:dQ,RightUpVector:hQ,RightVectorBar:mQ,RightVector:vQ,ring:gQ,risingdotseq:yQ,rlarr:bQ,rlhar:EQ,rlm:_Q,rmoustache:kQ,rmoust:xQ,rnmid:wQ,roang:$Q,roarr:CQ,robrk:AQ,ropar:SQ,ropf:TQ,Ropf:DQ,roplus:NQ,rotimes:OQ,RoundImplies:IQ,rpar:FQ,rpargt:LQ,rppolint:RQ,rrarr:MQ,Rrightarrow:qQ,rsaquo:PQ,rscr:BQ,Rscr:VQ,rsh:jQ,Rsh:UQ,rsqb:zQ,rsquo:HQ,rsquor:GQ,rthree:WQ,rtimes:QQ,rtri:YQ,rtrie:JQ,rtrif:ZQ,rtriltri:XQ,RuleDelayed:KQ,ruluhar:eY,rx:tY,Sacute:nY,sacute:rY,sbquo:oY,scap:iY,Scaron:sY,scaron:aY,Sc:cY,sc:lY,sccue:uY,sce:fY,scE:pY,Scedil:dY,scedil:hY,Scirc:mY,scirc:vY,scnap:gY,scnE:yY,scnsim:bY,scpolint:EY,scsim:_Y,Scy:kY,scy:xY,sdotb:wY,sdot:$Y,sdote:CY,searhk:AY,searr:SY,seArr:TY,searrow:DY,sect:NY,semi:OY,seswar:IY,setminus:FY,setmn:LY,sext:RY,Sfr:MY,sfr:qY,sfrown:PY,sharp:BY,SHCHcy:VY,shchcy:jY,SHcy:UY,shcy:zY,ShortDownArrow:HY,ShortLeftArrow:GY,shortmid:WY,shortparallel:QY,ShortRightArrow:YY,ShortUpArrow:JY,shy:ZY,Sigma:XY,sigma:KY,sigmaf:eJ,sigmav:tJ,sim:nJ,simdot:rJ,sime:oJ,simeq:iJ,simg:sJ,simgE:aJ,siml:cJ,simlE:lJ,simne:uJ,simplus:fJ,simrarr:pJ,slarr:dJ,SmallCircle:hJ,smallsetminus:mJ,smashp:vJ,smeparsl:gJ,smid:yJ,smile:bJ,smt:EJ,smte:_J,smtes:kJ,SOFTcy:xJ,softcy:wJ,solbar:$J,solb:CJ,sol:AJ,Sopf:SJ,sopf:TJ,spades:DJ,spadesuit:NJ,spar:OJ,sqcap:IJ,sqcaps:FJ,sqcup:LJ,sqcups:RJ,Sqrt:MJ,sqsub:qJ,sqsube:PJ,sqsubset:BJ,sqsubseteq:VJ,sqsup:jJ,sqsupe:UJ,sqsupset:zJ,sqsupseteq:HJ,square:GJ,Square:WJ,SquareIntersection:QJ,SquareSubset:YJ,SquareSubsetEqual:JJ,SquareSuperset:ZJ,SquareSupersetEqual:XJ,SquareUnion:KJ,squarf:eZ,squ:tZ,squf:nZ,srarr:rZ,Sscr:oZ,sscr:iZ,ssetmn:sZ,ssmile:aZ,sstarf:cZ,Star:lZ,star:uZ,starf:fZ,straightepsilon:pZ,straightphi:dZ,strns:hZ,sub:mZ,Sub:vZ,subdot:gZ,subE:yZ,sube:bZ,subedot:EZ,submult:_Z,subnE:kZ,subne:xZ,subplus:wZ,subrarr:$Z,subset:CZ,Subset:AZ,subseteq:SZ,subseteqq:TZ,SubsetEqual:DZ,subsetneq:NZ,subsetneqq:OZ,subsim:IZ,subsub:FZ,subsup:LZ,succapprox:RZ,succ:MZ,succcurlyeq:qZ,Succeeds:PZ,SucceedsEqual:BZ,SucceedsSlantEqual:VZ,SucceedsTilde:jZ,succeq:UZ,succnapprox:zZ,succneqq:HZ,succnsim:GZ,succsim:WZ,SuchThat:QZ,sum:YZ,Sum:JZ,sung:ZZ,sup1:XZ,sup2:KZ,sup3:eX,sup:tX,Sup:nX,supdot:rX,supdsub:oX,supE:iX,supe:sX,supedot:aX,Superset:cX,SupersetEqual:lX,suphsol:uX,suphsub:fX,suplarr:pX,supmult:dX,supnE:hX,supne:mX,supplus:vX,supset:gX,Supset:yX,supseteq:bX,supseteqq:EX,supsetneq:_X,supsetneqq:kX,supsim:xX,supsub:wX,supsup:$X,swarhk:CX,swarr:AX,swArr:SX,swarrow:TX,swnwar:DX,szlig:NX,Tab:OX,target:IX,Tau:FX,tau:LX,tbrk:RX,Tcaron:MX,tcaron:qX,Tcedil:PX,tcedil:BX,Tcy:VX,tcy:jX,tdot:UX,telrec:zX,Tfr:HX,tfr:GX,there4:WX,therefore:QX,Therefore:YX,Theta:JX,theta:ZX,thetasym:XX,thetav:KX,thickapprox:eK,thicksim:tK,ThickSpace:nK,ThinSpace:rK,thinsp:oK,thkap:iK,thksim:sK,THORN:aK,thorn:cK,tilde:lK,Tilde:uK,TildeEqual:fK,TildeFullEqual:pK,TildeTilde:dK,timesbar:hK,timesb:mK,times:vK,timesd:gK,tint:yK,toea:bK,topbot:EK,topcir:_K,top:kK,Topf:xK,topf:wK,topfork:$K,tosa:CK,tprime:AK,trade:SK,TRADE:TK,triangle:DK,triangledown:NK,triangleleft:OK,trianglelefteq:IK,triangleq:FK,triangleright:LK,trianglerighteq:RK,tridot:MK,trie:qK,triminus:PK,TripleDot:BK,triplus:VK,trisb:jK,tritime:UK,trpezium:zK,Tscr:HK,tscr:GK,TScy:WK,tscy:QK,TSHcy:YK,tshcy:JK,Tstrok:ZK,tstrok:XK,twixt:KK,twoheadleftarrow:eee,twoheadrightarrow:tee,Uacute:nee,uacute:ree,uarr:oee,Uarr:iee,uArr:see,Uarrocir:aee,Ubrcy:cee,ubrcy:lee,Ubreve:uee,ubreve:fee,Ucirc:pee,ucirc:dee,Ucy:hee,ucy:mee,udarr:vee,Udblac:gee,udblac:yee,udhar:bee,ufisht:Eee,Ufr:_ee,ufr:kee,Ugrave:xee,ugrave:wee,uHar:$ee,uharl:Cee,uharr:Aee,uhblk:See,ulcorn:Tee,ulcorner:Dee,ulcrop:Nee,ultri:Oee,Umacr:Iee,umacr:Fee,uml:Lee,UnderBar:Ree,UnderBrace:Mee,UnderBracket:qee,UnderParenthesis:Pee,Union:Bee,UnionPlus:Vee,Uogon:jee,uogon:Uee,Uopf:zee,uopf:Hee,UpArrowBar:Gee,uparrow:Wee,UpArrow:Qee,Uparrow:Yee,UpArrowDownArrow:Jee,updownarrow:Zee,UpDownArrow:Xee,Updownarrow:Kee,UpEquilibrium:ete,upharpoonleft:tte,upharpoonright:nte,uplus:rte,UpperLeftArrow:ote,UpperRightArrow:ite,upsi:ste,Upsi:ate,upsih:cte,Upsilon:lte,upsilon:ute,UpTeeArrow:fte,UpTee:pte,upuparrows:dte,urcorn:hte,urcorner:mte,urcrop:vte,Uring:gte,uring:yte,urtri:bte,Uscr:Ete,uscr:_te,utdot:kte,Utilde:xte,utilde:wte,utri:$te,utrif:Cte,uuarr:Ate,Uuml:Ste,uuml:Tte,uwangle:Dte,vangrt:Nte,varepsilon:Ote,varkappa:Ite,varnothing:Fte,varphi:Lte,varpi:Rte,varpropto:Mte,varr:qte,vArr:Pte,varrho:Bte,varsigma:Vte,varsubsetneq:jte,varsubsetneqq:Ute,varsupsetneq:zte,varsupsetneqq:Hte,vartheta:Gte,vartriangleleft:Wte,vartriangleright:Qte,vBar:Yte,Vbar:Jte,vBarv:Zte,Vcy:Xte,vcy:Kte,vdash:ene,vDash:tne,Vdash:nne,VDash:rne,Vdashl:one,veebar:ine,vee:sne,Vee:ane,veeeq:cne,vellip:lne,verbar:une,Verbar:fne,vert:pne,Vert:dne,VerticalBar:hne,VerticalLine:mne,VerticalSeparator:vne,VerticalTilde:gne,VeryThinSpace:yne,Vfr:bne,vfr:Ene,vltri:_ne,vnsub:kne,vnsup:xne,Vopf:wne,vopf:$ne,vprop:Cne,vrtri:Ane,Vscr:Sne,vscr:Tne,vsubnE:Dne,vsubne:Nne,vsupnE:One,vsupne:Ine,Vvdash:Fne,vzigzag:Lne,Wcirc:Rne,wcirc:Mne,wedbar:qne,wedge:Pne,Wedge:Bne,wedgeq:Vne,weierp:jne,Wfr:Une,wfr:zne,Wopf:Hne,wopf:Gne,wp:Wne,wr:Qne,wreath:Yne,Wscr:Jne,wscr:Zne,xcap:Xne,xcirc:Kne,xcup:ere,xdtri:tre,Xfr:nre,xfr:rre,xharr:ore,xhArr:ire,Xi:sre,xi:are,xlarr:cre,xlArr:lre,xmap:ure,xnis:fre,xodot:pre,Xopf:dre,xopf:hre,xoplus:mre,xotime:vre,xrarr:gre,xrArr:yre,Xscr:bre,xscr:Ere,xsqcup:_re,xuplus:kre,xutri:xre,xvee:wre,xwedge:$re,Yacute:Cre,yacute:Are,YAcy:Sre,yacy:Tre,Ycirc:Dre,ycirc:Nre,Ycy:Ore,ycy:Ire,yen:Fre,Yfr:Lre,yfr:Rre,YIcy:Mre,yicy:qre,Yopf:Pre,yopf:Bre,Yscr:Vre,yscr:jre,YUcy:Ure,yucy:zre,yuml:Hre,Yuml:Gre,Zacute:Wre,zacute:Qre,Zcaron:Yre,zcaron:Jre,Zcy:Zre,zcy:Xre,Zdot:Kre,zdot:eoe,zeetrf:toe,ZeroWidthSpace:noe,Zeta:roe,zeta:ooe,zfr:ioe,Zfr:soe,ZHcy:aoe,zhcy:coe,zigrarr:loe,zopf:uoe,Zopf:foe,Zscr:poe,zscr:doe,zwj:hoe,zwnj:moe},Pb=voe,Bd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,us={},vg={};function Bb(t){var e,n,o=vg[t];if(o)return o;for(o=vg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}$(Bb,"getEncodeCache");function Pa(t,e,n){var o,i,a,l,f,d="";for(typeof e!="string"&&(n=e,e=Pa.defaultChars),typeof n>"u"&&(n=!0),f=Bb(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(l=t.charCodeAt(o+1),l>=56320&&l<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}$(Pa,"encode$1");Pa.defaultChars=";/?:@&=+$,-_.!~*'()#";Pa.componentChars="-_.!~*'()";var goe=Pa,gg={};function Vb(t){var e,n,o=gg[t];if(o)return o;for(o=gg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}$(Vb,"getDecodeCache");function Ba(t,e){var n;return typeof e!="string"&&(e=Ba.defaultChars),n=Vb(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,l,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(l=parseInt(o.slice(i+1,i+3),16),l<128){y+=n[l];continue}if((l&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=l<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((l&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=l<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((l&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=l<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}$(Ba,"decode$1");Ba.defaultChars=";/?:@&=+$,#";Ba.componentChars="";var yoe=Ba,boe=$(function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n},"format");function ba(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}$(ba,"Url");var Eoe=/^([a-z0-9.+-]+:)/i,_oe=/:[0-9]*$/,koe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xoe=["<",">",'"',"`"," ","\r",`
185
+ `," "],woe=["{","}","|","\\","^","`"].concat(xoe),$oe=["'"].concat(woe),yg=["%","/","?",";","#"].concat($oe),bg=["/","?","#"],Coe=255,Eg=/^[+a-z0-9A-Z_-]{0,63}$/,Aoe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_g={javascript:!0,"javascript:":!0},kg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jb(t,e){if(t&&t instanceof ba)return t;var n=new ba;return n.parse(t,e),n}$(jb,"urlParse");ba.prototype.parse=function(t,e){var n,o,i,a,l,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=koe.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=Eoe.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l=f.substr(0,2)==="//",l&&!(h&&_g[h])&&(f=f.substr(2),this.slashes=!0)),!_g[h]&&(l||h&&!kg[h])){var v=-1;for(n=0;n<bg.length;n++)a=f.indexOf(bg[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<yg.length;n++)a=f.indexOf(yg[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(Eg)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(Eg)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match(Aoe);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>Coe&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),kg[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ba.prototype.parseHost=function(t){var e=_oe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Soe=jb;us.encode=goe;us.decode=yoe;us.format=boe;us.parse=Soe;var fs={},Ub=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zb=/[\0-\x1F\x7F-\x9F]/,Toe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Hb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;fs.Any=Ub;fs.Cc=zb;fs.Cf=Toe;fs.P=Bd;fs.Z=Hb;(function(t){function e(L){return Object.prototype.toString.call(L)}$(e,"_class");function n(L){return e(L)==="[object String]"}$(n,"isString");var o=Object.prototype.hasOwnProperty;function i(L,x){return o.call(L,x)}$(i,"has");function a(L){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){L[J]=j[J]})}}),L}$(a,"assign");function l(L,x,j){return[].concat(L.slice(0,x),j,L.slice(x+1))}$(l,"arrayReplaceAt");function f(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}$(f,"isValidEntityCode");function d(L){if(L>65535){L-=65536;var x=55296+(L>>10),j=56320+(L&1023);return String.fromCharCode(x,j)}return String.fromCharCode(L)}$(d,"fromCodePoint");var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=Pb;function C(L,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):L}$(C,"replaceEntityPattern");function S(L){return L.indexOf("\\")<0?L:L.replace(h,"$1")}$(S,"unescapeMd");function N(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(y,function(x,j,J){return j||C(x,J)})}$(N,"unescapeAll");var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function V(L){return O[L]}$(V,"replaceUnsafeChar");function Y(L){return D.test(L)?L.replace(T,V):L}$(Y,"escapeHtml");var P=/[.?*+^$[\]\\(){}|-]/g;function U(L){return L.replace(P,"\\$&")}$(U,"escapeRE");function K(L){switch(L){case 9:case 32:return!0}return!1}$(K,"isSpace");function G(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}$(G,"isWhiteSpace");var Q=Bd;function re(L){return Q.test(L)}$(re,"isPunctChar");function _e(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}$(_e,"isMdAsciiPunct");function H(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}$(H,"normalizeReference"),t.lib={},t.lib.mdurl=us,t.lib.ucmicro=fs,t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=l,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=re,t.escapeRE=U,t.normalizeReference=H})(et);var eu={},Doe=$(function(e,n,o){var i,a,l,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(l=e.src.charCodeAt(e.pos),l===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),l===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},"parseLinkLabel"),xg=et.unescapeAll,Noe=$(function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=xg(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=xg(e.slice(f,n)),d.lines=l,d.pos=n,d.ok=!0),d},"parseLinkDestination"),Ooe=et.unescapeAll,Ioe=$(function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=l,d.str=Ooe(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?l++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&l++),n++}return d},"parseLinkTitle");eu.parseLinkLabel=Doe;eu.parseLinkDestination=Noe;eu.parseLinkTitle=Ioe;var Foe=et.assign,Loe=et.unescapeAll,Ko=et.escapeHtml,wr={};wr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+Ko(t[e].content)+"</code>"};wr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+Ko(t[e].content)+`</code></pre>
186
+ `};wr.fence=function(t,e,n,o,i){var a=t[e],l=a.info?Loe(a.info).trim():"",f="",d="",h,v,y,g,E;return l&&(y=l.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||Ko(a.content):h=Ko(a.content),h.indexOf("<pre")===0?h+`
187
187
  `:l?(v=a.attrIndex("class"),g=a.attrs?a.attrs.slice():[],v<0?g.push(["class",n.langPrefix+f]):(g[v]=g[v].slice(),g[v][1]+=" "+n.langPrefix+f),E={attrs:g},"<pre><code"+i.renderAttrs(E)+">"+h+`</code></pre>
188
188
  `):"<pre><code"+i.renderAttrs(a)+">"+h+`</code></pre>
189
189
  `};wr.image=function(t,e,n,o,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,o),i.renderToken(t,e,n)};wr.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
@@ -191,27 +191,27 @@ ${e.join(`
191
191
  `};wr.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
192
192
  `:`<br>
193
193
  `:`
194
- `};wr.text=function(t,e){return Ko(t[e].content)};wr.html_block=function(t,e){return t[e].content};wr.html_inline=function(t,e){return t[e].content};function ci(){this.rules=Loe({},wr)}$(ci,"Renderer$1");ci.prototype.renderAttrs=$(function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+Ko(e.attrs[n][0])+'="'+Ko(e.attrs[n][1])+'"';return i},"renderAttrs");ci.prototype.renderToken=$(function(e,n,o){var i,a="",l=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
194
+ `};wr.text=function(t,e){return Ko(t[e].content)};wr.html_block=function(t,e){return t[e].content};wr.html_inline=function(t,e){return t[e].content};function ci(){this.rules=Foe({},wr)}$(ci,"Renderer$1");ci.prototype.renderAttrs=$(function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+Ko(e.attrs[n][0])+'="'+Ko(e.attrs[n][1])+'"';return i},"renderAttrs");ci.prototype.renderToken=$(function(e,n,o){var i,a="",l=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
195
195
  `),a+=(f.nesting===-1?"</":"<")+f.tag,a+=this.renderAttrs(f),f.nesting===0&&o.xhtmlOut&&(a+=" /"),f.block&&(l=!0,f.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===f.tag)&&(l=!1))),a+=l?`>
196
196
  `:">",a)},"renderToken");ci.prototype.renderInline=function(t,e,n){for(var o,i="",a=this.rules,l=0,f=t.length;l<f;l++)o=t[l].type,typeof a[o]<"u"?i+=a[o](t,l,e,n,this):i+=this.renderToken(t,l,e);return i};ci.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,a=t.length;i<a;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
197
197
  `);return o};ci.prototype.render=function(t,e,n){var o,i,a,l="",f=this.rules;for(o=0,i=t.length;o<i;o++)a=t[o].type,a==="inline"?l+=this.renderInline(t[o].children,e,n):typeof f[a]<"u"?l+=f[t[o].type](t,o,e,n,this):l+=this.renderToken(t,o,e,n);return l};var Roe=ci;function Pn(){this.__rules__=[],this.__cache__=null}$(Pn,"Ruler$3");Pn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Pn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};Pn.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};Pn.prototype.before=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Pn.prototype.after=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Pn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Pn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};Pn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Pn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};Pn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Vd=Pn,Moe=/\r\n?|\n/g,qoe=/\0/g,Poe=$(function(e){var n;n=e.src.replace(Moe,`
198
198
  `),n=n.replace(qoe,"�"),e.src=n},"normalize"),Boe=$(function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},"block"),Voe=$(function(e){var n=e.tokens,o,i,a;for(i=0,a=n.length;i<a;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},"inline"),joe=et.arrayReplaceAt;function Gb(t){return/^<a[>\s]/i.test(t)}$(Gb,"isLinkOpen");function Wb(t){return/^<\/a\s*>/i.test(t)}$(Wb,"isLinkClose");var Uoe=$(function(e){var n,o,i,a,l,f,d,h,v,y,g,E,C,S,N,D,T=e.tokens,O;if(e.md.options.linkify){for(o=0,i=T.length;o<i;o++)if(!(T[o].type!=="inline"||!e.md.linkify.pretest(T[o].content)))for(a=T[o].children,C=0,n=a.length-1;n>=0;n--){if(f=a[n],f.type==="link_close"){for(n--;a[n].level!==f.level&&a[n].type!=="link_open";)n--;continue}if(f.type==="html_inline"&&(Gb(f.content)&&C>0&&C--,Wb(f.content)&&C++),!(C>0)&&f.type==="text"&&e.md.linkify.test(f.content)){for(v=f.content,O=e.md.linkify.match(v),d=[],E=f.level,g=0,h=0;h<O.length;h++)S=O[h].url,N=e.md.normalizeLink(S),e.md.validateLink(N)&&(D=O[h].text,O[h].schema?O[h].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,""),y=O[h].index,y>g&&(l=new e.Token("text","",0),l.content=v.slice(g,y),l.level=E,d.push(l)),l=new e.Token("link_open","a",1),l.attrs=[["href",N]],l.level=E++,l.markup="linkify",l.info="auto",d.push(l),l=new e.Token("text","",0),l.content=D,l.level=E,d.push(l),l=new e.Token("link_close","a",-1),l.level=--E,l.markup="linkify",l.info="auto",d.push(l),g=O[h].lastIndex);g<v.length&&(l=new e.Token("text","",0),l.content=v.slice(g),l.level=E,d.push(l)),T[o].children=a=joe(a,n,d)}}}},"linkify"),Qb=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,zoe=/\((c|tm|r|p)\)/i,Hoe=/\((c|tm|r|p)\)/ig,Goe={c:"©",r:"®",p:"§",tm:"™"};function Yb(t,e){return Goe[e.toLowerCase()]}$(Yb,"replaceFn");function Jb(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(Hoe,Yb)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}$(Jb,"replace_scoped");function Zb(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&Qb.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}$(Zb,"replace_rare");var Woe=$(function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(zoe.test(e.tokens[n].content)&&Jb(e.tokens[n].children),Qb.test(e.tokens[n].content)&&Zb(e.tokens[n].children))},"replace"),wg=et.isWhiteSpace,$g=et.isPunctChar,Cg=et.isMdAsciiPunct,Qoe=/['"]/,Ag=/['"]/g,Sg="’";function ia(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}$(ia,"replaceAt");function Xb(t,e){var n,o,i,a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;for(V=[],n=0;n<t.length;n++){for(o=t[n],d=t[n].level,T=V.length-1;T>=0&&!(V[T].level<=d);T--);if(V.length=T+1,o.type==="text"){i=o.content,l=0,f=i.length;e:for(;l<f&&(Ag.lastIndex=l,a=Ag.exec(i),!!a);){if(N=D=!0,l=a.index+1,O=a[0]==="'",v=32,a.index-1>=0)v=i.charCodeAt(a.index-1);else for(T=n-1;T>=0&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T--)if(t[T].content){v=t[T].content.charCodeAt(t[T].content.length-1);break}if(y=32,l<f)y=i.charCodeAt(l);else for(T=n+1;T<t.length&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T++)if(t[T].content){y=t[T].content.charCodeAt(0);break}if(g=Cg(v)||$g(String.fromCharCode(v)),E=Cg(y)||$g(String.fromCharCode(y)),C=wg(v),S=wg(y),S?N=!1:E&&(C||g||(N=!1)),C?D=!1:g&&(S||E||(D=!1)),y===34&&a[0]==='"'&&v>=48&&v<=57&&(D=N=!1),N&&D&&(N=g,D=E),!N&&!D){O&&(o.content=ia(o.content,a.index,Sg));continue}if(D){for(T=V.length-1;T>=0&&(h=V[T],!(V[T].level<d));T--)if(h.single===O&&V[T].level===d){h=V[T],O?(Y=e.md.options.quotes[2],P=e.md.options.quotes[3]):(Y=e.md.options.quotes[0],P=e.md.options.quotes[1]),o.content=ia(o.content,a.index,P),t[h.token].content=ia(t[h.token].content,h.pos,Y),l+=P.length-1,h.token===n&&(l+=Y.length-1),i=o.content,f=i.length,V.length=T;continue e}}N?V.push({token:n,pos:a.index,single:O,level:d}):D&&O&&(o.content=ia(o.content,a.index,Sg))}}}}$(Xb,"process_inlines");var Yoe=$(function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Qoe.test(e.tokens[n].content)||Xb(e.tokens[n].children,e)},"smartquotes");function li(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}$(li,"Token$3");li.prototype.attrIndex=$(function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1},"attrIndex");li.prototype.attrPush=$(function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},"attrPush");li.prototype.attrSet=$(function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i},"attrSet");li.prototype.attrGet=$(function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o},"attrGet");li.prototype.attrJoin=$(function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n},"attrJoin");var jd=li,Joe=jd;function Ud(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}$(Ud,"StateCore");Ud.prototype.Token=Joe;var Zoe=Ud,Xoe=Vd,Hf=[["normalize",Poe],["block",Boe],["inline",Voe],["linkify",Uoe],["replacements",Woe],["smartquotes",Yoe]];function tu(){this.ruler=new Xoe;for(var t=0;t<Hf.length;t++)this.ruler.push(Hf[t][0],Hf[t][1])}$(tu,"Core");tu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};tu.prototype.State=Zoe;var Koe=tu,Gf=et.isSpace;function il(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.substr(n,o-n)}$(il,"getLine");function Ap(t){var e=[],n=0,o=t.length,i,a=!1,l=0,f="";for(i=t.charCodeAt(n);n<o;)i===124&&(a?(f+=t.substring(l,n-1),l=n):(e.push(f+t.substring(l,n)),f="",l=n+1)),a=i===92,n++,i=t.charCodeAt(n);return e.push(f+t.substring(l)),e}$(Ap,"escapedSplit");var eie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;if(n+2>o||(v=n+1,e.sCount[v]<e.blkIndent)||e.sCount[v]-e.blkIndent>=4||(f=e.bMarks[v]+e.tShift[v],f>=e.eMarks[v])||(Y=e.src.charCodeAt(f++),Y!==124&&Y!==45&&Y!==58)||f>=e.eMarks[v]||(P=e.src.charCodeAt(f++),P!==124&&P!==45&&P!==58&&!Gf(P))||Y===45&&Gf(P))return!1;for(;f<e.eMarks[v];){if(a=e.src.charCodeAt(f),a!==124&&a!==45&&a!==58&&!Gf(a))return!1;f++}for(l=il(e,n+1),y=l.split("|"),C=[],d=0;d<y.length;d++){if(S=y[d].trim(),!S){if(d===0||d===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?C.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?C.push("left"):C.push("")}if(l=il(e,n).trim(),l.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(y=Ap(l),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),g=y.length,g===0||g!==C.length))return!1;if(i)return!0;for(T=e.parentType,e.parentType="table",V=e.md.block.ruler.getRules("blockquote"),E=e.push("table_open","table",1),E.map=N=[n,0],E=e.push("thead_open","thead",1),E.map=[n,n+1],E=e.push("tr_open","tr",1),E.map=[n,n+1],d=0;d<y.length;d++)E=e.push("th_open","th",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d].trim(),E.children=[],E=e.push("th_close","th",-1);for(E=e.push("tr_close","tr",-1),E=e.push("thead_close","thead",-1),v=n+2;v<o&&!(e.sCount[v]<e.blkIndent);v++){for(O=!1,d=0,h=V.length;d<h;d++)if(V[d](e,v,o,!0)){O=!0;break}if(O||(l=il(e,v).trim(),!l)||e.sCount[v]-e.blkIndent>=4)break;for(y=Ap(l),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===n+2&&(E=e.push("tbody_open","tbody",1),E.map=D=[n+2,0]),E=e.push("tr_open","tr",1),E.map=[v,v+1],d=0;d<g;d++)E=e.push("td_open","td",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d]?y[d].trim():"",E.children=[],E=e.push("td_close","td",-1);E=e.push("tr_close","tr",-1)}return D&&(E=e.push("tbody_close","tbody",-1),D[1]=v),E=e.push("table_close","table",-1),N[1]=v,e.parentType=T,e.line=v,!0},"table"),tie=$(function(e,n,o){var i,a,l;if(e.sCount[n]-e.blkIndent<4)return!1;for(a=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,a=i;continue}break}return e.line=a,l=e.push("code_block","code",0),l.content=e.getLines(n,a,4+e.blkIndent,!1)+`
199
- `,l.map=[n,e.line],!0},"code"),nie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),l=E-h,l<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<l)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return l=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,l,!0),v.markup=y,v.map=[n,e.line],!0},"fence"),Tg=et.isSpace,rie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],re=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<re&&(l=e.src.charCodeAt(Q),Tg(l));){l===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=re,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],re=e.eMarks[g],!(Q>=re));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<re&&(l=e.src.charCodeAt(Q),Tg(l));){l===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=re,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},"blockquote"),oie=et.isSpace,iie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(l=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!oie(f))return!1;f===a&&l++}return l<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(l+1).join(String.fromCharCode(a))),!0)},"hr"),Kb=et.isSpace;function Sp(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!Kb(a))?-1:o}$(Sp,"skipBulletListMarker");function Tp(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!Kb(n))?-1:i}$(Tp,"skipOrderedListMarker");function eE(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}$(eE,"markTightParagraphs");var sie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,re,_e,H,F,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.tShift[n]>=e.blkIndent&&(J=!0),(re=Tp(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,re-1)),J&&D!==1)return!1}else if((re=Sp(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(re)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(re-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=re,T=e.eMarks[O],v=V=e.sCount[O]+re-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(l=Q,l>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,re-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=l-e.bMarks[n],e.sCount[n]=V,l>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,l=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(F=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){F=!0;break}if(F)break;if(y){if(re=Tp(e,O),re<0)break;H=e.bMarks[O]+e.tShift[O]}else if(re=Sp(e,O),re<0)break;if(N!==e.src.charCodeAt(re-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&eE(e,S),!0},"list"),aie=et.normalizeReference,Hc=et.isSpace,cie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,l=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=l,Y=f);P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=l,Y=f;P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=aie(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},"reference"),lie=["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"],nu={},uie="[a-zA-Z_:][a-zA-Z0-9:._-]*",fie="[^\"'=<>`\\x00-\\x20]+",pie="'[^']*'",die='"[^"]*"',hie="(?:"+fie+"|"+pie+"|"+die+")",mie="(?:\\s+"+uie+"(?:\\s*=\\s*"+hie+")?)",tE="<[A-Za-z][A-Za-z0-9\\-]*"+mie+"*\\s*\\/?>",nE="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",gie="<[?][\\s\\S]*?[?]>",yie="<![A-Z]+\\s+[^>]*>",bie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Eie=new RegExp("^(?:"+tE+"|"+nE+"|"+vie+"|"+gie+"|"+yie+"|"+bie+")"),_ie=new RegExp("^(?:"+tE+"|"+nE+")");nu.HTML_TAG_RE=Eie;nu.HTML_OPEN_CLOSE_TAG_RE=_ie;var kie=lie,xie=nu.HTML_OPEN_CLOSE_TAG_RE,Mi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+kie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(xie.source+"\\s*$"),/^$/,!1]],wie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<Mi.length&&!Mi[a][0].test(d);a++);if(a===Mi.length)return!1;if(i)return Mi[a][2];if(l=n+1,!Mi[a][1].test(d)){for(;l<o&&!(e.sCount[l]<e.blkIndent);l++)if(h=e.bMarks[l]+e.tShift[l],v=e.eMarks[l],d=e.src.slice(h,v),Mi[a][1].test(d)){d.length!==0&&l++;break}}return e.line=l,f=e.push("html_block","",0),f.map=[n,l],f.content=e.getLines(n,l,e.blkIndent,!0),!0},"html_block"),Dg=et.isSpace,$ie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(l=1,a=e.src.charCodeAt(++h);a===35&&h<v&&l<=6;)l++,a=e.src.charCodeAt(++h);return l>6||h<v&&!Dg(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&Dg(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(l),1),d.markup="########".slice(0,l),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(l),-1),d.markup="########".slice(0,l)),!0)},"heading"),Cie=$(function(e,n,o){var i,a,l,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,l=0,f=S.length;l<f;l++)if(S[l](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},"lheading"),Aie=$(function(e,n){var o,i,a,l,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,l=v.length;a<l;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},"paragraph"),rE=jd,ru=et.isSpace;function Xn(t,e,n,o){var i,a,l,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,l=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if(ru(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(l),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,l=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}$(Xn,"StateBlock");Xn.prototype.push=function(t,e,n){var o=new rE(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Xn.prototype.isEmpty=$(function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},"isEmpty");Xn.prototype.skipEmptyLines=$(function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},"skipEmptyLines");Xn.prototype.skipSpaces=$(function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!ru(n));e++);return e},"skipSpaces");Xn.prototype.skipSpacesBack=$(function(e,n){if(e<=n)return e;for(;e>n;)if(!ru(this.src.charCodeAt(--e)))return e+1;return e},"skipSpacesBack");Xn.prototype.skipChars=$(function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e},"skipChars");Xn.prototype.skipCharsBack=$(function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e},"skipCharsBack");Xn.prototype.getLines=$(function(e,n,o,i){var a,l,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(l=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&l<o;){if(f=this.src.charCodeAt(d),ru(f))f===9?l+=4-(l+this.bsCount[g])%4:l++;else if(d-y<this.tShift[g])l++;else break;d++}l>o?v[a]=new Array(l-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")},"getLines");Xn.prototype.Token=rE;var Sie=Xn,Tie=Vd,Gc=[["table",eie,["paragraph","reference"]],["code",tie],["fence",nie,["paragraph","reference","blockquote","list"]],["blockquote",rie,["paragraph","reference","blockquote","list"]],["hr",iie,["paragraph","reference","blockquote","list"]],["list",sie,["paragraph","reference","blockquote"]],["reference",cie],["html_block",wie,["paragraph","reference","blockquote"]],["heading",$ie,["paragraph","reference","blockquote"]],["lheading",Cie],["paragraph",Aie]];function Va(){this.ruler=new Tie;for(var t=0;t<Gc.length;t++)this.ruler.push(Gc[t][0],Gc[t][1],{alt:(Gc[t][2]||[]).slice()})}$(Va,"ParserBlock$1");Va.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),l=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<l&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Va.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Va.prototype.State=Sie;var Die=Va;function oE(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}$(oE,"isTerminatorChar");var Nie=$(function(e,n){for(var o=e.pos;o<e.posMax&&!oE(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},"text"),Oie=et.isSpace,Iie=$(function(e,n){var o,i,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;for(o=e.pending.length-1,i=e.posMax,n||(o>=0&&e.pending.charCodeAt(o)===32?o>=1&&e.pending.charCodeAt(o-1)===32?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),a++;a<i&&Oie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},"newline"),Lie=et.isSpace,zd=[];for(var Ng=0;Ng<256;Ng++)zd.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){zd[t.charCodeAt(0)]=1});var Fie=$(function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&zd[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!Lie(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},"escape"),Rie=$(function(e,n){var o,i,a,l,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(l=e.push("code_inline","code",0),l.markup=a,l.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},"backtick"),ou={};ou.tokenize=$(function(e,n){var o,i,a,l,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),l=i.length,f=String.fromCharCode(h),l<2))return!1;for(l%2&&(a=e.push("text","",0),a.content=f,l--),o=0;o<l;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,jump:o/2,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"strikethrough");function Dp(t,e){var n,o,i,a,l,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],l=t.tokens[i.token],l.type="s_open",l.tag="s",l.nesting=1,l.markup="~~",l.content="",l=t.tokens[a.token],l.type="s_close",l.tag="s",l.nesting=-1,l.markup="~~",l.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(l=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=l)}}$(Dp,"postProcess$1");ou.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Dp(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Dp(e,o[n].delimiters)},"strikethrough");var iu={};iu.tokenize=$(function(e,n){var o,i,a,l=e.pos,f=e.src.charCodeAt(l);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,jump:o,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"emphasis");function Np(t,e){var n,o,i,a,l,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1&&e[n-1].marker===o.marker,l=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?l+l:l,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?l+l:l,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}$(Np,"postProcess");iu.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Np(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Np(e,o[n].delimiters)},"emphasis");var Mie=et.normalizeReference,Wf=et.isSpace,qie=$(function(e,n){var o,i,a,l,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(d=l+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=l+1):d=l+1,a||(a=e.src.slice(f,l)),v=e.env.references[Mie(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=l,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},"link"),Pie=et.normalizeReference,Qf=et.isSpace,Bie=$(function(e,n){var o,i,a,l,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?l=e.src.slice(S,h++):h=f+1):h=f+1,l||(l=e.src.slice(d,f)),v=e.env.references[Pie(l)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},"image"),Vie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Uie=$(function(e,n){var o,i,a,l,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(l=e.src.charCodeAt(h),l===60))return!1;if(l===62)break}return o=e.src.slice(f+1,h),jie.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):Vie.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},"autolink"),zie=nu.HTML_TAG_RE;function iE(t){var e=t|32;return e>=97&&e<=122}$(iE,"isLetter");var Hie=$(function(e,n){var o,i,a,l,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!iE(o))||(i=e.src.slice(f).match(zie),!i)?!1:(n||(l=e.push("html_inline","",0),l.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},"html_inline"),Og=Pb,Gie=et.has,Wie=et.isValidEntityCode,Ig=et.fromCodePoint,Qie=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Yie=/^&([a-z][a-z0-9]{1,31});/i,Jie=$(function(e,n){var o,i,a,l=e.pos,f=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1<f){if(o=e.src.charCodeAt(l+1),o===35){if(a=e.src.slice(l).match(Qie),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=Wie(i)?Ig(i):Ig(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(l).match(Yie),a&&Gie(Og,a[1]))return n||(e.pending+=Og[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0},"entity");function Op(t,e){var n,o,i,a,l,f,d,h,v={},y=e.length;for(n=0;n<y;n++)if(i=e[n],i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),l=v[i.marker][(i.open?3:0)+i.length%3],o=n-i.jump-1,o<-1&&(o=-1),f=o;o>l;o-=a.jump+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?e[o-1].jump+1:0,i.jump=n-o+h,i.open=!1,a.end=n,a.jump=h,a.close=!1,f=-1;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}$(Op,"processDelimiters");var Zie=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Op(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Op(e,o[n].delimiters)},"link_pairs"),Xie=$(function(e){var n,o,i=0,a=e.tokens,l=e.tokens.length;for(n=o=0;n<l;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<l&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},"text_collapse"),Hd=jd,Lg=et.isWhiteSpace,Fg=et.isPunctChar,Rg=et.isMdAsciiPunct;function ps(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}$(ps,"StateInline");ps.prototype.pushPending=function(){var t=new Hd("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ps.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Hd(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};ps.prototype.scanDelims=function(t,e){var n=t,o,i,a,l,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=Rg(o)||Fg(String.fromCharCode(o)),y=Rg(i)||Fg(String.fromCharCode(i)),d=Lg(o),v=Lg(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(l=g,f=E):(l=g&&(!E||h),f=E&&(!g||y)),{can_open:l,can_close:f,length:a}};ps.prototype.Token=Hd;var Kie=ps,Mg=Vd,Yf=[["text",Nie],["newline",Iie],["escape",Fie],["backticks",Rie],["strikethrough",ou.tokenize],["emphasis",iu.tokenize],["link",qie],["image",Bie],["autolink",Uie],["html_inline",Hie],["entity",Jie]],Jf=[["balance_pairs",Zie],["strikethrough",ou.postProcess],["emphasis",iu.postProcess],["text_collapse",Xie]];function ds(){var t;for(this.ruler=new Mg,t=0;t<Yf.length;t++)this.ruler.push(Yf[t][0],Yf[t][1]);for(this.ruler2=new Mg,t=0;t<Jf.length;t++)this.ruler2.push(Jf[t][0],Jf[t][1])}$(ds,"ParserInline$1");ds.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,l=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<l)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};ds.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(t.level<l)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ds.prototype.parse=function(t,e,n,o){var i,a,l,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),l=a.length,i=0;i<l;i++)a[i](f)};ds.prototype.State=Kie;var ese=ds,tse=$(function(t){var e={};e.src_Any=Ub.source,e.src_Cc=zb.source,e.src_Z=Hb.source,e.src_P=Bd.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e},"re");function bl(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}$(bl,"assign");function ja(t){return Object.prototype.toString.call(t)}$(ja,"_class");function sE(t){return ja(t)==="[object String]"}$(sE,"isString");function aE(t){return ja(t)==="[object Object]"}$(aE,"isObject$2");function cE(t){return ja(t)==="[object RegExp]"}$(cE,"isRegExp");function Ip(t){return ja(t)==="[object Function]"}$(Ip,"isFunction");function lE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}$(lE,"escapeRE");var uE={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function fE(t){return Object.keys(t||{}).reduce(function(e,n){return e||uE.hasOwnProperty(n)},!1)}$(fE,"isOptionsObj");var nse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},rse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ose="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function pE(t){t.__index__=-1,t.__text_cache__=""}$(pE,"resetScanCache");function dE(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}$(dE,"createValidator");function Lp(){return function(t,e){e.normalize(t)}}$(Lp,"createNormalizer");function Ea(t){var e=t.re=tse(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(rse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}$(o,"untpl"),e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}$(a,"schemaError"),Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,aE(d)){cE(d.validate)?h.validate=dE(d.validate):Ip(d.validate)?h.validate=d.validate:a(f,d),Ip(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=Lp();return}if(sE(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:Lp()};var l=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(lE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),pE(t)}$(Ea,"compile");function hE(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}$(hE,"Match");function Fp(t,e){var n=new hE(t,e);return t.__compiled__[n.schema].normalize(n,t),n}$(Fp,"createMatch");function bn(t,e){if(!(this instanceof bn))return new bn(t,e);e||fE(t)&&(e=t,t={}),this.__opts__=bl({},uE,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=bl({},nse,t),this.__compiled__={},this.__tlds__=ose,this.__tlds_replaced__=!1,this.re={},Ea(this)}$(bn,"LinkifyIt$1");bn.prototype.add=$(function(e,n){return this.__schemas__[e]=n,Ea(this),this},"add");bn.prototype.set=$(function(e){return this.__opts__=bl(this.__opts__,e),this},"set");bn.prototype.test=$(function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,l,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=o.index+o[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=f))),this.__index__>=0},"test");bn.prototype.pretest=$(function(e){return this.re.pretest.test(e)},"pretest");bn.prototype.testSchemaAt=$(function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0},"testSchemaAt");bn.prototype.match=$(function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(Fp(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(Fp(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null},"match");bn.prototype.tlds=$(function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Ea(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ea(this),this)},"tlds");bn.prototype.normalize=$(function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},"normalize");bn.prototype.onCompile=$(function(){},"onCompile");var ise=bn;const Hi=2147483647,gr=36,Gd=1,_a=26,sse=38,ase=700,mE=72,vE=128,gE="-",cse=/^xn--/,lse=/[^\0-\x7E]/,use=/[\x2E\u3002\uFF0E\uFF61]/g,fse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Zf=gr-Gd,yr=Math.floor,Xf=String.fromCharCode;function po(t){throw new RangeError(fse[t])}$(po,"error");function yE(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}$(yE,"map");function Wd(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(use,".");const i=t.split("."),a=yE(i,e).join(".");return o+a}$(Wd,"mapDomain");function su(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const a=t.charCodeAt(n++);(a&64512)==56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}$(su,"ucs2decode");const bE=$(t=>String.fromCodePoint(...t),"ucs2encode"),pse=$(function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:gr},"basicToDigit"),qg=$(function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},"digitToBasic"),EE=$(function(t,e,n){let o=0;for(t=n?yr(t/ase):t>>1,t+=yr(t/e);t>Zf*_a>>1;o+=gr)t=yr(t/Zf);return yr(o+(Zf+1)*t/(t+sse))},"adapt"),Qd=$(function(t){const e=[],n=t.length;let o=0,i=vE,a=mE,l=t.lastIndexOf(gE);l<0&&(l=0);for(let f=0;f<l;++f)t.charCodeAt(f)>=128&&po("not-basic"),e.push(t.charCodeAt(f));for(let f=l>0?l+1:0;f<n;){let d=o;for(let v=1,y=gr;;y+=gr){f>=n&&po("invalid-input");const g=pse(t.charCodeAt(f++));(g>=gr||g>yr((Hi-o)/v))&&po("overflow"),o+=g*v;const E=y<=a?Gd:y>=a+_a?_a:y-a;if(g<E)break;const C=gr-E;v>yr(Hi/C)&&po("overflow"),v*=C}const h=e.length+1;a=EE(o-d,h,d==0),yr(o/h)>Hi-i&&po("overflow"),i+=yr(o/h),o%=h,e.splice(o++,0,i)}return String.fromCodePoint(...e)},"decode"),Yd=$(function(t){const e=[];t=su(t);let n=t.length,o=vE,i=0,a=mE;for(const d of t)d<128&&e.push(Xf(d));let l=e.length,f=l;for(l&&e.push(gE);f<n;){let d=Hi;for(const v of t)v>=o&&v<d&&(d=v);const h=f+1;d-o>yr((Hi-i)/h)&&po("overflow"),i+=(d-o)*h,o=d;for(const v of t)if(v<o&&++i>Hi&&po("overflow"),v==o){let y=i;for(let g=gr;;g+=gr){const E=g<=a?Gd:g>=a+_a?_a:g-a;if(y<E)break;const C=y-E,S=gr-E;e.push(Xf(qg(E+C%S,0))),y=yr(C/S)}e.push(Xf(qg(y,0))),a=EE(i,h,f==l),i=0,++f}++i,++o}return e.join("")},"encode"),_E=$(function(t){return Wd(t,function(e){return cse.test(e)?Qd(e.slice(4).toLowerCase()):e})},"toUnicode"),kE=$(function(t){return Wd(t,function(e){return lse.test(e)?"xn--"+Yd(e):e})},"toASCII"),dse={version:"2.1.0",ucs2:{decode:su,encode:bE},decode:Qd,encode:Yd,toASCII:kE,toUnicode:_E};var hse=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:su,ucs2encode:bE,decode:Qd,encode:Yd,toASCII:kE,toUnicode:_E,default:dse}),mse=Mb(hse),vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},gse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},yse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},la=et,bse=eu,Ese=Roe,_se=Koe,kse=Die,xse=ese,wse=ise,Go=us,xE=mse,$se={default:vse,zero:gse,commonmark:yse},Cse=/^(vbscript|javascript|file|data):/,Ase=/^data:image\/(gif|png|jpeg|webp);/;function wE(t){var e=t.trim().toLowerCase();return Cse.test(e)?!!Ase.test(e):!0}$(wE,"validateLink");var $E=["http:","https:","mailto:"];function CE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||$E.indexOf(e.protocol)>=0))try{e.hostname=xE.toASCII(e.hostname)}catch{}return Go.encode(Go.format(e))}$(CE,"normalizeLink");function AE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||$E.indexOf(e.protocol)>=0))try{e.hostname=xE.toUnicode(e.hostname)}catch{}return Go.decode(Go.format(e),Go.decode.defaultChars+"%")}$(AE,"normalizeLinkText");function En(t,e){if(!(this instanceof En))return new En(t,e);e||la.isString(t)||(e=t||{},t="default"),this.inline=new xse,this.block=new kse,this.core=new _se,this.renderer=new Ese,this.linkify=new wse,this.validateLink=wE,this.normalizeLink=CE,this.normalizeLinkText=AE,this.utils=la,this.helpers=la.assign({},bse),this.options={},this.configure(t),e&&this.set(e)}$(En,"MarkdownIt");En.prototype.set=function(t){return la.assign(this.options,t),this};En.prototype.configure=function(t){var e=this,n;if(la.isString(t)&&(n=t,t=$se[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};En.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};En.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};En.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};En.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};En.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};En.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};En.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Sse=En,Tse=Sse;const Rp=new Tse;var Dse=Object.defineProperty,Nse=$((t,e)=>Dse(t,"name",{value:e,configurable:!0}),"__name$j");const au="graphiql",cu="sublime";let SE=!1;typeof window=="object"&&(SE=window.navigator.platform.toLowerCase().indexOf("mac")===0);const lu={[SE?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function ui(t,e){const n=await Xe(()=>import("./codemirror.es-oms3GpFv.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(function(o){return o.c}).then(o=>typeof o=="function"?o:o.default);return await Promise.all((e==null?void 0:e.useCommonAddons)===!1?t:[Xe(()=>import("./show-hint.es-q24U0q_A.js"),__vite__mapDeps([3,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./matchbrackets.es-B-Xj5H9Q.js"),__vite__mapDeps([4,0,1,2]),import.meta.url).then(function(o){return o.m}),Xe(()=>import("./closebrackets.es-C32XuxI5.js"),__vite__mapDeps([5,0,1,2]),import.meta.url).then(function(o){return o.c}),Xe(()=>import("./brace-fold.es-CkrKXotH.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(o){return o.b}),Xe(()=>import("./foldgutter.es-CSicbQSJ.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(o){return o.f}),Xe(()=>import("./lint.es3-g58ofVJA.js"),__vite__mapDeps([8,0,1,2]),import.meta.url).then(function(o){return o.l}),Xe(()=>import("./searchcursor.es-C0Z2DY1c.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./jump-to-line.es-BQjWkUgo.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(o){return o.j}),Xe(()=>import("./dialog.es-DHZdXjGS.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(o){return o.d}),Xe(()=>import("./sublime.es-BffqyCoy.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(o){return o.s}),...t]),n}$(ui,"importCodeMirror");Nse(ui,"importCodeMirror");var Ose=Object.defineProperty,El=$((t,e)=>Ose(t,"name",{value:e,configurable:!0}),"__name$i");function Ua(t,e,n,o){ui([],{useCommonAddons:!1}).then(a=>{let l,f;a.on(e,"select",(d,h)=>{if(!l){const g=h.parentNode;l=document.createElement("div"),l.className="CodeMirror-hint-information",l.addEventListener("click",i),g.appendChild(l),f=document.createElement("div"),f.className="CodeMirror-hint-deprecation",g.appendChild(f);let E;g.addEventListener("DOMNodeRemoved",E=El(C=>{C.target===g&&(g.removeEventListener("DOMNodeRemoved",E),l&&l.removeEventListener("click",i),l=null,f=null,E=null)},"onRemoveFn"))}const v=d.description?Rp.render(d.description):"Self descriptive.",y=d.type?'<span class="infoType">'+ka(d.type)+"</span>":"";if(l.innerHTML='<div class="content">'+(v.slice(0,3)==="<p>"?"<p>"+y+v.slice(3):y+v)+"</div>",d&&f&&d.deprecationReason){const g=d.deprecationReason?Rp.render(d.deprecationReason):"";f.innerHTML='<span class="deprecation-label">Deprecated</span>'+g,f.style.display="block"}else f&&(f.style.display="none")})});function i(a){if(!n||!o||!(a.currentTarget instanceof HTMLElement)||a.currentTarget.className!=="typeName")return;const l=a.currentTarget.innerHTML,f=n.getType(l);f&&(o.show(),o.push({name:f.name,def:f}))}$(i,"onClickHintInformation"),El(i,"onClickHintInformation")}$(Ua,"onHasCompletion");El(Ua,"onHasCompletion");function ka(t){return Ie(t)?`${ka(t.ofType)}!`:at(t)?`[${ka(t.ofType)}]`:`<a class="typeName">${X$(t.name)}</a>`}$(ka,"renderType");El(ka,"renderType");var Jd={exports:{}},za={};/*
199
+ `,l.map=[n,e.line],!0},"code"),nie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),l=E-h,l<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<l)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return l=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,l,!0),v.markup=y,v.map=[n,e.line],!0},"fence"),Tg=et.isSpace,rie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],re=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<re&&(l=e.src.charCodeAt(Q),Tg(l));){l===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=re,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],re=e.eMarks[g],!(Q>=re));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<re&&(l=e.src.charCodeAt(Q),Tg(l));){l===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=re,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},"blockquote"),oie=et.isSpace,iie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(l=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!oie(f))return!1;f===a&&l++}return l<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(l+1).join(String.fromCharCode(a))),!0)},"hr"),Kb=et.isSpace;function Sp(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!Kb(a))?-1:o}$(Sp,"skipBulletListMarker");function Tp(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!Kb(n))?-1:i}$(Tp,"skipOrderedListMarker");function eE(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}$(eE,"markTightParagraphs");var sie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,re,_e,H,L,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.tShift[n]>=e.blkIndent&&(J=!0),(re=Tp(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,re-1)),J&&D!==1)return!1}else if((re=Sp(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(re)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(re-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=re,T=e.eMarks[O],v=V=e.sCount[O]+re-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(l=Q,l>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,re-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=l-e.bMarks[n],e.sCount[n]=V,l>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,l=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(L=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){L=!0;break}if(L)break;if(y){if(re=Tp(e,O),re<0)break;H=e.bMarks[O]+e.tShift[O]}else if(re=Sp(e,O),re<0)break;if(N!==e.src.charCodeAt(re-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&eE(e,S),!0},"list"),aie=et.normalizeReference,Hc=et.isSpace,cie=$(function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,l=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=l,Y=f);P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=l,Y=f;P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=aie(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},"reference"),lie=["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"],nu={},uie="[a-zA-Z_:][a-zA-Z0-9:._-]*",fie="[^\"'=<>`\\x00-\\x20]+",pie="'[^']*'",die='"[^"]*"',hie="(?:"+fie+"|"+pie+"|"+die+")",mie="(?:\\s+"+uie+"(?:\\s*=\\s*"+hie+")?)",tE="<[A-Za-z][A-Za-z0-9\\-]*"+mie+"*\\s*\\/?>",nE="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",gie="<[?][\\s\\S]*?[?]>",yie="<![A-Z]+\\s+[^>]*>",bie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Eie=new RegExp("^(?:"+tE+"|"+nE+"|"+vie+"|"+gie+"|"+yie+"|"+bie+")"),_ie=new RegExp("^(?:"+tE+"|"+nE+")");nu.HTML_TAG_RE=Eie;nu.HTML_OPEN_CLOSE_TAG_RE=_ie;var kie=lie,xie=nu.HTML_OPEN_CLOSE_TAG_RE,Mi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+kie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(xie.source+"\\s*$"),/^$/,!1]],wie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<Mi.length&&!Mi[a][0].test(d);a++);if(a===Mi.length)return!1;if(i)return Mi[a][2];if(l=n+1,!Mi[a][1].test(d)){for(;l<o&&!(e.sCount[l]<e.blkIndent);l++)if(h=e.bMarks[l]+e.tShift[l],v=e.eMarks[l],d=e.src.slice(h,v),Mi[a][1].test(d)){d.length!==0&&l++;break}}return e.line=l,f=e.push("html_block","",0),f.map=[n,l],f.content=e.getLines(n,l,e.blkIndent,!0),!0},"html_block"),Dg=et.isSpace,$ie=$(function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(l=1,a=e.src.charCodeAt(++h);a===35&&h<v&&l<=6;)l++,a=e.src.charCodeAt(++h);return l>6||h<v&&!Dg(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&Dg(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(l),1),d.markup="########".slice(0,l),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(l),-1),d.markup="########".slice(0,l)),!0)},"heading"),Cie=$(function(e,n,o){var i,a,l,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,l=0,f=S.length;l<f;l++)if(S[l](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},"lheading"),Aie=$(function(e,n){var o,i,a,l,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,l=v.length;a<l;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},"paragraph"),rE=jd,ru=et.isSpace;function Xn(t,e,n,o){var i,a,l,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,l=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if(ru(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(l),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,l=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}$(Xn,"StateBlock");Xn.prototype.push=function(t,e,n){var o=new rE(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Xn.prototype.isEmpty=$(function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},"isEmpty");Xn.prototype.skipEmptyLines=$(function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},"skipEmptyLines");Xn.prototype.skipSpaces=$(function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!ru(n));e++);return e},"skipSpaces");Xn.prototype.skipSpacesBack=$(function(e,n){if(e<=n)return e;for(;e>n;)if(!ru(this.src.charCodeAt(--e)))return e+1;return e},"skipSpacesBack");Xn.prototype.skipChars=$(function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e},"skipChars");Xn.prototype.skipCharsBack=$(function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e},"skipCharsBack");Xn.prototype.getLines=$(function(e,n,o,i){var a,l,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(l=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&l<o;){if(f=this.src.charCodeAt(d),ru(f))f===9?l+=4-(l+this.bsCount[g])%4:l++;else if(d-y<this.tShift[g])l++;else break;d++}l>o?v[a]=new Array(l-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")},"getLines");Xn.prototype.Token=rE;var Sie=Xn,Tie=Vd,Gc=[["table",eie,["paragraph","reference"]],["code",tie],["fence",nie,["paragraph","reference","blockquote","list"]],["blockquote",rie,["paragraph","reference","blockquote","list"]],["hr",iie,["paragraph","reference","blockquote","list"]],["list",sie,["paragraph","reference","blockquote"]],["reference",cie],["html_block",wie,["paragraph","reference","blockquote"]],["heading",$ie,["paragraph","reference","blockquote"]],["lheading",Cie],["paragraph",Aie]];function Va(){this.ruler=new Tie;for(var t=0;t<Gc.length;t++)this.ruler.push(Gc[t][0],Gc[t][1],{alt:(Gc[t][2]||[]).slice()})}$(Va,"ParserBlock$1");Va.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),l=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<l&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Va.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Va.prototype.State=Sie;var Die=Va;function oE(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}$(oE,"isTerminatorChar");var Nie=$(function(e,n){for(var o=e.pos;o<e.posMax&&!oE(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},"text"),Oie=et.isSpace,Iie=$(function(e,n){var o,i,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;for(o=e.pending.length-1,i=e.posMax,n||(o>=0&&e.pending.charCodeAt(o)===32?o>=1&&e.pending.charCodeAt(o-1)===32?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),a++;a<i&&Oie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},"newline"),Fie=et.isSpace,zd=[];for(var Ng=0;Ng<256;Ng++)zd.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){zd[t.charCodeAt(0)]=1});var Lie=$(function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&zd[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!Fie(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},"escape"),Rie=$(function(e,n){var o,i,a,l,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(l=e.push("code_inline","code",0),l.markup=a,l.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},"backtick"),ou={};ou.tokenize=$(function(e,n){var o,i,a,l,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),l=i.length,f=String.fromCharCode(h),l<2))return!1;for(l%2&&(a=e.push("text","",0),a.content=f,l--),o=0;o<l;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,jump:o/2,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"strikethrough");function Dp(t,e){var n,o,i,a,l,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],l=t.tokens[i.token],l.type="s_open",l.tag="s",l.nesting=1,l.markup="~~",l.content="",l=t.tokens[a.token],l.type="s_close",l.tag="s",l.nesting=-1,l.markup="~~",l.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(l=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=l)}}$(Dp,"postProcess$1");ou.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Dp(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Dp(e,o[n].delimiters)},"strikethrough");var iu={};iu.tokenize=$(function(e,n){var o,i,a,l=e.pos,f=e.src.charCodeAt(l);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,jump:o,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"emphasis");function Np(t,e){var n,o,i,a,l,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1&&e[n-1].marker===o.marker,l=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?l+l:l,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?l+l:l,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}$(Np,"postProcess");iu.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Np(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Np(e,o[n].delimiters)},"emphasis");var Mie=et.normalizeReference,Wf=et.isSpace,qie=$(function(e,n){var o,i,a,l,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(d=l+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=l+1):d=l+1,a||(a=e.src.slice(f,l)),v=e.env.references[Mie(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=l,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},"link"),Pie=et.normalizeReference,Qf=et.isSpace,Bie=$(function(e,n){var o,i,a,l,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?l=e.src.slice(S,h++):h=f+1):h=f+1,l||(l=e.src.slice(d,f)),v=e.env.references[Pie(l)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},"image"),Vie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Uie=$(function(e,n){var o,i,a,l,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(l=e.src.charCodeAt(h),l===60))return!1;if(l===62)break}return o=e.src.slice(f+1,h),jie.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):Vie.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},"autolink"),zie=nu.HTML_TAG_RE;function iE(t){var e=t|32;return e>=97&&e<=122}$(iE,"isLetter");var Hie=$(function(e,n){var o,i,a,l,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!iE(o))||(i=e.src.slice(f).match(zie),!i)?!1:(n||(l=e.push("html_inline","",0),l.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},"html_inline"),Og=Pb,Gie=et.has,Wie=et.isValidEntityCode,Ig=et.fromCodePoint,Qie=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Yie=/^&([a-z][a-z0-9]{1,31});/i,Jie=$(function(e,n){var o,i,a,l=e.pos,f=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1<f){if(o=e.src.charCodeAt(l+1),o===35){if(a=e.src.slice(l).match(Qie),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=Wie(i)?Ig(i):Ig(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(l).match(Yie),a&&Gie(Og,a[1]))return n||(e.pending+=Og[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0},"entity");function Op(t,e){var n,o,i,a,l,f,d,h,v={},y=e.length;for(n=0;n<y;n++)if(i=e[n],i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),l=v[i.marker][(i.open?3:0)+i.length%3],o=n-i.jump-1,o<-1&&(o=-1),f=o;o>l;o-=a.jump+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?e[o-1].jump+1:0,i.jump=n-o+h,i.open=!1,a.end=n,a.jump=h,a.close=!1,f=-1;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}$(Op,"processDelimiters");var Zie=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Op(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Op(e,o[n].delimiters)},"link_pairs"),Xie=$(function(e){var n,o,i=0,a=e.tokens,l=e.tokens.length;for(n=o=0;n<l;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<l&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},"text_collapse"),Hd=jd,Fg=et.isWhiteSpace,Lg=et.isPunctChar,Rg=et.isMdAsciiPunct;function ps(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}$(ps,"StateInline");ps.prototype.pushPending=function(){var t=new Hd("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ps.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Hd(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};ps.prototype.scanDelims=function(t,e){var n=t,o,i,a,l,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=Rg(o)||Lg(String.fromCharCode(o)),y=Rg(i)||Lg(String.fromCharCode(i)),d=Fg(o),v=Fg(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(l=g,f=E):(l=g&&(!E||h),f=E&&(!g||y)),{can_open:l,can_close:f,length:a}};ps.prototype.Token=Hd;var Kie=ps,Mg=Vd,Yf=[["text",Nie],["newline",Iie],["escape",Lie],["backticks",Rie],["strikethrough",ou.tokenize],["emphasis",iu.tokenize],["link",qie],["image",Bie],["autolink",Uie],["html_inline",Hie],["entity",Jie]],Jf=[["balance_pairs",Zie],["strikethrough",ou.postProcess],["emphasis",iu.postProcess],["text_collapse",Xie]];function ds(){var t;for(this.ruler=new Mg,t=0;t<Yf.length;t++)this.ruler.push(Yf[t][0],Yf[t][1]);for(this.ruler2=new Mg,t=0;t<Jf.length;t++)this.ruler2.push(Jf[t][0],Jf[t][1])}$(ds,"ParserInline$1");ds.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,l=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<l)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};ds.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(t.level<l)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ds.prototype.parse=function(t,e,n,o){var i,a,l,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),l=a.length,i=0;i<l;i++)a[i](f)};ds.prototype.State=Kie;var ese=ds,tse=$(function(t){var e={};e.src_Any=Ub.source,e.src_Cc=zb.source,e.src_Z=Hb.source,e.src_P=Bd.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e},"re");function bl(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}$(bl,"assign");function ja(t){return Object.prototype.toString.call(t)}$(ja,"_class");function sE(t){return ja(t)==="[object String]"}$(sE,"isString");function aE(t){return ja(t)==="[object Object]"}$(aE,"isObject$2");function cE(t){return ja(t)==="[object RegExp]"}$(cE,"isRegExp");function Ip(t){return ja(t)==="[object Function]"}$(Ip,"isFunction");function lE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}$(lE,"escapeRE");var uE={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function fE(t){return Object.keys(t||{}).reduce(function(e,n){return e||uE.hasOwnProperty(n)},!1)}$(fE,"isOptionsObj");var nse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},rse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ose="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function pE(t){t.__index__=-1,t.__text_cache__=""}$(pE,"resetScanCache");function dE(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}$(dE,"createValidator");function Fp(){return function(t,e){e.normalize(t)}}$(Fp,"createNormalizer");function Ea(t){var e=t.re=tse(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(rse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}$(o,"untpl"),e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}$(a,"schemaError"),Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,aE(d)){cE(d.validate)?h.validate=dE(d.validate):Ip(d.validate)?h.validate=d.validate:a(f,d),Ip(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=Fp();return}if(sE(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:Fp()};var l=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(lE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),pE(t)}$(Ea,"compile");function hE(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}$(hE,"Match");function Lp(t,e){var n=new hE(t,e);return t.__compiled__[n.schema].normalize(n,t),n}$(Lp,"createMatch");function bn(t,e){if(!(this instanceof bn))return new bn(t,e);e||fE(t)&&(e=t,t={}),this.__opts__=bl({},uE,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=bl({},nse,t),this.__compiled__={},this.__tlds__=ose,this.__tlds_replaced__=!1,this.re={},Ea(this)}$(bn,"LinkifyIt$1");bn.prototype.add=$(function(e,n){return this.__schemas__[e]=n,Ea(this),this},"add");bn.prototype.set=$(function(e){return this.__opts__=bl(this.__opts__,e),this},"set");bn.prototype.test=$(function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,l,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=o.index+o[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=f))),this.__index__>=0},"test");bn.prototype.pretest=$(function(e){return this.re.pretest.test(e)},"pretest");bn.prototype.testSchemaAt=$(function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0},"testSchemaAt");bn.prototype.match=$(function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(Lp(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(Lp(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null},"match");bn.prototype.tlds=$(function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Ea(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ea(this),this)},"tlds");bn.prototype.normalize=$(function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},"normalize");bn.prototype.onCompile=$(function(){},"onCompile");var ise=bn;const Hi=2147483647,gr=36,Gd=1,_a=26,sse=38,ase=700,mE=72,vE=128,gE="-",cse=/^xn--/,lse=/[^\0-\x7E]/,use=/[\x2E\u3002\uFF0E\uFF61]/g,fse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Zf=gr-Gd,yr=Math.floor,Xf=String.fromCharCode;function po(t){throw new RangeError(fse[t])}$(po,"error");function yE(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}$(yE,"map");function Wd(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(use,".");const i=t.split("."),a=yE(i,e).join(".");return o+a}$(Wd,"mapDomain");function su(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const a=t.charCodeAt(n++);(a&64512)==56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}$(su,"ucs2decode");const bE=$(t=>String.fromCodePoint(...t),"ucs2encode"),pse=$(function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:gr},"basicToDigit"),qg=$(function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},"digitToBasic"),EE=$(function(t,e,n){let o=0;for(t=n?yr(t/ase):t>>1,t+=yr(t/e);t>Zf*_a>>1;o+=gr)t=yr(t/Zf);return yr(o+(Zf+1)*t/(t+sse))},"adapt"),Qd=$(function(t){const e=[],n=t.length;let o=0,i=vE,a=mE,l=t.lastIndexOf(gE);l<0&&(l=0);for(let f=0;f<l;++f)t.charCodeAt(f)>=128&&po("not-basic"),e.push(t.charCodeAt(f));for(let f=l>0?l+1:0;f<n;){let d=o;for(let v=1,y=gr;;y+=gr){f>=n&&po("invalid-input");const g=pse(t.charCodeAt(f++));(g>=gr||g>yr((Hi-o)/v))&&po("overflow"),o+=g*v;const E=y<=a?Gd:y>=a+_a?_a:y-a;if(g<E)break;const C=gr-E;v>yr(Hi/C)&&po("overflow"),v*=C}const h=e.length+1;a=EE(o-d,h,d==0),yr(o/h)>Hi-i&&po("overflow"),i+=yr(o/h),o%=h,e.splice(o++,0,i)}return String.fromCodePoint(...e)},"decode"),Yd=$(function(t){const e=[];t=su(t);let n=t.length,o=vE,i=0,a=mE;for(const d of t)d<128&&e.push(Xf(d));let l=e.length,f=l;for(l&&e.push(gE);f<n;){let d=Hi;for(const v of t)v>=o&&v<d&&(d=v);const h=f+1;d-o>yr((Hi-i)/h)&&po("overflow"),i+=(d-o)*h,o=d;for(const v of t)if(v<o&&++i>Hi&&po("overflow"),v==o){let y=i;for(let g=gr;;g+=gr){const E=g<=a?Gd:g>=a+_a?_a:g-a;if(y<E)break;const C=y-E,S=gr-E;e.push(Xf(qg(E+C%S,0))),y=yr(C/S)}e.push(Xf(qg(y,0))),a=EE(i,h,f==l),i=0,++f}++i,++o}return e.join("")},"encode"),_E=$(function(t){return Wd(t,function(e){return cse.test(e)?Qd(e.slice(4).toLowerCase()):e})},"toUnicode"),kE=$(function(t){return Wd(t,function(e){return lse.test(e)?"xn--"+Yd(e):e})},"toASCII"),dse={version:"2.1.0",ucs2:{decode:su,encode:bE},decode:Qd,encode:Yd,toASCII:kE,toUnicode:_E};var hse=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:su,ucs2encode:bE,decode:Qd,encode:Yd,toASCII:kE,toUnicode:_E,default:dse}),mse=Mb(hse),vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},gse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},yse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},la=et,bse=eu,Ese=Roe,_se=Koe,kse=Die,xse=ese,wse=ise,Go=us,xE=mse,$se={default:vse,zero:gse,commonmark:yse},Cse=/^(vbscript|javascript|file|data):/,Ase=/^data:image\/(gif|png|jpeg|webp);/;function wE(t){var e=t.trim().toLowerCase();return Cse.test(e)?!!Ase.test(e):!0}$(wE,"validateLink");var $E=["http:","https:","mailto:"];function CE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||$E.indexOf(e.protocol)>=0))try{e.hostname=xE.toASCII(e.hostname)}catch{}return Go.encode(Go.format(e))}$(CE,"normalizeLink");function AE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||$E.indexOf(e.protocol)>=0))try{e.hostname=xE.toUnicode(e.hostname)}catch{}return Go.decode(Go.format(e),Go.decode.defaultChars+"%")}$(AE,"normalizeLinkText");function En(t,e){if(!(this instanceof En))return new En(t,e);e||la.isString(t)||(e=t||{},t="default"),this.inline=new xse,this.block=new kse,this.core=new _se,this.renderer=new Ese,this.linkify=new wse,this.validateLink=wE,this.normalizeLink=CE,this.normalizeLinkText=AE,this.utils=la,this.helpers=la.assign({},bse),this.options={},this.configure(t),e&&this.set(e)}$(En,"MarkdownIt");En.prototype.set=function(t){return la.assign(this.options,t),this};En.prototype.configure=function(t){var e=this,n;if(la.isString(t)&&(n=t,t=$se[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};En.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};En.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};En.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};En.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};En.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};En.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};En.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Sse=En,Tse=Sse;const Rp=new Tse;var Dse=Object.defineProperty,Nse=$((t,e)=>Dse(t,"name",{value:e,configurable:!0}),"__name$j");const au="graphiql",cu="sublime";let SE=!1;typeof window=="object"&&(SE=window.navigator.platform.toLowerCase().indexOf("mac")===0);const lu={[SE?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function ui(t,e){const n=await Xe(()=>import("./codemirror.es-DDaWBk7v.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(function(o){return o.c}).then(o=>typeof o=="function"?o:o.default);return await Promise.all((e==null?void 0:e.useCommonAddons)===!1?t:[Xe(()=>import("./show-hint.es-DAqKK5Qn.js"),__vite__mapDeps([3,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./matchbrackets.es-CCjeMHPP.js"),__vite__mapDeps([4,0,1,2]),import.meta.url).then(function(o){return o.m}),Xe(()=>import("./closebrackets.es-Cowrx9Wh.js"),__vite__mapDeps([5,0,1,2]),import.meta.url).then(function(o){return o.c}),Xe(()=>import("./brace-fold.es-CHAwFrP-.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(o){return o.b}),Xe(()=>import("./foldgutter.es-CHLe3IFg.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(o){return o.f}),Xe(()=>import("./lint.es3-DTrQmP6j.js"),__vite__mapDeps([8,0,1,2]),import.meta.url).then(function(o){return o.l}),Xe(()=>import("./searchcursor.es-Cy-3eaEN.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./jump-to-line.es-D7dd2At6.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(o){return o.j}),Xe(()=>import("./dialog.es-CRh6VOLz.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(o){return o.d}),Xe(()=>import("./sublime.es-DPcVE8hJ.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(o){return o.s}),...t]),n}$(ui,"importCodeMirror");Nse(ui,"importCodeMirror");var Ose=Object.defineProperty,El=$((t,e)=>Ose(t,"name",{value:e,configurable:!0}),"__name$i");function Ua(t,e,n,o){ui([],{useCommonAddons:!1}).then(a=>{let l,f;a.on(e,"select",(d,h)=>{if(!l){const g=h.parentNode;l=document.createElement("div"),l.className="CodeMirror-hint-information",l.addEventListener("click",i),g.appendChild(l),f=document.createElement("div"),f.className="CodeMirror-hint-deprecation",g.appendChild(f);let E;g.addEventListener("DOMNodeRemoved",E=El(C=>{C.target===g&&(g.removeEventListener("DOMNodeRemoved",E),l&&l.removeEventListener("click",i),l=null,f=null,E=null)},"onRemoveFn"))}const v=d.description?Rp.render(d.description):"Self descriptive.",y=d.type?'<span class="infoType">'+ka(d.type)+"</span>":"";if(l.innerHTML='<div class="content">'+(v.slice(0,3)==="<p>"?"<p>"+y+v.slice(3):y+v)+"</div>",d&&f&&d.deprecationReason){const g=d.deprecationReason?Rp.render(d.deprecationReason):"";f.innerHTML='<span class="deprecation-label">Deprecated</span>'+g,f.style.display="block"}else f&&(f.style.display="none")})});function i(a){if(!n||!o||!(a.currentTarget instanceof HTMLElement)||a.currentTarget.className!=="typeName")return;const l=a.currentTarget.innerHTML,f=n.getType(l);f&&(o.show(),o.push({name:f.name,def:f}))}$(i,"onClickHintInformation"),El(i,"onClickHintInformation")}$(Ua,"onHasCompletion");El(Ua,"onHasCompletion");function ka(t){return Ie(t)?`${ka(t.ofType)}!`:at(t)?`[${ka(t.ofType)}]`:`<a class="typeName">${X$(t.name)}</a>`}$(ka,"renderType");El(ka,"renderType");var Jd={exports:{}},za={};/*
200
200
  object-assign
201
201
  (c) Sindre Sorhus
202
202
  @license MIT
203
- */var Pg=Object.getOwnPropertySymbols,Ise=Object.prototype.hasOwnProperty,Lse=Object.prototype.propertyIsEnumerable;function TE(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}$(TE,"toObject");function DE(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}$(DE,"shouldUseNative");DE();/** @license React v17.0.2
203
+ */var Pg=Object.getOwnPropertySymbols,Ise=Object.prototype.hasOwnProperty,Fse=Object.prototype.propertyIsEnumerable;function TE(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}$(TE,"toObject");function DE(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}$(DE,"shouldUseNative");DE();/** @license React v17.0.2
204
204
  * react-jsx-runtime.production.min.js
205
205
  *
206
206
  * Copyright (c) Facebook, Inc. and its affiliates.
207
207
  *
208
208
  * This source code is licensed under the MIT license found in the
209
209
  * LICENSE file in the root directory of this source tree.
210
- */var Fse=L,NE=60103;za.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Bg=Symbol.for;NE=Bg("react.element"),za.Fragment=Bg("react.fragment")}var Rse=Fse.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mse=Object.prototype.hasOwnProperty,qse={key:!0,ref:!0,__self:!0,__source:!0};function Zd(t,e,n){var o,i={},a=null,l=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(l=e.ref);for(o in e)Mse.call(e,o)&&!qse.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)i[o]===void 0&&(i[o]=e[o]);return{$$typeof:NE,type:t,key:a,ref:l,props:i,_owner:Rse.current}}$(Zd,"q");za.jsx=Zd;za.jsxs=Zd;Jd.exports=za;const Qr=Jd.exports.jsx,Vg=Jd.exports.jsxs;var Pse=Object.defineProperty,uu=$((t,e)=>Pse(t,"name",{value:e,configurable:!0}),"__name$h");function ts(t){var e;const[n,o]=ie.useState({width:null,height:null}),[i,a]=ie.useState(null),l=ie.useRef(null),f=(e=fu(t.token))==null?void 0:e.href;ie.useEffect(()=>{if(l.current){if(!f){o({width:null,height:null}),a(null);return}fetch(f,{method:"HEAD"}).then(h=>{a(h.headers.get("Content-Type"))}).catch(()=>{a(null)})}},[f]);const d=n.width!==null&&n.height!==null?Vg("div",{children:[n.width,"x",n.height,i!==null?" "+i:null]}):null;return Vg("div",{children:[Qr("img",{onLoad:()=>{var h,v,y,g;o({width:(v=(h=l.current)==null?void 0:h.naturalWidth)!=null?v:null,height:(g=(y=l.current)==null?void 0:y.naturalHeight)!=null?g:null})},ref:l,src:f}),d]})}$(ts,"ImagePreview");uu(ts,"ImagePreview");ts.shouldRender=uu($(function(e){const n=fu(e);return n?Xd(n):!1},"shouldRender"),"shouldRender");function fu(t){if(t.type!=="string")return;const e=t.string.slice(1).slice(0,-1).trim();try{const n=window.location;return new URL(e,n.protocol+"//"+n.host)}catch{return}}$(fu,"tokenToURL");uu(fu,"tokenToURL");function Xd(t){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(t.pathname)}$(Xd,"isImageURL");uu(Xd,"isImageURL");function Mp(t){return typeof t=="object"&&typeof t.then=="function"}$(Mp,"isPromise");function OE(t){return new Promise((e,n)=>{const o=t.subscribe({next:i=>{e(i),o.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}$(OE,"observableToPromise");function Kd(t){return typeof t=="object"&&"subscribe"in t&&typeof t.subscribe=="function"}$(Kd,"isObservable");function eh(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in t)}$(eh,"isAsyncIterable");function IE(t){return new Promise((e,n)=>{var o;const i=(o=("return"in t?t:t[Symbol.asyncIterator]()).return)===null||o===void 0?void 0:o.bind(t);("next"in t?t:t[Symbol.asyncIterator]()).next.bind(t)().then(l=>{e(l.value),i==null||i()}).catch(l=>{n(l)})})}$(IE,"asyncIterableToPromise");function qp(t){return Promise.resolve(t).then(e=>eh(e)?IE(e):Kd(e)?OE(e):e)}$(qp,"fetcherReturnToPromise");function _l(t){return JSON.stringify(t,null,2)}$(_l,"stringify");function LE(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}$(LE,"formatSingleError");function Pp(t){return t instanceof Error?LE(t):t}$(Pp,"handleSingleError");function Yo(t){return Array.isArray(t)?_l({errors:t.map(e=>Pp(e))}):_l({errors:[Pp(t)]})}$(Yo,"formatError");function kl(t){return _l(t)}$(kl,"formatResult");function FE(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Zn(e)}catch{return{insertions:o,result:e}}const a=n||RE,l=new ai(t);return un(i,{leave(f){l.leave(f)},enter(f){if(l.enter(f),f.kind==="Field"&&!f.selectionSet){const d=l.getType(),h=th(PE(d),a);if(h&&f.loc){const v=qE(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
211
- `+v)})}}}}),{insertions:o,result:ME(e,o)}}$(FE,"fillLeafs");function RE(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{fn(e[o].type)&&n.push(o)}),n}$(RE,"defaultGetDefaultFieldNames");function th(t,e){const n=Rt(t);if(!t||fn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:R.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],l=a?a.type:null;return{kind:R.FIELD,name:{kind:R.NAME,value:i},selectionSet:th(l,e)}})}}$(th,"buildSelectionSet");function ME(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}$(ME,"withInsertions");function qE(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}$(qE,"getIndentation");function PE(t){if(t)return t}$(PE,"isFieldType");function BE(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const l=e(a),f=o.get(l);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(l,d),i.push(d)}}else i.push(a);return i}$(BE,"uniqueBy");function nh(t,e,n){var o;const i=n?Rt(n).name:null,a=[],l=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(l.indexOf(d)>=0)continue;l.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:R.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===R.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...nh(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}$(nh,"inlineRelevantFragmentSpreads");function VE(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===R.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const l=n?n.getParentType():null;let{selections:f}=a;return f=nh(o,f,l),f=BE(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return un(t,n?qa(n,i):i)}$(VE,"mergeAst");function jE(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(l=>{var f;return(f=l.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}$(jE,"getSelectedOperationName");function UE(t,e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t.length!==0}$(UE,"isQuotaError");class xl{constructor(e){e?this.storage=e:e===null?this.storage=null:this.storage=typeof window<"u"?window.localStorage:null}get(e){if(!this.storage)return null;const n=`${jg}:${e}`,o=this.storage.getItem(n);return o==="null"||o==="undefined"?(this.storage.removeItem(n),null):o||null}set(e,n){let o=!1,i=null;if(this.storage){const a=`${jg}:${e}`;if(n)try{this.storage.setItem(a,n)}catch(l){i=l instanceof Error?l:new Error(`${l}`),o=UE(this.storage,l)}else this.storage.removeItem(a)}return{isQuotaError:o,error:i}}}$(xl,"StorageAPI");const jg="graphiql";class Bp{constructor(e,n,o=null){this.key=e,this.storage=n,this.maxSize=o,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(n=>n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)}edit(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1,e),this.save())}delete(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const n=[...this.items,e];this.maxSize&&n.length>this.maxSize&&n.shift();for(let o=0;o<5;o++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!i||!i.error)this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}$(Bp,"QueryStore");const Bse=1e5;class zE{constructor(e,n){this.storage=e,this.maxHistoryLength=n,this.updateHistory=(o,i,a,l)=>{if(this.shouldSaveQuery(o,i,a,this.history.fetchRecent())){this.history.push({query:o,variables:i,headers:a,operationName:l});const f=this.history.items,d=this.favorite.items;this.queries=f.concat(d)}},this.history=new Bp("queries",this.storage,this.maxHistoryLength),this.favorite=new Bp("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,o,i){if(!e)return!1;try{Zn(e)}catch{return!1}return e.length>Bse?!1:i?!(JSON.stringify(e)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(o)===JSON.stringify(i.headers)||o&&!i.headers)||n&&!i.variables)):!0}toggleFavorite(e,n,o,i,a,l){const f={query:e,variables:n,headers:o,operationName:i,label:a};this.favorite.contains(f)?l&&(f.favorite=!1,this.favorite.delete(f)):(f.favorite=!0,this.favorite.push(f)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,n,o,i,a,l){const f={query:e,variables:n,headers:o,operationName:i,label:a};l?this.favorite.edit(Object.assign(Object.assign({},f),{favorite:l})):this.history.edit(f),this.queries=[...this.history.items,...this.favorite.items]}}$(zE,"HistoryStore");var Vse=Object.defineProperty,rh=$((t,e)=>Vse(t,"name",{value:e,configurable:!0}),"__name$g");function xo(t){const e=ie.createContext(null);return e.displayName=t,e}$(xo,"createNullableContext");rh(xo,"createNullableContext");function wo(t){function e(n){var o;const i=ie.useContext(t);if(i===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((o=n.caller)==null?void 0:o.name)||e.caller.name}\` without the necessary context. Make sure to render the \`${t.displayName}Provider\` component higher up the tree.`);return i}return $(e,"useGivenContext"),rh(e,"useGivenContext"),Object.defineProperty(e,"name",{value:`use${t.displayName}`}),e}$(wo,"createContextHook");rh(wo,"createContextHook");var jse=Object.defineProperty,Use=$((t,e)=>jse(t,"name",{value:e,configurable:!0}),"__name$f");const oh=xo("StorageContext");function pu(t){const e=ie.useRef(!0),[n,o]=ie.useState(new xl(t.storage));return ie.useEffect(()=>{e.current?e.current=!1:o(new xl(t.storage))},[t.storage]),Qr(oh.Provider,{value:n,children:t.children})}$(pu,"StorageContextProvider");Use(pu,"StorageContextProvider");const $o=wo(oh);var Ug;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Ug||(Ug={}));var Vp;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Vp||(Vp={}));var zg;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(zg||(zg={}));var wl;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(wl||(wl={}));var Qn;(function(t){function e(o,i){return o===Number.MAX_VALUE&&(o=wl.MAX_VALUE),i===Number.MAX_VALUE&&(i=wl.MAX_VALUE),{line:o,character:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.line)&&X.uinteger(i.character)}$(n,"is"),t.is=n})(Qn||(Qn={}));var kt;(function(t){function e(o,i,a,l){if(X.uinteger(o)&&X.uinteger(i)&&X.uinteger(a)&&X.uinteger(l))return{start:Qn.create(o,i),end:Qn.create(a,l)};if(Qn.is(o)&&Qn.is(i))return{start:o,end:i};throw new Error("Range#create called with invalid arguments[".concat(o,", ").concat(i,", ").concat(a,", ").concat(l,"]"))}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.start)&&Qn.is(i.end)}$(n,"is"),t.is=n})(kt||(kt={}));var $l;(function(t){function e(o,i){return{uri:o,range:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.string(i.uri)||X.undefined(i.uri))}$(n,"is"),t.is=n})($l||($l={}));var Hg;(function(t){function e(o,i,a,l){return{targetUri:o,targetRange:i,targetSelectionRange:a,originSelectionRange:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.targetRange)&&X.string(i.targetUri)&&kt.is(i.targetSelectionRange)&&(kt.is(i.originSelectionRange)||X.undefined(i.originSelectionRange))}$(n,"is"),t.is=n})(Hg||(Hg={}));var jp;(function(t){function e(o,i,a,l){return{red:o,green:i,blue:a,alpha:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.numberRange(i.red,0,1)&&X.numberRange(i.green,0,1)&&X.numberRange(i.blue,0,1)&&X.numberRange(i.alpha,0,1)}$(n,"is"),t.is=n})(jp||(jp={}));var Gg;(function(t){function e(o,i){return{range:o,color:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&jp.is(i.color)}$(n,"is"),t.is=n})(Gg||(Gg={}));var Wg;(function(t){function e(o,i,a){return{label:o,textEdit:i,additionalTextEdits:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.undefined(i.textEdit)||zr.is(i))&&(X.undefined(i.additionalTextEdits)||X.typedArray(i.additionalTextEdits,zr.is))}$(n,"is"),t.is=n})(Wg||(Wg={}));var Qg;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Qg||(Qg={}));var Yg;(function(t){function e(o,i,a,l,f,d){var h={startLine:o,endLine:i};return X.defined(a)&&(h.startCharacter=a),X.defined(l)&&(h.endCharacter=l),X.defined(f)&&(h.kind=f),X.defined(d)&&(h.collapsedText=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.startLine)&&X.uinteger(i.startLine)&&(X.undefined(i.startCharacter)||X.uinteger(i.startCharacter))&&(X.undefined(i.endCharacter)||X.uinteger(i.endCharacter))&&(X.undefined(i.kind)||X.string(i.kind))}$(n,"is"),t.is=n})(Yg||(Yg={}));var Up;(function(t){function e(o,i){return{location:o,message:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&$l.is(i.location)&&X.string(i.message)}$(n,"is"),t.is=n})(Up||(Up={}));var Jg;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Jg||(Jg={}));var Zg;(function(t){t.Unnecessary=1,t.Deprecated=2})(Zg||(Zg={}));var Xg;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&X.string(o.href)}$(e,"is"),t.is=e})(Xg||(Xg={}));var Cl;(function(t){function e(o,i,a,l,f,d){var h={range:o,message:i};return X.defined(a)&&(h.severity=a),X.defined(l)&&(h.code=l),X.defined(f)&&(h.source=f),X.defined(d)&&(h.relatedInformation=d),h}$(e,"create"),t.create=e;function n(o){var i,a=o;return X.defined(a)&&kt.is(a.range)&&X.string(a.message)&&(X.number(a.severity)||X.undefined(a.severity))&&(X.integer(a.code)||X.string(a.code)||X.undefined(a.code))&&(X.undefined(a.codeDescription)||X.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(X.string(a.source)||X.undefined(a.source))&&(X.undefined(a.relatedInformation)||X.typedArray(a.relatedInformation,Up.is))}$(n,"is"),t.is=n})(Cl||(Cl={}));var ns;(function(t){function e(o,i){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var f={title:o,command:i};return X.defined(a)&&a.length>0&&(f.arguments=a),f}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.title)&&X.string(i.command)}$(n,"is"),t.is=n})(ns||(ns={}));var zr;(function(t){function e(a,l){return{range:a,newText:l}}$(e,"replace"),t.replace=e;function n(a,l){return{range:{start:a,end:a},newText:l}}$(n,"insert"),t.insert=n;function o(a){return{range:a,newText:""}}$(o,"del"),t.del=o;function i(a){var l=a;return X.objectLiteral(l)&&X.string(l.newText)&&kt.is(l.range)}$(i,"is"),t.is=i})(zr||(zr={}));var Gi;(function(t){function e(o,i,a){var l={label:o};return i!==void 0&&(l.needsConfirmation=i),a!==void 0&&(l.description=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(X.string(i.description)||i.description===void 0)}$(n,"is"),t.is=n})(Gi||(Gi={}));var Qt;(function(t){function e(n){var o=n;return X.string(o)}$(e,"is"),t.is=e})(Qt||(Qt={}));var fo;(function(t){function e(a,l,f){return{range:a,newText:l,annotationId:f}}$(e,"replace"),t.replace=e;function n(a,l,f){return{range:{start:a,end:a},newText:l,annotationId:f}}$(n,"insert"),t.insert=n;function o(a,l){return{range:a,newText:"",annotationId:l}}$(o,"del"),t.del=o;function i(a){var l=a;return zr.is(l)&&(Gi.is(l.annotationId)||Qt.is(l.annotationId))}$(i,"is"),t.is=i})(fo||(fo={}));var Al;(function(t){function e(o,i){return{textDocument:o,edits:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&Sl.is(i.textDocument)&&Array.isArray(i.edits)}$(n,"is"),t.is=n})(Al||(Al={}));var xa;(function(t){function e(o,i,a){var l={kind:"create",uri:o};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),a!==void 0&&(l.annotationId=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="create"&&X.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(xa||(xa={}));var wa;(function(t){function e(o,i,a,l){var f={kind:"rename",oldUri:o,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(f.options=a),l!==void 0&&(f.annotationId=l),f}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="rename"&&X.string(i.oldUri)&&X.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(wa||(wa={}));var $a;(function(t){function e(o,i,a){var l={kind:"delete",uri:o};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(l.options=i),a!==void 0&&(l.annotationId=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="delete"&&X.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||X.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||X.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})($a||($a={}));var zp;(function(t){function e(n){var o=n;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(i){return X.string(i.kind)?xa.is(i)||wa.is(i)||$a.is(i):Al.is(i)}))}$(e,"is"),t.is=e})(zp||(zp={}));var Wc=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return $(t,"TextEditChangeImpl"),t.prototype.insert=function(e,n,o){var i,a;if(o===void 0?i=zr.insert(e,n):Qt.is(o)?(a=o,i=fo.insert(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.insert(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.replace=function(e,n,o){var i,a;if(o===void 0?i=zr.replace(e,n):Qt.is(o)?(a=o,i=fo.replace(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.replace(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.delete=function(e,n){var o,i;if(n===void 0?o=zr.del(e):Qt.is(n)?(i=n,o=fo.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=fo.del(e,i)),this.edits.push(o),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Kg=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return $(t,"ChangeAnnotations"),t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var o;if(Qt.is(e)?o=e:(o=this.nextId(),n=e),this._annotations[o]!==void 0)throw new Error("Id ".concat(o," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(o));return this._annotations[o]=n,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Kg(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(o){if(Al.is(o)){var i=new Wc(o.edits,n._changeAnnotations);n._textEditChanges[o.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(o){var i=new Wc(e.changes[o]);n._textEditChanges[o]=i})):this._workspaceEdit={}}return $(t,"WorkspaceChange"),Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(Sl.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},o=this._textEditChanges[n.uri];if(!o){var i=[],a={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(a),o=new Wc(i,this._changeAnnotations),this._textEditChanges[n.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[e];if(!o){var i=[];this._workspaceEdit.changes[e]=i,o=new Wc(i),this._textEditChanges[e]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kg,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,l;if(i===void 0?a=xa.create(e,o):(l=Qt.is(i)?i:this._changeAnnotations.manage(i),a=xa.create(e,o,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l},t.prototype.renameFile=function(e,n,o,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Gi.is(o)||Qt.is(o)?a=o:i=o;var l,f;if(a===void 0?l=wa.create(e,n,i):(f=Qt.is(a)?a:this._changeAnnotations.manage(a),l=wa.create(e,n,i,f)),this._workspaceEdit.documentChanges.push(l),f!==void 0)return f},t.prototype.deleteFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,l;if(i===void 0?a=$a.create(e,o):(l=Qt.is(i)?i:this._changeAnnotations.manage(i),a=$a.create(e,o,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l},t})();var ey;(function(t){function e(o){return{uri:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)}$(n,"is"),t.is=n})(ey||(ey={}));var ty;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.integer(i.version)}$(n,"is"),t.is=n})(ty||(ty={}));var Sl;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&(i.version===null||X.integer(i.version))}$(n,"is"),t.is=n})(Sl||(Sl={}));var ny;(function(t){function e(o,i,a,l){return{uri:o,languageId:i,version:a,text:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.string(i.languageId)&&X.integer(i.version)&&X.string(i.text)}$(n,"is"),t.is=n})(ny||(ny={}));var Hp;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){var o=n;return o===t.PlainText||o===t.Markdown}$(e,"is"),t.is=e})(Hp||(Hp={}));var Ca;(function(t){function e(n){var o=n;return X.objectLiteral(n)&&Hp.is(o.kind)&&X.string(o.value)}$(e,"is"),t.is=e})(Ca||(Ca={}));var ry;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ry||(ry={}));var oy;(function(t){t.PlainText=1,t.Snippet=2})(oy||(oy={}));var iy;(function(t){t.Deprecated=1})(iy||(iy={}));var sy;(function(t){function e(o,i,a){return{newText:o,insert:i,replace:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.newText)&&kt.is(i.insert)&&kt.is(i.replace)}$(n,"is"),t.is=n})(sy||(sy={}));var ay;(function(t){t.asIs=1,t.adjustIndentation=2})(ay||(ay={}));var cy;(function(t){function e(n){var o=n;return o&&(X.string(o.detail)||o.detail===void 0)&&(X.string(o.description)||o.description===void 0)}$(e,"is"),t.is=e})(cy||(cy={}));var ly;(function(t){function e(n){return{label:n}}$(e,"create"),t.create=e})(ly||(ly={}));var uy;(function(t){function e(n,o){return{items:n||[],isIncomplete:!!o}}$(e,"create"),t.create=e})(uy||(uy={}));var Tl;(function(t){function e(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}$(e,"fromPlainText"),t.fromPlainText=e;function n(o){var i=o;return X.string(i)||X.objectLiteral(i)&&X.string(i.language)&&X.string(i.value)}$(n,"is"),t.is=n})(Tl||(Tl={}));var fy;(function(t){function e(n){var o=n;return!!o&&X.objectLiteral(o)&&(Ca.is(o.contents)||Tl.is(o.contents)||X.typedArray(o.contents,Tl.is))&&(n.range===void 0||kt.is(n.range))}$(e,"is"),t.is=e})(fy||(fy={}));var py;(function(t){function e(n,o){return o?{label:n,documentation:o}:{label:n}}$(e,"create"),t.create=e})(py||(py={}));var dy;(function(t){function e(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var l={label:n};return X.defined(o)&&(l.documentation=o),X.defined(i)?l.parameters=i:l.parameters=[],l}$(e,"create"),t.create=e})(dy||(dy={}));var hy;(function(t){t.Text=1,t.Read=2,t.Write=3})(hy||(hy={}));var my;(function(t){function e(n,o){var i={range:n};return X.number(o)&&(i.kind=o),i}$(e,"create"),t.create=e})(my||(my={}));var vy;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(vy||(vy={}));var gy;(function(t){t.Deprecated=1})(gy||(gy={}));var yy;(function(t){function e(n,o,i,a,l){var f={name:n,kind:o,location:{uri:a,range:i}};return l&&(f.containerName=l),f}$(e,"create"),t.create=e})(yy||(yy={}));var by;(function(t){function e(n,o,i,a){return a!==void 0?{name:n,kind:o,location:{uri:i,range:a}}:{name:n,kind:o,location:{uri:i}}}$(e,"create"),t.create=e})(by||(by={}));var Ey;(function(t){function e(o,i,a,l,f,d){var h={name:o,detail:i,kind:a,range:l,selectionRange:f};return d!==void 0&&(h.children=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.name)&&X.number(i.kind)&&kt.is(i.range)&&kt.is(i.selectionRange)&&(i.detail===void 0||X.string(i.detail))&&(i.deprecated===void 0||X.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}$(n,"is"),t.is=n})(Ey||(Ey={}));var _y;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(_y||(_y={}));var Dl;(function(t){t.Invoked=1,t.Automatic=2})(Dl||(Dl={}));var ky;(function(t){function e(o,i,a){var l={diagnostics:o};return i!=null&&(l.only=i),a!=null&&(l.triggerKind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.typedArray(i.diagnostics,Cl.is)&&(i.only===void 0||X.typedArray(i.only,X.string))&&(i.triggerKind===void 0||i.triggerKind===Dl.Invoked||i.triggerKind===Dl.Automatic)}$(n,"is"),t.is=n})(ky||(ky={}));var xy;(function(t){function e(o,i,a){var l={title:o},f=!0;return typeof i=="string"?(f=!1,l.kind=i):ns.is(i)?l.command=i:l.edit=i,f&&a!==void 0&&(l.kind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.title)&&(i.diagnostics===void 0||X.typedArray(i.diagnostics,Cl.is))&&(i.kind===void 0||X.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||ns.is(i.command))&&(i.isPreferred===void 0||X.boolean(i.isPreferred))&&(i.edit===void 0||zp.is(i.edit))}$(n,"is"),t.is=n})(xy||(xy={}));var wy;(function(t){function e(o,i){var a={range:o};return X.defined(i)&&(a.data=i),a}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.command)||ns.is(i.command))}$(n,"is"),t.is=n})(wy||(wy={}));var $y;(function(t){function e(o,i){return{tabSize:o,insertSpaces:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.uinteger(i.tabSize)&&X.boolean(i.insertSpaces)}$(n,"is"),t.is=n})($y||($y={}));var Cy;(function(t){function e(o,i,a){return{range:o,target:i,data:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.target)||X.string(i.target))}$(n,"is"),t.is=n})(Cy||(Cy={}));var Ay;(function(t){function e(o,i){return{range:o,parent:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&(i.parent===void 0||t.is(i.parent))}$(n,"is"),t.is=n})(Ay||(Ay={}));var Sy;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Sy||(Sy={}));var Ty;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ty||(Ty={}));var Dy;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}$(e,"is"),t.is=e})(Dy||(Dy={}));var Ny;(function(t){function e(o,i){return{range:o,text:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.string(i.text)}$(n,"is"),t.is=n})(Ny||(Ny={}));var Oy;(function(t){function e(o,i,a){return{range:o,variableName:i,caseSensitiveLookup:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.boolean(i.caseSensitiveLookup)&&(X.string(i.variableName)||i.variableName===void 0)}$(n,"is"),t.is=n})(Oy||(Oy={}));var Iy;(function(t){function e(o,i){return{range:o,expression:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&(X.string(i.expression)||i.expression===void 0)}$(n,"is"),t.is=n})(Iy||(Iy={}));var Ly;(function(t){function e(o,i){return{frameId:o,stoppedLocation:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(o.stoppedLocation)}$(n,"is"),t.is=n})(Ly||(Ly={}));var Gp;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}$(e,"is"),t.is=e})(Gp||(Gp={}));var Wp;(function(t){function e(o){return{value:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.location===void 0||$l.is(i.location))&&(i.command===void 0||ns.is(i.command))}$(n,"is"),t.is=n})(Wp||(Wp={}));var Fy;(function(t){function e(o,i,a){var l={position:o,label:i};return a!==void 0&&(l.kind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.position)&&(X.string(i.label)||X.typedArray(i.label,Wp.is))&&(i.kind===void 0||Gp.is(i.kind))&&i.textEdits===void 0||X.typedArray(i.textEdits,zr.is)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.paddingLeft===void 0||X.boolean(i.paddingLeft))&&(i.paddingRight===void 0||X.boolean(i.paddingRight))}$(n,"is"),t.is=n})(Fy||(Fy={}));var Ry;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&Vp.is(o.uri)&&X.string(o.name)}$(e,"is"),t.is=e})(Ry||(Ry={}));var My;(function(t){function e(a,l,f,d){return new zse(a,l,f,d)}$(e,"create"),t.create=e;function n(a){var l=a;return!!(X.defined(l)&&X.string(l.uri)&&(X.undefined(l.languageId)||X.string(l.languageId))&&X.uinteger(l.lineCount)&&X.func(l.getText)&&X.func(l.positionAt)&&X.func(l.offsetAt))}$(n,"is"),t.is=n;function o(a,l){for(var f=a.getText(),d=i(l,function(C,S){var N=C.range.start.line-S.range.start.line;return N===0?C.range.start.character-S.range.start.character:N}),h=f.length,v=d.length-1;v>=0;v--){var y=d[v],g=a.offsetAt(y.range.start),E=a.offsetAt(y.range.end);if(E<=h)f=f.substring(0,g)+y.newText+f.substring(E,f.length);else throw new Error("Overlapping edit");h=g}return f}$(o,"applyEdits"),t.applyEdits=o;function i(a,l){if(a.length<=1)return a;var f=a.length/2|0,d=a.slice(0,f),h=a.slice(f);i(d,l),i(h,l);for(var v=0,y=0,g=0;v<d.length&&y<h.length;){var E=l(d[v],h[y]);E<=0?a[g++]=d[v++]:a[g++]=h[y++]}for(;v<d.length;)a[g++]=d[v++];for(;y<h.length;)a[g++]=h[y++];return a}$(i,"mergeSort")})(My||(My={}));var zse=function(){function t(e,n,o,i){this._uri=e,this._languageId=n,this._version=o,this._content=i,this._lineOffsets=void 0}return $(t,"FullTextDocument"),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),o=this.offsetAt(e.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,o=!0,i=0;i<n.length;i++){o&&(e.push(i),o=!1);var a=n.charAt(i);o=a==="\r"||a===`
210
+ */var Lse=F,NE=60103;za.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Bg=Symbol.for;NE=Bg("react.element"),za.Fragment=Bg("react.fragment")}var Rse=Lse.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mse=Object.prototype.hasOwnProperty,qse={key:!0,ref:!0,__self:!0,__source:!0};function Zd(t,e,n){var o,i={},a=null,l=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(l=e.ref);for(o in e)Mse.call(e,o)&&!qse.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)i[o]===void 0&&(i[o]=e[o]);return{$$typeof:NE,type:t,key:a,ref:l,props:i,_owner:Rse.current}}$(Zd,"q");za.jsx=Zd;za.jsxs=Zd;Jd.exports=za;const Qr=Jd.exports.jsx,Vg=Jd.exports.jsxs;var Pse=Object.defineProperty,uu=$((t,e)=>Pse(t,"name",{value:e,configurable:!0}),"__name$h");function ts(t){var e;const[n,o]=ie.useState({width:null,height:null}),[i,a]=ie.useState(null),l=ie.useRef(null),f=(e=fu(t.token))==null?void 0:e.href;ie.useEffect(()=>{if(l.current){if(!f){o({width:null,height:null}),a(null);return}fetch(f,{method:"HEAD"}).then(h=>{a(h.headers.get("Content-Type"))}).catch(()=>{a(null)})}},[f]);const d=n.width!==null&&n.height!==null?Vg("div",{children:[n.width,"x",n.height,i!==null?" "+i:null]}):null;return Vg("div",{children:[Qr("img",{onLoad:()=>{var h,v,y,g;o({width:(v=(h=l.current)==null?void 0:h.naturalWidth)!=null?v:null,height:(g=(y=l.current)==null?void 0:y.naturalHeight)!=null?g:null})},ref:l,src:f}),d]})}$(ts,"ImagePreview");uu(ts,"ImagePreview");ts.shouldRender=uu($(function(e){const n=fu(e);return n?Xd(n):!1},"shouldRender"),"shouldRender");function fu(t){if(t.type!=="string")return;const e=t.string.slice(1).slice(0,-1).trim();try{const n=window.location;return new URL(e,n.protocol+"//"+n.host)}catch{return}}$(fu,"tokenToURL");uu(fu,"tokenToURL");function Xd(t){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(t.pathname)}$(Xd,"isImageURL");uu(Xd,"isImageURL");function Mp(t){return typeof t=="object"&&typeof t.then=="function"}$(Mp,"isPromise");function OE(t){return new Promise((e,n)=>{const o=t.subscribe({next:i=>{e(i),o.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}$(OE,"observableToPromise");function Kd(t){return typeof t=="object"&&"subscribe"in t&&typeof t.subscribe=="function"}$(Kd,"isObservable");function eh(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in t)}$(eh,"isAsyncIterable");function IE(t){return new Promise((e,n)=>{var o;const i=(o=("return"in t?t:t[Symbol.asyncIterator]()).return)===null||o===void 0?void 0:o.bind(t);("next"in t?t:t[Symbol.asyncIterator]()).next.bind(t)().then(l=>{e(l.value),i==null||i()}).catch(l=>{n(l)})})}$(IE,"asyncIterableToPromise");function qp(t){return Promise.resolve(t).then(e=>eh(e)?IE(e):Kd(e)?OE(e):e)}$(qp,"fetcherReturnToPromise");function _l(t){return JSON.stringify(t,null,2)}$(_l,"stringify");function FE(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}$(FE,"formatSingleError");function Pp(t){return t instanceof Error?FE(t):t}$(Pp,"handleSingleError");function Yo(t){return Array.isArray(t)?_l({errors:t.map(e=>Pp(e))}):_l({errors:[Pp(t)]})}$(Yo,"formatError");function kl(t){return _l(t)}$(kl,"formatResult");function LE(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Zn(e)}catch{return{insertions:o,result:e}}const a=n||RE,l=new ai(t);return un(i,{leave(f){l.leave(f)},enter(f){if(l.enter(f),f.kind==="Field"&&!f.selectionSet){const d=l.getType(),h=th(PE(d),a);if(h&&f.loc){const v=qE(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
211
+ `+v)})}}}}),{insertions:o,result:ME(e,o)}}$(LE,"fillLeafs");function RE(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{fn(e[o].type)&&n.push(o)}),n}$(RE,"defaultGetDefaultFieldNames");function th(t,e){const n=Rt(t);if(!t||fn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:R.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],l=a?a.type:null;return{kind:R.FIELD,name:{kind:R.NAME,value:i},selectionSet:th(l,e)}})}}$(th,"buildSelectionSet");function ME(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}$(ME,"withInsertions");function qE(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}$(qE,"getIndentation");function PE(t){if(t)return t}$(PE,"isFieldType");function BE(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const l=e(a),f=o.get(l);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(l,d),i.push(d)}}else i.push(a);return i}$(BE,"uniqueBy");function nh(t,e,n){var o;const i=n?Rt(n).name:null,a=[],l=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(l.indexOf(d)>=0)continue;l.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:R.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===R.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...nh(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}$(nh,"inlineRelevantFragmentSpreads");function VE(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===R.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const l=n?n.getParentType():null;let{selections:f}=a;return f=nh(o,f,l),f=BE(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return un(t,n?qa(n,i):i)}$(VE,"mergeAst");function jE(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(l=>{var f;return(f=l.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}$(jE,"getSelectedOperationName");function UE(t,e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t.length!==0}$(UE,"isQuotaError");class xl{constructor(e){e?this.storage=e:e===null?this.storage=null:this.storage=typeof window<"u"?window.localStorage:null}get(e){if(!this.storage)return null;const n=`${jg}:${e}`,o=this.storage.getItem(n);return o==="null"||o==="undefined"?(this.storage.removeItem(n),null):o||null}set(e,n){let o=!1,i=null;if(this.storage){const a=`${jg}:${e}`;if(n)try{this.storage.setItem(a,n)}catch(l){i=l instanceof Error?l:new Error(`${l}`),o=UE(this.storage,l)}else this.storage.removeItem(a)}return{isQuotaError:o,error:i}}}$(xl,"StorageAPI");const jg="graphiql";class Bp{constructor(e,n,o=null){this.key=e,this.storage=n,this.maxSize=o,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(n=>n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)}edit(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1,e),this.save())}delete(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const n=[...this.items,e];this.maxSize&&n.length>this.maxSize&&n.shift();for(let o=0;o<5;o++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!i||!i.error)this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}$(Bp,"QueryStore");const Bse=1e5;class zE{constructor(e,n){this.storage=e,this.maxHistoryLength=n,this.updateHistory=(o,i,a,l)=>{if(this.shouldSaveQuery(o,i,a,this.history.fetchRecent())){this.history.push({query:o,variables:i,headers:a,operationName:l});const f=this.history.items,d=this.favorite.items;this.queries=f.concat(d)}},this.history=new Bp("queries",this.storage,this.maxHistoryLength),this.favorite=new Bp("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,o,i){if(!e)return!1;try{Zn(e)}catch{return!1}return e.length>Bse?!1:i?!(JSON.stringify(e)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(o)===JSON.stringify(i.headers)||o&&!i.headers)||n&&!i.variables)):!0}toggleFavorite(e,n,o,i,a,l){const f={query:e,variables:n,headers:o,operationName:i,label:a};this.favorite.contains(f)?l&&(f.favorite=!1,this.favorite.delete(f)):(f.favorite=!0,this.favorite.push(f)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,n,o,i,a,l){const f={query:e,variables:n,headers:o,operationName:i,label:a};l?this.favorite.edit(Object.assign(Object.assign({},f),{favorite:l})):this.history.edit(f),this.queries=[...this.history.items,...this.favorite.items]}}$(zE,"HistoryStore");var Vse=Object.defineProperty,rh=$((t,e)=>Vse(t,"name",{value:e,configurable:!0}),"__name$g");function xo(t){const e=ie.createContext(null);return e.displayName=t,e}$(xo,"createNullableContext");rh(xo,"createNullableContext");function wo(t){function e(n){var o;const i=ie.useContext(t);if(i===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((o=n.caller)==null?void 0:o.name)||e.caller.name}\` without the necessary context. Make sure to render the \`${t.displayName}Provider\` component higher up the tree.`);return i}return $(e,"useGivenContext"),rh(e,"useGivenContext"),Object.defineProperty(e,"name",{value:`use${t.displayName}`}),e}$(wo,"createContextHook");rh(wo,"createContextHook");var jse=Object.defineProperty,Use=$((t,e)=>jse(t,"name",{value:e,configurable:!0}),"__name$f");const oh=xo("StorageContext");function pu(t){const e=ie.useRef(!0),[n,o]=ie.useState(new xl(t.storage));return ie.useEffect(()=>{e.current?e.current=!1:o(new xl(t.storage))},[t.storage]),Qr(oh.Provider,{value:n,children:t.children})}$(pu,"StorageContextProvider");Use(pu,"StorageContextProvider");const $o=wo(oh);var Ug;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Ug||(Ug={}));var Vp;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Vp||(Vp={}));var zg;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(zg||(zg={}));var wl;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(wl||(wl={}));var Qn;(function(t){function e(o,i){return o===Number.MAX_VALUE&&(o=wl.MAX_VALUE),i===Number.MAX_VALUE&&(i=wl.MAX_VALUE),{line:o,character:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.line)&&X.uinteger(i.character)}$(n,"is"),t.is=n})(Qn||(Qn={}));var kt;(function(t){function e(o,i,a,l){if(X.uinteger(o)&&X.uinteger(i)&&X.uinteger(a)&&X.uinteger(l))return{start:Qn.create(o,i),end:Qn.create(a,l)};if(Qn.is(o)&&Qn.is(i))return{start:o,end:i};throw new Error("Range#create called with invalid arguments[".concat(o,", ").concat(i,", ").concat(a,", ").concat(l,"]"))}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.start)&&Qn.is(i.end)}$(n,"is"),t.is=n})(kt||(kt={}));var $l;(function(t){function e(o,i){return{uri:o,range:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.string(i.uri)||X.undefined(i.uri))}$(n,"is"),t.is=n})($l||($l={}));var Hg;(function(t){function e(o,i,a,l){return{targetUri:o,targetRange:i,targetSelectionRange:a,originSelectionRange:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.targetRange)&&X.string(i.targetUri)&&kt.is(i.targetSelectionRange)&&(kt.is(i.originSelectionRange)||X.undefined(i.originSelectionRange))}$(n,"is"),t.is=n})(Hg||(Hg={}));var jp;(function(t){function e(o,i,a,l){return{red:o,green:i,blue:a,alpha:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.numberRange(i.red,0,1)&&X.numberRange(i.green,0,1)&&X.numberRange(i.blue,0,1)&&X.numberRange(i.alpha,0,1)}$(n,"is"),t.is=n})(jp||(jp={}));var Gg;(function(t){function e(o,i){return{range:o,color:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&jp.is(i.color)}$(n,"is"),t.is=n})(Gg||(Gg={}));var Wg;(function(t){function e(o,i,a){return{label:o,textEdit:i,additionalTextEdits:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.undefined(i.textEdit)||zr.is(i))&&(X.undefined(i.additionalTextEdits)||X.typedArray(i.additionalTextEdits,zr.is))}$(n,"is"),t.is=n})(Wg||(Wg={}));var Qg;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Qg||(Qg={}));var Yg;(function(t){function e(o,i,a,l,f,d){var h={startLine:o,endLine:i};return X.defined(a)&&(h.startCharacter=a),X.defined(l)&&(h.endCharacter=l),X.defined(f)&&(h.kind=f),X.defined(d)&&(h.collapsedText=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.startLine)&&X.uinteger(i.startLine)&&(X.undefined(i.startCharacter)||X.uinteger(i.startCharacter))&&(X.undefined(i.endCharacter)||X.uinteger(i.endCharacter))&&(X.undefined(i.kind)||X.string(i.kind))}$(n,"is"),t.is=n})(Yg||(Yg={}));var Up;(function(t){function e(o,i){return{location:o,message:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&$l.is(i.location)&&X.string(i.message)}$(n,"is"),t.is=n})(Up||(Up={}));var Jg;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Jg||(Jg={}));var Zg;(function(t){t.Unnecessary=1,t.Deprecated=2})(Zg||(Zg={}));var Xg;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&X.string(o.href)}$(e,"is"),t.is=e})(Xg||(Xg={}));var Cl;(function(t){function e(o,i,a,l,f,d){var h={range:o,message:i};return X.defined(a)&&(h.severity=a),X.defined(l)&&(h.code=l),X.defined(f)&&(h.source=f),X.defined(d)&&(h.relatedInformation=d),h}$(e,"create"),t.create=e;function n(o){var i,a=o;return X.defined(a)&&kt.is(a.range)&&X.string(a.message)&&(X.number(a.severity)||X.undefined(a.severity))&&(X.integer(a.code)||X.string(a.code)||X.undefined(a.code))&&(X.undefined(a.codeDescription)||X.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(X.string(a.source)||X.undefined(a.source))&&(X.undefined(a.relatedInformation)||X.typedArray(a.relatedInformation,Up.is))}$(n,"is"),t.is=n})(Cl||(Cl={}));var ns;(function(t){function e(o,i){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var f={title:o,command:i};return X.defined(a)&&a.length>0&&(f.arguments=a),f}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.title)&&X.string(i.command)}$(n,"is"),t.is=n})(ns||(ns={}));var zr;(function(t){function e(a,l){return{range:a,newText:l}}$(e,"replace"),t.replace=e;function n(a,l){return{range:{start:a,end:a},newText:l}}$(n,"insert"),t.insert=n;function o(a){return{range:a,newText:""}}$(o,"del"),t.del=o;function i(a){var l=a;return X.objectLiteral(l)&&X.string(l.newText)&&kt.is(l.range)}$(i,"is"),t.is=i})(zr||(zr={}));var Gi;(function(t){function e(o,i,a){var l={label:o};return i!==void 0&&(l.needsConfirmation=i),a!==void 0&&(l.description=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(X.string(i.description)||i.description===void 0)}$(n,"is"),t.is=n})(Gi||(Gi={}));var Qt;(function(t){function e(n){var o=n;return X.string(o)}$(e,"is"),t.is=e})(Qt||(Qt={}));var fo;(function(t){function e(a,l,f){return{range:a,newText:l,annotationId:f}}$(e,"replace"),t.replace=e;function n(a,l,f){return{range:{start:a,end:a},newText:l,annotationId:f}}$(n,"insert"),t.insert=n;function o(a,l){return{range:a,newText:"",annotationId:l}}$(o,"del"),t.del=o;function i(a){var l=a;return zr.is(l)&&(Gi.is(l.annotationId)||Qt.is(l.annotationId))}$(i,"is"),t.is=i})(fo||(fo={}));var Al;(function(t){function e(o,i){return{textDocument:o,edits:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&Sl.is(i.textDocument)&&Array.isArray(i.edits)}$(n,"is"),t.is=n})(Al||(Al={}));var xa;(function(t){function e(o,i,a){var l={kind:"create",uri:o};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),a!==void 0&&(l.annotationId=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="create"&&X.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(xa||(xa={}));var wa;(function(t){function e(o,i,a,l){var f={kind:"rename",oldUri:o,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(f.options=a),l!==void 0&&(f.annotationId=l),f}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="rename"&&X.string(i.oldUri)&&X.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(wa||(wa={}));var $a;(function(t){function e(o,i,a){var l={kind:"delete",uri:o};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(l.options=i),a!==void 0&&(l.annotationId=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="delete"&&X.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||X.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||X.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})($a||($a={}));var zp;(function(t){function e(n){var o=n;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(i){return X.string(i.kind)?xa.is(i)||wa.is(i)||$a.is(i):Al.is(i)}))}$(e,"is"),t.is=e})(zp||(zp={}));var Wc=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return $(t,"TextEditChangeImpl"),t.prototype.insert=function(e,n,o){var i,a;if(o===void 0?i=zr.insert(e,n):Qt.is(o)?(a=o,i=fo.insert(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.insert(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.replace=function(e,n,o){var i,a;if(o===void 0?i=zr.replace(e,n):Qt.is(o)?(a=o,i=fo.replace(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.replace(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.delete=function(e,n){var o,i;if(n===void 0?o=zr.del(e):Qt.is(n)?(i=n,o=fo.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=fo.del(e,i)),this.edits.push(o),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Kg=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return $(t,"ChangeAnnotations"),t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var o;if(Qt.is(e)?o=e:(o=this.nextId(),n=e),this._annotations[o]!==void 0)throw new Error("Id ".concat(o," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(o));return this._annotations[o]=n,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Kg(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(o){if(Al.is(o)){var i=new Wc(o.edits,n._changeAnnotations);n._textEditChanges[o.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(o){var i=new Wc(e.changes[o]);n._textEditChanges[o]=i})):this._workspaceEdit={}}return $(t,"WorkspaceChange"),Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(Sl.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},o=this._textEditChanges[n.uri];if(!o){var i=[],a={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(a),o=new Wc(i,this._changeAnnotations),this._textEditChanges[n.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[e];if(!o){var i=[];this._workspaceEdit.changes[e]=i,o=new Wc(i),this._textEditChanges[e]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kg,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,l;if(i===void 0?a=xa.create(e,o):(l=Qt.is(i)?i:this._changeAnnotations.manage(i),a=xa.create(e,o,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l},t.prototype.renameFile=function(e,n,o,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Gi.is(o)||Qt.is(o)?a=o:i=o;var l,f;if(a===void 0?l=wa.create(e,n,i):(f=Qt.is(a)?a:this._changeAnnotations.manage(a),l=wa.create(e,n,i,f)),this._workspaceEdit.documentChanges.push(l),f!==void 0)return f},t.prototype.deleteFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,l;if(i===void 0?a=$a.create(e,o):(l=Qt.is(i)?i:this._changeAnnotations.manage(i),a=$a.create(e,o,l)),this._workspaceEdit.documentChanges.push(a),l!==void 0)return l},t})();var ey;(function(t){function e(o){return{uri:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)}$(n,"is"),t.is=n})(ey||(ey={}));var ty;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.integer(i.version)}$(n,"is"),t.is=n})(ty||(ty={}));var Sl;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&(i.version===null||X.integer(i.version))}$(n,"is"),t.is=n})(Sl||(Sl={}));var ny;(function(t){function e(o,i,a,l){return{uri:o,languageId:i,version:a,text:l}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.string(i.languageId)&&X.integer(i.version)&&X.string(i.text)}$(n,"is"),t.is=n})(ny||(ny={}));var Hp;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){var o=n;return o===t.PlainText||o===t.Markdown}$(e,"is"),t.is=e})(Hp||(Hp={}));var Ca;(function(t){function e(n){var o=n;return X.objectLiteral(n)&&Hp.is(o.kind)&&X.string(o.value)}$(e,"is"),t.is=e})(Ca||(Ca={}));var ry;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ry||(ry={}));var oy;(function(t){t.PlainText=1,t.Snippet=2})(oy||(oy={}));var iy;(function(t){t.Deprecated=1})(iy||(iy={}));var sy;(function(t){function e(o,i,a){return{newText:o,insert:i,replace:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.newText)&&kt.is(i.insert)&&kt.is(i.replace)}$(n,"is"),t.is=n})(sy||(sy={}));var ay;(function(t){t.asIs=1,t.adjustIndentation=2})(ay||(ay={}));var cy;(function(t){function e(n){var o=n;return o&&(X.string(o.detail)||o.detail===void 0)&&(X.string(o.description)||o.description===void 0)}$(e,"is"),t.is=e})(cy||(cy={}));var ly;(function(t){function e(n){return{label:n}}$(e,"create"),t.create=e})(ly||(ly={}));var uy;(function(t){function e(n,o){return{items:n||[],isIncomplete:!!o}}$(e,"create"),t.create=e})(uy||(uy={}));var Tl;(function(t){function e(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}$(e,"fromPlainText"),t.fromPlainText=e;function n(o){var i=o;return X.string(i)||X.objectLiteral(i)&&X.string(i.language)&&X.string(i.value)}$(n,"is"),t.is=n})(Tl||(Tl={}));var fy;(function(t){function e(n){var o=n;return!!o&&X.objectLiteral(o)&&(Ca.is(o.contents)||Tl.is(o.contents)||X.typedArray(o.contents,Tl.is))&&(n.range===void 0||kt.is(n.range))}$(e,"is"),t.is=e})(fy||(fy={}));var py;(function(t){function e(n,o){return o?{label:n,documentation:o}:{label:n}}$(e,"create"),t.create=e})(py||(py={}));var dy;(function(t){function e(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var l={label:n};return X.defined(o)&&(l.documentation=o),X.defined(i)?l.parameters=i:l.parameters=[],l}$(e,"create"),t.create=e})(dy||(dy={}));var hy;(function(t){t.Text=1,t.Read=2,t.Write=3})(hy||(hy={}));var my;(function(t){function e(n,o){var i={range:n};return X.number(o)&&(i.kind=o),i}$(e,"create"),t.create=e})(my||(my={}));var vy;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(vy||(vy={}));var gy;(function(t){t.Deprecated=1})(gy||(gy={}));var yy;(function(t){function e(n,o,i,a,l){var f={name:n,kind:o,location:{uri:a,range:i}};return l&&(f.containerName=l),f}$(e,"create"),t.create=e})(yy||(yy={}));var by;(function(t){function e(n,o,i,a){return a!==void 0?{name:n,kind:o,location:{uri:i,range:a}}:{name:n,kind:o,location:{uri:i}}}$(e,"create"),t.create=e})(by||(by={}));var Ey;(function(t){function e(o,i,a,l,f,d){var h={name:o,detail:i,kind:a,range:l,selectionRange:f};return d!==void 0&&(h.children=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.name)&&X.number(i.kind)&&kt.is(i.range)&&kt.is(i.selectionRange)&&(i.detail===void 0||X.string(i.detail))&&(i.deprecated===void 0||X.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}$(n,"is"),t.is=n})(Ey||(Ey={}));var _y;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(_y||(_y={}));var Dl;(function(t){t.Invoked=1,t.Automatic=2})(Dl||(Dl={}));var ky;(function(t){function e(o,i,a){var l={diagnostics:o};return i!=null&&(l.only=i),a!=null&&(l.triggerKind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.typedArray(i.diagnostics,Cl.is)&&(i.only===void 0||X.typedArray(i.only,X.string))&&(i.triggerKind===void 0||i.triggerKind===Dl.Invoked||i.triggerKind===Dl.Automatic)}$(n,"is"),t.is=n})(ky||(ky={}));var xy;(function(t){function e(o,i,a){var l={title:o},f=!0;return typeof i=="string"?(f=!1,l.kind=i):ns.is(i)?l.command=i:l.edit=i,f&&a!==void 0&&(l.kind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.title)&&(i.diagnostics===void 0||X.typedArray(i.diagnostics,Cl.is))&&(i.kind===void 0||X.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||ns.is(i.command))&&(i.isPreferred===void 0||X.boolean(i.isPreferred))&&(i.edit===void 0||zp.is(i.edit))}$(n,"is"),t.is=n})(xy||(xy={}));var wy;(function(t){function e(o,i){var a={range:o};return X.defined(i)&&(a.data=i),a}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.command)||ns.is(i.command))}$(n,"is"),t.is=n})(wy||(wy={}));var $y;(function(t){function e(o,i){return{tabSize:o,insertSpaces:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.uinteger(i.tabSize)&&X.boolean(i.insertSpaces)}$(n,"is"),t.is=n})($y||($y={}));var Cy;(function(t){function e(o,i,a){return{range:o,target:i,data:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.target)||X.string(i.target))}$(n,"is"),t.is=n})(Cy||(Cy={}));var Ay;(function(t){function e(o,i){return{range:o,parent:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&(i.parent===void 0||t.is(i.parent))}$(n,"is"),t.is=n})(Ay||(Ay={}));var Sy;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Sy||(Sy={}));var Ty;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ty||(Ty={}));var Dy;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}$(e,"is"),t.is=e})(Dy||(Dy={}));var Ny;(function(t){function e(o,i){return{range:o,text:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.string(i.text)}$(n,"is"),t.is=n})(Ny||(Ny={}));var Oy;(function(t){function e(o,i,a){return{range:o,variableName:i,caseSensitiveLookup:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.boolean(i.caseSensitiveLookup)&&(X.string(i.variableName)||i.variableName===void 0)}$(n,"is"),t.is=n})(Oy||(Oy={}));var Iy;(function(t){function e(o,i){return{range:o,expression:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&(X.string(i.expression)||i.expression===void 0)}$(n,"is"),t.is=n})(Iy||(Iy={}));var Fy;(function(t){function e(o,i){return{frameId:o,stoppedLocation:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(o.stoppedLocation)}$(n,"is"),t.is=n})(Fy||(Fy={}));var Gp;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}$(e,"is"),t.is=e})(Gp||(Gp={}));var Wp;(function(t){function e(o){return{value:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.location===void 0||$l.is(i.location))&&(i.command===void 0||ns.is(i.command))}$(n,"is"),t.is=n})(Wp||(Wp={}));var Ly;(function(t){function e(o,i,a){var l={position:o,label:i};return a!==void 0&&(l.kind=a),l}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.position)&&(X.string(i.label)||X.typedArray(i.label,Wp.is))&&(i.kind===void 0||Gp.is(i.kind))&&i.textEdits===void 0||X.typedArray(i.textEdits,zr.is)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.paddingLeft===void 0||X.boolean(i.paddingLeft))&&(i.paddingRight===void 0||X.boolean(i.paddingRight))}$(n,"is"),t.is=n})(Ly||(Ly={}));var Ry;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&Vp.is(o.uri)&&X.string(o.name)}$(e,"is"),t.is=e})(Ry||(Ry={}));var My;(function(t){function e(a,l,f,d){return new zse(a,l,f,d)}$(e,"create"),t.create=e;function n(a){var l=a;return!!(X.defined(l)&&X.string(l.uri)&&(X.undefined(l.languageId)||X.string(l.languageId))&&X.uinteger(l.lineCount)&&X.func(l.getText)&&X.func(l.positionAt)&&X.func(l.offsetAt))}$(n,"is"),t.is=n;function o(a,l){for(var f=a.getText(),d=i(l,function(C,S){var N=C.range.start.line-S.range.start.line;return N===0?C.range.start.character-S.range.start.character:N}),h=f.length,v=d.length-1;v>=0;v--){var y=d[v],g=a.offsetAt(y.range.start),E=a.offsetAt(y.range.end);if(E<=h)f=f.substring(0,g)+y.newText+f.substring(E,f.length);else throw new Error("Overlapping edit");h=g}return f}$(o,"applyEdits"),t.applyEdits=o;function i(a,l){if(a.length<=1)return a;var f=a.length/2|0,d=a.slice(0,f),h=a.slice(f);i(d,l),i(h,l);for(var v=0,y=0,g=0;v<d.length&&y<h.length;){var E=l(d[v],h[y]);E<=0?a[g++]=d[v++]:a[g++]=h[y++]}for(;v<d.length;)a[g++]=d[v++];for(;y<h.length;)a[g++]=h[y++];return a}$(i,"mergeSort")})(My||(My={}));var zse=function(){function t(e,n,o,i){this._uri=e,this._languageId=n,this._version=o,this._content=i,this._lineOffsets=void 0}return $(t,"FullTextDocument"),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),o=this.offsetAt(e.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,o=!0,i=0;i<n.length;i++){o&&(e.push(i),o=!1);var a=n.charAt(i);o=a==="\r"||a===`
212
212
  `,a==="\r"&&i+1<n.length&&n.charAt(i+1)===`
213
- `&&i++}o&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),o=0,i=n.length;if(i===0)return Qn.create(0,e);for(;o<i;){var a=Math.floor((o+i)/2);n[a]>e?i=a:o=a+1}var l=o-1;return Qn.create(l,e-n[l])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var o=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(o+e.character,i),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),X;(function(t){var e=Object.prototype.toString;function n(E){return typeof E<"u"}$(n,"defined"),t.defined=n;function o(E){return typeof E>"u"}$(o,"undefined$1"),t.undefined=o;function i(E){return E===!0||E===!1}$(i,"boolean"),t.boolean=i;function a(E){return e.call(E)==="[object String]"}$(a,"string"),t.string=a;function l(E){return e.call(E)==="[object Number]"}$(l,"number"),t.number=l;function f(E,C,S){return e.call(E)==="[object Number]"&&C<=E&&E<=S}$(f,"numberRange"),t.numberRange=f;function d(E){return e.call(E)==="[object Number]"&&-2147483648<=E&&E<=2147483647}$(d,"integer"),t.integer=d;function h(E){return e.call(E)==="[object Number]"&&0<=E&&E<=2147483647}$(h,"uinteger"),t.uinteger=h;function v(E){return e.call(E)==="[object Function]"}$(v,"func"),t.func=v;function y(E){return E!==null&&typeof E=="object"}$(y,"objectLiteral"),t.objectLiteral=y;function g(E,C){return Array.isArray(E)&&E.every(C)}$(g,"typedArray"),t.typedArray=g})(X||(X={}));var qy;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(qy||(qy={}));function vt(t){return{ofRule:t}}$(vt,"opt");function Ge(t,e){return{ofRule:t,isList:!0,separator:e}}$(Ge,"list");function HE(t,e){const n=t.match;return t.match=o=>{let i=!1;return n&&(i=n(o)),i&&e.every(a=>a.match&&!a.match(o))},t}$(HE,"butNot");function sl(t,e){return{style:e,match:n=>n.kind===t}}$(sl,"t");function Fe(t,e){return{style:e||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===t}}$(Fe,"p");const t8e=$(t=>t===" "||t===" "||t===","||t===`
214
- `||t==="\r"||t==="\uFEFF"||t===" ","isIgnored"),n8e={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},r8e={Document:[Ge("Definition")],Definition(t){switch(t.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return R.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[qt("query"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Mutation:[qt("mutation"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Subscription:[qt("subscription"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],VariableDefinitions:[Fe("("),Ge("VariableDefinition"),Fe(")")],VariableDefinition:["Variable",Fe(":"),"Type",vt("DefaultValue")],Variable:[Fe("$","variable"),st("variable")],DefaultValue:[Fe("="),"Value"],SelectionSet:[Fe("{"),Ge("Selection"),Fe("}")],Selection(t,e){return t.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[st("property"),Fe(":"),st("qualifier"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Field:[st("property"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Arguments:[Fe("("),Ge("Argument"),Fe(")")],Argument:[st("attribute"),Fe(":"),"Value"],FragmentSpread:[Fe("..."),st("def"),Ge("Directive")],InlineFragment:[Fe("..."),vt("TypeCondition"),Ge("Directive"),"SelectionSet"],FragmentDefinition:[qt("fragment"),vt(HE(st("def"),[qt("on")])),"TypeCondition",Ge("Directive"),"SelectionSet"],TypeCondition:[qt("on"),"NamedType"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(t.value){case"true":case"false":return"BooleanValue"}return t.value==="null"?"NullValue":"EnumValue"}},NumberValue:[sl("Number","number")],StringValue:[{style:"string",match:t=>t.kind==="String",update(t,e){e.value.startsWith('"""')&&(t.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[sl("Name","builtin")],NullValue:[sl("Name","keyword")],EnumValue:[st("string-2")],ListValue:[Fe("["),Ge("Value"),Fe("]")],ObjectValue:[Fe("{"),Ge("ObjectField"),Fe("}")],ObjectField:[st("attribute"),Fe(":"),"Value"],Type(t){return t.value==="["?"ListType":"NonNullType"},ListType:[Fe("["),"Type",Fe("]"),vt(Fe("!"))],NonNullType:["NamedType",vt(Fe("!"))],NamedType:[GE("atom")],Directive:[Fe("@","meta"),st("meta"),vt("Arguments")],DirectiveDef:[qt("directive"),Fe("@","meta"),st("meta"),vt("ArgumentsDef"),qt("on"),Ge("DirectiveLocation",Fe("|"))],InterfaceDef:[qt("interface"),st("atom"),vt("Implements"),Ge("Directive"),Fe("{"),Ge("FieldDef"),Fe("}")],Implements:[qt("implements"),Ge("NamedType",Fe("&"))],DirectiveLocation:[st("string-2")],SchemaDef:[qt("schema"),Ge("Directive"),Fe("{"),Ge("OperationTypeDef"),Fe("}")],OperationTypeDef:[st("keyword"),Fe(":"),st("atom")],ScalarDef:[qt("scalar"),st("atom"),Ge("Directive")],ObjectTypeDef:[qt("type"),st("atom"),vt("Implements"),Ge("Directive"),Fe("{"),Ge("FieldDef"),Fe("}")],FieldDef:[st("property"),vt("ArgumentsDef"),Fe(":"),"Type",Ge("Directive")],ArgumentsDef:[Fe("("),Ge("InputValueDef"),Fe(")")],InputValueDef:[st("attribute"),Fe(":"),"Type",vt("DefaultValue"),Ge("Directive")],UnionDef:[qt("union"),st("atom"),Ge("Directive"),Fe("="),Ge("UnionMember",Fe("|"))],UnionMember:["NamedType"],EnumDef:[qt("enum"),st("atom"),Ge("Directive"),Fe("{"),Ge("EnumValueDef"),Fe("}")],EnumValueDef:[st("string-2"),Ge("Directive")],InputDef:[qt("input"),st("atom"),Ge("Directive"),Fe("{"),Ge("InputValueDef"),Fe("}")],ExtendDef:[qt("extend"),"ObjectTypeDef"]};function qt(t){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===t}}$(qt,"word");function st(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.name=n.value}}}$(st,"name");function GE(t){return{style:t,match:e=>e.kind==="Name",update(e,n){var o;!((o=e.prevState)===null||o===void 0)&&o.prevState&&(e.name=n.value,e.prevState.prevState.type=n.value)}}}$(GE,"type");const Hse={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},o8e=Object.assign(Object.assign({},R),Hse);var du={exports:{}};function ih(t,e){if(t!=null)return t;var n=new Error(e!==void 0?e:"Got unexpected "+t);throw n.framesToPop=1,n}$(ih,"nullthrows");du.exports=ih;du.exports.default=ih;Object.defineProperty(du.exports,"__esModule",{value:!0});var Py=Rb(du.exports);const Gse=$((t,e)=>{if(!e)return[];const n=new Map,o=new Set;un(t,{FragmentDefinition(l){n.set(l.name.value,!0)},FragmentSpread(l){o.has(l.name.value)||o.add(l.name.value)}});const i=new Set;o.forEach(l=>{!n.has(l)&&e.has(l)&&i.add(Py(e.get(l)))});const a=[];return i.forEach(l=>{un(l,{FragmentSpread(f){!o.has(f.name.value)&&e.get(f.name.value)&&(i.add(Py(e.get(f.name.value))),o.add(f.name.value))}}),n.has(l.name.value)||a.push(l)}),a},"getFragmentDependenciesForAST");function WE(t,e){const n=Object.create(null);return e.definitions.forEach(o=>{if(o.kind==="OperationDefinition"){const i=o.variableDefinitions;i&&i.forEach(({variable:a,type:l})=>{const f=tn(t,l);f?n[a.name.value]=f:l.kind===R.NAMED_TYPE&&l.name.value==="Float"&&(n[a.name.value]=ud)})}}),n}$(WE,"collectVariables");function QE(t,e){const n=e?WE(e,t):void 0,o=[];return un(t,{OperationDefinition(i){o.push(i)}}),{variableToType:n,operations:o}}$(QE,"getOperationASTFacts");function YE(t,e){if(e)try{const n=Zn(e);return Object.assign(Object.assign({},QE(n,t)),{documentAST:n})}catch{return}}$(YE,"getOperationFacts");/*!
213
+ `&&i++}o&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),o=0,i=n.length;if(i===0)return Qn.create(0,e);for(;o<i;){var a=Math.floor((o+i)/2);n[a]>e?i=a:o=a+1}var l=o-1;return Qn.create(l,e-n[l])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var o=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(o+e.character,i),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),X;(function(t){var e=Object.prototype.toString;function n(E){return typeof E<"u"}$(n,"defined"),t.defined=n;function o(E){return typeof E>"u"}$(o,"undefined$1"),t.undefined=o;function i(E){return E===!0||E===!1}$(i,"boolean"),t.boolean=i;function a(E){return e.call(E)==="[object String]"}$(a,"string"),t.string=a;function l(E){return e.call(E)==="[object Number]"}$(l,"number"),t.number=l;function f(E,C,S){return e.call(E)==="[object Number]"&&C<=E&&E<=S}$(f,"numberRange"),t.numberRange=f;function d(E){return e.call(E)==="[object Number]"&&-2147483648<=E&&E<=2147483647}$(d,"integer"),t.integer=d;function h(E){return e.call(E)==="[object Number]"&&0<=E&&E<=2147483647}$(h,"uinteger"),t.uinteger=h;function v(E){return e.call(E)==="[object Function]"}$(v,"func"),t.func=v;function y(E){return E!==null&&typeof E=="object"}$(y,"objectLiteral"),t.objectLiteral=y;function g(E,C){return Array.isArray(E)&&E.every(C)}$(g,"typedArray"),t.typedArray=g})(X||(X={}));var qy;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(qy||(qy={}));function vt(t){return{ofRule:t}}$(vt,"opt");function Ge(t,e){return{ofRule:t,isList:!0,separator:e}}$(Ge,"list");function HE(t,e){const n=t.match;return t.match=o=>{let i=!1;return n&&(i=n(o)),i&&e.every(a=>a.match&&!a.match(o))},t}$(HE,"butNot");function sl(t,e){return{style:e,match:n=>n.kind===t}}$(sl,"t");function Le(t,e){return{style:e||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===t}}$(Le,"p");const t8e=$(t=>t===" "||t===" "||t===","||t===`
214
+ `||t==="\r"||t==="\uFEFF"||t===" ","isIgnored"),n8e={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},r8e={Document:[Ge("Definition")],Definition(t){switch(t.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return R.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[qt("query"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Mutation:[qt("mutation"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Subscription:[qt("subscription"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],VariableDefinitions:[Le("("),Ge("VariableDefinition"),Le(")")],VariableDefinition:["Variable",Le(":"),"Type",vt("DefaultValue")],Variable:[Le("$","variable"),st("variable")],DefaultValue:[Le("="),"Value"],SelectionSet:[Le("{"),Ge("Selection"),Le("}")],Selection(t,e){return t.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[st("property"),Le(":"),st("qualifier"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Field:[st("property"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Arguments:[Le("("),Ge("Argument"),Le(")")],Argument:[st("attribute"),Le(":"),"Value"],FragmentSpread:[Le("..."),st("def"),Ge("Directive")],InlineFragment:[Le("..."),vt("TypeCondition"),Ge("Directive"),"SelectionSet"],FragmentDefinition:[qt("fragment"),vt(HE(st("def"),[qt("on")])),"TypeCondition",Ge("Directive"),"SelectionSet"],TypeCondition:[qt("on"),"NamedType"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(t.value){case"true":case"false":return"BooleanValue"}return t.value==="null"?"NullValue":"EnumValue"}},NumberValue:[sl("Number","number")],StringValue:[{style:"string",match:t=>t.kind==="String",update(t,e){e.value.startsWith('"""')&&(t.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[sl("Name","builtin")],NullValue:[sl("Name","keyword")],EnumValue:[st("string-2")],ListValue:[Le("["),Ge("Value"),Le("]")],ObjectValue:[Le("{"),Ge("ObjectField"),Le("}")],ObjectField:[st("attribute"),Le(":"),"Value"],Type(t){return t.value==="["?"ListType":"NonNullType"},ListType:[Le("["),"Type",Le("]"),vt(Le("!"))],NonNullType:["NamedType",vt(Le("!"))],NamedType:[GE("atom")],Directive:[Le("@","meta"),st("meta"),vt("Arguments")],DirectiveDef:[qt("directive"),Le("@","meta"),st("meta"),vt("ArgumentsDef"),qt("on"),Ge("DirectiveLocation",Le("|"))],InterfaceDef:[qt("interface"),st("atom"),vt("Implements"),Ge("Directive"),Le("{"),Ge("FieldDef"),Le("}")],Implements:[qt("implements"),Ge("NamedType",Le("&"))],DirectiveLocation:[st("string-2")],SchemaDef:[qt("schema"),Ge("Directive"),Le("{"),Ge("OperationTypeDef"),Le("}")],OperationTypeDef:[st("keyword"),Le(":"),st("atom")],ScalarDef:[qt("scalar"),st("atom"),Ge("Directive")],ObjectTypeDef:[qt("type"),st("atom"),vt("Implements"),Ge("Directive"),Le("{"),Ge("FieldDef"),Le("}")],FieldDef:[st("property"),vt("ArgumentsDef"),Le(":"),"Type",Ge("Directive")],ArgumentsDef:[Le("("),Ge("InputValueDef"),Le(")")],InputValueDef:[st("attribute"),Le(":"),"Type",vt("DefaultValue"),Ge("Directive")],UnionDef:[qt("union"),st("atom"),Ge("Directive"),Le("="),Ge("UnionMember",Le("|"))],UnionMember:["NamedType"],EnumDef:[qt("enum"),st("atom"),Ge("Directive"),Le("{"),Ge("EnumValueDef"),Le("}")],EnumValueDef:[st("string-2"),Ge("Directive")],InputDef:[qt("input"),st("atom"),Ge("Directive"),Le("{"),Ge("InputValueDef"),Le("}")],ExtendDef:[qt("extend"),"ObjectTypeDef"]};function qt(t){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===t}}$(qt,"word");function st(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.name=n.value}}}$(st,"name");function GE(t){return{style:t,match:e=>e.kind==="Name",update(e,n){var o;!((o=e.prevState)===null||o===void 0)&&o.prevState&&(e.name=n.value,e.prevState.prevState.type=n.value)}}}$(GE,"type");const Hse={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},o8e=Object.assign(Object.assign({},R),Hse);var du={exports:{}};function ih(t,e){if(t!=null)return t;var n=new Error(e!==void 0?e:"Got unexpected "+t);throw n.framesToPop=1,n}$(ih,"nullthrows");du.exports=ih;du.exports.default=ih;Object.defineProperty(du.exports,"__esModule",{value:!0});var Py=Rb(du.exports);const Gse=$((t,e)=>{if(!e)return[];const n=new Map,o=new Set;un(t,{FragmentDefinition(l){n.set(l.name.value,!0)},FragmentSpread(l){o.has(l.name.value)||o.add(l.name.value)}});const i=new Set;o.forEach(l=>{!n.has(l)&&e.has(l)&&i.add(Py(e.get(l)))});const a=[];return i.forEach(l=>{un(l,{FragmentSpread(f){!o.has(f.name.value)&&e.get(f.name.value)&&(i.add(Py(e.get(f.name.value))),o.add(f.name.value))}}),n.has(l.name.value)||a.push(l)}),a},"getFragmentDependenciesForAST");function WE(t,e){const n=Object.create(null);return e.definitions.forEach(o=>{if(o.kind==="OperationDefinition"){const i=o.variableDefinitions;i&&i.forEach(({variable:a,type:l})=>{const f=tn(t,l);f?n[a.name.value]=f:l.kind===R.NAMED_TYPE&&l.name.value==="Float"&&(n[a.name.value]=ud)})}}),n}$(WE,"collectVariables");function QE(t,e){const n=e?WE(e,t):void 0,o=[];return un(t,{OperationDefinition(i){o.push(i)}}),{variableToType:n,operations:o}}$(QE,"getOperationASTFacts");function YE(t,e){if(e)try{const n=Zn(e);return Object.assign(Object.assign({},QE(n,t)),{documentAST:n})}catch{return}}$(YE,"getOperationFacts");/*!
215
215
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
216
216
  *
217
217
  * Copyright (c) 2014-present, Jon Schlinkert.
@@ -231,9 +231,9 @@ object-assign
231
231
  *
232
232
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
233
233
  * Released under the MIT License.
234
- */const{deleteProperty:Zse}=Reflect,Xse=Wse,By=Jse,Vy=$(t=>typeof t=="object"&&t!==null||typeof t=="function","isObject"),Kse=$(t=>t==="__proto__"||t==="constructor"||t==="prototype","isUnsafeKey"),sh=$(t=>{if(!Xse(t))throw new TypeError("Object keys must be strings or symbols");if(Kse(t))throw new Error(`Cannot set unsafe key: "${t}"`)},"validateKey"),eae=$(t=>Array.isArray(t)?t.flat().map(String).join(","):t,"toStringKey"),tae=$((t,e)=>{if(typeof t!="string"||!e)return t;let n=t+";";return e.arrays!==void 0&&(n+=`arrays=${e.arrays};`),e.separator!==void 0&&(n+=`separator=${e.separator};`),e.split!==void 0&&(n+=`split=${e.split};`),e.merge!==void 0&&(n+=`merge=${e.merge};`),e.preservePaths!==void 0&&(n+=`preservePaths=${e.preservePaths};`),n},"createMemoKey"),nae=$((t,e,n)=>{const o=eae(e?tae(t,e):t);sh(o);const i=ei.cache.get(o)||n();return ei.cache.set(o,i),i},"memoize"),rae=$((t,e={})=>{const n=e.separator||".",o=n==="/"?!1:e.preservePaths;if(typeof t=="string"&&o!==!1&&/\//.test(t))return[t];const i=[];let a="";const l=$(f=>{let d;f.trim()!==""&&Number.isInteger(d=Number(f))?i.push(d):i.push(f)},"push");for(let f=0;f<t.length;f++){const d=t[f];if(d==="\\"){a+=t[++f];continue}if(d===n){l(a),a="";continue}a+=d}return a&&l(a),i},"splitString"),JE=$((t,e)=>e&&typeof e.split=="function"?e.split(t):typeof t=="symbol"?[t]:Array.isArray(t)?t:nae(t,e,()=>rae(t,e)),"split"),oae=$((t,e,n,o)=>{if(sh(e),n===void 0)Zse(t,e);else if(o&&o.merge){const i=o.merge==="function"?o.merge:Object.assign;i&&By(t[e])&&By(n)?t[e]=i(t[e],n):t[e]=n}else t[e]=n;return t},"assignProp"),ei=$((t,e,n,o)=>{if(!e||!Vy(t))return t;const i=JE(e,o);let a=t;for(let l=0;l<i.length;l++){const f=i[l],d=i[l+1];if(sh(f),d===void 0){oae(a,f,n,o);break}if(typeof d=="number"&&!Array.isArray(a[f])){a=a[f]=[];continue}Vy(a[f])||(a[f]={}),a=a[f]}return t},"setValue");ei.split=JE;ei.cache=new Map;ei.clear=()=>{ei.cache=new Map};var iae=ei,sae=Object.defineProperty,aae=$((t,e)=>sae(t,"name",{value:e,configurable:!0}),"__name$e");const ah=xo("HistoryContext");function hu(t){var e;const n=$o(),o=ie.useRef(new zE(n||new xl(null),t.maxHistoryLength||cae)),[i,a]=ie.useState(((e=o.current)==null?void 0:e.queries)||[]),[l,f]=ie.useState((n==null?void 0:n.get(Qc))==="true"||!1),d=ie.useCallback(({query:N,variables:D,headers:T,operationName:O})=>{var V;(V=o.current)==null||V.updateHistory(N,D,T,O),a(o.current.queries)},[]),h=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.editLabel(N,D,T,O,V,Y),a(o.current.queries)},[]),{onToggle:v}=t,y=ie.useCallback(()=>{v==null||v(!1),n==null||n.set(Qc,JSON.stringify(!1)),f(!1)},[v,n]),g=ie.useCallback(()=>{v==null||v(!0),n==null||n.set(Qc,JSON.stringify(!0)),f(!0)},[v,n]),E=ie.useCallback(()=>{f(N=>{const D=!N;return v==null||v(D),n==null||n.set(Qc,JSON.stringify(D)),D})},[v,n]),C=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.toggleFavorite(N,D,T,O,V,Y),a(o.current.queries)},[]),S=ie.useMemo(()=>({addToHistory:d,editLabel:h,hide:y,isVisible:l,items:i,show:g,toggle:E,toggleFavorite:C}),[d,h,y,l,i,g,E,C]);return Qr(ah.Provider,{value:S,children:t.children})}$(hu,"HistoryContextProvider");aae(hu,"HistoryContextProvider");const Ha=wo(ah),cae=20,Qc="historyPaneOpen";var lae=Object.defineProperty,uae=$((t,e)=>lae(t,"name",{value:e,configurable:!0}),"__name$d");function Ga(){const{headerEditor:t,queryEditor:e,variableEditor:n}=rn({nonNull:!0,caller:Ga});return o=>{var i,a,l;e==null||e.setValue((i=o.query)!=null?i:""),n==null||n.setValue((a=o.variables)!=null?a:""),t==null||t.setValue((l=o.headers)!=null?l:"")}}$(Ga,"useSelectHistoryItem");uae(Ga,"useSelectHistoryItem");var fae=Object.defineProperty,Nl=$((t,e)=>fae(t,"name",{value:e,configurable:!0}),"__name$c");const ch=xo("ExecutionContext");function rs(t){const{externalFragments:e,headerEditor:n,queryEditor:o,responseEditor:i,shouldPersistHeaders:a,variableEditor:l,updateActiveTabValues:f}=rn({nonNull:!0,caller:rs}),d=Ha(),h=ni({caller:rs}),[v,y]=ie.useState(!1),[g,E]=ie.useState(null),C=ie.useRef(0),S=ie.useCallback(()=>{g==null||g.unsubscribe(),y(!1),E(null)},[g]),{fetcher:N}=t,D=ie.useCallback(async()=>{var O,V,Y;if(!o||!i)return;if(g){S();return}const P=Nl(F=>{i.setValue(F),f({response:F})},"setResponse");C.current+=1;const U=C.current;let K=h()||o.getValue();const G=l==null?void 0:l.getValue();let Q;try{Q=Ol({json:G,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(F){P(F instanceof Error?F.message:`${F}`);return}const re=n==null?void 0:n.getValue();let _e;try{_e=Ol({json:re,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(F){P(F instanceof Error?F.message:`${F}`);return}if(e){const F=o.documentAST?Gse(o.documentAST,e):[];F.length>0&&(K+=`
235
- `+F.map(x=>Je(x)).join(`
236
- `))}P(""),y(!0);const H=(V=(O=t.operationName)!=null?O:o.operationName)!=null?V:void 0;d==null||d.addToHistory({query:K,variables:G,headers:re,operationName:H});try{let F={data:{}};const x=Nl(te=>{if(U!==C.current)return;let pe=Array.isArray(te)?te:!1;if(!pe&&typeof te=="object"&&te!==null&&"hasNext"in te&&(pe=[te]),pe){const $e={data:F.data},Me=[...(F==null?void 0:F.errors)||[],...pe.map(Z=>Z.errors).flat().filter(Boolean)];Me.length&&($e.errors=Me);for(const Z of pe){const fe=Z,{path:de,data:ge,errors:ye}=fe,he=J$(fe,["path","data","errors"]);if(de){if(!ge)throw new Error(`Expected part to contain a data property, but got ${Z}`);iae($e.data,de,ge,{merge:!0})}else ge&&($e.data=Z.data);F=mn(mn({},$e),he)}y(!1),P(kl(F))}else{const $e=kl(te);y(!1),P($e)}},"handleResponse"),j=N({query:K,variables:Q,operationName:H},{headers:_e??void 0,shouldPersistHeaders:a,documentAST:(Y=o.documentAST)!=null?Y:void 0}),J=await Promise.resolve(j);if(Kd(J))E(J.subscribe({next(te){x(te)},error(te){y(!1),te&&P(Yo(te)),E(null)},complete(){y(!1),E(null)}}));else if(eh(J)){E({unsubscribe:()=>{var te,pe;return(pe=(te=J[Symbol.asyncIterator]()).return)==null?void 0:pe.call(te)}});try{for await(const te of J)x(te);y(!1),E(null)}catch(te){y(!1),P(Yo(te)),E(null)}}else x(J)}catch(F){y(!1),P(Yo(F)),E(null)}},[h,e,N,n,d,t.operationName,o,i,a,S,g,f,l]),T=ie.useMemo(()=>{var O;return{isFetching:v,operationName:(O=t.operationName)!=null?O:null,run:D,stop:S}},[v,t.operationName,D,S]);return Qr(ch.Provider,{value:T,children:t.children})}$(rs,"ExecutionContextProvider");Nl(rs,"ExecutionContextProvider");const hs=wo(ch);function Ol({json:t,errorMessageParse:e,errorMessageType:n}){let o;try{o=t&&t.trim()!==""?JSON.parse(t):void 0}catch(a){throw new Error(`${e}: ${a instanceof Error?a.message:a}.`)}const i=typeof o=="object"&&o!==null&&!Array.isArray(o);if(o!==void 0&&!i)throw new Error(n);return o}$(Ol,"tryParseJsonObject");Nl(Ol,"tryParseJsonObject");var pae=$(function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],o=0;o<t.rangeCount;o++)n.push(t.getRangeAt(o));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},"toggleSelection"),dae=pae,jy={"text/plain":"Text","text/html":"Url",default:"Text"},hae="Copy to clipboard: #{key}, Enter";function ZE(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}$(ZE,"format");function XE(t,e){var n,o,i,a,l,f,d=!1;e||(e={}),n=e.debug||!1;try{i=dae(),a=document.createRange(),l=document.getSelection(),f=document.createElement("span"),f.textContent=t,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(v){if(v.stopPropagation(),e.format)if(v.preventDefault(),typeof v.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=jy[e.format]||jy.default;window.clipboardData.setData(y,t)}else v.clipboardData.clearData(),v.clipboardData.setData(e.format,t);e.onCopy&&(v.preventDefault(),e.onCopy(v.clipboardData))}),document.body.appendChild(f),a.selectNodeContents(f),l.addRange(a);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(v){n&&console.error("unable to copy using execCommand: ",v),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),o=ZE("message"in e?e.message:hae),window.prompt(o,t)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(a):l.removeAllRanges()),f&&document.body.removeChild(f),i()}return d}$(XE,"copy");var mae=XE,vae=Object.defineProperty,Aa=$((t,e)=>vae(t,"name",{value:e,configurable:!0}),"__name$b");const lh=xo("SchemaContext");function Wa(t){const{initialHeaders:e,headerEditor:n}=rn({nonNull:!0,caller:Wa}),[o,i]=ie.useState(),[a,l]=ie.useState(!1),[f,d]=ie.useState(null),h=ie.useRef(0);ie.useEffect(()=>{i(fl(t.schema)||t.schema===null||t.schema===void 0?t.schema:void 0),h.current++},[t.schema]);const v=ie.useRef(e);ie.useEffect(()=>{n&&(v.current=n.getValue())});const{introspectionQuery:y,introspectionQueryName:g,introspectionQuerySansSubscriptions:E}=uh({inputValueDeprecation:t.inputValueDeprecation,introspectionQueryName:t.introspectionQueryName,schemaDescription:t.schemaDescription}),{fetcher:C,onSchemaChange:S}=t,N=ie.useCallback(()=>{if(fl(t.schema)||t.schema===null)return;const O=++h.current;i(void 0);const V=t.schema;async function Y(){if(V)return V;const P=fh(v.current);if(!P.isValidJSON){d("Introspection failed as headers are invalid.");return}const U=P.headers?{headers:P.headers}:{},K=qp(C({query:y,operationName:g},U));if(!Mp(K)){d("Fetcher did not return a Promise for introspection.");return}l(!0);let G=await K;if(typeof G!="object"||G===null||!("data"in G)){const re=qp(C({query:E,operationName:g},U));if(!Mp(re))throw new Error("Fetcher did not return a Promise for introspection.");G=await re}if(l(!1),G!=null&&G.data&&"__schema"in G.data)return G.data;const Q=typeof G=="string"?G:kl(G);d(Q)}$(Y,"fetchIntrospectionData"),Aa(Y,"fetchIntrospectionData"),Y().then(P=>{if(!(O!==h.current||!P))try{const U=_b(P);i(U),S==null||S(U)}catch(U){d(Yo(U))}}).catch(P=>{O===h.current&&(d(Yo(P)),l(!1))})},[C,g,y,E,S,t.schema]);ie.useEffect(()=>{N()},[N]),ie.useEffect(()=>{function O(V){V.keyCode===82&&V.shiftKey&&V.ctrlKey&&N()}return $(O,"triggerIntrospection"),Aa(O,"triggerIntrospection"),window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)});const D=ie.useMemo(()=>!o||t.dangerouslyAssumeSchemaIsValid?[]:Yl(o),[o,t.dangerouslyAssumeSchemaIsValid]),T=ie.useMemo(()=>({fetchError:f,introspect:N,isFetching:a,schema:o,validationErrors:D}),[f,N,a,o,D]);return Qr(lh.Provider,{value:T,children:t.children})}$(Wa,"SchemaContextProvider");Aa(Wa,"SchemaContextProvider");const Bn=wo(lh);function uh({inputValueDeprecation:t,introspectionQueryName:e,schemaDescription:n}){return ie.useMemo(()=>{const o=e||"IntrospectionQuery";let i=Md({inputValueDeprecation:t,schemaDescription:n});e&&(i=i.replace("query IntrospectionQuery",`query ${o}`));const a=i.replace("subscriptionType { name }","");return{introspectionQueryName:o,introspectionQuery:i,introspectionQuerySansSubscriptions:a}},[t,e,n])}$(uh,"useIntrospectionQuery");Aa(uh,"useIntrospectionQuery");function fh(t){let e=null,n=!0;try{t&&(e=JSON.parse(t))}catch{n=!1}return{headers:e,isValidJSON:n}}$(fh,"parseHeaderString");Aa(fh,"parseHeaderString");var gae=Object.defineProperty,yae=$((t,e)=>gae(t,"name",{value:e,configurable:!0}),"__name$a");const Uy={name:"Schema",title:"Documentation Explorer"},ph=xo("ExplorerContext");function Qa(t){var e,n;const{isFetching:o}=Bn({nonNull:!0,caller:Qa}),i=$o(),[a,l]=ie.useState((n=(e=t.isVisible)!=null?e:(i==null?void 0:i.get(Kf))==="true")!=null?n:!1),[f,d]=ie.useState([Uy]),{onToggleVisibility:h}=t,v=ie.useRef(!0);ie.useEffect(()=>{v.current?v.current=!1:t.isVisible!==void 0&&l(t.isVisible)},[t.isVisible]);const y=ie.useCallback(()=>{h==null||h(!1),i==null||i.set(Kf,"false"),l(!1)},[h,i]),g=ie.useCallback(T=>{d(O=>O[O.length-1].def===T.def?O:[...O,T])},[]),E=ie.useCallback(()=>{d(T=>T.length>1?T.slice(0,-1):T)},[]),C=ie.useCallback(()=>{d(T=>T.length===1?T:[Uy])},[]),S=ie.useCallback(()=>{h==null||h(!0),i==null||i.set(Kf,"true"),l(!0)},[h,i]),N=ie.useCallback(T=>{d(O=>{const V=O[O.length-1];return[...O.slice(0,-1),Ur(mn({},V),{search:T})]})},[]);ie.useEffect(()=>{o&&C()},[o,C]);const D=ie.useMemo(()=>({explorerNavStack:f,hide:y,isVisible:a,push:g,pop:E,reset:C,show:S,showSearch:N}),[y,a,f,g,E,C,S,N]);return Qr(ph.Provider,{value:D,children:t.children})}$(Qa,"ExplorerContextProvider");yae(Qa,"ExplorerContextProvider");const $r=wo(ph),Kf="docExplorerOpen";var bae=Object.defineProperty,Eae=$((t,e)=>bae(t,"name",{value:e,configurable:!0}),"__name$9");function ti(t,e){let n;return function(...o){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,e(...o)},t)}}$(ti,"debounce");Eae(ti,"debounce");var _ae=Object.defineProperty,Kn=$((t,e)=>_ae(t,"name",{value:e,configurable:!0}),"__name$8");function ji(t,e){ie.useEffect(()=>{t&&typeof e=="string"&&e!==t.getValue()&&t.setValue(e)},[t,e])}$(ji,"useSynchronizeValue");Kn(ji,"useSynchronizeValue");function ms(t,e,n){ie.useEffect(()=>{t&&t.setOption(e,n)},[t,e,n])}$(ms,"useSynchronizeOption");Kn(ms,"useSynchronizeOption");function mu(t,e,n,o,i){const{updateActiveTabValues:a}=rn({nonNull:!0,caller:i}),l=$o();ie.useEffect(()=>{if(!t)return;const f=ti(500,v=>{!l||n===null||l.set(n,v)}),d=ti(100,v=>{a({[o]:v})}),h=Kn((v,y)=>{if(!y)return;const g=v.getValue();f(g),d(g),e==null||e(g)},"handleChange");return t.on("change",h),()=>t.off("change",h)},[e,t,l,n,o,a])}$(mu,"useChangeHandler");Kn(mu,"useChangeHandler");function Ya(t,e){const{schema:n}=Bn({nonNull:!0,caller:e}),o=$r();ie.useEffect(()=>{if(!t)return;const i=Kn((a,l)=>{Ua(a,l,n,o)},"handleCompletion");return t.on("hasCompletion",i),()=>t.off("hasCompletion",i)},[t,o,n])}$(Ya,"useCompletion");Kn(Ya,"useCompletion");function Nn(t,e,n){ie.useEffect(()=>{if(t){for(const o of e)t.removeKeyMap(o);if(n){const o={};for(const i of e)o[i]=()=>n();t.addKeyMap(o)}}},[t,e,n])}$(Nn,"useKeyMap");Kn(Nn,"useKeyMap");function vs({caller:t,onCopyQuery:e}={}){const{queryEditor:n}=rn({nonNull:!0,caller:t||vs});return ie.useCallback(()=>{if(!n)return;const o=n.getValue();mae(o),e==null||e(o)},[n,e])}$(vs,"useCopyQuery");Kn(vs,"useCopyQuery");function Yr({caller:t}={}){const{queryEditor:e}=rn({nonNull:!0,caller:t||Yr}),{schema:n}=Bn({nonNull:!0,caller:Yr});return ie.useCallback(()=>{const o=e==null?void 0:e.documentAST,i=e==null?void 0:e.getValue();!o||!i||e.setValue(Je(VE(o,n)))},[e,n])}$(Yr,"useMergeQuery");Kn(Yr,"useMergeQuery");function Co({caller:t}={}){const{queryEditor:e,headerEditor:n,variableEditor:o}=rn({nonNull:!0,caller:t||Co});return ie.useCallback(()=>{if(o){const i=o.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&o.setValue(a)}catch{}}if(n){const i=n.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&n.setValue(a)}catch{}}if(e){const i=e.getValue(),a=Je(Zn(i));a!==i&&e.setValue(a)}},[e,o,n])}$(Co,"usePrettifyEditors");Kn(Co,"usePrettifyEditors");function ni({getDefaultFieldNames:t,caller:e}={}){const{schema:n}=Bn({nonNull:!0,caller:e||ni}),{queryEditor:o}=rn({nonNull:!0,caller:e||ni});return ie.useCallback(()=>{if(!o)return;const i=o.getValue(),{insertions:a,result:l}=FE(n,i,t);return a&&a.length>0&&o.operation(()=>{const f=o.getCursor(),d=o.indexFromPos(f);o.setValue(l||"");let h=0;const v=a.map(({index:g,string:E})=>o.markText(o.posFromIndex(g+h),o.posFromIndex(g+(h+=E.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>v.forEach(g=>g.clear()),7e3);let y=d;a.forEach(({index:g,string:E})=>{g<d&&(y+=E.length)}),o.setCursor(o.posFromIndex(y))}),l},[t,o,n])}$(ni,"useAutoCompleteLeafs");Kn(ni,"useAutoCompleteLeafs");var kae=Object.defineProperty,xae=$((t,e)=>kae(t,"name",{value:e,configurable:!0}),"__name$7");function Br({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialHeaders:i,headerEditor:a,setHeaderEditor:l,shouldPersistHeaders:f}=rn({nonNull:!0,caller:Br}),d=hs(),h=Yr({caller:Br}),v=Co({caller:Br}),y=ie.useRef(null);return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./javascript.es-BIUhEWTj.js"),__vite__mapDeps([13,0,1,2]),import.meta.url).then(function(E){return E.j})]).then(E=>{if(!g)return;const C=y.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),l(S)}),()=>{g=!1}},[t,i,o,l]),ms(a,"keyMap",e),mu(a,n,f?KE:null,"headers",Br),Ya(a,Br),Nn(a,["Cmd-Enter","Ctrl-Enter"],d==null?void 0:d.run),Nn(a,["Shift-Ctrl-P"],v),Nn(a,["Shift-Ctrl-M"],h),y}$(Br,"useHeaderEditor");xae(Br,"useHeaderEditor");const KE="headers";var wae=Object.defineProperty,$ae=$((t,e)=>wae(t,"name",{value:e,configurable:!0}),"__name$6");const Cae=Array.from({length:11},(t,e)=>String.fromCharCode(8192+e)).concat(["\u2028","\u2029"," "," "]),Aae=new RegExp("["+Cae.join("")+"]","g");function dh(t){return t.replace(Aae," ")}$(dh,"normalizeWhitespace");$ae(dh,"normalizeWhitespace");var Sae=Object.defineProperty,Ja=$((t,e)=>Sae(t,"name",{value:e,configurable:!0}),"__name$5");function mr({editorTheme:t=au,keyMap:e=cu,onClickReference:n,onCopyQuery:o,onEdit:i,readOnly:a=!1}={}){const{schema:l}=Bn({nonNull:!0,caller:mr}),{externalFragments:f,initialQuery:d,queryEditor:h,setOperationName:v,setQueryEditor:y,validationRules:g,variableEditor:E,updateActiveTabValues:C}=rn({nonNull:!0,caller:mr}),S=hs(),N=$o(),D=$r(),T=vs({caller:mr,onCopyQuery:o}),O=Yr({caller:mr}),V=Co({caller:mr}),Y=ie.useRef(null),P=ie.useRef(),U=ie.useRef(()=>{});ie.useEffect(()=>{U.current=Q=>{D&&(D.show(),Q&&Q.kind==="Type"?D.push({name:Q.type.name,def:Q.type}):Q.kind==="Field"?D.push({name:Q.field.name,def:Q.field}):Q.kind==="Argument"&&Q.field?D.push({name:Q.field.name,def:Q.field}):Q.kind==="EnumValue"&&Q.type&&D.push({name:Q.type.name,def:Q.type}),n==null||n(Q))}},[D,n]),ie.useEffect(()=>{let Q=!0;return ui([Xe(()=>import("./comment.es-AVZXTIDr.js"),__vite__mapDeps([14,0,1,2]),import.meta.url).then(function(re){return re.c}),Xe(()=>import("./search.es-DxfjuUNu.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(re){return re.s}),Xe(()=>import("./hint.es-DAEQ9N76.js"),__vite__mapDeps([16,0,1,2,3,17,18,19]),import.meta.url),Xe(()=>import("./lint.es-Dv2pWRyz.js"),__vite__mapDeps([20,0,1,2,17,18]),import.meta.url),Xe(()=>import("./info.es-CsELEfUv.js"),__vite__mapDeps([21,0,1,2,22,19,23,24]),import.meta.url),Xe(()=>import("./jump.es-D8ZxFsmc.js"),__vite__mapDeps([25,0,1,2,22,19,23]),import.meta.url),Xe(()=>import("./mode.es-BSNxo6gK.js"),__vite__mapDeps([26,0,1,2,18]),import.meta.url)]).then(re=>{if(!Q)return;P.current=re;const _e=Y.current;if(!_e)return;const H=re(_e,{value:d,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:a?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:_e,externalFragments:void 0},info:{schema:void 0,renderDescription:F=>Rp.render(F),onClick:F=>{U.current(F)}},jump:{schema:void 0,onClick:F=>{U.current(F)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ur(mn({},lu),{"Cmd-S"(){},"Ctrl-S"(){}})});H.addKeyMap({"Cmd-Space"(){H.showHint({completeSingle:!0,container:_e})},"Ctrl-Space"(){H.showHint({completeSingle:!0,container:_e})},"Alt-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Alt-Space"(){H.showHint({completeSingle:!0,container:_e})}}),H.on("keyup",(F,x)=>{Tae.test(x.key)&&F.execCommand("autocomplete")}),H.on("beforeChange",(F,x)=>{var j;if(x.origin==="paste"){const J=x.text.map(dh);(j=x.update)==null||j.call(x,x.from,x.to,J)}}),H.documentAST=null,H.operationName=null,H.operations=null,H.variableToType=null,y(H)}),()=>{Q=!1}},[t,d,a,y]),ms(h,"keyMap",e),ie.useEffect(()=>{if(!h)return;function Q(_e){var H,F,x,j,J;const te=YE(l,_e.getValue()),pe=jE((H=_e.operations)!=null?H:void 0,(F=_e.operationName)!=null?F:void 0,te==null?void 0:te.operations);return _e.documentAST=(x=te==null?void 0:te.documentAST)!=null?x:null,_e.operationName=pe??null,_e.operations=(j=te==null?void 0:te.operations)!=null?j:null,E&&(E.state.lint.linterOptions.variableToType=te==null?void 0:te.variableToType,E.options.lint.variableToType=te==null?void 0:te.variableToType,E.options.hintOptions.variableToType=te==null?void 0:te.variableToType,(J=P.current)==null||J.signal(E,"change",E)),te?Ur(mn({},te),{operationName:pe}):null}$(Q,"getAndUpdateOperationFacts"),Ja(Q,"getAndUpdateOperationFacts");const re=ti(100,_e=>{var H;const F=_e.getValue();N==null||N.set(e_,F);const x=_e.operationName,j=Q(_e);(j==null?void 0:j.operationName)!==void 0&&(N==null||N.set(Dae,j.operationName)),i==null||i(F,j==null?void 0:j.documentAST),j!=null&&j.operationName&&x!==j.operationName&&v(j.operationName),C({query:F,operationName:(H=j==null?void 0:j.operationName)!=null?H:null})});return Q(h),h.on("change",re),()=>h.off("change",re)},[i,h,l,v,N,E,C]),hh(h,l??null,P),mh(h,g??null,P),vh(h,f,P),Ya(h,mr);const K=S==null?void 0:S.run,G=ie.useCallback(()=>{var Q;if(!K||!h||!h.operations||!h.hasFocus()){K==null||K();return}const re=h.indexFromPos(h.getCursor());let _e;for(const H of h.operations)H.loc&&H.loc.start<=re&&H.loc.end>=re&&(_e=(Q=H.name)==null?void 0:Q.value);_e&&_e!==h.operationName&&v(_e),K()},[h,K,v]);return Nn(h,["Cmd-Enter","Ctrl-Enter"],G),Nn(h,["Shift-Ctrl-C"],T),Nn(h,["Shift-Ctrl-P","Shift-Ctrl-F"],V),Nn(h,["Shift-Ctrl-M"],O),Y}$(mr,"useQueryEditor");Ja(mr,"useQueryEditor");function hh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.schema!==e;t.state.lint.linterOptions.schema=e,t.options.lint.schema=e,t.options.hintOptions.schema=e,t.options.info.schema=e,t.options.jump.schema=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(hh,"useSynchronizeSchema");Ja(hh,"useSynchronizeSchema");function mh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.validationRules!==e;t.state.lint.linterOptions.validationRules=e,t.options.lint.validationRules=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(mh,"useSynchronizeValidationRules");Ja(mh,"useSynchronizeValidationRules");function vh(t,e,n){const o=ie.useMemo(()=>[...e.values()],[e]);ie.useEffect(()=>{if(!t)return;const i=t.options.lint.externalFragments!==o;t.state.lint.linterOptions.externalFragments=o,t.options.lint.externalFragments=o,t.options.hintOptions.externalFragments=o,i&&n.current&&n.current.signal(t,"change",t)},[t,o,n])}$(vh,"useSynchronizeExternalFragments");Ja(vh,"useSynchronizeExternalFragments");const Tae=/^[a-zA-Z0-9_@(]$/,e_="query",Dae="operationName";var Nae=Object.defineProperty,nn=$((t,e)=>Nae(t,"name",{value:e,configurable:!0}),"__name$4");function gh({headers:t,query:e,variables:n,storage:o}){const i=o==null?void 0:o.get(Yp);try{if(!i)throw new Error("Storage for tabs is empty");const a=JSON.parse(i);if(yh(a)){const l=os({query:e,variables:n,headers:t});let f=-1;for(let d=0;d<a.tabs.length;d++){const h=a.tabs[d];h.hash=os({query:h.query,variables:h.variables,headers:h.headers}),h.hash===l&&(f=d)}if(f>=0)a.activeTabIndex=f;else{const d=e?bu(e):null;a.tabs.push({id:yu(),hash:l,title:d||wh,query:e,variables:n,headers:t,operationName:d,response:null})}return a}else throw new Error("Storage for tabs is invalid")}catch{return o==null||o.set(Yp,""),{activeTabIndex:0,tabs:[vu()]}}}$(gh,"getDefaultTabState");nn(gh,"getDefaultTabState");function yh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&Eh(t,"activeTabIndex")&&"tabs"in t&&Array.isArray(t.tabs)&&t.tabs.every(bh)}$(yh,"isTabsState");nn(yh,"isTabsState");function bh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&Il(t,"id")&&Il(t,"title")&&Uo(t,"query")&&Uo(t,"variables")&&Uo(t,"headers")&&Uo(t,"operationName")&&Uo(t,"response")}$(bh,"isTabState");nn(bh,"isTabState");function Eh(t,e){return e in t&&typeof t[e]=="number"}$(Eh,"hasNumberKey");nn(Eh,"hasNumberKey");function Il(t,e){return e in t&&typeof t[e]=="string"}$(Il,"hasStringKey");nn(Il,"hasStringKey");function Uo(t,e){return e in t&&(typeof t[e]=="string"||t[e]===null)}$(Uo,"hasStringOrNullKey");nn(Uo,"hasStringOrNullKey");function _h({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(i=>{var a,l,f,d,h;const v=(a=t==null?void 0:t.getValue())!=null?a:null,y=(l=e==null?void 0:e.getValue())!=null?l:null,g=(f=n==null?void 0:n.getValue())!=null?f:null,E=(d=t==null?void 0:t.operationName)!=null?d:null,C=(h=o==null?void 0:o.getValue())!=null?h:null;return gu(i,{query:v,variables:y,headers:g,response:C,operationName:E})},[t,e,n,o])}$(_h,"useSynchronizeActiveTabValues");nn(_h,"useSynchronizeActiveTabValues");function kh({storage:t,shouldPersistHeaders:e}){const n=ie.useMemo(()=>ti(500,o=>{t==null||t.set(Yp,o)}),[t]);return ie.useCallback(o=>{n(JSON.stringify(o,(i,a)=>i==="hash"||i==="response"||!e&&i==="headers"?null:a))},[e,n])}$(kh,"useStoreTabs");nn(kh,"useStoreTabs");function xh({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(({query:i,variables:a,headers:l,response:f})=>{t==null||t.setValue(i??""),e==null||e.setValue(a??""),n==null||n.setValue(l??""),o==null||o.setValue(f??"")},[n,t,o,e])}$(xh,"useSetEditorValues");nn(xh,"useSetEditorValues");function vu(){return{id:yu(),hash:os({query:null,variables:null,headers:null}),title:wh,query:null,variables:null,headers:null,operationName:null,response:null}}$(vu,"emptyTab");nn(vu,"emptyTab");function gu(t,e){return Ur(mn({},t),{tabs:t.tabs.map((n,o)=>{if(o!==t.activeTabIndex)return n;const i=mn(mn({},n),e);return Ur(mn({},i),{hash:os(i),title:i.operationName||(i.query?bu(i.query):void 0)||wh})})})}$(gu,"setPropertiesInActiveTab");nn(gu,"setPropertiesInActiveTab");function yu(){const t=nn(()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),"s4");return`${t()}${t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}$(yu,"guid");nn(yu,"guid");function os(t){var e,n,o;return[(e=t.query)!=null?e:"",(n=t.variables)!=null?n:"",(o=t.headers)!=null?o:""].join("|")}$(os,"hashFromTabContents");nn(os,"hashFromTabContents");function bu(t){var e;const o=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(t);return(e=o==null?void 0:o[2])!=null?e:null}$(bu,"fuzzyExtractOperationName");nn(bu,"fuzzyExtractOperationName");const wh="<untitled>",Yp="tabState";var Oae=Object.defineProperty,Iae=$((t,e)=>Oae(t,"name",{value:e,configurable:!0}),"__name$3");function Vr({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialVariables:i,variableEditor:a,setVariableEditor:l}=rn({nonNull:!0,caller:Vr}),f=hs(),d=Yr({caller:Vr}),h=Co({caller:Vr}),v=ie.useRef(null),y=ie.useRef();return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./hint.es2-DYXluLKu.js"),__vite__mapDeps([27,0,1,2,23]),import.meta.url),Xe(()=>import("./lint.es2-CqGQ_rnk.js"),__vite__mapDeps([28,0,1,2]),import.meta.url),Xe(()=>import("./mode.es3-C6-ZTyOk.js"),__vite__mapDeps([29,0,1,2,18]),import.meta.url)]).then(E=>{if(!g)return;y.current=E;const C=v.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:C,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),l(S)}),()=>{g=!1}},[t,i,o,l]),ms(a,"keyMap",e),mu(a,n,t_,"variables",Vr),Ya(a,Vr),Nn(a,["Cmd-Enter","Ctrl-Enter"],f==null?void 0:f.run),Nn(a,["Shift-Ctrl-P"],h),Nn(a,["Shift-Ctrl-M"],d),v}$(Vr,"useVariableEditor");Iae(Vr,"useVariableEditor");const t_="variables";var Lae=Object.defineProperty,Fae=$((t,e)=>Lae(t,"name",{value:e,configurable:!0}),"__name$2");const $h=xo("EditorContext");function Eu(t){var e,n,o,i,a;const l=$o(),[f,d]=ie.useState(null),[h,v]=ie.useState(null),[y,g]=ie.useState(null),[E,C]=ie.useState(null);ji(f,t.headers),ji(h,t.query),ji(y,t.response),ji(E,t.variables);const[S]=ie.useState(()=>{var J,te,pe,$e,Me,Z;return{headers:(te=(J=t.headers)!=null?J:l==null?void 0:l.get(KE))!=null?te:null,query:($e=(pe=t.query)!=null?pe:l==null?void 0:l.get(e_))!=null?$e:null,variables:(Z=(Me=t.variables)!=null?Me:l==null?void 0:l.get(t_))!=null?Z:null}}),[N,D]=ie.useState(()=>gh(Ur(mn({},S),{storage:l}))),T=kh({storage:l,shouldPersistHeaders:t.shouldPersistHeaders}),O=_h({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),V=xh({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),{onTabChange:Y}=t,P=ie.useCallback(()=>{D(J=>{const te=O(J),pe={tabs:[...te.tabs,vu()],activeTabIndex:te.tabs.length};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),U=ie.useCallback(J=>{D(te=>{const pe=Ur(mn({},O(te)),{activeTabIndex:J});return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),K=ie.useCallback(J=>{D(te=>{const pe={tabs:te.tabs.filter(($e,Me)=>J!==Me),activeTabIndex:Math.max(te.activeTabIndex-1,0)};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T]),G=ie.useCallback(J=>{D(te=>{const pe=gu(te,J);return T(pe),Y==null||Y(pe),pe})},[Y,T]),{onEditOperationName:Q}=t,re=ie.useCallback(J=>{h&&(h.operationName=J,G({operationName:J}),Q==null||Q(J))},[Q,h,G]),_e=N.activeTabIndex>0?"":(e=t.defaultQuery)!=null?e:Rae,H=ie.useRef({initialHeaders:(n=S.headers)!=null?n:"",initialQuery:(o=S.query)!=null?o:_e,initialResponse:(i=t.response)!=null?i:"",initialVariables:(a=S.variables)!=null?a:""}),F=ie.useMemo(()=>{const J=new Map;if(Array.isArray(t.externalFragments))for(const te of t.externalFragments)J.set(te.name.value,te);else if(typeof t.externalFragments=="string")un(Zn(t.externalFragments,{}),{FragmentDefinition(te){J.set(te.name.value,te)}});else if(t.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return J},[t.externalFragments]),x=ie.useMemo(()=>t.validationRules||[],[t.validationRules]),j=ie.useMemo(()=>Ur(mn(Ur(mn({},N),{addTab:P,changeTab:U,closeTab:K,updateActiveTabValues:G,headerEditor:f,queryEditor:h,responseEditor:y,variableEditor:E,setHeaderEditor:d,setQueryEditor:v,setResponseEditor:g,setVariableEditor:C,setOperationName:re}),H.current),{externalFragments:F,validationRules:x,shouldPersistHeaders:t.shouldPersistHeaders||!1}),[N,P,U,K,G,f,h,y,E,re,F,x,t.shouldPersistHeaders]);return Qr($h.Provider,{value:j,children:t.children})}$(Eu,"EditorContextProvider");Fae(Eu,"EditorContextProvider");const rn=wo($h),Rae=`# Welcome to GraphiQL
234
+ */const{deleteProperty:Zse}=Reflect,Xse=Wse,By=Jse,Vy=$(t=>typeof t=="object"&&t!==null||typeof t=="function","isObject"),Kse=$(t=>t==="__proto__"||t==="constructor"||t==="prototype","isUnsafeKey"),sh=$(t=>{if(!Xse(t))throw new TypeError("Object keys must be strings or symbols");if(Kse(t))throw new Error(`Cannot set unsafe key: "${t}"`)},"validateKey"),eae=$(t=>Array.isArray(t)?t.flat().map(String).join(","):t,"toStringKey"),tae=$((t,e)=>{if(typeof t!="string"||!e)return t;let n=t+";";return e.arrays!==void 0&&(n+=`arrays=${e.arrays};`),e.separator!==void 0&&(n+=`separator=${e.separator};`),e.split!==void 0&&(n+=`split=${e.split};`),e.merge!==void 0&&(n+=`merge=${e.merge};`),e.preservePaths!==void 0&&(n+=`preservePaths=${e.preservePaths};`),n},"createMemoKey"),nae=$((t,e,n)=>{const o=eae(e?tae(t,e):t);sh(o);const i=ei.cache.get(o)||n();return ei.cache.set(o,i),i},"memoize"),rae=$((t,e={})=>{const n=e.separator||".",o=n==="/"?!1:e.preservePaths;if(typeof t=="string"&&o!==!1&&/\//.test(t))return[t];const i=[];let a="";const l=$(f=>{let d;f.trim()!==""&&Number.isInteger(d=Number(f))?i.push(d):i.push(f)},"push");for(let f=0;f<t.length;f++){const d=t[f];if(d==="\\"){a+=t[++f];continue}if(d===n){l(a),a="";continue}a+=d}return a&&l(a),i},"splitString"),JE=$((t,e)=>e&&typeof e.split=="function"?e.split(t):typeof t=="symbol"?[t]:Array.isArray(t)?t:nae(t,e,()=>rae(t,e)),"split"),oae=$((t,e,n,o)=>{if(sh(e),n===void 0)Zse(t,e);else if(o&&o.merge){const i=o.merge==="function"?o.merge:Object.assign;i&&By(t[e])&&By(n)?t[e]=i(t[e],n):t[e]=n}else t[e]=n;return t},"assignProp"),ei=$((t,e,n,o)=>{if(!e||!Vy(t))return t;const i=JE(e,o);let a=t;for(let l=0;l<i.length;l++){const f=i[l],d=i[l+1];if(sh(f),d===void 0){oae(a,f,n,o);break}if(typeof d=="number"&&!Array.isArray(a[f])){a=a[f]=[];continue}Vy(a[f])||(a[f]={}),a=a[f]}return t},"setValue");ei.split=JE;ei.cache=new Map;ei.clear=()=>{ei.cache=new Map};var iae=ei,sae=Object.defineProperty,aae=$((t,e)=>sae(t,"name",{value:e,configurable:!0}),"__name$e");const ah=xo("HistoryContext");function hu(t){var e;const n=$o(),o=ie.useRef(new zE(n||new xl(null),t.maxHistoryLength||cae)),[i,a]=ie.useState(((e=o.current)==null?void 0:e.queries)||[]),[l,f]=ie.useState((n==null?void 0:n.get(Qc))==="true"||!1),d=ie.useCallback(({query:N,variables:D,headers:T,operationName:O})=>{var V;(V=o.current)==null||V.updateHistory(N,D,T,O),a(o.current.queries)},[]),h=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.editLabel(N,D,T,O,V,Y),a(o.current.queries)},[]),{onToggle:v}=t,y=ie.useCallback(()=>{v==null||v(!1),n==null||n.set(Qc,JSON.stringify(!1)),f(!1)},[v,n]),g=ie.useCallback(()=>{v==null||v(!0),n==null||n.set(Qc,JSON.stringify(!0)),f(!0)},[v,n]),E=ie.useCallback(()=>{f(N=>{const D=!N;return v==null||v(D),n==null||n.set(Qc,JSON.stringify(D)),D})},[v,n]),C=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.toggleFavorite(N,D,T,O,V,Y),a(o.current.queries)},[]),S=ie.useMemo(()=>({addToHistory:d,editLabel:h,hide:y,isVisible:l,items:i,show:g,toggle:E,toggleFavorite:C}),[d,h,y,l,i,g,E,C]);return Qr(ah.Provider,{value:S,children:t.children})}$(hu,"HistoryContextProvider");aae(hu,"HistoryContextProvider");const Ha=wo(ah),cae=20,Qc="historyPaneOpen";var lae=Object.defineProperty,uae=$((t,e)=>lae(t,"name",{value:e,configurable:!0}),"__name$d");function Ga(){const{headerEditor:t,queryEditor:e,variableEditor:n}=rn({nonNull:!0,caller:Ga});return o=>{var i,a,l;e==null||e.setValue((i=o.query)!=null?i:""),n==null||n.setValue((a=o.variables)!=null?a:""),t==null||t.setValue((l=o.headers)!=null?l:"")}}$(Ga,"useSelectHistoryItem");uae(Ga,"useSelectHistoryItem");var fae=Object.defineProperty,Nl=$((t,e)=>fae(t,"name",{value:e,configurable:!0}),"__name$c");const ch=xo("ExecutionContext");function rs(t){const{externalFragments:e,headerEditor:n,queryEditor:o,responseEditor:i,shouldPersistHeaders:a,variableEditor:l,updateActiveTabValues:f}=rn({nonNull:!0,caller:rs}),d=Ha(),h=ni({caller:rs}),[v,y]=ie.useState(!1),[g,E]=ie.useState(null),C=ie.useRef(0),S=ie.useCallback(()=>{g==null||g.unsubscribe(),y(!1),E(null)},[g]),{fetcher:N}=t,D=ie.useCallback(async()=>{var O,V,Y;if(!o||!i)return;if(g){S();return}const P=Nl(L=>{i.setValue(L),f({response:L})},"setResponse");C.current+=1;const U=C.current;let K=h()||o.getValue();const G=l==null?void 0:l.getValue();let Q;try{Q=Ol({json:G,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(L){P(L instanceof Error?L.message:`${L}`);return}const re=n==null?void 0:n.getValue();let _e;try{_e=Ol({json:re,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(L){P(L instanceof Error?L.message:`${L}`);return}if(e){const L=o.documentAST?Gse(o.documentAST,e):[];L.length>0&&(K+=`
235
+ `+L.map(x=>Je(x)).join(`
236
+ `))}P(""),y(!0);const H=(V=(O=t.operationName)!=null?O:o.operationName)!=null?V:void 0;d==null||d.addToHistory({query:K,variables:G,headers:re,operationName:H});try{let L={data:{}};const x=Nl(te=>{if(U!==C.current)return;let pe=Array.isArray(te)?te:!1;if(!pe&&typeof te=="object"&&te!==null&&"hasNext"in te&&(pe=[te]),pe){const $e={data:L.data},Me=[...(L==null?void 0:L.errors)||[],...pe.map(Z=>Z.errors).flat().filter(Boolean)];Me.length&&($e.errors=Me);for(const Z of pe){const fe=Z,{path:de,data:ge,errors:ye}=fe,he=J$(fe,["path","data","errors"]);if(de){if(!ge)throw new Error(`Expected part to contain a data property, but got ${Z}`);iae($e.data,de,ge,{merge:!0})}else ge&&($e.data=Z.data);L=mn(mn({},$e),he)}y(!1),P(kl(L))}else{const $e=kl(te);y(!1),P($e)}},"handleResponse"),j=N({query:K,variables:Q,operationName:H},{headers:_e??void 0,shouldPersistHeaders:a,documentAST:(Y=o.documentAST)!=null?Y:void 0}),J=await Promise.resolve(j);if(Kd(J))E(J.subscribe({next(te){x(te)},error(te){y(!1),te&&P(Yo(te)),E(null)},complete(){y(!1),E(null)}}));else if(eh(J)){E({unsubscribe:()=>{var te,pe;return(pe=(te=J[Symbol.asyncIterator]()).return)==null?void 0:pe.call(te)}});try{for await(const te of J)x(te);y(!1),E(null)}catch(te){y(!1),P(Yo(te)),E(null)}}else x(J)}catch(L){y(!1),P(Yo(L)),E(null)}},[h,e,N,n,d,t.operationName,o,i,a,S,g,f,l]),T=ie.useMemo(()=>{var O;return{isFetching:v,operationName:(O=t.operationName)!=null?O:null,run:D,stop:S}},[v,t.operationName,D,S]);return Qr(ch.Provider,{value:T,children:t.children})}$(rs,"ExecutionContextProvider");Nl(rs,"ExecutionContextProvider");const hs=wo(ch);function Ol({json:t,errorMessageParse:e,errorMessageType:n}){let o;try{o=t&&t.trim()!==""?JSON.parse(t):void 0}catch(a){throw new Error(`${e}: ${a instanceof Error?a.message:a}.`)}const i=typeof o=="object"&&o!==null&&!Array.isArray(o);if(o!==void 0&&!i)throw new Error(n);return o}$(Ol,"tryParseJsonObject");Nl(Ol,"tryParseJsonObject");var pae=$(function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],o=0;o<t.rangeCount;o++)n.push(t.getRangeAt(o));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},"toggleSelection"),dae=pae,jy={"text/plain":"Text","text/html":"Url",default:"Text"},hae="Copy to clipboard: #{key}, Enter";function ZE(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}$(ZE,"format");function XE(t,e){var n,o,i,a,l,f,d=!1;e||(e={}),n=e.debug||!1;try{i=dae(),a=document.createRange(),l=document.getSelection(),f=document.createElement("span"),f.textContent=t,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(v){if(v.stopPropagation(),e.format)if(v.preventDefault(),typeof v.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=jy[e.format]||jy.default;window.clipboardData.setData(y,t)}else v.clipboardData.clearData(),v.clipboardData.setData(e.format,t);e.onCopy&&(v.preventDefault(),e.onCopy(v.clipboardData))}),document.body.appendChild(f),a.selectNodeContents(f),l.addRange(a);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(v){n&&console.error("unable to copy using execCommand: ",v),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),o=ZE("message"in e?e.message:hae),window.prompt(o,t)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(a):l.removeAllRanges()),f&&document.body.removeChild(f),i()}return d}$(XE,"copy");var mae=XE,vae=Object.defineProperty,Aa=$((t,e)=>vae(t,"name",{value:e,configurable:!0}),"__name$b");const lh=xo("SchemaContext");function Wa(t){const{initialHeaders:e,headerEditor:n}=rn({nonNull:!0,caller:Wa}),[o,i]=ie.useState(),[a,l]=ie.useState(!1),[f,d]=ie.useState(null),h=ie.useRef(0);ie.useEffect(()=>{i(fl(t.schema)||t.schema===null||t.schema===void 0?t.schema:void 0),h.current++},[t.schema]);const v=ie.useRef(e);ie.useEffect(()=>{n&&(v.current=n.getValue())});const{introspectionQuery:y,introspectionQueryName:g,introspectionQuerySansSubscriptions:E}=uh({inputValueDeprecation:t.inputValueDeprecation,introspectionQueryName:t.introspectionQueryName,schemaDescription:t.schemaDescription}),{fetcher:C,onSchemaChange:S}=t,N=ie.useCallback(()=>{if(fl(t.schema)||t.schema===null)return;const O=++h.current;i(void 0);const V=t.schema;async function Y(){if(V)return V;const P=fh(v.current);if(!P.isValidJSON){d("Introspection failed as headers are invalid.");return}const U=P.headers?{headers:P.headers}:{},K=qp(C({query:y,operationName:g},U));if(!Mp(K)){d("Fetcher did not return a Promise for introspection.");return}l(!0);let G=await K;if(typeof G!="object"||G===null||!("data"in G)){const re=qp(C({query:E,operationName:g},U));if(!Mp(re))throw new Error("Fetcher did not return a Promise for introspection.");G=await re}if(l(!1),G!=null&&G.data&&"__schema"in G.data)return G.data;const Q=typeof G=="string"?G:kl(G);d(Q)}$(Y,"fetchIntrospectionData"),Aa(Y,"fetchIntrospectionData"),Y().then(P=>{if(!(O!==h.current||!P))try{const U=_b(P);i(U),S==null||S(U)}catch(U){d(Yo(U))}}).catch(P=>{O===h.current&&(d(Yo(P)),l(!1))})},[C,g,y,E,S,t.schema]);ie.useEffect(()=>{N()},[N]),ie.useEffect(()=>{function O(V){V.keyCode===82&&V.shiftKey&&V.ctrlKey&&N()}return $(O,"triggerIntrospection"),Aa(O,"triggerIntrospection"),window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)});const D=ie.useMemo(()=>!o||t.dangerouslyAssumeSchemaIsValid?[]:Yl(o),[o,t.dangerouslyAssumeSchemaIsValid]),T=ie.useMemo(()=>({fetchError:f,introspect:N,isFetching:a,schema:o,validationErrors:D}),[f,N,a,o,D]);return Qr(lh.Provider,{value:T,children:t.children})}$(Wa,"SchemaContextProvider");Aa(Wa,"SchemaContextProvider");const Bn=wo(lh);function uh({inputValueDeprecation:t,introspectionQueryName:e,schemaDescription:n}){return ie.useMemo(()=>{const o=e||"IntrospectionQuery";let i=Md({inputValueDeprecation:t,schemaDescription:n});e&&(i=i.replace("query IntrospectionQuery",`query ${o}`));const a=i.replace("subscriptionType { name }","");return{introspectionQueryName:o,introspectionQuery:i,introspectionQuerySansSubscriptions:a}},[t,e,n])}$(uh,"useIntrospectionQuery");Aa(uh,"useIntrospectionQuery");function fh(t){let e=null,n=!0;try{t&&(e=JSON.parse(t))}catch{n=!1}return{headers:e,isValidJSON:n}}$(fh,"parseHeaderString");Aa(fh,"parseHeaderString");var gae=Object.defineProperty,yae=$((t,e)=>gae(t,"name",{value:e,configurable:!0}),"__name$a");const Uy={name:"Schema",title:"Documentation Explorer"},ph=xo("ExplorerContext");function Qa(t){var e,n;const{isFetching:o}=Bn({nonNull:!0,caller:Qa}),i=$o(),[a,l]=ie.useState((n=(e=t.isVisible)!=null?e:(i==null?void 0:i.get(Kf))==="true")!=null?n:!1),[f,d]=ie.useState([Uy]),{onToggleVisibility:h}=t,v=ie.useRef(!0);ie.useEffect(()=>{v.current?v.current=!1:t.isVisible!==void 0&&l(t.isVisible)},[t.isVisible]);const y=ie.useCallback(()=>{h==null||h(!1),i==null||i.set(Kf,"false"),l(!1)},[h,i]),g=ie.useCallback(T=>{d(O=>O[O.length-1].def===T.def?O:[...O,T])},[]),E=ie.useCallback(()=>{d(T=>T.length>1?T.slice(0,-1):T)},[]),C=ie.useCallback(()=>{d(T=>T.length===1?T:[Uy])},[]),S=ie.useCallback(()=>{h==null||h(!0),i==null||i.set(Kf,"true"),l(!0)},[h,i]),N=ie.useCallback(T=>{d(O=>{const V=O[O.length-1];return[...O.slice(0,-1),Ur(mn({},V),{search:T})]})},[]);ie.useEffect(()=>{o&&C()},[o,C]);const D=ie.useMemo(()=>({explorerNavStack:f,hide:y,isVisible:a,push:g,pop:E,reset:C,show:S,showSearch:N}),[y,a,f,g,E,C,S,N]);return Qr(ph.Provider,{value:D,children:t.children})}$(Qa,"ExplorerContextProvider");yae(Qa,"ExplorerContextProvider");const $r=wo(ph),Kf="docExplorerOpen";var bae=Object.defineProperty,Eae=$((t,e)=>bae(t,"name",{value:e,configurable:!0}),"__name$9");function ti(t,e){let n;return function(...o){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,e(...o)},t)}}$(ti,"debounce");Eae(ti,"debounce");var _ae=Object.defineProperty,Kn=$((t,e)=>_ae(t,"name",{value:e,configurable:!0}),"__name$8");function ji(t,e){ie.useEffect(()=>{t&&typeof e=="string"&&e!==t.getValue()&&t.setValue(e)},[t,e])}$(ji,"useSynchronizeValue");Kn(ji,"useSynchronizeValue");function ms(t,e,n){ie.useEffect(()=>{t&&t.setOption(e,n)},[t,e,n])}$(ms,"useSynchronizeOption");Kn(ms,"useSynchronizeOption");function mu(t,e,n,o,i){const{updateActiveTabValues:a}=rn({nonNull:!0,caller:i}),l=$o();ie.useEffect(()=>{if(!t)return;const f=ti(500,v=>{!l||n===null||l.set(n,v)}),d=ti(100,v=>{a({[o]:v})}),h=Kn((v,y)=>{if(!y)return;const g=v.getValue();f(g),d(g),e==null||e(g)},"handleChange");return t.on("change",h),()=>t.off("change",h)},[e,t,l,n,o,a])}$(mu,"useChangeHandler");Kn(mu,"useChangeHandler");function Ya(t,e){const{schema:n}=Bn({nonNull:!0,caller:e}),o=$r();ie.useEffect(()=>{if(!t)return;const i=Kn((a,l)=>{Ua(a,l,n,o)},"handleCompletion");return t.on("hasCompletion",i),()=>t.off("hasCompletion",i)},[t,o,n])}$(Ya,"useCompletion");Kn(Ya,"useCompletion");function Nn(t,e,n){ie.useEffect(()=>{if(t){for(const o of e)t.removeKeyMap(o);if(n){const o={};for(const i of e)o[i]=()=>n();t.addKeyMap(o)}}},[t,e,n])}$(Nn,"useKeyMap");Kn(Nn,"useKeyMap");function vs({caller:t,onCopyQuery:e}={}){const{queryEditor:n}=rn({nonNull:!0,caller:t||vs});return ie.useCallback(()=>{if(!n)return;const o=n.getValue();mae(o),e==null||e(o)},[n,e])}$(vs,"useCopyQuery");Kn(vs,"useCopyQuery");function Yr({caller:t}={}){const{queryEditor:e}=rn({nonNull:!0,caller:t||Yr}),{schema:n}=Bn({nonNull:!0,caller:Yr});return ie.useCallback(()=>{const o=e==null?void 0:e.documentAST,i=e==null?void 0:e.getValue();!o||!i||e.setValue(Je(VE(o,n)))},[e,n])}$(Yr,"useMergeQuery");Kn(Yr,"useMergeQuery");function Co({caller:t}={}){const{queryEditor:e,headerEditor:n,variableEditor:o}=rn({nonNull:!0,caller:t||Co});return ie.useCallback(()=>{if(o){const i=o.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&o.setValue(a)}catch{}}if(n){const i=n.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&n.setValue(a)}catch{}}if(e){const i=e.getValue(),a=Je(Zn(i));a!==i&&e.setValue(a)}},[e,o,n])}$(Co,"usePrettifyEditors");Kn(Co,"usePrettifyEditors");function ni({getDefaultFieldNames:t,caller:e}={}){const{schema:n}=Bn({nonNull:!0,caller:e||ni}),{queryEditor:o}=rn({nonNull:!0,caller:e||ni});return ie.useCallback(()=>{if(!o)return;const i=o.getValue(),{insertions:a,result:l}=LE(n,i,t);return a&&a.length>0&&o.operation(()=>{const f=o.getCursor(),d=o.indexFromPos(f);o.setValue(l||"");let h=0;const v=a.map(({index:g,string:E})=>o.markText(o.posFromIndex(g+h),o.posFromIndex(g+(h+=E.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>v.forEach(g=>g.clear()),7e3);let y=d;a.forEach(({index:g,string:E})=>{g<d&&(y+=E.length)}),o.setCursor(o.posFromIndex(y))}),l},[t,o,n])}$(ni,"useAutoCompleteLeafs");Kn(ni,"useAutoCompleteLeafs");var kae=Object.defineProperty,xae=$((t,e)=>kae(t,"name",{value:e,configurable:!0}),"__name$7");function Br({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialHeaders:i,headerEditor:a,setHeaderEditor:l,shouldPersistHeaders:f}=rn({nonNull:!0,caller:Br}),d=hs(),h=Yr({caller:Br}),v=Co({caller:Br}),y=ie.useRef(null);return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./javascript.es-CWlPpygW.js"),__vite__mapDeps([13,0,1,2]),import.meta.url).then(function(E){return E.j})]).then(E=>{if(!g)return;const C=y.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),l(S)}),()=>{g=!1}},[t,i,o,l]),ms(a,"keyMap",e),mu(a,n,f?KE:null,"headers",Br),Ya(a,Br),Nn(a,["Cmd-Enter","Ctrl-Enter"],d==null?void 0:d.run),Nn(a,["Shift-Ctrl-P"],v),Nn(a,["Shift-Ctrl-M"],h),y}$(Br,"useHeaderEditor");xae(Br,"useHeaderEditor");const KE="headers";var wae=Object.defineProperty,$ae=$((t,e)=>wae(t,"name",{value:e,configurable:!0}),"__name$6");const Cae=Array.from({length:11},(t,e)=>String.fromCharCode(8192+e)).concat(["\u2028","\u2029"," "," "]),Aae=new RegExp("["+Cae.join("")+"]","g");function dh(t){return t.replace(Aae," ")}$(dh,"normalizeWhitespace");$ae(dh,"normalizeWhitespace");var Sae=Object.defineProperty,Ja=$((t,e)=>Sae(t,"name",{value:e,configurable:!0}),"__name$5");function mr({editorTheme:t=au,keyMap:e=cu,onClickReference:n,onCopyQuery:o,onEdit:i,readOnly:a=!1}={}){const{schema:l}=Bn({nonNull:!0,caller:mr}),{externalFragments:f,initialQuery:d,queryEditor:h,setOperationName:v,setQueryEditor:y,validationRules:g,variableEditor:E,updateActiveTabValues:C}=rn({nonNull:!0,caller:mr}),S=hs(),N=$o(),D=$r(),T=vs({caller:mr,onCopyQuery:o}),O=Yr({caller:mr}),V=Co({caller:mr}),Y=ie.useRef(null),P=ie.useRef(),U=ie.useRef(()=>{});ie.useEffect(()=>{U.current=Q=>{D&&(D.show(),Q&&Q.kind==="Type"?D.push({name:Q.type.name,def:Q.type}):Q.kind==="Field"?D.push({name:Q.field.name,def:Q.field}):Q.kind==="Argument"&&Q.field?D.push({name:Q.field.name,def:Q.field}):Q.kind==="EnumValue"&&Q.type&&D.push({name:Q.type.name,def:Q.type}),n==null||n(Q))}},[D,n]),ie.useEffect(()=>{let Q=!0;return ui([Xe(()=>import("./comment.es-BpMZ3nSF.js"),__vite__mapDeps([14,0,1,2]),import.meta.url).then(function(re){return re.c}),Xe(()=>import("./search.es-C20qP8Vq.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(re){return re.s}),Xe(()=>import("./hint.es-qHNwvQXY.js"),__vite__mapDeps([16,0,1,2,3,17,18,19]),import.meta.url),Xe(()=>import("./lint.es-aUUps1ME.js"),__vite__mapDeps([20,0,1,2,17,18]),import.meta.url),Xe(()=>import("./info.es-D6grONEz.js"),__vite__mapDeps([21,0,1,2,22,19,23,24]),import.meta.url),Xe(()=>import("./jump.es-WtAW-Ijf.js"),__vite__mapDeps([25,0,1,2,22,19,23]),import.meta.url),Xe(()=>import("./mode.es-kZQjUXx0.js"),__vite__mapDeps([26,0,1,2,18]),import.meta.url)]).then(re=>{if(!Q)return;P.current=re;const _e=Y.current;if(!_e)return;const H=re(_e,{value:d,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:a?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:_e,externalFragments:void 0},info:{schema:void 0,renderDescription:L=>Rp.render(L),onClick:L=>{U.current(L)}},jump:{schema:void 0,onClick:L=>{U.current(L)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ur(mn({},lu),{"Cmd-S"(){},"Ctrl-S"(){}})});H.addKeyMap({"Cmd-Space"(){H.showHint({completeSingle:!0,container:_e})},"Ctrl-Space"(){H.showHint({completeSingle:!0,container:_e})},"Alt-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Alt-Space"(){H.showHint({completeSingle:!0,container:_e})}}),H.on("keyup",(L,x)=>{Tae.test(x.key)&&L.execCommand("autocomplete")}),H.on("beforeChange",(L,x)=>{var j;if(x.origin==="paste"){const J=x.text.map(dh);(j=x.update)==null||j.call(x,x.from,x.to,J)}}),H.documentAST=null,H.operationName=null,H.operations=null,H.variableToType=null,y(H)}),()=>{Q=!1}},[t,d,a,y]),ms(h,"keyMap",e),ie.useEffect(()=>{if(!h)return;function Q(_e){var H,L,x,j,J;const te=YE(l,_e.getValue()),pe=jE((H=_e.operations)!=null?H:void 0,(L=_e.operationName)!=null?L:void 0,te==null?void 0:te.operations);return _e.documentAST=(x=te==null?void 0:te.documentAST)!=null?x:null,_e.operationName=pe??null,_e.operations=(j=te==null?void 0:te.operations)!=null?j:null,E&&(E.state.lint.linterOptions.variableToType=te==null?void 0:te.variableToType,E.options.lint.variableToType=te==null?void 0:te.variableToType,E.options.hintOptions.variableToType=te==null?void 0:te.variableToType,(J=P.current)==null||J.signal(E,"change",E)),te?Ur(mn({},te),{operationName:pe}):null}$(Q,"getAndUpdateOperationFacts"),Ja(Q,"getAndUpdateOperationFacts");const re=ti(100,_e=>{var H;const L=_e.getValue();N==null||N.set(e_,L);const x=_e.operationName,j=Q(_e);(j==null?void 0:j.operationName)!==void 0&&(N==null||N.set(Dae,j.operationName)),i==null||i(L,j==null?void 0:j.documentAST),j!=null&&j.operationName&&x!==j.operationName&&v(j.operationName),C({query:L,operationName:(H=j==null?void 0:j.operationName)!=null?H:null})});return Q(h),h.on("change",re),()=>h.off("change",re)},[i,h,l,v,N,E,C]),hh(h,l??null,P),mh(h,g??null,P),vh(h,f,P),Ya(h,mr);const K=S==null?void 0:S.run,G=ie.useCallback(()=>{var Q;if(!K||!h||!h.operations||!h.hasFocus()){K==null||K();return}const re=h.indexFromPos(h.getCursor());let _e;for(const H of h.operations)H.loc&&H.loc.start<=re&&H.loc.end>=re&&(_e=(Q=H.name)==null?void 0:Q.value);_e&&_e!==h.operationName&&v(_e),K()},[h,K,v]);return Nn(h,["Cmd-Enter","Ctrl-Enter"],G),Nn(h,["Shift-Ctrl-C"],T),Nn(h,["Shift-Ctrl-P","Shift-Ctrl-F"],V),Nn(h,["Shift-Ctrl-M"],O),Y}$(mr,"useQueryEditor");Ja(mr,"useQueryEditor");function hh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.schema!==e;t.state.lint.linterOptions.schema=e,t.options.lint.schema=e,t.options.hintOptions.schema=e,t.options.info.schema=e,t.options.jump.schema=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(hh,"useSynchronizeSchema");Ja(hh,"useSynchronizeSchema");function mh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.validationRules!==e;t.state.lint.linterOptions.validationRules=e,t.options.lint.validationRules=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(mh,"useSynchronizeValidationRules");Ja(mh,"useSynchronizeValidationRules");function vh(t,e,n){const o=ie.useMemo(()=>[...e.values()],[e]);ie.useEffect(()=>{if(!t)return;const i=t.options.lint.externalFragments!==o;t.state.lint.linterOptions.externalFragments=o,t.options.lint.externalFragments=o,t.options.hintOptions.externalFragments=o,i&&n.current&&n.current.signal(t,"change",t)},[t,o,n])}$(vh,"useSynchronizeExternalFragments");Ja(vh,"useSynchronizeExternalFragments");const Tae=/^[a-zA-Z0-9_@(]$/,e_="query",Dae="operationName";var Nae=Object.defineProperty,nn=$((t,e)=>Nae(t,"name",{value:e,configurable:!0}),"__name$4");function gh({headers:t,query:e,variables:n,storage:o}){const i=o==null?void 0:o.get(Yp);try{if(!i)throw new Error("Storage for tabs is empty");const a=JSON.parse(i);if(yh(a)){const l=os({query:e,variables:n,headers:t});let f=-1;for(let d=0;d<a.tabs.length;d++){const h=a.tabs[d];h.hash=os({query:h.query,variables:h.variables,headers:h.headers}),h.hash===l&&(f=d)}if(f>=0)a.activeTabIndex=f;else{const d=e?bu(e):null;a.tabs.push({id:yu(),hash:l,title:d||wh,query:e,variables:n,headers:t,operationName:d,response:null})}return a}else throw new Error("Storage for tabs is invalid")}catch{return o==null||o.set(Yp,""),{activeTabIndex:0,tabs:[vu()]}}}$(gh,"getDefaultTabState");nn(gh,"getDefaultTabState");function yh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&Eh(t,"activeTabIndex")&&"tabs"in t&&Array.isArray(t.tabs)&&t.tabs.every(bh)}$(yh,"isTabsState");nn(yh,"isTabsState");function bh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&Il(t,"id")&&Il(t,"title")&&Uo(t,"query")&&Uo(t,"variables")&&Uo(t,"headers")&&Uo(t,"operationName")&&Uo(t,"response")}$(bh,"isTabState");nn(bh,"isTabState");function Eh(t,e){return e in t&&typeof t[e]=="number"}$(Eh,"hasNumberKey");nn(Eh,"hasNumberKey");function Il(t,e){return e in t&&typeof t[e]=="string"}$(Il,"hasStringKey");nn(Il,"hasStringKey");function Uo(t,e){return e in t&&(typeof t[e]=="string"||t[e]===null)}$(Uo,"hasStringOrNullKey");nn(Uo,"hasStringOrNullKey");function _h({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(i=>{var a,l,f,d,h;const v=(a=t==null?void 0:t.getValue())!=null?a:null,y=(l=e==null?void 0:e.getValue())!=null?l:null,g=(f=n==null?void 0:n.getValue())!=null?f:null,E=(d=t==null?void 0:t.operationName)!=null?d:null,C=(h=o==null?void 0:o.getValue())!=null?h:null;return gu(i,{query:v,variables:y,headers:g,response:C,operationName:E})},[t,e,n,o])}$(_h,"useSynchronizeActiveTabValues");nn(_h,"useSynchronizeActiveTabValues");function kh({storage:t,shouldPersistHeaders:e}){const n=ie.useMemo(()=>ti(500,o=>{t==null||t.set(Yp,o)}),[t]);return ie.useCallback(o=>{n(JSON.stringify(o,(i,a)=>i==="hash"||i==="response"||!e&&i==="headers"?null:a))},[e,n])}$(kh,"useStoreTabs");nn(kh,"useStoreTabs");function xh({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(({query:i,variables:a,headers:l,response:f})=>{t==null||t.setValue(i??""),e==null||e.setValue(a??""),n==null||n.setValue(l??""),o==null||o.setValue(f??"")},[n,t,o,e])}$(xh,"useSetEditorValues");nn(xh,"useSetEditorValues");function vu(){return{id:yu(),hash:os({query:null,variables:null,headers:null}),title:wh,query:null,variables:null,headers:null,operationName:null,response:null}}$(vu,"emptyTab");nn(vu,"emptyTab");function gu(t,e){return Ur(mn({},t),{tabs:t.tabs.map((n,o)=>{if(o!==t.activeTabIndex)return n;const i=mn(mn({},n),e);return Ur(mn({},i),{hash:os(i),title:i.operationName||(i.query?bu(i.query):void 0)||wh})})})}$(gu,"setPropertiesInActiveTab");nn(gu,"setPropertiesInActiveTab");function yu(){const t=nn(()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),"s4");return`${t()}${t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}$(yu,"guid");nn(yu,"guid");function os(t){var e,n,o;return[(e=t.query)!=null?e:"",(n=t.variables)!=null?n:"",(o=t.headers)!=null?o:""].join("|")}$(os,"hashFromTabContents");nn(os,"hashFromTabContents");function bu(t){var e;const o=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(t);return(e=o==null?void 0:o[2])!=null?e:null}$(bu,"fuzzyExtractOperationName");nn(bu,"fuzzyExtractOperationName");const wh="<untitled>",Yp="tabState";var Oae=Object.defineProperty,Iae=$((t,e)=>Oae(t,"name",{value:e,configurable:!0}),"__name$3");function Vr({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialVariables:i,variableEditor:a,setVariableEditor:l}=rn({nonNull:!0,caller:Vr}),f=hs(),d=Yr({caller:Vr}),h=Co({caller:Vr}),v=ie.useRef(null),y=ie.useRef();return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./hint.es2-DRHlNN6z.js"),__vite__mapDeps([27,0,1,2,23]),import.meta.url),Xe(()=>import("./lint.es2-CDvv_d9A.js"),__vite__mapDeps([28,0,1,2]),import.meta.url),Xe(()=>import("./mode.es3-DlVh9_RV.js"),__vite__mapDeps([29,0,1,2,18]),import.meta.url)]).then(E=>{if(!g)return;y.current=E;const C=v.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:C,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),l(S)}),()=>{g=!1}},[t,i,o,l]),ms(a,"keyMap",e),mu(a,n,t_,"variables",Vr),Ya(a,Vr),Nn(a,["Cmd-Enter","Ctrl-Enter"],f==null?void 0:f.run),Nn(a,["Shift-Ctrl-P"],h),Nn(a,["Shift-Ctrl-M"],d),v}$(Vr,"useVariableEditor");Iae(Vr,"useVariableEditor");const t_="variables";var Fae=Object.defineProperty,Lae=$((t,e)=>Fae(t,"name",{value:e,configurable:!0}),"__name$2");const $h=xo("EditorContext");function Eu(t){var e,n,o,i,a;const l=$o(),[f,d]=ie.useState(null),[h,v]=ie.useState(null),[y,g]=ie.useState(null),[E,C]=ie.useState(null);ji(f,t.headers),ji(h,t.query),ji(y,t.response),ji(E,t.variables);const[S]=ie.useState(()=>{var J,te,pe,$e,Me,Z;return{headers:(te=(J=t.headers)!=null?J:l==null?void 0:l.get(KE))!=null?te:null,query:($e=(pe=t.query)!=null?pe:l==null?void 0:l.get(e_))!=null?$e:null,variables:(Z=(Me=t.variables)!=null?Me:l==null?void 0:l.get(t_))!=null?Z:null}}),[N,D]=ie.useState(()=>gh(Ur(mn({},S),{storage:l}))),T=kh({storage:l,shouldPersistHeaders:t.shouldPersistHeaders}),O=_h({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),V=xh({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),{onTabChange:Y}=t,P=ie.useCallback(()=>{D(J=>{const te=O(J),pe={tabs:[...te.tabs,vu()],activeTabIndex:te.tabs.length};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),U=ie.useCallback(J=>{D(te=>{const pe=Ur(mn({},O(te)),{activeTabIndex:J});return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),K=ie.useCallback(J=>{D(te=>{const pe={tabs:te.tabs.filter(($e,Me)=>J!==Me),activeTabIndex:Math.max(te.activeTabIndex-1,0)};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T]),G=ie.useCallback(J=>{D(te=>{const pe=gu(te,J);return T(pe),Y==null||Y(pe),pe})},[Y,T]),{onEditOperationName:Q}=t,re=ie.useCallback(J=>{h&&(h.operationName=J,G({operationName:J}),Q==null||Q(J))},[Q,h,G]),_e=N.activeTabIndex>0?"":(e=t.defaultQuery)!=null?e:Rae,H=ie.useRef({initialHeaders:(n=S.headers)!=null?n:"",initialQuery:(o=S.query)!=null?o:_e,initialResponse:(i=t.response)!=null?i:"",initialVariables:(a=S.variables)!=null?a:""}),L=ie.useMemo(()=>{const J=new Map;if(Array.isArray(t.externalFragments))for(const te of t.externalFragments)J.set(te.name.value,te);else if(typeof t.externalFragments=="string")un(Zn(t.externalFragments,{}),{FragmentDefinition(te){J.set(te.name.value,te)}});else if(t.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return J},[t.externalFragments]),x=ie.useMemo(()=>t.validationRules||[],[t.validationRules]),j=ie.useMemo(()=>Ur(mn(Ur(mn({},N),{addTab:P,changeTab:U,closeTab:K,updateActiveTabValues:G,headerEditor:f,queryEditor:h,responseEditor:y,variableEditor:E,setHeaderEditor:d,setQueryEditor:v,setResponseEditor:g,setVariableEditor:C,setOperationName:re}),H.current),{externalFragments:L,validationRules:x,shouldPersistHeaders:t.shouldPersistHeaders||!1}),[N,P,U,K,G,f,h,y,E,re,L,x,t.shouldPersistHeaders]);return Qr($h.Provider,{value:j,children:t.children})}$(Eu,"EditorContextProvider");Lae(Eu,"EditorContextProvider");const rn=wo($h),Rae=`# Welcome to GraphiQL
237
237
  #
238
238
  # GraphiQL is an in-browser tool for writing, validating, and
239
239
  # testing GraphQL queries.
@@ -264,10 +264,10 @@ object-assign
264
264
  # Auto Complete: Ctrl-Space (or just start typing)
265
265
  #
266
266
 
267
- `;var Mae=Object.defineProperty,qae=$((t,e)=>Mae(t,"name",{value:e,configurable:!0}),"__name$1");function is({ResponseTooltip:t,editorTheme:e=au,keyMap:n=cu}={}){const{fetchError:o,validationErrors:i}=Bn({nonNull:!0,caller:is}),{initialResponse:a,responseEditor:l,setResponseEditor:f}=rn({nonNull:!0,caller:is}),d=ie.useRef(null),h=ie.useRef(t);return ie.useEffect(()=>{h.current=t},[t]),ie.useEffect(()=>{let v=!0;return ui([Xe(()=>import("./foldgutter.es-CSicbQSJ.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(y){return y.f}),Xe(()=>import("./brace-fold.es-CkrKXotH.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(y){return y.b}),Xe(()=>import("./dialog.es-DHZdXjGS.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(y){return y.d}),Xe(()=>import("./search.es-DxfjuUNu.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./searchcursor.es-C0Z2DY1c.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./jump-to-line.es-BQjWkUgo.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(y){return y.j}),Xe(()=>import("./sublime.es-BffqyCoy.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./mode.es2-C1LDwVOl.js"),__vite__mapDeps([30,0,1,2,18]),import.meta.url),Xe(()=>import("./info-addon.es-5NmROke-.js"),__vite__mapDeps([24,0,1,2]),import.meta.url)],{useCommonAddons:!1}).then(y=>{if(!v)return;const g=document.createElement("div");y.registerHelper("info","graphql-results",(S,N,D,T)=>{const O=[],V=h.current;return V&&O.push(Qr(V,{pos:T})),ts.shouldRender(S)&&O.push(Qr(ts,{token:S},"image-preview")),O.length?(Uv.render(O,g),g):(Uv.unmountComponentAtNode(g),null)});const E=d.current;if(!E)return;const C=y(E,{value:a,lineWrapping:!0,readOnly:!0,theme:e,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:lu});f(C)}),()=>{v=!1}},[e,a,f]),ms(l,"keyMap",n),ie.useEffect(()=>{o&&(l==null||l.setValue(o)),i.length>0&&(l==null||l.setValue(Yo(i)))},[l,o,i]),d}$(is,"useResponseEditor");qae(is,"useResponseEditor");var Pae=Object.defineProperty,sa=$((t,e)=>Pae(t,"name",{value:e,configurable:!0}),"__name");function Wi({defaultSizeRelation:t=Bae,direction:e,initiallyHidden:n,onHiddenElementChange:o,sizeThresholdFirst:i=100,sizeThresholdSecond:a=100,storageKey:l}){const f=$o(),d=ie.useCallback(ti(500,T=>{f&&l&&f.set(l,T)}),[f,l]),[h,v]=ie.useState(()=>{const T=f&&l?f.get(l):null;return T===Yc||n==="first"?"first":T===Jc||n==="second"?"second":null}),y=ie.useCallback(T=>{v(T),o==null||o(T)},[o]),g=ie.useRef(null),E=ie.useRef(null),C=ie.useRef(null),S=ie.useRef(`${t}`);ie.useLayoutEffect(()=>{const T=f&&l&&f.get(l)||S.current,O=e==="horizontal"?"row":"column";g.current&&(g.current.style.display="flex",g.current.style.flexDirection=O,g.current.style.flex=T===Yc||T===Jc?S.current:T),C.current&&(C.current.style.display="flex",C.current.style.flexDirection=O,C.current.style.flex="1"),E.current&&(E.current.style.display="flex",E.current.style.flexDirection=O)},[e,f,l]);const N=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.left="-1000px",O.style.position="absolute",O.style.opacity="0",O.style.height="500px",O.style.width="500px",g.current)){const V=parseFloat(g.current.style.flex);(!Number.isFinite(V)||V<1)&&(g.current.style.flex="1"),g.current.style.flex}},[]),D=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.width="",O.style.height="",O.style.opacity="",O.style.position="",O.style.left="",g.current&&f&&l)){const V=f==null?void 0:f.get(l);V&&V!==Yc&&V!==Jc&&(g.current.style.flex=V)}},[f,l]);return ie.useLayoutEffect(()=>{h==="first"?N("first"):D("first"),h==="second"?N("second"):D("second")},[h,N,D]),ie.useEffect(()=>{if(!E.current||!g.current||!C.current)return;const T=E.current,O=g.current,V=O.parentElement,Y=e==="horizontal"?"clientX":"clientY",P=e==="horizontal"?"left":"top",U=e==="horizontal"?"right":"bottom",K=e==="horizontal"?"clientWidth":"clientHeight";function G(re){re.preventDefault();const _e=re[Y]-T.getBoundingClientRect()[P];function H(x){if(x.buttons===0)return F();const j=x[Y]-V.getBoundingClientRect()[P]-_e,J=V.getBoundingClientRect()[U]-x[Y]+_e-T[K];if(j<i)y("first"),d(Yc);else if(J<a)y("second"),d(Jc);else{y(null);const te=`${j/J}`;O.style.flex=te,d(te)}}$(H,"handleMouseMove"),sa(H,"handleMouseMove");function F(){document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",F)}$(F,"handleMouseUp"),sa(F,"handleMouseUp"),document.addEventListener("mousemove",H),document.addEventListener("mouseup",F)}$(G,"handleMouseDown"),sa(G,"handleMouseDown"),T.addEventListener("mousedown",G);function Q(){g.current&&(g.current.style.flex=S.current),d(S.current),y(null)}return $(Q,"reset"),sa(Q,"reset"),T.addEventListener("dblclick",Q),()=>{T.removeEventListener("mousedown",G),T.removeEventListener("dblclick",Q)}},[e,y,i,a,d]),ie.useMemo(()=>({dragBarRef:E,hiddenElement:h,firstRef:g,setHiddenElement:y,secondRef:C}),[h,y])}$(Wi,"useDragResize");sa(Wi,"useDragResize");const Bae=1,Yc="hide-first",Jc="hide-second",Vae=Object.freeze(Object.defineProperty({__proto__:null,EditorContext:$h,EditorContextProvider:Eu,ExecutionContext:ch,ExecutionContextProvider:rs,ExplorerContext:ph,ExplorerContextProvider:Qa,HistoryContext:ah,HistoryContextProvider:hu,ImagePreview:ts,SchemaContext:lh,SchemaContextProvider:Wa,StorageContext:oh,StorageContextProvider:pu,onHasCompletion:Ua,useAutoCompleteLeafs:ni,useCopyQuery:vs,useDragResize:Wi,useEditorContext:rn,useExecutionContext:hs,useExplorerContext:$r,useHeaderEditor:Br,useHistoryContext:Ha,useMergeQuery:Yr,usePrettifyEditors:Co,useQueryEditor:mr,useResponseEditor:is,useSchemaContext:Bn,useSelectHistoryItem:Ga,useStorageContext:$o,useVariableEditor:Vr},Symbol.toStringTag,{value:"Module"}));var zy=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function jae(){var t=rn({nonNull:!0}),e=t.queryEditor,n=t.setOperationName,o=hs({nonNull:!0}),i=o.isFetching,a=o.operationName,l=o.run,f=o.stop,d=zy(ie.useState(!1),2),h=d[0],v=d[1],y=zy(ie.useState(null),2),g=y[0],E=y[1],C=(e==null?void 0:e.operations)||[],S=C.length>1&&typeof a!="string";return L.createElement("div",{className:"execute-button-wrap"},L.createElement("button",{type:"button",className:"execute-button",onMouseDown:!i&&S&&!h?function(N){var D=!0,T=N.currentTarget;E(null),v(!0);var O=function(V){var Y;if(D&&V.target===T)D=!1;else{document.removeEventListener("mouseup",O),O=null;var P=V.currentTarget&&((Y=T.parentNode)===null||Y===void 0?void 0:Y.compareDocumentPosition(V.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;P||v(!1)}};document.addEventListener("mouseup",O)}:void 0,onClick:i||!S?function(){i?f():l()}:void 0,title:"Execute Query (Ctrl-Enter)"},L.createElement("svg",{width:"34",height:"34"},i?L.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):L.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),S&&h?L.createElement("ul",{className:"execute-options"},C.map(function(N,D){var T=N.name?N.name.value:"<Unnamed ".concat(N.operation,">");return L.createElement("li",{key:"".concat(T,"-").concat(D),className:N===g?"selected":void 0,onMouseOver:function(){return E(N)},onMouseOut:function(){return E(null)},onMouseUp:function(){var O;v(!1);var V=(O=N.name)===null||O===void 0?void 0:O.value;e&&V&&V!==e.operationName&&n(V),l()}},T)})):null)}var Uae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ho=function(t){Uae(e,t);function e(n){var o=t.call(this,n)||this;return o.handleClick=function(){try{o.props.onClick(),o.setState({error:null})}catch(i){if(i instanceof Error){o.setState({error:i});return}throw i}},o.state={error:null},o}return e.prototype.render=function(){var n=this.state.error;return L.createElement("button",{type:"button",className:"toolbar-button"+(n?" error":""),onClick:this.handleClick,title:n?n.message:this.props.title,"aria-invalid":n?"true":"false"},this.props.label)},e}(L.Component);function n_(t){var e=t.children;return L.createElement("div",{className:"toolbar-button-group"},e)}var zae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),r_=function(t){zae(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){Jp(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o=this.state.visible;return L.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Jp,ref:function(i){i&&(n._node=i)},title:this.props.title},this.props.label,L.createElement("svg",{width:"14",height:"8"},L.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),L.createElement("ul",{className:"toolbar-menu-items"+(o?" open":"")},this.props.children))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(n.preventDefault(),this.setState({visible:!1}),this._release())},e}(L.Component),o_=function(t){var e=t.onSelect,n=t.title,o=t.label;return L.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:Jp,onMouseUp:e,title:n},o)};function Jp(t){t.preventDefault()}function Ch(t){var e=mr(t);return L.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:e})}var Hae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function Ah(t){var e=t.active,n=Hae(t,["active"]),o=Vr(n);return L.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}var Gae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function i_(t){var e=t.active,n=Gae(t,["active"]),o=Br(n);return L.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}function s_(t){var e=is(t);return L.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e})}function In(t){var e=$r({nonNull:!0,caller:In}).push;if(!t.type)return null;var n=t.type;return Ie(n)?L.createElement(L.Fragment,null,L.createElement(In,{type:n.ofType}),"!"):at(n)?L.createElement(L.Fragment,null,"[",L.createElement(In,{type:n.ofType}),"]"):L.createElement("a",{className:"type-name",onClick:function(o){o.preventDefault(),e({name:n.name,def:n})},href:"#"},n.name)}var Wae=function(t){return t?Je(t):""};function a_(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?L.createElement("span",null," = ",L.createElement("span",{className:"arg-default-value"},Wae(jr(e.defaultValue,e.type)))):null}function Ll(t){var e=t.arg,n=t.showDefaultValue;return L.createElement("span",{className:"arg"},L.createElement("span",{className:"arg-name"},e.name),": ",L.createElement(In,{type:e.type}),n!==!1&&L.createElement(a_,{field:e}))}function Qae(t){var e=t.directive;return L.createElement("span",{className:"doc-category-item",id:e.name.value},"@",e.name.value)}var tt={};const Yae="Á",Jae="á",Zae="Ă",Xae="ă",Kae="∾",ece="∿",tce="∾̳",nce="Â",rce="â",oce="´",ice="А",sce="а",ace="Æ",cce="æ",lce="⁡",uce="𝔄",fce="𝔞",pce="À",dce="à",hce="ℵ",mce="ℵ",vce="Α",gce="α",yce="Ā",bce="ā",Ece="⨿",_ce="&",kce="&",xce="⩕",wce="⩓",$ce="∧",Cce="⩜",Ace="⩘",Sce="⩚",Tce="∠",Dce="⦤",Nce="∠",Oce="⦨",Ice="⦩",Lce="⦪",Fce="⦫",Rce="⦬",Mce="⦭",qce="⦮",Pce="⦯",Bce="∡",Vce="∟",jce="⊾",Uce="⦝",zce="∢",Hce="Å",Gce="⍼",Wce="Ą",Qce="ą",Yce="𝔸",Jce="𝕒",Zce="⩯",Xce="≈",Kce="⩰",ele="≊",tle="≋",nle="'",rle="⁡",ole="≈",ile="≊",sle="Å",ale="å",cle="𝒜",lle="𝒶",ule="≔",fle="*",ple="≈",dle="≍",hle="Ã",mle="ã",vle="Ä",gle="ä",yle="∳",ble="⨑",Ele="≌",_le="϶",kle="‵",xle="∽",wle="⋍",$le="∖",Cle="⫧",Ale="⊽",Sle="⌅",Tle="⌆",Dle="⌅",Nle="⎵",Ole="⎶",Ile="≌",Lle="Б",Fle="б",Rle="„",Mle="∵",qle="∵",Ple="∵",Ble="⦰",Vle="϶",jle="ℬ",Ule="ℬ",zle="Β",Hle="β",Gle="ℶ",Wle="≬",Qle="𝔅",Yle="𝔟",Jle="⋂",Zle="◯",Xle="⋃",Kle="⨀",eue="⨁",tue="⨂",nue="⨆",rue="★",oue="▽",iue="△",sue="⨄",aue="⋁",cue="⋀",lue="⤍",uue="⧫",fue="▪",pue="▴",due="▾",hue="◂",mue="▸",vue="␣",gue="▒",yue="░",bue="▓",Eue="█",_ue="=⃥",kue="≡⃥",xue="⫭",wue="⌐",$ue="𝔹",Cue="𝕓",Aue="⊥",Sue="⊥",Tue="⋈",Due="⧉",Nue="┐",Oue="╕",Iue="╖",Lue="╗",Fue="┌",Rue="╒",Mue="╓",que="╔",Pue="─",Bue="═",Vue="┬",jue="╤",Uue="╥",zue="╦",Hue="┴",Gue="╧",Wue="╨",Que="╩",Yue="⊟",Jue="⊞",Zue="⊠",Xue="┘",Kue="╛",efe="╜",tfe="╝",nfe="└",rfe="╘",ofe="╙",ife="╚",sfe="│",afe="║",cfe="┼",lfe="╪",ufe="╫",ffe="╬",pfe="┤",dfe="╡",hfe="╢",mfe="╣",vfe="├",gfe="╞",yfe="╟",bfe="╠",Efe="‵",_fe="˘",kfe="˘",xfe="¦",wfe="𝒷",$fe="ℬ",Cfe="⁏",Afe="∽",Sfe="⋍",Tfe="⧅",Dfe="\\",Nfe="⟈",Ofe="•",Ife="•",Lfe="≎",Ffe="⪮",Rfe="≏",Mfe="≎",qfe="≏",Pfe="Ć",Bfe="ć",Vfe="⩄",jfe="⩉",Ufe="⩋",zfe="∩",Hfe="⋒",Gfe="⩇",Wfe="⩀",Qfe="ⅅ",Yfe="∩︀",Jfe="⁁",Zfe="ˇ",Xfe="ℭ",Kfe="⩍",epe="Č",tpe="č",npe="Ç",rpe="ç",ope="Ĉ",ipe="ĉ",spe="∰",ape="⩌",cpe="⩐",lpe="Ċ",upe="ċ",fpe="¸",ppe="¸",dpe="⦲",hpe="¢",mpe="·",vpe="·",gpe="𝔠",ype="ℭ",bpe="Ч",Epe="ч",_pe="✓",kpe="✓",xpe="Χ",wpe="χ",$pe="ˆ",Cpe="≗",Ape="↺",Spe="↻",Tpe="⊛",Dpe="⊚",Npe="⊝",Ope="⊙",Ipe="®",Lpe="Ⓢ",Fpe="⊖",Rpe="⊕",Mpe="⊗",qpe="○",Ppe="⧃",Bpe="≗",Vpe="⨐",jpe="⫯",Upe="⧂",zpe="∲",Hpe="”",Gpe="’",Wpe="♣",Qpe="♣",Ype=":",Jpe="∷",Zpe="⩴",Xpe="≔",Kpe="≔",ede=",",tde="@",nde="∁",rde="∘",ode="∁",ide="ℂ",sde="≅",ade="⩭",cde="≡",lde="∮",ude="∯",fde="∮",pde="𝕔",dde="ℂ",hde="∐",mde="∐",vde="©",gde="©",yde="℗",bde="∳",Ede="↵",_de="✗",kde="⨯",xde="𝒞",wde="𝒸",$de="⫏",Cde="⫑",Ade="⫐",Sde="⫒",Tde="⋯",Dde="⤸",Nde="⤵",Ode="⋞",Ide="⋟",Lde="↶",Fde="⤽",Rde="⩈",Mde="⩆",qde="≍",Pde="∪",Bde="⋓",Vde="⩊",jde="⊍",Ude="⩅",zde="∪︀",Hde="↷",Gde="⤼",Wde="⋞",Qde="⋟",Yde="⋎",Jde="⋏",Zde="¤",Xde="↶",Kde="↷",ehe="⋎",the="⋏",nhe="∲",rhe="∱",ohe="⌭",ihe="†",she="‡",ahe="ℸ",che="↓",lhe="↡",uhe="⇓",fhe="‐",phe="⫤",dhe="⊣",hhe="⤏",mhe="˝",vhe="Ď",ghe="ď",yhe="Д",bhe="д",Ehe="‡",_he="⇊",khe="ⅅ",xhe="ⅆ",whe="⤑",$he="⩷",Che="°",Ahe="∇",She="Δ",The="δ",Dhe="⦱",Nhe="⥿",Ohe="𝔇",Ihe="𝔡",Lhe="⥥",Fhe="⇃",Rhe="⇂",Mhe="´",qhe="˙",Phe="˝",Bhe="`",Vhe="˜",jhe="⋄",Uhe="⋄",zhe="⋄",Hhe="♦",Ghe="♦",Whe="¨",Qhe="ⅆ",Yhe="ϝ",Jhe="⋲",Zhe="÷",Xhe="÷",Khe="⋇",eme="⋇",tme="Ђ",nme="ђ",rme="⌞",ome="⌍",ime="$",sme="𝔻",ame="𝕕",cme="¨",lme="˙",ume="⃜",fme="≐",pme="≑",dme="≐",hme="∸",mme="∔",vme="⊡",gme="⌆",yme="∯",bme="¨",Eme="⇓",_me="⇐",kme="⇔",xme="⫤",wme="⟸",$me="⟺",Cme="⟹",Ame="⇒",Sme="⊨",Tme="⇑",Dme="⇕",Nme="∥",Ome="⤓",Ime="↓",Lme="↓",Fme="⇓",Rme="⇵",Mme="̑",qme="⇊",Pme="⇃",Bme="⇂",Vme="⥐",jme="⥞",Ume="⥖",zme="↽",Hme="⥟",Gme="⥗",Wme="⇁",Qme="↧",Yme="⊤",Jme="⤐",Zme="⌟",Xme="⌌",Kme="𝒟",eve="𝒹",tve="Ѕ",nve="ѕ",rve="⧶",ove="Đ",ive="đ",sve="⋱",ave="▿",cve="▾",lve="⇵",uve="⥯",fve="⦦",pve="Џ",dve="џ",hve="⟿",mve="É",vve="é",gve="⩮",yve="Ě",bve="ě",Eve="Ê",_ve="ê",kve="≖",xve="≕",wve="Э",$ve="э",Cve="⩷",Ave="Ė",Sve="ė",Tve="≑",Dve="ⅇ",Nve="≒",Ove="𝔈",Ive="𝔢",Lve="⪚",Fve="È",Rve="è",Mve="⪖",qve="⪘",Pve="⪙",Bve="∈",Vve="⏧",jve="ℓ",Uve="⪕",zve="⪗",Hve="Ē",Gve="ē",Wve="∅",Qve="∅",Yve="◻",Jve="∅",Zve="▫",Xve=" ",Kve=" ",ege=" ",tge="Ŋ",nge="ŋ",rge=" ",oge="Ę",ige="ę",sge="𝔼",age="𝕖",cge="⋕",lge="⧣",uge="⩱",fge="ε",pge="Ε",dge="ε",hge="ϵ",mge="≖",vge="≕",gge="≂",yge="⪖",bge="⪕",Ege="⩵",_ge="=",kge="≂",xge="≟",wge="⇌",$ge="≡",Cge="⩸",Age="⧥",Sge="⥱",Tge="≓",Dge="ℯ",Nge="ℰ",Oge="≐",Ige="⩳",Lge="≂",Fge="Η",Rge="η",Mge="Ð",qge="ð",Pge="Ë",Bge="ë",Vge="€",jge="!",Uge="∃",zge="∃",Hge="ℰ",Gge="ⅇ",Wge="ⅇ",Qge="≒",Yge="Ф",Jge="ф",Zge="♀",Xge="ffi",Kge="ff",eye="ffl",tye="𝔉",nye="𝔣",rye="fi",oye="◼",iye="▪",sye="fj",aye="♭",cye="fl",lye="▱",uye="ƒ",fye="𝔽",pye="𝕗",dye="∀",hye="∀",mye="⋔",vye="⫙",gye="ℱ",yye="⨍",bye="½",Eye="⅓",_ye="¼",kye="⅕",xye="⅙",wye="⅛",$ye="⅔",Cye="⅖",Aye="¾",Sye="⅗",Tye="⅜",Dye="⅘",Nye="⅚",Oye="⅝",Iye="⅞",Lye="⁄",Fye="⌢",Rye="𝒻",Mye="ℱ",qye="ǵ",Pye="Γ",Bye="γ",Vye="Ϝ",jye="ϝ",Uye="⪆",zye="Ğ",Hye="ğ",Gye="Ģ",Wye="Ĝ",Qye="ĝ",Yye="Г",Jye="г",Zye="Ġ",Xye="ġ",Kye="≥",e1e="≧",t1e="⪌",n1e="⋛",r1e="≥",o1e="≧",i1e="⩾",s1e="⪩",a1e="⩾",c1e="⪀",l1e="⪂",u1e="⪄",f1e="⋛︀",p1e="⪔",d1e="𝔊",h1e="𝔤",m1e="≫",v1e="⋙",g1e="⋙",y1e="ℷ",b1e="Ѓ",E1e="ѓ",_1e="⪥",k1e="≷",x1e="⪒",w1e="⪤",$1e="⪊",C1e="⪊",A1e="⪈",S1e="≩",T1e="⪈",D1e="≩",N1e="⋧",O1e="𝔾",I1e="𝕘",L1e="`",F1e="≥",R1e="⋛",M1e="≧",q1e="⪢",P1e="≷",B1e="⩾",V1e="≳",j1e="𝒢",U1e="ℊ",z1e="≳",H1e="⪎",G1e="⪐",W1e="⪧",Q1e="⩺",Y1e=">",J1e=">",Z1e="≫",X1e="⋗",K1e="⦕",e0e="⩼",t0e="⪆",n0e="⥸",r0e="⋗",o0e="⋛",i0e="⪌",s0e="≷",a0e="≳",c0e="≩︀",l0e="≩︀",u0e="ˇ",f0e=" ",p0e="½",d0e="ℋ",h0e="Ъ",m0e="ъ",v0e="⥈",g0e="↔",y0e="⇔",b0e="↭",E0e="^",_0e="ℏ",k0e="Ĥ",x0e="ĥ",w0e="♥",$0e="♥",C0e="…",A0e="⊹",S0e="𝔥",T0e="ℌ",D0e="ℋ",N0e="⤥",O0e="⤦",I0e="⇿",L0e="∻",F0e="↩",R0e="↪",M0e="𝕙",q0e="ℍ",P0e="―",B0e="─",V0e="𝒽",j0e="ℋ",U0e="ℏ",z0e="Ħ",H0e="ħ",G0e="≎",W0e="≏",Q0e="⁃",Y0e="‐",J0e="Í",Z0e="í",X0e="⁣",K0e="Î",ebe="î",tbe="И",nbe="и",rbe="İ",obe="Е",ibe="е",sbe="¡",abe="⇔",cbe="𝔦",lbe="ℑ",ube="Ì",fbe="ì",pbe="ⅈ",dbe="⨌",hbe="∭",mbe="⧜",vbe="℩",gbe="IJ",ybe="ij",bbe="Ī",Ebe="ī",_be="ℑ",kbe="ⅈ",xbe="ℐ",wbe="ℑ",$be="ı",Cbe="ℑ",Abe="⊷",Sbe="Ƶ",Tbe="⇒",Dbe="℅",Nbe="∞",Obe="⧝",Ibe="ı",Lbe="⊺",Fbe="∫",Rbe="∬",Mbe="ℤ",qbe="∫",Pbe="⊺",Bbe="⋂",Vbe="⨗",jbe="⨼",Ube="⁣",zbe="⁢",Hbe="Ё",Gbe="ё",Wbe="Į",Qbe="į",Ybe="𝕀",Jbe="𝕚",Zbe="Ι",Xbe="ι",Kbe="⨼",eEe="¿",tEe="𝒾",nEe="ℐ",rEe="∈",oEe="⋵",iEe="⋹",sEe="⋴",aEe="⋳",cEe="∈",lEe="⁢",uEe="Ĩ",fEe="ĩ",pEe="І",dEe="і",hEe="Ï",mEe="ï",vEe="Ĵ",gEe="ĵ",yEe="Й",bEe="й",EEe="𝔍",_Ee="𝔧",kEe="ȷ",xEe="𝕁",wEe="𝕛",$Ee="𝒥",CEe="𝒿",AEe="Ј",SEe="ј",TEe="Є",DEe="є",NEe="Κ",OEe="κ",IEe="ϰ",LEe="Ķ",FEe="ķ",REe="К",MEe="к",qEe="𝔎",PEe="𝔨",BEe="ĸ",VEe="Х",jEe="х",UEe="Ќ",zEe="ќ",HEe="𝕂",GEe="𝕜",WEe="𝒦",QEe="𝓀",YEe="⇚",JEe="Ĺ",ZEe="ĺ",XEe="⦴",KEe="ℒ",e_e="Λ",t_e="λ",n_e="⟨",r_e="⟪",o_e="⦑",i_e="⟨",s_e="⪅",a_e="ℒ",c_e="«",l_e="⇤",u_e="⤟",f_e="←",p_e="↞",d_e="⇐",h_e="⤝",m_e="↩",v_e="↫",g_e="⤹",y_e="⥳",b_e="↢",E_e="⤙",__e="⤛",k_e="⪫",x_e="⪭",w_e="⪭︀",$_e="⤌",C_e="⤎",A_e="❲",S_e="{",T_e="[",D_e="⦋",N_e="⦏",O_e="⦍",I_e="Ľ",L_e="ľ",F_e="Ļ",R_e="ļ",M_e="⌈",q_e="{",P_e="Л",B_e="л",V_e="⤶",j_e="“",U_e="„",z_e="⥧",H_e="⥋",G_e="↲",W_e="≤",Q_e="≦",Y_e="⟨",J_e="⇤",Z_e="←",X_e="←",K_e="⇐",e2e="⇆",t2e="↢",n2e="⌈",r2e="⟦",o2e="⥡",i2e="⥙",s2e="⇃",a2e="⌊",c2e="↽",l2e="↼",u2e="⇇",f2e="↔",p2e="↔",d2e="⇔",h2e="⇆",m2e="⇋",v2e="↭",g2e="⥎",y2e="↤",b2e="⊣",E2e="⥚",_2e="⋋",k2e="⧏",x2e="⊲",w2e="⊴",$2e="⥑",C2e="⥠",A2e="⥘",S2e="↿",T2e="⥒",D2e="↼",N2e="⪋",O2e="⋚",I2e="≤",L2e="≦",F2e="⩽",R2e="⪨",M2e="⩽",q2e="⩿",P2e="⪁",B2e="⪃",V2e="⋚︀",j2e="⪓",U2e="⪅",z2e="⋖",H2e="⋚",G2e="⪋",W2e="⋚",Q2e="≦",Y2e="≶",J2e="≶",Z2e="⪡",X2e="≲",K2e="⩽",eke="≲",tke="⥼",nke="⌊",rke="𝔏",oke="𝔩",ike="≶",ske="⪑",ake="⥢",cke="↽",lke="↼",uke="⥪",fke="▄",pke="Љ",dke="љ",hke="⇇",mke="≪",vke="⋘",gke="⌞",yke="⇚",bke="⥫",Eke="◺",_ke="Ŀ",kke="ŀ",xke="⎰",wke="⎰",$ke="⪉",Cke="⪉",Ake="⪇",Ske="≨",Tke="⪇",Dke="≨",Nke="⋦",Oke="⟬",Ike="⇽",Lke="⟦",Fke="⟵",Rke="⟵",Mke="⟸",qke="⟷",Pke="⟷",Bke="⟺",Vke="⟼",jke="⟶",Uke="⟶",zke="⟹",Hke="↫",Gke="↬",Wke="⦅",Qke="𝕃",Yke="𝕝",Jke="⨭",Zke="⨴",Xke="∗",Kke="_",exe="↙",txe="↘",nxe="◊",rxe="◊",oxe="⧫",ixe="(",sxe="⦓",axe="⇆",cxe="⌟",lxe="⇋",uxe="⥭",fxe="‎",pxe="⊿",dxe="‹",hxe="𝓁",mxe="ℒ",vxe="↰",gxe="↰",yxe="≲",bxe="⪍",Exe="⪏",_xe="[",kxe="‘",xxe="‚",wxe="Ł",$xe="ł",Cxe="⪦",Axe="⩹",Sxe="<",Txe="<",Dxe="≪",Nxe="⋖",Oxe="⋋",Ixe="⋉",Lxe="⥶",Fxe="⩻",Rxe="◃",Mxe="⊴",qxe="◂",Pxe="⦖",Bxe="⥊",Vxe="⥦",jxe="≨︀",Uxe="≨︀",zxe="¯",Hxe="♂",Gxe="✠",Wxe="✠",Qxe="↦",Yxe="↦",Jxe="↧",Zxe="↤",Xxe="↥",Kxe="▮",ewe="⨩",twe="М",nwe="м",rwe="—",owe="∺",iwe="∡",swe=" ",awe="ℳ",cwe="𝔐",lwe="𝔪",uwe="℧",fwe="µ",pwe="*",dwe="⫰",hwe="∣",mwe="·",vwe="⊟",gwe="−",ywe="∸",bwe="⨪",Ewe="∓",_we="⫛",kwe="…",xwe="∓",wwe="⊧",$we="𝕄",Cwe="𝕞",Awe="∓",Swe="𝓂",Twe="ℳ",Dwe="∾",Nwe="Μ",Owe="μ",Iwe="⊸",Lwe="⊸",Fwe="∇",Rwe="Ń",Mwe="ń",qwe="∠⃒",Pwe="≉",Bwe="⩰̸",Vwe="≋̸",jwe="ʼn",Uwe="≉",zwe="♮",Hwe="ℕ",Gwe="♮",Wwe=" ",Qwe="≎̸",Ywe="≏̸",Jwe="⩃",Zwe="Ň",Xwe="ň",Kwe="Ņ",e$e="ņ",t$e="≇",n$e="⩭̸",r$e="⩂",o$e="Н",i$e="н",s$e="–",a$e="⤤",c$e="↗",l$e="⇗",u$e="↗",f$e="≠",p$e="≐̸",d$e="​",h$e="​",m$e="​",v$e="​",g$e="≢",y$e="⤨",b$e="≂̸",E$e="≫",_$e="≪",k$e=`
268
- `,x$e="∄",w$e="∄",$$e="𝔑",C$e="𝔫",A$e="≧̸",S$e="≱",T$e="≱",D$e="≧̸",N$e="⩾̸",O$e="⩾̸",I$e="⋙̸",L$e="≵",F$e="≫⃒",R$e="≯",M$e="≯",q$e="≫̸",P$e="↮",B$e="⇎",V$e="⫲",j$e="∋",U$e="⋼",z$e="⋺",H$e="∋",G$e="Њ",W$e="њ",Q$e="↚",Y$e="⇍",J$e="‥",Z$e="≦̸",X$e="≰",K$e="↚",eCe="⇍",tCe="↮",nCe="⇎",rCe="≰",oCe="≦̸",iCe="⩽̸",sCe="⩽̸",aCe="≮",cCe="⋘̸",lCe="≴",uCe="≪⃒",fCe="≮",pCe="⋪",dCe="⋬",hCe="≪̸",mCe="∤",vCe="⁠",gCe=" ",yCe="𝕟",bCe="ℕ",ECe="⫬",_Ce="¬",kCe="≢",xCe="≭",wCe="∦",$Ce="∉",CCe="≠",ACe="≂̸",SCe="∄",TCe="≯",DCe="≱",NCe="≧̸",OCe="≫̸",ICe="≹",LCe="⩾̸",FCe="≵",RCe="≎̸",MCe="≏̸",qCe="∉",PCe="⋵̸",BCe="⋹̸",VCe="∉",jCe="⋷",UCe="⋶",zCe="⧏̸",HCe="⋪",GCe="⋬",WCe="≮",QCe="≰",YCe="≸",JCe="≪̸",ZCe="⩽̸",XCe="≴",KCe="⪢̸",eAe="⪡̸",tAe="∌",nAe="∌",rAe="⋾",oAe="⋽",iAe="⊀",sAe="⪯̸",aAe="⋠",cAe="∌",lAe="⧐̸",uAe="⋫",fAe="⋭",pAe="⊏̸",dAe="⋢",hAe="⊐̸",mAe="⋣",vAe="⊂⃒",gAe="⊈",yAe="⊁",bAe="⪰̸",EAe="⋡",_Ae="≿̸",kAe="⊃⃒",xAe="⊉",wAe="≁",$Ae="≄",CAe="≇",AAe="≉",SAe="∤",TAe="∦",DAe="∦",NAe="⫽⃥",OAe="∂̸",IAe="⨔",LAe="⊀",FAe="⋠",RAe="⊀",MAe="⪯̸",qAe="⪯̸",PAe="⤳̸",BAe="↛",VAe="⇏",jAe="↝̸",UAe="↛",zAe="⇏",HAe="⋫",GAe="⋭",WAe="⊁",QAe="⋡",YAe="⪰̸",JAe="𝒩",ZAe="𝓃",XAe="∤",KAe="∦",eSe="≁",tSe="≄",nSe="≄",rSe="∤",oSe="∦",iSe="⋢",sSe="⋣",aSe="⊄",cSe="⫅̸",lSe="⊈",uSe="⊂⃒",fSe="⊈",pSe="⫅̸",dSe="⊁",hSe="⪰̸",mSe="⊅",vSe="⫆̸",gSe="⊉",ySe="⊃⃒",bSe="⊉",ESe="⫆̸",_Se="≹",kSe="Ñ",xSe="ñ",wSe="≸",$Se="⋪",CSe="⋬",ASe="⋫",SSe="⋭",TSe="Ν",DSe="ν",NSe="#",OSe="№",ISe=" ",LSe="≍⃒",FSe="⊬",RSe="⊭",MSe="⊮",qSe="⊯",PSe="≥⃒",BSe=">⃒",VSe="⤄",jSe="⧞",USe="⤂",zSe="≤⃒",HSe="<⃒",GSe="⊴⃒",WSe="⤃",QSe="⊵⃒",YSe="∼⃒",JSe="⤣",ZSe="↖",XSe="⇖",KSe="↖",eTe="⤧",tTe="Ó",nTe="ó",rTe="⊛",oTe="Ô",iTe="ô",sTe="⊚",aTe="О",cTe="о",lTe="⊝",uTe="Ő",fTe="ő",pTe="⨸",dTe="⊙",hTe="⦼",mTe="Œ",vTe="œ",gTe="⦿",yTe="𝔒",bTe="𝔬",ETe="˛",_Te="Ò",kTe="ò",xTe="⧁",wTe="⦵",$Te="Ω",CTe="∮",ATe="↺",STe="⦾",TTe="⦻",DTe="‾",NTe="⧀",OTe="Ō",ITe="ō",LTe="Ω",FTe="ω",RTe="Ο",MTe="ο",qTe="⦶",PTe="⊖",BTe="𝕆",VTe="𝕠",jTe="⦷",UTe="“",zTe="‘",HTe="⦹",GTe="⊕",WTe="↻",QTe="⩔",YTe="∨",JTe="⩝",ZTe="ℴ",XTe="ℴ",KTe="ª",eDe="º",tDe="⊶",nDe="⩖",rDe="⩗",oDe="⩛",iDe="Ⓢ",sDe="𝒪",aDe="ℴ",cDe="Ø",lDe="ø",uDe="⊘",fDe="Õ",pDe="õ",dDe="⨶",hDe="⨷",mDe="⊗",vDe="Ö",gDe="ö",yDe="⌽",bDe="‾",EDe="⏞",_De="⎴",kDe="⏜",xDe="¶",wDe="∥",$De="∥",CDe="⫳",ADe="⫽",SDe="∂",TDe="∂",DDe="П",NDe="п",ODe="%",IDe=".",LDe="‰",FDe="⊥",RDe="‱",MDe="𝔓",qDe="𝔭",PDe="Φ",BDe="φ",VDe="ϕ",jDe="ℳ",UDe="☎",zDe="Π",HDe="π",GDe="⋔",WDe="ϖ",QDe="ℏ",YDe="ℎ",JDe="ℏ",ZDe="⨣",XDe="⊞",KDe="⨢",eNe="+",tNe="∔",nNe="⨥",rNe="⩲",oNe="±",iNe="±",sNe="⨦",aNe="⨧",cNe="±",lNe="ℌ",uNe="⨕",fNe="𝕡",pNe="ℙ",dNe="£",hNe="⪷",mNe="⪻",vNe="≺",gNe="≼",yNe="⪷",bNe="≺",ENe="≼",_Ne="≺",kNe="⪯",xNe="≼",wNe="≾",$Ne="⪯",CNe="⪹",ANe="⪵",SNe="⋨",TNe="⪯",DNe="⪳",NNe="≾",ONe="′",INe="″",LNe="ℙ",FNe="⪹",RNe="⪵",MNe="⋨",qNe="∏",PNe="∏",BNe="⌮",VNe="⌒",jNe="⌓",UNe="∝",zNe="∝",HNe="∷",GNe="∝",WNe="≾",QNe="⊰",YNe="𝒫",JNe="𝓅",ZNe="Ψ",XNe="ψ",KNe=" ",eOe="𝔔",tOe="𝔮",nOe="⨌",rOe="𝕢",oOe="ℚ",iOe="⁗",sOe="𝒬",aOe="𝓆",cOe="ℍ",lOe="⨖",uOe="?",fOe="≟",pOe='"',dOe='"',hOe="⇛",mOe="∽̱",vOe="Ŕ",gOe="ŕ",yOe="√",bOe="⦳",EOe="⟩",_Oe="⟫",kOe="⦒",xOe="⦥",wOe="⟩",$Oe="»",COe="⥵",AOe="⇥",SOe="⤠",TOe="⤳",DOe="→",NOe="↠",OOe="⇒",IOe="⤞",LOe="↪",FOe="↬",ROe="⥅",MOe="⥴",qOe="⤖",POe="↣",BOe="↝",VOe="⤚",jOe="⤜",UOe="∶",zOe="ℚ",HOe="⤍",GOe="⤏",WOe="⤐",QOe="❳",YOe="}",JOe="]",ZOe="⦌",XOe="⦎",KOe="⦐",eIe="Ř",tIe="ř",nIe="Ŗ",rIe="ŗ",oIe="⌉",iIe="}",sIe="Р",aIe="р",cIe="⤷",lIe="⥩",uIe="”",fIe="”",pIe="↳",dIe="ℜ",hIe="ℛ",mIe="ℜ",vIe="ℝ",gIe="ℜ",yIe="▭",bIe="®",EIe="®",_Ie="∋",kIe="⇋",xIe="⥯",wIe="⥽",$Ie="⌋",CIe="𝔯",AIe="ℜ",SIe="⥤",TIe="⇁",DIe="⇀",NIe="⥬",OIe="Ρ",IIe="ρ",LIe="ϱ",FIe="⟩",RIe="⇥",MIe="→",qIe="→",PIe="⇒",BIe="⇄",VIe="↣",jIe="⌉",UIe="⟧",zIe="⥝",HIe="⥕",GIe="⇂",WIe="⌋",QIe="⇁",YIe="⇀",JIe="⇄",ZIe="⇌",XIe="⇉",KIe="↝",eLe="↦",tLe="⊢",nLe="⥛",rLe="⋌",oLe="⧐",iLe="⊳",sLe="⊵",aLe="⥏",cLe="⥜",lLe="⥔",uLe="↾",fLe="⥓",pLe="⇀",dLe="˚",hLe="≓",mLe="⇄",vLe="⇌",gLe="‏",yLe="⎱",bLe="⎱",ELe="⫮",_Le="⟭",kLe="⇾",xLe="⟧",wLe="⦆",$Le="𝕣",CLe="ℝ",ALe="⨮",SLe="⨵",TLe="⥰",DLe=")",NLe="⦔",OLe="⨒",ILe="⇉",LLe="⇛",FLe="›",RLe="𝓇",MLe="ℛ",qLe="↱",PLe="↱",BLe="]",VLe="’",jLe="’",ULe="⋌",zLe="⋊",HLe="▹",GLe="⊵",WLe="▸",QLe="⧎",YLe="⧴",JLe="⥨",ZLe="℞",XLe="Ś",KLe="ś",eFe="‚",tFe="⪸",nFe="Š",rFe="š",oFe="⪼",iFe="≻",sFe="≽",aFe="⪰",cFe="⪴",lFe="Ş",uFe="ş",fFe="Ŝ",pFe="ŝ",dFe="⪺",hFe="⪶",mFe="⋩",vFe="⨓",gFe="≿",yFe="С",bFe="с",EFe="⊡",_Fe="⋅",kFe="⩦",xFe="⤥",wFe="↘",$Fe="⇘",CFe="↘",AFe="§",SFe=";",TFe="⤩",DFe="∖",NFe="∖",OFe="✶",IFe="𝔖",LFe="𝔰",FFe="⌢",RFe="♯",MFe="Щ",qFe="щ",PFe="Ш",BFe="ш",VFe="↓",jFe="←",UFe="∣",zFe="∥",HFe="→",GFe="↑",WFe="­",QFe="Σ",YFe="σ",JFe="ς",ZFe="ς",XFe="∼",KFe="⩪",eRe="≃",tRe="≃",nRe="⪞",rRe="⪠",oRe="⪝",iRe="⪟",sRe="≆",aRe="⨤",cRe="⥲",lRe="←",uRe="∘",fRe="∖",pRe="⨳",dRe="⧤",hRe="∣",mRe="⌣",vRe="⪪",gRe="⪬",yRe="⪬︀",bRe="Ь",ERe="ь",_Re="⌿",kRe="⧄",xRe="/",wRe="𝕊",$Re="𝕤",CRe="♠",ARe="♠",SRe="∥",TRe="⊓",DRe="⊓︀",NRe="⊔",ORe="⊔︀",IRe="√",LRe="⊏",FRe="⊑",RRe="⊏",MRe="⊑",qRe="⊐",PRe="⊒",BRe="⊐",VRe="⊒",jRe="□",URe="□",zRe="⊓",HRe="⊏",GRe="⊑",WRe="⊐",QRe="⊒",YRe="⊔",JRe="▪",ZRe="□",XRe="▪",KRe="→",eMe="𝒮",tMe="𝓈",nMe="∖",rMe="⌣",oMe="⋆",iMe="⋆",sMe="☆",aMe="★",cMe="ϵ",lMe="ϕ",uMe="¯",fMe="⊂",pMe="⋐",dMe="⪽",hMe="⫅",mMe="⊆",vMe="⫃",gMe="⫁",yMe="⫋",bMe="⊊",EMe="⪿",_Me="⥹",kMe="⊂",xMe="⋐",wMe="⊆",$Me="⫅",CMe="⊆",AMe="⊊",SMe="⫋",TMe="⫇",DMe="⫕",NMe="⫓",OMe="⪸",IMe="≻",LMe="≽",FMe="≻",RMe="⪰",MMe="≽",qMe="≿",PMe="⪰",BMe="⪺",VMe="⪶",jMe="⋩",UMe="≿",zMe="∋",HMe="∑",GMe="∑",WMe="♪",QMe="¹",YMe="²",JMe="³",ZMe="⊃",XMe="⋑",KMe="⪾",eqe="⫘",tqe="⫆",nqe="⊇",rqe="⫄",oqe="⊃",iqe="⊇",sqe="⟉",aqe="⫗",cqe="⥻",lqe="⫂",uqe="⫌",fqe="⊋",pqe="⫀",dqe="⊃",hqe="⋑",mqe="⊇",vqe="⫆",gqe="⊋",yqe="⫌",bqe="⫈",Eqe="⫔",_qe="⫖",kqe="⤦",xqe="↙",wqe="⇙",$qe="↙",Cqe="⤪",Aqe="ß",Sqe=" ",Tqe="⌖",Dqe="Τ",Nqe="τ",Oqe="⎴",Iqe="Ť",Lqe="ť",Fqe="Ţ",Rqe="ţ",Mqe="Т",qqe="т",Pqe="⃛",Bqe="⌕",Vqe="𝔗",jqe="𝔱",Uqe="∴",zqe="∴",Hqe="∴",Gqe="Θ",Wqe="θ",Qqe="ϑ",Yqe="ϑ",Jqe="≈",Zqe="∼",Xqe="  ",Kqe=" ",ePe=" ",tPe="≈",nPe="∼",rPe="Þ",oPe="þ",iPe="˜",sPe="∼",aPe="≃",cPe="≅",lPe="≈",uPe="⨱",fPe="⊠",pPe="×",dPe="⨰",hPe="∭",mPe="⤨",vPe="⌶",gPe="⫱",yPe="⊤",bPe="𝕋",EPe="𝕥",_Pe="⫚",kPe="⤩",xPe="‴",wPe="™",$Pe="™",CPe="▵",APe="▿",SPe="◃",TPe="⊴",DPe="≜",NPe="▹",OPe="⊵",IPe="◬",LPe="≜",FPe="⨺",RPe="⃛",MPe="⨹",qPe="⧍",PPe="⨻",BPe="⏢",VPe="𝒯",jPe="𝓉",UPe="Ц",zPe="ц",HPe="Ћ",GPe="ћ",WPe="Ŧ",QPe="ŧ",YPe="≬",JPe="↞",ZPe="↠",XPe="Ú",KPe="ú",e3e="↑",t3e="↟",n3e="⇑",r3e="⥉",o3e="Ў",i3e="ў",s3e="Ŭ",a3e="ŭ",c3e="Û",l3e="û",u3e="У",f3e="у",p3e="⇅",d3e="Ű",h3e="ű",m3e="⥮",v3e="⥾",g3e="𝔘",y3e="𝔲",b3e="Ù",E3e="ù",_3e="⥣",k3e="↿",x3e="↾",w3e="▀",$3e="⌜",C3e="⌜",A3e="⌏",S3e="◸",T3e="Ū",D3e="ū",N3e="¨",O3e="_",I3e="⏟",L3e="⎵",F3e="⏝",R3e="⋃",M3e="⊎",q3e="Ų",P3e="ų",B3e="𝕌",V3e="𝕦",j3e="⤒",U3e="↑",z3e="↑",H3e="⇑",G3e="⇅",W3e="↕",Q3e="↕",Y3e="⇕",J3e="⥮",Z3e="↿",X3e="↾",K3e="⊎",eBe="↖",tBe="↗",nBe="υ",rBe="ϒ",oBe="ϒ",iBe="Υ",sBe="υ",aBe="↥",cBe="⊥",lBe="⇈",uBe="⌝",fBe="⌝",pBe="⌎",dBe="Ů",hBe="ů",mBe="◹",vBe="𝒰",gBe="𝓊",yBe="⋰",bBe="Ũ",EBe="ũ",_Be="▵",kBe="▴",xBe="⇈",wBe="Ü",$Be="ü",CBe="⦧",ABe="⦜",SBe="ϵ",TBe="ϰ",DBe="∅",NBe="ϕ",OBe="ϖ",IBe="∝",LBe="↕",FBe="⇕",RBe="ϱ",MBe="ς",qBe="⊊︀",PBe="⫋︀",BBe="⊋︀",VBe="⫌︀",jBe="ϑ",UBe="⊲",zBe="⊳",HBe="⫨",GBe="⫫",WBe="⫩",QBe="В",YBe="в",JBe="⊢",ZBe="⊨",XBe="⊩",KBe="⊫",e5e="⫦",t5e="⊻",n5e="∨",r5e="⋁",o5e="≚",i5e="⋮",s5e="|",a5e="‖",c5e="|",l5e="‖",u5e="∣",f5e="|",p5e="❘",d5e="≀",h5e=" ",m5e="𝔙",v5e="𝔳",g5e="⊲",y5e="⊂⃒",b5e="⊃⃒",E5e="𝕍",_5e="𝕧",k5e="∝",x5e="⊳",w5e="𝒱",$5e="𝓋",C5e="⫋︀",A5e="⊊︀",S5e="⫌︀",T5e="⊋︀",D5e="⊪",N5e="⦚",O5e="Ŵ",I5e="ŵ",L5e="⩟",F5e="∧",R5e="⋀",M5e="≙",q5e="℘",P5e="𝔚",B5e="𝔴",V5e="𝕎",j5e="𝕨",U5e="℘",z5e="≀",H5e="≀",G5e="𝒲",W5e="𝓌",Q5e="⋂",Y5e="◯",J5e="⋃",Z5e="▽",X5e="𝔛",K5e="𝔵",eVe="⟷",tVe="⟺",nVe="Ξ",rVe="ξ",oVe="⟵",iVe="⟸",sVe="⟼",aVe="⋻",cVe="⨀",lVe="𝕏",uVe="𝕩",fVe="⨁",pVe="⨂",dVe="⟶",hVe="⟹",mVe="𝒳",vVe="𝓍",gVe="⨆",yVe="⨄",bVe="△",EVe="⋁",_Ve="⋀",kVe="Ý",xVe="ý",wVe="Я",$Ve="я",CVe="Ŷ",AVe="ŷ",SVe="Ы",TVe="ы",DVe="¥",NVe="𝔜",OVe="𝔶",IVe="Ї",LVe="ї",FVe="𝕐",RVe="𝕪",MVe="𝒴",qVe="𝓎",PVe="Ю",BVe="ю",VVe="ÿ",jVe="Ÿ",UVe="Ź",zVe="ź",HVe="Ž",GVe="ž",WVe="З",QVe="з",YVe="Ż",JVe="ż",ZVe="ℨ",XVe="​",KVe="Ζ",e9e="ζ",t9e="𝔷",n9e="ℨ",r9e="Ж",o9e="ж",i9e="⇝",s9e="𝕫",a9e="ℤ",c9e="𝒵",l9e="𝓏",u9e="‍",f9e="‌",p9e={Aacute:Yae,aacute:Jae,Abreve:Zae,abreve:Xae,ac:Kae,acd:ece,acE:tce,Acirc:nce,acirc:rce,acute:oce,Acy:ice,acy:sce,AElig:ace,aelig:cce,af:lce,Afr:uce,afr:fce,Agrave:pce,agrave:dce,alefsym:hce,aleph:mce,Alpha:vce,alpha:gce,Amacr:yce,amacr:bce,amalg:Ece,amp:_ce,AMP:kce,andand:xce,And:wce,and:$ce,andd:Cce,andslope:Ace,andv:Sce,ang:Tce,ange:Dce,angle:Nce,angmsdaa:Oce,angmsdab:Ice,angmsdac:Lce,angmsdad:Fce,angmsdae:Rce,angmsdaf:Mce,angmsdag:qce,angmsdah:Pce,angmsd:Bce,angrt:Vce,angrtvb:jce,angrtvbd:Uce,angsph:zce,angst:Hce,angzarr:Gce,Aogon:Wce,aogon:Qce,Aopf:Yce,aopf:Jce,apacir:Zce,ap:Xce,apE:Kce,ape:ele,apid:tle,apos:nle,ApplyFunction:rle,approx:ole,approxeq:ile,Aring:sle,aring:ale,Ascr:cle,ascr:lle,Assign:ule,ast:fle,asymp:ple,asympeq:dle,Atilde:hle,atilde:mle,Auml:vle,auml:gle,awconint:yle,awint:ble,backcong:Ele,backepsilon:_le,backprime:kle,backsim:xle,backsimeq:wle,Backslash:$le,Barv:Cle,barvee:Ale,barwed:Sle,Barwed:Tle,barwedge:Dle,bbrk:Nle,bbrktbrk:Ole,bcong:Ile,Bcy:Lle,bcy:Fle,bdquo:Rle,becaus:Mle,because:qle,Because:Ple,bemptyv:Ble,bepsi:Vle,bernou:jle,Bernoullis:Ule,Beta:zle,beta:Hle,beth:Gle,between:Wle,Bfr:Qle,bfr:Yle,bigcap:Jle,bigcirc:Zle,bigcup:Xle,bigodot:Kle,bigoplus:eue,bigotimes:tue,bigsqcup:nue,bigstar:rue,bigtriangledown:oue,bigtriangleup:iue,biguplus:sue,bigvee:aue,bigwedge:cue,bkarow:lue,blacklozenge:uue,blacksquare:fue,blacktriangle:pue,blacktriangledown:due,blacktriangleleft:hue,blacktriangleright:mue,blank:vue,blk12:gue,blk14:yue,blk34:bue,block:Eue,bne:_ue,bnequiv:kue,bNot:xue,bnot:wue,Bopf:$ue,bopf:Cue,bot:Aue,bottom:Sue,bowtie:Tue,boxbox:Due,boxdl:Nue,boxdL:Oue,boxDl:Iue,boxDL:Lue,boxdr:Fue,boxdR:Rue,boxDr:Mue,boxDR:que,boxh:Pue,boxH:Bue,boxhd:Vue,boxHd:jue,boxhD:Uue,boxHD:zue,boxhu:Hue,boxHu:Gue,boxhU:Wue,boxHU:Que,boxminus:Yue,boxplus:Jue,boxtimes:Zue,boxul:Xue,boxuL:Kue,boxUl:efe,boxUL:tfe,boxur:nfe,boxuR:rfe,boxUr:ofe,boxUR:ife,boxv:sfe,boxV:afe,boxvh:cfe,boxvH:lfe,boxVh:ufe,boxVH:ffe,boxvl:pfe,boxvL:dfe,boxVl:hfe,boxVL:mfe,boxvr:vfe,boxvR:gfe,boxVr:yfe,boxVR:bfe,bprime:Efe,breve:_fe,Breve:kfe,brvbar:xfe,bscr:wfe,Bscr:$fe,bsemi:Cfe,bsim:Afe,bsime:Sfe,bsolb:Tfe,bsol:Dfe,bsolhsub:Nfe,bull:Ofe,bullet:Ife,bump:Lfe,bumpE:Ffe,bumpe:Rfe,Bumpeq:Mfe,bumpeq:qfe,Cacute:Pfe,cacute:Bfe,capand:Vfe,capbrcup:jfe,capcap:Ufe,cap:zfe,Cap:Hfe,capcup:Gfe,capdot:Wfe,CapitalDifferentialD:Qfe,caps:Yfe,caret:Jfe,caron:Zfe,Cayleys:Xfe,ccaps:Kfe,Ccaron:epe,ccaron:tpe,Ccedil:npe,ccedil:rpe,Ccirc:ope,ccirc:ipe,Cconint:spe,ccups:ape,ccupssm:cpe,Cdot:lpe,cdot:upe,cedil:fpe,Cedilla:ppe,cemptyv:dpe,cent:hpe,centerdot:mpe,CenterDot:vpe,cfr:gpe,Cfr:ype,CHcy:bpe,chcy:Epe,check:_pe,checkmark:kpe,Chi:xpe,chi:wpe,circ:$pe,circeq:Cpe,circlearrowleft:Ape,circlearrowright:Spe,circledast:Tpe,circledcirc:Dpe,circleddash:Npe,CircleDot:Ope,circledR:Ipe,circledS:Lpe,CircleMinus:Fpe,CirclePlus:Rpe,CircleTimes:Mpe,cir:qpe,cirE:Ppe,cire:Bpe,cirfnint:Vpe,cirmid:jpe,cirscir:Upe,ClockwiseContourIntegral:zpe,CloseCurlyDoubleQuote:Hpe,CloseCurlyQuote:Gpe,clubs:Wpe,clubsuit:Qpe,colon:Ype,Colon:Jpe,Colone:Zpe,colone:Xpe,coloneq:Kpe,comma:ede,commat:tde,comp:nde,compfn:rde,complement:ode,complexes:ide,cong:sde,congdot:ade,Congruent:cde,conint:lde,Conint:ude,ContourIntegral:fde,copf:pde,Copf:dde,coprod:hde,Coproduct:mde,copy:vde,COPY:gde,copysr:yde,CounterClockwiseContourIntegral:bde,crarr:Ede,cross:_de,Cross:kde,Cscr:xde,cscr:wde,csub:$de,csube:Cde,csup:Ade,csupe:Sde,ctdot:Tde,cudarrl:Dde,cudarrr:Nde,cuepr:Ode,cuesc:Ide,cularr:Lde,cularrp:Fde,cupbrcap:Rde,cupcap:Mde,CupCap:qde,cup:Pde,Cup:Bde,cupcup:Vde,cupdot:jde,cupor:Ude,cups:zde,curarr:Hde,curarrm:Gde,curlyeqprec:Wde,curlyeqsucc:Qde,curlyvee:Yde,curlywedge:Jde,curren:Zde,curvearrowleft:Xde,curvearrowright:Kde,cuvee:ehe,cuwed:the,cwconint:nhe,cwint:rhe,cylcty:ohe,dagger:ihe,Dagger:she,daleth:ahe,darr:che,Darr:lhe,dArr:uhe,dash:fhe,Dashv:phe,dashv:dhe,dbkarow:hhe,dblac:mhe,Dcaron:vhe,dcaron:ghe,Dcy:yhe,dcy:bhe,ddagger:Ehe,ddarr:_he,DD:khe,dd:xhe,DDotrahd:whe,ddotseq:$he,deg:Che,Del:Ahe,Delta:She,delta:The,demptyv:Dhe,dfisht:Nhe,Dfr:Ohe,dfr:Ihe,dHar:Lhe,dharl:Fhe,dharr:Rhe,DiacriticalAcute:Mhe,DiacriticalDot:qhe,DiacriticalDoubleAcute:Phe,DiacriticalGrave:Bhe,DiacriticalTilde:Vhe,diam:jhe,diamond:Uhe,Diamond:zhe,diamondsuit:Hhe,diams:Ghe,die:Whe,DifferentialD:Qhe,digamma:Yhe,disin:Jhe,div:Zhe,divide:Xhe,divideontimes:Khe,divonx:eme,DJcy:tme,djcy:nme,dlcorn:rme,dlcrop:ome,dollar:ime,Dopf:sme,dopf:ame,Dot:cme,dot:lme,DotDot:ume,doteq:fme,doteqdot:pme,DotEqual:dme,dotminus:hme,dotplus:mme,dotsquare:vme,doublebarwedge:gme,DoubleContourIntegral:yme,DoubleDot:bme,DoubleDownArrow:Eme,DoubleLeftArrow:_me,DoubleLeftRightArrow:kme,DoubleLeftTee:xme,DoubleLongLeftArrow:wme,DoubleLongLeftRightArrow:$me,DoubleLongRightArrow:Cme,DoubleRightArrow:Ame,DoubleRightTee:Sme,DoubleUpArrow:Tme,DoubleUpDownArrow:Dme,DoubleVerticalBar:Nme,DownArrowBar:Ome,downarrow:Ime,DownArrow:Lme,Downarrow:Fme,DownArrowUpArrow:Rme,DownBreve:Mme,downdownarrows:qme,downharpoonleft:Pme,downharpoonright:Bme,DownLeftRightVector:Vme,DownLeftTeeVector:jme,DownLeftVectorBar:Ume,DownLeftVector:zme,DownRightTeeVector:Hme,DownRightVectorBar:Gme,DownRightVector:Wme,DownTeeArrow:Qme,DownTee:Yme,drbkarow:Jme,drcorn:Zme,drcrop:Xme,Dscr:Kme,dscr:eve,DScy:tve,dscy:nve,dsol:rve,Dstrok:ove,dstrok:ive,dtdot:sve,dtri:ave,dtrif:cve,duarr:lve,duhar:uve,dwangle:fve,DZcy:pve,dzcy:dve,dzigrarr:hve,Eacute:mve,eacute:vve,easter:gve,Ecaron:yve,ecaron:bve,Ecirc:Eve,ecirc:_ve,ecir:kve,ecolon:xve,Ecy:wve,ecy:$ve,eDDot:Cve,Edot:Ave,edot:Sve,eDot:Tve,ee:Dve,efDot:Nve,Efr:Ove,efr:Ive,eg:Lve,Egrave:Fve,egrave:Rve,egs:Mve,egsdot:qve,el:Pve,Element:Bve,elinters:Vve,ell:jve,els:Uve,elsdot:zve,Emacr:Hve,emacr:Gve,empty:Wve,emptyset:Qve,EmptySmallSquare:Yve,emptyv:Jve,EmptyVerySmallSquare:Zve,emsp13:Xve,emsp14:Kve,emsp:ege,ENG:tge,eng:nge,ensp:rge,Eogon:oge,eogon:ige,Eopf:sge,eopf:age,epar:cge,eparsl:lge,eplus:uge,epsi:fge,Epsilon:pge,epsilon:dge,epsiv:hge,eqcirc:mge,eqcolon:vge,eqsim:gge,eqslantgtr:yge,eqslantless:bge,Equal:Ege,equals:_ge,EqualTilde:kge,equest:xge,Equilibrium:wge,equiv:$ge,equivDD:Cge,eqvparsl:Age,erarr:Sge,erDot:Tge,escr:Dge,Escr:Nge,esdot:Oge,Esim:Ige,esim:Lge,Eta:Fge,eta:Rge,ETH:Mge,eth:qge,Euml:Pge,euml:Bge,euro:Vge,excl:jge,exist:Uge,Exists:zge,expectation:Hge,exponentiale:Gge,ExponentialE:Wge,fallingdotseq:Qge,Fcy:Yge,fcy:Jge,female:Zge,ffilig:Xge,fflig:Kge,ffllig:eye,Ffr:tye,ffr:nye,filig:rye,FilledSmallSquare:oye,FilledVerySmallSquare:iye,fjlig:sye,flat:aye,fllig:cye,fltns:lye,fnof:uye,Fopf:fye,fopf:pye,forall:dye,ForAll:hye,fork:mye,forkv:vye,Fouriertrf:gye,fpartint:yye,frac12:bye,frac13:Eye,frac14:_ye,frac15:kye,frac16:xye,frac18:wye,frac23:$ye,frac25:Cye,frac34:Aye,frac35:Sye,frac38:Tye,frac45:Dye,frac56:Nye,frac58:Oye,frac78:Iye,frasl:Lye,frown:Fye,fscr:Rye,Fscr:Mye,gacute:qye,Gamma:Pye,gamma:Bye,Gammad:Vye,gammad:jye,gap:Uye,Gbreve:zye,gbreve:Hye,Gcedil:Gye,Gcirc:Wye,gcirc:Qye,Gcy:Yye,gcy:Jye,Gdot:Zye,gdot:Xye,ge:Kye,gE:e1e,gEl:t1e,gel:n1e,geq:r1e,geqq:o1e,geqslant:i1e,gescc:s1e,ges:a1e,gesdot:c1e,gesdoto:l1e,gesdotol:u1e,gesl:f1e,gesles:p1e,Gfr:d1e,gfr:h1e,gg:m1e,Gg:v1e,ggg:g1e,gimel:y1e,GJcy:b1e,gjcy:E1e,gla:_1e,gl:k1e,glE:x1e,glj:w1e,gnap:$1e,gnapprox:C1e,gne:A1e,gnE:S1e,gneq:T1e,gneqq:D1e,gnsim:N1e,Gopf:O1e,gopf:I1e,grave:L1e,GreaterEqual:F1e,GreaterEqualLess:R1e,GreaterFullEqual:M1e,GreaterGreater:q1e,GreaterLess:P1e,GreaterSlantEqual:B1e,GreaterTilde:V1e,Gscr:j1e,gscr:U1e,gsim:z1e,gsime:H1e,gsiml:G1e,gtcc:W1e,gtcir:Q1e,gt:Y1e,GT:J1e,Gt:Z1e,gtdot:X1e,gtlPar:K1e,gtquest:e0e,gtrapprox:t0e,gtrarr:n0e,gtrdot:r0e,gtreqless:o0e,gtreqqless:i0e,gtrless:s0e,gtrsim:a0e,gvertneqq:c0e,gvnE:l0e,Hacek:u0e,hairsp:f0e,half:p0e,hamilt:d0e,HARDcy:h0e,hardcy:m0e,harrcir:v0e,harr:g0e,hArr:y0e,harrw:b0e,Hat:E0e,hbar:_0e,Hcirc:k0e,hcirc:x0e,hearts:w0e,heartsuit:$0e,hellip:C0e,hercon:A0e,hfr:S0e,Hfr:T0e,HilbertSpace:D0e,hksearow:N0e,hkswarow:O0e,hoarr:I0e,homtht:L0e,hookleftarrow:F0e,hookrightarrow:R0e,hopf:M0e,Hopf:q0e,horbar:P0e,HorizontalLine:B0e,hscr:V0e,Hscr:j0e,hslash:U0e,Hstrok:z0e,hstrok:H0e,HumpDownHump:G0e,HumpEqual:W0e,hybull:Q0e,hyphen:Y0e,Iacute:J0e,iacute:Z0e,ic:X0e,Icirc:K0e,icirc:ebe,Icy:tbe,icy:nbe,Idot:rbe,IEcy:obe,iecy:ibe,iexcl:sbe,iff:abe,ifr:cbe,Ifr:lbe,Igrave:ube,igrave:fbe,ii:pbe,iiiint:dbe,iiint:hbe,iinfin:mbe,iiota:vbe,IJlig:gbe,ijlig:ybe,Imacr:bbe,imacr:Ebe,image:_be,ImaginaryI:kbe,imagline:xbe,imagpart:wbe,imath:$be,Im:Cbe,imof:Abe,imped:Sbe,Implies:Tbe,incare:Dbe,in:"∈",infin:Nbe,infintie:Obe,inodot:Ibe,intcal:Lbe,int:Fbe,Int:Rbe,integers:Mbe,Integral:qbe,intercal:Pbe,Intersection:Bbe,intlarhk:Vbe,intprod:jbe,InvisibleComma:Ube,InvisibleTimes:zbe,IOcy:Hbe,iocy:Gbe,Iogon:Wbe,iogon:Qbe,Iopf:Ybe,iopf:Jbe,Iota:Zbe,iota:Xbe,iprod:Kbe,iquest:eEe,iscr:tEe,Iscr:nEe,isin:rEe,isindot:oEe,isinE:iEe,isins:sEe,isinsv:aEe,isinv:cEe,it:lEe,Itilde:uEe,itilde:fEe,Iukcy:pEe,iukcy:dEe,Iuml:hEe,iuml:mEe,Jcirc:vEe,jcirc:gEe,Jcy:yEe,jcy:bEe,Jfr:EEe,jfr:_Ee,jmath:kEe,Jopf:xEe,jopf:wEe,Jscr:$Ee,jscr:CEe,Jsercy:AEe,jsercy:SEe,Jukcy:TEe,jukcy:DEe,Kappa:NEe,kappa:OEe,kappav:IEe,Kcedil:LEe,kcedil:FEe,Kcy:REe,kcy:MEe,Kfr:qEe,kfr:PEe,kgreen:BEe,KHcy:VEe,khcy:jEe,KJcy:UEe,kjcy:zEe,Kopf:HEe,kopf:GEe,Kscr:WEe,kscr:QEe,lAarr:YEe,Lacute:JEe,lacute:ZEe,laemptyv:XEe,lagran:KEe,Lambda:e_e,lambda:t_e,lang:n_e,Lang:r_e,langd:o_e,langle:i_e,lap:s_e,Laplacetrf:a_e,laquo:c_e,larrb:l_e,larrbfs:u_e,larr:f_e,Larr:p_e,lArr:d_e,larrfs:h_e,larrhk:m_e,larrlp:v_e,larrpl:g_e,larrsim:y_e,larrtl:b_e,latail:E_e,lAtail:__e,lat:k_e,late:x_e,lates:w_e,lbarr:$_e,lBarr:C_e,lbbrk:A_e,lbrace:S_e,lbrack:T_e,lbrke:D_e,lbrksld:N_e,lbrkslu:O_e,Lcaron:I_e,lcaron:L_e,Lcedil:F_e,lcedil:R_e,lceil:M_e,lcub:q_e,Lcy:P_e,lcy:B_e,ldca:V_e,ldquo:j_e,ldquor:U_e,ldrdhar:z_e,ldrushar:H_e,ldsh:G_e,le:W_e,lE:Q_e,LeftAngleBracket:Y_e,LeftArrowBar:J_e,leftarrow:Z_e,LeftArrow:X_e,Leftarrow:K_e,LeftArrowRightArrow:e2e,leftarrowtail:t2e,LeftCeiling:n2e,LeftDoubleBracket:r2e,LeftDownTeeVector:o2e,LeftDownVectorBar:i2e,LeftDownVector:s2e,LeftFloor:a2e,leftharpoondown:c2e,leftharpoonup:l2e,leftleftarrows:u2e,leftrightarrow:f2e,LeftRightArrow:p2e,Leftrightarrow:d2e,leftrightarrows:h2e,leftrightharpoons:m2e,leftrightsquigarrow:v2e,LeftRightVector:g2e,LeftTeeArrow:y2e,LeftTee:b2e,LeftTeeVector:E2e,leftthreetimes:_2e,LeftTriangleBar:k2e,LeftTriangle:x2e,LeftTriangleEqual:w2e,LeftUpDownVector:$2e,LeftUpTeeVector:C2e,LeftUpVectorBar:A2e,LeftUpVector:S2e,LeftVectorBar:T2e,LeftVector:D2e,lEg:N2e,leg:O2e,leq:I2e,leqq:L2e,leqslant:F2e,lescc:R2e,les:M2e,lesdot:q2e,lesdoto:P2e,lesdotor:B2e,lesg:V2e,lesges:j2e,lessapprox:U2e,lessdot:z2e,lesseqgtr:H2e,lesseqqgtr:G2e,LessEqualGreater:W2e,LessFullEqual:Q2e,LessGreater:Y2e,lessgtr:J2e,LessLess:Z2e,lesssim:X2e,LessSlantEqual:K2e,LessTilde:eke,lfisht:tke,lfloor:nke,Lfr:rke,lfr:oke,lg:ike,lgE:ske,lHar:ake,lhard:cke,lharu:lke,lharul:uke,lhblk:fke,LJcy:pke,ljcy:dke,llarr:hke,ll:mke,Ll:vke,llcorner:gke,Lleftarrow:yke,llhard:bke,lltri:Eke,Lmidot:_ke,lmidot:kke,lmoustache:xke,lmoust:wke,lnap:$ke,lnapprox:Cke,lne:Ake,lnE:Ske,lneq:Tke,lneqq:Dke,lnsim:Nke,loang:Oke,loarr:Ike,lobrk:Lke,longleftarrow:Fke,LongLeftArrow:Rke,Longleftarrow:Mke,longleftrightarrow:qke,LongLeftRightArrow:Pke,Longleftrightarrow:Bke,longmapsto:Vke,longrightarrow:jke,LongRightArrow:Uke,Longrightarrow:zke,looparrowleft:Hke,looparrowright:Gke,lopar:Wke,Lopf:Qke,lopf:Yke,loplus:Jke,lotimes:Zke,lowast:Xke,lowbar:Kke,LowerLeftArrow:exe,LowerRightArrow:txe,loz:nxe,lozenge:rxe,lozf:oxe,lpar:ixe,lparlt:sxe,lrarr:axe,lrcorner:cxe,lrhar:lxe,lrhard:uxe,lrm:fxe,lrtri:pxe,lsaquo:dxe,lscr:hxe,Lscr:mxe,lsh:vxe,Lsh:gxe,lsim:yxe,lsime:bxe,lsimg:Exe,lsqb:_xe,lsquo:kxe,lsquor:xxe,Lstrok:wxe,lstrok:$xe,ltcc:Cxe,ltcir:Axe,lt:Sxe,LT:Txe,Lt:Dxe,ltdot:Nxe,lthree:Oxe,ltimes:Ixe,ltlarr:Lxe,ltquest:Fxe,ltri:Rxe,ltrie:Mxe,ltrif:qxe,ltrPar:Pxe,lurdshar:Bxe,luruhar:Vxe,lvertneqq:jxe,lvnE:Uxe,macr:zxe,male:Hxe,malt:Gxe,maltese:Wxe,Map:"⤅",map:Qxe,mapsto:Yxe,mapstodown:Jxe,mapstoleft:Zxe,mapstoup:Xxe,marker:Kxe,mcomma:ewe,Mcy:twe,mcy:nwe,mdash:rwe,mDDot:owe,measuredangle:iwe,MediumSpace:swe,Mellintrf:awe,Mfr:cwe,mfr:lwe,mho:uwe,micro:fwe,midast:pwe,midcir:dwe,mid:hwe,middot:mwe,minusb:vwe,minus:gwe,minusd:ywe,minusdu:bwe,MinusPlus:Ewe,mlcp:_we,mldr:kwe,mnplus:xwe,models:wwe,Mopf:$we,mopf:Cwe,mp:Awe,mscr:Swe,Mscr:Twe,mstpos:Dwe,Mu:Nwe,mu:Owe,multimap:Iwe,mumap:Lwe,nabla:Fwe,Nacute:Rwe,nacute:Mwe,nang:qwe,nap:Pwe,napE:Bwe,napid:Vwe,napos:jwe,napprox:Uwe,natural:zwe,naturals:Hwe,natur:Gwe,nbsp:Wwe,nbump:Qwe,nbumpe:Ywe,ncap:Jwe,Ncaron:Zwe,ncaron:Xwe,Ncedil:Kwe,ncedil:e$e,ncong:t$e,ncongdot:n$e,ncup:r$e,Ncy:o$e,ncy:i$e,ndash:s$e,nearhk:a$e,nearr:c$e,neArr:l$e,nearrow:u$e,ne:f$e,nedot:p$e,NegativeMediumSpace:d$e,NegativeThickSpace:h$e,NegativeThinSpace:m$e,NegativeVeryThinSpace:v$e,nequiv:g$e,nesear:y$e,nesim:b$e,NestedGreaterGreater:E$e,NestedLessLess:_$e,NewLine:k$e,nexist:x$e,nexists:w$e,Nfr:$$e,nfr:C$e,ngE:A$e,nge:S$e,ngeq:T$e,ngeqq:D$e,ngeqslant:N$e,nges:O$e,nGg:I$e,ngsim:L$e,nGt:F$e,ngt:R$e,ngtr:M$e,nGtv:q$e,nharr:P$e,nhArr:B$e,nhpar:V$e,ni:j$e,nis:U$e,nisd:z$e,niv:H$e,NJcy:G$e,njcy:W$e,nlarr:Q$e,nlArr:Y$e,nldr:J$e,nlE:Z$e,nle:X$e,nleftarrow:K$e,nLeftarrow:eCe,nleftrightarrow:tCe,nLeftrightarrow:nCe,nleq:rCe,nleqq:oCe,nleqslant:iCe,nles:sCe,nless:aCe,nLl:cCe,nlsim:lCe,nLt:uCe,nlt:fCe,nltri:pCe,nltrie:dCe,nLtv:hCe,nmid:mCe,NoBreak:vCe,NonBreakingSpace:gCe,nopf:yCe,Nopf:bCe,Not:ECe,not:_Ce,NotCongruent:kCe,NotCupCap:xCe,NotDoubleVerticalBar:wCe,NotElement:$Ce,NotEqual:CCe,NotEqualTilde:ACe,NotExists:SCe,NotGreater:TCe,NotGreaterEqual:DCe,NotGreaterFullEqual:NCe,NotGreaterGreater:OCe,NotGreaterLess:ICe,NotGreaterSlantEqual:LCe,NotGreaterTilde:FCe,NotHumpDownHump:RCe,NotHumpEqual:MCe,notin:qCe,notindot:PCe,notinE:BCe,notinva:VCe,notinvb:jCe,notinvc:UCe,NotLeftTriangleBar:zCe,NotLeftTriangle:HCe,NotLeftTriangleEqual:GCe,NotLess:WCe,NotLessEqual:QCe,NotLessGreater:YCe,NotLessLess:JCe,NotLessSlantEqual:ZCe,NotLessTilde:XCe,NotNestedGreaterGreater:KCe,NotNestedLessLess:eAe,notni:tAe,notniva:nAe,notnivb:rAe,notnivc:oAe,NotPrecedes:iAe,NotPrecedesEqual:sAe,NotPrecedesSlantEqual:aAe,NotReverseElement:cAe,NotRightTriangleBar:lAe,NotRightTriangle:uAe,NotRightTriangleEqual:fAe,NotSquareSubset:pAe,NotSquareSubsetEqual:dAe,NotSquareSuperset:hAe,NotSquareSupersetEqual:mAe,NotSubset:vAe,NotSubsetEqual:gAe,NotSucceeds:yAe,NotSucceedsEqual:bAe,NotSucceedsSlantEqual:EAe,NotSucceedsTilde:_Ae,NotSuperset:kAe,NotSupersetEqual:xAe,NotTilde:wAe,NotTildeEqual:$Ae,NotTildeFullEqual:CAe,NotTildeTilde:AAe,NotVerticalBar:SAe,nparallel:TAe,npar:DAe,nparsl:NAe,npart:OAe,npolint:IAe,npr:LAe,nprcue:FAe,nprec:RAe,npreceq:MAe,npre:qAe,nrarrc:PAe,nrarr:BAe,nrArr:VAe,nrarrw:jAe,nrightarrow:UAe,nRightarrow:zAe,nrtri:HAe,nrtrie:GAe,nsc:WAe,nsccue:QAe,nsce:YAe,Nscr:JAe,nscr:ZAe,nshortmid:XAe,nshortparallel:KAe,nsim:eSe,nsime:tSe,nsimeq:nSe,nsmid:rSe,nspar:oSe,nsqsube:iSe,nsqsupe:sSe,nsub:aSe,nsubE:cSe,nsube:lSe,nsubset:uSe,nsubseteq:fSe,nsubseteqq:pSe,nsucc:dSe,nsucceq:hSe,nsup:mSe,nsupE:vSe,nsupe:gSe,nsupset:ySe,nsupseteq:bSe,nsupseteqq:ESe,ntgl:_Se,Ntilde:kSe,ntilde:xSe,ntlg:wSe,ntriangleleft:$Se,ntrianglelefteq:CSe,ntriangleright:ASe,ntrianglerighteq:SSe,Nu:TSe,nu:DSe,num:NSe,numero:OSe,numsp:ISe,nvap:LSe,nvdash:FSe,nvDash:RSe,nVdash:MSe,nVDash:qSe,nvge:PSe,nvgt:BSe,nvHarr:VSe,nvinfin:jSe,nvlArr:USe,nvle:zSe,nvlt:HSe,nvltrie:GSe,nvrArr:WSe,nvrtrie:QSe,nvsim:YSe,nwarhk:JSe,nwarr:ZSe,nwArr:XSe,nwarrow:KSe,nwnear:eTe,Oacute:tTe,oacute:nTe,oast:rTe,Ocirc:oTe,ocirc:iTe,ocir:sTe,Ocy:aTe,ocy:cTe,odash:lTe,Odblac:uTe,odblac:fTe,odiv:pTe,odot:dTe,odsold:hTe,OElig:mTe,oelig:vTe,ofcir:gTe,Ofr:yTe,ofr:bTe,ogon:ETe,Ograve:_Te,ograve:kTe,ogt:xTe,ohbar:wTe,ohm:$Te,oint:CTe,olarr:ATe,olcir:STe,olcross:TTe,oline:DTe,olt:NTe,Omacr:OTe,omacr:ITe,Omega:LTe,omega:FTe,Omicron:RTe,omicron:MTe,omid:qTe,ominus:PTe,Oopf:BTe,oopf:VTe,opar:jTe,OpenCurlyDoubleQuote:UTe,OpenCurlyQuote:zTe,operp:HTe,oplus:GTe,orarr:WTe,Or:QTe,or:YTe,ord:JTe,order:ZTe,orderof:XTe,ordf:KTe,ordm:eDe,origof:tDe,oror:nDe,orslope:rDe,orv:oDe,oS:iDe,Oscr:sDe,oscr:aDe,Oslash:cDe,oslash:lDe,osol:uDe,Otilde:fDe,otilde:pDe,otimesas:dDe,Otimes:hDe,otimes:mDe,Ouml:vDe,ouml:gDe,ovbar:yDe,OverBar:bDe,OverBrace:EDe,OverBracket:_De,OverParenthesis:kDe,para:xDe,parallel:wDe,par:$De,parsim:CDe,parsl:ADe,part:SDe,PartialD:TDe,Pcy:DDe,pcy:NDe,percnt:ODe,period:IDe,permil:LDe,perp:FDe,pertenk:RDe,Pfr:MDe,pfr:qDe,Phi:PDe,phi:BDe,phiv:VDe,phmmat:jDe,phone:UDe,Pi:zDe,pi:HDe,pitchfork:GDe,piv:WDe,planck:QDe,planckh:YDe,plankv:JDe,plusacir:ZDe,plusb:XDe,pluscir:KDe,plus:eNe,plusdo:tNe,plusdu:nNe,pluse:rNe,PlusMinus:oNe,plusmn:iNe,plussim:sNe,plustwo:aNe,pm:cNe,Poincareplane:lNe,pointint:uNe,popf:fNe,Popf:pNe,pound:dNe,prap:hNe,Pr:mNe,pr:vNe,prcue:gNe,precapprox:yNe,prec:bNe,preccurlyeq:ENe,Precedes:_Ne,PrecedesEqual:kNe,PrecedesSlantEqual:xNe,PrecedesTilde:wNe,preceq:$Ne,precnapprox:CNe,precneqq:ANe,precnsim:SNe,pre:TNe,prE:DNe,precsim:NNe,prime:ONe,Prime:INe,primes:LNe,prnap:FNe,prnE:RNe,prnsim:MNe,prod:qNe,Product:PNe,profalar:BNe,profline:VNe,profsurf:jNe,prop:UNe,Proportional:zNe,Proportion:HNe,propto:GNe,prsim:WNe,prurel:QNe,Pscr:YNe,pscr:JNe,Psi:ZNe,psi:XNe,puncsp:KNe,Qfr:eOe,qfr:tOe,qint:nOe,qopf:rOe,Qopf:oOe,qprime:iOe,Qscr:sOe,qscr:aOe,quaternions:cOe,quatint:lOe,quest:uOe,questeq:fOe,quot:pOe,QUOT:dOe,rAarr:hOe,race:mOe,Racute:vOe,racute:gOe,radic:yOe,raemptyv:bOe,rang:EOe,Rang:_Oe,rangd:kOe,range:xOe,rangle:wOe,raquo:$Oe,rarrap:COe,rarrb:AOe,rarrbfs:SOe,rarrc:TOe,rarr:DOe,Rarr:NOe,rArr:OOe,rarrfs:IOe,rarrhk:LOe,rarrlp:FOe,rarrpl:ROe,rarrsim:MOe,Rarrtl:qOe,rarrtl:POe,rarrw:BOe,ratail:VOe,rAtail:jOe,ratio:UOe,rationals:zOe,rbarr:HOe,rBarr:GOe,RBarr:WOe,rbbrk:QOe,rbrace:YOe,rbrack:JOe,rbrke:ZOe,rbrksld:XOe,rbrkslu:KOe,Rcaron:eIe,rcaron:tIe,Rcedil:nIe,rcedil:rIe,rceil:oIe,rcub:iIe,Rcy:sIe,rcy:aIe,rdca:cIe,rdldhar:lIe,rdquo:uIe,rdquor:fIe,rdsh:pIe,real:dIe,realine:hIe,realpart:mIe,reals:vIe,Re:gIe,rect:yIe,reg:bIe,REG:EIe,ReverseElement:_Ie,ReverseEquilibrium:kIe,ReverseUpEquilibrium:xIe,rfisht:wIe,rfloor:$Ie,rfr:CIe,Rfr:AIe,rHar:SIe,rhard:TIe,rharu:DIe,rharul:NIe,Rho:OIe,rho:IIe,rhov:LIe,RightAngleBracket:FIe,RightArrowBar:RIe,rightarrow:MIe,RightArrow:qIe,Rightarrow:PIe,RightArrowLeftArrow:BIe,rightarrowtail:VIe,RightCeiling:jIe,RightDoubleBracket:UIe,RightDownTeeVector:zIe,RightDownVectorBar:HIe,RightDownVector:GIe,RightFloor:WIe,rightharpoondown:QIe,rightharpoonup:YIe,rightleftarrows:JIe,rightleftharpoons:ZIe,rightrightarrows:XIe,rightsquigarrow:KIe,RightTeeArrow:eLe,RightTee:tLe,RightTeeVector:nLe,rightthreetimes:rLe,RightTriangleBar:oLe,RightTriangle:iLe,RightTriangleEqual:sLe,RightUpDownVector:aLe,RightUpTeeVector:cLe,RightUpVectorBar:lLe,RightUpVector:uLe,RightVectorBar:fLe,RightVector:pLe,ring:dLe,risingdotseq:hLe,rlarr:mLe,rlhar:vLe,rlm:gLe,rmoustache:yLe,rmoust:bLe,rnmid:ELe,roang:_Le,roarr:kLe,robrk:xLe,ropar:wLe,ropf:$Le,Ropf:CLe,roplus:ALe,rotimes:SLe,RoundImplies:TLe,rpar:DLe,rpargt:NLe,rppolint:OLe,rrarr:ILe,Rrightarrow:LLe,rsaquo:FLe,rscr:RLe,Rscr:MLe,rsh:qLe,Rsh:PLe,rsqb:BLe,rsquo:VLe,rsquor:jLe,rthree:ULe,rtimes:zLe,rtri:HLe,rtrie:GLe,rtrif:WLe,rtriltri:QLe,RuleDelayed:YLe,ruluhar:JLe,rx:ZLe,Sacute:XLe,sacute:KLe,sbquo:eFe,scap:tFe,Scaron:nFe,scaron:rFe,Sc:oFe,sc:iFe,sccue:sFe,sce:aFe,scE:cFe,Scedil:lFe,scedil:uFe,Scirc:fFe,scirc:pFe,scnap:dFe,scnE:hFe,scnsim:mFe,scpolint:vFe,scsim:gFe,Scy:yFe,scy:bFe,sdotb:EFe,sdot:_Fe,sdote:kFe,searhk:xFe,searr:wFe,seArr:$Fe,searrow:CFe,sect:AFe,semi:SFe,seswar:TFe,setminus:DFe,setmn:NFe,sext:OFe,Sfr:IFe,sfr:LFe,sfrown:FFe,sharp:RFe,SHCHcy:MFe,shchcy:qFe,SHcy:PFe,shcy:BFe,ShortDownArrow:VFe,ShortLeftArrow:jFe,shortmid:UFe,shortparallel:zFe,ShortRightArrow:HFe,ShortUpArrow:GFe,shy:WFe,Sigma:QFe,sigma:YFe,sigmaf:JFe,sigmav:ZFe,sim:XFe,simdot:KFe,sime:eRe,simeq:tRe,simg:nRe,simgE:rRe,siml:oRe,simlE:iRe,simne:sRe,simplus:aRe,simrarr:cRe,slarr:lRe,SmallCircle:uRe,smallsetminus:fRe,smashp:pRe,smeparsl:dRe,smid:hRe,smile:mRe,smt:vRe,smte:gRe,smtes:yRe,SOFTcy:bRe,softcy:ERe,solbar:_Re,solb:kRe,sol:xRe,Sopf:wRe,sopf:$Re,spades:CRe,spadesuit:ARe,spar:SRe,sqcap:TRe,sqcaps:DRe,sqcup:NRe,sqcups:ORe,Sqrt:IRe,sqsub:LRe,sqsube:FRe,sqsubset:RRe,sqsubseteq:MRe,sqsup:qRe,sqsupe:PRe,sqsupset:BRe,sqsupseteq:VRe,square:jRe,Square:URe,SquareIntersection:zRe,SquareSubset:HRe,SquareSubsetEqual:GRe,SquareSuperset:WRe,SquareSupersetEqual:QRe,SquareUnion:YRe,squarf:JRe,squ:ZRe,squf:XRe,srarr:KRe,Sscr:eMe,sscr:tMe,ssetmn:nMe,ssmile:rMe,sstarf:oMe,Star:iMe,star:sMe,starf:aMe,straightepsilon:cMe,straightphi:lMe,strns:uMe,sub:fMe,Sub:pMe,subdot:dMe,subE:hMe,sube:mMe,subedot:vMe,submult:gMe,subnE:yMe,subne:bMe,subplus:EMe,subrarr:_Me,subset:kMe,Subset:xMe,subseteq:wMe,subseteqq:$Me,SubsetEqual:CMe,subsetneq:AMe,subsetneqq:SMe,subsim:TMe,subsub:DMe,subsup:NMe,succapprox:OMe,succ:IMe,succcurlyeq:LMe,Succeeds:FMe,SucceedsEqual:RMe,SucceedsSlantEqual:MMe,SucceedsTilde:qMe,succeq:PMe,succnapprox:BMe,succneqq:VMe,succnsim:jMe,succsim:UMe,SuchThat:zMe,sum:HMe,Sum:GMe,sung:WMe,sup1:QMe,sup2:YMe,sup3:JMe,sup:ZMe,Sup:XMe,supdot:KMe,supdsub:eqe,supE:tqe,supe:nqe,supedot:rqe,Superset:oqe,SupersetEqual:iqe,suphsol:sqe,suphsub:aqe,suplarr:cqe,supmult:lqe,supnE:uqe,supne:fqe,supplus:pqe,supset:dqe,Supset:hqe,supseteq:mqe,supseteqq:vqe,supsetneq:gqe,supsetneqq:yqe,supsim:bqe,supsub:Eqe,supsup:_qe,swarhk:kqe,swarr:xqe,swArr:wqe,swarrow:$qe,swnwar:Cqe,szlig:Aqe,Tab:Sqe,target:Tqe,Tau:Dqe,tau:Nqe,tbrk:Oqe,Tcaron:Iqe,tcaron:Lqe,Tcedil:Fqe,tcedil:Rqe,Tcy:Mqe,tcy:qqe,tdot:Pqe,telrec:Bqe,Tfr:Vqe,tfr:jqe,there4:Uqe,therefore:zqe,Therefore:Hqe,Theta:Gqe,theta:Wqe,thetasym:Qqe,thetav:Yqe,thickapprox:Jqe,thicksim:Zqe,ThickSpace:Xqe,ThinSpace:Kqe,thinsp:ePe,thkap:tPe,thksim:nPe,THORN:rPe,thorn:oPe,tilde:iPe,Tilde:sPe,TildeEqual:aPe,TildeFullEqual:cPe,TildeTilde:lPe,timesbar:uPe,timesb:fPe,times:pPe,timesd:dPe,tint:hPe,toea:mPe,topbot:vPe,topcir:gPe,top:yPe,Topf:bPe,topf:EPe,topfork:_Pe,tosa:kPe,tprime:xPe,trade:wPe,TRADE:$Pe,triangle:CPe,triangledown:APe,triangleleft:SPe,trianglelefteq:TPe,triangleq:DPe,triangleright:NPe,trianglerighteq:OPe,tridot:IPe,trie:LPe,triminus:FPe,TripleDot:RPe,triplus:MPe,trisb:qPe,tritime:PPe,trpezium:BPe,Tscr:VPe,tscr:jPe,TScy:UPe,tscy:zPe,TSHcy:HPe,tshcy:GPe,Tstrok:WPe,tstrok:QPe,twixt:YPe,twoheadleftarrow:JPe,twoheadrightarrow:ZPe,Uacute:XPe,uacute:KPe,uarr:e3e,Uarr:t3e,uArr:n3e,Uarrocir:r3e,Ubrcy:o3e,ubrcy:i3e,Ubreve:s3e,ubreve:a3e,Ucirc:c3e,ucirc:l3e,Ucy:u3e,ucy:f3e,udarr:p3e,Udblac:d3e,udblac:h3e,udhar:m3e,ufisht:v3e,Ufr:g3e,ufr:y3e,Ugrave:b3e,ugrave:E3e,uHar:_3e,uharl:k3e,uharr:x3e,uhblk:w3e,ulcorn:$3e,ulcorner:C3e,ulcrop:A3e,ultri:S3e,Umacr:T3e,umacr:D3e,uml:N3e,UnderBar:O3e,UnderBrace:I3e,UnderBracket:L3e,UnderParenthesis:F3e,Union:R3e,UnionPlus:M3e,Uogon:q3e,uogon:P3e,Uopf:B3e,uopf:V3e,UpArrowBar:j3e,uparrow:U3e,UpArrow:z3e,Uparrow:H3e,UpArrowDownArrow:G3e,updownarrow:W3e,UpDownArrow:Q3e,Updownarrow:Y3e,UpEquilibrium:J3e,upharpoonleft:Z3e,upharpoonright:X3e,uplus:K3e,UpperLeftArrow:eBe,UpperRightArrow:tBe,upsi:nBe,Upsi:rBe,upsih:oBe,Upsilon:iBe,upsilon:sBe,UpTeeArrow:aBe,UpTee:cBe,upuparrows:lBe,urcorn:uBe,urcorner:fBe,urcrop:pBe,Uring:dBe,uring:hBe,urtri:mBe,Uscr:vBe,uscr:gBe,utdot:yBe,Utilde:bBe,utilde:EBe,utri:_Be,utrif:kBe,uuarr:xBe,Uuml:wBe,uuml:$Be,uwangle:CBe,vangrt:ABe,varepsilon:SBe,varkappa:TBe,varnothing:DBe,varphi:NBe,varpi:OBe,varpropto:IBe,varr:LBe,vArr:FBe,varrho:RBe,varsigma:MBe,varsubsetneq:qBe,varsubsetneqq:PBe,varsupsetneq:BBe,varsupsetneqq:VBe,vartheta:jBe,vartriangleleft:UBe,vartriangleright:zBe,vBar:HBe,Vbar:GBe,vBarv:WBe,Vcy:QBe,vcy:YBe,vdash:JBe,vDash:ZBe,Vdash:XBe,VDash:KBe,Vdashl:e5e,veebar:t5e,vee:n5e,Vee:r5e,veeeq:o5e,vellip:i5e,verbar:s5e,Verbar:a5e,vert:c5e,Vert:l5e,VerticalBar:u5e,VerticalLine:f5e,VerticalSeparator:p5e,VerticalTilde:d5e,VeryThinSpace:h5e,Vfr:m5e,vfr:v5e,vltri:g5e,vnsub:y5e,vnsup:b5e,Vopf:E5e,vopf:_5e,vprop:k5e,vrtri:x5e,Vscr:w5e,vscr:$5e,vsubnE:C5e,vsubne:A5e,vsupnE:S5e,vsupne:T5e,Vvdash:D5e,vzigzag:N5e,Wcirc:O5e,wcirc:I5e,wedbar:L5e,wedge:F5e,Wedge:R5e,wedgeq:M5e,weierp:q5e,Wfr:P5e,wfr:B5e,Wopf:V5e,wopf:j5e,wp:U5e,wr:z5e,wreath:H5e,Wscr:G5e,wscr:W5e,xcap:Q5e,xcirc:Y5e,xcup:J5e,xdtri:Z5e,Xfr:X5e,xfr:K5e,xharr:eVe,xhArr:tVe,Xi:nVe,xi:rVe,xlarr:oVe,xlArr:iVe,xmap:sVe,xnis:aVe,xodot:cVe,Xopf:lVe,xopf:uVe,xoplus:fVe,xotime:pVe,xrarr:dVe,xrArr:hVe,Xscr:mVe,xscr:vVe,xsqcup:gVe,xuplus:yVe,xutri:bVe,xvee:EVe,xwedge:_Ve,Yacute:kVe,yacute:xVe,YAcy:wVe,yacy:$Ve,Ycirc:CVe,ycirc:AVe,Ycy:SVe,ycy:TVe,yen:DVe,Yfr:NVe,yfr:OVe,YIcy:IVe,yicy:LVe,Yopf:FVe,yopf:RVe,Yscr:MVe,yscr:qVe,YUcy:PVe,yucy:BVe,yuml:VVe,Yuml:jVe,Zacute:UVe,zacute:zVe,Zcaron:HVe,zcaron:GVe,Zcy:WVe,zcy:QVe,Zdot:YVe,zdot:JVe,zeetrf:ZVe,ZeroWidthSpace:XVe,Zeta:KVe,zeta:e9e,zfr:t9e,Zfr:n9e,ZHcy:r9e,zhcy:o9e,zigrarr:i9e,zopf:s9e,Zopf:a9e,Zscr:c9e,zscr:l9e,zwj:u9e,zwnj:f9e};var c_=p9e,Sh=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,gs={},Hy={};function d9e(t){var e,n,o=Hy[t];if(o)return o;for(o=Hy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function _u(t,e,n){var o,i,a,l,f,d="";for(typeof e!="string"&&(n=e,e=_u.defaultChars),typeof n>"u"&&(n=!0),f=d9e(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(l=t.charCodeAt(o+1),l>=56320&&l<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}_u.defaultChars=";/?:@&=+$,-_.!~*'()#";_u.componentChars="-_.!~*'()";var h9e=_u,Gy={};function m9e(t){var e,n,o=Gy[t];if(o)return o;for(o=Gy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function ku(t,e){var n;return typeof e!="string"&&(e=ku.defaultChars),n=m9e(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,l,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(l=parseInt(o.slice(i+1,i+3),16),l<128){y+=n[l];continue}if((l&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=l<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((l&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=l<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((l&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=l<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}ku.defaultChars=";/?:@&=+$,#";ku.componentChars="";var v9e=ku,g9e=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Fl(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var y9e=/^([a-z0-9.+-]+:)/i,b9e=/:[0-9]*$/,E9e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_9e=["<",">",'"',"`"," ","\r",`
269
- `," "],k9e=["{","}","|","\\","^","`"].concat(_9e),x9e=["'"].concat(k9e),Wy=["%","/","?",";","#"].concat(x9e),Qy=["/","?","#"],w9e=255,Yy=/^[+a-z0-9A-Z_-]{0,63}$/,$9e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jy={javascript:!0,"javascript:":!0},Zy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function C9e(t,e){if(t&&t instanceof Fl)return t;var n=new Fl;return n.parse(t,e),n}Fl.prototype.parse=function(t,e){var n,o,i,a,l,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=E9e.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=y9e.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l=f.substr(0,2)==="//",l&&!(h&&Jy[h])&&(f=f.substr(2),this.slashes=!0)),!Jy[h]&&(l||h&&!Zy[h])){var v=-1;for(n=0;n<Qy.length;n++)a=f.indexOf(Qy[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<Wy.length;n++)a=f.indexOf(Wy[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(Yy)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(Yy)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match($9e);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>w9e&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),Zy[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Fl.prototype.parseHost=function(t){var e=b9e.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var A9e=C9e;gs.encode=h9e;gs.decode=v9e;gs.format=g9e;gs.parse=A9e;var jo={},ep,Xy;function l_(){return Xy||(Xy=1,ep=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ep}var tp,Ky;function u_(){return Ky||(Ky=1,tp=/[\0-\x1F\x7F-\x9F]/),tp}var np,e1;function S9e(){return e1||(e1=1,np=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),np}var rp,t1;function f_(){return t1||(t1=1,rp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),rp}var n1;function T9e(){return n1||(n1=1,jo.Any=l_(),jo.Cc=u_(),jo.Cf=S9e(),jo.P=Sh,jo.Z=f_()),jo}(function(t){function e(F){return Object.prototype.toString.call(F)}function n(F){return e(F)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(F,x){return o.call(F,x)}function a(F){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){F[J]=j[J]})}}),F}function l(F,x,j){return[].concat(F.slice(0,x),j,F.slice(x+1))}function f(F){return!(F>=55296&&F<=57343||F>=64976&&F<=65007||(F&65535)===65535||(F&65535)===65534||F>=0&&F<=8||F===11||F>=14&&F<=31||F>=127&&F<=159||F>1114111)}function d(F){if(F>65535){F-=65536;var x=55296+(F>>10),j=56320+(F&1023);return String.fromCharCode(x,j)}return String.fromCharCode(F)}var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=c_;function C(F,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):F}function S(F){return F.indexOf("\\")<0?F:F.replace(h,"$1")}function N(F){return F.indexOf("\\")<0&&F.indexOf("&")<0?F:F.replace(y,function(x,j,J){return j||C(x,J)})}var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function V(F){return O[F]}function Y(F){return D.test(F)?F.replace(T,V):F}var P=/[.?*+^$[\]\\(){}|-]/g;function U(F){return F.replace(P,"\\$&")}function K(F){switch(F){case 9:case 32:return!0}return!1}function G(F){if(F>=8192&&F<=8202)return!0;switch(F){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Q=Sh;function re(F){return Q.test(F)}function _e(F){switch(F){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function H(F){return F=F.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(F=F.replace(/ẞ/g,"ß")),F.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=gs,t.lib.ucmicro=T9e(),t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=l,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=re,t.escapeRE=U,t.normalizeReference=H})(tt);var xu={},D9e=function(e,n,o){var i,a,l,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(l=e.src.charCodeAt(e.pos),l===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),l===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},r1=tt.unescapeAll,N9e=function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=r1(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=r1(e.slice(f,n)),d.lines=l,d.pos=n,d.ok=!0),d},O9e=tt.unescapeAll,I9e=function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=l,d.str=O9e(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?l++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&l++),n++}return d};xu.parseLinkLabel=D9e;xu.parseLinkDestination=N9e;xu.parseLinkTitle=I9e;var L9e=tt.assign,F9e=tt.unescapeAll,ri=tt.escapeHtml,Cr={};Cr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+ri(t[e].content)+"</code>"};Cr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+ri(t[e].content)+`</code></pre>
270
- `};Cr.fence=function(t,e,n,o,i){var a=t[e],l=a.info?F9e(a.info).trim():"",f="",d="",h,v,y,g,E;return l&&(y=l.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||ri(a.content):h=ri(a.content),h.indexOf("<pre")===0?h+`
267
+ `;var Mae=Object.defineProperty,qae=$((t,e)=>Mae(t,"name",{value:e,configurable:!0}),"__name$1");function is({ResponseTooltip:t,editorTheme:e=au,keyMap:n=cu}={}){const{fetchError:o,validationErrors:i}=Bn({nonNull:!0,caller:is}),{initialResponse:a,responseEditor:l,setResponseEditor:f}=rn({nonNull:!0,caller:is}),d=ie.useRef(null),h=ie.useRef(t);return ie.useEffect(()=>{h.current=t},[t]),ie.useEffect(()=>{let v=!0;return ui([Xe(()=>import("./foldgutter.es-CHLe3IFg.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(y){return y.f}),Xe(()=>import("./brace-fold.es-CHAwFrP-.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(y){return y.b}),Xe(()=>import("./dialog.es-CRh6VOLz.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(y){return y.d}),Xe(()=>import("./search.es-C20qP8Vq.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./searchcursor.es-Cy-3eaEN.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./jump-to-line.es-D7dd2At6.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(y){return y.j}),Xe(()=>import("./sublime.es-DPcVE8hJ.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./mode.es2-hCaXf0ad.js"),__vite__mapDeps([30,0,1,2,18]),import.meta.url),Xe(()=>import("./info-addon.es-BvWPiOWh.js"),__vite__mapDeps([24,0,1,2]),import.meta.url)],{useCommonAddons:!1}).then(y=>{if(!v)return;const g=document.createElement("div");y.registerHelper("info","graphql-results",(S,N,D,T)=>{const O=[],V=h.current;return V&&O.push(Qr(V,{pos:T})),ts.shouldRender(S)&&O.push(Qr(ts,{token:S},"image-preview")),O.length?(Uv.render(O,g),g):(Uv.unmountComponentAtNode(g),null)});const E=d.current;if(!E)return;const C=y(E,{value:a,lineWrapping:!0,readOnly:!0,theme:e,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:lu});f(C)}),()=>{v=!1}},[e,a,f]),ms(l,"keyMap",n),ie.useEffect(()=>{o&&(l==null||l.setValue(o)),i.length>0&&(l==null||l.setValue(Yo(i)))},[l,o,i]),d}$(is,"useResponseEditor");qae(is,"useResponseEditor");var Pae=Object.defineProperty,sa=$((t,e)=>Pae(t,"name",{value:e,configurable:!0}),"__name");function Wi({defaultSizeRelation:t=Bae,direction:e,initiallyHidden:n,onHiddenElementChange:o,sizeThresholdFirst:i=100,sizeThresholdSecond:a=100,storageKey:l}){const f=$o(),d=ie.useCallback(ti(500,T=>{f&&l&&f.set(l,T)}),[f,l]),[h,v]=ie.useState(()=>{const T=f&&l?f.get(l):null;return T===Yc||n==="first"?"first":T===Jc||n==="second"?"second":null}),y=ie.useCallback(T=>{v(T),o==null||o(T)},[o]),g=ie.useRef(null),E=ie.useRef(null),C=ie.useRef(null),S=ie.useRef(`${t}`);ie.useLayoutEffect(()=>{const T=f&&l&&f.get(l)||S.current,O=e==="horizontal"?"row":"column";g.current&&(g.current.style.display="flex",g.current.style.flexDirection=O,g.current.style.flex=T===Yc||T===Jc?S.current:T),C.current&&(C.current.style.display="flex",C.current.style.flexDirection=O,C.current.style.flex="1"),E.current&&(E.current.style.display="flex",E.current.style.flexDirection=O)},[e,f,l]);const N=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.left="-1000px",O.style.position="absolute",O.style.opacity="0",O.style.height="500px",O.style.width="500px",g.current)){const V=parseFloat(g.current.style.flex);(!Number.isFinite(V)||V<1)&&(g.current.style.flex="1"),g.current.style.flex}},[]),D=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.width="",O.style.height="",O.style.opacity="",O.style.position="",O.style.left="",g.current&&f&&l)){const V=f==null?void 0:f.get(l);V&&V!==Yc&&V!==Jc&&(g.current.style.flex=V)}},[f,l]);return ie.useLayoutEffect(()=>{h==="first"?N("first"):D("first"),h==="second"?N("second"):D("second")},[h,N,D]),ie.useEffect(()=>{if(!E.current||!g.current||!C.current)return;const T=E.current,O=g.current,V=O.parentElement,Y=e==="horizontal"?"clientX":"clientY",P=e==="horizontal"?"left":"top",U=e==="horizontal"?"right":"bottom",K=e==="horizontal"?"clientWidth":"clientHeight";function G(re){re.preventDefault();const _e=re[Y]-T.getBoundingClientRect()[P];function H(x){if(x.buttons===0)return L();const j=x[Y]-V.getBoundingClientRect()[P]-_e,J=V.getBoundingClientRect()[U]-x[Y]+_e-T[K];if(j<i)y("first"),d(Yc);else if(J<a)y("second"),d(Jc);else{y(null);const te=`${j/J}`;O.style.flex=te,d(te)}}$(H,"handleMouseMove"),sa(H,"handleMouseMove");function L(){document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",L)}$(L,"handleMouseUp"),sa(L,"handleMouseUp"),document.addEventListener("mousemove",H),document.addEventListener("mouseup",L)}$(G,"handleMouseDown"),sa(G,"handleMouseDown"),T.addEventListener("mousedown",G);function Q(){g.current&&(g.current.style.flex=S.current),d(S.current),y(null)}return $(Q,"reset"),sa(Q,"reset"),T.addEventListener("dblclick",Q),()=>{T.removeEventListener("mousedown",G),T.removeEventListener("dblclick",Q)}},[e,y,i,a,d]),ie.useMemo(()=>({dragBarRef:E,hiddenElement:h,firstRef:g,setHiddenElement:y,secondRef:C}),[h,y])}$(Wi,"useDragResize");sa(Wi,"useDragResize");const Bae=1,Yc="hide-first",Jc="hide-second",Vae=Object.freeze(Object.defineProperty({__proto__:null,EditorContext:$h,EditorContextProvider:Eu,ExecutionContext:ch,ExecutionContextProvider:rs,ExplorerContext:ph,ExplorerContextProvider:Qa,HistoryContext:ah,HistoryContextProvider:hu,ImagePreview:ts,SchemaContext:lh,SchemaContextProvider:Wa,StorageContext:oh,StorageContextProvider:pu,onHasCompletion:Ua,useAutoCompleteLeafs:ni,useCopyQuery:vs,useDragResize:Wi,useEditorContext:rn,useExecutionContext:hs,useExplorerContext:$r,useHeaderEditor:Br,useHistoryContext:Ha,useMergeQuery:Yr,usePrettifyEditors:Co,useQueryEditor:mr,useResponseEditor:is,useSchemaContext:Bn,useSelectHistoryItem:Ga,useStorageContext:$o,useVariableEditor:Vr},Symbol.toStringTag,{value:"Module"}));var zy=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function jae(){var t=rn({nonNull:!0}),e=t.queryEditor,n=t.setOperationName,o=hs({nonNull:!0}),i=o.isFetching,a=o.operationName,l=o.run,f=o.stop,d=zy(ie.useState(!1),2),h=d[0],v=d[1],y=zy(ie.useState(null),2),g=y[0],E=y[1],C=(e==null?void 0:e.operations)||[],S=C.length>1&&typeof a!="string";return F.createElement("div",{className:"execute-button-wrap"},F.createElement("button",{type:"button",className:"execute-button",onMouseDown:!i&&S&&!h?function(N){var D=!0,T=N.currentTarget;E(null),v(!0);var O=function(V){var Y;if(D&&V.target===T)D=!1;else{document.removeEventListener("mouseup",O),O=null;var P=V.currentTarget&&((Y=T.parentNode)===null||Y===void 0?void 0:Y.compareDocumentPosition(V.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;P||v(!1)}};document.addEventListener("mouseup",O)}:void 0,onClick:i||!S?function(){i?f():l()}:void 0,title:"Execute Query (Ctrl-Enter)"},F.createElement("svg",{width:"34",height:"34"},i?F.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):F.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),S&&h?F.createElement("ul",{className:"execute-options"},C.map(function(N,D){var T=N.name?N.name.value:"<Unnamed ".concat(N.operation,">");return F.createElement("li",{key:"".concat(T,"-").concat(D),className:N===g?"selected":void 0,onMouseOver:function(){return E(N)},onMouseOut:function(){return E(null)},onMouseUp:function(){var O;v(!1);var V=(O=N.name)===null||O===void 0?void 0:O.value;e&&V&&V!==e.operationName&&n(V),l()}},T)})):null)}var Uae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ho=function(t){Uae(e,t);function e(n){var o=t.call(this,n)||this;return o.handleClick=function(){try{o.props.onClick(),o.setState({error:null})}catch(i){if(i instanceof Error){o.setState({error:i});return}throw i}},o.state={error:null},o}return e.prototype.render=function(){var n=this.state.error;return F.createElement("button",{type:"button",className:"toolbar-button"+(n?" error":""),onClick:this.handleClick,title:n?n.message:this.props.title,"aria-invalid":n?"true":"false"},this.props.label)},e}(F.Component);function n_(t){var e=t.children;return F.createElement("div",{className:"toolbar-button-group"},e)}var zae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),r_=function(t){zae(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){Jp(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o=this.state.visible;return F.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Jp,ref:function(i){i&&(n._node=i)},title:this.props.title},this.props.label,F.createElement("svg",{width:"14",height:"8"},F.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),F.createElement("ul",{className:"toolbar-menu-items"+(o?" open":"")},this.props.children))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(n.preventDefault(),this.setState({visible:!1}),this._release())},e}(F.Component),o_=function(t){var e=t.onSelect,n=t.title,o=t.label;return F.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:Jp,onMouseUp:e,title:n},o)};function Jp(t){t.preventDefault()}function Ch(t){var e=mr(t);return F.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:e})}var Hae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function Ah(t){var e=t.active,n=Hae(t,["active"]),o=Vr(n);return F.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}var Gae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function i_(t){var e=t.active,n=Gae(t,["active"]),o=Br(n);return F.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}function s_(t){var e=is(t);return F.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e})}function In(t){var e=$r({nonNull:!0,caller:In}).push;if(!t.type)return null;var n=t.type;return Ie(n)?F.createElement(F.Fragment,null,F.createElement(In,{type:n.ofType}),"!"):at(n)?F.createElement(F.Fragment,null,"[",F.createElement(In,{type:n.ofType}),"]"):F.createElement("a",{className:"type-name",onClick:function(o){o.preventDefault(),e({name:n.name,def:n})},href:"#"},n.name)}var Wae=function(t){return t?Je(t):""};function a_(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?F.createElement("span",null," = ",F.createElement("span",{className:"arg-default-value"},Wae(jr(e.defaultValue,e.type)))):null}function Fl(t){var e=t.arg,n=t.showDefaultValue;return F.createElement("span",{className:"arg"},F.createElement("span",{className:"arg-name"},e.name),": ",F.createElement(In,{type:e.type}),n!==!1&&F.createElement(a_,{field:e}))}function Qae(t){var e=t.directive;return F.createElement("span",{className:"doc-category-item",id:e.name.value},"@",e.name.value)}var tt={};const Yae="Á",Jae="á",Zae="Ă",Xae="ă",Kae="∾",ece="∿",tce="∾̳",nce="Â",rce="â",oce="´",ice="А",sce="а",ace="Æ",cce="æ",lce="⁡",uce="𝔄",fce="𝔞",pce="À",dce="à",hce="ℵ",mce="ℵ",vce="Α",gce="α",yce="Ā",bce="ā",Ece="⨿",_ce="&",kce="&",xce="⩕",wce="⩓",$ce="∧",Cce="⩜",Ace="⩘",Sce="⩚",Tce="∠",Dce="⦤",Nce="∠",Oce="⦨",Ice="⦩",Fce="⦪",Lce="⦫",Rce="⦬",Mce="⦭",qce="⦮",Pce="⦯",Bce="∡",Vce="∟",jce="⊾",Uce="⦝",zce="∢",Hce="Å",Gce="⍼",Wce="Ą",Qce="ą",Yce="𝔸",Jce="𝕒",Zce="⩯",Xce="≈",Kce="⩰",ele="≊",tle="≋",nle="'",rle="⁡",ole="≈",ile="≊",sle="Å",ale="å",cle="𝒜",lle="𝒶",ule="≔",fle="*",ple="≈",dle="≍",hle="Ã",mle="ã",vle="Ä",gle="ä",yle="∳",ble="⨑",Ele="≌",_le="϶",kle="‵",xle="∽",wle="⋍",$le="∖",Cle="⫧",Ale="⊽",Sle="⌅",Tle="⌆",Dle="⌅",Nle="⎵",Ole="⎶",Ile="≌",Fle="Б",Lle="б",Rle="„",Mle="∵",qle="∵",Ple="∵",Ble="⦰",Vle="϶",jle="ℬ",Ule="ℬ",zle="Β",Hle="β",Gle="ℶ",Wle="≬",Qle="𝔅",Yle="𝔟",Jle="⋂",Zle="◯",Xle="⋃",Kle="⨀",eue="⨁",tue="⨂",nue="⨆",rue="★",oue="▽",iue="△",sue="⨄",aue="⋁",cue="⋀",lue="⤍",uue="⧫",fue="▪",pue="▴",due="▾",hue="◂",mue="▸",vue="␣",gue="▒",yue="░",bue="▓",Eue="█",_ue="=⃥",kue="≡⃥",xue="⫭",wue="⌐",$ue="𝔹",Cue="𝕓",Aue="⊥",Sue="⊥",Tue="⋈",Due="⧉",Nue="┐",Oue="╕",Iue="╖",Fue="╗",Lue="┌",Rue="╒",Mue="╓",que="╔",Pue="─",Bue="═",Vue="┬",jue="╤",Uue="╥",zue="╦",Hue="┴",Gue="╧",Wue="╨",Que="╩",Yue="⊟",Jue="⊞",Zue="⊠",Xue="┘",Kue="╛",efe="╜",tfe="╝",nfe="└",rfe="╘",ofe="╙",ife="╚",sfe="│",afe="║",cfe="┼",lfe="╪",ufe="╫",ffe="╬",pfe="┤",dfe="╡",hfe="╢",mfe="╣",vfe="├",gfe="╞",yfe="╟",bfe="╠",Efe="‵",_fe="˘",kfe="˘",xfe="¦",wfe="𝒷",$fe="ℬ",Cfe="⁏",Afe="∽",Sfe="⋍",Tfe="⧅",Dfe="\\",Nfe="⟈",Ofe="•",Ife="•",Ffe="≎",Lfe="⪮",Rfe="≏",Mfe="≎",qfe="≏",Pfe="Ć",Bfe="ć",Vfe="⩄",jfe="⩉",Ufe="⩋",zfe="∩",Hfe="⋒",Gfe="⩇",Wfe="⩀",Qfe="ⅅ",Yfe="∩︀",Jfe="⁁",Zfe="ˇ",Xfe="ℭ",Kfe="⩍",epe="Č",tpe="č",npe="Ç",rpe="ç",ope="Ĉ",ipe="ĉ",spe="∰",ape="⩌",cpe="⩐",lpe="Ċ",upe="ċ",fpe="¸",ppe="¸",dpe="⦲",hpe="¢",mpe="·",vpe="·",gpe="𝔠",ype="ℭ",bpe="Ч",Epe="ч",_pe="✓",kpe="✓",xpe="Χ",wpe="χ",$pe="ˆ",Cpe="≗",Ape="↺",Spe="↻",Tpe="⊛",Dpe="⊚",Npe="⊝",Ope="⊙",Ipe="®",Fpe="Ⓢ",Lpe="⊖",Rpe="⊕",Mpe="⊗",qpe="○",Ppe="⧃",Bpe="≗",Vpe="⨐",jpe="⫯",Upe="⧂",zpe="∲",Hpe="”",Gpe="’",Wpe="♣",Qpe="♣",Ype=":",Jpe="∷",Zpe="⩴",Xpe="≔",Kpe="≔",ede=",",tde="@",nde="∁",rde="∘",ode="∁",ide="ℂ",sde="≅",ade="⩭",cde="≡",lde="∮",ude="∯",fde="∮",pde="𝕔",dde="ℂ",hde="∐",mde="∐",vde="©",gde="©",yde="℗",bde="∳",Ede="↵",_de="✗",kde="⨯",xde="𝒞",wde="𝒸",$de="⫏",Cde="⫑",Ade="⫐",Sde="⫒",Tde="⋯",Dde="⤸",Nde="⤵",Ode="⋞",Ide="⋟",Fde="↶",Lde="⤽",Rde="⩈",Mde="⩆",qde="≍",Pde="∪",Bde="⋓",Vde="⩊",jde="⊍",Ude="⩅",zde="∪︀",Hde="↷",Gde="⤼",Wde="⋞",Qde="⋟",Yde="⋎",Jde="⋏",Zde="¤",Xde="↶",Kde="↷",ehe="⋎",the="⋏",nhe="∲",rhe="∱",ohe="⌭",ihe="†",she="‡",ahe="ℸ",che="↓",lhe="↡",uhe="⇓",fhe="‐",phe="⫤",dhe="⊣",hhe="⤏",mhe="˝",vhe="Ď",ghe="ď",yhe="Д",bhe="д",Ehe="‡",_he="⇊",khe="ⅅ",xhe="ⅆ",whe="⤑",$he="⩷",Che="°",Ahe="∇",She="Δ",The="δ",Dhe="⦱",Nhe="⥿",Ohe="𝔇",Ihe="𝔡",Fhe="⥥",Lhe="⇃",Rhe="⇂",Mhe="´",qhe="˙",Phe="˝",Bhe="`",Vhe="˜",jhe="⋄",Uhe="⋄",zhe="⋄",Hhe="♦",Ghe="♦",Whe="¨",Qhe="ⅆ",Yhe="ϝ",Jhe="⋲",Zhe="÷",Xhe="÷",Khe="⋇",eme="⋇",tme="Ђ",nme="ђ",rme="⌞",ome="⌍",ime="$",sme="𝔻",ame="𝕕",cme="¨",lme="˙",ume="⃜",fme="≐",pme="≑",dme="≐",hme="∸",mme="∔",vme="⊡",gme="⌆",yme="∯",bme="¨",Eme="⇓",_me="⇐",kme="⇔",xme="⫤",wme="⟸",$me="⟺",Cme="⟹",Ame="⇒",Sme="⊨",Tme="⇑",Dme="⇕",Nme="∥",Ome="⤓",Ime="↓",Fme="↓",Lme="⇓",Rme="⇵",Mme="̑",qme="⇊",Pme="⇃",Bme="⇂",Vme="⥐",jme="⥞",Ume="⥖",zme="↽",Hme="⥟",Gme="⥗",Wme="⇁",Qme="↧",Yme="⊤",Jme="⤐",Zme="⌟",Xme="⌌",Kme="𝒟",eve="𝒹",tve="Ѕ",nve="ѕ",rve="⧶",ove="Đ",ive="đ",sve="⋱",ave="▿",cve="▾",lve="⇵",uve="⥯",fve="⦦",pve="Џ",dve="џ",hve="⟿",mve="É",vve="é",gve="⩮",yve="Ě",bve="ě",Eve="Ê",_ve="ê",kve="≖",xve="≕",wve="Э",$ve="э",Cve="⩷",Ave="Ė",Sve="ė",Tve="≑",Dve="ⅇ",Nve="≒",Ove="𝔈",Ive="𝔢",Fve="⪚",Lve="È",Rve="è",Mve="⪖",qve="⪘",Pve="⪙",Bve="∈",Vve="⏧",jve="ℓ",Uve="⪕",zve="⪗",Hve="Ē",Gve="ē",Wve="∅",Qve="∅",Yve="◻",Jve="∅",Zve="▫",Xve=" ",Kve=" ",ege=" ",tge="Ŋ",nge="ŋ",rge=" ",oge="Ę",ige="ę",sge="𝔼",age="𝕖",cge="⋕",lge="⧣",uge="⩱",fge="ε",pge="Ε",dge="ε",hge="ϵ",mge="≖",vge="≕",gge="≂",yge="⪖",bge="⪕",Ege="⩵",_ge="=",kge="≂",xge="≟",wge="⇌",$ge="≡",Cge="⩸",Age="⧥",Sge="⥱",Tge="≓",Dge="ℯ",Nge="ℰ",Oge="≐",Ige="⩳",Fge="≂",Lge="Η",Rge="η",Mge="Ð",qge="ð",Pge="Ë",Bge="ë",Vge="€",jge="!",Uge="∃",zge="∃",Hge="ℰ",Gge="ⅇ",Wge="ⅇ",Qge="≒",Yge="Ф",Jge="ф",Zge="♀",Xge="ffi",Kge="ff",eye="ffl",tye="𝔉",nye="𝔣",rye="fi",oye="◼",iye="▪",sye="fj",aye="♭",cye="fl",lye="▱",uye="ƒ",fye="𝔽",pye="𝕗",dye="∀",hye="∀",mye="⋔",vye="⫙",gye="ℱ",yye="⨍",bye="½",Eye="⅓",_ye="¼",kye="⅕",xye="⅙",wye="⅛",$ye="⅔",Cye="⅖",Aye="¾",Sye="⅗",Tye="⅜",Dye="⅘",Nye="⅚",Oye="⅝",Iye="⅞",Fye="⁄",Lye="⌢",Rye="𝒻",Mye="ℱ",qye="ǵ",Pye="Γ",Bye="γ",Vye="Ϝ",jye="ϝ",Uye="⪆",zye="Ğ",Hye="ğ",Gye="Ģ",Wye="Ĝ",Qye="ĝ",Yye="Г",Jye="г",Zye="Ġ",Xye="ġ",Kye="≥",e1e="≧",t1e="⪌",n1e="⋛",r1e="≥",o1e="≧",i1e="⩾",s1e="⪩",a1e="⩾",c1e="⪀",l1e="⪂",u1e="⪄",f1e="⋛︀",p1e="⪔",d1e="𝔊",h1e="𝔤",m1e="≫",v1e="⋙",g1e="⋙",y1e="ℷ",b1e="Ѓ",E1e="ѓ",_1e="⪥",k1e="≷",x1e="⪒",w1e="⪤",$1e="⪊",C1e="⪊",A1e="⪈",S1e="≩",T1e="⪈",D1e="≩",N1e="⋧",O1e="𝔾",I1e="𝕘",F1e="`",L1e="≥",R1e="⋛",M1e="≧",q1e="⪢",P1e="≷",B1e="⩾",V1e="≳",j1e="𝒢",U1e="ℊ",z1e="≳",H1e="⪎",G1e="⪐",W1e="⪧",Q1e="⩺",Y1e=">",J1e=">",Z1e="≫",X1e="⋗",K1e="⦕",e0e="⩼",t0e="⪆",n0e="⥸",r0e="⋗",o0e="⋛",i0e="⪌",s0e="≷",a0e="≳",c0e="≩︀",l0e="≩︀",u0e="ˇ",f0e=" ",p0e="½",d0e="ℋ",h0e="Ъ",m0e="ъ",v0e="⥈",g0e="↔",y0e="⇔",b0e="↭",E0e="^",_0e="ℏ",k0e="Ĥ",x0e="ĥ",w0e="♥",$0e="♥",C0e="…",A0e="⊹",S0e="𝔥",T0e="ℌ",D0e="ℋ",N0e="⤥",O0e="⤦",I0e="⇿",F0e="∻",L0e="↩",R0e="↪",M0e="𝕙",q0e="ℍ",P0e="―",B0e="─",V0e="𝒽",j0e="ℋ",U0e="ℏ",z0e="Ħ",H0e="ħ",G0e="≎",W0e="≏",Q0e="⁃",Y0e="‐",J0e="Í",Z0e="í",X0e="⁣",K0e="Î",ebe="î",tbe="И",nbe="и",rbe="İ",obe="Е",ibe="е",sbe="¡",abe="⇔",cbe="𝔦",lbe="ℑ",ube="Ì",fbe="ì",pbe="ⅈ",dbe="⨌",hbe="∭",mbe="⧜",vbe="℩",gbe="IJ",ybe="ij",bbe="Ī",Ebe="ī",_be="ℑ",kbe="ⅈ",xbe="ℐ",wbe="ℑ",$be="ı",Cbe="ℑ",Abe="⊷",Sbe="Ƶ",Tbe="⇒",Dbe="℅",Nbe="∞",Obe="⧝",Ibe="ı",Fbe="⊺",Lbe="∫",Rbe="∬",Mbe="ℤ",qbe="∫",Pbe="⊺",Bbe="⋂",Vbe="⨗",jbe="⨼",Ube="⁣",zbe="⁢",Hbe="Ё",Gbe="ё",Wbe="Į",Qbe="į",Ybe="𝕀",Jbe="𝕚",Zbe="Ι",Xbe="ι",Kbe="⨼",eEe="¿",tEe="𝒾",nEe="ℐ",rEe="∈",oEe="⋵",iEe="⋹",sEe="⋴",aEe="⋳",cEe="∈",lEe="⁢",uEe="Ĩ",fEe="ĩ",pEe="І",dEe="і",hEe="Ï",mEe="ï",vEe="Ĵ",gEe="ĵ",yEe="Й",bEe="й",EEe="𝔍",_Ee="𝔧",kEe="ȷ",xEe="𝕁",wEe="𝕛",$Ee="𝒥",CEe="𝒿",AEe="Ј",SEe="ј",TEe="Є",DEe="є",NEe="Κ",OEe="κ",IEe="ϰ",FEe="Ķ",LEe="ķ",REe="К",MEe="к",qEe="𝔎",PEe="𝔨",BEe="ĸ",VEe="Х",jEe="х",UEe="Ќ",zEe="ќ",HEe="𝕂",GEe="𝕜",WEe="𝒦",QEe="𝓀",YEe="⇚",JEe="Ĺ",ZEe="ĺ",XEe="⦴",KEe="ℒ",e_e="Λ",t_e="λ",n_e="⟨",r_e="⟪",o_e="⦑",i_e="⟨",s_e="⪅",a_e="ℒ",c_e="«",l_e="⇤",u_e="⤟",f_e="←",p_e="↞",d_e="⇐",h_e="⤝",m_e="↩",v_e="↫",g_e="⤹",y_e="⥳",b_e="↢",E_e="⤙",__e="⤛",k_e="⪫",x_e="⪭",w_e="⪭︀",$_e="⤌",C_e="⤎",A_e="❲",S_e="{",T_e="[",D_e="⦋",N_e="⦏",O_e="⦍",I_e="Ľ",F_e="ľ",L_e="Ļ",R_e="ļ",M_e="⌈",q_e="{",P_e="Л",B_e="л",V_e="⤶",j_e="“",U_e="„",z_e="⥧",H_e="⥋",G_e="↲",W_e="≤",Q_e="≦",Y_e="⟨",J_e="⇤",Z_e="←",X_e="←",K_e="⇐",e2e="⇆",t2e="↢",n2e="⌈",r2e="⟦",o2e="⥡",i2e="⥙",s2e="⇃",a2e="⌊",c2e="↽",l2e="↼",u2e="⇇",f2e="↔",p2e="↔",d2e="⇔",h2e="⇆",m2e="⇋",v2e="↭",g2e="⥎",y2e="↤",b2e="⊣",E2e="⥚",_2e="⋋",k2e="⧏",x2e="⊲",w2e="⊴",$2e="⥑",C2e="⥠",A2e="⥘",S2e="↿",T2e="⥒",D2e="↼",N2e="⪋",O2e="⋚",I2e="≤",F2e="≦",L2e="⩽",R2e="⪨",M2e="⩽",q2e="⩿",P2e="⪁",B2e="⪃",V2e="⋚︀",j2e="⪓",U2e="⪅",z2e="⋖",H2e="⋚",G2e="⪋",W2e="⋚",Q2e="≦",Y2e="≶",J2e="≶",Z2e="⪡",X2e="≲",K2e="⩽",eke="≲",tke="⥼",nke="⌊",rke="𝔏",oke="𝔩",ike="≶",ske="⪑",ake="⥢",cke="↽",lke="↼",uke="⥪",fke="▄",pke="Љ",dke="љ",hke="⇇",mke="≪",vke="⋘",gke="⌞",yke="⇚",bke="⥫",Eke="◺",_ke="Ŀ",kke="ŀ",xke="⎰",wke="⎰",$ke="⪉",Cke="⪉",Ake="⪇",Ske="≨",Tke="⪇",Dke="≨",Nke="⋦",Oke="⟬",Ike="⇽",Fke="⟦",Lke="⟵",Rke="⟵",Mke="⟸",qke="⟷",Pke="⟷",Bke="⟺",Vke="⟼",jke="⟶",Uke="⟶",zke="⟹",Hke="↫",Gke="↬",Wke="⦅",Qke="𝕃",Yke="𝕝",Jke="⨭",Zke="⨴",Xke="∗",Kke="_",exe="↙",txe="↘",nxe="◊",rxe="◊",oxe="⧫",ixe="(",sxe="⦓",axe="⇆",cxe="⌟",lxe="⇋",uxe="⥭",fxe="‎",pxe="⊿",dxe="‹",hxe="𝓁",mxe="ℒ",vxe="↰",gxe="↰",yxe="≲",bxe="⪍",Exe="⪏",_xe="[",kxe="‘",xxe="‚",wxe="Ł",$xe="ł",Cxe="⪦",Axe="⩹",Sxe="<",Txe="<",Dxe="≪",Nxe="⋖",Oxe="⋋",Ixe="⋉",Fxe="⥶",Lxe="⩻",Rxe="◃",Mxe="⊴",qxe="◂",Pxe="⦖",Bxe="⥊",Vxe="⥦",jxe="≨︀",Uxe="≨︀",zxe="¯",Hxe="♂",Gxe="✠",Wxe="✠",Qxe="↦",Yxe="↦",Jxe="↧",Zxe="↤",Xxe="↥",Kxe="▮",ewe="⨩",twe="М",nwe="м",rwe="—",owe="∺",iwe="∡",swe=" ",awe="ℳ",cwe="𝔐",lwe="𝔪",uwe="℧",fwe="µ",pwe="*",dwe="⫰",hwe="∣",mwe="·",vwe="⊟",gwe="−",ywe="∸",bwe="⨪",Ewe="∓",_we="⫛",kwe="…",xwe="∓",wwe="⊧",$we="𝕄",Cwe="𝕞",Awe="∓",Swe="𝓂",Twe="ℳ",Dwe="∾",Nwe="Μ",Owe="μ",Iwe="⊸",Fwe="⊸",Lwe="∇",Rwe="Ń",Mwe="ń",qwe="∠⃒",Pwe="≉",Bwe="⩰̸",Vwe="≋̸",jwe="ʼn",Uwe="≉",zwe="♮",Hwe="ℕ",Gwe="♮",Wwe=" ",Qwe="≎̸",Ywe="≏̸",Jwe="⩃",Zwe="Ň",Xwe="ň",Kwe="Ņ",e$e="ņ",t$e="≇",n$e="⩭̸",r$e="⩂",o$e="Н",i$e="н",s$e="–",a$e="⤤",c$e="↗",l$e="⇗",u$e="↗",f$e="≠",p$e="≐̸",d$e="​",h$e="​",m$e="​",v$e="​",g$e="≢",y$e="⤨",b$e="≂̸",E$e="≫",_$e="≪",k$e=`
268
+ `,x$e="∄",w$e="∄",$$e="𝔑",C$e="𝔫",A$e="≧̸",S$e="≱",T$e="≱",D$e="≧̸",N$e="⩾̸",O$e="⩾̸",I$e="⋙̸",F$e="≵",L$e="≫⃒",R$e="≯",M$e="≯",q$e="≫̸",P$e="↮",B$e="⇎",V$e="⫲",j$e="∋",U$e="⋼",z$e="⋺",H$e="∋",G$e="Њ",W$e="њ",Q$e="↚",Y$e="⇍",J$e="‥",Z$e="≦̸",X$e="≰",K$e="↚",eCe="⇍",tCe="↮",nCe="⇎",rCe="≰",oCe="≦̸",iCe="⩽̸",sCe="⩽̸",aCe="≮",cCe="⋘̸",lCe="≴",uCe="≪⃒",fCe="≮",pCe="⋪",dCe="⋬",hCe="≪̸",mCe="∤",vCe="⁠",gCe=" ",yCe="𝕟",bCe="ℕ",ECe="⫬",_Ce="¬",kCe="≢",xCe="≭",wCe="∦",$Ce="∉",CCe="≠",ACe="≂̸",SCe="∄",TCe="≯",DCe="≱",NCe="≧̸",OCe="≫̸",ICe="≹",FCe="⩾̸",LCe="≵",RCe="≎̸",MCe="≏̸",qCe="∉",PCe="⋵̸",BCe="⋹̸",VCe="∉",jCe="⋷",UCe="⋶",zCe="⧏̸",HCe="⋪",GCe="⋬",WCe="≮",QCe="≰",YCe="≸",JCe="≪̸",ZCe="⩽̸",XCe="≴",KCe="⪢̸",eAe="⪡̸",tAe="∌",nAe="∌",rAe="⋾",oAe="⋽",iAe="⊀",sAe="⪯̸",aAe="⋠",cAe="∌",lAe="⧐̸",uAe="⋫",fAe="⋭",pAe="⊏̸",dAe="⋢",hAe="⊐̸",mAe="⋣",vAe="⊂⃒",gAe="⊈",yAe="⊁",bAe="⪰̸",EAe="⋡",_Ae="≿̸",kAe="⊃⃒",xAe="⊉",wAe="≁",$Ae="≄",CAe="≇",AAe="≉",SAe="∤",TAe="∦",DAe="∦",NAe="⫽⃥",OAe="∂̸",IAe="⨔",FAe="⊀",LAe="⋠",RAe="⊀",MAe="⪯̸",qAe="⪯̸",PAe="⤳̸",BAe="↛",VAe="⇏",jAe="↝̸",UAe="↛",zAe="⇏",HAe="⋫",GAe="⋭",WAe="⊁",QAe="⋡",YAe="⪰̸",JAe="𝒩",ZAe="𝓃",XAe="∤",KAe="∦",eSe="≁",tSe="≄",nSe="≄",rSe="∤",oSe="∦",iSe="⋢",sSe="⋣",aSe="⊄",cSe="⫅̸",lSe="⊈",uSe="⊂⃒",fSe="⊈",pSe="⫅̸",dSe="⊁",hSe="⪰̸",mSe="⊅",vSe="⫆̸",gSe="⊉",ySe="⊃⃒",bSe="⊉",ESe="⫆̸",_Se="≹",kSe="Ñ",xSe="ñ",wSe="≸",$Se="⋪",CSe="⋬",ASe="⋫",SSe="⋭",TSe="Ν",DSe="ν",NSe="#",OSe="№",ISe=" ",FSe="≍⃒",LSe="⊬",RSe="⊭",MSe="⊮",qSe="⊯",PSe="≥⃒",BSe=">⃒",VSe="⤄",jSe="⧞",USe="⤂",zSe="≤⃒",HSe="<⃒",GSe="⊴⃒",WSe="⤃",QSe="⊵⃒",YSe="∼⃒",JSe="⤣",ZSe="↖",XSe="⇖",KSe="↖",eTe="⤧",tTe="Ó",nTe="ó",rTe="⊛",oTe="Ô",iTe="ô",sTe="⊚",aTe="О",cTe="о",lTe="⊝",uTe="Ő",fTe="ő",pTe="⨸",dTe="⊙",hTe="⦼",mTe="Œ",vTe="œ",gTe="⦿",yTe="𝔒",bTe="𝔬",ETe="˛",_Te="Ò",kTe="ò",xTe="⧁",wTe="⦵",$Te="Ω",CTe="∮",ATe="↺",STe="⦾",TTe="⦻",DTe="‾",NTe="⧀",OTe="Ō",ITe="ō",FTe="Ω",LTe="ω",RTe="Ο",MTe="ο",qTe="⦶",PTe="⊖",BTe="𝕆",VTe="𝕠",jTe="⦷",UTe="“",zTe="‘",HTe="⦹",GTe="⊕",WTe="↻",QTe="⩔",YTe="∨",JTe="⩝",ZTe="ℴ",XTe="ℴ",KTe="ª",eDe="º",tDe="⊶",nDe="⩖",rDe="⩗",oDe="⩛",iDe="Ⓢ",sDe="𝒪",aDe="ℴ",cDe="Ø",lDe="ø",uDe="⊘",fDe="Õ",pDe="õ",dDe="⨶",hDe="⨷",mDe="⊗",vDe="Ö",gDe="ö",yDe="⌽",bDe="‾",EDe="⏞",_De="⎴",kDe="⏜",xDe="¶",wDe="∥",$De="∥",CDe="⫳",ADe="⫽",SDe="∂",TDe="∂",DDe="П",NDe="п",ODe="%",IDe=".",FDe="‰",LDe="⊥",RDe="‱",MDe="𝔓",qDe="𝔭",PDe="Φ",BDe="φ",VDe="ϕ",jDe="ℳ",UDe="☎",zDe="Π",HDe="π",GDe="⋔",WDe="ϖ",QDe="ℏ",YDe="ℎ",JDe="ℏ",ZDe="⨣",XDe="⊞",KDe="⨢",eNe="+",tNe="∔",nNe="⨥",rNe="⩲",oNe="±",iNe="±",sNe="⨦",aNe="⨧",cNe="±",lNe="ℌ",uNe="⨕",fNe="𝕡",pNe="ℙ",dNe="£",hNe="⪷",mNe="⪻",vNe="≺",gNe="≼",yNe="⪷",bNe="≺",ENe="≼",_Ne="≺",kNe="⪯",xNe="≼",wNe="≾",$Ne="⪯",CNe="⪹",ANe="⪵",SNe="⋨",TNe="⪯",DNe="⪳",NNe="≾",ONe="′",INe="″",FNe="ℙ",LNe="⪹",RNe="⪵",MNe="⋨",qNe="∏",PNe="∏",BNe="⌮",VNe="⌒",jNe="⌓",UNe="∝",zNe="∝",HNe="∷",GNe="∝",WNe="≾",QNe="⊰",YNe="𝒫",JNe="𝓅",ZNe="Ψ",XNe="ψ",KNe=" ",eOe="𝔔",tOe="𝔮",nOe="⨌",rOe="𝕢",oOe="ℚ",iOe="⁗",sOe="𝒬",aOe="𝓆",cOe="ℍ",lOe="⨖",uOe="?",fOe="≟",pOe='"',dOe='"',hOe="⇛",mOe="∽̱",vOe="Ŕ",gOe="ŕ",yOe="√",bOe="⦳",EOe="⟩",_Oe="⟫",kOe="⦒",xOe="⦥",wOe="⟩",$Oe="»",COe="⥵",AOe="⇥",SOe="⤠",TOe="⤳",DOe="→",NOe="↠",OOe="⇒",IOe="⤞",FOe="↪",LOe="↬",ROe="⥅",MOe="⥴",qOe="⤖",POe="↣",BOe="↝",VOe="⤚",jOe="⤜",UOe="∶",zOe="ℚ",HOe="⤍",GOe="⤏",WOe="⤐",QOe="❳",YOe="}",JOe="]",ZOe="⦌",XOe="⦎",KOe="⦐",eIe="Ř",tIe="ř",nIe="Ŗ",rIe="ŗ",oIe="⌉",iIe="}",sIe="Р",aIe="р",cIe="⤷",lIe="⥩",uIe="”",fIe="”",pIe="↳",dIe="ℜ",hIe="ℛ",mIe="ℜ",vIe="ℝ",gIe="ℜ",yIe="▭",bIe="®",EIe="®",_Ie="∋",kIe="⇋",xIe="⥯",wIe="⥽",$Ie="⌋",CIe="𝔯",AIe="ℜ",SIe="⥤",TIe="⇁",DIe="⇀",NIe="⥬",OIe="Ρ",IIe="ρ",FIe="ϱ",LIe="⟩",RIe="⇥",MIe="→",qIe="→",PIe="⇒",BIe="⇄",VIe="↣",jIe="⌉",UIe="⟧",zIe="⥝",HIe="⥕",GIe="⇂",WIe="⌋",QIe="⇁",YIe="⇀",JIe="⇄",ZIe="⇌",XIe="⇉",KIe="↝",eFe="↦",tFe="⊢",nFe="⥛",rFe="⋌",oFe="⧐",iFe="⊳",sFe="⊵",aFe="⥏",cFe="⥜",lFe="⥔",uFe="↾",fFe="⥓",pFe="⇀",dFe="˚",hFe="≓",mFe="⇄",vFe="⇌",gFe="‏",yFe="⎱",bFe="⎱",EFe="⫮",_Fe="⟭",kFe="⇾",xFe="⟧",wFe="⦆",$Fe="𝕣",CFe="ℝ",AFe="⨮",SFe="⨵",TFe="⥰",DFe=")",NFe="⦔",OFe="⨒",IFe="⇉",FFe="⇛",LFe="›",RFe="𝓇",MFe="ℛ",qFe="↱",PFe="↱",BFe="]",VFe="’",jFe="’",UFe="⋌",zFe="⋊",HFe="▹",GFe="⊵",WFe="▸",QFe="⧎",YFe="⧴",JFe="⥨",ZFe="℞",XFe="Ś",KFe="ś",eLe="‚",tLe="⪸",nLe="Š",rLe="š",oLe="⪼",iLe="≻",sLe="≽",aLe="⪰",cLe="⪴",lLe="Ş",uLe="ş",fLe="Ŝ",pLe="ŝ",dLe="⪺",hLe="⪶",mLe="⋩",vLe="⨓",gLe="≿",yLe="С",bLe="с",ELe="⊡",_Le="⋅",kLe="⩦",xLe="⤥",wLe="↘",$Le="⇘",CLe="↘",ALe="§",SLe=";",TLe="⤩",DLe="∖",NLe="∖",OLe="✶",ILe="𝔖",FLe="𝔰",LLe="⌢",RLe="♯",MLe="Щ",qLe="щ",PLe="Ш",BLe="ш",VLe="↓",jLe="←",ULe="∣",zLe="∥",HLe="→",GLe="↑",WLe="­",QLe="Σ",YLe="σ",JLe="ς",ZLe="ς",XLe="∼",KLe="⩪",eRe="≃",tRe="≃",nRe="⪞",rRe="⪠",oRe="⪝",iRe="⪟",sRe="≆",aRe="⨤",cRe="⥲",lRe="←",uRe="∘",fRe="∖",pRe="⨳",dRe="⧤",hRe="∣",mRe="⌣",vRe="⪪",gRe="⪬",yRe="⪬︀",bRe="Ь",ERe="ь",_Re="⌿",kRe="⧄",xRe="/",wRe="𝕊",$Re="𝕤",CRe="♠",ARe="♠",SRe="∥",TRe="⊓",DRe="⊓︀",NRe="⊔",ORe="⊔︀",IRe="√",FRe="⊏",LRe="⊑",RRe="⊏",MRe="⊑",qRe="⊐",PRe="⊒",BRe="⊐",VRe="⊒",jRe="□",URe="□",zRe="⊓",HRe="⊏",GRe="⊑",WRe="⊐",QRe="⊒",YRe="⊔",JRe="▪",ZRe="□",XRe="▪",KRe="→",eMe="𝒮",tMe="𝓈",nMe="∖",rMe="⌣",oMe="⋆",iMe="⋆",sMe="☆",aMe="★",cMe="ϵ",lMe="ϕ",uMe="¯",fMe="⊂",pMe="⋐",dMe="⪽",hMe="⫅",mMe="⊆",vMe="⫃",gMe="⫁",yMe="⫋",bMe="⊊",EMe="⪿",_Me="⥹",kMe="⊂",xMe="⋐",wMe="⊆",$Me="⫅",CMe="⊆",AMe="⊊",SMe="⫋",TMe="⫇",DMe="⫕",NMe="⫓",OMe="⪸",IMe="≻",FMe="≽",LMe="≻",RMe="⪰",MMe="≽",qMe="≿",PMe="⪰",BMe="⪺",VMe="⪶",jMe="⋩",UMe="≿",zMe="∋",HMe="∑",GMe="∑",WMe="♪",QMe="¹",YMe="²",JMe="³",ZMe="⊃",XMe="⋑",KMe="⪾",eqe="⫘",tqe="⫆",nqe="⊇",rqe="⫄",oqe="⊃",iqe="⊇",sqe="⟉",aqe="⫗",cqe="⥻",lqe="⫂",uqe="⫌",fqe="⊋",pqe="⫀",dqe="⊃",hqe="⋑",mqe="⊇",vqe="⫆",gqe="⊋",yqe="⫌",bqe="⫈",Eqe="⫔",_qe="⫖",kqe="⤦",xqe="↙",wqe="⇙",$qe="↙",Cqe="⤪",Aqe="ß",Sqe=" ",Tqe="⌖",Dqe="Τ",Nqe="τ",Oqe="⎴",Iqe="Ť",Fqe="ť",Lqe="Ţ",Rqe="ţ",Mqe="Т",qqe="т",Pqe="⃛",Bqe="⌕",Vqe="𝔗",jqe="𝔱",Uqe="∴",zqe="∴",Hqe="∴",Gqe="Θ",Wqe="θ",Qqe="ϑ",Yqe="ϑ",Jqe="≈",Zqe="∼",Xqe="  ",Kqe=" ",ePe=" ",tPe="≈",nPe="∼",rPe="Þ",oPe="þ",iPe="˜",sPe="∼",aPe="≃",cPe="≅",lPe="≈",uPe="⨱",fPe="⊠",pPe="×",dPe="⨰",hPe="∭",mPe="⤨",vPe="⌶",gPe="⫱",yPe="⊤",bPe="𝕋",EPe="𝕥",_Pe="⫚",kPe="⤩",xPe="‴",wPe="™",$Pe="™",CPe="▵",APe="▿",SPe="◃",TPe="⊴",DPe="≜",NPe="▹",OPe="⊵",IPe="◬",FPe="≜",LPe="⨺",RPe="⃛",MPe="⨹",qPe="⧍",PPe="⨻",BPe="⏢",VPe="𝒯",jPe="𝓉",UPe="Ц",zPe="ц",HPe="Ћ",GPe="ћ",WPe="Ŧ",QPe="ŧ",YPe="≬",JPe="↞",ZPe="↠",XPe="Ú",KPe="ú",e3e="↑",t3e="↟",n3e="⇑",r3e="⥉",o3e="Ў",i3e="ў",s3e="Ŭ",a3e="ŭ",c3e="Û",l3e="û",u3e="У",f3e="у",p3e="⇅",d3e="Ű",h3e="ű",m3e="⥮",v3e="⥾",g3e="𝔘",y3e="𝔲",b3e="Ù",E3e="ù",_3e="⥣",k3e="↿",x3e="↾",w3e="▀",$3e="⌜",C3e="⌜",A3e="⌏",S3e="◸",T3e="Ū",D3e="ū",N3e="¨",O3e="_",I3e="⏟",F3e="⎵",L3e="⏝",R3e="⋃",M3e="⊎",q3e="Ų",P3e="ų",B3e="𝕌",V3e="𝕦",j3e="⤒",U3e="↑",z3e="↑",H3e="⇑",G3e="⇅",W3e="↕",Q3e="↕",Y3e="⇕",J3e="⥮",Z3e="↿",X3e="↾",K3e="⊎",eBe="↖",tBe="↗",nBe="υ",rBe="ϒ",oBe="ϒ",iBe="Υ",sBe="υ",aBe="↥",cBe="⊥",lBe="⇈",uBe="⌝",fBe="⌝",pBe="⌎",dBe="Ů",hBe="ů",mBe="◹",vBe="𝒰",gBe="𝓊",yBe="⋰",bBe="Ũ",EBe="ũ",_Be="▵",kBe="▴",xBe="⇈",wBe="Ü",$Be="ü",CBe="⦧",ABe="⦜",SBe="ϵ",TBe="ϰ",DBe="∅",NBe="ϕ",OBe="ϖ",IBe="∝",FBe="↕",LBe="⇕",RBe="ϱ",MBe="ς",qBe="⊊︀",PBe="⫋︀",BBe="⊋︀",VBe="⫌︀",jBe="ϑ",UBe="⊲",zBe="⊳",HBe="⫨",GBe="⫫",WBe="⫩",QBe="В",YBe="в",JBe="⊢",ZBe="⊨",XBe="⊩",KBe="⊫",e5e="⫦",t5e="⊻",n5e="∨",r5e="⋁",o5e="≚",i5e="⋮",s5e="|",a5e="‖",c5e="|",l5e="‖",u5e="∣",f5e="|",p5e="❘",d5e="≀",h5e=" ",m5e="𝔙",v5e="𝔳",g5e="⊲",y5e="⊂⃒",b5e="⊃⃒",E5e="𝕍",_5e="𝕧",k5e="∝",x5e="⊳",w5e="𝒱",$5e="𝓋",C5e="⫋︀",A5e="⊊︀",S5e="⫌︀",T5e="⊋︀",D5e="⊪",N5e="⦚",O5e="Ŵ",I5e="ŵ",F5e="⩟",L5e="∧",R5e="⋀",M5e="≙",q5e="℘",P5e="𝔚",B5e="𝔴",V5e="𝕎",j5e="𝕨",U5e="℘",z5e="≀",H5e="≀",G5e="𝒲",W5e="𝓌",Q5e="⋂",Y5e="◯",J5e="⋃",Z5e="▽",X5e="𝔛",K5e="𝔵",eVe="⟷",tVe="⟺",nVe="Ξ",rVe="ξ",oVe="⟵",iVe="⟸",sVe="⟼",aVe="⋻",cVe="⨀",lVe="𝕏",uVe="𝕩",fVe="⨁",pVe="⨂",dVe="⟶",hVe="⟹",mVe="𝒳",vVe="𝓍",gVe="⨆",yVe="⨄",bVe="△",EVe="⋁",_Ve="⋀",kVe="Ý",xVe="ý",wVe="Я",$Ve="я",CVe="Ŷ",AVe="ŷ",SVe="Ы",TVe="ы",DVe="¥",NVe="𝔜",OVe="𝔶",IVe="Ї",FVe="ї",LVe="𝕐",RVe="𝕪",MVe="𝒴",qVe="𝓎",PVe="Ю",BVe="ю",VVe="ÿ",jVe="Ÿ",UVe="Ź",zVe="ź",HVe="Ž",GVe="ž",WVe="З",QVe="з",YVe="Ż",JVe="ż",ZVe="ℨ",XVe="​",KVe="Ζ",e9e="ζ",t9e="𝔷",n9e="ℨ",r9e="Ж",o9e="ж",i9e="⇝",s9e="𝕫",a9e="ℤ",c9e="𝒵",l9e="𝓏",u9e="‍",f9e="‌",p9e={Aacute:Yae,aacute:Jae,Abreve:Zae,abreve:Xae,ac:Kae,acd:ece,acE:tce,Acirc:nce,acirc:rce,acute:oce,Acy:ice,acy:sce,AElig:ace,aelig:cce,af:lce,Afr:uce,afr:fce,Agrave:pce,agrave:dce,alefsym:hce,aleph:mce,Alpha:vce,alpha:gce,Amacr:yce,amacr:bce,amalg:Ece,amp:_ce,AMP:kce,andand:xce,And:wce,and:$ce,andd:Cce,andslope:Ace,andv:Sce,ang:Tce,ange:Dce,angle:Nce,angmsdaa:Oce,angmsdab:Ice,angmsdac:Fce,angmsdad:Lce,angmsdae:Rce,angmsdaf:Mce,angmsdag:qce,angmsdah:Pce,angmsd:Bce,angrt:Vce,angrtvb:jce,angrtvbd:Uce,angsph:zce,angst:Hce,angzarr:Gce,Aogon:Wce,aogon:Qce,Aopf:Yce,aopf:Jce,apacir:Zce,ap:Xce,apE:Kce,ape:ele,apid:tle,apos:nle,ApplyFunction:rle,approx:ole,approxeq:ile,Aring:sle,aring:ale,Ascr:cle,ascr:lle,Assign:ule,ast:fle,asymp:ple,asympeq:dle,Atilde:hle,atilde:mle,Auml:vle,auml:gle,awconint:yle,awint:ble,backcong:Ele,backepsilon:_le,backprime:kle,backsim:xle,backsimeq:wle,Backslash:$le,Barv:Cle,barvee:Ale,barwed:Sle,Barwed:Tle,barwedge:Dle,bbrk:Nle,bbrktbrk:Ole,bcong:Ile,Bcy:Fle,bcy:Lle,bdquo:Rle,becaus:Mle,because:qle,Because:Ple,bemptyv:Ble,bepsi:Vle,bernou:jle,Bernoullis:Ule,Beta:zle,beta:Hle,beth:Gle,between:Wle,Bfr:Qle,bfr:Yle,bigcap:Jle,bigcirc:Zle,bigcup:Xle,bigodot:Kle,bigoplus:eue,bigotimes:tue,bigsqcup:nue,bigstar:rue,bigtriangledown:oue,bigtriangleup:iue,biguplus:sue,bigvee:aue,bigwedge:cue,bkarow:lue,blacklozenge:uue,blacksquare:fue,blacktriangle:pue,blacktriangledown:due,blacktriangleleft:hue,blacktriangleright:mue,blank:vue,blk12:gue,blk14:yue,blk34:bue,block:Eue,bne:_ue,bnequiv:kue,bNot:xue,bnot:wue,Bopf:$ue,bopf:Cue,bot:Aue,bottom:Sue,bowtie:Tue,boxbox:Due,boxdl:Nue,boxdL:Oue,boxDl:Iue,boxDL:Fue,boxdr:Lue,boxdR:Rue,boxDr:Mue,boxDR:que,boxh:Pue,boxH:Bue,boxhd:Vue,boxHd:jue,boxhD:Uue,boxHD:zue,boxhu:Hue,boxHu:Gue,boxhU:Wue,boxHU:Que,boxminus:Yue,boxplus:Jue,boxtimes:Zue,boxul:Xue,boxuL:Kue,boxUl:efe,boxUL:tfe,boxur:nfe,boxuR:rfe,boxUr:ofe,boxUR:ife,boxv:sfe,boxV:afe,boxvh:cfe,boxvH:lfe,boxVh:ufe,boxVH:ffe,boxvl:pfe,boxvL:dfe,boxVl:hfe,boxVL:mfe,boxvr:vfe,boxvR:gfe,boxVr:yfe,boxVR:bfe,bprime:Efe,breve:_fe,Breve:kfe,brvbar:xfe,bscr:wfe,Bscr:$fe,bsemi:Cfe,bsim:Afe,bsime:Sfe,bsolb:Tfe,bsol:Dfe,bsolhsub:Nfe,bull:Ofe,bullet:Ife,bump:Ffe,bumpE:Lfe,bumpe:Rfe,Bumpeq:Mfe,bumpeq:qfe,Cacute:Pfe,cacute:Bfe,capand:Vfe,capbrcup:jfe,capcap:Ufe,cap:zfe,Cap:Hfe,capcup:Gfe,capdot:Wfe,CapitalDifferentialD:Qfe,caps:Yfe,caret:Jfe,caron:Zfe,Cayleys:Xfe,ccaps:Kfe,Ccaron:epe,ccaron:tpe,Ccedil:npe,ccedil:rpe,Ccirc:ope,ccirc:ipe,Cconint:spe,ccups:ape,ccupssm:cpe,Cdot:lpe,cdot:upe,cedil:fpe,Cedilla:ppe,cemptyv:dpe,cent:hpe,centerdot:mpe,CenterDot:vpe,cfr:gpe,Cfr:ype,CHcy:bpe,chcy:Epe,check:_pe,checkmark:kpe,Chi:xpe,chi:wpe,circ:$pe,circeq:Cpe,circlearrowleft:Ape,circlearrowright:Spe,circledast:Tpe,circledcirc:Dpe,circleddash:Npe,CircleDot:Ope,circledR:Ipe,circledS:Fpe,CircleMinus:Lpe,CirclePlus:Rpe,CircleTimes:Mpe,cir:qpe,cirE:Ppe,cire:Bpe,cirfnint:Vpe,cirmid:jpe,cirscir:Upe,ClockwiseContourIntegral:zpe,CloseCurlyDoubleQuote:Hpe,CloseCurlyQuote:Gpe,clubs:Wpe,clubsuit:Qpe,colon:Ype,Colon:Jpe,Colone:Zpe,colone:Xpe,coloneq:Kpe,comma:ede,commat:tde,comp:nde,compfn:rde,complement:ode,complexes:ide,cong:sde,congdot:ade,Congruent:cde,conint:lde,Conint:ude,ContourIntegral:fde,copf:pde,Copf:dde,coprod:hde,Coproduct:mde,copy:vde,COPY:gde,copysr:yde,CounterClockwiseContourIntegral:bde,crarr:Ede,cross:_de,Cross:kde,Cscr:xde,cscr:wde,csub:$de,csube:Cde,csup:Ade,csupe:Sde,ctdot:Tde,cudarrl:Dde,cudarrr:Nde,cuepr:Ode,cuesc:Ide,cularr:Fde,cularrp:Lde,cupbrcap:Rde,cupcap:Mde,CupCap:qde,cup:Pde,Cup:Bde,cupcup:Vde,cupdot:jde,cupor:Ude,cups:zde,curarr:Hde,curarrm:Gde,curlyeqprec:Wde,curlyeqsucc:Qde,curlyvee:Yde,curlywedge:Jde,curren:Zde,curvearrowleft:Xde,curvearrowright:Kde,cuvee:ehe,cuwed:the,cwconint:nhe,cwint:rhe,cylcty:ohe,dagger:ihe,Dagger:she,daleth:ahe,darr:che,Darr:lhe,dArr:uhe,dash:fhe,Dashv:phe,dashv:dhe,dbkarow:hhe,dblac:mhe,Dcaron:vhe,dcaron:ghe,Dcy:yhe,dcy:bhe,ddagger:Ehe,ddarr:_he,DD:khe,dd:xhe,DDotrahd:whe,ddotseq:$he,deg:Che,Del:Ahe,Delta:She,delta:The,demptyv:Dhe,dfisht:Nhe,Dfr:Ohe,dfr:Ihe,dHar:Fhe,dharl:Lhe,dharr:Rhe,DiacriticalAcute:Mhe,DiacriticalDot:qhe,DiacriticalDoubleAcute:Phe,DiacriticalGrave:Bhe,DiacriticalTilde:Vhe,diam:jhe,diamond:Uhe,Diamond:zhe,diamondsuit:Hhe,diams:Ghe,die:Whe,DifferentialD:Qhe,digamma:Yhe,disin:Jhe,div:Zhe,divide:Xhe,divideontimes:Khe,divonx:eme,DJcy:tme,djcy:nme,dlcorn:rme,dlcrop:ome,dollar:ime,Dopf:sme,dopf:ame,Dot:cme,dot:lme,DotDot:ume,doteq:fme,doteqdot:pme,DotEqual:dme,dotminus:hme,dotplus:mme,dotsquare:vme,doublebarwedge:gme,DoubleContourIntegral:yme,DoubleDot:bme,DoubleDownArrow:Eme,DoubleLeftArrow:_me,DoubleLeftRightArrow:kme,DoubleLeftTee:xme,DoubleLongLeftArrow:wme,DoubleLongLeftRightArrow:$me,DoubleLongRightArrow:Cme,DoubleRightArrow:Ame,DoubleRightTee:Sme,DoubleUpArrow:Tme,DoubleUpDownArrow:Dme,DoubleVerticalBar:Nme,DownArrowBar:Ome,downarrow:Ime,DownArrow:Fme,Downarrow:Lme,DownArrowUpArrow:Rme,DownBreve:Mme,downdownarrows:qme,downharpoonleft:Pme,downharpoonright:Bme,DownLeftRightVector:Vme,DownLeftTeeVector:jme,DownLeftVectorBar:Ume,DownLeftVector:zme,DownRightTeeVector:Hme,DownRightVectorBar:Gme,DownRightVector:Wme,DownTeeArrow:Qme,DownTee:Yme,drbkarow:Jme,drcorn:Zme,drcrop:Xme,Dscr:Kme,dscr:eve,DScy:tve,dscy:nve,dsol:rve,Dstrok:ove,dstrok:ive,dtdot:sve,dtri:ave,dtrif:cve,duarr:lve,duhar:uve,dwangle:fve,DZcy:pve,dzcy:dve,dzigrarr:hve,Eacute:mve,eacute:vve,easter:gve,Ecaron:yve,ecaron:bve,Ecirc:Eve,ecirc:_ve,ecir:kve,ecolon:xve,Ecy:wve,ecy:$ve,eDDot:Cve,Edot:Ave,edot:Sve,eDot:Tve,ee:Dve,efDot:Nve,Efr:Ove,efr:Ive,eg:Fve,Egrave:Lve,egrave:Rve,egs:Mve,egsdot:qve,el:Pve,Element:Bve,elinters:Vve,ell:jve,els:Uve,elsdot:zve,Emacr:Hve,emacr:Gve,empty:Wve,emptyset:Qve,EmptySmallSquare:Yve,emptyv:Jve,EmptyVerySmallSquare:Zve,emsp13:Xve,emsp14:Kve,emsp:ege,ENG:tge,eng:nge,ensp:rge,Eogon:oge,eogon:ige,Eopf:sge,eopf:age,epar:cge,eparsl:lge,eplus:uge,epsi:fge,Epsilon:pge,epsilon:dge,epsiv:hge,eqcirc:mge,eqcolon:vge,eqsim:gge,eqslantgtr:yge,eqslantless:bge,Equal:Ege,equals:_ge,EqualTilde:kge,equest:xge,Equilibrium:wge,equiv:$ge,equivDD:Cge,eqvparsl:Age,erarr:Sge,erDot:Tge,escr:Dge,Escr:Nge,esdot:Oge,Esim:Ige,esim:Fge,Eta:Lge,eta:Rge,ETH:Mge,eth:qge,Euml:Pge,euml:Bge,euro:Vge,excl:jge,exist:Uge,Exists:zge,expectation:Hge,exponentiale:Gge,ExponentialE:Wge,fallingdotseq:Qge,Fcy:Yge,fcy:Jge,female:Zge,ffilig:Xge,fflig:Kge,ffllig:eye,Ffr:tye,ffr:nye,filig:rye,FilledSmallSquare:oye,FilledVerySmallSquare:iye,fjlig:sye,flat:aye,fllig:cye,fltns:lye,fnof:uye,Fopf:fye,fopf:pye,forall:dye,ForAll:hye,fork:mye,forkv:vye,Fouriertrf:gye,fpartint:yye,frac12:bye,frac13:Eye,frac14:_ye,frac15:kye,frac16:xye,frac18:wye,frac23:$ye,frac25:Cye,frac34:Aye,frac35:Sye,frac38:Tye,frac45:Dye,frac56:Nye,frac58:Oye,frac78:Iye,frasl:Fye,frown:Lye,fscr:Rye,Fscr:Mye,gacute:qye,Gamma:Pye,gamma:Bye,Gammad:Vye,gammad:jye,gap:Uye,Gbreve:zye,gbreve:Hye,Gcedil:Gye,Gcirc:Wye,gcirc:Qye,Gcy:Yye,gcy:Jye,Gdot:Zye,gdot:Xye,ge:Kye,gE:e1e,gEl:t1e,gel:n1e,geq:r1e,geqq:o1e,geqslant:i1e,gescc:s1e,ges:a1e,gesdot:c1e,gesdoto:l1e,gesdotol:u1e,gesl:f1e,gesles:p1e,Gfr:d1e,gfr:h1e,gg:m1e,Gg:v1e,ggg:g1e,gimel:y1e,GJcy:b1e,gjcy:E1e,gla:_1e,gl:k1e,glE:x1e,glj:w1e,gnap:$1e,gnapprox:C1e,gne:A1e,gnE:S1e,gneq:T1e,gneqq:D1e,gnsim:N1e,Gopf:O1e,gopf:I1e,grave:F1e,GreaterEqual:L1e,GreaterEqualLess:R1e,GreaterFullEqual:M1e,GreaterGreater:q1e,GreaterLess:P1e,GreaterSlantEqual:B1e,GreaterTilde:V1e,Gscr:j1e,gscr:U1e,gsim:z1e,gsime:H1e,gsiml:G1e,gtcc:W1e,gtcir:Q1e,gt:Y1e,GT:J1e,Gt:Z1e,gtdot:X1e,gtlPar:K1e,gtquest:e0e,gtrapprox:t0e,gtrarr:n0e,gtrdot:r0e,gtreqless:o0e,gtreqqless:i0e,gtrless:s0e,gtrsim:a0e,gvertneqq:c0e,gvnE:l0e,Hacek:u0e,hairsp:f0e,half:p0e,hamilt:d0e,HARDcy:h0e,hardcy:m0e,harrcir:v0e,harr:g0e,hArr:y0e,harrw:b0e,Hat:E0e,hbar:_0e,Hcirc:k0e,hcirc:x0e,hearts:w0e,heartsuit:$0e,hellip:C0e,hercon:A0e,hfr:S0e,Hfr:T0e,HilbertSpace:D0e,hksearow:N0e,hkswarow:O0e,hoarr:I0e,homtht:F0e,hookleftarrow:L0e,hookrightarrow:R0e,hopf:M0e,Hopf:q0e,horbar:P0e,HorizontalLine:B0e,hscr:V0e,Hscr:j0e,hslash:U0e,Hstrok:z0e,hstrok:H0e,HumpDownHump:G0e,HumpEqual:W0e,hybull:Q0e,hyphen:Y0e,Iacute:J0e,iacute:Z0e,ic:X0e,Icirc:K0e,icirc:ebe,Icy:tbe,icy:nbe,Idot:rbe,IEcy:obe,iecy:ibe,iexcl:sbe,iff:abe,ifr:cbe,Ifr:lbe,Igrave:ube,igrave:fbe,ii:pbe,iiiint:dbe,iiint:hbe,iinfin:mbe,iiota:vbe,IJlig:gbe,ijlig:ybe,Imacr:bbe,imacr:Ebe,image:_be,ImaginaryI:kbe,imagline:xbe,imagpart:wbe,imath:$be,Im:Cbe,imof:Abe,imped:Sbe,Implies:Tbe,incare:Dbe,in:"∈",infin:Nbe,infintie:Obe,inodot:Ibe,intcal:Fbe,int:Lbe,Int:Rbe,integers:Mbe,Integral:qbe,intercal:Pbe,Intersection:Bbe,intlarhk:Vbe,intprod:jbe,InvisibleComma:Ube,InvisibleTimes:zbe,IOcy:Hbe,iocy:Gbe,Iogon:Wbe,iogon:Qbe,Iopf:Ybe,iopf:Jbe,Iota:Zbe,iota:Xbe,iprod:Kbe,iquest:eEe,iscr:tEe,Iscr:nEe,isin:rEe,isindot:oEe,isinE:iEe,isins:sEe,isinsv:aEe,isinv:cEe,it:lEe,Itilde:uEe,itilde:fEe,Iukcy:pEe,iukcy:dEe,Iuml:hEe,iuml:mEe,Jcirc:vEe,jcirc:gEe,Jcy:yEe,jcy:bEe,Jfr:EEe,jfr:_Ee,jmath:kEe,Jopf:xEe,jopf:wEe,Jscr:$Ee,jscr:CEe,Jsercy:AEe,jsercy:SEe,Jukcy:TEe,jukcy:DEe,Kappa:NEe,kappa:OEe,kappav:IEe,Kcedil:FEe,kcedil:LEe,Kcy:REe,kcy:MEe,Kfr:qEe,kfr:PEe,kgreen:BEe,KHcy:VEe,khcy:jEe,KJcy:UEe,kjcy:zEe,Kopf:HEe,kopf:GEe,Kscr:WEe,kscr:QEe,lAarr:YEe,Lacute:JEe,lacute:ZEe,laemptyv:XEe,lagran:KEe,Lambda:e_e,lambda:t_e,lang:n_e,Lang:r_e,langd:o_e,langle:i_e,lap:s_e,Laplacetrf:a_e,laquo:c_e,larrb:l_e,larrbfs:u_e,larr:f_e,Larr:p_e,lArr:d_e,larrfs:h_e,larrhk:m_e,larrlp:v_e,larrpl:g_e,larrsim:y_e,larrtl:b_e,latail:E_e,lAtail:__e,lat:k_e,late:x_e,lates:w_e,lbarr:$_e,lBarr:C_e,lbbrk:A_e,lbrace:S_e,lbrack:T_e,lbrke:D_e,lbrksld:N_e,lbrkslu:O_e,Lcaron:I_e,lcaron:F_e,Lcedil:L_e,lcedil:R_e,lceil:M_e,lcub:q_e,Lcy:P_e,lcy:B_e,ldca:V_e,ldquo:j_e,ldquor:U_e,ldrdhar:z_e,ldrushar:H_e,ldsh:G_e,le:W_e,lE:Q_e,LeftAngleBracket:Y_e,LeftArrowBar:J_e,leftarrow:Z_e,LeftArrow:X_e,Leftarrow:K_e,LeftArrowRightArrow:e2e,leftarrowtail:t2e,LeftCeiling:n2e,LeftDoubleBracket:r2e,LeftDownTeeVector:o2e,LeftDownVectorBar:i2e,LeftDownVector:s2e,LeftFloor:a2e,leftharpoondown:c2e,leftharpoonup:l2e,leftleftarrows:u2e,leftrightarrow:f2e,LeftRightArrow:p2e,Leftrightarrow:d2e,leftrightarrows:h2e,leftrightharpoons:m2e,leftrightsquigarrow:v2e,LeftRightVector:g2e,LeftTeeArrow:y2e,LeftTee:b2e,LeftTeeVector:E2e,leftthreetimes:_2e,LeftTriangleBar:k2e,LeftTriangle:x2e,LeftTriangleEqual:w2e,LeftUpDownVector:$2e,LeftUpTeeVector:C2e,LeftUpVectorBar:A2e,LeftUpVector:S2e,LeftVectorBar:T2e,LeftVector:D2e,lEg:N2e,leg:O2e,leq:I2e,leqq:F2e,leqslant:L2e,lescc:R2e,les:M2e,lesdot:q2e,lesdoto:P2e,lesdotor:B2e,lesg:V2e,lesges:j2e,lessapprox:U2e,lessdot:z2e,lesseqgtr:H2e,lesseqqgtr:G2e,LessEqualGreater:W2e,LessFullEqual:Q2e,LessGreater:Y2e,lessgtr:J2e,LessLess:Z2e,lesssim:X2e,LessSlantEqual:K2e,LessTilde:eke,lfisht:tke,lfloor:nke,Lfr:rke,lfr:oke,lg:ike,lgE:ske,lHar:ake,lhard:cke,lharu:lke,lharul:uke,lhblk:fke,LJcy:pke,ljcy:dke,llarr:hke,ll:mke,Ll:vke,llcorner:gke,Lleftarrow:yke,llhard:bke,lltri:Eke,Lmidot:_ke,lmidot:kke,lmoustache:xke,lmoust:wke,lnap:$ke,lnapprox:Cke,lne:Ake,lnE:Ske,lneq:Tke,lneqq:Dke,lnsim:Nke,loang:Oke,loarr:Ike,lobrk:Fke,longleftarrow:Lke,LongLeftArrow:Rke,Longleftarrow:Mke,longleftrightarrow:qke,LongLeftRightArrow:Pke,Longleftrightarrow:Bke,longmapsto:Vke,longrightarrow:jke,LongRightArrow:Uke,Longrightarrow:zke,looparrowleft:Hke,looparrowright:Gke,lopar:Wke,Lopf:Qke,lopf:Yke,loplus:Jke,lotimes:Zke,lowast:Xke,lowbar:Kke,LowerLeftArrow:exe,LowerRightArrow:txe,loz:nxe,lozenge:rxe,lozf:oxe,lpar:ixe,lparlt:sxe,lrarr:axe,lrcorner:cxe,lrhar:lxe,lrhard:uxe,lrm:fxe,lrtri:pxe,lsaquo:dxe,lscr:hxe,Lscr:mxe,lsh:vxe,Lsh:gxe,lsim:yxe,lsime:bxe,lsimg:Exe,lsqb:_xe,lsquo:kxe,lsquor:xxe,Lstrok:wxe,lstrok:$xe,ltcc:Cxe,ltcir:Axe,lt:Sxe,LT:Txe,Lt:Dxe,ltdot:Nxe,lthree:Oxe,ltimes:Ixe,ltlarr:Fxe,ltquest:Lxe,ltri:Rxe,ltrie:Mxe,ltrif:qxe,ltrPar:Pxe,lurdshar:Bxe,luruhar:Vxe,lvertneqq:jxe,lvnE:Uxe,macr:zxe,male:Hxe,malt:Gxe,maltese:Wxe,Map:"⤅",map:Qxe,mapsto:Yxe,mapstodown:Jxe,mapstoleft:Zxe,mapstoup:Xxe,marker:Kxe,mcomma:ewe,Mcy:twe,mcy:nwe,mdash:rwe,mDDot:owe,measuredangle:iwe,MediumSpace:swe,Mellintrf:awe,Mfr:cwe,mfr:lwe,mho:uwe,micro:fwe,midast:pwe,midcir:dwe,mid:hwe,middot:mwe,minusb:vwe,minus:gwe,minusd:ywe,minusdu:bwe,MinusPlus:Ewe,mlcp:_we,mldr:kwe,mnplus:xwe,models:wwe,Mopf:$we,mopf:Cwe,mp:Awe,mscr:Swe,Mscr:Twe,mstpos:Dwe,Mu:Nwe,mu:Owe,multimap:Iwe,mumap:Fwe,nabla:Lwe,Nacute:Rwe,nacute:Mwe,nang:qwe,nap:Pwe,napE:Bwe,napid:Vwe,napos:jwe,napprox:Uwe,natural:zwe,naturals:Hwe,natur:Gwe,nbsp:Wwe,nbump:Qwe,nbumpe:Ywe,ncap:Jwe,Ncaron:Zwe,ncaron:Xwe,Ncedil:Kwe,ncedil:e$e,ncong:t$e,ncongdot:n$e,ncup:r$e,Ncy:o$e,ncy:i$e,ndash:s$e,nearhk:a$e,nearr:c$e,neArr:l$e,nearrow:u$e,ne:f$e,nedot:p$e,NegativeMediumSpace:d$e,NegativeThickSpace:h$e,NegativeThinSpace:m$e,NegativeVeryThinSpace:v$e,nequiv:g$e,nesear:y$e,nesim:b$e,NestedGreaterGreater:E$e,NestedLessLess:_$e,NewLine:k$e,nexist:x$e,nexists:w$e,Nfr:$$e,nfr:C$e,ngE:A$e,nge:S$e,ngeq:T$e,ngeqq:D$e,ngeqslant:N$e,nges:O$e,nGg:I$e,ngsim:F$e,nGt:L$e,ngt:R$e,ngtr:M$e,nGtv:q$e,nharr:P$e,nhArr:B$e,nhpar:V$e,ni:j$e,nis:U$e,nisd:z$e,niv:H$e,NJcy:G$e,njcy:W$e,nlarr:Q$e,nlArr:Y$e,nldr:J$e,nlE:Z$e,nle:X$e,nleftarrow:K$e,nLeftarrow:eCe,nleftrightarrow:tCe,nLeftrightarrow:nCe,nleq:rCe,nleqq:oCe,nleqslant:iCe,nles:sCe,nless:aCe,nLl:cCe,nlsim:lCe,nLt:uCe,nlt:fCe,nltri:pCe,nltrie:dCe,nLtv:hCe,nmid:mCe,NoBreak:vCe,NonBreakingSpace:gCe,nopf:yCe,Nopf:bCe,Not:ECe,not:_Ce,NotCongruent:kCe,NotCupCap:xCe,NotDoubleVerticalBar:wCe,NotElement:$Ce,NotEqual:CCe,NotEqualTilde:ACe,NotExists:SCe,NotGreater:TCe,NotGreaterEqual:DCe,NotGreaterFullEqual:NCe,NotGreaterGreater:OCe,NotGreaterLess:ICe,NotGreaterSlantEqual:FCe,NotGreaterTilde:LCe,NotHumpDownHump:RCe,NotHumpEqual:MCe,notin:qCe,notindot:PCe,notinE:BCe,notinva:VCe,notinvb:jCe,notinvc:UCe,NotLeftTriangleBar:zCe,NotLeftTriangle:HCe,NotLeftTriangleEqual:GCe,NotLess:WCe,NotLessEqual:QCe,NotLessGreater:YCe,NotLessLess:JCe,NotLessSlantEqual:ZCe,NotLessTilde:XCe,NotNestedGreaterGreater:KCe,NotNestedLessLess:eAe,notni:tAe,notniva:nAe,notnivb:rAe,notnivc:oAe,NotPrecedes:iAe,NotPrecedesEqual:sAe,NotPrecedesSlantEqual:aAe,NotReverseElement:cAe,NotRightTriangleBar:lAe,NotRightTriangle:uAe,NotRightTriangleEqual:fAe,NotSquareSubset:pAe,NotSquareSubsetEqual:dAe,NotSquareSuperset:hAe,NotSquareSupersetEqual:mAe,NotSubset:vAe,NotSubsetEqual:gAe,NotSucceeds:yAe,NotSucceedsEqual:bAe,NotSucceedsSlantEqual:EAe,NotSucceedsTilde:_Ae,NotSuperset:kAe,NotSupersetEqual:xAe,NotTilde:wAe,NotTildeEqual:$Ae,NotTildeFullEqual:CAe,NotTildeTilde:AAe,NotVerticalBar:SAe,nparallel:TAe,npar:DAe,nparsl:NAe,npart:OAe,npolint:IAe,npr:FAe,nprcue:LAe,nprec:RAe,npreceq:MAe,npre:qAe,nrarrc:PAe,nrarr:BAe,nrArr:VAe,nrarrw:jAe,nrightarrow:UAe,nRightarrow:zAe,nrtri:HAe,nrtrie:GAe,nsc:WAe,nsccue:QAe,nsce:YAe,Nscr:JAe,nscr:ZAe,nshortmid:XAe,nshortparallel:KAe,nsim:eSe,nsime:tSe,nsimeq:nSe,nsmid:rSe,nspar:oSe,nsqsube:iSe,nsqsupe:sSe,nsub:aSe,nsubE:cSe,nsube:lSe,nsubset:uSe,nsubseteq:fSe,nsubseteqq:pSe,nsucc:dSe,nsucceq:hSe,nsup:mSe,nsupE:vSe,nsupe:gSe,nsupset:ySe,nsupseteq:bSe,nsupseteqq:ESe,ntgl:_Se,Ntilde:kSe,ntilde:xSe,ntlg:wSe,ntriangleleft:$Se,ntrianglelefteq:CSe,ntriangleright:ASe,ntrianglerighteq:SSe,Nu:TSe,nu:DSe,num:NSe,numero:OSe,numsp:ISe,nvap:FSe,nvdash:LSe,nvDash:RSe,nVdash:MSe,nVDash:qSe,nvge:PSe,nvgt:BSe,nvHarr:VSe,nvinfin:jSe,nvlArr:USe,nvle:zSe,nvlt:HSe,nvltrie:GSe,nvrArr:WSe,nvrtrie:QSe,nvsim:YSe,nwarhk:JSe,nwarr:ZSe,nwArr:XSe,nwarrow:KSe,nwnear:eTe,Oacute:tTe,oacute:nTe,oast:rTe,Ocirc:oTe,ocirc:iTe,ocir:sTe,Ocy:aTe,ocy:cTe,odash:lTe,Odblac:uTe,odblac:fTe,odiv:pTe,odot:dTe,odsold:hTe,OElig:mTe,oelig:vTe,ofcir:gTe,Ofr:yTe,ofr:bTe,ogon:ETe,Ograve:_Te,ograve:kTe,ogt:xTe,ohbar:wTe,ohm:$Te,oint:CTe,olarr:ATe,olcir:STe,olcross:TTe,oline:DTe,olt:NTe,Omacr:OTe,omacr:ITe,Omega:FTe,omega:LTe,Omicron:RTe,omicron:MTe,omid:qTe,ominus:PTe,Oopf:BTe,oopf:VTe,opar:jTe,OpenCurlyDoubleQuote:UTe,OpenCurlyQuote:zTe,operp:HTe,oplus:GTe,orarr:WTe,Or:QTe,or:YTe,ord:JTe,order:ZTe,orderof:XTe,ordf:KTe,ordm:eDe,origof:tDe,oror:nDe,orslope:rDe,orv:oDe,oS:iDe,Oscr:sDe,oscr:aDe,Oslash:cDe,oslash:lDe,osol:uDe,Otilde:fDe,otilde:pDe,otimesas:dDe,Otimes:hDe,otimes:mDe,Ouml:vDe,ouml:gDe,ovbar:yDe,OverBar:bDe,OverBrace:EDe,OverBracket:_De,OverParenthesis:kDe,para:xDe,parallel:wDe,par:$De,parsim:CDe,parsl:ADe,part:SDe,PartialD:TDe,Pcy:DDe,pcy:NDe,percnt:ODe,period:IDe,permil:FDe,perp:LDe,pertenk:RDe,Pfr:MDe,pfr:qDe,Phi:PDe,phi:BDe,phiv:VDe,phmmat:jDe,phone:UDe,Pi:zDe,pi:HDe,pitchfork:GDe,piv:WDe,planck:QDe,planckh:YDe,plankv:JDe,plusacir:ZDe,plusb:XDe,pluscir:KDe,plus:eNe,plusdo:tNe,plusdu:nNe,pluse:rNe,PlusMinus:oNe,plusmn:iNe,plussim:sNe,plustwo:aNe,pm:cNe,Poincareplane:lNe,pointint:uNe,popf:fNe,Popf:pNe,pound:dNe,prap:hNe,Pr:mNe,pr:vNe,prcue:gNe,precapprox:yNe,prec:bNe,preccurlyeq:ENe,Precedes:_Ne,PrecedesEqual:kNe,PrecedesSlantEqual:xNe,PrecedesTilde:wNe,preceq:$Ne,precnapprox:CNe,precneqq:ANe,precnsim:SNe,pre:TNe,prE:DNe,precsim:NNe,prime:ONe,Prime:INe,primes:FNe,prnap:LNe,prnE:RNe,prnsim:MNe,prod:qNe,Product:PNe,profalar:BNe,profline:VNe,profsurf:jNe,prop:UNe,Proportional:zNe,Proportion:HNe,propto:GNe,prsim:WNe,prurel:QNe,Pscr:YNe,pscr:JNe,Psi:ZNe,psi:XNe,puncsp:KNe,Qfr:eOe,qfr:tOe,qint:nOe,qopf:rOe,Qopf:oOe,qprime:iOe,Qscr:sOe,qscr:aOe,quaternions:cOe,quatint:lOe,quest:uOe,questeq:fOe,quot:pOe,QUOT:dOe,rAarr:hOe,race:mOe,Racute:vOe,racute:gOe,radic:yOe,raemptyv:bOe,rang:EOe,Rang:_Oe,rangd:kOe,range:xOe,rangle:wOe,raquo:$Oe,rarrap:COe,rarrb:AOe,rarrbfs:SOe,rarrc:TOe,rarr:DOe,Rarr:NOe,rArr:OOe,rarrfs:IOe,rarrhk:FOe,rarrlp:LOe,rarrpl:ROe,rarrsim:MOe,Rarrtl:qOe,rarrtl:POe,rarrw:BOe,ratail:VOe,rAtail:jOe,ratio:UOe,rationals:zOe,rbarr:HOe,rBarr:GOe,RBarr:WOe,rbbrk:QOe,rbrace:YOe,rbrack:JOe,rbrke:ZOe,rbrksld:XOe,rbrkslu:KOe,Rcaron:eIe,rcaron:tIe,Rcedil:nIe,rcedil:rIe,rceil:oIe,rcub:iIe,Rcy:sIe,rcy:aIe,rdca:cIe,rdldhar:lIe,rdquo:uIe,rdquor:fIe,rdsh:pIe,real:dIe,realine:hIe,realpart:mIe,reals:vIe,Re:gIe,rect:yIe,reg:bIe,REG:EIe,ReverseElement:_Ie,ReverseEquilibrium:kIe,ReverseUpEquilibrium:xIe,rfisht:wIe,rfloor:$Ie,rfr:CIe,Rfr:AIe,rHar:SIe,rhard:TIe,rharu:DIe,rharul:NIe,Rho:OIe,rho:IIe,rhov:FIe,RightAngleBracket:LIe,RightArrowBar:RIe,rightarrow:MIe,RightArrow:qIe,Rightarrow:PIe,RightArrowLeftArrow:BIe,rightarrowtail:VIe,RightCeiling:jIe,RightDoubleBracket:UIe,RightDownTeeVector:zIe,RightDownVectorBar:HIe,RightDownVector:GIe,RightFloor:WIe,rightharpoondown:QIe,rightharpoonup:YIe,rightleftarrows:JIe,rightleftharpoons:ZIe,rightrightarrows:XIe,rightsquigarrow:KIe,RightTeeArrow:eFe,RightTee:tFe,RightTeeVector:nFe,rightthreetimes:rFe,RightTriangleBar:oFe,RightTriangle:iFe,RightTriangleEqual:sFe,RightUpDownVector:aFe,RightUpTeeVector:cFe,RightUpVectorBar:lFe,RightUpVector:uFe,RightVectorBar:fFe,RightVector:pFe,ring:dFe,risingdotseq:hFe,rlarr:mFe,rlhar:vFe,rlm:gFe,rmoustache:yFe,rmoust:bFe,rnmid:EFe,roang:_Fe,roarr:kFe,robrk:xFe,ropar:wFe,ropf:$Fe,Ropf:CFe,roplus:AFe,rotimes:SFe,RoundImplies:TFe,rpar:DFe,rpargt:NFe,rppolint:OFe,rrarr:IFe,Rrightarrow:FFe,rsaquo:LFe,rscr:RFe,Rscr:MFe,rsh:qFe,Rsh:PFe,rsqb:BFe,rsquo:VFe,rsquor:jFe,rthree:UFe,rtimes:zFe,rtri:HFe,rtrie:GFe,rtrif:WFe,rtriltri:QFe,RuleDelayed:YFe,ruluhar:JFe,rx:ZFe,Sacute:XFe,sacute:KFe,sbquo:eLe,scap:tLe,Scaron:nLe,scaron:rLe,Sc:oLe,sc:iLe,sccue:sLe,sce:aLe,scE:cLe,Scedil:lLe,scedil:uLe,Scirc:fLe,scirc:pLe,scnap:dLe,scnE:hLe,scnsim:mLe,scpolint:vLe,scsim:gLe,Scy:yLe,scy:bLe,sdotb:ELe,sdot:_Le,sdote:kLe,searhk:xLe,searr:wLe,seArr:$Le,searrow:CLe,sect:ALe,semi:SLe,seswar:TLe,setminus:DLe,setmn:NLe,sext:OLe,Sfr:ILe,sfr:FLe,sfrown:LLe,sharp:RLe,SHCHcy:MLe,shchcy:qLe,SHcy:PLe,shcy:BLe,ShortDownArrow:VLe,ShortLeftArrow:jLe,shortmid:ULe,shortparallel:zLe,ShortRightArrow:HLe,ShortUpArrow:GLe,shy:WLe,Sigma:QLe,sigma:YLe,sigmaf:JLe,sigmav:ZLe,sim:XLe,simdot:KLe,sime:eRe,simeq:tRe,simg:nRe,simgE:rRe,siml:oRe,simlE:iRe,simne:sRe,simplus:aRe,simrarr:cRe,slarr:lRe,SmallCircle:uRe,smallsetminus:fRe,smashp:pRe,smeparsl:dRe,smid:hRe,smile:mRe,smt:vRe,smte:gRe,smtes:yRe,SOFTcy:bRe,softcy:ERe,solbar:_Re,solb:kRe,sol:xRe,Sopf:wRe,sopf:$Re,spades:CRe,spadesuit:ARe,spar:SRe,sqcap:TRe,sqcaps:DRe,sqcup:NRe,sqcups:ORe,Sqrt:IRe,sqsub:FRe,sqsube:LRe,sqsubset:RRe,sqsubseteq:MRe,sqsup:qRe,sqsupe:PRe,sqsupset:BRe,sqsupseteq:VRe,square:jRe,Square:URe,SquareIntersection:zRe,SquareSubset:HRe,SquareSubsetEqual:GRe,SquareSuperset:WRe,SquareSupersetEqual:QRe,SquareUnion:YRe,squarf:JRe,squ:ZRe,squf:XRe,srarr:KRe,Sscr:eMe,sscr:tMe,ssetmn:nMe,ssmile:rMe,sstarf:oMe,Star:iMe,star:sMe,starf:aMe,straightepsilon:cMe,straightphi:lMe,strns:uMe,sub:fMe,Sub:pMe,subdot:dMe,subE:hMe,sube:mMe,subedot:vMe,submult:gMe,subnE:yMe,subne:bMe,subplus:EMe,subrarr:_Me,subset:kMe,Subset:xMe,subseteq:wMe,subseteqq:$Me,SubsetEqual:CMe,subsetneq:AMe,subsetneqq:SMe,subsim:TMe,subsub:DMe,subsup:NMe,succapprox:OMe,succ:IMe,succcurlyeq:FMe,Succeeds:LMe,SucceedsEqual:RMe,SucceedsSlantEqual:MMe,SucceedsTilde:qMe,succeq:PMe,succnapprox:BMe,succneqq:VMe,succnsim:jMe,succsim:UMe,SuchThat:zMe,sum:HMe,Sum:GMe,sung:WMe,sup1:QMe,sup2:YMe,sup3:JMe,sup:ZMe,Sup:XMe,supdot:KMe,supdsub:eqe,supE:tqe,supe:nqe,supedot:rqe,Superset:oqe,SupersetEqual:iqe,suphsol:sqe,suphsub:aqe,suplarr:cqe,supmult:lqe,supnE:uqe,supne:fqe,supplus:pqe,supset:dqe,Supset:hqe,supseteq:mqe,supseteqq:vqe,supsetneq:gqe,supsetneqq:yqe,supsim:bqe,supsub:Eqe,supsup:_qe,swarhk:kqe,swarr:xqe,swArr:wqe,swarrow:$qe,swnwar:Cqe,szlig:Aqe,Tab:Sqe,target:Tqe,Tau:Dqe,tau:Nqe,tbrk:Oqe,Tcaron:Iqe,tcaron:Fqe,Tcedil:Lqe,tcedil:Rqe,Tcy:Mqe,tcy:qqe,tdot:Pqe,telrec:Bqe,Tfr:Vqe,tfr:jqe,there4:Uqe,therefore:zqe,Therefore:Hqe,Theta:Gqe,theta:Wqe,thetasym:Qqe,thetav:Yqe,thickapprox:Jqe,thicksim:Zqe,ThickSpace:Xqe,ThinSpace:Kqe,thinsp:ePe,thkap:tPe,thksim:nPe,THORN:rPe,thorn:oPe,tilde:iPe,Tilde:sPe,TildeEqual:aPe,TildeFullEqual:cPe,TildeTilde:lPe,timesbar:uPe,timesb:fPe,times:pPe,timesd:dPe,tint:hPe,toea:mPe,topbot:vPe,topcir:gPe,top:yPe,Topf:bPe,topf:EPe,topfork:_Pe,tosa:kPe,tprime:xPe,trade:wPe,TRADE:$Pe,triangle:CPe,triangledown:APe,triangleleft:SPe,trianglelefteq:TPe,triangleq:DPe,triangleright:NPe,trianglerighteq:OPe,tridot:IPe,trie:FPe,triminus:LPe,TripleDot:RPe,triplus:MPe,trisb:qPe,tritime:PPe,trpezium:BPe,Tscr:VPe,tscr:jPe,TScy:UPe,tscy:zPe,TSHcy:HPe,tshcy:GPe,Tstrok:WPe,tstrok:QPe,twixt:YPe,twoheadleftarrow:JPe,twoheadrightarrow:ZPe,Uacute:XPe,uacute:KPe,uarr:e3e,Uarr:t3e,uArr:n3e,Uarrocir:r3e,Ubrcy:o3e,ubrcy:i3e,Ubreve:s3e,ubreve:a3e,Ucirc:c3e,ucirc:l3e,Ucy:u3e,ucy:f3e,udarr:p3e,Udblac:d3e,udblac:h3e,udhar:m3e,ufisht:v3e,Ufr:g3e,ufr:y3e,Ugrave:b3e,ugrave:E3e,uHar:_3e,uharl:k3e,uharr:x3e,uhblk:w3e,ulcorn:$3e,ulcorner:C3e,ulcrop:A3e,ultri:S3e,Umacr:T3e,umacr:D3e,uml:N3e,UnderBar:O3e,UnderBrace:I3e,UnderBracket:F3e,UnderParenthesis:L3e,Union:R3e,UnionPlus:M3e,Uogon:q3e,uogon:P3e,Uopf:B3e,uopf:V3e,UpArrowBar:j3e,uparrow:U3e,UpArrow:z3e,Uparrow:H3e,UpArrowDownArrow:G3e,updownarrow:W3e,UpDownArrow:Q3e,Updownarrow:Y3e,UpEquilibrium:J3e,upharpoonleft:Z3e,upharpoonright:X3e,uplus:K3e,UpperLeftArrow:eBe,UpperRightArrow:tBe,upsi:nBe,Upsi:rBe,upsih:oBe,Upsilon:iBe,upsilon:sBe,UpTeeArrow:aBe,UpTee:cBe,upuparrows:lBe,urcorn:uBe,urcorner:fBe,urcrop:pBe,Uring:dBe,uring:hBe,urtri:mBe,Uscr:vBe,uscr:gBe,utdot:yBe,Utilde:bBe,utilde:EBe,utri:_Be,utrif:kBe,uuarr:xBe,Uuml:wBe,uuml:$Be,uwangle:CBe,vangrt:ABe,varepsilon:SBe,varkappa:TBe,varnothing:DBe,varphi:NBe,varpi:OBe,varpropto:IBe,varr:FBe,vArr:LBe,varrho:RBe,varsigma:MBe,varsubsetneq:qBe,varsubsetneqq:PBe,varsupsetneq:BBe,varsupsetneqq:VBe,vartheta:jBe,vartriangleleft:UBe,vartriangleright:zBe,vBar:HBe,Vbar:GBe,vBarv:WBe,Vcy:QBe,vcy:YBe,vdash:JBe,vDash:ZBe,Vdash:XBe,VDash:KBe,Vdashl:e5e,veebar:t5e,vee:n5e,Vee:r5e,veeeq:o5e,vellip:i5e,verbar:s5e,Verbar:a5e,vert:c5e,Vert:l5e,VerticalBar:u5e,VerticalLine:f5e,VerticalSeparator:p5e,VerticalTilde:d5e,VeryThinSpace:h5e,Vfr:m5e,vfr:v5e,vltri:g5e,vnsub:y5e,vnsup:b5e,Vopf:E5e,vopf:_5e,vprop:k5e,vrtri:x5e,Vscr:w5e,vscr:$5e,vsubnE:C5e,vsubne:A5e,vsupnE:S5e,vsupne:T5e,Vvdash:D5e,vzigzag:N5e,Wcirc:O5e,wcirc:I5e,wedbar:F5e,wedge:L5e,Wedge:R5e,wedgeq:M5e,weierp:q5e,Wfr:P5e,wfr:B5e,Wopf:V5e,wopf:j5e,wp:U5e,wr:z5e,wreath:H5e,Wscr:G5e,wscr:W5e,xcap:Q5e,xcirc:Y5e,xcup:J5e,xdtri:Z5e,Xfr:X5e,xfr:K5e,xharr:eVe,xhArr:tVe,Xi:nVe,xi:rVe,xlarr:oVe,xlArr:iVe,xmap:sVe,xnis:aVe,xodot:cVe,Xopf:lVe,xopf:uVe,xoplus:fVe,xotime:pVe,xrarr:dVe,xrArr:hVe,Xscr:mVe,xscr:vVe,xsqcup:gVe,xuplus:yVe,xutri:bVe,xvee:EVe,xwedge:_Ve,Yacute:kVe,yacute:xVe,YAcy:wVe,yacy:$Ve,Ycirc:CVe,ycirc:AVe,Ycy:SVe,ycy:TVe,yen:DVe,Yfr:NVe,yfr:OVe,YIcy:IVe,yicy:FVe,Yopf:LVe,yopf:RVe,Yscr:MVe,yscr:qVe,YUcy:PVe,yucy:BVe,yuml:VVe,Yuml:jVe,Zacute:UVe,zacute:zVe,Zcaron:HVe,zcaron:GVe,Zcy:WVe,zcy:QVe,Zdot:YVe,zdot:JVe,zeetrf:ZVe,ZeroWidthSpace:XVe,Zeta:KVe,zeta:e9e,zfr:t9e,Zfr:n9e,ZHcy:r9e,zhcy:o9e,zigrarr:i9e,zopf:s9e,Zopf:a9e,Zscr:c9e,zscr:l9e,zwj:u9e,zwnj:f9e};var c_=p9e,Sh=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,gs={},Hy={};function d9e(t){var e,n,o=Hy[t];if(o)return o;for(o=Hy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function _u(t,e,n){var o,i,a,l,f,d="";for(typeof e!="string"&&(n=e,e=_u.defaultChars),typeof n>"u"&&(n=!0),f=d9e(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(l=t.charCodeAt(o+1),l>=56320&&l<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}_u.defaultChars=";/?:@&=+$,-_.!~*'()#";_u.componentChars="-_.!~*'()";var h9e=_u,Gy={};function m9e(t){var e,n,o=Gy[t];if(o)return o;for(o=Gy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function ku(t,e){var n;return typeof e!="string"&&(e=ku.defaultChars),n=m9e(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,l,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(l=parseInt(o.slice(i+1,i+3),16),l<128){y+=n[l];continue}if((l&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=l<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((l&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=l<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((l&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=l<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}ku.defaultChars=";/?:@&=+$,#";ku.componentChars="";var v9e=ku,g9e=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ll(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var y9e=/^([a-z0-9.+-]+:)/i,b9e=/:[0-9]*$/,E9e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_9e=["<",">",'"',"`"," ","\r",`
269
+ `," "],k9e=["{","}","|","\\","^","`"].concat(_9e),x9e=["'"].concat(k9e),Wy=["%","/","?",";","#"].concat(x9e),Qy=["/","?","#"],w9e=255,Yy=/^[+a-z0-9A-Z_-]{0,63}$/,$9e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jy={javascript:!0,"javascript:":!0},Zy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function C9e(t,e){if(t&&t instanceof Ll)return t;var n=new Ll;return n.parse(t,e),n}Ll.prototype.parse=function(t,e){var n,o,i,a,l,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=E9e.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=y9e.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l=f.substr(0,2)==="//",l&&!(h&&Jy[h])&&(f=f.substr(2),this.slashes=!0)),!Jy[h]&&(l||h&&!Zy[h])){var v=-1;for(n=0;n<Qy.length;n++)a=f.indexOf(Qy[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<Wy.length;n++)a=f.indexOf(Wy[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(Yy)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(Yy)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match($9e);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>w9e&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),Zy[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ll.prototype.parseHost=function(t){var e=b9e.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var A9e=C9e;gs.encode=h9e;gs.decode=v9e;gs.format=g9e;gs.parse=A9e;var jo={},ep,Xy;function l_(){return Xy||(Xy=1,ep=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ep}var tp,Ky;function u_(){return Ky||(Ky=1,tp=/[\0-\x1F\x7F-\x9F]/),tp}var np,e1;function S9e(){return e1||(e1=1,np=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),np}var rp,t1;function f_(){return t1||(t1=1,rp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),rp}var n1;function T9e(){return n1||(n1=1,jo.Any=l_(),jo.Cc=u_(),jo.Cf=S9e(),jo.P=Sh,jo.Z=f_()),jo}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(L,x){return o.call(L,x)}function a(L){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){L[J]=j[J]})}}),L}function l(L,x,j){return[].concat(L.slice(0,x),j,L.slice(x+1))}function f(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function d(L){if(L>65535){L-=65536;var x=55296+(L>>10),j=56320+(L&1023);return String.fromCharCode(x,j)}return String.fromCharCode(L)}var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=c_;function C(L,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):L}function S(L){return L.indexOf("\\")<0?L:L.replace(h,"$1")}function N(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(y,function(x,j,J){return j||C(x,J)})}var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function V(L){return O[L]}function Y(L){return D.test(L)?L.replace(T,V):L}var P=/[.?*+^$[\]\\(){}|-]/g;function U(L){return L.replace(P,"\\$&")}function K(L){switch(L){case 9:case 32:return!0}return!1}function G(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Q=Sh;function re(L){return Q.test(L)}function _e(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function H(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=gs,t.lib.ucmicro=T9e(),t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=l,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=re,t.escapeRE=U,t.normalizeReference=H})(tt);var xu={},D9e=function(e,n,o){var i,a,l,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(l=e.src.charCodeAt(e.pos),l===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),l===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},r1=tt.unescapeAll,N9e=function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=r1(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=r1(e.slice(f,n)),d.lines=l,d.pos=n,d.ok=!0),d},O9e=tt.unescapeAll,I9e=function(e,n,o){var i,a,l=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=l,d.str=O9e(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?l++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&l++),n++}return d};xu.parseLinkLabel=D9e;xu.parseLinkDestination=N9e;xu.parseLinkTitle=I9e;var F9e=tt.assign,L9e=tt.unescapeAll,ri=tt.escapeHtml,Cr={};Cr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+ri(t[e].content)+"</code>"};Cr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+ri(t[e].content)+`</code></pre>
270
+ `};Cr.fence=function(t,e,n,o,i){var a=t[e],l=a.info?L9e(a.info).trim():"",f="",d="",h,v,y,g,E;return l&&(y=l.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||ri(a.content):h=ri(a.content),h.indexOf("<pre")===0?h+`
271
271
  `:l?(v=a.attrIndex("class"),g=a.attrs?a.attrs.slice():[],v<0?g.push(["class",n.langPrefix+f]):(g[v]=g[v].slice(),g[v][1]+=" "+n.langPrefix+f),E={attrs:g},"<pre><code"+i.renderAttrs(E)+">"+h+`</code></pre>
272
272
  `):"<pre><code"+i.renderAttrs(a)+">"+h+`</code></pre>
273
273
  `};Cr.image=function(t,e,n,o,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,o),i.renderToken(t,e,n)};Cr.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
@@ -275,43 +275,43 @@ object-assign
275
275
  `};Cr.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
276
276
  `:`<br>
277
277
  `:`
278
- `};Cr.text=function(t,e){return ri(t[e].content)};Cr.html_block=function(t,e){return t[e].content};Cr.html_inline=function(t,e){return t[e].content};function ys(){this.rules=L9e({},Cr)}ys.prototype.renderAttrs=function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+ri(e.attrs[n][0])+'="'+ri(e.attrs[n][1])+'"';return i};ys.prototype.renderToken=function(e,n,o){var i,a="",l=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
278
+ `};Cr.text=function(t,e){return ri(t[e].content)};Cr.html_block=function(t,e){return t[e].content};Cr.html_inline=function(t,e){return t[e].content};function ys(){this.rules=F9e({},Cr)}ys.prototype.renderAttrs=function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+ri(e.attrs[n][0])+'="'+ri(e.attrs[n][1])+'"';return i};ys.prototype.renderToken=function(e,n,o){var i,a="",l=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
279
279
  `),a+=(f.nesting===-1?"</":"<")+f.tag,a+=this.renderAttrs(f),f.nesting===0&&o.xhtmlOut&&(a+=" /"),f.block&&(l=!0,f.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===f.tag)&&(l=!1))),a+=l?`>
280
280
  `:">",a)};ys.prototype.renderInline=function(t,e,n){for(var o,i="",a=this.rules,l=0,f=t.length;l<f;l++)o=t[l].type,typeof a[o]<"u"?i+=a[o](t,l,e,n,this):i+=this.renderToken(t,l,e);return i};ys.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,a=t.length;i<a;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
281
281
  `);return o};ys.prototype.render=function(t,e,n){var o,i,a,l="",f=this.rules;for(o=0,i=t.length;o<i;o++)a=t[o].type,a==="inline"?l+=this.renderInline(t[o].children,e,n):typeof f[a]<"u"?l+=f[t[o].type](t,o,e,n,this):l+=this.renderToken(t,o,e,n);return l};var R9e=ys;function er(){this.__rules__=[],this.__cache__=null}er.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};er.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};er.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};er.prototype.before=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};er.prototype.after=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};er.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};er.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};er.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};er.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};er.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Th=er,M9e=/\r\n?|\n/g,q9e=/\0/g,P9e=function(e){var n;n=e.src.replace(M9e,`
282
282
  `),n=n.replace(q9e,"�"),e.src=n},B9e=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},V9e=function(e){var n=e.tokens,o,i,a;for(i=0,a=n.length;i<a;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},j9e=tt.arrayReplaceAt;function U9e(t){return/^<a[>\s]/i.test(t)}function z9e(t){return/^<\/a\s*>/i.test(t)}var H9e=function(e){var n,o,i,a,l,f,d,h,v,y,g,E,C,S,N,D,T=e.tokens,O;if(e.md.options.linkify){for(o=0,i=T.length;o<i;o++)if(!(T[o].type!=="inline"||!e.md.linkify.pretest(T[o].content)))for(a=T[o].children,C=0,n=a.length-1;n>=0;n--){if(f=a[n],f.type==="link_close"){for(n--;a[n].level!==f.level&&a[n].type!=="link_open";)n--;continue}if(f.type==="html_inline"&&(U9e(f.content)&&C>0&&C--,z9e(f.content)&&C++),!(C>0)&&f.type==="text"&&e.md.linkify.test(f.content)){for(v=f.content,O=e.md.linkify.match(v),d=[],E=f.level,g=0,h=0;h<O.length;h++)S=O[h].url,N=e.md.normalizeLink(S),e.md.validateLink(N)&&(D=O[h].text,O[h].schema?O[h].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,""),y=O[h].index,y>g&&(l=new e.Token("text","",0),l.content=v.slice(g,y),l.level=E,d.push(l)),l=new e.Token("link_open","a",1),l.attrs=[["href",N]],l.level=E++,l.markup="linkify",l.info="auto",d.push(l),l=new e.Token("text","",0),l.content=D,l.level=E,d.push(l),l=new e.Token("link_close","a",-1),l.level=--E,l.markup="linkify",l.info="auto",d.push(l),g=O[h].lastIndex);g<v.length&&(l=new e.Token("text","",0),l.content=v.slice(g),l.level=E,d.push(l)),T[o].children=a=j9e(a,n,d)}}}},p_=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,G9e=/\((c|tm|r|p)\)/i,W9e=/\((c|tm|r|p)\)/ig,Q9e={c:"©",r:"®",p:"§",tm:"™"};function Y9e(t,e){return Q9e[e.toLowerCase()]}function J9e(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(W9e,Y9e)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Z9e(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&p_.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var X9e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(G9e.test(e.tokens[n].content)&&J9e(e.tokens[n].children),p_.test(e.tokens[n].content)&&Z9e(e.tokens[n].children))},o1=tt.isWhiteSpace,i1=tt.isPunctChar,s1=tt.isMdAsciiPunct,K9e=/['"]/,a1=/['"]/g,c1="’";function Zc(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function e4e(t,e){var n,o,i,a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;for(V=[],n=0;n<t.length;n++){for(o=t[n],d=t[n].level,T=V.length-1;T>=0&&!(V[T].level<=d);T--);if(V.length=T+1,o.type==="text"){i=o.content,l=0,f=i.length;e:for(;l<f&&(a1.lastIndex=l,a=a1.exec(i),!!a);){if(N=D=!0,l=a.index+1,O=a[0]==="'",v=32,a.index-1>=0)v=i.charCodeAt(a.index-1);else for(T=n-1;T>=0&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T--)if(t[T].content){v=t[T].content.charCodeAt(t[T].content.length-1);break}if(y=32,l<f)y=i.charCodeAt(l);else for(T=n+1;T<t.length&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T++)if(t[T].content){y=t[T].content.charCodeAt(0);break}if(g=s1(v)||i1(String.fromCharCode(v)),E=s1(y)||i1(String.fromCharCode(y)),C=o1(v),S=o1(y),S?N=!1:E&&(C||g||(N=!1)),C?D=!1:g&&(S||E||(D=!1)),y===34&&a[0]==='"'&&v>=48&&v<=57&&(D=N=!1),N&&D&&(N=g,D=E),!N&&!D){O&&(o.content=Zc(o.content,a.index,c1));continue}if(D){for(T=V.length-1;T>=0&&(h=V[T],!(V[T].level<d));T--)if(h.single===O&&V[T].level===d){h=V[T],O?(Y=e.md.options.quotes[2],P=e.md.options.quotes[3]):(Y=e.md.options.quotes[0],P=e.md.options.quotes[1]),o.content=Zc(o.content,a.index,P),t[h.token].content=Zc(t[h.token].content,h.pos,Y),l+=P.length-1,h.token===n&&(l+=Y.length-1),i=o.content,f=i.length,V.length=T;continue e}}N?V.push({token:n,pos:a.index,single:O,level:d}):D&&O&&(o.content=Zc(o.content,a.index,c1))}}}}var t4e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!K9e.test(e.tokens[n].content)||e4e(e.tokens[n].children,e)};function bs(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}bs.prototype.attrIndex=function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1};bs.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};bs.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};bs.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};bs.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var Dh=bs,n4e=Dh;function d_(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}d_.prototype.Token=n4e;var r4e=d_,o4e=Th,op=[["normalize",P9e],["block",B9e],["inline",V9e],["linkify",H9e],["replacements",X9e],["smartquotes",t4e]];function Nh(){this.ruler=new o4e;for(var t=0;t<op.length;t++)this.ruler.push(op[t][0],op[t][1])}Nh.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};Nh.prototype.State=r4e;var i4e=Nh,ip=tt.isSpace;function sp(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.substr(n,o-n)}function l1(t){var e=[],n=0,o=t.length,i,a=!1,l=0,f="";for(i=t.charCodeAt(n);n<o;)i===124&&(a?(f+=t.substring(l,n-1),l=n):(e.push(f+t.substring(l,n)),f="",l=n+1)),a=i===92,n++,i=t.charCodeAt(n);return e.push(f+t.substring(l)),e}var s4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;if(n+2>o||(v=n+1,e.sCount[v]<e.blkIndent)||e.sCount[v]-e.blkIndent>=4||(f=e.bMarks[v]+e.tShift[v],f>=e.eMarks[v])||(Y=e.src.charCodeAt(f++),Y!==124&&Y!==45&&Y!==58)||f>=e.eMarks[v]||(P=e.src.charCodeAt(f++),P!==124&&P!==45&&P!==58&&!ip(P))||Y===45&&ip(P))return!1;for(;f<e.eMarks[v];){if(a=e.src.charCodeAt(f),a!==124&&a!==45&&a!==58&&!ip(a))return!1;f++}for(l=sp(e,n+1),y=l.split("|"),C=[],d=0;d<y.length;d++){if(S=y[d].trim(),!S){if(d===0||d===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?C.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?C.push("left"):C.push("")}if(l=sp(e,n).trim(),l.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(y=l1(l),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),g=y.length,g===0||g!==C.length))return!1;if(i)return!0;for(T=e.parentType,e.parentType="table",V=e.md.block.ruler.getRules("blockquote"),E=e.push("table_open","table",1),E.map=N=[n,0],E=e.push("thead_open","thead",1),E.map=[n,n+1],E=e.push("tr_open","tr",1),E.map=[n,n+1],d=0;d<y.length;d++)E=e.push("th_open","th",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d].trim(),E.children=[],E=e.push("th_close","th",-1);for(E=e.push("tr_close","tr",-1),E=e.push("thead_close","thead",-1),v=n+2;v<o&&!(e.sCount[v]<e.blkIndent);v++){for(O=!1,d=0,h=V.length;d<h;d++)if(V[d](e,v,o,!0)){O=!0;break}if(O||(l=sp(e,v).trim(),!l)||e.sCount[v]-e.blkIndent>=4)break;for(y=l1(l),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===n+2&&(E=e.push("tbody_open","tbody",1),E.map=D=[n+2,0]),E=e.push("tr_open","tr",1),E.map=[v,v+1],d=0;d<g;d++)E=e.push("td_open","td",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d]?y[d].trim():"",E.children=[],E=e.push("td_close","td",-1);E=e.push("tr_close","tr",-1)}return D&&(E=e.push("tbody_close","tbody",-1),D[1]=v),E=e.push("table_close","table",-1),N[1]=v,e.parentType=T,e.line=v,!0},a4e=function(e,n,o){var i,a,l;if(e.sCount[n]-e.blkIndent<4)return!1;for(a=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,a=i;continue}break}return e.line=a,l=e.push("code_block","code",0),l.content=e.getLines(n,a,4+e.blkIndent,!1)+`
283
- `,l.map=[n,e.line],!0},c4e=function(e,n,o,i){var a,l,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),l=E-h,l<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<l)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return l=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,l,!0),v.markup=y,v.map=[n,e.line],!0},u1=tt.isSpace,l4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],re=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<re&&(l=e.src.charCodeAt(Q),u1(l));){l===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=re,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],re=e.eMarks[g],!(Q>=re));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<re&&(l=e.src.charCodeAt(Q),u1(l));){l===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=re,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},u4e=tt.isSpace,f4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(l=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!u4e(f))return!1;f===a&&l++}return l<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(l+1).join(String.fromCharCode(a))),!0)},h_=tt.isSpace;function f1(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!h_(a))?-1:o}function p1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!h_(n))?-1:i}function p4e(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var d4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,re,_e,H,F,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(J=!0),(re=p1(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,re-1)),J&&D!==1)return!1}else if((re=f1(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(re)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(re-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=re,T=e.eMarks[O],v=V=e.sCount[O]+re-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(l=Q,l>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,re-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=l-e.bMarks[n],e.sCount[n]=V,l>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,l=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(F=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){F=!0;break}if(F)break;if(y){if(re=p1(e,O),re<0)break;H=e.bMarks[O]+e.tShift[O]}else if(re=f1(e,O),re<0)break;if(N!==e.src.charCodeAt(re-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&p4e(e,S),!0},h4e=tt.normalizeReference,Xc=tt.isSpace,m4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,l=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=l,Y=f);P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=l,Y=f;P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=h4e(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},v4e=["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"],wu={},g4e="[a-zA-Z_:][a-zA-Z0-9:._-]*",y4e="[^\"'=<>`\\x00-\\x20]+",b4e="'[^']*'",E4e='"[^"]*"',_4e="(?:"+y4e+"|"+b4e+"|"+E4e+")",k4e="(?:\\s+"+g4e+"(?:\\s*=\\s*"+_4e+")?)",m_="<[A-Za-z][A-Za-z0-9\\-]*"+k4e+"*\\s*\\/?>",v_="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",x4e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",w4e="<[?][\\s\\S]*?[?]>",$4e="<![A-Z]+\\s+[^>]*>",C4e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",A4e=new RegExp("^(?:"+m_+"|"+v_+"|"+x4e+"|"+w4e+"|"+$4e+"|"+C4e+")"),S4e=new RegExp("^(?:"+m_+"|"+v_+")");wu.HTML_TAG_RE=A4e;wu.HTML_OPEN_CLOSE_TAG_RE=S4e;var T4e=v4e,D4e=wu.HTML_OPEN_CLOSE_TAG_RE,qi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+T4e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(D4e.source+"\\s*$"),/^$/,!1]],N4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<qi.length&&!qi[a][0].test(d);a++);if(a===qi.length)return!1;if(i)return qi[a][2];if(l=n+1,!qi[a][1].test(d)){for(;l<o&&!(e.sCount[l]<e.blkIndent);l++)if(h=e.bMarks[l]+e.tShift[l],v=e.eMarks[l],d=e.src.slice(h,v),qi[a][1].test(d)){d.length!==0&&l++;break}}return e.line=l,f=e.push("html_block","",0),f.map=[n,l],f.content=e.getLines(n,l,e.blkIndent,!0),!0},d1=tt.isSpace,O4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(l=1,a=e.src.charCodeAt(++h);a===35&&h<v&&l<=6;)l++,a=e.src.charCodeAt(++h);return l>6||h<v&&!d1(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&d1(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(l),1),d.markup="########".slice(0,l),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(l),-1),d.markup="########".slice(0,l)),!0)},I4e=function(e,n,o){var i,a,l,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,l=0,f=S.length;l<f;l++)if(S[l](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},L4e=function(e,n){var o,i,a,l,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,l=v.length;a<l;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},g_=Dh,$u=tt.isSpace;function Ar(t,e,n,o){var i,a,l,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,l=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if($u(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(l),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,l=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ar.prototype.push=function(t,e,n){var o=new g_(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Ar.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Ar.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Ar.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!$u(n));e++);return e};Ar.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!$u(this.src.charCodeAt(--e)))return e+1;return e};Ar.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Ar.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Ar.prototype.getLines=function(e,n,o,i){var a,l,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(l=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&l<o;){if(f=this.src.charCodeAt(d),$u(f))f===9?l+=4-(l+this.bsCount[g])%4:l++;else if(d-y<this.tShift[g])l++;else break;d++}l>o?v[a]=new Array(l-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")};Ar.prototype.Token=g_;var F4e=Ar,R4e=Th,Kc=[["table",s4e,["paragraph","reference"]],["code",a4e],["fence",c4e,["paragraph","reference","blockquote","list"]],["blockquote",l4e,["paragraph","reference","blockquote","list"]],["hr",f4e,["paragraph","reference","blockquote","list"]],["list",d4e,["paragraph","reference","blockquote"]],["reference",m4e],["html_block",N4e,["paragraph","reference","blockquote"]],["heading",O4e,["paragraph","reference","blockquote"]],["lheading",I4e],["paragraph",L4e]];function Cu(){this.ruler=new R4e;for(var t=0;t<Kc.length;t++)this.ruler.push(Kc[t][0],Kc[t][1],{alt:(Kc[t][2]||[]).slice()})}Cu.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),l=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<l&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Cu.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Cu.prototype.State=F4e;var M4e=Cu;function q4e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var P4e=function(e,n){for(var o=e.pos;o<e.posMax&&!q4e(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},B4e=tt.isSpace,V4e=function(e,n){var o,i,a,l=e.pos;if(e.src.charCodeAt(l)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(a=o-1;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(l++;l<i&&B4e(e.src.charCodeAt(l));)l++;return e.pos=l,!0},j4e=tt.isSpace,Oh=[];for(var h1=0;h1<256;h1++)Oh.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Oh[t.charCodeAt(0)]=1});var U4e=function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&Oh[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!j4e(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},z4e=function(e,n){var o,i,a,l,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(l=e.push("code_inline","code",0),l.markup=a,l.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},Au={};Au.tokenize=function(e,n){var o,i,a,l,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),l=i.length,f=String.fromCharCode(h),l<2))return!1;for(l%2&&(a=e.push("text","",0),a.content=f,l--),o=0;o<l;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function m1(t,e){var n,o,i,a,l,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],l=t.tokens[i.token],l.type="s_open",l.tag="s",l.nesting=1,l.markup="~~",l.content="",l=t.tokens[a.token],l.type="s_close",l.tag="s",l.nesting=-1,l.markup="~~",l.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(l=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=l)}}Au.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(m1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&m1(e,o[n].delimiters)};var Su={};Su.tokenize=function(e,n){var o,i,a,l=e.pos,f=e.src.charCodeAt(l);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function v1(t,e){var n,o,i,a,l,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,l=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?l+l:l,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?l+l:l,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Su.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(e,o[n].delimiters)};var H4e=tt.normalizeReference,ap=tt.isSpace,G4e=function(e,n){var o,i,a,l,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(d=l+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=l+1):d=l+1,a||(a=e.src.slice(f,l)),v=e.env.references[H4e(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=l,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},W4e=tt.normalizeReference,cp=tt.isSpace,Q4e=function(e,n){var o,i,a,l,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?l=e.src.slice(S,h++):h=f+1):h=f+1,l||(l=e.src.slice(d,f)),v=e.env.references[W4e(l)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},Y4e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,J4e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Z4e=function(e,n){var o,i,a,l,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(l=e.src.charCodeAt(h),l===60))return!1;if(l===62)break}return o=e.src.slice(f+1,h),J4e.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):Y4e.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},X4e=wu.HTML_TAG_RE;function K4e(t){var e=t|32;return e>=97&&e<=122}var eje=function(e,n){var o,i,a,l,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!K4e(o))||(i=e.src.slice(f).match(X4e),!i)?!1:(n||(l=e.push("html_inline","",0),l.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},g1=c_,tje=tt.has,nje=tt.isValidEntityCode,y1=tt.fromCodePoint,rje=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oje=/^&([a-z][a-z0-9]{1,31});/i,ije=function(e,n){var o,i,a,l=e.pos,f=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1<f){if(o=e.src.charCodeAt(l+1),o===35){if(a=e.src.slice(l).match(rje),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=nje(i)?y1(i):y1(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(l).match(oje),a&&tje(g1,a[1]))return n||(e.pending+=g1[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function b1(t,e){var n,o,i,a,l,f,d,h,v={},y=e.length;if(y){var g=0,E=-2,C=[];for(n=0;n<y;n++)if(i=e[n],C.push(0),(e[g].marker!==i.marker||E!==i.token-1)&&(g=n),E=i.token,i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),l=v[i.marker][(i.open?3:0)+i.length%3],o=g-C[g]-1,f=o;o>l;o-=C[o]+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?C[o-1]+1:0,C[n]=n-o+h,C[o]=h,i.open=!1,a.end=n,a.close=!1,f=-1,E=-2;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}}var sje=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(b1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&b1(e,o[n].delimiters)},aje=function(e){var n,o,i=0,a=e.tokens,l=e.tokens.length;for(n=o=0;n<l;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<l&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},Ih=Dh,E1=tt.isWhiteSpace,_1=tt.isPunctChar,k1=tt.isMdAsciiPunct;function Za(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Za.prototype.pushPending=function(){var t=new Ih("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Za.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Ih(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};Za.prototype.scanDelims=function(t,e){var n=t,o,i,a,l,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=k1(o)||_1(String.fromCharCode(o)),y=k1(i)||_1(String.fromCharCode(i)),d=E1(o),v=E1(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(l=g,f=E):(l=g&&(!E||h),f=E&&(!g||y)),{can_open:l,can_close:f,length:a}};Za.prototype.Token=Ih;var cje=Za,x1=Th,lp=[["text",P4e],["newline",V4e],["escape",U4e],["backticks",z4e],["strikethrough",Au.tokenize],["emphasis",Su.tokenize],["link",G4e],["image",Q4e],["autolink",Z4e],["html_inline",eje],["entity",ije]],up=[["balance_pairs",sje],["strikethrough",Au.postProcess],["emphasis",Su.postProcess],["text_collapse",aje]];function Xa(){var t;for(this.ruler=new x1,t=0;t<lp.length;t++)this.ruler.push(lp[t][0],lp[t][1]);for(this.ruler2=new x1,t=0;t<up.length;t++)this.ruler2.push(up[t][0],up[t][1])}Xa.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,l=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<l)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};Xa.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(t.level<l)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Xa.prototype.parse=function(t,e,n,o){var i,a,l,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),l=a.length,i=0;i<l;i++)a[i](f)};Xa.prototype.State=cje;var lje=Xa,fp,w1;function uje(){return w1||(w1=1,fp=function(t){var e={};e.src_Any=l_().source,e.src_Cc=u_().source,e.src_Z=f_().source,e.src_P=Sh.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),fp}function Zp(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Tu(t){return Object.prototype.toString.call(t)}function fje(t){return Tu(t)==="[object String]"}function pje(t){return Tu(t)==="[object Object]"}function dje(t){return Tu(t)==="[object RegExp]"}function $1(t){return Tu(t)==="[object Function]"}function hje(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var y_={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mje(t){return Object.keys(t||{}).reduce(function(e,n){return e||y_.hasOwnProperty(n)},!1)}var vje={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},gje="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",yje="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function bje(t){t.__index__=-1,t.__text_cache__=""}function Eje(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function C1(){return function(t,e){e.normalize(t)}}function Rl(t){var e=t.re=uje()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(gje),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,pje(d)){dje(d.validate)?h.validate=Eje(d.validate):$1(d.validate)?h.validate=d.validate:a(f,d),$1(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=C1();return}if(fje(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:C1()};var l=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(hje).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),bje(t)}function _je(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function A1(t,e){var n=new _je(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Rn(t,e){if(!(this instanceof Rn))return new Rn(t,e);e||mje(t)&&(e=t,t={}),this.__opts__=Zp({},y_,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Zp({},vje,t),this.__compiled__={},this.__tlds__=yje,this.__tlds_replaced__=!1,this.re={},Rl(this)}Rn.prototype.add=function(e,n){return this.__schemas__[e]=n,Rl(this),this};Rn.prototype.set=function(e){return this.__opts__=Zp(this.__opts__,e),this};Rn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,l,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=o.index+o[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=f))),this.__index__>=0};Rn.prototype.pretest=function(e){return this.re.pretest.test(e)};Rn.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Rn.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(A1(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(A1(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Rn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Rl(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Rl(this),this)};Rn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Rn.prototype.onCompile=function(){};var kje=Rn,xje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},wje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},$je={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},ua=tt,Cje=xu,Aje=R9e,Sje=i4e,Tje=M4e,Dje=lje,Nje=kje,Wo=gs,b_=Kk,Oje={default:xje,zero:wje,commonmark:$je},Ije=/^(vbscript|javascript|file|data):/,Lje=/^data:image\/(gif|png|jpeg|webp);/;function Fje(t){var e=t.trim().toLowerCase();return Ije.test(e)?!!Lje.test(e):!0}var E_=["http:","https:","mailto:"];function Rje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||E_.indexOf(e.protocol)>=0))try{e.hostname=b_.toASCII(e.hostname)}catch{}return Wo.encode(Wo.format(e))}function Mje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||E_.indexOf(e.protocol)>=0))try{e.hostname=b_.toUnicode(e.hostname)}catch{}return Wo.decode(Wo.format(e),Wo.decode.defaultChars+"%")}function Mn(t,e){if(!(this instanceof Mn))return new Mn(t,e);e||ua.isString(t)||(e=t||{},t="default"),this.inline=new Dje,this.block=new Tje,this.core=new Sje,this.renderer=new Aje,this.linkify=new Nje,this.validateLink=Fje,this.normalizeLink=Rje,this.normalizeLinkText=Mje,this.utils=ua,this.helpers=ua.assign({},Cje),this.options={},this.configure(t),e&&this.set(e)}Mn.prototype.set=function(t){return ua.assign(this.options,t),this};Mn.prototype.configure=function(t){var e=this,n;if(ua.isString(t)&&(n=t,t=Oje[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};Mn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Mn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Mn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Mn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Mn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Mn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Mn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var qje=Mn,Pje=qje;const Bje=Y1(Pje);var Vje=new Bje({breaks:!0,linkify:!0});function Tn(t){var e=t.markdown,n=t.className;return e?L.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Vje.render(e)}}):L.createElement("div",null)}var jje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Uje(){var t,e=$r({nonNull:!0}).explorerNavStack,n=jje(L.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],l=a.def;if(!l||go(l))return null;var f,d;if(l&&"args"in l&&l.args.length>0){f=L.createElement("div",{id:"doc-args",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"arguments"),l.args.filter(function(y){return!y.deprecationReason}).map(function(y){return L.createElement("div",{key:y.name,className:"doc-category-item"},L.createElement("div",null,L.createElement(Ll,{arg:y})),L.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&L.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}));var h=l.args.filter(function(y){return!!y.deprecationReason});h.length>0&&(d=L.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated arguments"),o?h.map(function(y,g){return L.createElement("div",{key:g},L.createElement("div",null,L.createElement(Ll,{arg:y})),L.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&L.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){return i(!o)}},"Show deprecated arguments...")))}var v;return!((t=l==null?void 0:l.astNode)===null||t===void 0)&&t.directives&&l.astNode.directives.length>0&&(v=L.createElement("div",{id:"doc-directives",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"directives"),l.astNode.directives.map(function(y){return L.createElement("div",{key:y.name.value,className:"doc-category-item"},L.createElement("div",null,L.createElement(Qae,{directive:y})))}))),L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:l.description||"No Description"}),l&&"deprecationReason"in l&&L.createElement(Tn,{className:"doc-deprecation",markdown:l.deprecationReason}),L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"type"),L.createElement(In,{type:l.type})),f,v,d)}function zje(){var t,e,n=Bn({nonNull:!0}).schema;if(!n)return null;var o=n.getQueryType(),i=(t=n.getMutationType)===null||t===void 0?void 0:t.call(n),a=(e=n.getSubscriptionType)===null||e===void 0?void 0:e.call(n);return L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"root types"),o?L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"query"),": ",L.createElement(In,{type:o})):null,i&&L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"mutation"),": ",L.createElement(In,{type:i})),a&&L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"subscription"),": ",L.createElement(In,{type:a}))))}function Hje(t,e){var n;return function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n&&window.clearTimeout(n),n=window.setTimeout(function(){n=null,e.apply(o,i)},t)}}var Gje=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wje=function(t){Gje(e,t);function e(n){var o=t.call(this,n)||this;return o.handleChange=function(i){var a=i.currentTarget.value;o.setState({value:a}),o.debouncedOnSearch(a)},o.handleClear=function(){o.setState({value:""}),o.props.onSearch("")},o.state={value:n.value||""},o.debouncedOnSearch=Hje(200,o.props.onSearch),o}return e.prototype.render=function(){return L.createElement("label",{className:"search-box"},L.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),L.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&L.createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},e}(L.Component);function __(t){var e=$r({nonNull:!0}).push;return L.createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),e({name:t.field.name,def:t.field})},href:"#"},t.field.name)}var Qje=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Yje(){var t,e,n=$r({nonNull:!0}).explorerNavStack,o=Bn({nonNull:!0}).schema,i=n[n.length-1];if(!o||!i.search)return null;var a=i.search,l=i.def,f=[],d=[],h=[],v=o.getTypeMap(),y=Object.keys(v);l&&(y=y.filter(function(D){return D!==l.name}),y.unshift(l.name));var g=function(D){if(f.length+d.length+h.length>=100)return"break";var T=v[D];if(l!==T&&pp(D,a)&&d.push(L.createElement("div",{className:"doc-category-item",key:D},L.createElement(In,{type:T}))),T&&"getFields"in T){var O=T.getFields();Object.keys(O).forEach(function(V){var Y=O[V],P;if(!pp(V,a))if("args"in Y&&Y.args.length){if(P=Y.args.filter(function(K){return pp(K.name,a)}),P.length===0)return}else return;var U=L.createElement("div",{className:"doc-category-item",key:D+"."+V},l!==T&&[L.createElement(In,{key:"type",type:T}),"."],L.createElement(__,{field:Y}),P&&["(",L.createElement("span",{key:"args"},P.map(function(K){return L.createElement(Ll,{key:K.name,arg:K,showDefaultValue:!1})})),")"]);l===T?f.push(U):h.push(U)})}};try{for(var E=Qje(y),C=E.next();!C.done;C=E.next()){var S=C.value,N=g(S);if(N==="break")break}}catch(D){t={error:D}}finally{try{C&&!C.done&&(e=E.return)&&e.call(E)}finally{if(t)throw t.error}}return f.length+d.length+h.length===0?L.createElement("span",{className:"doc-alert-text"},"No results found."):l&&d.length+h.length>0?L.createElement("div",null,f,L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"other results"),d,h)):L.createElement("div",{className:"doc-search-items"},f,d,h)}function pp(t,e){try{var n=e.replace(/[^_0-9A-Za-z]/g,function(o){return"\\"+o});return t.search(new RegExp(n,"i"))!==-1}catch{return t.toLowerCase().indexOf(e.toLowerCase())!==-1}}var Jje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Zje(){var t=Bn({nonNull:!0}).schema,e=$r({nonNull:!0}).explorerNavStack,n=Jje(ie.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],l=a.def;if(!t||!as(l))return null;var f=null,d=[];St(l)?(f="possible types",d=t.getPossibleTypes(l)):Ke(l)?(f="implementations",d=t.getPossibleTypes(l)):Ue(l)&&(f="implements",d=l.getInterfaces());var h;d&&d.length>0&&(h=L.createElement("div",{id:"doc-types",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},f),d.map(function(O){return L.createElement("div",{key:O.name,className:"doc-category-item"},L.createElement(In,{type:O}))})));var v,y;if(l&&"getFields"in l){var g=l.getFields(),E=Object.keys(g).map(function(O){return g[O]});v=L.createElement("div",{id:"doc-fields",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"fields"),E.filter(function(O){return!O.deprecationReason}).map(function(O){return L.createElement(S1,{key:O.name,type:l,field:O})}));var C=E.filter(function(O){return!!O.deprecationReason});C.length>0&&(y=L.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?C.map(function(O){return L.createElement(S1,{key:O.name,type:l,field:O})}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated fields...")))}var S,N;if(xt(l)){var D=l.getValues();S=L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"values"),D.filter(function(O){return!O.deprecationReason}).map(function(O){return L.createElement(T1,{key:O.name,value:O})}));var T=D.filter(function(O){return!!O.deprecationReason});T.length>0&&(N=L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated values"),o?T.map(function(O){return L.createElement(T1,{key:O.name,value:O})}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated values...")))}return L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:"description"in l&&l.description||"No Description"}),Ue(l)&&h,v,y,S,N,!Ue(l)&&h)}function S1(t){var e=t.field;return L.createElement("div",{className:"doc-category-item"},L.createElement(__,{field:e}),"args"in e&&e.args&&e.args.length>0&&["(",L.createElement("span",{key:"args"},e.args.filter(function(n){return!n.deprecationReason}).map(function(n){return L.createElement(Ll,{key:n.name,arg:n})})),")"],": ",L.createElement(In,{type:e.type}),L.createElement(a_,{field:e}),e.description&&L.createElement(Tn,{className:"field-short-description",markdown:e.description}),"deprecationReason"in e&&e.deprecationReason&&L.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function T1(t){var e=t.value;return L.createElement("div",{className:"doc-category-item"},L.createElement("div",{className:"enum-value"},e.name),L.createElement(Tn,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&L.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function k_(t){var e=Bn({nonNull:!0}),n=e.fetchError,o=e.isFetching,i=e.schema,a=e.validationErrors,l=$r({nonNull:!0}),f=l.explorerNavStack,d=l.hide,h=l.pop,v=l.showSearch,y=f[f.length-1],g=t.schema===void 0?i:t.schema,E=null;n?E=L.createElement("div",{className:"error-container"},"Error fetching schema"):a.length>0?E=L.createElement("div",{className:"error-container"},"Schema is invalid: ",a[0].message):o?E=L.createElement("div",{className:"spinner-container"},L.createElement("div",{className:"spinner"})):g?y.search?E=L.createElement(Yje,null):f.length===1?E=L.createElement(zje,null):go(y.def)?E=L.createElement(Zje,null):y.def&&(E=L.createElement(Uje,null)):E=L.createElement("div",{className:"error-container"},"No Schema Available");var C=f.length===1||go(y.def)&&"getFields"in y.def,S;return f.length>1&&(S=f[f.length-2].name),L.createElement("section",{className:"doc-explorer",key:y.name,"aria-label":"Documentation Explorer"},L.createElement("div",{className:"doc-explorer-title-bar"},S&&L.createElement("button",{type:"button",className:"doc-explorer-back",onClick:h,"aria-label":"Go back to ".concat(S)},S),L.createElement("div",{className:"doc-explorer-title"},y.title||y.name),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var N;d(),(N=t.onClose)===null||N===void 0||N.call(t)},"aria-label":"Close Documentation Explorer"},"✕"))),L.createElement("div",{className:"doc-explorer-contents"},C&&L.createElement(Wje,{value:y.search,placeholder:"Search ".concat(y.name,"..."),onSearch:v}),E))}var Ui=function(){return Ui=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ui.apply(this,arguments)},Xje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Kje(){var t=Ha({nonNull:!0}),e=t.hide,n=t.items;return L.createElement("section",{"aria-label":"History"},L.createElement("div",{className:"history-title-bar"},L.createElement("div",{className:"history-title"},"History"),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return e()},"aria-label":"Close History"},"✕"))),L.createElement("ul",{className:"history-contents"},n.slice().reverse().map(function(o,i){return L.createElement(e6e,{key:"".concat(i,":").concat(o.label||o.query),item:o})})))}function e6e(t){var e,n=Ha({nonNull:!0}),o=n.editLabel,i=n.toggleFavorite,a=Ga(),l=ie.useRef(null),f=Xje(ie.useState(!1),2),d=f[0],h=f[1];ie.useEffect(function(){d&&l.current&&l.current.focus()},[d]);var v=t.item.label||t.item.operationName||((e=t.item.query)===null||e===void 0?void 0:e.split(`
284
- `).filter(function(g){return g.indexOf("#")!==0}).join("")),y=t.item.favorite?"★":"☆";return L.createElement("li",{className:d?"editable":void 0},d?L.createElement("input",{type:"text",defaultValue:t.item.label,ref:l,onBlur:function(g){g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.target.value}))},onKeyDown:function(g){g.keyCode===13&&(g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.currentTarget.value})))},placeholder:"Type a label"}):L.createElement("button",{type:"button",className:"history-label",onClick:function(){a(t.item)}},v),L.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),h(!0)},"aria-label":"Edit label"},"✎"),L.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),i(t.item)},"aria-label":t.item.favorite?"Remove favorite":"Add favorite"},y))}function dp(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function Xp(t){return JSON.stringify(t,null,2)}function t6e(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}function D1(t){return t instanceof Error?t6e(t):t}function n6e(t){return Array.isArray(t)?Xp({errors:t.map(e=>D1(e))}):Xp({errors:[D1(t)]})}function r6e(t){return Xp(t)}function o6e(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Zn(e)}catch{return{insertions:o,result:e}}const a=n||i6e,l=new ai(t);return un(i,{leave(f){l.leave(f)},enter(f){if(l.enter(f),f.kind==="Field"&&!f.selectionSet){const d=l.getType(),h=x_(c6e(d),a);if(h&&f.loc){const v=a6e(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
285
- `+v)})}}}}),{insertions:o,result:s6e(e,o)}}function i6e(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{fn(e[o].type)&&n.push(o)}),n}function x_(t,e){const n=Rt(t);if(!t||fn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:R.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],l=a?a.type:null;return{kind:R.FIELD,name:{kind:R.NAME,value:i},selectionSet:x_(l,e)}})}}function s6e(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}function a6e(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}function c6e(t){if(t)return t}function l6e(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const l=e(a),f=o.get(l);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(l,d),i.push(d)}}else i.push(a);return i}function w_(t,e,n){var o;const i=n?Rt(n).name:null,a=[],l=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(l.indexOf(d)>=0)continue;l.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:R.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===R.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...w_(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}function u6e(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===R.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const l=n?n.getParentType():null;let{selections:f}=a;return f=w_(o,f,l),f=l6e(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return un(t,n?qa(n,i):i)}function f6e(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(l=>{var f;return(f=l.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}var Ml=function(){return Ml=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ml.apply(this,arguments)};function p6e(t){return L.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(e){e.stopPropagation(),t.onClick()}})}function d6e(t){return L.createElement("button",Ml({},t.tabProps,{role:"tab",type:"button","aria-selected":t.isActive,title:t.title,className:"tab".concat(t.isActive?" active":""),onClick:t.onSelect}),t.title,t.isCloseable?L.createElement(p6e,{onClick:function(){return t.onClose()}}):null)}function h6e(t){return L.createElement("button",{type:"button",onClick:t.onClick,className:"tab-add",title:"Create new tab"},L.createElement("span",null,"+"))}function m6e(t){return L.createElement("div",Ml({role:"tablist",className:"tabs"},t.tabsProps),t.children)}var $_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sa=function(){return Sa=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Sa.apply(this,arguments)},C_=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n},v6e=parseInt(L.version.slice(0,2),10);if(v6e<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
286
- `));var zo=function(t){$_(e,t);function e(n){var o=t.call(this,n)||this;return o.ref=null,o}return e.prototype.componentDidMount=function(){typeof window<"u"&&(window.g=this)},e.prototype.render=function(){var n=this;return L.createElement(g6e,Sa({},this.props,{ref:function(o){n.ref=o}}))},e.prototype.getQueryEditor=function(){var n;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),((n=this.ref)===null||n===void 0?void 0:n.getQueryEditor())||null},e.prototype.getVariableEditor=function(){var n;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),((n=this.ref)===null||n===void 0?void 0:n.getVariableEditor())||null},e.prototype.getHeaderEditor=function(){var n;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),((n=this.ref)===null||n===void 0?void 0:n.getHeaderEditor())||null},e.prototype.refresh=function(){var n;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),(n=this.ref)===null||n===void 0||n.refresh()},e.prototype.autoCompleteLeafs=function(){var n;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),(n=this.ref)===null||n===void 0?void 0:n.autoCompleteLeafs()},e.formatResult=function(n){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),r6e(n)},e.formatError=function(n){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),n6e(n)},e.Logo=A_,e.Toolbar=S_,e.Footer=T_,e.QueryEditor=Ch,e.VariableEditor=Ah,e.HeaderEditor=i_,e.ResultViewer=s_,e.Button=ho,e.ToolbarButton=ho,e.Group=n_,e.Menu=r_,e.MenuItem=o_,e}(L.Component),g6e=ie.forwardRef(function(e,n){var o=e.dangerouslyAssumeSchemaIsValid,i=e.docExplorerOpen,a=e.externalFragments,l=e.fetcher,f=e.headers,d=e.inputValueDeprecation,h=e.introspectionQueryName,v=e.maxHistoryLength,y=e.onEditOperationName,g=e.onSchemaChange,E=e.onToggleHistory,C=e.onToggleDocs,S=e.operationName,N=e.query,D=e.response,T=e.storage,O=e.schema,V=e.schemaDescription,Y=e.shouldPersistHeaders,P=e.validationRules,U=e.variables,K=C_(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if(typeof l!="function")throw new TypeError("GraphiQL requires a fetcher function.");return L.createElement(pu,{storage:T},L.createElement(hu,{maxHistoryLength:v,onToggle:E},L.createElement(Eu,{defaultQuery:K.defaultQuery,externalFragments:a,headers:f,onEditOperationName:y,onTabChange:typeof K.tabs=="object"?K.tabs.onTabChange:void 0,query:N,response:D,shouldPersistHeaders:Y,validationRules:P,variables:U},L.createElement(Wa,{dangerouslyAssumeSchemaIsValid:o,fetcher:l,inputValueDeprecation:d,introspectionQueryName:h,onSchemaChange:g,schema:O,schemaDescription:V},L.createElement(rs,{fetcher:l,operationName:S},L.createElement(Qa,{isVisible:i,onToggleVisibility:C},L.createElement(y6e,Sa({},K,{ref:n}))))))))}),y6e=ie.forwardRef(function(e,n){var o=e.getDefaultFieldNames,i=C_(e,["getDefaultFieldNames"]),a=rn({nonNull:!0}),l=hs({nonNull:!0}),f=$r(),d=Ha(),h=Bn({nonNull:!0}),v=$o(),y=ni({getDefaultFieldNames:o}),g=vs({onCopyQuery:i.onCopyQuery}),E=Yr(),C=Co(),S=Wi({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:f!=null&&f.isVisible?void 0:"second",onHiddenElementChange:function(T){T==="second"?f==null||f.hide():f==null||f.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),N=Wi({direction:"horizontal",storageKey:"editorFlex"}),D=Wi({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){return i.defaultVariableEditorOpen!==void 0?i.defaultVariableEditorOpen?void 0:"second":i.defaultSecondaryEditorOpen!==void 0?i.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return L.createElement(b6e,Sa({},i,{editorContext:a,executionContext:l,explorerContext:f,historyContext:d,schemaContext:h,storageContext:v,autoCompleteLeafs:y,copy:g,merge:E,prettify:C,docResize:S,editorResize:N,secondaryEditorResize:D,ref:n}))}),b6e=function(t){$_(e,t);function e(n){var o=t.call(this,n)||this;return o.state={activeSecondaryEditor:"variable"},o}return e.prototype.render=function(){var n=this,o,i,a,l,f=L.Children.toArray(this.props.children),d=dp(f,function(g){return hp(g,zo.Logo)})||L.createElement(zo.Logo,null),h=dp(f,function(g){return hp(g,zo.Toolbar)})||L.createElement(zo.Toolbar,null,L.createElement(ho,{onClick:function(){n.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),L.createElement(ho,{onClick:function(){n.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),L.createElement(ho,{onClick:function(){n.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),L.createElement(ho,{onClick:function(){var g;return(g=n.props.historyContext)===null||g===void 0?void 0:g.toggle()},title:!((o=this.props.historyContext)===null||o===void 0)&&o.isVisible?"Hide History":"Show History",label:"History"}),L.createElement(ho,{onClick:function(){return n.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),!((i=this.props.toolbar)===null||i===void 0)&&i.additionalContent?this.props.toolbar.additionalContent:null),v=dp(f,function(g){return hp(g,zo.Footer)}),y=(a=this.props.headerEditorEnabled)!==null&&a!==void 0?a:!0;return L.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},L.createElement("div",{ref:this.props.docResize.firstRef},((l=this.props.historyContext)===null||l===void 0?void 0:l.isVisible)&&L.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},L.createElement(Kje,null)),L.createElement("div",{className:"editorWrap"},L.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,L.createElement("div",{className:"topBar"},d,L.createElement(jae,null),h),this.props.explorerContext&&!this.props.explorerContext.isVisible&&L.createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var g;(g=n.props.explorerContext)===null||g===void 0||g.show(),n.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?L.createElement(m6e,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map(function(g,E){return L.createElement(d6e,{key:g.id,isActive:E===n.props.editorContext.activeTabIndex,title:g.title,isCloseable:n.props.editorContext.tabs.length>1,onSelect:function(){n.props.executionContext.stop(),n.props.editorContext.changeTab(E)},onClose:function(){n.props.editorContext.activeTabIndex===E&&n.props.executionContext.stop(),n.props.editorContext.closeTab(E)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(E)}})}),L.createElement(h6e,{onClick:function(){n.props.editorContext.addTab()}})):null,L.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},L.createElement("div",{ref:this.props.editorResize.firstRef},L.createElement("div",{className:"queryWrap"},L.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},L.createElement(Ch,{editorTheme:this.props.editorTheme,onClickReference:function(){n.props.docResize.hiddenElement==="second"&&n.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),L.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},L.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},L.createElement("div",{className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="variable"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"variable"},function(){var g;(g=n.props.editorContext.variableEditor)===null||g===void 0||g.refresh()})}},"Query Variables"),y&&L.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="header"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"header"},function(){var g;(g=n.props.editorContext.headerEditor)===null||g===void 0||g.refresh()})}},"Request Headers"))),L.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},L.createElement("section",{className:"variable-editor secondary-editor","aria-label":this.state.activeSecondaryEditor==="variable"?"Query Variables":"Request Headers"},L.createElement(Ah,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.activeSecondaryEditor==="variable",keyMap:this.props.keyMap}),y&&L.createElement(i_,{active:this.state.activeSecondaryEditor==="header",editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),L.createElement("div",{ref:this.props.editorResize.dragBarRef},L.createElement("div",{className:"editor-drag-bar"})),L.createElement("div",{ref:this.props.editorResize.secondRef},L.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&L.createElement("div",{className:"spinner-container"},L.createElement("div",{className:"spinner"})),L.createElement(s_,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),v))))),L.createElement("div",{ref:this.props.docResize.dragBarRef},L.createElement("div",{className:"docExplorerResizer"})),L.createElement("div",{ref:this.props.docResize.secondRef},L.createElement("div",{className:"docExplorerWrap"},L.createElement(k_,{onClose:function(){return n.props.docResize.setHiddenElement("second")}}))))},e.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},e.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},e.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},e.prototype.refresh=function(){var n,o,i,a;(n=this.props.editorContext.queryEditor)===null||n===void 0||n.refresh(),(o=this.props.editorContext.variableEditor)===null||o===void 0||o.refresh(),(i=this.props.editorContext.headerEditor)===null||i===void 0||i.refresh(),(a=this.props.editorContext.responseEditor)===null||a===void 0||a.refresh()},e.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},e}(L.Component);function A_(t){return L.createElement("div",{className:"title"},t.children||L.createElement("span",null,"Graph",L.createElement("em",null,"i"),"QL"))}A_.displayName="GraphiQLLogo";function S_(t){return L.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},t.children)}S_.displayName="GraphiQLToolbar";function T_(t){return L.createElement("div",{className:"footer"},t.children)}T_.displayName="GraphiQLFooter";function hp(t,e){var n;return!((n=t==null?void 0:t.type)===null||n===void 0)&&n.displayName&&t.type.displayName===e.displayName?!0:t.type===e}var E6e=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kp=function(){return Kp=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Kp.apply(this,arguments)};function _6e(t){return!(!t||typeof t!="object"||!("props"in t))}var k6e=function(t){E6e(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){al(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o,i=this.state.visible,a=L.Children.map(this.props.children,function(l,f){var d;if(!_6e(l))return null;(!o||l.props.selected)&&(o=l);var h=l.props.onSelect||((d=n.props.onSelect)===null||d===void 0?void 0:d.bind(null,l.props.value,f));return L.createElement(D_,Kp({},l.props,{onSelect:h}))});return L.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:al,ref:function(l){n._node=l},title:this.props.title},o==null?void 0:o.props.label,L.createElement("svg",{width:"13",height:"10"},L.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),L.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),L.createElement("ul",{className:"toolbar-select-options"+(i?" open":"")},a))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(al(n),this.setState({visible:!1}),this._release())},e}(L.Component);function D_(t){var e=t.onSelect,n=t.label,o=t.selected;return L.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:al,onMouseUp:e},n,o&&L.createElement("svg",{width:"13",height:"13"},L.createElement("polygon",{points:`4.851,10.462 0,5.611 2.314,3.297 4.851,5.835
287
- 10.686,0 13,2.314 4.851,10.462`})))}function al(t){t.preventDefault()}var Du=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a},Nu=function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,a;o<i;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},x6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package."),Ua.apply(void 0,Nu([],Du(e),!1))},w6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package."),o6e.apply(void 0,Nu([],Du(e),!1))},$6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package."),f6e.apply(void 0,Nu([],Du(e),!1))},C6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package."),u6e.apply(void 0,Nu([],Du(e),!1))};const A6e=Object.freeze(Object.defineProperty({__proto__:null,DocExplorer:k_,GraphiQL:zo,QueryEditor:Ch,ToolbarButton:ho,ToolbarGroup:n_,ToolbarMenu:r_,ToolbarMenuItem:o_,ToolbarSelect:k6e,ToolbarSelectOption:D_,VariableEditor:Ah,default:zo,fillLeafs:w6e,getSelectedOperationName:$6e,mergeAst:C6e,onHasCompletion:x6e},Symbol.toStringTag,{value:"Module"})),S6e=ii(A6e);var Ka={},Ou={};const Lh=ii(W$);Object.defineProperty(Ou,"__esModule",{value:!0});var T6e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N1=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tr=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();Ou.defaultValue=Fh;var D6e=ie,le=N6e(D6e),Le=Lh;function N6e(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function On(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function nr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ed(t){return t.charAt(0).toUpperCase()+t.slice(1)}var O6e={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},I6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),L6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),F6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),R6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function Iu(t){return t.checked?t.styleConfig.checkboxChecked:t.styleConfig.checkboxUnchecked}function N_(t){var e=t.getFields();if(e.id){var n=["id"];return e.email?n.push("email"):e.name&&n.push("name"),n}if(e.edges)return["edges"];if(e.node)return["node"];if(e.nodes)return["nodes"];var o=[];return Object.keys(e).forEach(function(i){(0,Le.isLeafType)(e[i].type)&&o.push(i)}),o.length?o.slice(0,2):["__typename"]}function O_(t){return(0,Le.isNonNullType)(t.type)&&t.defaultValue===void 0}function M6e(t){for(var e=t;(0,Le.isWrappingType)(e);)e=e.ofType;return e}function bo(t){for(var e=t;(0,Le.isWrappingType)(e);)e=e.ofType;return e}function I_(t,e){if(typeof e!="string"&&e.kind==="VariableDefinition")return e.variable;if((0,Le.isScalarType)(t))try{switch(t.name){case"String":return{kind:"StringValue",value:String(t.parseValue(e))};case"Float":return{kind:"FloatValue",value:String(t.parseValue(parseFloat(e)))};case"Int":return{kind:"IntValue",value:String(t.parseValue(parseInt(e,10)))};case"Boolean":try{var n=JSON.parse(e);return typeof n=="boolean"?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(t.parseValue(e))}}}catch(i){return console.error("error coercing arg value",i,e),{kind:"StringValue",value:e}}else try{var o=t.parseValue(e);return o?{kind:"EnumValue",value:String(o)}:{kind:"EnumValue",value:t.getValues()[0].name}}catch{return{kind:"EnumValue",value:t.getValues()[0].name}}}var q6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){return i.props.selection.fields.find(function(h){return h.name.value===i.props.arg.name})},i._removeArg=function(){var h=i.props.selection,v=i._getArgSelection();i._previousArgSelection=v,i.props.modifyFields(h.fields.filter(function(y){return y!==v}),!0)},i._addArg=function(){var h=i.props,v=h.selection,y=h.arg,g=h.getDefaultScalarArgValue,E=h.parentField,C=h.makeDefaultArg,S=bo(y.type),N=null;if(i._previousArgSelection)N=i._previousArgSelection;else if((0,Le.isInputObjectType)(S)){var D=S.getFields();N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:{kind:"ObjectValue",fields:Lu(g,C,E,Object.keys(D).map(function(T){return D[T]}))}}}else(0,Le.isLeafType)(S)&&(N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:g(E,y,S)});if(!N)console.error("Unable to add arg for argType",S);else return i.props.modifyFields([].concat(On(v.fields||[]),[N]),!0)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Le.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",h);return}var T=void 0,O=void 0;h===null||typeof h>"u"?O=null:!h.target&&h.kind&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"?O=h:h.target&&typeof h.target.value=="string"&&(T=h.target.value,O=I_(N,T));var V=i.props.modifyFields((C.fields||[]).map(function(Y){var P=Y===S,U=P?Ze({},Y,{value:O}):Y;return U}),v);return V},i._modifyChildFields=function(h){return i.props.modifyFields(i.props.selection.fields.map(function(v){return v.name.value===i.props.arg.name?Ze({},v,{value:{kind:"ObjectValue",fields:h}}):v}),!0)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,l=this._getArgSelection();return le.createElement(F_,{argValue:l?l.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function Fh(t){if((0,Le.isEnumType)(t))return{kind:"EnumValue",value:t.getValues()[0].name};switch(t.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function L_(t,e,n){return Fh(n)}var P6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){var h=i.props.selection;return(h.arguments||[]).find(function(v){return v.name.value===i.props.arg.name})},i._removeArg=function(h){var v=i.props.selection,y=i._getArgSelection();return i._previousArgSelection=y,i.props.modifyArguments((v.arguments||[]).filter(function(g){return g!==y}),h)},i._addArg=function(h){var v=i.props,y=v.selection,g=v.getDefaultScalarArgValue,E=v.makeDefaultArg,C=v.parentField,S=v.arg,N=bo(S.type),D=null;if(i._previousArgSelection)D=i._previousArgSelection;else if((0,Le.isInputObjectType)(N)){var T=N.getFields();D={kind:"Argument",name:{kind:"Name",value:S.name},value:{kind:"ObjectValue",fields:Lu(g,E,C,Object.keys(T).map(function(O){return T[O]}))}}}else(0,Le.isLeafType)(N)&&(D={kind:"Argument",name:{kind:"Name",value:S.name},value:g(C,S,N)});return D?i.props.modifyArguments([].concat(On(y.arguments||[]),[D]),h):(console.error("Unable to add arg for argType",N),null)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S&&!g){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Le.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var T=void 0,O=void 0;return h===null||typeof h>"u"?O=null:h.target&&typeof h.target.value=="string"?(T=h.target.value,O=I_(N,T)):!h.target&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"&&(O=h),i.props.modifyArguments((C.arguments||[]).map(function(V){return V===S?Ze({},V,{value:O}):V}),v)},i._setArgFields=function(h,v){var y=i.props.selection,g=i._getArgSelection();if(!g){console.error("missing arg selection when setting arg value");return}return i.props.modifyArguments((y.arguments||[]).map(function(E){return E===g?Ze({},E,{value:{kind:"ObjectValue",fields:h}}):E}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,l=this._getArgSelection();return le.createElement(F_,{argValue:l?l.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function B6e(t){return t.ctrlKey&&t.key==="Enter"}function V6e(t){return t!=="FragmentDefinition"}var j6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._handleChange=function(h){i.props.setArgValue(h,!0)},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){var o=this._ref,i=document.activeElement;o&&i&&!(i instanceof HTMLTextAreaElement)&&(o.focus(),o.setSelectionRange(0,o.value.length))}},{key:"render",value:function(){var o=this,i=this.props,a=i.arg,l=i.argValue,f=i.styleConfig,d=bo(a.type),h=typeof l.value=="string"?l.value:"",v=this.props.argValue.kind==="StringValue"?f.colors.string:f.colors.number;return le.createElement("span",{style:{color:v}},d.name==="String"?'"':"",le.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,h.length))+"ch",color:v},ref:function(g){o._ref=g},type:"text",onChange:this._handleChange,value:h}),d.name==="String"?'"':"")}}]),e}(le.PureComponent),F_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayArgActions:!1},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.argValue,l=i.arg,f=i.styleConfig,d=bo(l.type),h=null;if(a){if(a.kind==="Variable")h=le.createElement("span",{style:{color:f.colors.variable}},"$",a.name.value);else if((0,Le.isScalarType)(d))d.name==="Boolean"?h=le.createElement("select",{style:{color:f.colors.builtin},onChange:this.props.setArgValue,value:a.kind==="BooleanValue"?a.value:void 0},le.createElement("option",{key:"true",value:"true"},"true"),le.createElement("option",{key:"false",value:"false"},"false")):h=le.createElement(j6e,{setArgValue:this.props.setArgValue,arg:l,argValue:a,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,Le.isEnumType)(d))a.kind==="EnumValue"?h=le.createElement("select",{style:{backgroundColor:"white",color:f.colors.string2},onChange:this.props.setArgValue,value:a.value},d.getValues().map(function(S){return le.createElement("option",{key:S.name,value:S.name},S.name)})):console.error("arg mismatch between arg and selection",d,a);else if((0,Le.isInputObjectType)(d))if(a.kind==="ObjectValue"){var v=d.getFields();h=le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(S){return le.createElement(q6e,{key:S,arg:v[S],parentField:o.props.parentField,selection:a,modifyFields:o.props.setArgFields,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}))}else console.error("arg mismatch between arg and selection",d,a)}var y=function(){var N=l.name,D=(o.props.definition.variableDefinitions||[]).filter(function($e){return $e.variable.name.value.startsWith(N)}).length,T=void 0;D>0?T=""+N+D:T=N;var O=l.type.toString(),V=(0,Le.parseType)(O),Y={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:T}},type:V,directives:[]},P=function(Me){return(o.props.definition.variableDefinitions||[]).find(function(Z){return Z.variable.name.value===Me})},U=void 0,K={};if(typeof a<"u"&&a!==null){var G=(0,Le.visit)(a,{Variable:function(Me){var Z=Me.name.value,fe=P(Z);if(K[Z]=K[Z]+1||1,!!fe)return fe.defaultValue}}),Q=Y.type.kind==="NonNullType",re=Q?Ze({},Y,{type:Y.type.type}):Y;U=Ze({},re,{defaultValue:G})}else U=Y;var _e=Object.entries(K).filter(function($e){var Me=N1($e,2);Me[0];var Z=Me[1];return Z<2}).map(function($e){var Me=N1($e,2),Z=Me[0];return Me[1],Z});if(U){var H=o.props.setArgValue(U,!1);if(H){var F=H.definitions.find(function($e){return $e.operation&&$e.name&&$e.name.value&&o.props.definition.name&&o.props.definition.name.value?$e.name.value===o.props.definition.name.value:!1}),x=[].concat(On(F.variableDefinitions||[]),[U]).filter(function($e){return _e.indexOf($e.variable.name.value)===-1}),j=Ze({},F,{variableDefinitions:x}),J=H.definitions,te=J.map(function($e){return F===$e?j:$e}),pe=Ze({},H,{definitions:te});o.props.onCommit(pe)}}},g=function(){if(!(!a||!a.name||!a.name.value)){var N=a.name.value,D=(o.props.definition.variableDefinitions||[]).find(function(re){return re.variable.name.value===N});if(D){var T=D.defaultValue,O=o.props.setArgValue(T,{commit:!1});if(O){var V=O.definitions.find(function(re){return re.name.value===o.props.definition.name.value});if(!V)return;var Y=0;(0,Le.visit)(V,{Variable:function(_e){_e.name.value===N&&(Y=Y+1)}});var P=V.variableDefinitions||[];Y<2&&(P=P.filter(function(re){return re.variable.name.value!==N}));var U=Ze({},V,{variableDefinitions:P}),K=O.definitions,G=K.map(function(re){return V===re?U:re}),Q=Ze({},O,{definitions:G});o.props.onCommit(Q)}}}},E=a&&a.kind==="Variable",C=this.state.displayArgActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:E?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(N){N.preventDefault(),N.stopPropagation(),E?g():y()},style:f.styles.actionButtonStyle},le.createElement("span",{style:{color:f.colors.variable}},"$")):null;return le.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":l.name,"data-arg-type":d.name,className:"graphiql-explorer-"+l.name},le.createElement("span",{style:{cursor:"pointer"},onClick:function(N){var D=!a;D?o.props.addArg(!0):o.props.removeArg(!0),o.setState({displayArgActions:D})}},(0,Le.isInputObjectType)(d)?le.createElement("span",null,a?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):le.createElement(Iu,{checked:!!a,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:f.colors.attribute},title:l.description,onMouseEnter:function(){a!==null&&typeof a<"u"&&o.setState({displayArgActions:!0})},onMouseLeave:function(){return o.setState({displayArgActions:!1})}},l.name,O_(l)?"*":"",": ",C," ")," "),h||le.createElement("span",null)," ")}}]),e}(le.PureComponent),U6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:i.props.getDefaultFieldNames(i.props.implementingType).map(function(h){return{kind:"Field",name:{kind:"Name",value:h}}})}}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="InlineFragment"&&v.typeCondition&&i.props.implementingType.name===v.typeCondition.name.value});if(!h)return null;if(h.kind==="InlineFragment")return h},i._modifyChildSelections=function(h,v){var y=i._getSelection();return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{directives:g.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:h}}:g}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.implementingType,l=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=a.getFields(),y=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},le.createElement("span",{style:{cursor:"pointer"},onClick:h?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.atom}},this.props.implementingType.name)),h?le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(g){return le.createElement(R_,{key:g,field:v[g],selections:y,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,onCommit:o.props.onCommit,styleConfig:o.props.styleConfig,definition:o.props.definition,availableFragments:o.props.availableFragments})})):null)}}]),e}(le.PureComponent),z6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"FragmentSpread",name:i.props.fragment.name}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){var y=v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value;return!y}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value});return h},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props.styleConfig,i=this._getSelection();return le.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},le.createElement("span",{style:{cursor:"pointer"},onClick:i?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!i,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:o.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),e}(le.PureComponent);function Lu(t,e,n,o){var i=[],a=!0,l=!1,f=void 0;try{for(var d=o[Symbol.iterator](),h;!(a=(h=d.next()).done);a=!0){var v=h.value;if((0,Le.isRequiredInputField)(v)||e&&e(n,v)){var y=bo(v.type);(0,Le.isInputObjectType)(y)?function(){var g=y.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:{kind:"ObjectValue",fields:Lu(t,e,n,Object.keys(g).map(function(E){return g[E]}))}})}():(0,Le.isLeafType)(y)&&i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:t(n,v,y)})}}}catch(g){l=!0,f=g}finally{try{!a&&d.return&&d.return()}finally{if(l)throw f}}return i}function I1(t,e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=n.args[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;if(O_(h)||e&&e(n,h)){var v=bo(h.type);(0,Le.isInputObjectType)(v)?function(){var y=v.getFields();o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:{kind:"ObjectValue",fields:Lu(t,e,n,Object.keys(y).map(function(g){return y[g]}))}})}():(0,Le.isLeafType)(v)&&o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:t(n,h,v)})}}}catch(y){a=!0,l=y}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}var R_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayFieldActions:!1},i._addAllFieldsToSelections=function(h){var v=h?Object.keys(h).map(function(E){return{kind:"Field",name:{kind:"Name",value:E},arguments:[]}}):[],y={kind:"SelectionSet",selections:v},g=[].concat(On(i.props.selections.filter(function(E){return E.kind==="InlineFragment"?!0:E.name.value!==i.props.field.name})),[{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:I1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field),selectionSet:y}]);i.props.modifySelections(g)},i._addFieldToSelections=function(h){var v=[].concat(On(i.props.selections),[i._previousSelection||{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:I1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field)}]);i.props.modifySelections(v)},i._handleUpdateSelections=function(h){var v=i._getSelection();if(v&&!h.altKey)i._removeFieldFromSelections();else{var y=(0,Le.getNamedType)(i.props.field.type),g=(0,Le.isObjectType)(y)&&y.getFields(),E=!!g&&h.altKey;E?i._addAllFieldsToSelections(g):i._addFieldToSelections(g)}},i._removeFieldFromSelections=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="Field"&&i.props.field.name===v.name.value});if(!h)return null;if(h.kind==="Field")return h},i._setArguments=function(h,v){var y=i._getSelection();if(!y){console.error("Missing selection when setting arguments",h);return}return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{alias:y.alias,arguments:h,directives:y.directives,kind:"Field",name:y.name,selectionSet:y.selectionSet}:g}),v)},i._modifyChildSelections=function(h,v){return i.props.modifySelections(i.props.selections.map(function(y){if(y.kind==="Field"&&i.props.field.name===y.name.value){if(y.kind!=="Field")throw new Error("invalid selection");return{alias:y.alias,arguments:y.arguments,directives:y.directives,kind:"Field",name:y.name,selectionSet:{kind:"SelectionSet",selections:h}}}return y}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.field,l=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=M6e(a.type),y=a.args.sort(function(D,T){return D.name.localeCompare(T.name)}),g="graphiql-explorer-node graphiql-explorer-"+a.name;a.isDeprecated&&(g+=" graphiql-explorer-deprecated");var E=(0,Le.isObjectType)(v)||(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v)?this.props.availableFragments&&this.props.availableFragments[v.name]:null,C=le.createElement("div",{className:g},le.createElement("span",{title:a.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":a.name,"data-field-type":v.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var T=(0,Le.isObjectType)(v)&&h&&h.selectionSet&&h.selectionSet.selections.filter(function(O){return O.kind!=="FragmentSpread"}).length>0;T&&o.setState({displayFieldActions:!0})},onMouseLeave:function(){return o.setState({displayFieldActions:!1})}},(0,Le.isObjectType)(v)?le.createElement("span",null,h?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,Le.isObjectType)(v)?null:le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},a.name),this.state.displayFieldActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(T){T.preventDefault(),T.stopPropagation();var O=v.name,V=O+"Fragment",Y=(E||[]).filter(function(re){return re.name.value.startsWith(V)}).length;Y>0&&(V=""+V+Y);var P=h?h.selectionSet?h.selectionSet.selections:[]:[],U=[{kind:"FragmentSpread",name:{kind:"Name",value:V},directives:[]}],K={kind:"FragmentDefinition",name:{kind:"Name",value:V},typeCondition:{kind:"NamedType",name:{kind:"Name",value:v.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:P}},G=o._modifyChildSelections(U,!1);if(G){var Q=Ze({},G,{definitions:[].concat(On(G.definitions),[K])});o.props.onCommit(Q)}else console.warn("Unable to complete extractFragment operation")},style:Ze({},d.styles.actionButtonStyle)},le.createElement("span",null,"…")):null),h&&y.length?le.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},y.map(function(D){return le.createElement(P6e,{key:D.name,parentField:a,arg:D,selection:h,modifyArguments:o._setArguments,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})})):null);if(h&&((0,Le.isObjectType)(v)||(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v))){var S=(0,Le.isUnionType)(v)?{}:v.getFields(),N=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},C,le.createElement("div",{style:{marginLeft:16}},E?E.map(function(D){var T=l.getType(D.typeCondition.name.value),O=D.name.value;return T?le.createElement(z6e,{key:O,fragment:D,selections:N,modifySelections:o._modifyChildSelections,schema:l,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit}):null}):null,Object.keys(S).sort().map(function(D){return le.createElement(e,{key:D,field:S[D],selections:N,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}),(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v)?l.getPossibleTypes(v).map(function(D){return le.createElement(U6e,{key:D.name,implementingType:D,selections:N,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}):null))}return C}}]),e}(le.PureComponent);function H6e(t){try{return t.trim()?(0,Le.parse)(t,{noLocation:!0}):null}catch(e){return new Error(e)}}var G6e={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ql={kind:"Document",definitions:[G6e]},Pi=null;function W6e(t){if(Pi&&Pi[0]===t)return Pi[1];var e=H6e(t);return e?e instanceof Error?Pi?Pi[1]:ql:(Pi=[t,e],e):ql}var L1={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Q6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",displayTitleActions:!1},i._modifySelections=function(h,v){var y=i.props.definition;y.selectionSet.selections.length===0&&i._previousOperationDef&&(y=i._previousOperationDef);var g=void 0;if(y.kind==="FragmentDefinition")g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:h})});else if(y.kind==="OperationDefinition"){var E=h.filter(function(C){return!(C.kind==="Field"&&C.name.value==="__typename")});E.length===0&&(E=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:E})})}return i.props.onEdit(g,v)},i._onOperationRename=function(h){return i.props.onOperationRename(h.target.value)},i._handlePotentialRun=function(h){B6e(h)&&V6e(i.props.definition.kind)&&i.props.onRunOperation(i.props.name)},i._rootViewElId=function(){var h=i.props,v=h.operationType,y=h.name,g=v+"-"+(y||"unknown");return g},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){var o=this._rootViewElId();this.props.onMount(o)}},{key:"render",value:function(){var o=this,i=this.props,a=i.operationType,l=i.definition,f=i.schema,d=i.getDefaultFieldNames,h=i.styleConfig,v=this._rootViewElId(),y=this.props.fields||{},g=l,E=g.selectionSet.selections,C=this.props.name||ed(a)+" Name";return le.createElement("div",{id:v,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},le.createElement("div",{style:{color:h.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return o.setState({displayTitleActions:!0})},onMouseLeave:function(){return o.setState({displayTitleActions:!1})}},a," ",le.createElement("span",{style:{color:h.colors.def}},le.createElement("input",{style:{color:h.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,C.length)+"ch"},autoComplete:"false",placeholder:ed(a)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?le.createElement("span",null,le.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?le.createElement(le.Fragment,null,le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationDestroy()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"✕")),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationClone()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"⎘"))):""),Object.keys(y).sort().map(function(S){return le.createElement(R_,{key:S,field:y[S],selections:E,modifySelections:o._modifySelections,schema:f,getDefaultFieldNames:d,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}))}}]),e}(le.PureComponent);function Y6e(){return le.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},le.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",le.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),le.createElement("div",null,"Contribute on"," ",le.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var M_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",operation:null,operationToScrollTo:null},i._resetScroll=function(){var h=i._ref;h&&(h.scrollLeft=0)},i._onEdit=function(h){return i.props.onEdit(h)},i._setAddOperationType=function(h){i.setState({newOperationType:h})},i._handleRootViewMount=function(h){if(i.state.operationToScrollTo&&i.state.operationToScrollTo===h){var v=".graphiql-explorer-root #"+h,y=document.querySelector(v);y&&y.scrollIntoView()}},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var o=this,i=this.props,a=i.schema,l=i.query,f=i.makeDefaultArg;if(!a)return le.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var d={colors:this.props.colors||O6e,checkboxChecked:this.props.checkboxChecked||F6e,checkboxUnchecked:this.props.checkboxUnchecked||R6e,arrowClosed:this.props.arrowClosed||L6e,arrowOpen:this.props.arrowOpen||I6e,styles:this.props.styles?Ze({},L1,this.props.styles):L1},h=a.getQueryType(),v=a.getMutationType(),y=a.getSubscriptionType();if(!h&&!v&&!y)return le.createElement("div",null,"Missing query type");var g=h&&h.getFields(),E=v&&v.getFields(),C=y&&y.getFields(),S=W6e(l),N=this.props.getDefaultFieldNames||N_,D=this.props.getDefaultScalarArgValue||L_,T=S.definitions,O=T.map(function(x){return x.kind==="FragmentDefinition"||x.kind==="OperationDefinition"?x:null}).filter(Boolean),V=O.length===0?ql.definitions:O,Y=function(j,J){var te=J==null||J===""?null:{kind:"Name",value:J,loc:void 0},pe=Ze({},j,{name:te}),$e=S.definitions,Me=$e.map(function(Z){return j===Z?pe:Z});return Ze({},S,{definitions:Me})},P=function(j){var J=void 0;j.kind==="FragmentDefinition"?J="fragment":J=j.operation;var te=(j.name&&j.name.value||"")+"Copy",pe={kind:"Name",value:te,loc:void 0},$e=Ze({},j,{name:pe}),Me=S.definitions,Z=[].concat(On(Me),[$e]);return o.setState({operationToScrollTo:J+"-"+te}),Ze({},S,{definitions:Z})},U=function(j){var J=S.definitions,te=J.filter(function(pe){return j!==pe});return Ze({},S,{definitions:te})},K=function(j){var J=S.definitions,te=S.definitions.length===1&&S.definitions[0]===ql.definitions[0],pe=te?[]:J.filter(function(ye){return ye.kind==="OperationDefinition"?ye.operation===j:!1}),$e="My"+ed(j)+(pe.length===0?"":pe.length+1),Me="__typename # Placeholder value",Z={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:Me,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},fe={kind:"OperationDefinition",operation:j,name:{kind:"Name",value:$e},variableDefinitions:[],directives:[],selectionSet:Z,loc:null},de=te?[fe]:[].concat(On(S.definitions),[fe]),ge=Ze({},S,{definitions:de});o.setState({operationToScrollTo:j+"-"+$e}),o.props.onEdit((0,Le.print)(ge))},G=[g?le.createElement("option",{key:"query",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"query"},"Query"):null,E?le.createElement("option",{key:"mutation",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,C?le.createElement("option",{key:"subscription",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),Q=G.length===0||this.props.hideActions?null:le.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},le.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:Ze({},d.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(j){return j.preventDefault()}},le.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),le.createElement("select",{onChange:function(j){return o._setAddOperationType(j.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},G),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.state.newOperationType?K(o.state.newOperationType):null},style:Ze({},d.styles.buttonStyle,{height:"22px",width:"22px"})},le.createElement("span",null,"+")))),re=this.props.externalFragments&&this.props.externalFragments.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,O1({},J,pe))}return x},{}),_e=V.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,O1({},J,pe))}return x},{}),H=Ze({},_e,re),F=this.props.showAttribution?le.createElement(Y6e,null):null;return le.createElement("div",{ref:function(j){o._ref=j},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},le.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},V.map(function(x,j){var J=x&&x.name&&x.name.value,te=x.kind==="FragmentDefinition"?"fragment":x&&x.operation||"query",pe=function(ke){var De=Y(x,ke);o.props.onEdit((0,Le.print)(De))},$e=function(){var ke=P(x);o.props.onEdit((0,Le.print)(ke))},Me=function(){var ke=U(x);o.props.onEdit((0,Le.print)(ke))},Z=x.kind==="FragmentDefinition"&&x.typeCondition.kind==="NamedType"&&a.getType(x.typeCondition.name.value),fe=Z instanceof Le.GraphQLObjectType?Z.getFields():null,de=te==="query"?g:te==="mutation"?E:te==="subscription"?C:x.kind==="FragmentDefinition"?fe:null,ge=x.kind==="FragmentDefinition"?x.typeCondition.name.value:null,ye=function(ke){var De=(0,Le.print)(ke);o.props.onEdit(De)};return le.createElement(Q6e,{key:j,isLast:j===V.length-1,fields:de,operationType:te,name:J,definition:x,onOperationRename:pe,onOperationDestroy:Me,onOperationClone:$e,onTypeName:ge,onMount:o._handleRootViewMount,onCommit:ye,onEdit:function(ke,De){var xn=void 0;if((typeof De>"u"?"undefined":T6e(De))==="object"&&typeof De.commit<"u"?xn=De.commit:xn=!0,ke){var Ve=Ze({},S,{definitions:S.definitions.map(function(Be){return Be===x?ke:Be})});return xn&&ye(Ve),Ve}else return S},schema:a,getDefaultFieldNames:N,getDefaultScalarArgValue:D,makeDefaultArg:f,onRunOperation:function(){o.props.onRunOperation&&o.props.onRunOperation(J)},styleConfig:d,availableFragments:H})}),F),Q)}}]),e}(le.PureComponent);M_.defaultProps={getDefaultFieldNames:N_,getDefaultScalarArgValue:L_};var J6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1,error:null,errorInfo:null},o),wt(i,a)}return tr(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0,error:o,errorInfo:i}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?le.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},le.createElement("div",null,"Something went wrong"),le.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,le.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),e}(le.Component),Rh=function(t){rr(e,t);function e(){return nr(this,e),wt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return tr(e,[{key:"render",value:function(){return le.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},le.createElement("div",{className:"doc-explorer-title-bar"},le.createElement("div",{className:"doc-explorer-title"},this.props.title),le.createElement("div",{className:"doc-explorer-rhs"},le.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),le.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},le.createElement(J6e,null,le.createElement(M_,this.props))))}}]),e}(le.PureComponent);Rh.defaultValue=Fh;Rh.defaultProps={width:320,title:"Explorer"};Ou.default=Rh;Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Explorer=void 0;var Z6e=Ou,q_=X6e(Z6e);function X6e(t){return t&&t.__esModule?t:{default:t}}Ka.Explorer=q_.default;Ka.default=q_.default;var mp={exports:{}},F1;function Fu(){return F1||(F1=1,function(t,e){(function(n,o){t.exports=o()})(ex,function(){var n=navigator.userAgent,o=navigator.platform,i=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),d=a||l||f,h=d&&(a?document.documentMode||6:+(f||l)[1]),v=!f&&/WebKit\//.test(n),y=v&&/Qt\/\d+\.\d+/.test(n),g=!f&&/Chrome\/(\d+)/.exec(n),E=g&&+g[1],C=/Opera\//.test(n),S=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),D=/PhantomJS/.test(n),T=S&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),V=T||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),Y=T||/Mac/.test(o),P=/\bCrOS\b/.test(n),U=/win/i.test(o),K=C&&n.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(C=!1,v=!0);var G=Y&&(y||C&&(K==null||K<12.11)),Q=i||d&&h>=9;function re(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var _e=function(r,s){var u=r.className,c=re(s).exec(u);if(c){var p=u.slice(c.index+c[0].length);r.className=u.slice(0,c.index)+(p?c[1]+p:"")}};function H(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function F(r,s){return H(r).appendChild(s)}function x(r,s,u,c){var p=document.createElement(r);if(u&&(p.className=u),c&&(p.style.cssText=c),typeof s=="string")p.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)p.appendChild(s[m]);return p}function j(r,s,u,c){var p=x(r,s,u,c);return p.setAttribute("role","presentation"),p}var J;document.createRange?J=function(r,s,u,c){var p=document.createRange();return p.setEnd(c||r,u),p.setStart(r,s),p}:J=function(r,s,u){var c=document.body.createTextRange();try{c.moveToElementText(r.parentNode)}catch{return c}return c.collapse(!0),c.moveEnd("character",u),c.moveStart("character",s),c};function te(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function pe(r){var s;try{s=r.activeElement}catch{s=r.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function $e(r,s){var u=r.className;re(s).test(u)||(r.className+=(u?" ":"")+s)}function Me(r,s){for(var u=r.split(" "),c=0;c<u.length;c++)u[c]&&!re(u[c]).test(s)&&(s+=" "+u[c]);return s}var Z=function(r){r.select()};T?Z=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(Z=function(r){try{r.select()}catch{}});function fe(r){return r.display.wrapper.ownerDocument}function de(r){return fe(r).defaultView}function ge(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function ye(r,s,u){s||(s={});for(var c in r)r.hasOwnProperty(c)&&(u!==!1||!s.hasOwnProperty(c))&&(s[c]=r[c]);return s}function he(r,s,u,c,p){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=c||0,b=p||0;;){var _=r.indexOf(" ",m);if(_<0||_>=s)return b+(s-m);b+=_-m,b+=u-b%u,m=_+1}}var ke=function(){this.id=null,this.f=null,this.time=0,this.handler=ge(this.onTimeout,this)};ke.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},ke.prototype.set=function(r,s){this.f=s;var u=+new Date+r;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=u)};function De(r,s){for(var u=0;u<r.length;++u)if(r[u]==s)return u;return-1}var xn=50,Ve={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},So={origin:"*mouse"},Jr={origin:"+move"};function or(r,s,u){for(var c=0,p=0;;){var m=r.indexOf(" ",c);m==-1&&(m=r.length);var b=m-c;if(m==r.length||p+b>=s)return c+Math.min(b,s-p);if(p+=m-c,p+=u-p%u,c=m+1,p>=s)return c}}var wn=[""];function ir(r){for(;wn.length<=r;)wn.push(ze(wn)+" ");return wn[r]}function ze(r){return r[r.length-1]}function pi(r,s){for(var u=[],c=0;c<r.length;c++)u[c]=s(r[c],c);return u}function ec(r,s,u){for(var c=0,p=u(s);c<r.length&&u(r[c])<=p;)c++;r.splice(c,0,s)}function Es(){}function tc(r,s){var u;return Object.create?u=Object.create(r):(Es.prototype=r,u=new Es),s&&ye(s,u),u}var Uu=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _s(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Uu.test(r))}function di(r,s){return s?s.source.indexOf("\\w")>-1&&_s(r)?!0:s.test(r):_s(r)}function nc(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var hi=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ks(r){return r.charCodeAt(0)>=768&&hi.test(r)}function sr(r,s,u){for(;(u<0?s>0:s<r.length)&&ks(r.charAt(s));)s+=u;return s}function ft(r,s,u){for(var c=s>u?-1:1;;){if(s==u)return s;var p=(s+u)/2,m=c<0?Math.ceil(p):Math.floor(p);if(m==s)return r(m)?s:u;r(m)?u=m:s=m+c}}function To(r,s,u,c){if(!r)return c(s,u,"ltr",0);for(var p=!1,m=0;m<r.length;++m){var b=r[m];(b.from<u&&b.to>s||s==u&&b.to==s)&&(c(Math.max(b.from,s),Math.min(b.to,u),b.level==1?"rtl":"ltr",m),p=!0)}p||c(s,u,"ltr")}var ar=null;function $n(r,s,u){var c;ar=null;for(var p=0;p<r.length;++p){var m=r[p];if(m.from<s&&m.to>s)return p;m.to==s&&(m.from!=m.to&&u=="before"?c=p:ar=p),m.from==s&&(m.from!=m.to&&u!="before"?c=p:ar=p)}return c??ar}var zu=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(w){return w<=247?r.charAt(w):1424<=w&&w<=1524?"R":1536<=w&&w<=1785?s.charAt(w-1536):1774<=w&&w<=2220?"r":8192<=w&&w<=8203?"w":w==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,_=/[1n]/;function k(w,I,M){this.level=w,this.from=I,this.to=M}return function(w,I){var M=I=="ltr"?"L":"R";if(w.length==0||I=="ltr"&&!c.test(w))return!1;for(var W=w.length,z=[],ne=0;ne<W;++ne)z.push(u(w.charCodeAt(ne)));for(var ce=0,ue=M;ce<W;++ce){var me=z[ce];me=="m"?z[ce]=ue:ue=me}for(var Ee=0,ve=M;Ee<W;++Ee){var xe=z[Ee];xe=="1"&&ve=="r"?z[Ee]="n":m.test(xe)&&(ve=xe,xe=="r"&&(z[Ee]="R"))}for(var Se=1,Ae=z[0];Se<W-1;++Se){var Re=z[Se];Re=="+"&&Ae=="1"&&z[Se+1]=="1"?z[Se]="1":Re==","&&Ae==z[Se+1]&&(Ae=="1"||Ae=="n")&&(z[Se]=Ae),Ae=Re}for(var rt=0;rt<W;++rt){var Ot=z[rt];if(Ot==",")z[rt]="N";else if(Ot=="%"){var ut=void 0;for(ut=rt+1;ut<W&&z[ut]=="%";++ut);for(var an=rt&&z[rt-1]=="!"||ut<W&&z[ut]=="1"?"1":"N",Xt=rt;Xt<ut;++Xt)z[Xt]=an;rt=ut-1}}for(var bt=0,Kt=M;bt<W;++bt){var Mt=z[bt];Kt=="L"&&Mt=="1"?z[bt]="L":m.test(Mt)&&(Kt=Mt)}for(var Ct=0;Ct<W;++Ct)if(p.test(z[Ct])){var Et=void 0;for(Et=Ct+1;Et<W&&p.test(z[Et]);++Et);for(var ht=(Ct?z[Ct-1]:M)=="L",en=(Et<W?z[Et]:M)=="L",Fi=ht==en?ht?"L":"R":M,lo=Ct;lo<Et;++lo)z[lo]=Fi;Ct=Et-1}for(var jt=[],hr,It=0;It<W;)if(b.test(z[It])){var Pf=It;for(++It;It<W&&b.test(z[It]);++It);jt.push(new k(0,Pf,It))}else{var Mr=It,Po=jt.length,Bo=I=="rtl"?1:0;for(++It;It<W&&z[It]!="L";++It);for(var Wt=Mr;Wt<It;)if(_.test(z[Wt])){Mr<Wt&&(jt.splice(Po,0,new k(1,Mr,Wt)),Po+=Bo);var Ri=Wt;for(++Wt;Wt<It&&_.test(z[Wt]);++Wt);jt.splice(Po,0,new k(2,Ri,Wt)),Po+=Bo,Mr=Wt}else++Wt;Mr<It&&jt.splice(Po,0,new k(1,Mr,It))}return I=="ltr"&&(jt[0].level==1&&(hr=w.match(/^\s+/))&&(jt[0].from=hr[0].length,jt.unshift(new k(0,0,hr[0].length))),ze(jt).level==1&&(hr=w.match(/\s+$/))&&(ze(jt).to-=hr[0].length,jt.push(new k(0,W-hr[0].length,W)))),I=="rtl"?jt.reverse():jt}}();function Cn(r,s){var u=r.order;return u==null&&(u=r.order=zu(r.text,s)),u}var rc=[],be=function(r,s,u){if(r.addEventListener)r.addEventListener(s,u,!1);else if(r.attachEvent)r.attachEvent("on"+s,u);else{var c=r._handlers||(r._handlers={});c[s]=(c[s]||rc).concat(u)}};function xs(r,s){return r._handlers&&r._handlers[s]||rc}function Pt(r,s,u){if(r.removeEventListener)r.removeEventListener(s,u,!1);else if(r.detachEvent)r.detachEvent("on"+s,u);else{var c=r._handlers,p=c&&c[s];if(p){var m=De(p,u);m>-1&&(c[s]=p.slice(0,m).concat(p.slice(m+1)))}}}function it(r,s){var u=xs(r,s);if(u.length)for(var c=Array.prototype.slice.call(arguments,2),p=0;p<u.length;++p)u[p].apply(null,c)}function pt(r,s,u){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),it(r,u||s.type,r,s),ws(s)||s.codemirrorIgnore}function oc(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var u=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),c=0;c<s.length;++c)De(u,s[c])==-1&&u.push(s[c])}function zt(r,s){return xs(r,s).length>0}function Ht(r){r.prototype.on=function(s,u){be(this,s,u)},r.prototype.off=function(s,u){Pt(this,s,u)}}function Bt(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Do(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function ws(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Sr(r){Bt(r),Do(r)}function Yt(r){return r.target||r.srcElement}function $s(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),Y&&r.ctrlKey&&s==1&&(s=3),s}var Hu=function(){if(d&&h<9)return!1;var r=x("div");return"draggable"in r||"dragDrop"in r}(),An;function Gu(r){if(An==null){var s=x("span","​");F(r,x("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(An=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&h<8))}var u=An?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var mi;function ic(r){if(mi!=null)return mi;var s=F(r,document.createTextNode("AخA")),u=J(s,0,1).getBoundingClientRect(),c=J(s,1,2).getBoundingClientRect();return H(r),!u||u.left==u.right?!1:mi=c.right-u.right<3}var Cs=`
283
+ `,l.map=[n,e.line],!0},c4e=function(e,n,o,i){var a,l,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),l=E-h,l<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<l)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return l=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,l,!0),v.markup=y,v.map=[n,e.line],!0},u1=tt.isSpace,l4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],re=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<re&&(l=e.src.charCodeAt(Q),u1(l));){l===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=re,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],re=e.eMarks[g],!(Q>=re));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<re&&(l=e.src.charCodeAt(Q),u1(l));){l===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=re,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},u4e=tt.isSpace,f4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(l=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!u4e(f))return!1;f===a&&l++}return l<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(l+1).join(String.fromCharCode(a))),!0)},h_=tt.isSpace;function f1(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!h_(a))?-1:o}function p1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!h_(n))?-1:i}function p4e(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var d4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,re,_e,H,L,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(J=!0),(re=p1(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,re-1)),J&&D!==1)return!1}else if((re=f1(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(re)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(re-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=re,T=e.eMarks[O],v=V=e.sCount[O]+re-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(l=Q,l>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,re-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=l-e.bMarks[n],e.sCount[n]=V,l>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,l=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(L=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){L=!0;break}if(L)break;if(y){if(re=p1(e,O),re<0)break;H=e.bMarks[O]+e.tShift[O]}else if(re=f1(e,O),re<0)break;if(N!==e.src.charCodeAt(re-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&p4e(e,S),!0},h4e=tt.normalizeReference,Xc=tt.isSpace,m4e=function(e,n,o,i){var a,l,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,l=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=l,Y=f);P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=l,Y=f;P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=h4e(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},v4e=["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"],wu={},g4e="[a-zA-Z_:][a-zA-Z0-9:._-]*",y4e="[^\"'=<>`\\x00-\\x20]+",b4e="'[^']*'",E4e='"[^"]*"',_4e="(?:"+y4e+"|"+b4e+"|"+E4e+")",k4e="(?:\\s+"+g4e+"(?:\\s*=\\s*"+_4e+")?)",m_="<[A-Za-z][A-Za-z0-9\\-]*"+k4e+"*\\s*\\/?>",v_="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",x4e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",w4e="<[?][\\s\\S]*?[?]>",$4e="<![A-Z]+\\s+[^>]*>",C4e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",A4e=new RegExp("^(?:"+m_+"|"+v_+"|"+x4e+"|"+w4e+"|"+$4e+"|"+C4e+")"),S4e=new RegExp("^(?:"+m_+"|"+v_+")");wu.HTML_TAG_RE=A4e;wu.HTML_OPEN_CLOSE_TAG_RE=S4e;var T4e=v4e,D4e=wu.HTML_OPEN_CLOSE_TAG_RE,qi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+T4e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(D4e.source+"\\s*$"),/^$/,!1]],N4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<qi.length&&!qi[a][0].test(d);a++);if(a===qi.length)return!1;if(i)return qi[a][2];if(l=n+1,!qi[a][1].test(d)){for(;l<o&&!(e.sCount[l]<e.blkIndent);l++)if(h=e.bMarks[l]+e.tShift[l],v=e.eMarks[l],d=e.src.slice(h,v),qi[a][1].test(d)){d.length!==0&&l++;break}}return e.line=l,f=e.push("html_block","",0),f.map=[n,l],f.content=e.getLines(n,l,e.blkIndent,!0),!0},d1=tt.isSpace,O4e=function(e,n,o,i){var a,l,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(l=1,a=e.src.charCodeAt(++h);a===35&&h<v&&l<=6;)l++,a=e.src.charCodeAt(++h);return l>6||h<v&&!d1(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&d1(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(l),1),d.markup="########".slice(0,l),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(l),-1),d.markup="########".slice(0,l)),!0)},I4e=function(e,n,o){var i,a,l,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,l=0,f=S.length;l<f;l++)if(S[l](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},F4e=function(e,n){var o,i,a,l,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,l=v.length;a<l;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},g_=Dh,$u=tt.isSpace;function Ar(t,e,n,o){var i,a,l,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,l=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if($u(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(l),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,l=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ar.prototype.push=function(t,e,n){var o=new g_(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Ar.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Ar.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Ar.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!$u(n));e++);return e};Ar.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!$u(this.src.charCodeAt(--e)))return e+1;return e};Ar.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Ar.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Ar.prototype.getLines=function(e,n,o,i){var a,l,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(l=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&l<o;){if(f=this.src.charCodeAt(d),$u(f))f===9?l+=4-(l+this.bsCount[g])%4:l++;else if(d-y<this.tShift[g])l++;else break;d++}l>o?v[a]=new Array(l-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")};Ar.prototype.Token=g_;var L4e=Ar,R4e=Th,Kc=[["table",s4e,["paragraph","reference"]],["code",a4e],["fence",c4e,["paragraph","reference","blockquote","list"]],["blockquote",l4e,["paragraph","reference","blockquote","list"]],["hr",f4e,["paragraph","reference","blockquote","list"]],["list",d4e,["paragraph","reference","blockquote"]],["reference",m4e],["html_block",N4e,["paragraph","reference","blockquote"]],["heading",O4e,["paragraph","reference","blockquote"]],["lheading",I4e],["paragraph",F4e]];function Cu(){this.ruler=new R4e;for(var t=0;t<Kc.length;t++)this.ruler.push(Kc[t][0],Kc[t][1],{alt:(Kc[t][2]||[]).slice()})}Cu.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),l=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<l&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Cu.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Cu.prototype.State=L4e;var M4e=Cu;function q4e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var P4e=function(e,n){for(var o=e.pos;o<e.posMax&&!q4e(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},B4e=tt.isSpace,V4e=function(e,n){var o,i,a,l=e.pos;if(e.src.charCodeAt(l)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(a=o-1;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(l++;l<i&&B4e(e.src.charCodeAt(l));)l++;return e.pos=l,!0},j4e=tt.isSpace,Oh=[];for(var h1=0;h1<256;h1++)Oh.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Oh[t.charCodeAt(0)]=1});var U4e=function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&Oh[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!j4e(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},z4e=function(e,n){var o,i,a,l,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(l=e.push("code_inline","code",0),l.markup=a,l.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},Au={};Au.tokenize=function(e,n){var o,i,a,l,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),l=i.length,f=String.fromCharCode(h),l<2))return!1;for(l%2&&(a=e.push("text","",0),a.content=f,l--),o=0;o<l;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function m1(t,e){var n,o,i,a,l,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],l=t.tokens[i.token],l.type="s_open",l.tag="s",l.nesting=1,l.markup="~~",l.content="",l=t.tokens[a.token],l.type="s_close",l.tag="s",l.nesting=-1,l.markup="~~",l.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(l=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=l)}}Au.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(m1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&m1(e,o[n].delimiters)};var Su={};Su.tokenize=function(e,n){var o,i,a,l=e.pos,f=e.src.charCodeAt(l);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function v1(t,e){var n,o,i,a,l,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,l=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?l+l:l,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?l+l:l,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Su.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(e,o[n].delimiters)};var H4e=tt.normalizeReference,ap=tt.isSpace,G4e=function(e,n){var o,i,a,l,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(d=l+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=l+1):d=l+1,a||(a=e.src.slice(f,l)),v=e.env.references[H4e(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=l,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},W4e=tt.normalizeReference,cp=tt.isSpace,Q4e=function(e,n){var o,i,a,l,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?l=e.src.slice(S,h++):h=f+1):h=f+1,l||(l=e.src.slice(d,f)),v=e.env.references[W4e(l)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},Y4e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,J4e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Z4e=function(e,n){var o,i,a,l,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(l=e.src.charCodeAt(h),l===60))return!1;if(l===62)break}return o=e.src.slice(f+1,h),J4e.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):Y4e.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},X4e=wu.HTML_TAG_RE;function K4e(t){var e=t|32;return e>=97&&e<=122}var eje=function(e,n){var o,i,a,l,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!K4e(o))||(i=e.src.slice(f).match(X4e),!i)?!1:(n||(l=e.push("html_inline","",0),l.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},g1=c_,tje=tt.has,nje=tt.isValidEntityCode,y1=tt.fromCodePoint,rje=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oje=/^&([a-z][a-z0-9]{1,31});/i,ije=function(e,n){var o,i,a,l=e.pos,f=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1<f){if(o=e.src.charCodeAt(l+1),o===35){if(a=e.src.slice(l).match(rje),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=nje(i)?y1(i):y1(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(l).match(oje),a&&tje(g1,a[1]))return n||(e.pending+=g1[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function b1(t,e){var n,o,i,a,l,f,d,h,v={},y=e.length;if(y){var g=0,E=-2,C=[];for(n=0;n<y;n++)if(i=e[n],C.push(0),(e[g].marker!==i.marker||E!==i.token-1)&&(g=n),E=i.token,i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),l=v[i.marker][(i.open?3:0)+i.length%3],o=g-C[g]-1,f=o;o>l;o-=C[o]+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?C[o-1]+1:0,C[n]=n-o+h,C[o]=h,i.open=!1,a.end=n,a.close=!1,f=-1,E=-2;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}}var sje=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(b1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&b1(e,o[n].delimiters)},aje=function(e){var n,o,i=0,a=e.tokens,l=e.tokens.length;for(n=o=0;n<l;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<l&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},Ih=Dh,E1=tt.isWhiteSpace,_1=tt.isPunctChar,k1=tt.isMdAsciiPunct;function Za(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Za.prototype.pushPending=function(){var t=new Ih("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Za.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Ih(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};Za.prototype.scanDelims=function(t,e){var n=t,o,i,a,l,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=k1(o)||_1(String.fromCharCode(o)),y=k1(i)||_1(String.fromCharCode(i)),d=E1(o),v=E1(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(l=g,f=E):(l=g&&(!E||h),f=E&&(!g||y)),{can_open:l,can_close:f,length:a}};Za.prototype.Token=Ih;var cje=Za,x1=Th,lp=[["text",P4e],["newline",V4e],["escape",U4e],["backticks",z4e],["strikethrough",Au.tokenize],["emphasis",Su.tokenize],["link",G4e],["image",Q4e],["autolink",Z4e],["html_inline",eje],["entity",ije]],up=[["balance_pairs",sje],["strikethrough",Au.postProcess],["emphasis",Su.postProcess],["text_collapse",aje]];function Xa(){var t;for(this.ruler=new x1,t=0;t<lp.length;t++)this.ruler.push(lp[t][0],lp[t][1]);for(this.ruler2=new x1,t=0;t<up.length;t++)this.ruler2.push(up[t][0],up[t][1])}Xa.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,l=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<l)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};Xa.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(t.level<l)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Xa.prototype.parse=function(t,e,n,o){var i,a,l,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),l=a.length,i=0;i<l;i++)a[i](f)};Xa.prototype.State=cje;var lje=Xa,fp,w1;function uje(){return w1||(w1=1,fp=function(t){var e={};e.src_Any=l_().source,e.src_Cc=u_().source,e.src_Z=f_().source,e.src_P=Sh.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),fp}function Zp(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Tu(t){return Object.prototype.toString.call(t)}function fje(t){return Tu(t)==="[object String]"}function pje(t){return Tu(t)==="[object Object]"}function dje(t){return Tu(t)==="[object RegExp]"}function $1(t){return Tu(t)==="[object Function]"}function hje(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var y_={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mje(t){return Object.keys(t||{}).reduce(function(e,n){return e||y_.hasOwnProperty(n)},!1)}var vje={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},gje="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",yje="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function bje(t){t.__index__=-1,t.__text_cache__=""}function Eje(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function C1(){return function(t,e){e.normalize(t)}}function Rl(t){var e=t.re=uje()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(gje),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,pje(d)){dje(d.validate)?h.validate=Eje(d.validate):$1(d.validate)?h.validate=d.validate:a(f,d),$1(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=C1();return}if(fje(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:C1()};var l=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(hje).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),bje(t)}function _je(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function A1(t,e){var n=new _je(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Rn(t,e){if(!(this instanceof Rn))return new Rn(t,e);e||mje(t)&&(e=t,t={}),this.__opts__=Zp({},y_,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Zp({},vje,t),this.__compiled__={},this.__tlds__=yje,this.__tlds_replaced__=!1,this.re={},Rl(this)}Rn.prototype.add=function(e,n){return this.__schemas__[e]=n,Rl(this),this};Rn.prototype.set=function(e){return this.__opts__=Zp(this.__opts__,e),this};Rn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,l,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=o.index+o[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=f))),this.__index__>=0};Rn.prototype.pretest=function(e){return this.re.pretest.test(e)};Rn.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Rn.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(A1(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(A1(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Rn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Rl(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Rl(this),this)};Rn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Rn.prototype.onCompile=function(){};var kje=Rn,xje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},wje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},$je={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},ua=tt,Cje=xu,Aje=R9e,Sje=i4e,Tje=M4e,Dje=lje,Nje=kje,Wo=gs,b_=Kk,Oje={default:xje,zero:wje,commonmark:$je},Ije=/^(vbscript|javascript|file|data):/,Fje=/^data:image\/(gif|png|jpeg|webp);/;function Lje(t){var e=t.trim().toLowerCase();return Ije.test(e)?!!Fje.test(e):!0}var E_=["http:","https:","mailto:"];function Rje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||E_.indexOf(e.protocol)>=0))try{e.hostname=b_.toASCII(e.hostname)}catch{}return Wo.encode(Wo.format(e))}function Mje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||E_.indexOf(e.protocol)>=0))try{e.hostname=b_.toUnicode(e.hostname)}catch{}return Wo.decode(Wo.format(e),Wo.decode.defaultChars+"%")}function Mn(t,e){if(!(this instanceof Mn))return new Mn(t,e);e||ua.isString(t)||(e=t||{},t="default"),this.inline=new Dje,this.block=new Tje,this.core=new Sje,this.renderer=new Aje,this.linkify=new Nje,this.validateLink=Lje,this.normalizeLink=Rje,this.normalizeLinkText=Mje,this.utils=ua,this.helpers=ua.assign({},Cje),this.options={},this.configure(t),e&&this.set(e)}Mn.prototype.set=function(t){return ua.assign(this.options,t),this};Mn.prototype.configure=function(t){var e=this,n;if(ua.isString(t)&&(n=t,t=Oje[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};Mn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Mn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Mn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Mn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Mn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Mn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Mn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var qje=Mn,Pje=qje;const Bje=Y1(Pje);var Vje=new Bje({breaks:!0,linkify:!0});function Tn(t){var e=t.markdown,n=t.className;return e?F.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Vje.render(e)}}):F.createElement("div",null)}var jje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Uje(){var t,e=$r({nonNull:!0}).explorerNavStack,n=jje(F.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],l=a.def;if(!l||go(l))return null;var f,d;if(l&&"args"in l&&l.args.length>0){f=F.createElement("div",{id:"doc-args",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"arguments"),l.args.filter(function(y){return!y.deprecationReason}).map(function(y){return F.createElement("div",{key:y.name,className:"doc-category-item"},F.createElement("div",null,F.createElement(Fl,{arg:y})),F.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&F.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}));var h=l.args.filter(function(y){return!!y.deprecationReason});h.length>0&&(d=F.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"deprecated arguments"),o?h.map(function(y,g){return F.createElement("div",{key:g},F.createElement("div",null,F.createElement(Fl,{arg:y})),F.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&F.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}):F.createElement("button",{type:"button",className:"show-btn",onClick:function(){return i(!o)}},"Show deprecated arguments...")))}var v;return!((t=l==null?void 0:l.astNode)===null||t===void 0)&&t.directives&&l.astNode.directives.length>0&&(v=F.createElement("div",{id:"doc-directives",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"directives"),l.astNode.directives.map(function(y){return F.createElement("div",{key:y.name.value,className:"doc-category-item"},F.createElement("div",null,F.createElement(Qae,{directive:y})))}))),F.createElement("div",null,F.createElement(Tn,{className:"doc-type-description",markdown:l.description||"No Description"}),l&&"deprecationReason"in l&&F.createElement(Tn,{className:"doc-deprecation",markdown:l.deprecationReason}),F.createElement("div",{className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"type"),F.createElement(In,{type:l.type})),f,v,d)}function zje(){var t,e,n=Bn({nonNull:!0}).schema;if(!n)return null;var o=n.getQueryType(),i=(t=n.getMutationType)===null||t===void 0?void 0:t.call(n),a=(e=n.getSubscriptionType)===null||e===void 0?void 0:e.call(n);return F.createElement("div",null,F.createElement(Tn,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),F.createElement("div",{className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"root types"),o?F.createElement("div",{className:"doc-category-item"},F.createElement("span",{className:"keyword"},"query"),": ",F.createElement(In,{type:o})):null,i&&F.createElement("div",{className:"doc-category-item"},F.createElement("span",{className:"keyword"},"mutation"),": ",F.createElement(In,{type:i})),a&&F.createElement("div",{className:"doc-category-item"},F.createElement("span",{className:"keyword"},"subscription"),": ",F.createElement(In,{type:a}))))}function Hje(t,e){var n;return function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n&&window.clearTimeout(n),n=window.setTimeout(function(){n=null,e.apply(o,i)},t)}}var Gje=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wje=function(t){Gje(e,t);function e(n){var o=t.call(this,n)||this;return o.handleChange=function(i){var a=i.currentTarget.value;o.setState({value:a}),o.debouncedOnSearch(a)},o.handleClear=function(){o.setState({value:""}),o.props.onSearch("")},o.state={value:n.value||""},o.debouncedOnSearch=Hje(200,o.props.onSearch),o}return e.prototype.render=function(){return F.createElement("label",{className:"search-box"},F.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),F.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&F.createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},e}(F.Component);function __(t){var e=$r({nonNull:!0}).push;return F.createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),e({name:t.field.name,def:t.field})},href:"#"},t.field.name)}var Qje=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Yje(){var t,e,n=$r({nonNull:!0}).explorerNavStack,o=Bn({nonNull:!0}).schema,i=n[n.length-1];if(!o||!i.search)return null;var a=i.search,l=i.def,f=[],d=[],h=[],v=o.getTypeMap(),y=Object.keys(v);l&&(y=y.filter(function(D){return D!==l.name}),y.unshift(l.name));var g=function(D){if(f.length+d.length+h.length>=100)return"break";var T=v[D];if(l!==T&&pp(D,a)&&d.push(F.createElement("div",{className:"doc-category-item",key:D},F.createElement(In,{type:T}))),T&&"getFields"in T){var O=T.getFields();Object.keys(O).forEach(function(V){var Y=O[V],P;if(!pp(V,a))if("args"in Y&&Y.args.length){if(P=Y.args.filter(function(K){return pp(K.name,a)}),P.length===0)return}else return;var U=F.createElement("div",{className:"doc-category-item",key:D+"."+V},l!==T&&[F.createElement(In,{key:"type",type:T}),"."],F.createElement(__,{field:Y}),P&&["(",F.createElement("span",{key:"args"},P.map(function(K){return F.createElement(Fl,{key:K.name,arg:K,showDefaultValue:!1})})),")"]);l===T?f.push(U):h.push(U)})}};try{for(var E=Qje(y),C=E.next();!C.done;C=E.next()){var S=C.value,N=g(S);if(N==="break")break}}catch(D){t={error:D}}finally{try{C&&!C.done&&(e=E.return)&&e.call(E)}finally{if(t)throw t.error}}return f.length+d.length+h.length===0?F.createElement("span",{className:"doc-alert-text"},"No results found."):l&&d.length+h.length>0?F.createElement("div",null,f,F.createElement("div",{className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"other results"),d,h)):F.createElement("div",{className:"doc-search-items"},f,d,h)}function pp(t,e){try{var n=e.replace(/[^_0-9A-Za-z]/g,function(o){return"\\"+o});return t.search(new RegExp(n,"i"))!==-1}catch{return t.toLowerCase().indexOf(e.toLowerCase())!==-1}}var Jje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Zje(){var t=Bn({nonNull:!0}).schema,e=$r({nonNull:!0}).explorerNavStack,n=Jje(ie.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],l=a.def;if(!t||!as(l))return null;var f=null,d=[];St(l)?(f="possible types",d=t.getPossibleTypes(l)):Ke(l)?(f="implementations",d=t.getPossibleTypes(l)):Ue(l)&&(f="implements",d=l.getInterfaces());var h;d&&d.length>0&&(h=F.createElement("div",{id:"doc-types",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},f),d.map(function(O){return F.createElement("div",{key:O.name,className:"doc-category-item"},F.createElement(In,{type:O}))})));var v,y;if(l&&"getFields"in l){var g=l.getFields(),E=Object.keys(g).map(function(O){return g[O]});v=F.createElement("div",{id:"doc-fields",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"fields"),E.filter(function(O){return!O.deprecationReason}).map(function(O){return F.createElement(S1,{key:O.name,type:l,field:O})}));var C=E.filter(function(O){return!!O.deprecationReason});C.length>0&&(y=F.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?C.map(function(O){return F.createElement(S1,{key:O.name,type:l,field:O})}):F.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated fields...")))}var S,N;if(xt(l)){var D=l.getValues();S=F.createElement("div",{className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"values"),D.filter(function(O){return!O.deprecationReason}).map(function(O){return F.createElement(T1,{key:O.name,value:O})}));var T=D.filter(function(O){return!!O.deprecationReason});T.length>0&&(N=F.createElement("div",{className:"doc-category"},F.createElement("div",{className:"doc-category-title"},"deprecated values"),o?T.map(function(O){return F.createElement(T1,{key:O.name,value:O})}):F.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated values...")))}return F.createElement("div",null,F.createElement(Tn,{className:"doc-type-description",markdown:"description"in l&&l.description||"No Description"}),Ue(l)&&h,v,y,S,N,!Ue(l)&&h)}function S1(t){var e=t.field;return F.createElement("div",{className:"doc-category-item"},F.createElement(__,{field:e}),"args"in e&&e.args&&e.args.length>0&&["(",F.createElement("span",{key:"args"},e.args.filter(function(n){return!n.deprecationReason}).map(function(n){return F.createElement(Fl,{key:n.name,arg:n})})),")"],": ",F.createElement(In,{type:e.type}),F.createElement(a_,{field:e}),e.description&&F.createElement(Tn,{className:"field-short-description",markdown:e.description}),"deprecationReason"in e&&e.deprecationReason&&F.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function T1(t){var e=t.value;return F.createElement("div",{className:"doc-category-item"},F.createElement("div",{className:"enum-value"},e.name),F.createElement(Tn,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&F.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function k_(t){var e=Bn({nonNull:!0}),n=e.fetchError,o=e.isFetching,i=e.schema,a=e.validationErrors,l=$r({nonNull:!0}),f=l.explorerNavStack,d=l.hide,h=l.pop,v=l.showSearch,y=f[f.length-1],g=t.schema===void 0?i:t.schema,E=null;n?E=F.createElement("div",{className:"error-container"},"Error fetching schema"):a.length>0?E=F.createElement("div",{className:"error-container"},"Schema is invalid: ",a[0].message):o?E=F.createElement("div",{className:"spinner-container"},F.createElement("div",{className:"spinner"})):g?y.search?E=F.createElement(Yje,null):f.length===1?E=F.createElement(zje,null):go(y.def)?E=F.createElement(Zje,null):y.def&&(E=F.createElement(Uje,null)):E=F.createElement("div",{className:"error-container"},"No Schema Available");var C=f.length===1||go(y.def)&&"getFields"in y.def,S;return f.length>1&&(S=f[f.length-2].name),F.createElement("section",{className:"doc-explorer",key:y.name,"aria-label":"Documentation Explorer"},F.createElement("div",{className:"doc-explorer-title-bar"},S&&F.createElement("button",{type:"button",className:"doc-explorer-back",onClick:h,"aria-label":"Go back to ".concat(S)},S),F.createElement("div",{className:"doc-explorer-title"},y.title||y.name),F.createElement("div",{className:"doc-explorer-rhs"},F.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var N;d(),(N=t.onClose)===null||N===void 0||N.call(t)},"aria-label":"Close Documentation Explorer"},"✕"))),F.createElement("div",{className:"doc-explorer-contents"},C&&F.createElement(Wje,{value:y.search,placeholder:"Search ".concat(y.name,"..."),onSearch:v}),E))}var Ui=function(){return Ui=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ui.apply(this,arguments)},Xje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a};function Kje(){var t=Ha({nonNull:!0}),e=t.hide,n=t.items;return F.createElement("section",{"aria-label":"History"},F.createElement("div",{className:"history-title-bar"},F.createElement("div",{className:"history-title"},"History"),F.createElement("div",{className:"doc-explorer-rhs"},F.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return e()},"aria-label":"Close History"},"✕"))),F.createElement("ul",{className:"history-contents"},n.slice().reverse().map(function(o,i){return F.createElement(e6e,{key:"".concat(i,":").concat(o.label||o.query),item:o})})))}function e6e(t){var e,n=Ha({nonNull:!0}),o=n.editLabel,i=n.toggleFavorite,a=Ga(),l=ie.useRef(null),f=Xje(ie.useState(!1),2),d=f[0],h=f[1];ie.useEffect(function(){d&&l.current&&l.current.focus()},[d]);var v=t.item.label||t.item.operationName||((e=t.item.query)===null||e===void 0?void 0:e.split(`
284
+ `).filter(function(g){return g.indexOf("#")!==0}).join("")),y=t.item.favorite?"★":"☆";return F.createElement("li",{className:d?"editable":void 0},d?F.createElement("input",{type:"text",defaultValue:t.item.label,ref:l,onBlur:function(g){g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.target.value}))},onKeyDown:function(g){g.keyCode===13&&(g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.currentTarget.value})))},placeholder:"Type a label"}):F.createElement("button",{type:"button",className:"history-label",onClick:function(){a(t.item)}},v),F.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),h(!0)},"aria-label":"Edit label"},"✎"),F.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),i(t.item)},"aria-label":t.item.favorite?"Remove favorite":"Add favorite"},y))}function dp(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function Xp(t){return JSON.stringify(t,null,2)}function t6e(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}function D1(t){return t instanceof Error?t6e(t):t}function n6e(t){return Array.isArray(t)?Xp({errors:t.map(e=>D1(e))}):Xp({errors:[D1(t)]})}function r6e(t){return Xp(t)}function o6e(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Zn(e)}catch{return{insertions:o,result:e}}const a=n||i6e,l=new ai(t);return un(i,{leave(f){l.leave(f)},enter(f){if(l.enter(f),f.kind==="Field"&&!f.selectionSet){const d=l.getType(),h=x_(c6e(d),a);if(h&&f.loc){const v=a6e(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
285
+ `+v)})}}}}),{insertions:o,result:s6e(e,o)}}function i6e(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{fn(e[o].type)&&n.push(o)}),n}function x_(t,e){const n=Rt(t);if(!t||fn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:R.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],l=a?a.type:null;return{kind:R.FIELD,name:{kind:R.NAME,value:i},selectionSet:x_(l,e)}})}}function s6e(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}function a6e(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}function c6e(t){if(t)return t}function l6e(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const l=e(a),f=o.get(l);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(l,d),i.push(d)}}else i.push(a);return i}function w_(t,e,n){var o;const i=n?Rt(n).name:null,a=[],l=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(l.indexOf(d)>=0)continue;l.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:R.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===R.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...w_(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}function u6e(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===R.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const l=n?n.getParentType():null;let{selections:f}=a;return f=w_(o,f,l),f=l6e(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return un(t,n?qa(n,i):i)}function f6e(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(l=>{var f;return(f=l.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}var Ml=function(){return Ml=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ml.apply(this,arguments)};function p6e(t){return F.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(e){e.stopPropagation(),t.onClick()}})}function d6e(t){return F.createElement("button",Ml({},t.tabProps,{role:"tab",type:"button","aria-selected":t.isActive,title:t.title,className:"tab".concat(t.isActive?" active":""),onClick:t.onSelect}),t.title,t.isCloseable?F.createElement(p6e,{onClick:function(){return t.onClose()}}):null)}function h6e(t){return F.createElement("button",{type:"button",onClick:t.onClick,className:"tab-add",title:"Create new tab"},F.createElement("span",null,"+"))}function m6e(t){return F.createElement("div",Ml({role:"tablist",className:"tabs"},t.tabsProps),t.children)}var $_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sa=function(){return Sa=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Sa.apply(this,arguments)},C_=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n},v6e=parseInt(F.version.slice(0,2),10);if(v6e<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
286
+ `));var zo=function(t){$_(e,t);function e(n){var o=t.call(this,n)||this;return o.ref=null,o}return e.prototype.componentDidMount=function(){typeof window<"u"&&(window.g=this)},e.prototype.render=function(){var n=this;return F.createElement(g6e,Sa({},this.props,{ref:function(o){n.ref=o}}))},e.prototype.getQueryEditor=function(){var n;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),((n=this.ref)===null||n===void 0?void 0:n.getQueryEditor())||null},e.prototype.getVariableEditor=function(){var n;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),((n=this.ref)===null||n===void 0?void 0:n.getVariableEditor())||null},e.prototype.getHeaderEditor=function(){var n;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),((n=this.ref)===null||n===void 0?void 0:n.getHeaderEditor())||null},e.prototype.refresh=function(){var n;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),(n=this.ref)===null||n===void 0||n.refresh()},e.prototype.autoCompleteLeafs=function(){var n;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),(n=this.ref)===null||n===void 0?void 0:n.autoCompleteLeafs()},e.formatResult=function(n){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),r6e(n)},e.formatError=function(n){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),n6e(n)},e.Logo=A_,e.Toolbar=S_,e.Footer=T_,e.QueryEditor=Ch,e.VariableEditor=Ah,e.HeaderEditor=i_,e.ResultViewer=s_,e.Button=ho,e.ToolbarButton=ho,e.Group=n_,e.Menu=r_,e.MenuItem=o_,e}(F.Component),g6e=ie.forwardRef(function(e,n){var o=e.dangerouslyAssumeSchemaIsValid,i=e.docExplorerOpen,a=e.externalFragments,l=e.fetcher,f=e.headers,d=e.inputValueDeprecation,h=e.introspectionQueryName,v=e.maxHistoryLength,y=e.onEditOperationName,g=e.onSchemaChange,E=e.onToggleHistory,C=e.onToggleDocs,S=e.operationName,N=e.query,D=e.response,T=e.storage,O=e.schema,V=e.schemaDescription,Y=e.shouldPersistHeaders,P=e.validationRules,U=e.variables,K=C_(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if(typeof l!="function")throw new TypeError("GraphiQL requires a fetcher function.");return F.createElement(pu,{storage:T},F.createElement(hu,{maxHistoryLength:v,onToggle:E},F.createElement(Eu,{defaultQuery:K.defaultQuery,externalFragments:a,headers:f,onEditOperationName:y,onTabChange:typeof K.tabs=="object"?K.tabs.onTabChange:void 0,query:N,response:D,shouldPersistHeaders:Y,validationRules:P,variables:U},F.createElement(Wa,{dangerouslyAssumeSchemaIsValid:o,fetcher:l,inputValueDeprecation:d,introspectionQueryName:h,onSchemaChange:g,schema:O,schemaDescription:V},F.createElement(rs,{fetcher:l,operationName:S},F.createElement(Qa,{isVisible:i,onToggleVisibility:C},F.createElement(y6e,Sa({},K,{ref:n}))))))))}),y6e=ie.forwardRef(function(e,n){var o=e.getDefaultFieldNames,i=C_(e,["getDefaultFieldNames"]),a=rn({nonNull:!0}),l=hs({nonNull:!0}),f=$r(),d=Ha(),h=Bn({nonNull:!0}),v=$o(),y=ni({getDefaultFieldNames:o}),g=vs({onCopyQuery:i.onCopyQuery}),E=Yr(),C=Co(),S=Wi({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:f!=null&&f.isVisible?void 0:"second",onHiddenElementChange:function(T){T==="second"?f==null||f.hide():f==null||f.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),N=Wi({direction:"horizontal",storageKey:"editorFlex"}),D=Wi({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){return i.defaultVariableEditorOpen!==void 0?i.defaultVariableEditorOpen?void 0:"second":i.defaultSecondaryEditorOpen!==void 0?i.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return F.createElement(b6e,Sa({},i,{editorContext:a,executionContext:l,explorerContext:f,historyContext:d,schemaContext:h,storageContext:v,autoCompleteLeafs:y,copy:g,merge:E,prettify:C,docResize:S,editorResize:N,secondaryEditorResize:D,ref:n}))}),b6e=function(t){$_(e,t);function e(n){var o=t.call(this,n)||this;return o.state={activeSecondaryEditor:"variable"},o}return e.prototype.render=function(){var n=this,o,i,a,l,f=F.Children.toArray(this.props.children),d=dp(f,function(g){return hp(g,zo.Logo)})||F.createElement(zo.Logo,null),h=dp(f,function(g){return hp(g,zo.Toolbar)})||F.createElement(zo.Toolbar,null,F.createElement(ho,{onClick:function(){n.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),F.createElement(ho,{onClick:function(){n.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),F.createElement(ho,{onClick:function(){n.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),F.createElement(ho,{onClick:function(){var g;return(g=n.props.historyContext)===null||g===void 0?void 0:g.toggle()},title:!((o=this.props.historyContext)===null||o===void 0)&&o.isVisible?"Hide History":"Show History",label:"History"}),F.createElement(ho,{onClick:function(){return n.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),!((i=this.props.toolbar)===null||i===void 0)&&i.additionalContent?this.props.toolbar.additionalContent:null),v=dp(f,function(g){return hp(g,zo.Footer)}),y=(a=this.props.headerEditorEnabled)!==null&&a!==void 0?a:!0;return F.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},F.createElement("div",{ref:this.props.docResize.firstRef},((l=this.props.historyContext)===null||l===void 0?void 0:l.isVisible)&&F.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},F.createElement(Kje,null)),F.createElement("div",{className:"editorWrap"},F.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,F.createElement("div",{className:"topBar"},d,F.createElement(jae,null),h),this.props.explorerContext&&!this.props.explorerContext.isVisible&&F.createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var g;(g=n.props.explorerContext)===null||g===void 0||g.show(),n.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?F.createElement(m6e,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map(function(g,E){return F.createElement(d6e,{key:g.id,isActive:E===n.props.editorContext.activeTabIndex,title:g.title,isCloseable:n.props.editorContext.tabs.length>1,onSelect:function(){n.props.executionContext.stop(),n.props.editorContext.changeTab(E)},onClose:function(){n.props.editorContext.activeTabIndex===E&&n.props.executionContext.stop(),n.props.editorContext.closeTab(E)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(E)}})}),F.createElement(h6e,{onClick:function(){n.props.editorContext.addTab()}})):null,F.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},F.createElement("div",{ref:this.props.editorResize.firstRef},F.createElement("div",{className:"queryWrap"},F.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},F.createElement(Ch,{editorTheme:this.props.editorTheme,onClickReference:function(){n.props.docResize.hiddenElement==="second"&&n.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),F.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},F.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},F.createElement("div",{className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="variable"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"variable"},function(){var g;(g=n.props.editorContext.variableEditor)===null||g===void 0||g.refresh()})}},"Query Variables"),y&&F.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="header"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"header"},function(){var g;(g=n.props.editorContext.headerEditor)===null||g===void 0||g.refresh()})}},"Request Headers"))),F.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},F.createElement("section",{className:"variable-editor secondary-editor","aria-label":this.state.activeSecondaryEditor==="variable"?"Query Variables":"Request Headers"},F.createElement(Ah,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.activeSecondaryEditor==="variable",keyMap:this.props.keyMap}),y&&F.createElement(i_,{active:this.state.activeSecondaryEditor==="header",editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),F.createElement("div",{ref:this.props.editorResize.dragBarRef},F.createElement("div",{className:"editor-drag-bar"})),F.createElement("div",{ref:this.props.editorResize.secondRef},F.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&F.createElement("div",{className:"spinner-container"},F.createElement("div",{className:"spinner"})),F.createElement(s_,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),v))))),F.createElement("div",{ref:this.props.docResize.dragBarRef},F.createElement("div",{className:"docExplorerResizer"})),F.createElement("div",{ref:this.props.docResize.secondRef},F.createElement("div",{className:"docExplorerWrap"},F.createElement(k_,{onClose:function(){return n.props.docResize.setHiddenElement("second")}}))))},e.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},e.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},e.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},e.prototype.refresh=function(){var n,o,i,a;(n=this.props.editorContext.queryEditor)===null||n===void 0||n.refresh(),(o=this.props.editorContext.variableEditor)===null||o===void 0||o.refresh(),(i=this.props.editorContext.headerEditor)===null||i===void 0||i.refresh(),(a=this.props.editorContext.responseEditor)===null||a===void 0||a.refresh()},e.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},e}(F.Component);function A_(t){return F.createElement("div",{className:"title"},t.children||F.createElement("span",null,"Graph",F.createElement("em",null,"i"),"QL"))}A_.displayName="GraphiQLLogo";function S_(t){return F.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},t.children)}S_.displayName="GraphiQLToolbar";function T_(t){return F.createElement("div",{className:"footer"},t.children)}T_.displayName="GraphiQLFooter";function hp(t,e){var n;return!((n=t==null?void 0:t.type)===null||n===void 0)&&n.displayName&&t.type.displayName===e.displayName?!0:t.type===e}var E6e=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kp=function(){return Kp=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Kp.apply(this,arguments)};function _6e(t){return!(!t||typeof t!="object"||!("props"in t))}var k6e=function(t){E6e(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){al(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o,i=this.state.visible,a=F.Children.map(this.props.children,function(l,f){var d;if(!_6e(l))return null;(!o||l.props.selected)&&(o=l);var h=l.props.onSelect||((d=n.props.onSelect)===null||d===void 0?void 0:d.bind(null,l.props.value,f));return F.createElement(D_,Kp({},l.props,{onSelect:h}))});return F.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:al,ref:function(l){n._node=l},title:this.props.title},o==null?void 0:o.props.label,F.createElement("svg",{width:"13",height:"10"},F.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),F.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),F.createElement("ul",{className:"toolbar-select-options"+(i?" open":"")},a))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(al(n),this.setState({visible:!1}),this._release())},e}(F.Component);function D_(t){var e=t.onSelect,n=t.label,o=t.selected;return F.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:al,onMouseUp:e},n,o&&F.createElement("svg",{width:"13",height:"13"},F.createElement("polygon",{points:`4.851,10.462 0,5.611 2.314,3.297 4.851,5.835
287
+ 10.686,0 13,2.314 4.851,10.462`})))}function al(t){t.preventDefault()}var Du=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a},Nu=function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,a;o<i;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},x6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package."),Ua.apply(void 0,Nu([],Du(e),!1))},w6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package."),o6e.apply(void 0,Nu([],Du(e),!1))},$6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package."),f6e.apply(void 0,Nu([],Du(e),!1))},C6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package."),u6e.apply(void 0,Nu([],Du(e),!1))};const A6e=Object.freeze(Object.defineProperty({__proto__:null,DocExplorer:k_,GraphiQL:zo,QueryEditor:Ch,ToolbarButton:ho,ToolbarGroup:n_,ToolbarMenu:r_,ToolbarMenuItem:o_,ToolbarSelect:k6e,ToolbarSelectOption:D_,VariableEditor:Ah,default:zo,fillLeafs:w6e,getSelectedOperationName:$6e,mergeAst:C6e,onHasCompletion:x6e},Symbol.toStringTag,{value:"Module"})),S6e=ii(A6e);var Ka={},Ou={};const Fh=ii(W$);Object.defineProperty(Ou,"__esModule",{value:!0});var T6e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N1=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tr=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();Ou.defaultValue=Lh;var D6e=ie,le=N6e(D6e),Fe=Fh;function N6e(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function On(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function nr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ed(t){return t.charAt(0).toUpperCase()+t.slice(1)}var O6e={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},I6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),F6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),L6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),R6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function Iu(t){return t.checked?t.styleConfig.checkboxChecked:t.styleConfig.checkboxUnchecked}function N_(t){var e=t.getFields();if(e.id){var n=["id"];return e.email?n.push("email"):e.name&&n.push("name"),n}if(e.edges)return["edges"];if(e.node)return["node"];if(e.nodes)return["nodes"];var o=[];return Object.keys(e).forEach(function(i){(0,Fe.isLeafType)(e[i].type)&&o.push(i)}),o.length?o.slice(0,2):["__typename"]}function O_(t){return(0,Fe.isNonNullType)(t.type)&&t.defaultValue===void 0}function M6e(t){for(var e=t;(0,Fe.isWrappingType)(e);)e=e.ofType;return e}function bo(t){for(var e=t;(0,Fe.isWrappingType)(e);)e=e.ofType;return e}function I_(t,e){if(typeof e!="string"&&e.kind==="VariableDefinition")return e.variable;if((0,Fe.isScalarType)(t))try{switch(t.name){case"String":return{kind:"StringValue",value:String(t.parseValue(e))};case"Float":return{kind:"FloatValue",value:String(t.parseValue(parseFloat(e)))};case"Int":return{kind:"IntValue",value:String(t.parseValue(parseInt(e,10)))};case"Boolean":try{var n=JSON.parse(e);return typeof n=="boolean"?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(t.parseValue(e))}}}catch(i){return console.error("error coercing arg value",i,e),{kind:"StringValue",value:e}}else try{var o=t.parseValue(e);return o?{kind:"EnumValue",value:String(o)}:{kind:"EnumValue",value:t.getValues()[0].name}}catch{return{kind:"EnumValue",value:t.getValues()[0].name}}}var q6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){return i.props.selection.fields.find(function(h){return h.name.value===i.props.arg.name})},i._removeArg=function(){var h=i.props.selection,v=i._getArgSelection();i._previousArgSelection=v,i.props.modifyFields(h.fields.filter(function(y){return y!==v}),!0)},i._addArg=function(){var h=i.props,v=h.selection,y=h.arg,g=h.getDefaultScalarArgValue,E=h.parentField,C=h.makeDefaultArg,S=bo(y.type),N=null;if(i._previousArgSelection)N=i._previousArgSelection;else if((0,Fe.isInputObjectType)(S)){var D=S.getFields();N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:{kind:"ObjectValue",fields:Fu(g,C,E,Object.keys(D).map(function(T){return D[T]}))}}}else(0,Fe.isLeafType)(S)&&(N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:g(E,y,S)});if(!N)console.error("Unable to add arg for argType",S);else return i.props.modifyFields([].concat(On(v.fields||[]),[N]),!0)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Fe.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",h);return}var T=void 0,O=void 0;h===null||typeof h>"u"?O=null:!h.target&&h.kind&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"?O=h:h.target&&typeof h.target.value=="string"&&(T=h.target.value,O=I_(N,T));var V=i.props.modifyFields((C.fields||[]).map(function(Y){var P=Y===S,U=P?Ze({},Y,{value:O}):Y;return U}),v);return V},i._modifyChildFields=function(h){return i.props.modifyFields(i.props.selection.fields.map(function(v){return v.name.value===i.props.arg.name?Ze({},v,{value:{kind:"ObjectValue",fields:h}}):v}),!0)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,l=this._getArgSelection();return le.createElement(L_,{argValue:l?l.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function Lh(t){if((0,Fe.isEnumType)(t))return{kind:"EnumValue",value:t.getValues()[0].name};switch(t.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function F_(t,e,n){return Lh(n)}var P6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){var h=i.props.selection;return(h.arguments||[]).find(function(v){return v.name.value===i.props.arg.name})},i._removeArg=function(h){var v=i.props.selection,y=i._getArgSelection();return i._previousArgSelection=y,i.props.modifyArguments((v.arguments||[]).filter(function(g){return g!==y}),h)},i._addArg=function(h){var v=i.props,y=v.selection,g=v.getDefaultScalarArgValue,E=v.makeDefaultArg,C=v.parentField,S=v.arg,N=bo(S.type),D=null;if(i._previousArgSelection)D=i._previousArgSelection;else if((0,Fe.isInputObjectType)(N)){var T=N.getFields();D={kind:"Argument",name:{kind:"Name",value:S.name},value:{kind:"ObjectValue",fields:Fu(g,E,C,Object.keys(T).map(function(O){return T[O]}))}}}else(0,Fe.isLeafType)(N)&&(D={kind:"Argument",name:{kind:"Name",value:S.name},value:g(C,S,N)});return D?i.props.modifyArguments([].concat(On(y.arguments||[]),[D]),h):(console.error("Unable to add arg for argType",N),null)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S&&!g){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Fe.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var T=void 0,O=void 0;return h===null||typeof h>"u"?O=null:h.target&&typeof h.target.value=="string"?(T=h.target.value,O=I_(N,T)):!h.target&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"&&(O=h),i.props.modifyArguments((C.arguments||[]).map(function(V){return V===S?Ze({},V,{value:O}):V}),v)},i._setArgFields=function(h,v){var y=i.props.selection,g=i._getArgSelection();if(!g){console.error("missing arg selection when setting arg value");return}return i.props.modifyArguments((y.arguments||[]).map(function(E){return E===g?Ze({},E,{value:{kind:"ObjectValue",fields:h}}):E}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,l=this._getArgSelection();return le.createElement(L_,{argValue:l?l.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function B6e(t){return t.ctrlKey&&t.key==="Enter"}function V6e(t){return t!=="FragmentDefinition"}var j6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._handleChange=function(h){i.props.setArgValue(h,!0)},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){var o=this._ref,i=document.activeElement;o&&i&&!(i instanceof HTMLTextAreaElement)&&(o.focus(),o.setSelectionRange(0,o.value.length))}},{key:"render",value:function(){var o=this,i=this.props,a=i.arg,l=i.argValue,f=i.styleConfig,d=bo(a.type),h=typeof l.value=="string"?l.value:"",v=this.props.argValue.kind==="StringValue"?f.colors.string:f.colors.number;return le.createElement("span",{style:{color:v}},d.name==="String"?'"':"",le.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,h.length))+"ch",color:v},ref:function(g){o._ref=g},type:"text",onChange:this._handleChange,value:h}),d.name==="String"?'"':"")}}]),e}(le.PureComponent),L_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayArgActions:!1},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.argValue,l=i.arg,f=i.styleConfig,d=bo(l.type),h=null;if(a){if(a.kind==="Variable")h=le.createElement("span",{style:{color:f.colors.variable}},"$",a.name.value);else if((0,Fe.isScalarType)(d))d.name==="Boolean"?h=le.createElement("select",{style:{color:f.colors.builtin},onChange:this.props.setArgValue,value:a.kind==="BooleanValue"?a.value:void 0},le.createElement("option",{key:"true",value:"true"},"true"),le.createElement("option",{key:"false",value:"false"},"false")):h=le.createElement(j6e,{setArgValue:this.props.setArgValue,arg:l,argValue:a,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,Fe.isEnumType)(d))a.kind==="EnumValue"?h=le.createElement("select",{style:{backgroundColor:"white",color:f.colors.string2},onChange:this.props.setArgValue,value:a.value},d.getValues().map(function(S){return le.createElement("option",{key:S.name,value:S.name},S.name)})):console.error("arg mismatch between arg and selection",d,a);else if((0,Fe.isInputObjectType)(d))if(a.kind==="ObjectValue"){var v=d.getFields();h=le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(S){return le.createElement(q6e,{key:S,arg:v[S],parentField:o.props.parentField,selection:a,modifyFields:o.props.setArgFields,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}))}else console.error("arg mismatch between arg and selection",d,a)}var y=function(){var N=l.name,D=(o.props.definition.variableDefinitions||[]).filter(function($e){return $e.variable.name.value.startsWith(N)}).length,T=void 0;D>0?T=""+N+D:T=N;var O=l.type.toString(),V=(0,Fe.parseType)(O),Y={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:T}},type:V,directives:[]},P=function(Me){return(o.props.definition.variableDefinitions||[]).find(function(Z){return Z.variable.name.value===Me})},U=void 0,K={};if(typeof a<"u"&&a!==null){var G=(0,Fe.visit)(a,{Variable:function(Me){var Z=Me.name.value,fe=P(Z);if(K[Z]=K[Z]+1||1,!!fe)return fe.defaultValue}}),Q=Y.type.kind==="NonNullType",re=Q?Ze({},Y,{type:Y.type.type}):Y;U=Ze({},re,{defaultValue:G})}else U=Y;var _e=Object.entries(K).filter(function($e){var Me=N1($e,2);Me[0];var Z=Me[1];return Z<2}).map(function($e){var Me=N1($e,2),Z=Me[0];return Me[1],Z});if(U){var H=o.props.setArgValue(U,!1);if(H){var L=H.definitions.find(function($e){return $e.operation&&$e.name&&$e.name.value&&o.props.definition.name&&o.props.definition.name.value?$e.name.value===o.props.definition.name.value:!1}),x=[].concat(On(L.variableDefinitions||[]),[U]).filter(function($e){return _e.indexOf($e.variable.name.value)===-1}),j=Ze({},L,{variableDefinitions:x}),J=H.definitions,te=J.map(function($e){return L===$e?j:$e}),pe=Ze({},H,{definitions:te});o.props.onCommit(pe)}}},g=function(){if(!(!a||!a.name||!a.name.value)){var N=a.name.value,D=(o.props.definition.variableDefinitions||[]).find(function(re){return re.variable.name.value===N});if(D){var T=D.defaultValue,O=o.props.setArgValue(T,{commit:!1});if(O){var V=O.definitions.find(function(re){return re.name.value===o.props.definition.name.value});if(!V)return;var Y=0;(0,Fe.visit)(V,{Variable:function(_e){_e.name.value===N&&(Y=Y+1)}});var P=V.variableDefinitions||[];Y<2&&(P=P.filter(function(re){return re.variable.name.value!==N}));var U=Ze({},V,{variableDefinitions:P}),K=O.definitions,G=K.map(function(re){return V===re?U:re}),Q=Ze({},O,{definitions:G});o.props.onCommit(Q)}}}},E=a&&a.kind==="Variable",C=this.state.displayArgActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:E?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(N){N.preventDefault(),N.stopPropagation(),E?g():y()},style:f.styles.actionButtonStyle},le.createElement("span",{style:{color:f.colors.variable}},"$")):null;return le.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":l.name,"data-arg-type":d.name,className:"graphiql-explorer-"+l.name},le.createElement("span",{style:{cursor:"pointer"},onClick:function(N){var D=!a;D?o.props.addArg(!0):o.props.removeArg(!0),o.setState({displayArgActions:D})}},(0,Fe.isInputObjectType)(d)?le.createElement("span",null,a?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):le.createElement(Iu,{checked:!!a,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:f.colors.attribute},title:l.description,onMouseEnter:function(){a!==null&&typeof a<"u"&&o.setState({displayArgActions:!0})},onMouseLeave:function(){return o.setState({displayArgActions:!1})}},l.name,O_(l)?"*":"",": ",C," ")," "),h||le.createElement("span",null)," ")}}]),e}(le.PureComponent),U6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:i.props.getDefaultFieldNames(i.props.implementingType).map(function(h){return{kind:"Field",name:{kind:"Name",value:h}}})}}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="InlineFragment"&&v.typeCondition&&i.props.implementingType.name===v.typeCondition.name.value});if(!h)return null;if(h.kind==="InlineFragment")return h},i._modifyChildSelections=function(h,v){var y=i._getSelection();return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{directives:g.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:h}}:g}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.implementingType,l=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=a.getFields(),y=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},le.createElement("span",{style:{cursor:"pointer"},onClick:h?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.atom}},this.props.implementingType.name)),h?le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(g){return le.createElement(R_,{key:g,field:v[g],selections:y,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,onCommit:o.props.onCommit,styleConfig:o.props.styleConfig,definition:o.props.definition,availableFragments:o.props.availableFragments})})):null)}}]),e}(le.PureComponent),z6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"FragmentSpread",name:i.props.fragment.name}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){var y=v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value;return!y}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value});return h},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this.props.styleConfig,i=this._getSelection();return le.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},le.createElement("span",{style:{cursor:"pointer"},onClick:i?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!i,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:o.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),e}(le.PureComponent);function Fu(t,e,n,o){var i=[],a=!0,l=!1,f=void 0;try{for(var d=o[Symbol.iterator](),h;!(a=(h=d.next()).done);a=!0){var v=h.value;if((0,Fe.isRequiredInputField)(v)||e&&e(n,v)){var y=bo(v.type);(0,Fe.isInputObjectType)(y)?function(){var g=y.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:{kind:"ObjectValue",fields:Fu(t,e,n,Object.keys(g).map(function(E){return g[E]}))}})}():(0,Fe.isLeafType)(y)&&i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:t(n,v,y)})}}}catch(g){l=!0,f=g}finally{try{!a&&d.return&&d.return()}finally{if(l)throw f}}return i}function I1(t,e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=n.args[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;if(O_(h)||e&&e(n,h)){var v=bo(h.type);(0,Fe.isInputObjectType)(v)?function(){var y=v.getFields();o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:{kind:"ObjectValue",fields:Fu(t,e,n,Object.keys(y).map(function(g){return y[g]}))}})}():(0,Fe.isLeafType)(v)&&o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:t(n,h,v)})}}}catch(y){a=!0,l=y}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}var R_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayFieldActions:!1},i._addAllFieldsToSelections=function(h){var v=h?Object.keys(h).map(function(E){return{kind:"Field",name:{kind:"Name",value:E},arguments:[]}}):[],y={kind:"SelectionSet",selections:v},g=[].concat(On(i.props.selections.filter(function(E){return E.kind==="InlineFragment"?!0:E.name.value!==i.props.field.name})),[{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:I1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field),selectionSet:y}]);i.props.modifySelections(g)},i._addFieldToSelections=function(h){var v=[].concat(On(i.props.selections),[i._previousSelection||{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:I1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field)}]);i.props.modifySelections(v)},i._handleUpdateSelections=function(h){var v=i._getSelection();if(v&&!h.altKey)i._removeFieldFromSelections();else{var y=(0,Fe.getNamedType)(i.props.field.type),g=(0,Fe.isObjectType)(y)&&y.getFields(),E=!!g&&h.altKey;E?i._addAllFieldsToSelections(g):i._addFieldToSelections(g)}},i._removeFieldFromSelections=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="Field"&&i.props.field.name===v.name.value});if(!h)return null;if(h.kind==="Field")return h},i._setArguments=function(h,v){var y=i._getSelection();if(!y){console.error("Missing selection when setting arguments",h);return}return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{alias:y.alias,arguments:h,directives:y.directives,kind:"Field",name:y.name,selectionSet:y.selectionSet}:g}),v)},i._modifyChildSelections=function(h,v){return i.props.modifySelections(i.props.selections.map(function(y){if(y.kind==="Field"&&i.props.field.name===y.name.value){if(y.kind!=="Field")throw new Error("invalid selection");return{alias:y.alias,arguments:y.arguments,directives:y.directives,kind:"Field",name:y.name,selectionSet:{kind:"SelectionSet",selections:h}}}return y}),v)},o),wt(i,a)}return tr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.field,l=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=M6e(a.type),y=a.args.sort(function(D,T){return D.name.localeCompare(T.name)}),g="graphiql-explorer-node graphiql-explorer-"+a.name;a.isDeprecated&&(g+=" graphiql-explorer-deprecated");var E=(0,Fe.isObjectType)(v)||(0,Fe.isInterfaceType)(v)||(0,Fe.isUnionType)(v)?this.props.availableFragments&&this.props.availableFragments[v.name]:null,C=le.createElement("div",{className:g},le.createElement("span",{title:a.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":a.name,"data-field-type":v.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var T=(0,Fe.isObjectType)(v)&&h&&h.selectionSet&&h.selectionSet.selections.filter(function(O){return O.kind!=="FragmentSpread"}).length>0;T&&o.setState({displayFieldActions:!0})},onMouseLeave:function(){return o.setState({displayFieldActions:!1})}},(0,Fe.isObjectType)(v)?le.createElement("span",null,h?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,Fe.isObjectType)(v)?null:le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},a.name),this.state.displayFieldActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(T){T.preventDefault(),T.stopPropagation();var O=v.name,V=O+"Fragment",Y=(E||[]).filter(function(re){return re.name.value.startsWith(V)}).length;Y>0&&(V=""+V+Y);var P=h?h.selectionSet?h.selectionSet.selections:[]:[],U=[{kind:"FragmentSpread",name:{kind:"Name",value:V},directives:[]}],K={kind:"FragmentDefinition",name:{kind:"Name",value:V},typeCondition:{kind:"NamedType",name:{kind:"Name",value:v.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:P}},G=o._modifyChildSelections(U,!1);if(G){var Q=Ze({},G,{definitions:[].concat(On(G.definitions),[K])});o.props.onCommit(Q)}else console.warn("Unable to complete extractFragment operation")},style:Ze({},d.styles.actionButtonStyle)},le.createElement("span",null,"…")):null),h&&y.length?le.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},y.map(function(D){return le.createElement(P6e,{key:D.name,parentField:a,arg:D,selection:h,modifyArguments:o._setArguments,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})})):null);if(h&&((0,Fe.isObjectType)(v)||(0,Fe.isInterfaceType)(v)||(0,Fe.isUnionType)(v))){var S=(0,Fe.isUnionType)(v)?{}:v.getFields(),N=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},C,le.createElement("div",{style:{marginLeft:16}},E?E.map(function(D){var T=l.getType(D.typeCondition.name.value),O=D.name.value;return T?le.createElement(z6e,{key:O,fragment:D,selections:N,modifySelections:o._modifyChildSelections,schema:l,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit}):null}):null,Object.keys(S).sort().map(function(D){return le.createElement(e,{key:D,field:S[D],selections:N,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}),(0,Fe.isInterfaceType)(v)||(0,Fe.isUnionType)(v)?l.getPossibleTypes(v).map(function(D){return le.createElement(U6e,{key:D.name,implementingType:D,selections:N,modifySelections:o._modifyChildSelections,schema:l,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}):null))}return C}}]),e}(le.PureComponent);function H6e(t){try{return t.trim()?(0,Fe.parse)(t,{noLocation:!0}):null}catch(e){return new Error(e)}}var G6e={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ql={kind:"Document",definitions:[G6e]},Pi=null;function W6e(t){if(Pi&&Pi[0]===t)return Pi[1];var e=H6e(t);return e?e instanceof Error?Pi?Pi[1]:ql:(Pi=[t,e],e):ql}var F1={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Q6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",displayTitleActions:!1},i._modifySelections=function(h,v){var y=i.props.definition;y.selectionSet.selections.length===0&&i._previousOperationDef&&(y=i._previousOperationDef);var g=void 0;if(y.kind==="FragmentDefinition")g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:h})});else if(y.kind==="OperationDefinition"){var E=h.filter(function(C){return!(C.kind==="Field"&&C.name.value==="__typename")});E.length===0&&(E=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:E})})}return i.props.onEdit(g,v)},i._onOperationRename=function(h){return i.props.onOperationRename(h.target.value)},i._handlePotentialRun=function(h){B6e(h)&&V6e(i.props.definition.kind)&&i.props.onRunOperation(i.props.name)},i._rootViewElId=function(){var h=i.props,v=h.operationType,y=h.name,g=v+"-"+(y||"unknown");return g},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){var o=this._rootViewElId();this.props.onMount(o)}},{key:"render",value:function(){var o=this,i=this.props,a=i.operationType,l=i.definition,f=i.schema,d=i.getDefaultFieldNames,h=i.styleConfig,v=this._rootViewElId(),y=this.props.fields||{},g=l,E=g.selectionSet.selections,C=this.props.name||ed(a)+" Name";return le.createElement("div",{id:v,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},le.createElement("div",{style:{color:h.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return o.setState({displayTitleActions:!0})},onMouseLeave:function(){return o.setState({displayTitleActions:!1})}},a," ",le.createElement("span",{style:{color:h.colors.def}},le.createElement("input",{style:{color:h.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,C.length)+"ch"},autoComplete:"false",placeholder:ed(a)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?le.createElement("span",null,le.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?le.createElement(le.Fragment,null,le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationDestroy()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"✕")),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationClone()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"⎘"))):""),Object.keys(y).sort().map(function(S){return le.createElement(R_,{key:S,field:y[S],selections:E,modifySelections:o._modifySelections,schema:f,getDefaultFieldNames:d,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}))}}]),e}(le.PureComponent);function Y6e(){return le.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},le.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",le.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),le.createElement("div",null,"Contribute on"," ",le.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var M_=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",operation:null,operationToScrollTo:null},i._resetScroll=function(){var h=i._ref;h&&(h.scrollLeft=0)},i._onEdit=function(h){return i.props.onEdit(h)},i._setAddOperationType=function(h){i.setState({newOperationType:h})},i._handleRootViewMount=function(h){if(i.state.operationToScrollTo&&i.state.operationToScrollTo===h){var v=".graphiql-explorer-root #"+h,y=document.querySelector(v);y&&y.scrollIntoView()}},o),wt(i,a)}return tr(e,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var o=this,i=this.props,a=i.schema,l=i.query,f=i.makeDefaultArg;if(!a)return le.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var d={colors:this.props.colors||O6e,checkboxChecked:this.props.checkboxChecked||L6e,checkboxUnchecked:this.props.checkboxUnchecked||R6e,arrowClosed:this.props.arrowClosed||F6e,arrowOpen:this.props.arrowOpen||I6e,styles:this.props.styles?Ze({},F1,this.props.styles):F1},h=a.getQueryType(),v=a.getMutationType(),y=a.getSubscriptionType();if(!h&&!v&&!y)return le.createElement("div",null,"Missing query type");var g=h&&h.getFields(),E=v&&v.getFields(),C=y&&y.getFields(),S=W6e(l),N=this.props.getDefaultFieldNames||N_,D=this.props.getDefaultScalarArgValue||F_,T=S.definitions,O=T.map(function(x){return x.kind==="FragmentDefinition"||x.kind==="OperationDefinition"?x:null}).filter(Boolean),V=O.length===0?ql.definitions:O,Y=function(j,J){var te=J==null||J===""?null:{kind:"Name",value:J,loc:void 0},pe=Ze({},j,{name:te}),$e=S.definitions,Me=$e.map(function(Z){return j===Z?pe:Z});return Ze({},S,{definitions:Me})},P=function(j){var J=void 0;j.kind==="FragmentDefinition"?J="fragment":J=j.operation;var te=(j.name&&j.name.value||"")+"Copy",pe={kind:"Name",value:te,loc:void 0},$e=Ze({},j,{name:pe}),Me=S.definitions,Z=[].concat(On(Me),[$e]);return o.setState({operationToScrollTo:J+"-"+te}),Ze({},S,{definitions:Z})},U=function(j){var J=S.definitions,te=J.filter(function(pe){return j!==pe});return Ze({},S,{definitions:te})},K=function(j){var J=S.definitions,te=S.definitions.length===1&&S.definitions[0]===ql.definitions[0],pe=te?[]:J.filter(function(ye){return ye.kind==="OperationDefinition"?ye.operation===j:!1}),$e="My"+ed(j)+(pe.length===0?"":pe.length+1),Me="__typename # Placeholder value",Z={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:Me,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},fe={kind:"OperationDefinition",operation:j,name:{kind:"Name",value:$e},variableDefinitions:[],directives:[],selectionSet:Z,loc:null},de=te?[fe]:[].concat(On(S.definitions),[fe]),ge=Ze({},S,{definitions:de});o.setState({operationToScrollTo:j+"-"+$e}),o.props.onEdit((0,Fe.print)(ge))},G=[g?le.createElement("option",{key:"query",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"query"},"Query"):null,E?le.createElement("option",{key:"mutation",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,C?le.createElement("option",{key:"subscription",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),Q=G.length===0||this.props.hideActions?null:le.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},le.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:Ze({},d.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(j){return j.preventDefault()}},le.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),le.createElement("select",{onChange:function(j){return o._setAddOperationType(j.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},G),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.state.newOperationType?K(o.state.newOperationType):null},style:Ze({},d.styles.buttonStyle,{height:"22px",width:"22px"})},le.createElement("span",null,"+")))),re=this.props.externalFragments&&this.props.externalFragments.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,O1({},J,pe))}return x},{}),_e=V.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,O1({},J,pe))}return x},{}),H=Ze({},_e,re),L=this.props.showAttribution?le.createElement(Y6e,null):null;return le.createElement("div",{ref:function(j){o._ref=j},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},le.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},V.map(function(x,j){var J=x&&x.name&&x.name.value,te=x.kind==="FragmentDefinition"?"fragment":x&&x.operation||"query",pe=function(ke){var De=Y(x,ke);o.props.onEdit((0,Fe.print)(De))},$e=function(){var ke=P(x);o.props.onEdit((0,Fe.print)(ke))},Me=function(){var ke=U(x);o.props.onEdit((0,Fe.print)(ke))},Z=x.kind==="FragmentDefinition"&&x.typeCondition.kind==="NamedType"&&a.getType(x.typeCondition.name.value),fe=Z instanceof Fe.GraphQLObjectType?Z.getFields():null,de=te==="query"?g:te==="mutation"?E:te==="subscription"?C:x.kind==="FragmentDefinition"?fe:null,ge=x.kind==="FragmentDefinition"?x.typeCondition.name.value:null,ye=function(ke){var De=(0,Fe.print)(ke);o.props.onEdit(De)};return le.createElement(Q6e,{key:j,isLast:j===V.length-1,fields:de,operationType:te,name:J,definition:x,onOperationRename:pe,onOperationDestroy:Me,onOperationClone:$e,onTypeName:ge,onMount:o._handleRootViewMount,onCommit:ye,onEdit:function(ke,De){var xn=void 0;if((typeof De>"u"?"undefined":T6e(De))==="object"&&typeof De.commit<"u"?xn=De.commit:xn=!0,ke){var Ve=Ze({},S,{definitions:S.definitions.map(function(Be){return Be===x?ke:Be})});return xn&&ye(Ve),Ve}else return S},schema:a,getDefaultFieldNames:N,getDefaultScalarArgValue:D,makeDefaultArg:f,onRunOperation:function(){o.props.onRunOperation&&o.props.onRunOperation(J)},styleConfig:d,availableFragments:H})}),L),Q)}}]),e}(le.PureComponent);M_.defaultProps={getDefaultFieldNames:N_,getDefaultScalarArgValue:F_};var J6e=function(t){rr(e,t);function e(){var n,o,i,a;nr(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1,error:null,errorInfo:null},o),wt(i,a)}return tr(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0,error:o,errorInfo:i}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?le.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},le.createElement("div",null,"Something went wrong"),le.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,le.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),e}(le.Component),Rh=function(t){rr(e,t);function e(){return nr(this,e),wt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return tr(e,[{key:"render",value:function(){return le.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},le.createElement("div",{className:"doc-explorer-title-bar"},le.createElement("div",{className:"doc-explorer-title"},this.props.title),le.createElement("div",{className:"doc-explorer-rhs"},le.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),le.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},le.createElement(J6e,null,le.createElement(M_,this.props))))}}]),e}(le.PureComponent);Rh.defaultValue=Lh;Rh.defaultProps={width:320,title:"Explorer"};Ou.default=Rh;Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Explorer=void 0;var Z6e=Ou,q_=X6e(Z6e);function X6e(t){return t&&t.__esModule?t:{default:t}}Ka.Explorer=q_.default;Ka.default=q_.default;var mp={exports:{}},L1;function Lu(){return L1||(L1=1,function(t,e){(function(n,o){t.exports=o()})(ex,function(){var n=navigator.userAgent,o=navigator.platform,i=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),d=a||l||f,h=d&&(a?document.documentMode||6:+(f||l)[1]),v=!f&&/WebKit\//.test(n),y=v&&/Qt\/\d+\.\d+/.test(n),g=!f&&/Chrome\/(\d+)/.exec(n),E=g&&+g[1],C=/Opera\//.test(n),S=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),D=/PhantomJS/.test(n),T=S&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),V=T||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),Y=T||/Mac/.test(o),P=/\bCrOS\b/.test(n),U=/win/i.test(o),K=C&&n.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(C=!1,v=!0);var G=Y&&(y||C&&(K==null||K<12.11)),Q=i||d&&h>=9;function re(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var _e=function(r,s){var u=r.className,c=re(s).exec(u);if(c){var p=u.slice(c.index+c[0].length);r.className=u.slice(0,c.index)+(p?c[1]+p:"")}};function H(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function L(r,s){return H(r).appendChild(s)}function x(r,s,u,c){var p=document.createElement(r);if(u&&(p.className=u),c&&(p.style.cssText=c),typeof s=="string")p.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)p.appendChild(s[m]);return p}function j(r,s,u,c){var p=x(r,s,u,c);return p.setAttribute("role","presentation"),p}var J;document.createRange?J=function(r,s,u,c){var p=document.createRange();return p.setEnd(c||r,u),p.setStart(r,s),p}:J=function(r,s,u){var c=document.body.createTextRange();try{c.moveToElementText(r.parentNode)}catch{return c}return c.collapse(!0),c.moveEnd("character",u),c.moveStart("character",s),c};function te(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function pe(r){var s;try{s=r.activeElement}catch{s=r.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function $e(r,s){var u=r.className;re(s).test(u)||(r.className+=(u?" ":"")+s)}function Me(r,s){for(var u=r.split(" "),c=0;c<u.length;c++)u[c]&&!re(u[c]).test(s)&&(s+=" "+u[c]);return s}var Z=function(r){r.select()};T?Z=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(Z=function(r){try{r.select()}catch{}});function fe(r){return r.display.wrapper.ownerDocument}function de(r){return fe(r).defaultView}function ge(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function ye(r,s,u){s||(s={});for(var c in r)r.hasOwnProperty(c)&&(u!==!1||!s.hasOwnProperty(c))&&(s[c]=r[c]);return s}function he(r,s,u,c,p){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=c||0,b=p||0;;){var _=r.indexOf(" ",m);if(_<0||_>=s)return b+(s-m);b+=_-m,b+=u-b%u,m=_+1}}var ke=function(){this.id=null,this.f=null,this.time=0,this.handler=ge(this.onTimeout,this)};ke.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},ke.prototype.set=function(r,s){this.f=s;var u=+new Date+r;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=u)};function De(r,s){for(var u=0;u<r.length;++u)if(r[u]==s)return u;return-1}var xn=50,Ve={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},So={origin:"*mouse"},Jr={origin:"+move"};function or(r,s,u){for(var c=0,p=0;;){var m=r.indexOf(" ",c);m==-1&&(m=r.length);var b=m-c;if(m==r.length||p+b>=s)return c+Math.min(b,s-p);if(p+=m-c,p+=u-p%u,c=m+1,p>=s)return c}}var wn=[""];function ir(r){for(;wn.length<=r;)wn.push(ze(wn)+" ");return wn[r]}function ze(r){return r[r.length-1]}function pi(r,s){for(var u=[],c=0;c<r.length;c++)u[c]=s(r[c],c);return u}function ec(r,s,u){for(var c=0,p=u(s);c<r.length&&u(r[c])<=p;)c++;r.splice(c,0,s)}function Es(){}function tc(r,s){var u;return Object.create?u=Object.create(r):(Es.prototype=r,u=new Es),s&&ye(s,u),u}var Uu=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _s(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Uu.test(r))}function di(r,s){return s?s.source.indexOf("\\w")>-1&&_s(r)?!0:s.test(r):_s(r)}function nc(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var hi=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ks(r){return r.charCodeAt(0)>=768&&hi.test(r)}function sr(r,s,u){for(;(u<0?s>0:s<r.length)&&ks(r.charAt(s));)s+=u;return s}function ft(r,s,u){for(var c=s>u?-1:1;;){if(s==u)return s;var p=(s+u)/2,m=c<0?Math.ceil(p):Math.floor(p);if(m==s)return r(m)?s:u;r(m)?u=m:s=m+c}}function To(r,s,u,c){if(!r)return c(s,u,"ltr",0);for(var p=!1,m=0;m<r.length;++m){var b=r[m];(b.from<u&&b.to>s||s==u&&b.to==s)&&(c(Math.max(b.from,s),Math.min(b.to,u),b.level==1?"rtl":"ltr",m),p=!0)}p||c(s,u,"ltr")}var ar=null;function $n(r,s,u){var c;ar=null;for(var p=0;p<r.length;++p){var m=r[p];if(m.from<s&&m.to>s)return p;m.to==s&&(m.from!=m.to&&u=="before"?c=p:ar=p),m.from==s&&(m.from!=m.to&&u!="before"?c=p:ar=p)}return c??ar}var zu=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(w){return w<=247?r.charAt(w):1424<=w&&w<=1524?"R":1536<=w&&w<=1785?s.charAt(w-1536):1774<=w&&w<=2220?"r":8192<=w&&w<=8203?"w":w==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,_=/[1n]/;function k(w,I,M){this.level=w,this.from=I,this.to=M}return function(w,I){var M=I=="ltr"?"L":"R";if(w.length==0||I=="ltr"&&!c.test(w))return!1;for(var W=w.length,z=[],ne=0;ne<W;++ne)z.push(u(w.charCodeAt(ne)));for(var ce=0,ue=M;ce<W;++ce){var me=z[ce];me=="m"?z[ce]=ue:ue=me}for(var Ee=0,ve=M;Ee<W;++Ee){var xe=z[Ee];xe=="1"&&ve=="r"?z[Ee]="n":m.test(xe)&&(ve=xe,xe=="r"&&(z[Ee]="R"))}for(var Se=1,Ae=z[0];Se<W-1;++Se){var Re=z[Se];Re=="+"&&Ae=="1"&&z[Se+1]=="1"?z[Se]="1":Re==","&&Ae==z[Se+1]&&(Ae=="1"||Ae=="n")&&(z[Se]=Ae),Ae=Re}for(var rt=0;rt<W;++rt){var Ot=z[rt];if(Ot==",")z[rt]="N";else if(Ot=="%"){var ut=void 0;for(ut=rt+1;ut<W&&z[ut]=="%";++ut);for(var an=rt&&z[rt-1]=="!"||ut<W&&z[ut]=="1"?"1":"N",Xt=rt;Xt<ut;++Xt)z[Xt]=an;rt=ut-1}}for(var bt=0,Kt=M;bt<W;++bt){var Mt=z[bt];Kt=="L"&&Mt=="1"?z[bt]="L":m.test(Mt)&&(Kt=Mt)}for(var Ct=0;Ct<W;++Ct)if(p.test(z[Ct])){var Et=void 0;for(Et=Ct+1;Et<W&&p.test(z[Et]);++Et);for(var ht=(Ct?z[Ct-1]:M)=="L",en=(Et<W?z[Et]:M)=="L",Li=ht==en?ht?"L":"R":M,lo=Ct;lo<Et;++lo)z[lo]=Li;Ct=Et-1}for(var jt=[],hr,It=0;It<W;)if(b.test(z[It])){var Pf=It;for(++It;It<W&&b.test(z[It]);++It);jt.push(new k(0,Pf,It))}else{var Mr=It,Po=jt.length,Bo=I=="rtl"?1:0;for(++It;It<W&&z[It]!="L";++It);for(var Wt=Mr;Wt<It;)if(_.test(z[Wt])){Mr<Wt&&(jt.splice(Po,0,new k(1,Mr,Wt)),Po+=Bo);var Ri=Wt;for(++Wt;Wt<It&&_.test(z[Wt]);++Wt);jt.splice(Po,0,new k(2,Ri,Wt)),Po+=Bo,Mr=Wt}else++Wt;Mr<It&&jt.splice(Po,0,new k(1,Mr,It))}return I=="ltr"&&(jt[0].level==1&&(hr=w.match(/^\s+/))&&(jt[0].from=hr[0].length,jt.unshift(new k(0,0,hr[0].length))),ze(jt).level==1&&(hr=w.match(/\s+$/))&&(ze(jt).to-=hr[0].length,jt.push(new k(0,W-hr[0].length,W)))),I=="rtl"?jt.reverse():jt}}();function Cn(r,s){var u=r.order;return u==null&&(u=r.order=zu(r.text,s)),u}var rc=[],be=function(r,s,u){if(r.addEventListener)r.addEventListener(s,u,!1);else if(r.attachEvent)r.attachEvent("on"+s,u);else{var c=r._handlers||(r._handlers={});c[s]=(c[s]||rc).concat(u)}};function xs(r,s){return r._handlers&&r._handlers[s]||rc}function Pt(r,s,u){if(r.removeEventListener)r.removeEventListener(s,u,!1);else if(r.detachEvent)r.detachEvent("on"+s,u);else{var c=r._handlers,p=c&&c[s];if(p){var m=De(p,u);m>-1&&(c[s]=p.slice(0,m).concat(p.slice(m+1)))}}}function it(r,s){var u=xs(r,s);if(u.length)for(var c=Array.prototype.slice.call(arguments,2),p=0;p<u.length;++p)u[p].apply(null,c)}function pt(r,s,u){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),it(r,u||s.type,r,s),ws(s)||s.codemirrorIgnore}function oc(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var u=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),c=0;c<s.length;++c)De(u,s[c])==-1&&u.push(s[c])}function zt(r,s){return xs(r,s).length>0}function Ht(r){r.prototype.on=function(s,u){be(this,s,u)},r.prototype.off=function(s,u){Pt(this,s,u)}}function Bt(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Do(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function ws(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Sr(r){Bt(r),Do(r)}function Yt(r){return r.target||r.srcElement}function $s(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),Y&&r.ctrlKey&&s==1&&(s=3),s}var Hu=function(){if(d&&h<9)return!1;var r=x("div");return"draggable"in r||"dragDrop"in r}(),An;function Gu(r){if(An==null){var s=x("span","​");L(r,x("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(An=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&h<8))}var u=An?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var mi;function ic(r){if(mi!=null)return mi;var s=L(r,document.createTextNode("AخA")),u=J(s,0,1).getBoundingClientRect(),c=J(s,1,2).getBoundingClientRect();return H(r),!u||u.left==u.right?!1:mi=c.right-u.right<3}var Cs=`
288
288
 
289
289
  b`.split(/\n/).length!=3?function(r){for(var s=0,u=[],c=r.length;s<=c;){var p=r.indexOf(`
290
- `,s);p==-1&&(p=r.length);var m=r.slice(s,r.charAt(p-1)=="\r"?p-1:p),b=m.indexOf("\r");b!=-1?(u.push(m.slice(0,b)),s+=b+1):(u.push(m),s=p+1)}return u}:function(r){return r.split(/\r\n?|\n/)},Zr=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},cr=function(){var r=x("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),lr=null;function sc(r){if(lr!=null)return lr;var s=F(r,x("span","x")),u=s.getBoundingClientRect(),c=J(s,0,1).getBoundingClientRect();return lr=Math.abs(u.left-c.left)>1}var Vn={},Xr={};function ac(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Vn[r]=s}function vi(r,s){Xr[r]=s}function on(r){if(typeof r=="string"&&Xr.hasOwnProperty(r))r=Xr[r];else if(r&&typeof r.name=="string"&&Xr.hasOwnProperty(r.name)){var s=Xr[r.name];typeof s=="string"&&(s={name:s}),r=tc(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return on("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return on("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function Tr(r,s){s=on(s);var u=Vn[s.name];if(!u)return Tr(r,"text/plain");var c=u(r,s);if(Kr.hasOwnProperty(s.name)){var p=Kr[s.name];for(var m in p)p.hasOwnProperty(m)&&(c.hasOwnProperty(m)&&(c["_"+m]=c[m]),c[m]=p[m])}if(c.name=s.name,s.helperType&&(c.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)c[b]=s.modeProps[b];return c}var Kr={};function cc(r,s){var u=Kr.hasOwnProperty(r)?Kr[r]:Kr[r]={};ye(s,u)}function Dr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var u={};for(var c in s){var p=s[c];p instanceof Array&&(p=p.concat([])),u[c]=p}return u}function eo(r,s){for(var u;r.innerMode&&(u=r.innerMode(s),!(!u||u.mode==r));)s=u.state,r=u.mode;return u||{mode:r,state:s}}function As(r,s,u){return r.startState?r.startState(s,u):!0}var dt=function(r,s,u){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};dt.prototype.eol=function(){return this.pos>=this.string.length},dt.prototype.sol=function(){return this.pos==this.lineStart},dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},dt.prototype.eat=function(r){var s=this.string.charAt(this.pos),u;if(typeof r=="string"?u=s==r:u=s&&(r.test?r.test(s):r(s)),u)return++this.pos,s},dt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},dt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},dt.prototype.skipToEnd=function(){this.pos=this.string.length},dt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},dt.prototype.backUp=function(r){this.pos-=r},dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.match=function(r,s,u){if(typeof r=="string"){var c=function(b){return u?b.toLowerCase():b},p=this.string.substr(this.pos,r.length);if(c(p)==c(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},dt.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},dt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},dt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function we(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var u=r;!u.lines;)for(var c=0;;++c){var p=u.children[c],m=p.chunkSize();if(s<m){u=p;break}s-=m}return u.lines[s]}function Nr(r,s,u){var c=[],p=s.line;return r.iter(s.line,u.line+1,function(m){var b=m.text;p==u.line&&(b=b.slice(0,u.ch)),p==s.line&&(b=b.slice(s.ch)),c.push(b),++p}),c}function gi(r,s,u){var c=[];return r.iter(s,u,function(p){c.push(p.text)}),c}function Sn(r,s){var u=s-r.height;if(u)for(var c=r;c;c=c.parent)c.height+=u}function Qe(r){if(r.parent==null)return null;for(var s=r.parent,u=De(s.lines,r),c=s.parent;c;s=c,c=c.parent)for(var p=0;c.children[p]!=s;++p)u+=c.children[p].chunkSize();return u+s.first}function ur(r,s){var u=r.first;e:do{for(var c=0;c<r.children.length;++c){var p=r.children[c],m=p.height;if(s<m){r=p;continue e}s-=m,u+=p.chunkSize()}return u}while(!r.lines);for(var b=0;b<r.lines.length;++b){var _=r.lines[b],k=_.height;if(s<k)break;s-=k}return u+b}function A(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function B(r,s,u){if(u===void 0&&(u=null),!(this instanceof B))return new B(r,s,u);this.line=r,this.ch=s,this.sticky=u}function ee(r,s){return r.line-s.line||r.ch-s.ch}function Ne(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function je(r){return B(r.line,r.ch)}function We(r,s){return ee(r,s)<0?s:r}function $t(r,s){return ee(r,s)<0?r:s}function pn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function Oe(r,s){if(s.line<r.first)return B(r.first,0);var u=r.first+r.size-1;return s.line>u?B(u,we(r,u).text.length):K_(s,we(r,s.line).text.length)}function K_(r,s){var u=r.ch;return u==null||u>s?B(r.line,s):u<0?B(r.line,0):r}function Hh(r,s){for(var u=[],c=0;c<s.length;c++)u[c]=Oe(r,s[c]);return u}var lc=function(r,s){this.state=r,this.lookAhead=s},fr=function(r,s,u,c){this.state=s,this.doc=r,this.line=u,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};fr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},fr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fr.fromSaved=function(r,s,u){return s instanceof lc?new fr(r,Dr(r.mode,s.state),u,s.lookAhead):new fr(r,Dr(r.mode,s),u)},fr.prototype.save=function(r){var s=r!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lc(s,this.maxLookAhead):s};function Gh(r,s,u,c){var p=[r.state.modeGen],m={};Xh(r,s.text,r.doc.mode,u,function(w,I){return p.push(w,I)},m,c);for(var b=u.state,_=function(w){u.baseTokens=p;var I=r.state.overlays[w],M=1,W=0;u.state=!0,Xh(r,s.text,I.mode,u,function(z,ne){for(var ce=M;W<z;){var ue=p[M];ue>z&&p.splice(M,1,z,p[M+1],ue),M+=2,W=Math.min(z,ue)}if(ne)if(I.opaque)p.splice(ce,M-ce,z,"overlay "+ne),M=ce+2;else for(;ce<M;ce+=2){var me=p[ce+1];p[ce+1]=(me?me+" ":"")+"overlay "+ne}},m),u.state=b,u.baseTokens=null,u.baseTokenPos=1},k=0;k<r.state.overlays.length;++k)_(k);return{styles:p,classes:m.bgClass||m.textClass?m:null}}function Wh(r,s,u){if(!s.styles||s.styles[0]!=r.state.modeGen){var c=Ss(r,Qe(s)),p=s.text.length>r.options.maxHighlightLength&&Dr(r.doc.mode,c.state),m=Gh(r,s,c);p&&(c.state=p),s.stateAfter=c.save(!p),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),u===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Ss(r,s,u){var c=r.doc,p=r.display;if(!c.mode.startState)return new fr(c,!0,s);var m=e2(r,s,u),b=m>c.first&&we(c,m-1).stateAfter,_=b?fr.fromSaved(c,b,m):new fr(c,As(c.mode),m);return c.iter(m,s,function(k){Wu(r,k.text,_);var w=_.line;k.stateAfter=w==s-1||w%5==0||w>=p.viewFrom&&w<p.viewTo?_.save():null,_.nextLine()}),u&&(c.modeFrontier=_.line),_}function Wu(r,s,u,c){var p=r.doc.mode,m=new dt(s,r.options.tabSize,u);for(m.start=m.pos=c||0,s==""&&Qh(p,u.state);!m.eol();)Qu(p,m,u.state),m.start=m.pos}function Qh(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var u=eo(r,s);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Qu(r,s,u,c){for(var p=0;p<10;p++){c&&(c[0]=eo(r,u).mode);var m=r.token(s,u);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Yh=function(r,s,u){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=u};function Jh(r,s,u,c){var p=r.doc,m=p.mode,b;s=Oe(p,s);var _=we(p,s.line),k=Ss(r,s.line,u),w=new dt(_.text,r.options.tabSize,k),I;for(c&&(I=[]);(c||w.pos<s.ch)&&!w.eol();)w.start=w.pos,b=Qu(m,w,k.state),c&&I.push(new Yh(w,b,Dr(p.mode,k.state)));return c?I:new Yh(w,b,k.state)}function Zh(r,s){if(r)for(;;){var u=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;r=r.slice(0,u.index)+r.slice(u.index+u[0].length);var c=u[1]?"bgClass":"textClass";s[c]==null?s[c]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(s[c])||(s[c]+=" "+u[2])}return r}function Xh(r,s,u,c,p,m,b){var _=u.flattenSpans;_==null&&(_=r.options.flattenSpans);var k=0,w=null,I=new dt(s,r.options.tabSize,c),M,W=r.options.addModeClass&&[null];for(s==""&&Zh(Qh(u,c.state),m);!I.eol();){if(I.pos>r.options.maxHighlightLength?(_=!1,b&&Wu(r,s,c,I.pos),I.pos=s.length,M=null):M=Zh(Qu(u,I,c.state,W),m),W){var z=W[0].name;z&&(M="m-"+(M?z+" "+M:z))}if(!_||w!=M){for(;k<I.start;)k=Math.min(I.start,k+5e3),p(k,w);w=M}I.start=I.pos}for(;k<I.pos;){var ne=Math.min(I.pos,k+5e3);p(ne,w),k=ne}}function e2(r,s,u){for(var c,p,m=r.doc,b=u?-1:s-(r.doc.mode.innerMode?1e3:100),_=s;_>b;--_){if(_<=m.first)return m.first;var k=we(m,_-1),w=k.stateAfter;if(w&&(!u||_+(w instanceof lc?w.lookAhead:0)<=m.modeFrontier))return _;var I=he(k.text,null,r.options.tabSize);(p==null||c>I)&&(p=_-1,c=I)}return p}function t2(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var u=r.first,c=s-1;c>u;c--){var p=we(r,c).stateAfter;if(p&&(!(p instanceof lc)||c+p.lookAhead<s)){u=c+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,u)}}var Kh=!1,Or=!1;function n2(){Kh=!0}function r2(){Or=!0}function uc(r,s,u){this.marker=r,this.from=s,this.to=u}function Ts(r,s){if(r)for(var u=0;u<r.length;++u){var c=r[u];if(c.marker==s)return c}}function o2(r,s){for(var u,c=0;c<r.length;++c)r[c]!=s&&(u||(u=[])).push(r[c]);return u}function i2(r,s,u){var c=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));c&&r.markedSpans&&c.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],c&&c.add(r.markedSpans)),s.marker.attachLine(r)}function s2(r,s,u){var c;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(_||m.from==s&&b.type=="bookmark"&&(!u||!m.marker.insertLeft)){var k=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(c||(c=[])).push(new uc(b,m.from,k?null:m.to))}}return c}function a2(r,s,u){var c;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(_||m.from==s&&b.type=="bookmark"&&(!u||m.marker.insertLeft)){var k=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(c||(c=[])).push(new uc(b,k?null:m.from-s,m.to==null?null:m.to-s))}}return c}function Yu(r,s){if(s.full)return null;var u=A(r,s.from.line)&&we(r,s.from.line).markedSpans,c=A(r,s.to.line)&&we(r,s.to.line).markedSpans;if(!u&&!c)return null;var p=s.from.ch,m=s.to.ch,b=ee(s.from,s.to)==0,_=s2(u,p,b),k=a2(c,m,b),w=s.text.length==1,I=ze(s.text).length+(w?p:0);if(_)for(var M=0;M<_.length;++M){var W=_[M];if(W.to==null){var z=Ts(k,W.marker);z?w&&(W.to=z.to==null?null:z.to+I):W.to=p}}if(k)for(var ne=0;ne<k.length;++ne){var ce=k[ne];if(ce.to!=null&&(ce.to+=I),ce.from==null){var ue=Ts(_,ce.marker);ue||(ce.from=I,w&&(_||(_=[])).push(ce))}else ce.from+=I,w&&(_||(_=[])).push(ce)}_&&(_=em(_)),k&&k!=_&&(k=em(k));var me=[_];if(!w){var Ee=s.text.length-2,ve;if(Ee>0&&_)for(var xe=0;xe<_.length;++xe)_[xe].to==null&&(ve||(ve=[])).push(new uc(_[xe].marker,null,null));for(var Se=0;Se<Ee;++Se)me.push(ve);me.push(k)}return me}function em(r){for(var s=0;s<r.length;++s){var u=r[s];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function c2(r,s,u){var c=null;if(r.iter(s.line,u.line+1,function(z){if(z.markedSpans)for(var ne=0;ne<z.markedSpans.length;++ne){var ce=z.markedSpans[ne].marker;ce.readOnly&&(!c||De(c,ce)==-1)&&(c||(c=[])).push(ce)}}),!c)return null;for(var p=[{from:s,to:u}],m=0;m<c.length;++m)for(var b=c[m],_=b.find(0),k=0;k<p.length;++k){var w=p[k];if(!(ee(w.to,_.from)<0||ee(w.from,_.to)>0)){var I=[k,1],M=ee(w.from,_.from),W=ee(w.to,_.to);(M<0||!b.inclusiveLeft&&!M)&&I.push({from:w.from,to:_.from}),(W>0||!b.inclusiveRight&&!W)&&I.push({from:_.to,to:w.to}),p.splice.apply(p,I),k+=I.length-3}}return p}function tm(r){var s=r.markedSpans;if(s){for(var u=0;u<s.length;++u)s[u].marker.detachLine(r);r.markedSpans=null}}function nm(r,s){if(s){for(var u=0;u<s.length;++u)s[u].marker.attachLine(r);r.markedSpans=s}}function fc(r){return r.inclusiveLeft?-1:0}function pc(r){return r.inclusiveRight?1:0}function Ju(r,s){var u=r.lines.length-s.lines.length;if(u!=0)return u;var c=r.find(),p=s.find(),m=ee(c.from,p.from)||fc(r)-fc(s);if(m)return-m;var b=ee(c.to,p.to)||pc(r)-pc(s);return b||s.id-r.id}function rm(r,s){var u=Or&&r.markedSpans,c;if(u)for(var p=void 0,m=0;m<u.length;++m)p=u[m],p.marker.collapsed&&(s?p.from:p.to)==null&&(!c||Ju(c,p.marker)<0)&&(c=p.marker);return c}function om(r){return rm(r,!0)}function dc(r){return rm(r,!1)}function l2(r,s){var u=Or&&r.markedSpans,c;if(u)for(var p=0;p<u.length;++p){var m=u[p];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!c||Ju(c,m.marker)<0)&&(c=m.marker)}return c}function im(r,s,u,c,p){var m=we(r,s),b=Or&&m.markedSpans;if(b)for(var _=0;_<b.length;++_){var k=b[_];if(k.marker.collapsed){var w=k.marker.find(0),I=ee(w.from,u)||fc(k.marker)-fc(p),M=ee(w.to,c)||pc(k.marker)-pc(p);if(!(I>=0&&M<=0||I<=0&&M>=0)&&(I<=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.to,u)>=0:ee(w.to,u)>0)||I>=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.from,c)<=0:ee(w.from,c)<0)))return!0}}}function jn(r){for(var s;s=om(r);)r=s.find(-1,!0).line;return r}function u2(r){for(var s;s=dc(r);)r=s.find(1,!0).line;return r}function f2(r){for(var s,u;s=dc(r);)r=s.find(1,!0).line,(u||(u=[])).push(r);return u}function Zu(r,s){var u=we(r,s),c=jn(u);return u==c?s:Qe(c)}function sm(r,s){if(s>r.lastLine())return s;var u=we(r,s),c;if(!to(r,u))return s;for(;c=dc(u);)u=c.find(1,!0).line;return Qe(u)+1}function to(r,s){var u=Or&&s.markedSpans;if(u){for(var c=void 0,p=0;p<u.length;++p)if(c=u[p],!!c.marker.collapsed){if(c.from==null)return!0;if(!c.marker.widgetNode&&c.from==0&&c.marker.inclusiveLeft&&Xu(r,s,c))return!0}}}function Xu(r,s,u){if(u.to==null){var c=u.marker.find(1,!0);return Xu(r,c.line,Ts(c.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==s.text.length)return!0;for(var p=void 0,m=0;m<s.markedSpans.length;++m)if(p=s.markedSpans[m],p.marker.collapsed&&!p.marker.widgetNode&&p.from==u.to&&(p.to==null||p.to!=u.from)&&(p.marker.inclusiveLeft||u.marker.inclusiveRight)&&Xu(r,s,p))return!0}function Ir(r){r=jn(r);for(var s=0,u=r.parent,c=0;c<u.lines.length;++c){var p=u.lines[c];if(p==r)break;s+=p.height}for(var m=u.parent;m;u=m,m=u.parent)for(var b=0;b<m.children.length;++b){var _=m.children[b];if(_==u)break;s+=_.height}return s}function hc(r){if(r.height==0)return 0;for(var s=r.text.length,u,c=r;u=om(c);){var p=u.find(0,!0);c=p.from.line,s+=p.from.ch-p.to.ch}for(c=r;u=dc(c);){var m=u.find(0,!0);s-=c.text.length-m.from.ch,c=m.to.line,s+=c.text.length-m.to.ch}return s}function Ku(r){var s=r.display,u=r.doc;s.maxLine=we(u,u.first),s.maxLineLength=hc(s.maxLine),s.maxLineChanged=!0,u.iter(function(c){var p=hc(c);p>s.maxLineLength&&(s.maxLineLength=p,s.maxLine=c)})}var yi=function(r,s,u){this.text=r,nm(this,s),this.height=u?u(this):1};yi.prototype.lineNo=function(){return Qe(this)},Ht(yi);function p2(r,s,u,c){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),tm(r),nm(r,u);var p=c?c(r):1;p!=r.height&&Sn(r,p)}function d2(r){r.parent=null,tm(r)}var h2={},m2={};function am(r,s){if(!r||/^\s*$/.test(r))return null;var u=s.addModeClass?m2:h2;return u[r]||(u[r]=r.replace(/\S+/g,"cm-$&"))}function cm(r,s){var u=j("span",null,null,v?"padding-right: .1px":null),c={pre:j("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var p=0;p<=(s.rest?s.rest.length:0);p++){var m=p?s.rest[p-1]:s.line,b=void 0;c.pos=0,c.addToken=g2,ic(r.display.measure)&&(b=Cn(m,r.doc.direction))&&(c.addToken=b2(c.addToken,b)),c.map=[];var _=s!=r.display.externalMeasured&&Qe(m);E2(m,c,Wh(r,m,_)),m.styleClasses&&(m.styleClasses.bgClass&&(c.bgClass=Me(m.styleClasses.bgClass,c.bgClass||"")),m.styleClasses.textClass&&(c.textClass=Me(m.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Gu(r.display.measure))),p==0?(s.measure.map=c.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(c.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(v){var k=c.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return it(r,"renderLine",r,s.line,c.pre),c.pre.className&&(c.textClass=Me(c.pre.className,c.textClass||"")),c}function v2(r){var s=x("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function g2(r,s,u,c,p,m,b){if(s){var _=r.splitSpaces?y2(s,r.trailingSpace):s,k=r.cm.state.specialChars,w=!1,I;if(!k.test(s))r.col+=s.length,I=document.createTextNode(_),r.map.push(r.pos,r.pos+s.length,I),d&&h<9&&(w=!0),r.pos+=s.length;else{I=document.createDocumentFragment();for(var M=0;;){k.lastIndex=M;var W=k.exec(s),z=W?W.index-M:s.length-M;if(z){var ne=document.createTextNode(_.slice(M,M+z));d&&h<9?I.appendChild(x("span",[ne])):I.appendChild(ne),r.map.push(r.pos,r.pos+z,ne),r.col+=z,r.pos+=z}if(!W)break;M+=z+1;var ce=void 0;if(W[0]==" "){var ue=r.cm.options.tabSize,me=ue-r.col%ue;ce=I.appendChild(x("span",ir(me),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),r.col+=me}else W[0]=="\r"||W[0]==`
291
- `?(ce=I.appendChild(x("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),ce.setAttribute("cm-text",W[0]),r.col+=1):(ce=r.cm.options.specialCharPlaceholder(W[0]),ce.setAttribute("cm-text",W[0]),d&&h<9?I.appendChild(x("span",[ce])):I.appendChild(ce),r.col+=1);r.map.push(r.pos,r.pos+1,ce),r.pos++}}if(r.trailingSpace=_.charCodeAt(s.length-1)==32,u||c||p||w||m||b){var Ee=u||"";c&&(Ee+=c),p&&(Ee+=p);var ve=x("span",[I],Ee,m);if(b)for(var xe in b)b.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&ve.setAttribute(xe,b[xe]);return r.content.appendChild(ve)}r.content.appendChild(I)}}function y2(r,s){if(r.length>1&&!/ /.test(r))return r;for(var u=s,c="",p=0;p<r.length;p++){var m=r.charAt(p);m==" "&&u&&(p==r.length-1||r.charCodeAt(p+1)==32)&&(m=" "),c+=m,u=m==" "}return c}function b2(r,s){return function(u,c,p,m,b,_,k){p=p?p+" cm-force-border":"cm-force-border";for(var w=u.pos,I=w+c.length;;){for(var M=void 0,W=0;W<s.length&&(M=s[W],!(M.to>w&&M.from<=w));W++);if(M.to>=I)return r(u,c,p,m,b,_,k);r(u,c.slice(0,M.to-w),p,m,null,_,k),m=null,c=c.slice(M.to-w),w=M.to}}}function lm(r,s,u,c){var p=!c&&u.widgetNode;p&&r.map.push(r.pos,r.pos+s,p),!c&&r.cm.display.input.needsContentAttribute&&(p||(p=r.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",u.id)),p&&(r.cm.display.input.setUneditable(p),r.content.appendChild(p)),r.pos+=s,r.trailingSpace=!1}function E2(r,s,u){var c=r.markedSpans,p=r.text,m=0;if(!c){for(var b=1;b<u.length;b+=2)s.addToken(s,p.slice(m,m=u[b]),am(u[b+1],s.cm.options));return}for(var _=p.length,k=0,w=1,I="",M,W,z=0,ne,ce,ue,me,Ee;;){if(z==k){ne=ce=ue=W="",Ee=null,me=null,z=1/0;for(var ve=[],xe=void 0,Se=0;Se<c.length;++Se){var Ae=c[Se],Re=Ae.marker;if(Re.type=="bookmark"&&Ae.from==k&&Re.widgetNode)ve.push(Re);else if(Ae.from<=k&&(Ae.to==null||Ae.to>k||Re.collapsed&&Ae.to==k&&Ae.from==k)){if(Ae.to!=null&&Ae.to!=k&&z>Ae.to&&(z=Ae.to,ce=""),Re.className&&(ne+=" "+Re.className),Re.css&&(W=(W?W+";":"")+Re.css),Re.startStyle&&Ae.from==k&&(ue+=" "+Re.startStyle),Re.endStyle&&Ae.to==z&&(xe||(xe=[])).push(Re.endStyle,Ae.to),Re.title&&((Ee||(Ee={})).title=Re.title),Re.attributes)for(var rt in Re.attributes)(Ee||(Ee={}))[rt]=Re.attributes[rt];Re.collapsed&&(!me||Ju(me.marker,Re)<0)&&(me=Ae)}else Ae.from>k&&z>Ae.from&&(z=Ae.from)}if(xe)for(var Ot=0;Ot<xe.length;Ot+=2)xe[Ot+1]==z&&(ce+=" "+xe[Ot]);if(!me||me.from==k)for(var ut=0;ut<ve.length;++ut)lm(s,0,ve[ut]);if(me&&(me.from||0)==k){if(lm(s,(me.to==null?_+1:me.to)-k,me.marker,me.from==null),me.to==null)return;me.to==k&&(me=!1)}}if(k>=_)break;for(var an=Math.min(_,z);;){if(I){var Xt=k+I.length;if(!me){var bt=Xt>an?I.slice(0,an-k):I;s.addToken(s,bt,M?M+ne:ne,ue,k+bt.length==z?ce:"",W,Ee)}if(Xt>=an){I=I.slice(an-k),k=an;break}k=Xt,ue=""}I=p.slice(m,m=u[w++]),M=am(u[w++],s.cm.options)}}}function um(r,s,u){this.line=s,this.rest=f2(s),this.size=this.rest?Qe(ze(this.rest))-u+1:1,this.node=this.text=null,this.hidden=to(r,s)}function mc(r,s,u){for(var c=[],p,m=s;m<u;m=p){var b=new um(r.doc,we(r.doc,m),m);p=m+b.size,c.push(b)}return c}var bi=null;function _2(r){bi?bi.ops.push(r):r.ownsGroup=bi={ops:[r],delayedCallbacks:[]}}function k2(r){var s=r.delayedCallbacks,u=0;do{for(;u<s.length;u++)s[u].call(null);for(var c=0;c<r.ops.length;c++){var p=r.ops[c];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(u<s.length)}function x2(r,s){var u=r.ownsGroup;if(u)try{k2(u)}finally{bi=null,s(u)}}var Ds=null;function Tt(r,s){var u=xs(r,s);if(u.length){var c=Array.prototype.slice.call(arguments,2),p;bi?p=bi.delayedCallbacks:Ds?p=Ds:(p=Ds=[],setTimeout(w2,0));for(var m=function(_){p.push(function(){return u[_].apply(null,c)})},b=0;b<u.length;++b)m(b)}}function w2(){var r=Ds;Ds=null;for(var s=0;s<r.length;++s)r[s]()}function fm(r,s,u,c){for(var p=0;p<s.changes.length;p++){var m=s.changes[p];m=="text"?C2(r,s):m=="gutter"?dm(r,s,u,c):m=="class"?ef(r,s):m=="widget"&&A2(r,s,c)}s.changes=null}function Ns(r){return r.node==r.text&&(r.node=x("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),d&&h<8&&(r.node.style.zIndex=2)),r.node}function $2(r,s){var u=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),s.background)u?s.background.className=u:(s.background.parentNode.removeChild(s.background),s.background=null);else if(u){var c=Ns(s);s.background=c.insertBefore(x("div",null,u),c.firstChild),r.display.input.setUneditable(s.background)}}function pm(r,s){var u=r.display.externalMeasured;return u&&u.line==s.line?(r.display.externalMeasured=null,s.measure=u.measure,u.built):cm(r,s)}function C2(r,s){var u=s.text.className,c=pm(r,s);s.text==s.node&&(s.node=c.pre),s.text.parentNode.replaceChild(c.pre,s.text),s.text=c.pre,c.bgClass!=s.bgClass||c.textClass!=s.textClass?(s.bgClass=c.bgClass,s.textClass=c.textClass,ef(r,s)):u&&(s.text.className=u)}function ef(r,s){$2(r,s),s.line.wrapClass?Ns(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var u=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=u||""}function dm(r,s,u,c){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var p=Ns(s);s.gutterBackground=x("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(r.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px; width: "+c.gutterTotalWidth+"px"),r.display.input.setUneditable(s.gutterBackground),p.insertBefore(s.gutterBackground,s.text)}var m=s.line.gutterMarkers;if(r.options.lineNumbers||m){var b=Ns(s),_=s.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px");if(_.setAttribute("aria-hidden","true"),r.display.input.setUneditable(_),b.insertBefore(_,s.text),s.line.gutterClass&&(_.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(s.lineNumber=_.appendChild(x("div",q(r.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+c.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var k=0;k<r.display.gutterSpecs.length;++k){var w=r.display.gutterSpecs[k].className,I=m.hasOwnProperty(w)&&m[w];I&&_.appendChild(x("div",[I],"CodeMirror-gutter-elt","left: "+c.gutterLeft[w]+"px; width: "+c.gutterWidth[w]+"px"))}}}function A2(r,s,u){s.alignable&&(s.alignable=null);for(var c=re("CodeMirror-linewidget"),p=s.node.firstChild,m=void 0;p;p=m)m=p.nextSibling,c.test(p.className)&&s.node.removeChild(p);hm(r,s,u)}function S2(r,s,u,c){var p=pm(r,s);return s.text=s.node=p.pre,p.bgClass&&(s.bgClass=p.bgClass),p.textClass&&(s.textClass=p.textClass),ef(r,s),dm(r,s,u,c),hm(r,s,c),s.node}function hm(r,s,u){if(mm(r,s.line,s,u,!0),s.rest)for(var c=0;c<s.rest.length;c++)mm(r,s.rest[c],s,u,!1)}function mm(r,s,u,c,p){if(s.widgets)for(var m=Ns(u),b=0,_=s.widgets;b<_.length;++b){var k=_[b],w=x("div",[k.node],"CodeMirror-linewidget"+(k.className?" "+k.className:""));k.handleMouseEvents||w.setAttribute("cm-ignore-events","true"),T2(k,w,u,c),r.display.input.setUneditable(w),p&&k.above?m.insertBefore(w,u.gutter||u.text):m.appendChild(w),Tt(k,"redraw")}}function T2(r,s,u,c){if(r.noHScroll){(u.alignable||(u.alignable=[])).push(s);var p=c.wrapperWidth;s.style.left=c.fixedPos+"px",r.coverGutter||(p-=c.gutterTotalWidth,s.style.paddingLeft=c.gutterTotalWidth+"px"),s.style.width=p+"px"}r.coverGutter&&(s.style.zIndex=5,s.style.position="relative",r.noHScroll||(s.style.marginLeft=-c.gutterTotalWidth+"px"))}function Os(r){if(r.height!=null)return r.height;var s=r.doc.cm;if(!s)return 0;if(!te(document.body,r.node)){var u="position: relative;";r.coverGutter&&(u+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),r.noHScroll&&(u+="width: "+s.display.wrapper.clientWidth+"px;"),F(s.display.measure,x("div",[r.node],null,u))}return r.height=r.node.parentNode.offsetHeight}function Lr(r,s){for(var u=Yt(s);u!=r.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==r.sizer&&u!=r.mover)return!0}function vc(r){return r.lineSpace.offsetTop}function tf(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function vm(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=F(r.measure,x("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,c={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(c.left)&&!isNaN(c.right)&&(r.cachedPaddingH=c),c}function pr(r){return xn-r.display.nativeBarWidth}function No(r){return r.display.scroller.clientWidth-pr(r)-r.display.barWidth}function nf(r){return r.display.scroller.clientHeight-pr(r)-r.display.barHeight}function D2(r,s,u){var c=r.options.lineWrapping,p=c&&No(r);if(!s.measure.heights||c&&s.measure.width!=p){var m=s.measure.heights=[];if(c){s.measure.width=p;for(var b=s.text.firstChild.getClientRects(),_=0;_<b.length-1;_++){var k=b[_],w=b[_+1];Math.abs(k.bottom-w.bottom)>2&&m.push((k.bottom+w.top)/2-u.top)}}m.push(u.bottom-u.top)}}function gm(r,s,u){if(r.line==s)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var c=0;c<r.rest.length;c++)if(r.rest[c]==s)return{map:r.measure.maps[c],cache:r.measure.caches[c]};for(var p=0;p<r.rest.length;p++)if(Qe(r.rest[p])>u)return{map:r.measure.maps[p],cache:r.measure.caches[p],before:!0}}}function N2(r,s){s=jn(s);var u=Qe(s),c=r.display.externalMeasured=new um(r.doc,s,u);c.lineN=u;var p=c.built=cm(r,c);return c.text=p.pre,F(r.display.lineMeasure,p.pre),c}function ym(r,s,u,c){return dr(r,Ei(r,s),u,c)}function rf(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[Lo(r,s)];var u=r.display.externalMeasured;if(u&&s>=u.lineN&&s<u.lineN+u.size)return u}function Ei(r,s){var u=Qe(s),c=rf(r,u);c&&!c.text?c=null:c&&c.changes&&(fm(r,c,u,lf(r)),r.curOp.forceUpdate=!0),c||(c=N2(r,s));var p=gm(c,s,u);return{line:s,view:c,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function dr(r,s,u,c,p){s.before&&(u=-1);var m=u+(c||""),b;return s.cache.hasOwnProperty(m)?b=s.cache[m]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(D2(r,s.view,s.rect),s.hasHeights=!0),b=I2(r,s,u,c),b.bogus||(s.cache[m]=b)),{left:b.left,right:b.right,top:p?b.rtop:b.top,bottom:p?b.rbottom:b.bottom}}var bm={left:0,right:0,top:0,bottom:0};function Em(r,s,u){for(var c,p,m,b,_,k,w=0;w<r.length;w+=3)if(_=r[w],k=r[w+1],s<_?(p=0,m=1,b="left"):s<k?(p=s-_,m=p+1):(w==r.length-3||s==k&&r[w+3]>s)&&(m=k-_,p=m-1,s>=k&&(b="right")),p!=null){if(c=r[w+2],_==k&&u==(c.insertLeft?"left":"right")&&(b=u),u=="left"&&p==0)for(;w&&r[w-2]==r[w-3]&&r[w-1].insertLeft;)c=r[(w-=3)+2],b="left";if(u=="right"&&p==k-_)for(;w<r.length-3&&r[w+3]==r[w+4]&&!r[w+5].insertLeft;)c=r[(w+=3)+2],b="right";break}return{node:c,start:p,end:m,collapse:b,coverStart:_,coverEnd:k}}function O2(r,s){var u=bm;if(s=="left")for(var c=0;c<r.length&&(u=r[c]).left==u.right;c++);else for(var p=r.length-1;p>=0&&(u=r[p]).left==u.right;p--);return u}function I2(r,s,u,c){var p=Em(s.map,u,c),m=p.node,b=p.start,_=p.end,k=p.collapse,w;if(m.nodeType==3){for(var I=0;I<4;I++){for(;b&&ks(s.line.text.charAt(p.coverStart+b));)--b;for(;p.coverStart+_<p.coverEnd&&ks(s.line.text.charAt(p.coverStart+_));)++_;if(d&&h<9&&b==0&&_==p.coverEnd-p.coverStart?w=m.parentNode.getBoundingClientRect():w=O2(J(m,b,_).getClientRects(),c),w.left||w.right||b==0)break;_=b,b=b-1,k="right"}d&&h<11&&(w=L2(r.display.measure,w))}else{b>0&&(k=c="right");var M;r.options.lineWrapping&&(M=m.getClientRects()).length>1?w=M[c=="right"?M.length-1:0]:w=m.getBoundingClientRect()}if(d&&h<9&&!b&&(!w||!w.left&&!w.right)){var W=m.parentNode.getClientRects()[0];W?w={left:W.left,right:W.left+ki(r.display),top:W.top,bottom:W.bottom}:w=bm}for(var z=w.top-s.rect.top,ne=w.bottom-s.rect.top,ce=(z+ne)/2,ue=s.view.measure.heights,me=0;me<ue.length-1&&!(ce<ue[me]);me++);var Ee=me?ue[me-1]:0,ve=ue[me],xe={left:(k=="right"?w.right:w.left)-s.rect.left,right:(k=="left"?w.left:w.right)-s.rect.left,top:Ee,bottom:ve};return!w.left&&!w.right&&(xe.bogus=!0),r.options.singleCursorHeightPerLine||(xe.rtop=z,xe.rbottom=ne),xe}function L2(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sc(r))return s;var u=screen.logicalXDPI/screen.deviceXDPI,c=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*u,right:s.right*u,top:s.top*c,bottom:s.bottom*c}}function _m(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var s=0;s<r.rest.length;s++)r.measure.caches[s]={}}function km(r){r.display.externalMeasure=null,H(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)_m(r.display.view[s])}function Is(r){km(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function xm(r){return g&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function wm(r){return g&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function of(r){var s=jn(r),u=s.widgets,c=0;if(u)for(var p=0;p<u.length;++p)u[p].above&&(c+=Os(u[p]));return c}function gc(r,s,u,c,p){if(!p){var m=of(s);u.top+=m,u.bottom+=m}if(c=="line")return u;c||(c="local");var b=Ir(s);if(c=="local"?b+=vc(r.display):b-=r.display.viewOffset,c=="page"||c=="window"){var _=r.display.lineSpace.getBoundingClientRect();b+=_.top+(c=="window"?0:wm(fe(r)));var k=_.left+(c=="window"?0:xm(fe(r)));u.left+=k,u.right+=k}return u.top+=b,u.bottom+=b,u}function $m(r,s,u){if(u=="div")return s;var c=s.left,p=s.top;if(u=="page")c-=xm(fe(r)),p-=wm(fe(r));else if(u=="local"||!u){var m=r.display.sizer.getBoundingClientRect();c+=m.left,p+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:c-b.left,top:p-b.top}}function yc(r,s,u,c,p){return c||(c=we(r.doc,s.line)),gc(r,c,ym(r,c,s.ch,p),u)}function Un(r,s,u,c,p,m){c=c||we(r.doc,s.line),p||(p=Ei(r,c));function b(ne,ce){var ue=dr(r,p,ne,ce?"right":"left",m);return ce?ue.left=ue.right:ue.right=ue.left,gc(r,c,ue,u)}var _=Cn(c,r.doc.direction),k=s.ch,w=s.sticky;if(k>=c.text.length?(k=c.text.length,w="before"):k<=0&&(k=0,w="after"),!_)return b(w=="before"?k-1:k,w=="before");function I(ne,ce,ue){var me=_[ce],Ee=me.level==1;return b(ue?ne-1:ne,Ee!=ue)}var M=$n(_,k,w),W=ar,z=I(k,M,w=="before");return W!=null&&(z.other=I(k,W,w!="before")),z}function Cm(r,s){var u=0;s=Oe(r.doc,s),r.options.lineWrapping||(u=ki(r.display)*s.ch);var c=we(r.doc,s.line),p=Ir(c)+vc(r.display);return{left:u,right:u,top:p,bottom:p+c.height}}function sf(r,s,u,c,p){var m=B(r,s,u);return m.xRel=p,c&&(m.outside=c),m}function af(r,s,u){var c=r.doc;if(u+=r.display.viewOffset,u<0)return sf(c.first,0,null,-1,-1);var p=ur(c,u),m=c.first+c.size-1;if(p>m)return sf(c.first+c.size-1,we(c,m).text.length,null,1,1);s<0&&(s=0);for(var b=we(c,p);;){var _=F2(r,b,p,s,u),k=l2(b,_.ch+(_.xRel>0||_.outside>0?1:0));if(!k)return _;var w=k.find(1);if(w.line==p)return w;b=we(c,p=w.line)}}function Am(r,s,u,c){c-=of(s);var p=s.text.length,m=ft(function(b){return dr(r,u,b-1).bottom<=c},p,0);return p=ft(function(b){return dr(r,u,b).top>c},m,p),{begin:m,end:p}}function Sm(r,s,u,c){u||(u=Ei(r,s));var p=gc(r,s,dr(r,u,c),"line").top;return Am(r,s,u,p)}function cf(r,s,u,c){return r.bottom<=u?!1:r.top>u?!0:(c?r.left:r.right)>s}function F2(r,s,u,c,p){p-=Ir(s);var m=Ei(r,s),b=of(s),_=0,k=s.text.length,w=!0,I=Cn(s,r.doc.direction);if(I){var M=(r.options.lineWrapping?M2:R2)(r,s,u,m,I,c,p);w=M.level!=1,_=w?M.from:M.to-1,k=w?M.to:M.from-1}var W=null,z=null,ne=ft(function(Se){var Ae=dr(r,m,Se);return Ae.top+=b,Ae.bottom+=b,cf(Ae,c,p,!1)?(Ae.top<=p&&Ae.left<=c&&(W=Se,z=Ae),!0):!1},_,k),ce,ue,me=!1;if(z){var Ee=c-z.left<z.right-c,ve=Ee==w;ne=W+(ve?0:1),ue=ve?"after":"before",ce=Ee?z.left:z.right}else{!w&&(ne==k||ne==_)&&ne++,ue=ne==0?"after":ne==s.text.length?"before":dr(r,m,ne-(w?1:0)).bottom+b<=p==w?"after":"before";var xe=Un(r,B(u,ne,ue),"line",s,m);ce=xe.left,me=p<xe.top?-1:p>=xe.bottom?1:0}return ne=sr(s.text,ne,1),sf(u,ne,ue,me,c-ce)}function R2(r,s,u,c,p,m,b){var _=ft(function(M){var W=p[M],z=W.level!=1;return cf(Un(r,B(u,z?W.to:W.from,z?"before":"after"),"line",s,c),m,b,!0)},0,p.length-1),k=p[_];if(_>0){var w=k.level!=1,I=Un(r,B(u,w?k.from:k.to,w?"after":"before"),"line",s,c);cf(I,m,b,!0)&&I.top>b&&(k=p[_-1])}return k}function M2(r,s,u,c,p,m,b){var _=Am(r,s,c,b),k=_.begin,w=_.end;/\s/.test(s.text.charAt(w-1))&&w--;for(var I=null,M=null,W=0;W<p.length;W++){var z=p[W];if(!(z.from>=w||z.to<=k)){var ne=z.level!=1,ce=dr(r,c,ne?Math.min(w,z.to)-1:Math.max(k,z.from)).right,ue=ce<m?m-ce+1e9:ce-m;(!I||M>ue)&&(I=z,M=ue)}}return I||(I=p[p.length-1]),I.from<k&&(I={from:k,to:I.to,level:I.level}),I.to>w&&(I={from:I.from,to:w,level:I.level}),I}var Oo;function _i(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(Oo==null){Oo=x("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)Oo.appendChild(document.createTextNode("x")),Oo.appendChild(x("br"));Oo.appendChild(document.createTextNode("x"))}F(r.measure,Oo);var u=Oo.offsetHeight/50;return u>3&&(r.cachedTextHeight=u),H(r.measure),u||1}function ki(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=x("span","xxxxxxxxxx"),u=x("pre",[s],"CodeMirror-line-like");F(r.measure,u);var c=s.getBoundingClientRect(),p=(c.right-c.left)/10;return p>2&&(r.cachedCharWidth=p),p||10}function lf(r){for(var s=r.display,u={},c={},p=s.gutters.clientLeft,m=s.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var _=r.display.gutterSpecs[b].className;u[_]=m.offsetLeft+m.clientLeft+p,c[_]=m.clientWidth}return{fixedPos:uf(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:c,wrapperWidth:s.wrapper.clientWidth}}function uf(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Tm(r){var s=_i(r.display),u=r.options.lineWrapping,c=u&&Math.max(5,r.display.scroller.clientWidth/ki(r.display)-3);return function(p){if(to(r.doc,p))return 0;var m=0;if(p.widgets)for(var b=0;b<p.widgets.length;b++)p.widgets[b].height&&(m+=p.widgets[b].height);return u?m+(Math.ceil(p.text.length/c)||1)*s:m+s}}function ff(r){var s=r.doc,u=Tm(r);s.iter(function(c){var p=u(c);p!=c.height&&Sn(c,p)})}function Io(r,s,u,c){var p=r.display;if(!u&&Yt(s).getAttribute("cm-not-content")=="true")return null;var m,b,_=p.lineSpace.getBoundingClientRect();try{m=s.clientX-_.left,b=s.clientY-_.top}catch{return null}var k=af(r,m,b),w;if(c&&k.xRel>0&&(w=we(r.doc,k.line).text).length==k.ch){var I=he(w,w.length,r.options.tabSize)-w.length;k=B(k.line,Math.max(0,Math.round((m-vm(r.display).left)/ki(r.display))-I))}return k}function Lo(r,s){if(s>=r.display.viewTo||(s-=r.display.viewFrom,s<0))return null;for(var u=r.display.view,c=0;c<u.length;c++)if(s-=u[c].size,s<0)return c}function Jt(r,s,u,c){s==null&&(s=r.doc.first),u==null&&(u=r.doc.first+r.doc.size),c||(c=0);var p=r.display;if(c&&u<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>s)&&(p.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=p.viewTo)Or&&Zu(r.doc,s)<p.viewTo&&ro(r);else if(u<=p.viewFrom)Or&&sm(r.doc,u+c)>p.viewFrom?ro(r):(p.viewFrom+=c,p.viewTo+=c);else if(s<=p.viewFrom&&u>=p.viewTo)ro(r);else if(s<=p.viewFrom){var m=bc(r,u,u+c,1);m?(p.view=p.view.slice(m.index),p.viewFrom=m.lineN,p.viewTo+=c):ro(r)}else if(u>=p.viewTo){var b=bc(r,s,s,-1);b?(p.view=p.view.slice(0,b.index),p.viewTo=b.lineN):ro(r)}else{var _=bc(r,s,s,-1),k=bc(r,u,u+c,1);_&&k?(p.view=p.view.slice(0,_.index).concat(mc(r,_.lineN,k.lineN)).concat(p.view.slice(k.index)),p.viewTo+=c):ro(r)}var w=p.externalMeasured;w&&(u<w.lineN?w.lineN+=c:s<w.lineN+w.size&&(p.externalMeasured=null))}function no(r,s,u){r.curOp.viewChanged=!0;var c=r.display,p=r.display.externalMeasured;if(p&&s>=p.lineN&&s<p.lineN+p.size&&(c.externalMeasured=null),!(s<c.viewFrom||s>=c.viewTo)){var m=c.view[Lo(r,s)];if(m.node!=null){var b=m.changes||(m.changes=[]);De(b,u)==-1&&b.push(u)}}}function ro(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function bc(r,s,u,c){var p=Lo(r,s),m,b=r.display.view;if(!Or||u==r.doc.first+r.doc.size)return{index:p,lineN:u};for(var _=r.display.viewFrom,k=0;k<p;k++)_+=b[k].size;if(_!=s){if(c>0){if(p==b.length-1)return null;m=_+b[p].size-s,p++}else m=_-s;s+=m,u+=m}for(;Zu(r.doc,u)!=u;){if(p==(c<0?0:b.length-1))return null;u+=c*b[p-(c<0?1:0)].size,p+=c}return{index:p,lineN:u}}function q2(r,s,u){var c=r.display,p=c.view;p.length==0||s>=c.viewTo||u<=c.viewFrom?(c.view=mc(r,s,u),c.viewFrom=s):(c.viewFrom>s?c.view=mc(r,s,c.viewFrom).concat(c.view):c.viewFrom<s&&(c.view=c.view.slice(Lo(r,s))),c.viewFrom=s,c.viewTo<u?c.view=c.view.concat(mc(r,c.viewTo,u)):c.viewTo>u&&(c.view=c.view.slice(0,Lo(r,u)))),c.viewTo=u}function Dm(r){for(var s=r.display.view,u=0,c=0;c<s.length;c++){var p=s[c];!p.hidden&&(!p.node||p.changes)&&++u}return u}function Ls(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Nm(r,s){s===void 0&&(s=!0);var u=r.doc,c={},p=c.cursors=document.createDocumentFragment(),m=c.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(s=!0);for(var _=0;_<u.sel.ranges.length;_++)if(!(!s&&_==u.sel.primIndex)){var k=u.sel.ranges[_];if(!(k.from().line>=r.display.viewTo||k.to().line<r.display.viewFrom)){var w=k.empty();if(b){var I=b(r,k);I&&pf(r,I,p)}else(w||r.options.showCursorWhenSelecting)&&pf(r,k.head,p);w||P2(r,k,m)}}return c}function pf(r,s,u){var c=Un(r,s,"div",null,null,!r.options.singleCursorHeightPerLine),p=u.appendChild(x("div"," ","CodeMirror-cursor"));if(p.style.left=c.left+"px",p.style.top=c.top+"px",p.style.height=Math.max(0,c.bottom-c.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=yc(r,s,"div",null,null),b=m.right-m.left;p.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(c.other){var _=u.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));_.style.display="",_.style.left=c.other.left+"px",_.style.top=c.other.top+"px",_.style.height=(c.other.bottom-c.other.top)*.85+"px"}}function Ec(r,s){return r.top-s.top||r.left-s.left}function P2(r,s,u){var c=r.display,p=r.doc,m=document.createDocumentFragment(),b=vm(r.display),_=b.left,k=Math.max(c.sizerWidth,No(r)-c.sizer.offsetLeft)-b.right,w=p.direction=="ltr";function I(ve,xe,Se,Ae){xe<0&&(xe=0),xe=Math.round(xe),Ae=Math.round(Ae),m.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ve+`px;
290
+ `,s);p==-1&&(p=r.length);var m=r.slice(s,r.charAt(p-1)=="\r"?p-1:p),b=m.indexOf("\r");b!=-1?(u.push(m.slice(0,b)),s+=b+1):(u.push(m),s=p+1)}return u}:function(r){return r.split(/\r\n?|\n/)},Zr=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},cr=function(){var r=x("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),lr=null;function sc(r){if(lr!=null)return lr;var s=L(r,x("span","x")),u=s.getBoundingClientRect(),c=J(s,0,1).getBoundingClientRect();return lr=Math.abs(u.left-c.left)>1}var Vn={},Xr={};function ac(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Vn[r]=s}function vi(r,s){Xr[r]=s}function on(r){if(typeof r=="string"&&Xr.hasOwnProperty(r))r=Xr[r];else if(r&&typeof r.name=="string"&&Xr.hasOwnProperty(r.name)){var s=Xr[r.name];typeof s=="string"&&(s={name:s}),r=tc(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return on("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return on("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function Tr(r,s){s=on(s);var u=Vn[s.name];if(!u)return Tr(r,"text/plain");var c=u(r,s);if(Kr.hasOwnProperty(s.name)){var p=Kr[s.name];for(var m in p)p.hasOwnProperty(m)&&(c.hasOwnProperty(m)&&(c["_"+m]=c[m]),c[m]=p[m])}if(c.name=s.name,s.helperType&&(c.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)c[b]=s.modeProps[b];return c}var Kr={};function cc(r,s){var u=Kr.hasOwnProperty(r)?Kr[r]:Kr[r]={};ye(s,u)}function Dr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var u={};for(var c in s){var p=s[c];p instanceof Array&&(p=p.concat([])),u[c]=p}return u}function eo(r,s){for(var u;r.innerMode&&(u=r.innerMode(s),!(!u||u.mode==r));)s=u.state,r=u.mode;return u||{mode:r,state:s}}function As(r,s,u){return r.startState?r.startState(s,u):!0}var dt=function(r,s,u){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};dt.prototype.eol=function(){return this.pos>=this.string.length},dt.prototype.sol=function(){return this.pos==this.lineStart},dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},dt.prototype.eat=function(r){var s=this.string.charAt(this.pos),u;if(typeof r=="string"?u=s==r:u=s&&(r.test?r.test(s):r(s)),u)return++this.pos,s},dt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},dt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},dt.prototype.skipToEnd=function(){this.pos=this.string.length},dt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},dt.prototype.backUp=function(r){this.pos-=r},dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.match=function(r,s,u){if(typeof r=="string"){var c=function(b){return u?b.toLowerCase():b},p=this.string.substr(this.pos,r.length);if(c(p)==c(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},dt.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},dt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},dt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function we(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var u=r;!u.lines;)for(var c=0;;++c){var p=u.children[c],m=p.chunkSize();if(s<m){u=p;break}s-=m}return u.lines[s]}function Nr(r,s,u){var c=[],p=s.line;return r.iter(s.line,u.line+1,function(m){var b=m.text;p==u.line&&(b=b.slice(0,u.ch)),p==s.line&&(b=b.slice(s.ch)),c.push(b),++p}),c}function gi(r,s,u){var c=[];return r.iter(s,u,function(p){c.push(p.text)}),c}function Sn(r,s){var u=s-r.height;if(u)for(var c=r;c;c=c.parent)c.height+=u}function Qe(r){if(r.parent==null)return null;for(var s=r.parent,u=De(s.lines,r),c=s.parent;c;s=c,c=c.parent)for(var p=0;c.children[p]!=s;++p)u+=c.children[p].chunkSize();return u+s.first}function ur(r,s){var u=r.first;e:do{for(var c=0;c<r.children.length;++c){var p=r.children[c],m=p.height;if(s<m){r=p;continue e}s-=m,u+=p.chunkSize()}return u}while(!r.lines);for(var b=0;b<r.lines.length;++b){var _=r.lines[b],k=_.height;if(s<k)break;s-=k}return u+b}function A(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function B(r,s,u){if(u===void 0&&(u=null),!(this instanceof B))return new B(r,s,u);this.line=r,this.ch=s,this.sticky=u}function ee(r,s){return r.line-s.line||r.ch-s.ch}function Ne(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function je(r){return B(r.line,r.ch)}function We(r,s){return ee(r,s)<0?s:r}function $t(r,s){return ee(r,s)<0?r:s}function pn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function Oe(r,s){if(s.line<r.first)return B(r.first,0);var u=r.first+r.size-1;return s.line>u?B(u,we(r,u).text.length):K_(s,we(r,s.line).text.length)}function K_(r,s){var u=r.ch;return u==null||u>s?B(r.line,s):u<0?B(r.line,0):r}function Hh(r,s){for(var u=[],c=0;c<s.length;c++)u[c]=Oe(r,s[c]);return u}var lc=function(r,s){this.state=r,this.lookAhead=s},fr=function(r,s,u,c){this.state=s,this.doc=r,this.line=u,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};fr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},fr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fr.fromSaved=function(r,s,u){return s instanceof lc?new fr(r,Dr(r.mode,s.state),u,s.lookAhead):new fr(r,Dr(r.mode,s),u)},fr.prototype.save=function(r){var s=r!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lc(s,this.maxLookAhead):s};function Gh(r,s,u,c){var p=[r.state.modeGen],m={};Xh(r,s.text,r.doc.mode,u,function(w,I){return p.push(w,I)},m,c);for(var b=u.state,_=function(w){u.baseTokens=p;var I=r.state.overlays[w],M=1,W=0;u.state=!0,Xh(r,s.text,I.mode,u,function(z,ne){for(var ce=M;W<z;){var ue=p[M];ue>z&&p.splice(M,1,z,p[M+1],ue),M+=2,W=Math.min(z,ue)}if(ne)if(I.opaque)p.splice(ce,M-ce,z,"overlay "+ne),M=ce+2;else for(;ce<M;ce+=2){var me=p[ce+1];p[ce+1]=(me?me+" ":"")+"overlay "+ne}},m),u.state=b,u.baseTokens=null,u.baseTokenPos=1},k=0;k<r.state.overlays.length;++k)_(k);return{styles:p,classes:m.bgClass||m.textClass?m:null}}function Wh(r,s,u){if(!s.styles||s.styles[0]!=r.state.modeGen){var c=Ss(r,Qe(s)),p=s.text.length>r.options.maxHighlightLength&&Dr(r.doc.mode,c.state),m=Gh(r,s,c);p&&(c.state=p),s.stateAfter=c.save(!p),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),u===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Ss(r,s,u){var c=r.doc,p=r.display;if(!c.mode.startState)return new fr(c,!0,s);var m=e2(r,s,u),b=m>c.first&&we(c,m-1).stateAfter,_=b?fr.fromSaved(c,b,m):new fr(c,As(c.mode),m);return c.iter(m,s,function(k){Wu(r,k.text,_);var w=_.line;k.stateAfter=w==s-1||w%5==0||w>=p.viewFrom&&w<p.viewTo?_.save():null,_.nextLine()}),u&&(c.modeFrontier=_.line),_}function Wu(r,s,u,c){var p=r.doc.mode,m=new dt(s,r.options.tabSize,u);for(m.start=m.pos=c||0,s==""&&Qh(p,u.state);!m.eol();)Qu(p,m,u.state),m.start=m.pos}function Qh(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var u=eo(r,s);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Qu(r,s,u,c){for(var p=0;p<10;p++){c&&(c[0]=eo(r,u).mode);var m=r.token(s,u);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Yh=function(r,s,u){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=u};function Jh(r,s,u,c){var p=r.doc,m=p.mode,b;s=Oe(p,s);var _=we(p,s.line),k=Ss(r,s.line,u),w=new dt(_.text,r.options.tabSize,k),I;for(c&&(I=[]);(c||w.pos<s.ch)&&!w.eol();)w.start=w.pos,b=Qu(m,w,k.state),c&&I.push(new Yh(w,b,Dr(p.mode,k.state)));return c?I:new Yh(w,b,k.state)}function Zh(r,s){if(r)for(;;){var u=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;r=r.slice(0,u.index)+r.slice(u.index+u[0].length);var c=u[1]?"bgClass":"textClass";s[c]==null?s[c]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(s[c])||(s[c]+=" "+u[2])}return r}function Xh(r,s,u,c,p,m,b){var _=u.flattenSpans;_==null&&(_=r.options.flattenSpans);var k=0,w=null,I=new dt(s,r.options.tabSize,c),M,W=r.options.addModeClass&&[null];for(s==""&&Zh(Qh(u,c.state),m);!I.eol();){if(I.pos>r.options.maxHighlightLength?(_=!1,b&&Wu(r,s,c,I.pos),I.pos=s.length,M=null):M=Zh(Qu(u,I,c.state,W),m),W){var z=W[0].name;z&&(M="m-"+(M?z+" "+M:z))}if(!_||w!=M){for(;k<I.start;)k=Math.min(I.start,k+5e3),p(k,w);w=M}I.start=I.pos}for(;k<I.pos;){var ne=Math.min(I.pos,k+5e3);p(ne,w),k=ne}}function e2(r,s,u){for(var c,p,m=r.doc,b=u?-1:s-(r.doc.mode.innerMode?1e3:100),_=s;_>b;--_){if(_<=m.first)return m.first;var k=we(m,_-1),w=k.stateAfter;if(w&&(!u||_+(w instanceof lc?w.lookAhead:0)<=m.modeFrontier))return _;var I=he(k.text,null,r.options.tabSize);(p==null||c>I)&&(p=_-1,c=I)}return p}function t2(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var u=r.first,c=s-1;c>u;c--){var p=we(r,c).stateAfter;if(p&&(!(p instanceof lc)||c+p.lookAhead<s)){u=c+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,u)}}var Kh=!1,Or=!1;function n2(){Kh=!0}function r2(){Or=!0}function uc(r,s,u){this.marker=r,this.from=s,this.to=u}function Ts(r,s){if(r)for(var u=0;u<r.length;++u){var c=r[u];if(c.marker==s)return c}}function o2(r,s){for(var u,c=0;c<r.length;++c)r[c]!=s&&(u||(u=[])).push(r[c]);return u}function i2(r,s,u){var c=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));c&&r.markedSpans&&c.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],c&&c.add(r.markedSpans)),s.marker.attachLine(r)}function s2(r,s,u){var c;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(_||m.from==s&&b.type=="bookmark"&&(!u||!m.marker.insertLeft)){var k=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(c||(c=[])).push(new uc(b,m.from,k?null:m.to))}}return c}function a2(r,s,u){var c;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(_||m.from==s&&b.type=="bookmark"&&(!u||m.marker.insertLeft)){var k=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(c||(c=[])).push(new uc(b,k?null:m.from-s,m.to==null?null:m.to-s))}}return c}function Yu(r,s){if(s.full)return null;var u=A(r,s.from.line)&&we(r,s.from.line).markedSpans,c=A(r,s.to.line)&&we(r,s.to.line).markedSpans;if(!u&&!c)return null;var p=s.from.ch,m=s.to.ch,b=ee(s.from,s.to)==0,_=s2(u,p,b),k=a2(c,m,b),w=s.text.length==1,I=ze(s.text).length+(w?p:0);if(_)for(var M=0;M<_.length;++M){var W=_[M];if(W.to==null){var z=Ts(k,W.marker);z?w&&(W.to=z.to==null?null:z.to+I):W.to=p}}if(k)for(var ne=0;ne<k.length;++ne){var ce=k[ne];if(ce.to!=null&&(ce.to+=I),ce.from==null){var ue=Ts(_,ce.marker);ue||(ce.from=I,w&&(_||(_=[])).push(ce))}else ce.from+=I,w&&(_||(_=[])).push(ce)}_&&(_=em(_)),k&&k!=_&&(k=em(k));var me=[_];if(!w){var Ee=s.text.length-2,ve;if(Ee>0&&_)for(var xe=0;xe<_.length;++xe)_[xe].to==null&&(ve||(ve=[])).push(new uc(_[xe].marker,null,null));for(var Se=0;Se<Ee;++Se)me.push(ve);me.push(k)}return me}function em(r){for(var s=0;s<r.length;++s){var u=r[s];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function c2(r,s,u){var c=null;if(r.iter(s.line,u.line+1,function(z){if(z.markedSpans)for(var ne=0;ne<z.markedSpans.length;++ne){var ce=z.markedSpans[ne].marker;ce.readOnly&&(!c||De(c,ce)==-1)&&(c||(c=[])).push(ce)}}),!c)return null;for(var p=[{from:s,to:u}],m=0;m<c.length;++m)for(var b=c[m],_=b.find(0),k=0;k<p.length;++k){var w=p[k];if(!(ee(w.to,_.from)<0||ee(w.from,_.to)>0)){var I=[k,1],M=ee(w.from,_.from),W=ee(w.to,_.to);(M<0||!b.inclusiveLeft&&!M)&&I.push({from:w.from,to:_.from}),(W>0||!b.inclusiveRight&&!W)&&I.push({from:_.to,to:w.to}),p.splice.apply(p,I),k+=I.length-3}}return p}function tm(r){var s=r.markedSpans;if(s){for(var u=0;u<s.length;++u)s[u].marker.detachLine(r);r.markedSpans=null}}function nm(r,s){if(s){for(var u=0;u<s.length;++u)s[u].marker.attachLine(r);r.markedSpans=s}}function fc(r){return r.inclusiveLeft?-1:0}function pc(r){return r.inclusiveRight?1:0}function Ju(r,s){var u=r.lines.length-s.lines.length;if(u!=0)return u;var c=r.find(),p=s.find(),m=ee(c.from,p.from)||fc(r)-fc(s);if(m)return-m;var b=ee(c.to,p.to)||pc(r)-pc(s);return b||s.id-r.id}function rm(r,s){var u=Or&&r.markedSpans,c;if(u)for(var p=void 0,m=0;m<u.length;++m)p=u[m],p.marker.collapsed&&(s?p.from:p.to)==null&&(!c||Ju(c,p.marker)<0)&&(c=p.marker);return c}function om(r){return rm(r,!0)}function dc(r){return rm(r,!1)}function l2(r,s){var u=Or&&r.markedSpans,c;if(u)for(var p=0;p<u.length;++p){var m=u[p];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!c||Ju(c,m.marker)<0)&&(c=m.marker)}return c}function im(r,s,u,c,p){var m=we(r,s),b=Or&&m.markedSpans;if(b)for(var _=0;_<b.length;++_){var k=b[_];if(k.marker.collapsed){var w=k.marker.find(0),I=ee(w.from,u)||fc(k.marker)-fc(p),M=ee(w.to,c)||pc(k.marker)-pc(p);if(!(I>=0&&M<=0||I<=0&&M>=0)&&(I<=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.to,u)>=0:ee(w.to,u)>0)||I>=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.from,c)<=0:ee(w.from,c)<0)))return!0}}}function jn(r){for(var s;s=om(r);)r=s.find(-1,!0).line;return r}function u2(r){for(var s;s=dc(r);)r=s.find(1,!0).line;return r}function f2(r){for(var s,u;s=dc(r);)r=s.find(1,!0).line,(u||(u=[])).push(r);return u}function Zu(r,s){var u=we(r,s),c=jn(u);return u==c?s:Qe(c)}function sm(r,s){if(s>r.lastLine())return s;var u=we(r,s),c;if(!to(r,u))return s;for(;c=dc(u);)u=c.find(1,!0).line;return Qe(u)+1}function to(r,s){var u=Or&&s.markedSpans;if(u){for(var c=void 0,p=0;p<u.length;++p)if(c=u[p],!!c.marker.collapsed){if(c.from==null)return!0;if(!c.marker.widgetNode&&c.from==0&&c.marker.inclusiveLeft&&Xu(r,s,c))return!0}}}function Xu(r,s,u){if(u.to==null){var c=u.marker.find(1,!0);return Xu(r,c.line,Ts(c.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==s.text.length)return!0;for(var p=void 0,m=0;m<s.markedSpans.length;++m)if(p=s.markedSpans[m],p.marker.collapsed&&!p.marker.widgetNode&&p.from==u.to&&(p.to==null||p.to!=u.from)&&(p.marker.inclusiveLeft||u.marker.inclusiveRight)&&Xu(r,s,p))return!0}function Ir(r){r=jn(r);for(var s=0,u=r.parent,c=0;c<u.lines.length;++c){var p=u.lines[c];if(p==r)break;s+=p.height}for(var m=u.parent;m;u=m,m=u.parent)for(var b=0;b<m.children.length;++b){var _=m.children[b];if(_==u)break;s+=_.height}return s}function hc(r){if(r.height==0)return 0;for(var s=r.text.length,u,c=r;u=om(c);){var p=u.find(0,!0);c=p.from.line,s+=p.from.ch-p.to.ch}for(c=r;u=dc(c);){var m=u.find(0,!0);s-=c.text.length-m.from.ch,c=m.to.line,s+=c.text.length-m.to.ch}return s}function Ku(r){var s=r.display,u=r.doc;s.maxLine=we(u,u.first),s.maxLineLength=hc(s.maxLine),s.maxLineChanged=!0,u.iter(function(c){var p=hc(c);p>s.maxLineLength&&(s.maxLineLength=p,s.maxLine=c)})}var yi=function(r,s,u){this.text=r,nm(this,s),this.height=u?u(this):1};yi.prototype.lineNo=function(){return Qe(this)},Ht(yi);function p2(r,s,u,c){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),tm(r),nm(r,u);var p=c?c(r):1;p!=r.height&&Sn(r,p)}function d2(r){r.parent=null,tm(r)}var h2={},m2={};function am(r,s){if(!r||/^\s*$/.test(r))return null;var u=s.addModeClass?m2:h2;return u[r]||(u[r]=r.replace(/\S+/g,"cm-$&"))}function cm(r,s){var u=j("span",null,null,v?"padding-right: .1px":null),c={pre:j("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var p=0;p<=(s.rest?s.rest.length:0);p++){var m=p?s.rest[p-1]:s.line,b=void 0;c.pos=0,c.addToken=g2,ic(r.display.measure)&&(b=Cn(m,r.doc.direction))&&(c.addToken=b2(c.addToken,b)),c.map=[];var _=s!=r.display.externalMeasured&&Qe(m);E2(m,c,Wh(r,m,_)),m.styleClasses&&(m.styleClasses.bgClass&&(c.bgClass=Me(m.styleClasses.bgClass,c.bgClass||"")),m.styleClasses.textClass&&(c.textClass=Me(m.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Gu(r.display.measure))),p==0?(s.measure.map=c.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(c.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(v){var k=c.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return it(r,"renderLine",r,s.line,c.pre),c.pre.className&&(c.textClass=Me(c.pre.className,c.textClass||"")),c}function v2(r){var s=x("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function g2(r,s,u,c,p,m,b){if(s){var _=r.splitSpaces?y2(s,r.trailingSpace):s,k=r.cm.state.specialChars,w=!1,I;if(!k.test(s))r.col+=s.length,I=document.createTextNode(_),r.map.push(r.pos,r.pos+s.length,I),d&&h<9&&(w=!0),r.pos+=s.length;else{I=document.createDocumentFragment();for(var M=0;;){k.lastIndex=M;var W=k.exec(s),z=W?W.index-M:s.length-M;if(z){var ne=document.createTextNode(_.slice(M,M+z));d&&h<9?I.appendChild(x("span",[ne])):I.appendChild(ne),r.map.push(r.pos,r.pos+z,ne),r.col+=z,r.pos+=z}if(!W)break;M+=z+1;var ce=void 0;if(W[0]==" "){var ue=r.cm.options.tabSize,me=ue-r.col%ue;ce=I.appendChild(x("span",ir(me),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),r.col+=me}else W[0]=="\r"||W[0]==`
291
+ `?(ce=I.appendChild(x("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),ce.setAttribute("cm-text",W[0]),r.col+=1):(ce=r.cm.options.specialCharPlaceholder(W[0]),ce.setAttribute("cm-text",W[0]),d&&h<9?I.appendChild(x("span",[ce])):I.appendChild(ce),r.col+=1);r.map.push(r.pos,r.pos+1,ce),r.pos++}}if(r.trailingSpace=_.charCodeAt(s.length-1)==32,u||c||p||w||m||b){var Ee=u||"";c&&(Ee+=c),p&&(Ee+=p);var ve=x("span",[I],Ee,m);if(b)for(var xe in b)b.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&ve.setAttribute(xe,b[xe]);return r.content.appendChild(ve)}r.content.appendChild(I)}}function y2(r,s){if(r.length>1&&!/ /.test(r))return r;for(var u=s,c="",p=0;p<r.length;p++){var m=r.charAt(p);m==" "&&u&&(p==r.length-1||r.charCodeAt(p+1)==32)&&(m=" "),c+=m,u=m==" "}return c}function b2(r,s){return function(u,c,p,m,b,_,k){p=p?p+" cm-force-border":"cm-force-border";for(var w=u.pos,I=w+c.length;;){for(var M=void 0,W=0;W<s.length&&(M=s[W],!(M.to>w&&M.from<=w));W++);if(M.to>=I)return r(u,c,p,m,b,_,k);r(u,c.slice(0,M.to-w),p,m,null,_,k),m=null,c=c.slice(M.to-w),w=M.to}}}function lm(r,s,u,c){var p=!c&&u.widgetNode;p&&r.map.push(r.pos,r.pos+s,p),!c&&r.cm.display.input.needsContentAttribute&&(p||(p=r.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",u.id)),p&&(r.cm.display.input.setUneditable(p),r.content.appendChild(p)),r.pos+=s,r.trailingSpace=!1}function E2(r,s,u){var c=r.markedSpans,p=r.text,m=0;if(!c){for(var b=1;b<u.length;b+=2)s.addToken(s,p.slice(m,m=u[b]),am(u[b+1],s.cm.options));return}for(var _=p.length,k=0,w=1,I="",M,W,z=0,ne,ce,ue,me,Ee;;){if(z==k){ne=ce=ue=W="",Ee=null,me=null,z=1/0;for(var ve=[],xe=void 0,Se=0;Se<c.length;++Se){var Ae=c[Se],Re=Ae.marker;if(Re.type=="bookmark"&&Ae.from==k&&Re.widgetNode)ve.push(Re);else if(Ae.from<=k&&(Ae.to==null||Ae.to>k||Re.collapsed&&Ae.to==k&&Ae.from==k)){if(Ae.to!=null&&Ae.to!=k&&z>Ae.to&&(z=Ae.to,ce=""),Re.className&&(ne+=" "+Re.className),Re.css&&(W=(W?W+";":"")+Re.css),Re.startStyle&&Ae.from==k&&(ue+=" "+Re.startStyle),Re.endStyle&&Ae.to==z&&(xe||(xe=[])).push(Re.endStyle,Ae.to),Re.title&&((Ee||(Ee={})).title=Re.title),Re.attributes)for(var rt in Re.attributes)(Ee||(Ee={}))[rt]=Re.attributes[rt];Re.collapsed&&(!me||Ju(me.marker,Re)<0)&&(me=Ae)}else Ae.from>k&&z>Ae.from&&(z=Ae.from)}if(xe)for(var Ot=0;Ot<xe.length;Ot+=2)xe[Ot+1]==z&&(ce+=" "+xe[Ot]);if(!me||me.from==k)for(var ut=0;ut<ve.length;++ut)lm(s,0,ve[ut]);if(me&&(me.from||0)==k){if(lm(s,(me.to==null?_+1:me.to)-k,me.marker,me.from==null),me.to==null)return;me.to==k&&(me=!1)}}if(k>=_)break;for(var an=Math.min(_,z);;){if(I){var Xt=k+I.length;if(!me){var bt=Xt>an?I.slice(0,an-k):I;s.addToken(s,bt,M?M+ne:ne,ue,k+bt.length==z?ce:"",W,Ee)}if(Xt>=an){I=I.slice(an-k),k=an;break}k=Xt,ue=""}I=p.slice(m,m=u[w++]),M=am(u[w++],s.cm.options)}}}function um(r,s,u){this.line=s,this.rest=f2(s),this.size=this.rest?Qe(ze(this.rest))-u+1:1,this.node=this.text=null,this.hidden=to(r,s)}function mc(r,s,u){for(var c=[],p,m=s;m<u;m=p){var b=new um(r.doc,we(r.doc,m),m);p=m+b.size,c.push(b)}return c}var bi=null;function _2(r){bi?bi.ops.push(r):r.ownsGroup=bi={ops:[r],delayedCallbacks:[]}}function k2(r){var s=r.delayedCallbacks,u=0;do{for(;u<s.length;u++)s[u].call(null);for(var c=0;c<r.ops.length;c++){var p=r.ops[c];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(u<s.length)}function x2(r,s){var u=r.ownsGroup;if(u)try{k2(u)}finally{bi=null,s(u)}}var Ds=null;function Tt(r,s){var u=xs(r,s);if(u.length){var c=Array.prototype.slice.call(arguments,2),p;bi?p=bi.delayedCallbacks:Ds?p=Ds:(p=Ds=[],setTimeout(w2,0));for(var m=function(_){p.push(function(){return u[_].apply(null,c)})},b=0;b<u.length;++b)m(b)}}function w2(){var r=Ds;Ds=null;for(var s=0;s<r.length;++s)r[s]()}function fm(r,s,u,c){for(var p=0;p<s.changes.length;p++){var m=s.changes[p];m=="text"?C2(r,s):m=="gutter"?dm(r,s,u,c):m=="class"?ef(r,s):m=="widget"&&A2(r,s,c)}s.changes=null}function Ns(r){return r.node==r.text&&(r.node=x("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),d&&h<8&&(r.node.style.zIndex=2)),r.node}function $2(r,s){var u=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),s.background)u?s.background.className=u:(s.background.parentNode.removeChild(s.background),s.background=null);else if(u){var c=Ns(s);s.background=c.insertBefore(x("div",null,u),c.firstChild),r.display.input.setUneditable(s.background)}}function pm(r,s){var u=r.display.externalMeasured;return u&&u.line==s.line?(r.display.externalMeasured=null,s.measure=u.measure,u.built):cm(r,s)}function C2(r,s){var u=s.text.className,c=pm(r,s);s.text==s.node&&(s.node=c.pre),s.text.parentNode.replaceChild(c.pre,s.text),s.text=c.pre,c.bgClass!=s.bgClass||c.textClass!=s.textClass?(s.bgClass=c.bgClass,s.textClass=c.textClass,ef(r,s)):u&&(s.text.className=u)}function ef(r,s){$2(r,s),s.line.wrapClass?Ns(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var u=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=u||""}function dm(r,s,u,c){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var p=Ns(s);s.gutterBackground=x("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(r.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px; width: "+c.gutterTotalWidth+"px"),r.display.input.setUneditable(s.gutterBackground),p.insertBefore(s.gutterBackground,s.text)}var m=s.line.gutterMarkers;if(r.options.lineNumbers||m){var b=Ns(s),_=s.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px");if(_.setAttribute("aria-hidden","true"),r.display.input.setUneditable(_),b.insertBefore(_,s.text),s.line.gutterClass&&(_.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(s.lineNumber=_.appendChild(x("div",q(r.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+c.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var k=0;k<r.display.gutterSpecs.length;++k){var w=r.display.gutterSpecs[k].className,I=m.hasOwnProperty(w)&&m[w];I&&_.appendChild(x("div",[I],"CodeMirror-gutter-elt","left: "+c.gutterLeft[w]+"px; width: "+c.gutterWidth[w]+"px"))}}}function A2(r,s,u){s.alignable&&(s.alignable=null);for(var c=re("CodeMirror-linewidget"),p=s.node.firstChild,m=void 0;p;p=m)m=p.nextSibling,c.test(p.className)&&s.node.removeChild(p);hm(r,s,u)}function S2(r,s,u,c){var p=pm(r,s);return s.text=s.node=p.pre,p.bgClass&&(s.bgClass=p.bgClass),p.textClass&&(s.textClass=p.textClass),ef(r,s),dm(r,s,u,c),hm(r,s,c),s.node}function hm(r,s,u){if(mm(r,s.line,s,u,!0),s.rest)for(var c=0;c<s.rest.length;c++)mm(r,s.rest[c],s,u,!1)}function mm(r,s,u,c,p){if(s.widgets)for(var m=Ns(u),b=0,_=s.widgets;b<_.length;++b){var k=_[b],w=x("div",[k.node],"CodeMirror-linewidget"+(k.className?" "+k.className:""));k.handleMouseEvents||w.setAttribute("cm-ignore-events","true"),T2(k,w,u,c),r.display.input.setUneditable(w),p&&k.above?m.insertBefore(w,u.gutter||u.text):m.appendChild(w),Tt(k,"redraw")}}function T2(r,s,u,c){if(r.noHScroll){(u.alignable||(u.alignable=[])).push(s);var p=c.wrapperWidth;s.style.left=c.fixedPos+"px",r.coverGutter||(p-=c.gutterTotalWidth,s.style.paddingLeft=c.gutterTotalWidth+"px"),s.style.width=p+"px"}r.coverGutter&&(s.style.zIndex=5,s.style.position="relative",r.noHScroll||(s.style.marginLeft=-c.gutterTotalWidth+"px"))}function Os(r){if(r.height!=null)return r.height;var s=r.doc.cm;if(!s)return 0;if(!te(document.body,r.node)){var u="position: relative;";r.coverGutter&&(u+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),r.noHScroll&&(u+="width: "+s.display.wrapper.clientWidth+"px;"),L(s.display.measure,x("div",[r.node],null,u))}return r.height=r.node.parentNode.offsetHeight}function Fr(r,s){for(var u=Yt(s);u!=r.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==r.sizer&&u!=r.mover)return!0}function vc(r){return r.lineSpace.offsetTop}function tf(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function vm(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=L(r.measure,x("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,c={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(c.left)&&!isNaN(c.right)&&(r.cachedPaddingH=c),c}function pr(r){return xn-r.display.nativeBarWidth}function No(r){return r.display.scroller.clientWidth-pr(r)-r.display.barWidth}function nf(r){return r.display.scroller.clientHeight-pr(r)-r.display.barHeight}function D2(r,s,u){var c=r.options.lineWrapping,p=c&&No(r);if(!s.measure.heights||c&&s.measure.width!=p){var m=s.measure.heights=[];if(c){s.measure.width=p;for(var b=s.text.firstChild.getClientRects(),_=0;_<b.length-1;_++){var k=b[_],w=b[_+1];Math.abs(k.bottom-w.bottom)>2&&m.push((k.bottom+w.top)/2-u.top)}}m.push(u.bottom-u.top)}}function gm(r,s,u){if(r.line==s)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var c=0;c<r.rest.length;c++)if(r.rest[c]==s)return{map:r.measure.maps[c],cache:r.measure.caches[c]};for(var p=0;p<r.rest.length;p++)if(Qe(r.rest[p])>u)return{map:r.measure.maps[p],cache:r.measure.caches[p],before:!0}}}function N2(r,s){s=jn(s);var u=Qe(s),c=r.display.externalMeasured=new um(r.doc,s,u);c.lineN=u;var p=c.built=cm(r,c);return c.text=p.pre,L(r.display.lineMeasure,p.pre),c}function ym(r,s,u,c){return dr(r,Ei(r,s),u,c)}function rf(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[Fo(r,s)];var u=r.display.externalMeasured;if(u&&s>=u.lineN&&s<u.lineN+u.size)return u}function Ei(r,s){var u=Qe(s),c=rf(r,u);c&&!c.text?c=null:c&&c.changes&&(fm(r,c,u,lf(r)),r.curOp.forceUpdate=!0),c||(c=N2(r,s));var p=gm(c,s,u);return{line:s,view:c,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function dr(r,s,u,c,p){s.before&&(u=-1);var m=u+(c||""),b;return s.cache.hasOwnProperty(m)?b=s.cache[m]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(D2(r,s.view,s.rect),s.hasHeights=!0),b=I2(r,s,u,c),b.bogus||(s.cache[m]=b)),{left:b.left,right:b.right,top:p?b.rtop:b.top,bottom:p?b.rbottom:b.bottom}}var bm={left:0,right:0,top:0,bottom:0};function Em(r,s,u){for(var c,p,m,b,_,k,w=0;w<r.length;w+=3)if(_=r[w],k=r[w+1],s<_?(p=0,m=1,b="left"):s<k?(p=s-_,m=p+1):(w==r.length-3||s==k&&r[w+3]>s)&&(m=k-_,p=m-1,s>=k&&(b="right")),p!=null){if(c=r[w+2],_==k&&u==(c.insertLeft?"left":"right")&&(b=u),u=="left"&&p==0)for(;w&&r[w-2]==r[w-3]&&r[w-1].insertLeft;)c=r[(w-=3)+2],b="left";if(u=="right"&&p==k-_)for(;w<r.length-3&&r[w+3]==r[w+4]&&!r[w+5].insertLeft;)c=r[(w+=3)+2],b="right";break}return{node:c,start:p,end:m,collapse:b,coverStart:_,coverEnd:k}}function O2(r,s){var u=bm;if(s=="left")for(var c=0;c<r.length&&(u=r[c]).left==u.right;c++);else for(var p=r.length-1;p>=0&&(u=r[p]).left==u.right;p--);return u}function I2(r,s,u,c){var p=Em(s.map,u,c),m=p.node,b=p.start,_=p.end,k=p.collapse,w;if(m.nodeType==3){for(var I=0;I<4;I++){for(;b&&ks(s.line.text.charAt(p.coverStart+b));)--b;for(;p.coverStart+_<p.coverEnd&&ks(s.line.text.charAt(p.coverStart+_));)++_;if(d&&h<9&&b==0&&_==p.coverEnd-p.coverStart?w=m.parentNode.getBoundingClientRect():w=O2(J(m,b,_).getClientRects(),c),w.left||w.right||b==0)break;_=b,b=b-1,k="right"}d&&h<11&&(w=F2(r.display.measure,w))}else{b>0&&(k=c="right");var M;r.options.lineWrapping&&(M=m.getClientRects()).length>1?w=M[c=="right"?M.length-1:0]:w=m.getBoundingClientRect()}if(d&&h<9&&!b&&(!w||!w.left&&!w.right)){var W=m.parentNode.getClientRects()[0];W?w={left:W.left,right:W.left+ki(r.display),top:W.top,bottom:W.bottom}:w=bm}for(var z=w.top-s.rect.top,ne=w.bottom-s.rect.top,ce=(z+ne)/2,ue=s.view.measure.heights,me=0;me<ue.length-1&&!(ce<ue[me]);me++);var Ee=me?ue[me-1]:0,ve=ue[me],xe={left:(k=="right"?w.right:w.left)-s.rect.left,right:(k=="left"?w.left:w.right)-s.rect.left,top:Ee,bottom:ve};return!w.left&&!w.right&&(xe.bogus=!0),r.options.singleCursorHeightPerLine||(xe.rtop=z,xe.rbottom=ne),xe}function F2(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sc(r))return s;var u=screen.logicalXDPI/screen.deviceXDPI,c=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*u,right:s.right*u,top:s.top*c,bottom:s.bottom*c}}function _m(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var s=0;s<r.rest.length;s++)r.measure.caches[s]={}}function km(r){r.display.externalMeasure=null,H(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)_m(r.display.view[s])}function Is(r){km(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function xm(r){return g&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function wm(r){return g&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function of(r){var s=jn(r),u=s.widgets,c=0;if(u)for(var p=0;p<u.length;++p)u[p].above&&(c+=Os(u[p]));return c}function gc(r,s,u,c,p){if(!p){var m=of(s);u.top+=m,u.bottom+=m}if(c=="line")return u;c||(c="local");var b=Ir(s);if(c=="local"?b+=vc(r.display):b-=r.display.viewOffset,c=="page"||c=="window"){var _=r.display.lineSpace.getBoundingClientRect();b+=_.top+(c=="window"?0:wm(fe(r)));var k=_.left+(c=="window"?0:xm(fe(r)));u.left+=k,u.right+=k}return u.top+=b,u.bottom+=b,u}function $m(r,s,u){if(u=="div")return s;var c=s.left,p=s.top;if(u=="page")c-=xm(fe(r)),p-=wm(fe(r));else if(u=="local"||!u){var m=r.display.sizer.getBoundingClientRect();c+=m.left,p+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:c-b.left,top:p-b.top}}function yc(r,s,u,c,p){return c||(c=we(r.doc,s.line)),gc(r,c,ym(r,c,s.ch,p),u)}function Un(r,s,u,c,p,m){c=c||we(r.doc,s.line),p||(p=Ei(r,c));function b(ne,ce){var ue=dr(r,p,ne,ce?"right":"left",m);return ce?ue.left=ue.right:ue.right=ue.left,gc(r,c,ue,u)}var _=Cn(c,r.doc.direction),k=s.ch,w=s.sticky;if(k>=c.text.length?(k=c.text.length,w="before"):k<=0&&(k=0,w="after"),!_)return b(w=="before"?k-1:k,w=="before");function I(ne,ce,ue){var me=_[ce],Ee=me.level==1;return b(ue?ne-1:ne,Ee!=ue)}var M=$n(_,k,w),W=ar,z=I(k,M,w=="before");return W!=null&&(z.other=I(k,W,w!="before")),z}function Cm(r,s){var u=0;s=Oe(r.doc,s),r.options.lineWrapping||(u=ki(r.display)*s.ch);var c=we(r.doc,s.line),p=Ir(c)+vc(r.display);return{left:u,right:u,top:p,bottom:p+c.height}}function sf(r,s,u,c,p){var m=B(r,s,u);return m.xRel=p,c&&(m.outside=c),m}function af(r,s,u){var c=r.doc;if(u+=r.display.viewOffset,u<0)return sf(c.first,0,null,-1,-1);var p=ur(c,u),m=c.first+c.size-1;if(p>m)return sf(c.first+c.size-1,we(c,m).text.length,null,1,1);s<0&&(s=0);for(var b=we(c,p);;){var _=L2(r,b,p,s,u),k=l2(b,_.ch+(_.xRel>0||_.outside>0?1:0));if(!k)return _;var w=k.find(1);if(w.line==p)return w;b=we(c,p=w.line)}}function Am(r,s,u,c){c-=of(s);var p=s.text.length,m=ft(function(b){return dr(r,u,b-1).bottom<=c},p,0);return p=ft(function(b){return dr(r,u,b).top>c},m,p),{begin:m,end:p}}function Sm(r,s,u,c){u||(u=Ei(r,s));var p=gc(r,s,dr(r,u,c),"line").top;return Am(r,s,u,p)}function cf(r,s,u,c){return r.bottom<=u?!1:r.top>u?!0:(c?r.left:r.right)>s}function L2(r,s,u,c,p){p-=Ir(s);var m=Ei(r,s),b=of(s),_=0,k=s.text.length,w=!0,I=Cn(s,r.doc.direction);if(I){var M=(r.options.lineWrapping?M2:R2)(r,s,u,m,I,c,p);w=M.level!=1,_=w?M.from:M.to-1,k=w?M.to:M.from-1}var W=null,z=null,ne=ft(function(Se){var Ae=dr(r,m,Se);return Ae.top+=b,Ae.bottom+=b,cf(Ae,c,p,!1)?(Ae.top<=p&&Ae.left<=c&&(W=Se,z=Ae),!0):!1},_,k),ce,ue,me=!1;if(z){var Ee=c-z.left<z.right-c,ve=Ee==w;ne=W+(ve?0:1),ue=ve?"after":"before",ce=Ee?z.left:z.right}else{!w&&(ne==k||ne==_)&&ne++,ue=ne==0?"after":ne==s.text.length?"before":dr(r,m,ne-(w?1:0)).bottom+b<=p==w?"after":"before";var xe=Un(r,B(u,ne,ue),"line",s,m);ce=xe.left,me=p<xe.top?-1:p>=xe.bottom?1:0}return ne=sr(s.text,ne,1),sf(u,ne,ue,me,c-ce)}function R2(r,s,u,c,p,m,b){var _=ft(function(M){var W=p[M],z=W.level!=1;return cf(Un(r,B(u,z?W.to:W.from,z?"before":"after"),"line",s,c),m,b,!0)},0,p.length-1),k=p[_];if(_>0){var w=k.level!=1,I=Un(r,B(u,w?k.from:k.to,w?"after":"before"),"line",s,c);cf(I,m,b,!0)&&I.top>b&&(k=p[_-1])}return k}function M2(r,s,u,c,p,m,b){var _=Am(r,s,c,b),k=_.begin,w=_.end;/\s/.test(s.text.charAt(w-1))&&w--;for(var I=null,M=null,W=0;W<p.length;W++){var z=p[W];if(!(z.from>=w||z.to<=k)){var ne=z.level!=1,ce=dr(r,c,ne?Math.min(w,z.to)-1:Math.max(k,z.from)).right,ue=ce<m?m-ce+1e9:ce-m;(!I||M>ue)&&(I=z,M=ue)}}return I||(I=p[p.length-1]),I.from<k&&(I={from:k,to:I.to,level:I.level}),I.to>w&&(I={from:I.from,to:w,level:I.level}),I}var Oo;function _i(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(Oo==null){Oo=x("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)Oo.appendChild(document.createTextNode("x")),Oo.appendChild(x("br"));Oo.appendChild(document.createTextNode("x"))}L(r.measure,Oo);var u=Oo.offsetHeight/50;return u>3&&(r.cachedTextHeight=u),H(r.measure),u||1}function ki(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=x("span","xxxxxxxxxx"),u=x("pre",[s],"CodeMirror-line-like");L(r.measure,u);var c=s.getBoundingClientRect(),p=(c.right-c.left)/10;return p>2&&(r.cachedCharWidth=p),p||10}function lf(r){for(var s=r.display,u={},c={},p=s.gutters.clientLeft,m=s.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var _=r.display.gutterSpecs[b].className;u[_]=m.offsetLeft+m.clientLeft+p,c[_]=m.clientWidth}return{fixedPos:uf(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:c,wrapperWidth:s.wrapper.clientWidth}}function uf(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Tm(r){var s=_i(r.display),u=r.options.lineWrapping,c=u&&Math.max(5,r.display.scroller.clientWidth/ki(r.display)-3);return function(p){if(to(r.doc,p))return 0;var m=0;if(p.widgets)for(var b=0;b<p.widgets.length;b++)p.widgets[b].height&&(m+=p.widgets[b].height);return u?m+(Math.ceil(p.text.length/c)||1)*s:m+s}}function ff(r){var s=r.doc,u=Tm(r);s.iter(function(c){var p=u(c);p!=c.height&&Sn(c,p)})}function Io(r,s,u,c){var p=r.display;if(!u&&Yt(s).getAttribute("cm-not-content")=="true")return null;var m,b,_=p.lineSpace.getBoundingClientRect();try{m=s.clientX-_.left,b=s.clientY-_.top}catch{return null}var k=af(r,m,b),w;if(c&&k.xRel>0&&(w=we(r.doc,k.line).text).length==k.ch){var I=he(w,w.length,r.options.tabSize)-w.length;k=B(k.line,Math.max(0,Math.round((m-vm(r.display).left)/ki(r.display))-I))}return k}function Fo(r,s){if(s>=r.display.viewTo||(s-=r.display.viewFrom,s<0))return null;for(var u=r.display.view,c=0;c<u.length;c++)if(s-=u[c].size,s<0)return c}function Jt(r,s,u,c){s==null&&(s=r.doc.first),u==null&&(u=r.doc.first+r.doc.size),c||(c=0);var p=r.display;if(c&&u<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>s)&&(p.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=p.viewTo)Or&&Zu(r.doc,s)<p.viewTo&&ro(r);else if(u<=p.viewFrom)Or&&sm(r.doc,u+c)>p.viewFrom?ro(r):(p.viewFrom+=c,p.viewTo+=c);else if(s<=p.viewFrom&&u>=p.viewTo)ro(r);else if(s<=p.viewFrom){var m=bc(r,u,u+c,1);m?(p.view=p.view.slice(m.index),p.viewFrom=m.lineN,p.viewTo+=c):ro(r)}else if(u>=p.viewTo){var b=bc(r,s,s,-1);b?(p.view=p.view.slice(0,b.index),p.viewTo=b.lineN):ro(r)}else{var _=bc(r,s,s,-1),k=bc(r,u,u+c,1);_&&k?(p.view=p.view.slice(0,_.index).concat(mc(r,_.lineN,k.lineN)).concat(p.view.slice(k.index)),p.viewTo+=c):ro(r)}var w=p.externalMeasured;w&&(u<w.lineN?w.lineN+=c:s<w.lineN+w.size&&(p.externalMeasured=null))}function no(r,s,u){r.curOp.viewChanged=!0;var c=r.display,p=r.display.externalMeasured;if(p&&s>=p.lineN&&s<p.lineN+p.size&&(c.externalMeasured=null),!(s<c.viewFrom||s>=c.viewTo)){var m=c.view[Fo(r,s)];if(m.node!=null){var b=m.changes||(m.changes=[]);De(b,u)==-1&&b.push(u)}}}function ro(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function bc(r,s,u,c){var p=Fo(r,s),m,b=r.display.view;if(!Or||u==r.doc.first+r.doc.size)return{index:p,lineN:u};for(var _=r.display.viewFrom,k=0;k<p;k++)_+=b[k].size;if(_!=s){if(c>0){if(p==b.length-1)return null;m=_+b[p].size-s,p++}else m=_-s;s+=m,u+=m}for(;Zu(r.doc,u)!=u;){if(p==(c<0?0:b.length-1))return null;u+=c*b[p-(c<0?1:0)].size,p+=c}return{index:p,lineN:u}}function q2(r,s,u){var c=r.display,p=c.view;p.length==0||s>=c.viewTo||u<=c.viewFrom?(c.view=mc(r,s,u),c.viewFrom=s):(c.viewFrom>s?c.view=mc(r,s,c.viewFrom).concat(c.view):c.viewFrom<s&&(c.view=c.view.slice(Fo(r,s))),c.viewFrom=s,c.viewTo<u?c.view=c.view.concat(mc(r,c.viewTo,u)):c.viewTo>u&&(c.view=c.view.slice(0,Fo(r,u)))),c.viewTo=u}function Dm(r){for(var s=r.display.view,u=0,c=0;c<s.length;c++){var p=s[c];!p.hidden&&(!p.node||p.changes)&&++u}return u}function Fs(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Nm(r,s){s===void 0&&(s=!0);var u=r.doc,c={},p=c.cursors=document.createDocumentFragment(),m=c.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(s=!0);for(var _=0;_<u.sel.ranges.length;_++)if(!(!s&&_==u.sel.primIndex)){var k=u.sel.ranges[_];if(!(k.from().line>=r.display.viewTo||k.to().line<r.display.viewFrom)){var w=k.empty();if(b){var I=b(r,k);I&&pf(r,I,p)}else(w||r.options.showCursorWhenSelecting)&&pf(r,k.head,p);w||P2(r,k,m)}}return c}function pf(r,s,u){var c=Un(r,s,"div",null,null,!r.options.singleCursorHeightPerLine),p=u.appendChild(x("div"," ","CodeMirror-cursor"));if(p.style.left=c.left+"px",p.style.top=c.top+"px",p.style.height=Math.max(0,c.bottom-c.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=yc(r,s,"div",null,null),b=m.right-m.left;p.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(c.other){var _=u.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));_.style.display="",_.style.left=c.other.left+"px",_.style.top=c.other.top+"px",_.style.height=(c.other.bottom-c.other.top)*.85+"px"}}function Ec(r,s){return r.top-s.top||r.left-s.left}function P2(r,s,u){var c=r.display,p=r.doc,m=document.createDocumentFragment(),b=vm(r.display),_=b.left,k=Math.max(c.sizerWidth,No(r)-c.sizer.offsetLeft)-b.right,w=p.direction=="ltr";function I(ve,xe,Se,Ae){xe<0&&(xe=0),xe=Math.round(xe),Ae=Math.round(Ae),m.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ve+`px;
292
292
  top: `+xe+"px; width: "+(Se??k-ve)+`px;
293
- height: `+(Ae-xe)+"px"))}function M(ve,xe,Se){var Ae=we(p,ve),Re=Ae.text.length,rt,Ot;function ut(bt,Kt){return yc(r,B(ve,bt),"div",Ae,Kt)}function an(bt,Kt,Mt){var Ct=Sm(r,Ae,null,bt),Et=Kt=="ltr"==(Mt=="after")?"left":"right",ht=Mt=="after"?Ct.begin:Ct.end-(/\s/.test(Ae.text.charAt(Ct.end-1))?2:1);return ut(ht,Et)[Et]}var Xt=Cn(Ae,p.direction);return To(Xt,xe||0,Se??Re,function(bt,Kt,Mt,Ct){var Et=Mt=="ltr",ht=ut(bt,Et?"left":"right"),en=ut(Kt-1,Et?"right":"left"),Fi=xe==null&&bt==0,lo=Se==null&&Kt==Re,jt=Ct==0,hr=!Xt||Ct==Xt.length-1;if(en.top-ht.top<=3){var It=(w?Fi:lo)&&jt,Pf=(w?lo:Fi)&&hr,Mr=It?_:(Et?ht:en).left,Po=Pf?k:(Et?en:ht).right;I(Mr,ht.top,Po-Mr,ht.bottom)}else{var Bo,Wt,Ri,Bf;Et?(Bo=w&&Fi&&jt?_:ht.left,Wt=w?k:an(bt,Mt,"before"),Ri=w?_:an(Kt,Mt,"after"),Bf=w&&lo&&hr?k:en.right):(Bo=w?an(bt,Mt,"before"):_,Wt=!w&&Fi&&jt?k:ht.right,Ri=!w&&lo&&hr?_:en.left,Bf=w?an(Kt,Mt,"after"):k),I(Bo,ht.top,Wt-Bo,ht.bottom),ht.bottom<en.top&&I(_,ht.bottom,null,en.top),I(Ri,en.top,Bf-Ri,en.bottom)}(!rt||Ec(ht,rt)<0)&&(rt=ht),Ec(en,rt)<0&&(rt=en),(!Ot||Ec(ht,Ot)<0)&&(Ot=ht),Ec(en,Ot)<0&&(Ot=en)}),{start:rt,end:Ot}}var W=s.from(),z=s.to();if(W.line==z.line)M(W.line,W.ch,z.ch);else{var ne=we(p,W.line),ce=we(p,z.line),ue=jn(ne)==jn(ce),me=M(W.line,W.ch,ue?ne.text.length+1:null).end,Ee=M(z.line,ue?0:null,z.ch).start;ue&&(me.top<Ee.top-2?(I(me.right,me.top,null,me.bottom),I(_,Ee.top,Ee.left,Ee.bottom)):I(me.right,me.top,Ee.left-me.right,me.bottom)),me.bottom<Ee.top&&I(_,me.bottom,null,Ee.top)}u.appendChild(m)}function df(r){if(r.state.focused){var s=r.display;clearInterval(s.blinker);var u=!0;s.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?s.blinker=setInterval(function(){r.hasFocus()||xi(r),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Om(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||mf(r))}function hf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&xi(r))},100)}function mf(r,s){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(it(r,"focus",r,s),r.state.focused=!0,$e(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),v&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),df(r))}function xi(r,s){r.state.delayingBlurEvent||(r.state.focused&&(it(r,"blur",r,s),r.state.focused=!1,_e(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function _c(r){for(var s=r.display,u=s.lineDiv.offsetTop,c=Math.max(0,s.scroller.getBoundingClientRect().top),p=s.lineDiv.getBoundingClientRect().top,m=0,b=0;b<s.view.length;b++){var _=s.view[b],k=r.options.lineWrapping,w=void 0,I=0;if(!_.hidden){if(p+=_.line.height,d&&h<8){var M=_.node.offsetTop+_.node.offsetHeight;w=M-u,u=M}else{var W=_.node.getBoundingClientRect();w=W.bottom-W.top,!k&&_.text.firstChild&&(I=_.text.firstChild.getBoundingClientRect().right-W.left-1)}var z=_.line.height-w;if((z>.005||z<-.005)&&(p<c&&(m-=z),Sn(_.line,w),Im(_.line),_.rest))for(var ne=0;ne<_.rest.length;ne++)Im(_.rest[ne]);if(I>r.display.sizerWidth){var ce=Math.ceil(I/ki(r.display));ce>r.display.maxLineLength&&(r.display.maxLineLength=ce,r.display.maxLine=_.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(s.scroller.scrollTop+=m)}function Im(r){if(r.widgets)for(var s=0;s<r.widgets.length;++s){var u=r.widgets[s],c=u.node.parentNode;c&&(u.height=c.offsetHeight)}}function kc(r,s,u){var c=u&&u.top!=null?Math.max(0,u.top):r.scroller.scrollTop;c=Math.floor(c-vc(r));var p=u&&u.bottom!=null?u.bottom:c+r.wrapper.clientHeight,m=ur(s,c),b=ur(s,p);if(u&&u.ensure){var _=u.ensure.from.line,k=u.ensure.to.line;_<m?(m=_,b=ur(s,Ir(we(s,_))+r.wrapper.clientHeight)):Math.min(k,s.lastLine())>=b&&(m=ur(s,Ir(we(s,k))-r.wrapper.clientHeight),b=k)}return{from:m,to:Math.max(b,m+1)}}function B2(r,s){if(!pt(r,"scrollCursorIntoView")){var u=r.display,c=u.sizer.getBoundingClientRect(),p=null,m=u.wrapper.ownerDocument;if(s.top+c.top<0?p=!0:s.bottom+c.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(p=!1),p!=null&&!D){var b=x("div","​",null,`position: absolute;
293
+ height: `+(Ae-xe)+"px"))}function M(ve,xe,Se){var Ae=we(p,ve),Re=Ae.text.length,rt,Ot;function ut(bt,Kt){return yc(r,B(ve,bt),"div",Ae,Kt)}function an(bt,Kt,Mt){var Ct=Sm(r,Ae,null,bt),Et=Kt=="ltr"==(Mt=="after")?"left":"right",ht=Mt=="after"?Ct.begin:Ct.end-(/\s/.test(Ae.text.charAt(Ct.end-1))?2:1);return ut(ht,Et)[Et]}var Xt=Cn(Ae,p.direction);return To(Xt,xe||0,Se??Re,function(bt,Kt,Mt,Ct){var Et=Mt=="ltr",ht=ut(bt,Et?"left":"right"),en=ut(Kt-1,Et?"right":"left"),Li=xe==null&&bt==0,lo=Se==null&&Kt==Re,jt=Ct==0,hr=!Xt||Ct==Xt.length-1;if(en.top-ht.top<=3){var It=(w?Li:lo)&&jt,Pf=(w?lo:Li)&&hr,Mr=It?_:(Et?ht:en).left,Po=Pf?k:(Et?en:ht).right;I(Mr,ht.top,Po-Mr,ht.bottom)}else{var Bo,Wt,Ri,Bf;Et?(Bo=w&&Li&&jt?_:ht.left,Wt=w?k:an(bt,Mt,"before"),Ri=w?_:an(Kt,Mt,"after"),Bf=w&&lo&&hr?k:en.right):(Bo=w?an(bt,Mt,"before"):_,Wt=!w&&Li&&jt?k:ht.right,Ri=!w&&lo&&hr?_:en.left,Bf=w?an(Kt,Mt,"after"):k),I(Bo,ht.top,Wt-Bo,ht.bottom),ht.bottom<en.top&&I(_,ht.bottom,null,en.top),I(Ri,en.top,Bf-Ri,en.bottom)}(!rt||Ec(ht,rt)<0)&&(rt=ht),Ec(en,rt)<0&&(rt=en),(!Ot||Ec(ht,Ot)<0)&&(Ot=ht),Ec(en,Ot)<0&&(Ot=en)}),{start:rt,end:Ot}}var W=s.from(),z=s.to();if(W.line==z.line)M(W.line,W.ch,z.ch);else{var ne=we(p,W.line),ce=we(p,z.line),ue=jn(ne)==jn(ce),me=M(W.line,W.ch,ue?ne.text.length+1:null).end,Ee=M(z.line,ue?0:null,z.ch).start;ue&&(me.top<Ee.top-2?(I(me.right,me.top,null,me.bottom),I(_,Ee.top,Ee.left,Ee.bottom)):I(me.right,me.top,Ee.left-me.right,me.bottom)),me.bottom<Ee.top&&I(_,me.bottom,null,Ee.top)}u.appendChild(m)}function df(r){if(r.state.focused){var s=r.display;clearInterval(s.blinker);var u=!0;s.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?s.blinker=setInterval(function(){r.hasFocus()||xi(r),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Om(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||mf(r))}function hf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&xi(r))},100)}function mf(r,s){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(it(r,"focus",r,s),r.state.focused=!0,$e(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),v&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),df(r))}function xi(r,s){r.state.delayingBlurEvent||(r.state.focused&&(it(r,"blur",r,s),r.state.focused=!1,_e(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function _c(r){for(var s=r.display,u=s.lineDiv.offsetTop,c=Math.max(0,s.scroller.getBoundingClientRect().top),p=s.lineDiv.getBoundingClientRect().top,m=0,b=0;b<s.view.length;b++){var _=s.view[b],k=r.options.lineWrapping,w=void 0,I=0;if(!_.hidden){if(p+=_.line.height,d&&h<8){var M=_.node.offsetTop+_.node.offsetHeight;w=M-u,u=M}else{var W=_.node.getBoundingClientRect();w=W.bottom-W.top,!k&&_.text.firstChild&&(I=_.text.firstChild.getBoundingClientRect().right-W.left-1)}var z=_.line.height-w;if((z>.005||z<-.005)&&(p<c&&(m-=z),Sn(_.line,w),Im(_.line),_.rest))for(var ne=0;ne<_.rest.length;ne++)Im(_.rest[ne]);if(I>r.display.sizerWidth){var ce=Math.ceil(I/ki(r.display));ce>r.display.maxLineLength&&(r.display.maxLineLength=ce,r.display.maxLine=_.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(s.scroller.scrollTop+=m)}function Im(r){if(r.widgets)for(var s=0;s<r.widgets.length;++s){var u=r.widgets[s],c=u.node.parentNode;c&&(u.height=c.offsetHeight)}}function kc(r,s,u){var c=u&&u.top!=null?Math.max(0,u.top):r.scroller.scrollTop;c=Math.floor(c-vc(r));var p=u&&u.bottom!=null?u.bottom:c+r.wrapper.clientHeight,m=ur(s,c),b=ur(s,p);if(u&&u.ensure){var _=u.ensure.from.line,k=u.ensure.to.line;_<m?(m=_,b=ur(s,Ir(we(s,_))+r.wrapper.clientHeight)):Math.min(k,s.lastLine())>=b&&(m=ur(s,Ir(we(s,k))-r.wrapper.clientHeight),b=k)}return{from:m,to:Math.max(b,m+1)}}function B2(r,s){if(!pt(r,"scrollCursorIntoView")){var u=r.display,c=u.sizer.getBoundingClientRect(),p=null,m=u.wrapper.ownerDocument;if(s.top+c.top<0?p=!0:s.bottom+c.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(p=!1),p!=null&&!D){var b=x("div","​",null,`position: absolute;
294
294
  top: `+(s.top-u.viewOffset-vc(r.display))+`px;
295
295
  height: `+(s.bottom-s.top+pr(r)+u.barHeight)+`px;
296
- left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(p),r.display.lineSpace.removeChild(b)}}}function V2(r,s,u,c){c==null&&(c=0);var p;!r.options.lineWrapping&&s==u&&(u=s.sticky=="before"?B(s.line,s.ch+1,"before"):s,s=s.ch?B(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var m=0;m<5;m++){var b=!1,_=Un(r,s),k=!u||u==s?_:Un(r,u);p={left:Math.min(_.left,k.left),top:Math.min(_.top,k.top)-c,right:Math.max(_.left,k.left),bottom:Math.max(_.bottom,k.bottom)+c};var w=vf(r,p),I=r.doc.scrollTop,M=r.doc.scrollLeft;if(w.scrollTop!=null&&(Rs(r,w.scrollTop),Math.abs(r.doc.scrollTop-I)>1&&(b=!0)),w.scrollLeft!=null&&(Fo(r,w.scrollLeft),Math.abs(r.doc.scrollLeft-M)>1&&(b=!0)),!b)break}return p}function j2(r,s){var u=vf(r,s);u.scrollTop!=null&&Rs(r,u.scrollTop),u.scrollLeft!=null&&Fo(r,u.scrollLeft)}function vf(r,s){var u=r.display,c=_i(r.display);s.top<0&&(s.top=0);var p=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:u.scroller.scrollTop,m=nf(r),b={};s.bottom-s.top>m&&(s.bottom=s.top+m);var _=r.doc.height+tf(u),k=s.top<c,w=s.bottom>_-c;if(s.top<p)b.scrollTop=k?0:s.top;else if(s.bottom>p+m){var I=Math.min(s.top,(w?_:s.bottom)-m);I!=p&&(b.scrollTop=I)}var M=r.options.fixedGutter?0:u.gutters.offsetWidth,W=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:u.scroller.scrollLeft-M,z=No(r)-u.gutters.offsetWidth,ne=s.right-s.left>z;return ne&&(s.right=s.left+z),s.left<10?b.scrollLeft=0:s.left<W?b.scrollLeft=Math.max(0,s.left+M-(ne?0:10)):s.right>z+W-3&&(b.scrollLeft=s.right+(ne?0:10)-z),b}function gf(r,s){s!=null&&(xc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function wi(r){xc(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Fs(r,s,u){(s!=null||u!=null)&&xc(r),s!=null&&(r.curOp.scrollLeft=s),u!=null&&(r.curOp.scrollTop=u)}function U2(r,s){xc(r),r.curOp.scrollToPos=s}function xc(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var u=Cm(r,s.from),c=Cm(r,s.to);Lm(r,u,c,s.margin)}}function Lm(r,s,u,c){var p=vf(r,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-c,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+c});Fs(r,p.scrollLeft,p.scrollTop)}function Rs(r,s){Math.abs(r.doc.scrollTop-s)<2||(i||bf(r,{top:s}),Fm(r,s,!0),i&&bf(r),Ps(r,100))}function Fm(r,s,u){s=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,s)),!(r.display.scroller.scrollTop==s&&!u)&&(r.doc.scrollTop=s,r.display.scrollbars.setScrollTop(s),r.display.scroller.scrollTop!=s&&(r.display.scroller.scrollTop=s))}function Fo(r,s,u,c){s=Math.max(0,Math.min(s,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((u?s==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-s)<2)&&!c)&&(r.doc.scrollLeft=s,Bm(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function Ms(r){var s=r.display,u=s.gutters.offsetWidth,c=Math.round(r.doc.height+tf(r.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:r.options.fixedGutter?u:0,docHeight:c,scrollHeight:c+pr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var Ro=function(r,s,u){this.cm=u;var c=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,r(c),r(p),be(c,"scroll",function(){c.clientHeight&&s(c.scrollTop,"vertical")}),be(p,"scroll",function(){p.clientWidth&&s(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ro.prototype.update=function(r){var s=r.scrollWidth>r.clientWidth+1,u=r.scrollHeight>r.clientHeight+1,c=r.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?c+"px":"0";var p=r.viewHeight-(s?c:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?c+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(u?c:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?c:0,bottom:s?c:0}},Ro.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ro.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ro.prototype.zeroWidthHack=function(){var r=Y&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ke,this.disableVert=new ke},Ro.prototype.enableZeroWidthBar=function(r,s,u){r.style.visibility="";function c(){var p=r.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);m!=r?r.style.visibility="hidden":s.set(1e3,c)}s.set(1e3,c)},Ro.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var qs=function(){};qs.prototype.update=function(){return{bottom:0,right:0}},qs.prototype.setScrollLeft=function(){},qs.prototype.setScrollTop=function(){},qs.prototype.clear=function(){};function $i(r,s){s||(s=Ms(r));var u=r.display.barWidth,c=r.display.barHeight;Rm(r,s);for(var p=0;p<4&&u!=r.display.barWidth||c!=r.display.barHeight;p++)u!=r.display.barWidth&&r.options.lineWrapping&&_c(r),Rm(r,Ms(r)),u=r.display.barWidth,c=r.display.barHeight}function Rm(r,s){var u=r.display,c=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=c.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=c.bottom)+"px",u.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=c.bottom+"px",u.scrollbarFiller.style.width=c.right+"px"):u.scrollbarFiller.style.display="",c.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=c.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}var Mm={native:Ro,null:qs};function qm(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&_e(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Mm[r.options.scrollbarStyle](function(s){r.display.wrapper.insertBefore(s,r.display.scrollbarFiller),be(s,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Fo(r,s):Rs(r,s)},r),r.display.scrollbars.addClass&&$e(r.display.wrapper,r.display.scrollbars.addClass)}var z2=0;function Mo(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++z2,markArrays:null},_2(r.curOp)}function qo(r){var s=r.curOp;s&&x2(s,function(u){for(var c=0;c<u.ops.length;c++)u.ops[c].cm.curOp=null;H2(u)})}function H2(r){for(var s=r.ops,u=0;u<s.length;u++)G2(s[u]);for(var c=0;c<s.length;c++)W2(s[c]);for(var p=0;p<s.length;p++)Q2(s[p]);for(var m=0;m<s.length;m++)Y2(s[m]);for(var b=0;b<s.length;b++)J2(s[b])}function G2(r){var s=r.cm,u=s.display;X2(s),r.updateMaxLine&&Ku(s),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<u.viewFrom||r.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,r.update=r.mustUpdate&&new wc(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function W2(r){r.updatedDisplay=r.mustUpdate&&yf(r.cm,r.update)}function Q2(r){var s=r.cm,u=s.display;r.updatedDisplay&&_c(s),r.barMeasure=Ms(s),u.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=ym(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+r.adjustWidthTo+pr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+r.adjustWidthTo-No(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=u.input.prepareSelection())}function Y2(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&Fo(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var u=r.focus&&r.focus==pe(fe(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,u),(r.updatedDisplay||r.startHeight!=s.doc.height)&&$i(s,r.barMeasure),r.updatedDisplay&&_f(s,r.barMeasure),r.selectionChanged&&df(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),u&&Om(r.cm)}function J2(r){var s=r.cm,u=s.display,c=s.doc;if(r.updatedDisplay&&Pm(s,r.update),u.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),r.scrollTop!=null&&Fm(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Fo(s,r.scrollLeft,!0,!0),r.scrollToPos){var p=V2(s,Oe(c,r.scrollToPos.from),Oe(c,r.scrollToPos.to),r.scrollToPos.margin);B2(s,p)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var _=0;_<m.length;++_)m[_].lines.length||it(m[_],"hide");if(b)for(var k=0;k<b.length;++k)b[k].lines.length&&it(b[k],"unhide");u.wrapper.offsetHeight&&(c.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&it(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function sn(r,s){if(r.curOp)return s();Mo(r);try{return s()}finally{qo(r)}}function Dt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Mo(r);try{return s.apply(r,arguments)}finally{qo(r)}}}function Gt(r){return function(){if(this.curOp)return r.apply(this,arguments);Mo(this);try{return r.apply(this,arguments)}finally{qo(this)}}}function Nt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Mo(s);try{return r.apply(this,arguments)}finally{qo(s)}}}function Ps(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ge(Z2,r))}function Z2(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var u=+new Date+r.options.workTime,c=Ss(r,s.highlightFrontier),p=[];s.iter(c.line,Math.min(s.first+s.size,r.display.viewTo+500),function(m){if(c.line>=r.display.viewFrom){var b=m.styles,_=m.text.length>r.options.maxHighlightLength?Dr(s.mode,c.state):null,k=Gh(r,m,c,!0);_&&(c.state=_),m.styles=k.styles;var w=m.styleClasses,I=k.classes;I?m.styleClasses=I:w&&(m.styleClasses=null);for(var M=!b||b.length!=m.styles.length||w!=I&&(!w||!I||w.bgClass!=I.bgClass||w.textClass!=I.textClass),W=0;!M&&W<b.length;++W)M=b[W]!=m.styles[W];M&&p.push(c.line),m.stateAfter=c.save(),c.nextLine()}else m.text.length<=r.options.maxHighlightLength&&Wu(r,m.text,c),m.stateAfter=c.line%5==0?c.save():null,c.nextLine();if(+new Date>u)return Ps(r,r.options.workDelay),!0}),s.highlightFrontier=c.line,s.modeFrontier=Math.max(s.modeFrontier,c.line),p.length&&sn(r,function(){for(var m=0;m<p.length;m++)no(r,p[m],"text")})}}var wc=function(r,s,u){var c=r.display;this.viewport=s,this.visible=kc(c,r.doc,s),this.editorIsHidden=!c.wrapper.offsetWidth,this.wrapperHeight=c.wrapper.clientHeight,this.wrapperWidth=c.wrapper.clientWidth,this.oldDisplayWidth=No(r),this.force=u,this.dims=lf(r),this.events=[]};wc.prototype.signal=function(r,s){zt(r,s)&&this.events.push(arguments)},wc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)it.apply(null,this.events[r])};function X2(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=pr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=pr(r)+"px",s.scrollbarsClipped=!0)}function K2(r){if(r.hasFocus())return null;var s=pe(fe(r));if(!s||!te(r.display.lineDiv,s))return null;var u={activeElt:s};if(window.getSelection){var c=de(r).getSelection();c.anchorNode&&c.extend&&te(r.display.lineDiv,c.anchorNode)&&(u.anchorNode=c.anchorNode,u.anchorOffset=c.anchorOffset,u.focusNode=c.focusNode,u.focusOffset=c.focusOffset)}return u}function ek(r){if(!(!r||!r.activeElt||r.activeElt==pe(r.activeElt.ownerDocument))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&te(document.body,r.anchorNode)&&te(document.body,r.focusNode))){var s=r.activeElt.ownerDocument,u=s.defaultView.getSelection(),c=s.createRange();c.setEnd(r.anchorNode,r.anchorOffset),c.collapse(!1),u.removeAllRanges(),u.addRange(c),u.extend(r.focusNode,r.focusOffset)}}function yf(r,s){var u=r.display,c=r.doc;if(s.editorIsHidden)return ro(r),!1;if(!s.force&&s.visible.from>=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Dm(r)==0)return!1;Vm(r)&&(ro(r),s.dims=lf(r));var p=c.first+c.size,m=Math.max(s.visible.from-r.options.viewportMargin,c.first),b=Math.min(p,s.visible.to+r.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(c.first,u.viewFrom)),u.viewTo>b&&u.viewTo-b<20&&(b=Math.min(p,u.viewTo)),Or&&(m=Zu(r.doc,m),b=sm(r.doc,b));var _=m!=u.viewFrom||b!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;q2(r,m,b),u.viewOffset=Ir(we(r.doc,u.viewFrom)),r.display.mover.style.top=u.viewOffset+"px";var k=Dm(r);if(!_&&k==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var w=K2(r);return k>4&&(u.lineDiv.style.display="none"),tk(r,u.updateLineNumbers,s.dims),k>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ek(w),H(u.cursorDiv),H(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,_&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,Ps(r,400)),u.updateLineNumbers=null,!0}function Pm(r,s){for(var u=s.viewport,c=!0;;c=!1){if(!c||!r.options.lineWrapping||s.oldDisplayWidth==No(r)){if(u&&u.top!=null&&(u={top:Math.min(r.doc.height+tf(r.display)-nf(r),u.top)}),s.visible=kc(r.display,r.doc,u),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else c&&(s.visible=kc(r.display,r.doc,u));if(!yf(r,s))break;_c(r);var p=Ms(r);Ls(r),$i(r,p),_f(r,p),s.force=!1}s.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(s.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function bf(r,s){var u=new wc(r,s);if(yf(r,u)){_c(r),Pm(r,u);var c=Ms(r);Ls(r),$i(r,c),_f(r,c),u.finish()}}function tk(r,s,u){var c=r.display,p=r.options.lineNumbers,m=c.lineDiv,b=m.firstChild;function _(ne){var ce=ne.nextSibling;return v&&Y&&r.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var k=c.view,w=c.viewFrom,I=0;I<k.length;I++){var M=k[I];if(!M.hidden)if(!M.node||M.node.parentNode!=m){var W=S2(r,M,w,u);m.insertBefore(W,b)}else{for(;b!=M.node;)b=_(b);var z=p&&s!=null&&s<=w&&M.lineNumber;M.changes&&(De(M.changes,"gutter")>-1&&(z=!1),fm(r,M,w,u)),z&&(H(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(q(r.options,w)))),b=M.node.nextSibling}w+=M.size}for(;b;)b=_(b)}function Ef(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Tt(r,"gutterChanged",r)}function _f(r,s){r.display.sizer.style.minHeight=s.docHeight+"px",r.display.heightForcer.style.top=s.docHeight+"px",r.display.gutters.style.height=s.docHeight+r.display.barHeight+pr(r)+"px"}function Bm(r){var s=r.display,u=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var c=uf(s)-s.scroller.scrollLeft+r.doc.scrollLeft,p=s.gutters.offsetWidth,m=c+"px",b=0;b<u.length;b++)if(!u[b].hidden){r.options.fixedGutter&&(u[b].gutter&&(u[b].gutter.style.left=m),u[b].gutterBackground&&(u[b].gutterBackground.style.left=m));var _=u[b].alignable;if(_)for(var k=0;k<_.length;k++)_[k].style.left=m}r.options.fixedGutter&&(s.gutters.style.left=c+p+"px")}}function Vm(r){if(!r.options.lineNumbers)return!1;var s=r.doc,u=q(r.options,s.first+s.size-1),c=r.display;if(u.length!=c.lineNumChars){var p=c.measure.appendChild(x("div",[x("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=p.firstChild.offsetWidth,b=p.offsetWidth-m;return c.lineGutter.style.width="",c.lineNumInnerWidth=Math.max(m,c.lineGutter.offsetWidth-b)+1,c.lineNumWidth=c.lineNumInnerWidth+b,c.lineNumChars=c.lineNumInnerWidth?u.length:-1,c.lineGutter.style.width=c.lineNumWidth+"px",Ef(r.display),!0}return!1}function kf(r,s){for(var u=[],c=!1,p=0;p<r.length;p++){var m=r[p],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(s)c=!0;else continue;u.push({className:m,style:b})}return s&&!c&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function jm(r){var s=r.gutters,u=r.gutterSpecs;H(s),r.lineGutter=null;for(var c=0;c<u.length;++c){var p=u[c],m=p.className,b=p.style,_=s.appendChild(x("div",null,"CodeMirror-gutter "+m));b&&(_.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=_,_.style.width=(r.lineNumWidth||1)+"px")}s.style.display=u.length?"":"none",Ef(r)}function Bs(r){jm(r.display),Jt(r),Bm(r)}function nk(r,s,u,c){var p=this;this.input=u,p.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=j("div",null,"CodeMirror-code"),p.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=x("div",null,"CodeMirror-cursors"),p.measure=x("div",null,"CodeMirror-measure"),p.lineMeasure=x("div",null,"CodeMirror-measure"),p.lineSpace=j("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var m=j("div",[p.lineSpace],"CodeMirror-lines");p.mover=x("div",[m],null,"position: relative"),p.sizer=x("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=x("div",null,null,"position: absolute; height: "+xn+"px; width: 1px;"),p.gutters=x("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=x("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=x("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),g&&E>=105&&(p.wrapper.style.clipPath="inset(0px)"),p.wrapper.setAttribute("translate","no"),d&&h<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!v&&!(i&&V)&&(p.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(p.wrapper):r(p.wrapper)),p.viewFrom=p.viewTo=s.first,p.reportedViewFrom=p.reportedViewTo=s.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=kf(c.gutters,c.lineNumbers),jm(p),u.init(p)}var $c=0,Fr=null;d?Fr=-.53:i?Fr=15:g?Fr=-.7:S&&(Fr=-1/3);function Um(r){var s=r.wheelDeltaX,u=r.wheelDeltaY;return s==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(s=r.detail),u==null&&r.detail&&r.axis==r.VERTICAL_AXIS?u=r.detail:u==null&&(u=r.wheelDelta),{x:s,y:u}}function rk(r){var s=Um(r);return s.x*=Fr,s.y*=Fr,s}function zm(r,s){g&&E==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var u=Um(s),c=u.x,p=u.y,m=Fr;s.deltaMode===0&&(c=s.deltaX,p=s.deltaY,m=1);var b=r.display,_=b.scroller,k=_.scrollWidth>_.clientWidth,w=_.scrollHeight>_.clientHeight;if(c&&k||p&&w){if(p&&Y&&v){e:for(var I=s.target,M=b.view;I!=_;I=I.parentNode)for(var W=0;W<M.length;W++)if(M[W].node==I){r.display.currentWheelTarget=I;break e}}if(c&&!i&&!C&&m!=null){p&&w&&Rs(r,Math.max(0,_.scrollTop+p*m)),Fo(r,Math.max(0,_.scrollLeft+c*m)),(!p||p&&w)&&Bt(s),b.wheelStartX=null;return}if(p&&m!=null){var z=p*m,ne=r.doc.scrollTop,ce=ne+b.wrapper.clientHeight;z<0?ne=Math.max(0,ne+z-50):ce=Math.min(r.doc.height,ce+z+50),bf(r,{top:ne,bottom:ce})}$c<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=_.scrollLeft,b.wheelStartY=_.scrollTop,b.wheelDX=c,b.wheelDY=p,setTimeout(function(){if(b.wheelStartX!=null){var ue=_.scrollLeft-b.wheelStartX,me=_.scrollTop-b.wheelStartY,Ee=me&&b.wheelDY&&me/b.wheelDY||ue&&b.wheelDX&&ue/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ee&&(Fr=(Fr*$c+Ee)/($c+1),++$c)}},200)):(b.wheelDX+=c,b.wheelDY+=p))}}var dn=function(r,s){this.ranges=r,this.primIndex=s};dn.prototype.primary=function(){return this.ranges[this.primIndex]},dn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var u=this.ranges[s],c=r.ranges[s];if(!Ne(u.anchor,c.anchor)||!Ne(u.head,c.head))return!1}return!0},dn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new Ye(je(this.ranges[s].anchor),je(this.ranges[s].head));return new dn(r,this.primIndex)},dn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},dn.prototype.contains=function(r,s){s||(s=r);for(var u=0;u<this.ranges.length;u++){var c=this.ranges[u];if(ee(s,c.from())>=0&&ee(r,c.to())<=0)return u}return-1};var Ye=function(r,s){this.anchor=r,this.head=s};Ye.prototype.from=function(){return $t(this.anchor,this.head)},Ye.prototype.to=function(){return We(this.anchor,this.head)},Ye.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zn(r,s,u){var c=r&&r.options.selectionsMayTouch,p=s[u];s.sort(function(W,z){return ee(W.from(),z.from())}),u=De(s,p);for(var m=1;m<s.length;m++){var b=s[m],_=s[m-1],k=ee(_.to(),b.from());if(c&&!b.empty()?k>0:k>=0){var w=$t(_.from(),b.from()),I=We(_.to(),b.to()),M=_.empty()?b.from()==b.head:_.from()==_.head;m<=u&&--u,s.splice(--m,2,new Ye(M?I:w,M?w:I))}}return new dn(s,u)}function oo(r,s){return new dn([new Ye(r,s||r)],0)}function io(r){return r.text?B(r.from.line+r.text.length-1,ze(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Hm(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return io(s);var u=r.line+s.text.length-(s.to.line-s.from.line)-1,c=r.ch;return r.line==s.to.line&&(c+=io(s).ch-s.to.ch),B(u,c)}function xf(r,s){for(var u=[],c=0;c<r.sel.ranges.length;c++){var p=r.sel.ranges[c];u.push(new Ye(Hm(p.anchor,s),Hm(p.head,s)))}return zn(r.cm,u,r.sel.primIndex)}function Gm(r,s,u){return r.line==s.line?B(u.line,r.ch-s.ch+u.ch):B(u.line+(r.line-s.line),r.ch)}function ok(r,s,u){for(var c=[],p=B(r.first,0),m=p,b=0;b<s.length;b++){var _=s[b],k=Gm(_.from,p,m),w=Gm(io(_),p,m);if(p=_.to,m=w,u=="around"){var I=r.sel.ranges[b],M=ee(I.head,I.anchor)<0;c[b]=new Ye(M?w:k,M?k:w)}else c[b]=new Ye(k,k)}return new dn(c,r.sel.primIndex)}function wf(r){r.doc.mode=Tr(r.options,r.doc.modeOption),Vs(r)}function Vs(r){r.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,Ps(r,100),r.state.modeGen++,r.curOp&&Jt(r)}function Wm(r,s){return s.from.ch==0&&s.to.ch==0&&ze(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function $f(r,s,u,c){function p(Ee){return u?u[Ee]:null}function m(Ee,ve,xe){p2(Ee,ve,xe,c),Tt(Ee,"change",Ee,s)}function b(Ee,ve){for(var xe=[],Se=Ee;Se<ve;++Se)xe.push(new yi(w[Se],p(Se),c));return xe}var _=s.from,k=s.to,w=s.text,I=we(r,_.line),M=we(r,k.line),W=ze(w),z=p(w.length-1),ne=k.line-_.line;if(s.full)r.insert(0,b(0,w.length)),r.remove(w.length,r.size-w.length);else if(Wm(r,s)){var ce=b(0,w.length-1);m(M,M.text,z),ne&&r.remove(_.line,ne),ce.length&&r.insert(_.line,ce)}else if(I==M)if(w.length==1)m(I,I.text.slice(0,_.ch)+W+I.text.slice(k.ch),z);else{var ue=b(1,w.length-1);ue.push(new yi(W+I.text.slice(k.ch),z,c)),m(I,I.text.slice(0,_.ch)+w[0],p(0)),r.insert(_.line+1,ue)}else if(w.length==1)m(I,I.text.slice(0,_.ch)+w[0]+M.text.slice(k.ch),p(0)),r.remove(_.line+1,ne);else{m(I,I.text.slice(0,_.ch)+w[0],p(0)),m(M,W+M.text.slice(k.ch),z);var me=b(1,w.length-1);ne>1&&r.remove(_.line+1,ne-1),r.insert(_.line+1,me)}Tt(r,"change",r,s)}function so(r,s,u){function c(p,m,b){if(p.linked)for(var _=0;_<p.linked.length;++_){var k=p.linked[_];if(k.doc!=m){var w=b&&k.sharedHist;u&&!w||(s(k.doc,w),c(k.doc,p,w))}}}c(r,null,!0)}function Qm(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,ff(r),wf(r),Ym(r),r.options.direction=s.direction,r.options.lineWrapping||Ku(r),r.options.mode=s.modeOption,Jt(r)}function Ym(r){(r.doc.direction=="rtl"?$e:_e)(r.display.lineDiv,"CodeMirror-rtl")}function ik(r){sn(r,function(){Ym(r),Jt(r)})}function Cc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Cf(r,s){var u={from:je(s.from),to:io(s),text:Nr(r,s.from,s.to)};return Xm(r,u,s.from.line,s.to.line+1),so(r,function(c){return Xm(c,u,s.from.line,s.to.line+1)},!0),u}function Jm(r){for(;r.length;){var s=ze(r);if(s.ranges)r.pop();else break}}function sk(r,s){if(s)return Jm(r.done),ze(r.done);if(r.done.length&&!ze(r.done).ranges)return ze(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ze(r.done)}function Zm(r,s,u,c){var p=r.history;p.undone.length=0;var m=+new Date,b,_;if((p.lastOp==c||p.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&p.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=sk(p,p.lastOp==c)))_=ze(b.changes),ee(s.from,s.to)==0&&ee(s.from,_.to)==0?_.to=io(s):b.changes.push(Cf(r,s));else{var k=ze(p.done);for((!k||!k.ranges)&&Ac(r.sel,p.done),b={changes:[Cf(r,s)],generation:p.generation},p.done.push(b);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(u),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=m,p.lastOp=p.lastSelOp=c,p.lastOrigin=p.lastSelOrigin=s.origin,_||it(r,"historyAdded")}function ak(r,s,u,c){var p=s.charAt(0);return p=="*"||p=="+"&&u.ranges.length==c.ranges.length&&u.somethingSelected()==c.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function ck(r,s,u,c){var p=r.history,m=c&&c.origin;u==p.lastSelOp||m&&p.lastSelOrigin==m&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==m||ak(r,m,ze(p.done),s))?p.done[p.done.length-1]=s:Ac(s,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=m,p.lastSelOp=u,c&&c.clearRedo!==!1&&Jm(p.undone)}function Ac(r,s){var u=ze(s);u&&u.ranges&&u.equals(r)||s.push(r)}function Xm(r,s,u,c){var p=s["spans_"+r.id],m=0;r.iter(Math.max(r.first,u),Math.min(r.first+r.size,c),function(b){b.markedSpans&&((p||(p=s["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function lk(r){if(!r)return null;for(var s,u=0;u<r.length;++u)r[u].marker.explicitlyCleared?s||(s=r.slice(0,u)):s&&s.push(r[u]);return s?s.length?s:null:r}function uk(r,s){var u=s["spans_"+r.id];if(!u)return null;for(var c=[],p=0;p<s.text.length;++p)c.push(lk(u[p]));return c}function Km(r,s){var u=uk(r,s),c=Yu(r,s);if(!u)return c;if(!c)return u;for(var p=0;p<u.length;++p){var m=u[p],b=c[p];if(m&&b)e:for(var _=0;_<b.length;++_){for(var k=b[_],w=0;w<m.length;++w)if(m[w].marker==k.marker)continue e;m.push(k)}else b&&(u[p]=b)}return u}function Ci(r,s,u){for(var c=[],p=0;p<r.length;++p){var m=r[p];if(m.ranges){c.push(u?dn.prototype.deepCopy.call(m):m);continue}var b=m.changes,_=[];c.push({changes:_});for(var k=0;k<b.length;++k){var w=b[k],I=void 0;if(_.push({from:w.from,to:w.to,text:w.text}),s)for(var M in w)(I=M.match(/^spans_(\d+)$/))&&De(s,Number(I[1]))>-1&&(ze(_)[M]=w[M],delete w[M])}}return c}function Af(r,s,u,c){if(c){var p=r.anchor;if(u){var m=ee(s,p)<0;m!=ee(u,p)<0?(p=s,s=u):m!=ee(s,u)<0&&(s=u)}return new Ye(p,s)}else return new Ye(u||s,s)}function Sc(r,s,u,c,p){p==null&&(p=r.cm&&(r.cm.display.shift||r.extend)),Vt(r,new dn([Af(r.sel.primary(),s,u,p)],0),c)}function ev(r,s,u){for(var c=[],p=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)c[m]=Af(r.sel.ranges[m],s[m],null,p);var b=zn(r.cm,c,r.sel.primIndex);Vt(r,b,u)}function Sf(r,s,u,c){var p=r.sel.ranges.slice(0);p[s]=u,Vt(r,zn(r.cm,p,r.sel.primIndex),c)}function tv(r,s,u,c){Vt(r,oo(s,u),c)}function fk(r,s,u){var c={ranges:s.ranges,update:function(p){this.ranges=[];for(var m=0;m<p.length;m++)this.ranges[m]=new Ye(Oe(r,p[m].anchor),Oe(r,p[m].head))},origin:u&&u.origin};return it(r,"beforeSelectionChange",r,c),r.cm&&it(r.cm,"beforeSelectionChange",r.cm,c),c.ranges!=s.ranges?zn(r.cm,c.ranges,c.ranges.length-1):s}function nv(r,s,u){var c=r.history.done,p=ze(c);p&&p.ranges?(c[c.length-1]=s,Tc(r,s,u)):Vt(r,s,u)}function Vt(r,s,u){Tc(r,s,u),ck(r,r.sel,r.cm?r.cm.curOp.id:NaN,u)}function Tc(r,s,u){(zt(r,"beforeSelectionChange")||r.cm&&zt(r.cm,"beforeSelectionChange"))&&(s=fk(r,s,u));var c=u&&u.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);rv(r,iv(r,s,c,!0)),!(u&&u.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&wi(r.cm)}function rv(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,oc(r.cm)),Tt(r,"cursorActivity",r))}function ov(r){rv(r,iv(r,r.sel,null,!1))}function iv(r,s,u,c){for(var p,m=0;m<s.ranges.length;m++){var b=s.ranges[m],_=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],k=Dc(r,b.anchor,_&&_.anchor,u,c),w=b.head==b.anchor?k:Dc(r,b.head,_&&_.head,u,c);(p||k!=b.anchor||w!=b.head)&&(p||(p=s.ranges.slice(0,m)),p[m]=new Ye(k,w))}return p?zn(r.cm,p,s.primIndex):s}function Ai(r,s,u,c,p){var m=we(r,s.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var _=m.markedSpans[b],k=_.marker,w="selectLeft"in k?!k.selectLeft:k.inclusiveLeft,I="selectRight"in k?!k.selectRight:k.inclusiveRight;if((_.from==null||(w?_.from<=s.ch:_.from<s.ch))&&(_.to==null||(I?_.to>=s.ch:_.to>s.ch))){if(p&&(it(k,"beforeCursorEnter"),k.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!k.atomic)continue;if(u){var M=k.find(c<0?1:-1),W=void 0;if((c<0?I:w)&&(M=sv(r,M,-c,M&&M.line==s.line?m:null)),M&&M.line==s.line&&(W=ee(M,u))&&(c<0?W<0:W>0))return Ai(r,M,s,c,p)}var z=k.find(c<0?-1:1);return(c<0?w:I)&&(z=sv(r,z,c,z.line==s.line?m:null)),z?Ai(r,z,s,c,p):null}}return s}function Dc(r,s,u,c,p){var m=c||1,b=Ai(r,s,u,m,p)||!p&&Ai(r,s,u,m,!0)||Ai(r,s,u,-m,p)||!p&&Ai(r,s,u,-m,!0);return b||(r.cantEdit=!0,B(r.first,0))}function sv(r,s,u,c){return u<0&&s.ch==0?s.line>r.first?Oe(r,B(s.line-1)):null:u>0&&s.ch==(c||we(r,s.line)).text.length?s.line<r.first+r.size-1?B(s.line+1,0):null:new B(s.line,s.ch+u)}function av(r){r.setSelection(B(r.firstLine(),0),B(r.lastLine()),Be)}function cv(r,s,u){var c={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return c.canceled=!0}};return u&&(c.update=function(p,m,b,_){p&&(c.from=Oe(r,p)),m&&(c.to=Oe(r,m)),b&&(c.text=b),_!==void 0&&(c.origin=_)}),it(r,"beforeChange",r,c),r.cm&&it(r.cm,"beforeChange",r.cm,c),c.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:c.from,to:c.to,text:c.text,origin:c.origin}}function Si(r,s,u){if(r.cm){if(!r.cm.curOp)return Dt(r.cm,Si)(r,s,u);if(r.cm.state.suppressEdits)return}if(!((zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"))&&(s=cv(r,s,!0),!s))){var c=Kh&&!u&&c2(r,s.from,s.to);if(c)for(var p=c.length-1;p>=0;--p)lv(r,{from:c[p].from,to:c[p].to,text:p?[""]:s.text,origin:s.origin});else lv(r,s)}}function lv(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var u=xf(r,s);Zm(r,s,u,r.cm?r.cm.curOp.id:NaN),js(r,s,u,Yu(r,s));var c=[];so(r,function(p,m){!m&&De(c,p.history)==-1&&(dv(p.history,s),c.push(p.history)),js(p,s,null,Yu(p,s))})}}function Nc(r,s,u){var c=r.cm&&r.cm.state.suppressEdits;if(!(c&&!u)){for(var p=r.history,m,b=r.sel,_=s=="undo"?p.done:p.undone,k=s=="undo"?p.undone:p.done,w=0;w<_.length&&(m=_[w],!(u?m.ranges&&!m.equals(r.sel):!m.ranges));w++);if(w!=_.length){for(p.lastOrigin=p.lastSelOrigin=null;;)if(m=_.pop(),m.ranges){if(Ac(m,k),u&&!m.equals(r.sel)){Vt(r,m,{clearRedo:!1});return}b=m}else if(c){_.push(m);return}else break;var I=[];Ac(b,k),k.push({changes:I,generation:p.generation}),p.generation=m.generation||++p.maxGeneration;for(var M=zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"),W=function(ce){var ue=m.changes[ce];if(ue.origin=s,M&&!cv(r,ue,!1))return _.length=0,{};I.push(Cf(r,ue));var me=ce?xf(r,ue):ze(_);js(r,ue,me,Km(r,ue)),!ce&&r.cm&&r.cm.scrollIntoView({from:ue.from,to:io(ue)});var Ee=[];so(r,function(ve,xe){!xe&&De(Ee,ve.history)==-1&&(dv(ve.history,ue),Ee.push(ve.history)),js(ve,ue,null,Km(ve,ue))})},z=m.changes.length-1;z>=0;--z){var ne=W(z);if(ne)return ne.v}}}}function uv(r,s){if(s!=0&&(r.first+=s,r.sel=new dn(pi(r.sel.ranges,function(p){return new Ye(B(p.anchor.line+s,p.anchor.ch),B(p.head.line+s,p.head.ch))}),r.sel.primIndex),r.cm)){Jt(r.cm,r.first,r.first-s,s);for(var u=r.cm.display,c=u.viewFrom;c<u.viewTo;c++)no(r.cm,c,"gutter")}}function js(r,s,u,c){if(r.cm&&!r.cm.curOp)return Dt(r.cm,js)(r,s,u,c);if(s.to.line<r.first){uv(r,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>r.lastLine())){if(s.from.line<r.first){var p=s.text.length-1-(r.first-s.from.line);uv(r,p),s={from:B(r.first,0),to:B(s.to.line+p,s.to.ch),text:[ze(s.text)],origin:s.origin}}var m=r.lastLine();s.to.line>m&&(s={from:s.from,to:B(m,we(r,m).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Nr(r,s.from,s.to),u||(u=xf(r,s)),r.cm?pk(r.cm,s,c):$f(r,s,c),Tc(r,u,Be),r.cantEdit&&Dc(r,B(r.firstLine(),0))&&(r.cantEdit=!1)}}function pk(r,s,u){var c=r.doc,p=r.display,m=s.from,b=s.to,_=!1,k=m.line;r.options.lineWrapping||(k=Qe(jn(we(c,m.line))),c.iter(k,b.line+1,function(z){if(z==p.maxLine)return _=!0,!0})),c.sel.contains(s.from,s.to)>-1&&oc(r),$f(c,s,u,Tm(r)),r.options.lineWrapping||(c.iter(k,m.line+s.text.length,function(z){var ne=hc(z);ne>p.maxLineLength&&(p.maxLine=z,p.maxLineLength=ne,p.maxLineChanged=!0,_=!1)}),_&&(r.curOp.updateMaxLine=!0)),t2(c,m.line),Ps(r,400);var w=s.text.length-(b.line-m.line)-1;s.full?Jt(r):m.line==b.line&&s.text.length==1&&!Wm(r.doc,s)?no(r,m.line,"text"):Jt(r,m.line,b.line+1,w);var I=zt(r,"changes"),M=zt(r,"change");if(M||I){var W={from:m,to:b,text:s.text,removed:s.removed,origin:s.origin};M&&Tt(r,"change",r,W),I&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(W)}r.display.selForContextMenu=null}function Ti(r,s,u,c,p){var m;c||(c=u),ee(c,u)<0&&(m=[c,u],u=m[0],c=m[1]),typeof s=="string"&&(s=r.splitLines(s)),Si(r,{from:u,to:c,text:s,origin:p})}function fv(r,s,u,c){u<r.line?r.line+=c:s<r.line&&(r.line=s,r.ch=0)}function pv(r,s,u,c){for(var p=0;p<r.length;++p){var m=r[p],b=!0;if(m.ranges){m.copied||(m=r[p]=m.deepCopy(),m.copied=!0);for(var _=0;_<m.ranges.length;_++)fv(m.ranges[_].anchor,s,u,c),fv(m.ranges[_].head,s,u,c);continue}for(var k=0;k<m.changes.length;++k){var w=m.changes[k];if(u<w.from.line)w.from=B(w.from.line+c,w.from.ch),w.to=B(w.to.line+c,w.to.ch);else if(s<=w.to.line){b=!1;break}}b||(r.splice(0,p+1),p=0)}}function dv(r,s){var u=s.from.line,c=s.to.line,p=s.text.length-(c-u)-1;pv(r.done,u,c,p),pv(r.undone,u,c,p)}function Us(r,s,u,c){var p=s,m=s;return typeof s=="number"?m=we(r,pn(r,s)):p=Qe(s),p==null?null:(c(m,p)&&r.cm&&no(r.cm,p,u),m)}function zs(r){this.lines=r,this.parent=null;for(var s=0,u=0;u<r.length;++u)r[u].parent=this,s+=r[u].height;this.height=s}zs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,s){for(var u=r,c=r+s;u<c;++u){var p=this.lines[u];this.height-=p.height,d2(p),Tt(p,"delete")}this.lines.splice(r,s)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,s,u){this.height+=u,this.lines=this.lines.slice(0,r).concat(s).concat(this.lines.slice(r));for(var c=0;c<s.length;++c)s[c].parent=this},iterN:function(r,s,u){for(var c=r+s;r<c;++r)if(u(this.lines[r]))return!0}};function Hs(r){this.children=r;for(var s=0,u=0,c=0;c<r.length;++c){var p=r[c];s+=p.chunkSize(),u+=p.height,p.parent=this}this.size=s,this.height=u,this.parent=null}Hs.prototype={chunkSize:function(){return this.size},removeInner:function(r,s){this.size-=s;for(var u=0;u<this.children.length;++u){var c=this.children[u],p=c.chunkSize();if(r<p){var m=Math.min(s,p-r),b=c.height;if(c.removeInner(r,m),this.height-=b-c.height,p==m&&(this.children.splice(u--,1),c.parent=null),(s-=m)==0)break;r=0}else r-=p}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof zs))){var _=[];this.collapse(_),this.children=[new zs(_)],this.children[0].parent=this}},collapse:function(r){for(var s=0;s<this.children.length;++s)this.children[s].collapse(r)},insertInner:function(r,s,u){this.size+=s.length,this.height+=u;for(var c=0;c<this.children.length;++c){var p=this.children[c],m=p.chunkSize();if(r<=m){if(p.insertInner(r,s,u),p.lines&&p.lines.length>50){for(var b=p.lines.length%25+25,_=b;_<p.lines.length;){var k=new zs(p.lines.slice(_,_+=25));p.height-=k.height,this.children.splice(++c,0,k),k.parent=this}p.lines=p.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),u=new Hs(s);if(r.parent){r.size-=u.size,r.height-=u.height;var p=De(r.parent.children,r);r.parent.children.splice(p+1,0,u)}else{var c=new Hs(r.children);c.parent=r,r.children=[c,u],r=c}u.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,s,u){for(var c=0;c<this.children.length;++c){var p=this.children[c],m=p.chunkSize();if(r<m){var b=Math.min(s,m-r);if(p.iterN(r,b,u))return!0;if((s-=b)==0)break;r=0}else r-=m}}};var Gs=function(r,s,u){if(u)for(var c in u)u.hasOwnProperty(c)&&(this[c]=u[c]);this.doc=r,this.node=s};Gs.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,u=this.line,c=Qe(u);if(!(c==null||!s)){for(var p=0;p<s.length;++p)s[p]==this&&s.splice(p--,1);s.length||(u.widgets=null);var m=Os(this);Sn(u,Math.max(0,u.height-m)),r&&(sn(r,function(){hv(r,u,-m),no(r,c,"widget")}),Tt(r,"lineWidgetCleared",r,this,c))}},Gs.prototype.changed=function(){var r=this,s=this.height,u=this.doc.cm,c=this.line;this.height=null;var p=Os(this)-s;p&&(to(this.doc,c)||Sn(c,c.height+p),u&&sn(u,function(){u.curOp.forceUpdate=!0,hv(u,c,p),Tt(u,"lineWidgetChanged",u,r,Qe(c))}))},Ht(Gs);function hv(r,s,u){Ir(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&gf(r,u)}function dk(r,s,u,c){var p=new Gs(r,u,c),m=r.cm;return m&&p.noHScroll&&(m.display.alignWidgets=!0),Us(r,s,"widget",function(b){var _=b.widgets||(b.widgets=[]);if(p.insertAt==null?_.push(p):_.splice(Math.min(_.length,Math.max(0,p.insertAt)),0,p),p.line=b,m&&!to(r,b)){var k=Ir(b)<r.scrollTop;Sn(b,b.height+Os(p)),k&&gf(m,p.height),m.curOp.forceUpdate=!0}return!0}),m&&Tt(m,"lineWidgetAdded",m,p,typeof s=="number"?s:Qe(s)),p}var mv=0,ao=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++mv};ao.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Mo(r),zt(this,"clear")){var u=this.find();u&&Tt(this,"clear",u.from,u.to)}for(var c=null,p=null,m=0;m<this.lines.length;++m){var b=this.lines[m],_=Ts(b.markedSpans,this);r&&!this.collapsed?no(r,Qe(b),"text"):r&&(_.to!=null&&(p=Qe(b)),_.from!=null&&(c=Qe(b))),b.markedSpans=o2(b.markedSpans,_),_.from==null&&this.collapsed&&!to(this.doc,b)&&r&&Sn(b,_i(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var k=0;k<this.lines.length;++k){var w=jn(this.lines[k]),I=hc(w);I>r.display.maxLineLength&&(r.display.maxLine=w,r.display.maxLineLength=I,r.display.maxLineChanged=!0)}c!=null&&r&&this.collapsed&&Jt(r,c,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&ov(r.doc)),r&&Tt(r,"markerCleared",r,this,c,p),s&&qo(r),this.parent&&this.parent.clear()}},ao.prototype.find=function(r,s){r==null&&this.type=="bookmark"&&(r=1);for(var u,c,p=0;p<this.lines.length;++p){var m=this.lines[p],b=Ts(m.markedSpans,this);if(b.from!=null&&(u=B(s?m:Qe(m),b.from),r==-1))return u;if(b.to!=null&&(c=B(s?m:Qe(m),b.to),r==1))return c}return u&&{from:u,to:c}},ao.prototype.changed=function(){var r=this,s=this.find(-1,!0),u=this,c=this.doc.cm;!s||!c||sn(c,function(){var p=s.line,m=Qe(s.line),b=rf(c,m);if(b&&(_m(b),c.curOp.selectionChanged=c.curOp.forceUpdate=!0),c.curOp.updateMaxLine=!0,!to(u.doc,p)&&u.height!=null){var _=u.height;u.height=null;var k=Os(u)-_;k&&Sn(p,p.height+k)}Tt(c,"markerChanged",c,r)})},ao.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||De(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},ao.prototype.detachLine=function(r){if(this.lines.splice(De(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Ht(ao);function Di(r,s,u,c,p){if(c&&c.shared)return hk(r,s,u,c,p);if(r.cm&&!r.cm.curOp)return Dt(r.cm,Di)(r,s,u,c,p);var m=new ao(r,p),b=ee(s,u);if(c&&ye(c,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=j("span",[m.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(im(r,s.line,s,u,m)||s.line!=u.line&&im(r,u.line,s,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");r2()}m.addToHistory&&Zm(r,{from:s,to:u,origin:"markText"},r.sel,NaN);var _=s.line,k=r.cm,w;if(r.iter(_,u.line+1,function(M){k&&m.collapsed&&!k.options.lineWrapping&&jn(M)==k.display.maxLine&&(w=!0),m.collapsed&&_!=s.line&&Sn(M,0),i2(M,new uc(m,_==s.line?s.ch:null,_==u.line?u.ch:null),r.cm&&r.cm.curOp),++_}),m.collapsed&&r.iter(s.line,u.line+1,function(M){to(r,M)&&Sn(M,0)}),m.clearOnEnter&&be(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(n2(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++mv,m.atomic=!0),k){if(w&&(k.curOp.updateMaxLine=!0),m.collapsed)Jt(k,s.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var I=s.line;I<=u.line;I++)no(k,I,"text");m.atomic&&ov(k.doc),Tt(k,"markerAdded",k,m)}return m}var Ws=function(r,s){this.markers=r,this.primary=s;for(var u=0;u<r.length;++u)r[u].parent=this};Ws.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Tt(this,"clear")}},Ws.prototype.find=function(r,s){return this.primary.find(r,s)},Ht(Ws);function hk(r,s,u,c,p){c=ye(c),c.shared=!1;var m=[Di(r,s,u,c,p)],b=m[0],_=c.widgetNode;return so(r,function(k){_&&(c.widgetNode=_.cloneNode(!0)),m.push(Di(k,Oe(k,s),Oe(k,u),c,p));for(var w=0;w<k.linked.length;++w)if(k.linked[w].isParent)return;b=ze(m)}),new Ws(m,b)}function vv(r){return r.findMarks(B(r.first,0),r.clipPos(B(r.lastLine())),function(s){return s.parent})}function mk(r,s){for(var u=0;u<s.length;u++){var c=s[u],p=c.find(),m=r.clipPos(p.from),b=r.clipPos(p.to);if(ee(m,b)){var _=Di(r,m,b,c.primary,c.primary.type);c.markers.push(_),_.parent=c}}}function vk(r){for(var s=function(c){var p=r[c],m=[p.primary.doc];so(p.primary.doc,function(k){return m.push(k)});for(var b=0;b<p.markers.length;b++){var _=p.markers[b];De(m,_.doc)==-1&&(_.parent=null,p.markers.splice(b--,1))}},u=0;u<r.length;u++)s(u)}var gk=0,Zt=function(r,s,u,c,p){if(!(this instanceof Zt))return new Zt(r,s,u,c,p);u==null&&(u=0),Hs.call(this,[new zs([new yi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=B(u,0);this.sel=oo(m),this.history=new Cc(null),this.id=++gk,this.modeOption=s,this.lineSep=c,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),$f(this,{from:m,to:m,text:r}),Vt(this,oo(m),Be)};Zt.prototype=tc(Hs.prototype,{constructor:Zt,iter:function(r,s,u){u?this.iterN(r-this.first,s-r,u):this.iterN(this.first,this.first+this.size,r)},insert:function(r,s){for(var u=0,c=0;c<s.length;++c)u+=s[c].height;this.insertInner(r-this.first,s,u)},remove:function(r,s){this.removeInner(r-this.first,s)},getValue:function(r){var s=gi(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Nt(function(r){var s=B(this.first,0),u=this.first+this.size-1;Si(this,{from:s,to:B(u,we(this,u).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Fs(this.cm,0,0),Vt(this,oo(s),Be)}),replaceRange:function(r,s,u,c){s=Oe(this,s),u=u?Oe(this,u):s,Ti(this,r,s,u,c)},getRange:function(r,s,u){var c=Nr(this,Oe(this,r),Oe(this,s));return u===!1?c:u===""?c.join(""):c.join(u||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(A(this,r))return we(this,r)},getLineNumber:function(r){return Qe(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=we(this,r)),jn(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Oe(this,r)},getCursor:function(r){var s=this.sel.primary(),u;return r==null||r=="head"?u=s.head:r=="anchor"?u=s.anchor:r=="end"||r=="to"||r===!1?u=s.to():u=s.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Nt(function(r,s,u){tv(this,Oe(this,typeof r=="number"?B(r,s||0):r),null,u)}),setSelection:Nt(function(r,s,u){tv(this,Oe(this,r),Oe(this,s||r),u)}),extendSelection:Nt(function(r,s,u){Sc(this,Oe(this,r),s&&Oe(this,s),u)}),extendSelections:Nt(function(r,s){ev(this,Hh(this,r),s)}),extendSelectionsBy:Nt(function(r,s){var u=pi(this.sel.ranges,r);ev(this,Hh(this,u),s)}),setSelections:Nt(function(r,s,u){if(r.length){for(var c=[],p=0;p<r.length;p++)c[p]=new Ye(Oe(this,r[p].anchor),Oe(this,r[p].head||r[p].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),Vt(this,zn(this.cm,c,s),u)}}),addSelection:Nt(function(r,s,u){var c=this.sel.ranges.slice(0);c.push(new Ye(Oe(this,r),Oe(this,s||r))),Vt(this,zn(this.cm,c,c.length-1),u)}),getSelection:function(r){for(var s=this.sel.ranges,u,c=0;c<s.length;c++){var p=Nr(this,s[c].from(),s[c].to());u=u?u.concat(p):p}return r===!1?u:u.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],u=this.sel.ranges,c=0;c<u.length;c++){var p=Nr(this,u[c].from(),u[c].to());r!==!1&&(p=p.join(r||this.lineSeparator())),s[c]=p}return s},replaceSelection:function(r,s,u){for(var c=[],p=0;p<this.sel.ranges.length;p++)c[p]=r;this.replaceSelections(c,s,u||"+input")},replaceSelections:Nt(function(r,s,u){for(var c=[],p=this.sel,m=0;m<p.ranges.length;m++){var b=p.ranges[m];c[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:u}}for(var _=s&&s!="end"&&ok(this,c,s),k=c.length-1;k>=0;k--)Si(this,c[k]);_?nv(this,_):this.cm&&wi(this.cm)}),undo:Nt(function(){Nc(this,"undo")}),redo:Nt(function(){Nc(this,"redo")}),undoSelection:Nt(function(){Nc(this,"undo",!0)}),redoSelection:Nt(function(){Nc(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,s=0,u=0,c=0;c<r.done.length;c++)r.done[c].ranges||++s;for(var p=0;p<r.undone.length;p++)r.undone[p].ranges||++u;return{undo:s,redo:u}},clearHistory:function(){var r=this;this.history=new Cc(this.history),so(this,function(s){return s.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(r){var s=this.history=new Cc(this.history);s.done=Ci(r.done.slice(0),null,!0),s.undone=Ci(r.undone.slice(0),null,!0)},setGutterMarker:Nt(function(r,s,u){return Us(this,r,"gutter",function(c){var p=c.gutterMarkers||(c.gutterMarkers={});return p[s]=u,!u&&nc(p)&&(c.gutterMarkers=null),!0})}),clearGutter:Nt(function(r){var s=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[r]&&Us(s,u,"gutter",function(){return u.gutterMarkers[r]=null,nc(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(r){var s;if(typeof r=="number"){if(!A(this,r)||(s=r,r=we(this,r),!r))return null}else if(s=Qe(r),s==null)return null;return{line:s,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Nt(function(r,s,u){return Us(this,r,s=="gutter"?"gutter":"class",function(c){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!c[p])c[p]=u;else{if(re(u).test(c[p]))return!1;c[p]+=" "+u}return!0})}),removeLineClass:Nt(function(r,s,u){return Us(this,r,s=="gutter"?"gutter":"class",function(c){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",m=c[p];if(m)if(u==null)c[p]=null;else{var b=m.match(re(u));if(!b)return!1;var _=b.index+b[0].length;c[p]=m.slice(0,b.index)+(!b.index||_==m.length?"":" ")+m.slice(_)||null}else return!1;return!0})}),addLineWidget:Nt(function(r,s,u){return dk(this,r,s,u)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,u){return Di(this,Oe(this,r),Oe(this,s),u,u&&u.type||"range")},setBookmark:function(r,s){var u={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return r=Oe(this,r),Di(this,r,r,u,"bookmark")},findMarksAt:function(r){r=Oe(this,r);var s=[],u=we(this,r.line).markedSpans;if(u)for(var c=0;c<u.length;++c){var p=u[c];(p.from==null||p.from<=r.ch)&&(p.to==null||p.to>=r.ch)&&s.push(p.marker.parent||p.marker)}return s},findMarks:function(r,s,u){r=Oe(this,r),s=Oe(this,s);var c=[],p=r.line;return this.iter(r.line,s.line+1,function(m){var b=m.markedSpans;if(b)for(var _=0;_<b.length;_++){var k=b[_];!(k.to!=null&&p==r.line&&r.ch>=k.to||k.from==null&&p!=r.line||k.from!=null&&p==s.line&&k.from>=s.ch)&&(!u||u(k.marker))&&c.push(k.marker.parent||k.marker)}++p}),c},getAllMarks:function(){var r=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var c=0;c<u.length;++c)u[c].from!=null&&r.push(u[c].marker)}),r},posFromIndex:function(r){var s,u=this.first,c=this.lineSeparator().length;return this.iter(function(p){var m=p.text.length+c;if(m>r)return s=r,!0;r-=m,++u}),Oe(this,B(u,s))},indexFromPos:function(r){r=Oe(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,r.line,function(c){s+=c.text.length+u}),s},copy:function(r){var s=new Zt(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,r&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(r){r||(r={});var s=this.first,u=this.first+this.size;r.from!=null&&r.from>s&&(s=r.from),r.to!=null&&r.to<u&&(u=r.to);var c=new Zt(gi(this,s,u),r.mode||this.modeOption,s,this.lineSep,this.direction);return r.sharedHist&&(c.history=this.history),(this.linked||(this.linked=[])).push({doc:c,sharedHist:r.sharedHist}),c.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],mk(c,vv(this)),c},unlinkDoc:function(r){if(r instanceof ct&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var u=this.linked[s];if(u.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),vk(vv(this));break}}if(r.history==this.history){var c=[r.id];so(r,function(p){return c.push(p.id)},!0),r.history=new Cc(null),r.history.done=Ci(this.history.done,c),r.history.undone=Ci(this.history.undone,c)}},iterLinkedDocs:function(r){so(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):Cs(r)},lineSeparator:function(){return this.lineSep||`
297
- `},setDirection:Nt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&ik(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var gv=0;function yk(r){var s=this;if(yv(s),!(pt(s,r)||Lr(s.display,r))){Bt(r),d&&(gv=+new Date);var u=Io(s,r,!0),c=r.dataTransfer.files;if(!(!u||s.isReadOnly()))if(c&&c.length&&window.FileReader&&window.File)for(var p=c.length,m=Array(p),b=0,_=function(){++b==p&&Dt(s,function(){u=Oe(s.doc,u);var z={from:u,to:u,text:s.doc.splitLines(m.filter(function(ne){return ne!=null}).join(s.doc.lineSeparator())),origin:"paste"};Si(s.doc,z),nv(s.doc,oo(Oe(s.doc,u),Oe(s.doc,io(z))))})()},k=function(z,ne){if(s.options.allowDropFileTypes&&De(s.options.allowDropFileTypes,z.type)==-1){_();return}var ce=new FileReader;ce.onerror=function(){return _()},ce.onload=function(){var ue=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){_();return}m[ne]=ue,_()},ce.readAsText(z)},w=0;w<c.length;w++)k(c[w],w);else{if(s.state.draggingText&&s.doc.sel.contains(u)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var I=r.dataTransfer.getData("Text");if(I){var M;if(s.state.draggingText&&!s.state.draggingText.copy&&(M=s.listSelections()),Tc(s.doc,oo(u,u)),M)for(var W=0;W<M.length;++W)Ti(s.doc,"",M[W].anchor,M[W].head,"drag");s.replaceSelection(I,"around","paste"),s.display.input.focus()}}catch{}}}}function bk(r,s){if(d&&(!r.state.draggingText||+new Date-gv<100)){Sr(s);return}if(!(pt(r,s)||Lr(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!S)){var u=x("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(u.width=u.height=1,r.display.wrapper.appendChild(u),u._top=u.offsetTop),s.dataTransfer.setDragImage(u,0,0),C&&u.parentNode.removeChild(u)}}function Ek(r,s){var u=Io(r,s);if(u){var c=document.createDocumentFragment();pf(r,u,c),r.display.dragCursor||(r.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),F(r.display.dragCursor,c)}}function yv(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function bv(r){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),u=[],c=0;c<s.length;c++){var p=s[c].CodeMirror;p&&u.push(p)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)r(u[m])})}}var Ev=!1;function _k(){Ev||(kk(),Ev=!0)}function kk(){var r;be(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,bv(xk)},100))}),be(window,"blur",function(){return bv(xi)})}function xk(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var co={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Qs=0;Qs<10;Qs++)co[Qs+48]=co[Qs+96]=String(Qs);for(var Oc=65;Oc<=90;Oc++)co[Oc]=String.fromCharCode(Oc);for(var Ys=1;Ys<=12;Ys++)co[Ys+111]=co[Ys+63235]="F"+Ys;var Rr={};Rr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rr.default=Y?Rr.macDefault:Rr.pcDefault;function wk(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var u,c,p,m,b=0;b<s.length-1;b++){var _=s[b];if(/^(cmd|meta|m)$/i.test(_))m=!0;else if(/^a(lt)?$/i.test(_))u=!0;else if(/^(c|ctrl|control)$/i.test(_))c=!0;else if(/^s(hift)?$/i.test(_))p=!0;else throw new Error("Unrecognized modifier name: "+_)}return u&&(r="Alt-"+r),c&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),p&&(r="Shift-"+r),r}function $k(r){var s={};for(var u in r)if(r.hasOwnProperty(u)){var c=r[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(c=="..."){delete r[u];continue}for(var p=pi(u.split(" "),wk),m=0;m<p.length;m++){var b=void 0,_=void 0;m==p.length-1?(_=p.join(" "),b=c):(_=p.slice(0,m+1).join(" "),b="...");var k=s[_];if(!k)s[_]=b;else if(k!=b)throw new Error("Inconsistent bindings for "+_)}delete r[u]}for(var w in s)r[w]=s[w];return r}function Ni(r,s,u,c){s=Ic(s);var p=s.call?s.call(r,c):s[r];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&u(p))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Ni(r,s.fallthrough,u,c);for(var m=0;m<s.fallthrough.length;m++){var b=Ni(r,s.fallthrough[m],u,c);if(b)return b}}}function _v(r){var s=typeof r=="string"?r:co[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function kv(r,s,u){var c=r;return s.altKey&&c!="Alt"&&(r="Alt-"+r),(G?s.metaKey:s.ctrlKey)&&c!="Ctrl"&&(r="Ctrl-"+r),(G?s.ctrlKey:s.metaKey)&&c!="Mod"&&(r="Cmd-"+r),!u&&s.shiftKey&&c!="Shift"&&(r="Shift-"+r),r}function xv(r,s){if(C&&r.keyCode==34&&r.char)return!1;var u=co[r.keyCode];return u==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(u=r.code),kv(u,r,s))}function Ic(r){return typeof r=="string"?Rr[r]:r}function Oi(r,s){for(var u=r.doc.sel.ranges,c=[],p=0;p<u.length;p++){for(var m=s(u[p]);c.length&&ee(m.from,ze(c).to)<=0;){var b=c.pop();if(ee(b.from,m.from)<0){m.from=b.from;break}}c.push(m)}sn(r,function(){for(var _=c.length-1;_>=0;_--)Ti(r.doc,"",c[_].from,c[_].to,"+delete");wi(r)})}function Tf(r,s,u){var c=sr(r.text,s+u,u);return c<0||c>r.text.length?null:c}function Df(r,s,u){var c=Tf(r,s.ch,u);return c==null?null:new B(s.line,c,u<0?"after":"before")}function Nf(r,s,u,c,p){if(r){s.doc.direction=="rtl"&&(p=-p);var m=Cn(u,s.doc.direction);if(m){var b=p<0?ze(m):m[0],_=p<0==(b.level==1),k=_?"after":"before",w;if(b.level>0||s.doc.direction=="rtl"){var I=Ei(s,u);w=p<0?u.text.length-1:0;var M=dr(s,I,w).top;w=ft(function(W){return dr(s,I,W).top==M},p<0==(b.level==1)?b.from:b.to-1,w),k=="before"&&(w=Tf(u,w,1))}else w=p<0?b.to:b.from;return new B(c,w,k)}}return new B(c,p<0?u.text.length:0,p<0?"before":"after")}function Ck(r,s,u,c){var p=Cn(s,r.doc.direction);if(!p)return Df(s,u,c);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=$n(p,u.ch,u.sticky),b=p[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(c>0?b.to>u.ch:b.from<u.ch))return Df(s,u,c);var _=function(me,Ee){return Tf(s,me instanceof B?me.ch:me,Ee)},k,w=function(me){return r.options.lineWrapping?(k=k||Ei(r,s),Sm(r,s,k,me)):{begin:0,end:s.text.length}},I=w(u.sticky=="before"?_(u,-1):u.ch);if(r.doc.direction=="rtl"||b.level==1){var M=b.level==1==c<0,W=_(u,M?1:-1);if(W!=null&&(M?W<=b.to&&W<=I.end:W>=b.from&&W>=I.begin)){var z=M?"before":"after";return new B(u.line,W,z)}}var ne=function(me,Ee,ve){for(var xe=function(rt,Ot){return Ot?new B(u.line,_(rt,1),"before"):new B(u.line,rt,"after")};me>=0&&me<p.length;me+=Ee){var Se=p[me],Ae=Ee>0==(Se.level!=1),Re=Ae?ve.begin:_(ve.end,-1);if(Se.from<=Re&&Re<Se.to||(Re=Ae?Se.from:_(Se.to,-1),ve.begin<=Re&&Re<ve.end))return xe(Re,Ae)}},ce=ne(m+c,c,I);if(ce)return ce;var ue=c>0?I.end:_(I.begin,-1);return ue!=null&&!(c>0&&ue==s.text.length)&&(ce=ne(c>0?0:p.length-1,c,w(ue)),ce)?ce:null}var Js={selectAll:av,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Be)},killLine:function(r){return Oi(r,function(s){if(s.empty()){var u=we(r.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line<r.lastLine()?{from:s.head,to:B(s.head.line+1,0)}:{from:s.head,to:B(s.head.line,u)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:Oe(r.doc,B(s.to().line+1,0))}})},delLineLeft:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,c=r.coordsChar({left:0,top:u},"div");return{from:c,to:s.from()}})},delWrappedLineRight:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,c=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div");return{from:s.from(),to:c}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(B(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(B(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return wv(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return $v(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return Ak(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div")},Jr)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:u},"div")},Jr)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5,c=r.coordsChar({left:0,top:u},"div");return c.ch<r.getLine(c.line).search(/\S/)?$v(r,s.head):c},Jr)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],u=r.listSelections(),c=r.options.tabSize,p=0;p<u.length;p++){var m=u[p].from(),b=he(r.getLine(m.line),m.ch,c);s.push(ir(c-b%c))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return sn(r,function(){for(var s=r.listSelections(),u=[],c=0;c<s.length;c++)if(s[c].empty()){var p=s[c].head,m=we(r.doc,p.line).text;if(m){if(p.ch==m.length&&(p=new B(p.line,p.ch-1)),p.ch>0)p=new B(p.line,p.ch+1),r.replaceRange(m.charAt(p.ch-1)+m.charAt(p.ch-2),B(p.line,p.ch-2),p,"+transpose");else if(p.line>r.doc.first){var b=we(r.doc,p.line-1).text;b&&(p=new B(p.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),B(p.line-1,b.length-1),p,"+transpose"))}}u.push(new Ye(p,p))}r.setSelections(u)})},newlineAndIndent:function(r){return sn(r,function(){for(var s=r.listSelections(),u=s.length-1;u>=0;u--)r.replaceRange(r.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=r.listSelections();for(var c=0;c<s.length;c++)r.indentLine(s[c].from().line,null,!0);wi(r)})},openLine:function(r){return r.replaceSelection(`
298
- `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function wv(r,s){var u=we(r.doc,s),c=jn(u);return c!=u&&(s=Qe(c)),Nf(!0,r,c,s,1)}function Ak(r,s){var u=we(r.doc,s),c=u2(u);return c!=u&&(s=Qe(c)),Nf(!0,r,u,s,-1)}function $v(r,s){var u=wv(r,s.line),c=we(r.doc,u.line),p=Cn(c,r.doc.direction);if(!p||p[0].level==0){var m=Math.max(u.ch,c.text.search(/\S/)),b=s.line==u.line&&s.ch<=m&&s.ch;return B(u.line,b?0:m,u.sticky)}return u}function Lc(r,s,u){if(typeof s=="string"&&(s=Js[s],!s))return!1;r.display.input.ensurePolled();var c=r.display.shift,p=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),u&&(r.display.shift=!1),p=s(r)!=Ve}finally{r.display.shift=c,r.state.suppressEdits=!1}return p}function Sk(r,s,u){for(var c=0;c<r.state.keyMaps.length;c++){var p=Ni(s,r.state.keyMaps[c],u,r);if(p)return p}return r.options.extraKeys&&Ni(s,r.options.extraKeys,u,r)||Ni(s,r.options.keyMap,u,r)}var Tk=new ke;function Zs(r,s,u,c){var p=r.state.keySeq;if(p){if(_v(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:Tk.set(50,function(){r.state.keySeq==p&&(r.state.keySeq=null,r.display.input.reset())}),Cv(r,p+" "+s,u,c))return!0}return Cv(r,s,u,c)}function Cv(r,s,u,c){var p=Sk(r,s,c);return p=="multi"&&(r.state.keySeq=s),p=="handled"&&Tt(r,"keyHandled",r,s,u),(p=="handled"||p=="multi")&&(Bt(u),df(r)),!!p}function Av(r,s){var u=xv(s,!0);return u?s.shiftKey&&!r.state.keySeq?Zs(r,"Shift-"+u,s,function(c){return Lc(r,c,!0)})||Zs(r,u,s,function(c){if(typeof c=="string"?/^go[A-Z]/.test(c):c.motion)return Lc(r,c)}):Zs(r,u,s,function(c){return Lc(r,c)}):!1}function Dk(r,s,u){return Zs(r,"'"+u+"'",s,function(c){return Lc(r,c,!0)})}var Of=null;function Sv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=pe(fe(s)),!pt(s,r))){d&&h<11&&r.keyCode==27&&(r.returnValue=!1);var u=r.keyCode;s.display.shift=u==16||r.shiftKey;var c=Av(s,r);C&&(Of=c?u:null,!c&&u==88&&!cr&&(Y?r.metaKey:r.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!Y&&!c&&u==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&Nk(s)}}function Nk(r){var s=r.display.lineDiv;$e(s,"CodeMirror-crosshair");function u(c){(c.keyCode==18||!c.altKey)&&(_e(s,"CodeMirror-crosshair"),Pt(document,"keyup",u),Pt(document,"mouseover",u))}be(document,"keyup",u),be(document,"mouseover",u)}function Tv(r){r.keyCode==16&&(this.doc.sel.shift=!1),pt(this,r)}function Dv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(Lr(s.display,r)||pt(s,r)||r.ctrlKey&&!r.altKey||Y&&r.metaKey)){var u=r.keyCode,c=r.charCode;if(C&&u==Of){Of=null,Bt(r);return}if(!(C&&(!r.which||r.which<10)&&Av(s,r))){var p=String.fromCharCode(c??u);p!="\b"&&(Dk(s,r,p)||s.display.input.onKeyPress(r))}}}var Ok=400,If=function(r,s,u){this.time=r,this.pos=s,this.button=u};If.prototype.compare=function(r,s,u){return this.time+Ok>r&&ee(s,this.pos)==0&&u==this.button};var Xs,Ks;function Ik(r,s){var u=+new Date;return Ks&&Ks.compare(u,r,s)?(Xs=Ks=null,"triple"):Xs&&Xs.compare(u,r,s)?(Ks=new If(u,r,s),Xs=null,"double"):(Xs=new If(u,r,s),Ks=null,"single")}function Nv(r){var s=this,u=s.display;if(!(pt(s,r)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=r.shiftKey,Lr(u,r)){v||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Lf(s,r)){var c=Io(s,r),p=$s(r),m=c?Ik(c,p):"single";de(s).focus(),p==1&&s.state.selectingText&&s.state.selectingText(r),!(c&&Lk(s,p,c,m,r))&&(p==1?c?Rk(s,c,m,r):Yt(r)==u.scroller&&Bt(r):p==2?(c&&Sc(s.doc,c),setTimeout(function(){return u.input.focus()},20)):p==3&&(Q?s.display.input.onContextMenu(r):hf(s)))}}}function Lk(r,s,u,c,p){var m="Click";return c=="double"?m="Double"+m:c=="triple"&&(m="Triple"+m),m=(s==1?"Left":s==2?"Middle":"Right")+m,Zs(r,kv(m,p),p,function(b){if(typeof b=="string"&&(b=Js[b]),!b)return!1;var _=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),_=b(r,u)!=Ve}finally{r.state.suppressEdits=!1}return _})}function Fk(r,s,u){var c=r.getOption("configureMouse"),p=c?c(r,s,u):{};if(p.unit==null){var m=P?u.shiftKey&&u.metaKey:u.altKey;p.unit=m?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(p.extend==null||r.doc.extend)&&(p.extend=r.doc.extend||u.shiftKey),p.addNew==null&&(p.addNew=Y?u.metaKey:u.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(Y?u.altKey:u.ctrlKey)),p}function Rk(r,s,u,c){d?setTimeout(ge(Om,r),0):r.curOp.focus=pe(fe(r));var p=Fk(r,u,c),m=r.doc.sel,b;r.options.dragDrop&&Hu&&!r.isReadOnly()&&u=="single"&&(b=m.contains(s))>-1&&(ee((b=m.ranges[b]).from(),s)<0||s.xRel>0)&&(ee(b.to(),s)>0||s.xRel<0)?Mk(r,c,s,p):qk(r,c,s,p)}function Mk(r,s,u,c){var p=r.display,m=!1,b=Dt(r,function(w){v&&(p.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:hf(r)),Pt(p.wrapper.ownerDocument,"mouseup",b),Pt(p.wrapper.ownerDocument,"mousemove",_),Pt(p.scroller,"dragstart",k),Pt(p.scroller,"drop",b),m||(Bt(w),c.addNew||Sc(r.doc,u,null,null,c.extend),v&&!S||d&&h==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),_=function(w){m=m||Math.abs(s.clientX-w.clientX)+Math.abs(s.clientY-w.clientY)>=10},k=function(){return m=!0};v&&(p.scroller.draggable=!0),r.state.draggingText=b,b.copy=!c.moveOnDrag,be(p.wrapper.ownerDocument,"mouseup",b),be(p.wrapper.ownerDocument,"mousemove",_),be(p.scroller,"dragstart",k),be(p.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function Ov(r,s,u){if(u=="char")return new Ye(s,s);if(u=="word")return r.findWordAt(s);if(u=="line")return new Ye(B(s.line,0),Oe(r.doc,B(s.line+1,0)));var c=u(r,s);return new Ye(c.from,c.to)}function qk(r,s,u,c){d&&hf(r);var p=r.display,m=r.doc;Bt(s);var b,_,k=m.sel,w=k.ranges;if(c.addNew&&!c.extend?(_=m.sel.contains(u),_>-1?b=w[_]:b=new Ye(u,u)):(b=m.sel.primary(),_=m.sel.primIndex),c.unit=="rectangle")c.addNew||(b=new Ye(u,u)),u=Io(r,s,!0,!0),_=-1;else{var I=Ov(r,u,c.unit);c.extend?b=Af(b,I.anchor,I.head,c.extend):b=I}c.addNew?_==-1?(_=w.length,Vt(m,zn(r,w.concat([b]),_),{scroll:!1,origin:"*mouse"})):w.length>1&&w[_].empty()&&c.unit=="char"&&!c.extend?(Vt(m,zn(r,w.slice(0,_).concat(w.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),k=m.sel):Sf(m,_,b,So):(_=0,Vt(m,new dn([b],0),So),k=m.sel);var M=u;function W(ve){if(ee(M,ve)!=0)if(M=ve,c.unit=="rectangle"){for(var xe=[],Se=r.options.tabSize,Ae=he(we(m,u.line).text,u.ch,Se),Re=he(we(m,ve.line).text,ve.ch,Se),rt=Math.min(Ae,Re),Ot=Math.max(Ae,Re),ut=Math.min(u.line,ve.line),an=Math.min(r.lastLine(),Math.max(u.line,ve.line));ut<=an;ut++){var Xt=we(m,ut).text,bt=or(Xt,rt,Se);rt==Ot?xe.push(new Ye(B(ut,bt),B(ut,bt))):Xt.length>bt&&xe.push(new Ye(B(ut,bt),B(ut,or(Xt,Ot,Se))))}xe.length||xe.push(new Ye(u,u)),Vt(m,zn(r,k.ranges.slice(0,_).concat(xe),_),{origin:"*mouse",scroll:!1}),r.scrollIntoView(ve)}else{var Kt=b,Mt=Ov(r,ve,c.unit),Ct=Kt.anchor,Et;ee(Mt.anchor,Ct)>0?(Et=Mt.head,Ct=$t(Kt.from(),Mt.anchor)):(Et=Mt.anchor,Ct=We(Kt.to(),Mt.head));var ht=k.ranges.slice(0);ht[_]=Pk(r,new Ye(Oe(m,Ct),Et)),Vt(m,zn(r,ht,_),So)}}var z=p.wrapper.getBoundingClientRect(),ne=0;function ce(ve){var xe=++ne,Se=Io(r,ve,!0,c.unit=="rectangle");if(Se)if(ee(Se,M)!=0){r.curOp.focus=pe(fe(r)),W(Se);var Ae=kc(p,m);(Se.line>=Ae.to||Se.line<Ae.from)&&setTimeout(Dt(r,function(){ne==xe&&ce(ve)}),150)}else{var Re=ve.clientY<z.top?-20:ve.clientY>z.bottom?20:0;Re&&setTimeout(Dt(r,function(){ne==xe&&(p.scroller.scrollTop+=Re,ce(ve))}),50)}}function ue(ve){r.state.selectingText=!1,ne=1/0,ve&&(Bt(ve),p.input.focus()),Pt(p.wrapper.ownerDocument,"mousemove",me),Pt(p.wrapper.ownerDocument,"mouseup",Ee),m.history.lastSelOrigin=null}var me=Dt(r,function(ve){ve.buttons===0||!$s(ve)?ue(ve):ce(ve)}),Ee=Dt(r,ue);r.state.selectingText=Ee,be(p.wrapper.ownerDocument,"mousemove",me),be(p.wrapper.ownerDocument,"mouseup",Ee)}function Pk(r,s){var u=s.anchor,c=s.head,p=we(r.doc,u.line);if(ee(u,c)==0&&u.sticky==c.sticky)return s;var m=Cn(p);if(!m)return s;var b=$n(m,u.ch,u.sticky),_=m[b];if(_.from!=u.ch&&_.to!=u.ch)return s;var k=b+(_.from==u.ch==(_.level!=1)?0:1);if(k==0||k==m.length)return s;var w;if(c.line!=u.line)w=(c.line-u.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var I=$n(m,c.ch,c.sticky),M=I-b||(c.ch-u.ch)*(_.level==1?-1:1);I==k-1||I==k?w=M<0:w=M>0}var W=m[k+(w?-1:0)],z=w==(W.level==1),ne=z?W.from:W.to,ce=z?"after":"before";return u.ch==ne&&u.sticky==ce?s:new Ye(new B(u.line,ne,ce),c)}function Iv(r,s,u,c){var p,m;if(s.touches)p=s.touches[0].clientX,m=s.touches[0].clientY;else try{p=s.clientX,m=s.clientY}catch{return!1}if(p>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;c&&Bt(s);var b=r.display,_=b.lineDiv.getBoundingClientRect();if(m>_.bottom||!zt(r,u))return ws(s);m-=_.top-b.viewOffset;for(var k=0;k<r.display.gutterSpecs.length;++k){var w=b.gutters.childNodes[k];if(w&&w.getBoundingClientRect().right>=p){var I=ur(r.doc,m),M=r.display.gutterSpecs[k];return it(r,u,r,I,M.className,s),ws(s)}}}function Lf(r,s){return Iv(r,s,"gutterClick",!0)}function Lv(r,s){Lr(r.display,s)||Bk(r,s)||pt(r,s,"contextmenu")||Q||r.display.input.onContextMenu(s)}function Bk(r,s){return zt(r,"gutterContextMenu")?Iv(r,s,"gutterContextMenu",!1):!1}function Fv(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Is(r)}var Ii={toString:function(){return"CodeMirror.Init"}},Rv={},Fc={};function Vk(r){var s=r.optionHandlers;function u(c,p,m,b){r.defaults[c]=p,m&&(s[c]=b?function(_,k,w){w!=Ii&&m(_,k,w)}:m)}r.defineOption=u,r.Init=Ii,u("value","",function(c,p){return c.setValue(p)},!0),u("mode",null,function(c,p){c.doc.modeOption=p,wf(c)},!0),u("indentUnit",2,wf,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(c){Vs(c),Is(c),Jt(c)},!0),u("lineSeparator",null,function(c,p){if(c.doc.lineSep=p,!!p){var m=[],b=c.doc.first;c.doc.iter(function(k){for(var w=0;;){var I=k.text.indexOf(p,w);if(I==-1)break;w=I+p.length,m.push(B(b,I))}b++});for(var _=m.length-1;_>=0;_--)Ti(c.doc,p,m[_],B(m[_].line,m[_].ch+p.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(c,p,m){c.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),m!=Ii&&c.refresh()}),u("specialCharPlaceholder",v2,function(c){return c.refresh()},!0),u("electricChars",!0),u("inputStyle",V?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(c,p){return c.getInputField().spellcheck=p},!0),u("autocorrect",!1,function(c,p){return c.getInputField().autocorrect=p},!0),u("autocapitalize",!1,function(c,p){return c.getInputField().autocapitalize=p},!0),u("rtlMoveVisually",!U),u("wholeLineUpdateBefore",!0),u("theme","default",function(c){Fv(c),Bs(c)},!0),u("keyMap","default",function(c,p,m){var b=Ic(p),_=m!=Ii&&Ic(m);_&&_.detach&&_.detach(c,b),b.attach&&b.attach(c,_||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Uk,!0),u("gutters",[],function(c,p){c.display.gutterSpecs=kf(p,c.options.lineNumbers),Bs(c)},!0),u("fixedGutter",!0,function(c,p){c.display.gutters.style.left=p?uf(c.display)+"px":"0",c.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(c){return $i(c)},!0),u("scrollbarStyle","native",function(c){qm(c),$i(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),u("lineNumbers",!1,function(c,p){c.display.gutterSpecs=kf(c.options.gutters,p),Bs(c)},!0),u("firstLineNumber",1,Bs,!0),u("lineNumberFormatter",function(c){return c},Bs,!0),u("showCursorWhenSelecting",!1,Ls,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(c,p){p=="nocursor"&&(xi(c),c.display.input.blur()),c.display.input.readOnlyChanged(p)}),u("screenReaderLabel",null,function(c,p){p=p===""?null:p,c.display.input.screenReaderLabelChanged(p)}),u("disableInput",!1,function(c,p){p||c.display.input.reset()},!0),u("dragDrop",!0,jk),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Ls,!0),u("singleCursorHeightPerLine",!0,Ls,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Vs,!0),u("addModeClass",!1,Vs,!0),u("pollInterval",100),u("undoDepth",200,function(c,p){return c.doc.history.undoDepth=p}),u("historyEventDelay",1250),u("viewportMargin",10,function(c){return c.refresh()},!0),u("maxHighlightLength",1e4,Vs,!0),u("moveInputWithCursor",!0,function(c,p){p||c.display.input.resetPosition()}),u("tabindex",null,function(c,p){return c.display.input.getField().tabIndex=p||""}),u("autofocus",null),u("direction","ltr",function(c,p){return c.doc.setDirection(p)},!0),u("phrases",null)}function jk(r,s,u){var c=u&&u!=Ii;if(!s!=!c){var p=r.display.dragFunctions,m=s?be:Pt;m(r.display.scroller,"dragstart",p.start),m(r.display.scroller,"dragenter",p.enter),m(r.display.scroller,"dragover",p.over),m(r.display.scroller,"dragleave",p.leave),m(r.display.scroller,"drop",p.drop)}}function Uk(r){r.options.lineWrapping?($e(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(_e(r.display.wrapper,"CodeMirror-wrap"),Ku(r)),ff(r),Jt(r),Is(r),setTimeout(function(){return $i(r)},100)}function ct(r,s){var u=this;if(!(this instanceof ct))return new ct(r,s);this.options=s=s?ye(s):{},ye(Rv,s,!1);var c=s.value;typeof c=="string"?c=new Zt(c,s.mode,null,s.lineSeparator,s.direction):s.mode&&(c.modeOption=s.mode),this.doc=c;var p=new ct.inputStyles[s.inputStyle](this),m=this.display=new nk(r,c,p,s);m.wrapper.CodeMirror=this,Fv(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qm(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ke,keySeq:null,specialChars:null},s.autofocus&&!V&&m.input.focus(),d&&h<11&&setTimeout(function(){return u.display.input.reset(!0)},20),zk(this),_k(),Mo(this),this.curOp.forceUpdate=!0,Qm(this,c),s.autofocus&&!V||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&mf(u)},20):xi(this);for(var b in Fc)Fc.hasOwnProperty(b)&&Fc[b](this,s[b],Ii);Vm(this),s.finishInit&&s.finishInit(this);for(var _=0;_<Ff.length;++_)Ff[_](this);qo(this),v&&s.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}ct.defaults=Rv,ct.optionHandlers=Fc;function zk(r){var s=r.display;be(s.scroller,"mousedown",Dt(r,Nv)),d&&h<11?be(s.scroller,"dblclick",Dt(r,function(k){if(!pt(r,k)){var w=Io(r,k);if(!(!w||Lf(r,k)||Lr(r.display,k))){Bt(k);var I=r.findWordAt(w);Sc(r.doc,I.anchor,I.head)}}})):be(s.scroller,"dblclick",function(k){return pt(r,k)||Bt(k)}),be(s.scroller,"contextmenu",function(k){return Lv(r,k)}),be(s.input.getField(),"contextmenu",function(k){s.scroller.contains(k.target)||Lv(r,k)});var u,c={end:0};function p(){s.activeTouch&&(u=setTimeout(function(){return s.activeTouch=null},1e3),c=s.activeTouch,c.end=+new Date)}function m(k){if(k.touches.length!=1)return!1;var w=k.touches[0];return w.radiusX<=1&&w.radiusY<=1}function b(k,w){if(w.left==null)return!0;var I=w.left-k.left,M=w.top-k.top;return I*I+M*M>20*20}be(s.scroller,"touchstart",function(k){if(!pt(r,k)&&!m(k)&&!Lf(r,k)){s.input.ensurePolled(),clearTimeout(u);var w=+new Date;s.activeTouch={start:w,moved:!1,prev:w-c.end<=300?c:null},k.touches.length==1&&(s.activeTouch.left=k.touches[0].pageX,s.activeTouch.top=k.touches[0].pageY)}}),be(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),be(s.scroller,"touchend",function(k){var w=s.activeTouch;if(w&&!Lr(s,k)&&w.left!=null&&!w.moved&&new Date-w.start<300){var I=r.coordsChar(s.activeTouch,"page"),M;!w.prev||b(w,w.prev)?M=new Ye(I,I):!w.prev.prev||b(w,w.prev.prev)?M=r.findWordAt(I):M=new Ye(B(I.line,0),Oe(r.doc,B(I.line+1,0))),r.setSelection(M.anchor,M.head),r.focus(),Bt(k)}p()}),be(s.scroller,"touchcancel",p),be(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Rs(r,s.scroller.scrollTop),Fo(r,s.scroller.scrollLeft,!0),it(r,"scroll",r))}),be(s.scroller,"mousewheel",function(k){return zm(r,k)}),be(s.scroller,"DOMMouseScroll",function(k){return zm(r,k)}),be(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(k){pt(r,k)||Sr(k)},over:function(k){pt(r,k)||(Ek(r,k),Sr(k))},start:function(k){return bk(r,k)},drop:Dt(r,yk),leave:function(k){pt(r,k)||yv(r)}};var _=s.input.getField();be(_,"keyup",function(k){return Tv.call(r,k)}),be(_,"keydown",Dt(r,Sv)),be(_,"keypress",Dt(r,Dv)),be(_,"focus",function(k){return mf(r,k)}),be(_,"blur",function(k){return xi(r,k)})}var Ff=[];ct.defineInitHook=function(r){return Ff.push(r)};function ea(r,s,u,c){var p=r.doc,m;u==null&&(u="add"),u=="smart"&&(p.mode.indent?m=Ss(r,s).state:u="prev");var b=r.options.tabSize,_=we(p,s),k=he(_.text,null,b);_.stateAfter&&(_.stateAfter=null);var w=_.text.match(/^\s*/)[0],I;if(!c&&!/\S/.test(_.text))I=0,u="not";else if(u=="smart"&&(I=p.mode.indent(m,_.text.slice(w.length),_.text),I==Ve||I>150)){if(!c)return;u="prev"}u=="prev"?s>p.first?I=he(we(p,s-1).text,null,b):I=0:u=="add"?I=k+r.options.indentUnit:u=="subtract"?I=k-r.options.indentUnit:typeof u=="number"&&(I=k+u),I=Math.max(0,I);var M="",W=0;if(r.options.indentWithTabs)for(var z=Math.floor(I/b);z;--z)W+=b,M+=" ";if(W<I&&(M+=ir(I-W)),M!=w)return Ti(p,M,B(s,0),B(s,w.length),"+input"),_.stateAfter=null,!0;for(var ne=0;ne<p.sel.ranges.length;ne++){var ce=p.sel.ranges[ne];if(ce.head.line==s&&ce.head.ch<w.length){var ue=B(s,w.length);Sf(p,ne,new Ye(ue,ue));break}}}var Hn=null;function Rc(r){Hn=r}function Rf(r,s,u,c,p){var m=r.doc;r.display.shift=!1,c||(c=m.sel);var b=+new Date-200,_=p=="paste"||r.state.pasteIncoming>b,k=Cs(s),w=null;if(_&&c.ranges.length>1)if(Hn&&Hn.text.join(`
296
+ left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(p),r.display.lineSpace.removeChild(b)}}}function V2(r,s,u,c){c==null&&(c=0);var p;!r.options.lineWrapping&&s==u&&(u=s.sticky=="before"?B(s.line,s.ch+1,"before"):s,s=s.ch?B(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var m=0;m<5;m++){var b=!1,_=Un(r,s),k=!u||u==s?_:Un(r,u);p={left:Math.min(_.left,k.left),top:Math.min(_.top,k.top)-c,right:Math.max(_.left,k.left),bottom:Math.max(_.bottom,k.bottom)+c};var w=vf(r,p),I=r.doc.scrollTop,M=r.doc.scrollLeft;if(w.scrollTop!=null&&(Rs(r,w.scrollTop),Math.abs(r.doc.scrollTop-I)>1&&(b=!0)),w.scrollLeft!=null&&(Lo(r,w.scrollLeft),Math.abs(r.doc.scrollLeft-M)>1&&(b=!0)),!b)break}return p}function j2(r,s){var u=vf(r,s);u.scrollTop!=null&&Rs(r,u.scrollTop),u.scrollLeft!=null&&Lo(r,u.scrollLeft)}function vf(r,s){var u=r.display,c=_i(r.display);s.top<0&&(s.top=0);var p=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:u.scroller.scrollTop,m=nf(r),b={};s.bottom-s.top>m&&(s.bottom=s.top+m);var _=r.doc.height+tf(u),k=s.top<c,w=s.bottom>_-c;if(s.top<p)b.scrollTop=k?0:s.top;else if(s.bottom>p+m){var I=Math.min(s.top,(w?_:s.bottom)-m);I!=p&&(b.scrollTop=I)}var M=r.options.fixedGutter?0:u.gutters.offsetWidth,W=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:u.scroller.scrollLeft-M,z=No(r)-u.gutters.offsetWidth,ne=s.right-s.left>z;return ne&&(s.right=s.left+z),s.left<10?b.scrollLeft=0:s.left<W?b.scrollLeft=Math.max(0,s.left+M-(ne?0:10)):s.right>z+W-3&&(b.scrollLeft=s.right+(ne?0:10)-z),b}function gf(r,s){s!=null&&(xc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function wi(r){xc(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Ls(r,s,u){(s!=null||u!=null)&&xc(r),s!=null&&(r.curOp.scrollLeft=s),u!=null&&(r.curOp.scrollTop=u)}function U2(r,s){xc(r),r.curOp.scrollToPos=s}function xc(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var u=Cm(r,s.from),c=Cm(r,s.to);Fm(r,u,c,s.margin)}}function Fm(r,s,u,c){var p=vf(r,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-c,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+c});Ls(r,p.scrollLeft,p.scrollTop)}function Rs(r,s){Math.abs(r.doc.scrollTop-s)<2||(i||bf(r,{top:s}),Lm(r,s,!0),i&&bf(r),Ps(r,100))}function Lm(r,s,u){s=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,s)),!(r.display.scroller.scrollTop==s&&!u)&&(r.doc.scrollTop=s,r.display.scrollbars.setScrollTop(s),r.display.scroller.scrollTop!=s&&(r.display.scroller.scrollTop=s))}function Lo(r,s,u,c){s=Math.max(0,Math.min(s,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((u?s==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-s)<2)&&!c)&&(r.doc.scrollLeft=s,Bm(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function Ms(r){var s=r.display,u=s.gutters.offsetWidth,c=Math.round(r.doc.height+tf(r.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:r.options.fixedGutter?u:0,docHeight:c,scrollHeight:c+pr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var Ro=function(r,s,u){this.cm=u;var c=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,r(c),r(p),be(c,"scroll",function(){c.clientHeight&&s(c.scrollTop,"vertical")}),be(p,"scroll",function(){p.clientWidth&&s(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ro.prototype.update=function(r){var s=r.scrollWidth>r.clientWidth+1,u=r.scrollHeight>r.clientHeight+1,c=r.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?c+"px":"0";var p=r.viewHeight-(s?c:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?c+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(u?c:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?c:0,bottom:s?c:0}},Ro.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ro.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ro.prototype.zeroWidthHack=function(){var r=Y&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ke,this.disableVert=new ke},Ro.prototype.enableZeroWidthBar=function(r,s,u){r.style.visibility="";function c(){var p=r.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);m!=r?r.style.visibility="hidden":s.set(1e3,c)}s.set(1e3,c)},Ro.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var qs=function(){};qs.prototype.update=function(){return{bottom:0,right:0}},qs.prototype.setScrollLeft=function(){},qs.prototype.setScrollTop=function(){},qs.prototype.clear=function(){};function $i(r,s){s||(s=Ms(r));var u=r.display.barWidth,c=r.display.barHeight;Rm(r,s);for(var p=0;p<4&&u!=r.display.barWidth||c!=r.display.barHeight;p++)u!=r.display.barWidth&&r.options.lineWrapping&&_c(r),Rm(r,Ms(r)),u=r.display.barWidth,c=r.display.barHeight}function Rm(r,s){var u=r.display,c=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=c.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=c.bottom)+"px",u.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=c.bottom+"px",u.scrollbarFiller.style.width=c.right+"px"):u.scrollbarFiller.style.display="",c.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=c.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}var Mm={native:Ro,null:qs};function qm(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&_e(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new Mm[r.options.scrollbarStyle](function(s){r.display.wrapper.insertBefore(s,r.display.scrollbarFiller),be(s,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Lo(r,s):Rs(r,s)},r),r.display.scrollbars.addClass&&$e(r.display.wrapper,r.display.scrollbars.addClass)}var z2=0;function Mo(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++z2,markArrays:null},_2(r.curOp)}function qo(r){var s=r.curOp;s&&x2(s,function(u){for(var c=0;c<u.ops.length;c++)u.ops[c].cm.curOp=null;H2(u)})}function H2(r){for(var s=r.ops,u=0;u<s.length;u++)G2(s[u]);for(var c=0;c<s.length;c++)W2(s[c]);for(var p=0;p<s.length;p++)Q2(s[p]);for(var m=0;m<s.length;m++)Y2(s[m]);for(var b=0;b<s.length;b++)J2(s[b])}function G2(r){var s=r.cm,u=s.display;X2(s),r.updateMaxLine&&Ku(s),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<u.viewFrom||r.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,r.update=r.mustUpdate&&new wc(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function W2(r){r.updatedDisplay=r.mustUpdate&&yf(r.cm,r.update)}function Q2(r){var s=r.cm,u=s.display;r.updatedDisplay&&_c(s),r.barMeasure=Ms(s),u.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=ym(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+r.adjustWidthTo+pr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+r.adjustWidthTo-No(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=u.input.prepareSelection())}function Y2(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&Lo(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var u=r.focus&&r.focus==pe(fe(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,u),(r.updatedDisplay||r.startHeight!=s.doc.height)&&$i(s,r.barMeasure),r.updatedDisplay&&_f(s,r.barMeasure),r.selectionChanged&&df(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),u&&Om(r.cm)}function J2(r){var s=r.cm,u=s.display,c=s.doc;if(r.updatedDisplay&&Pm(s,r.update),u.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),r.scrollTop!=null&&Lm(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Lo(s,r.scrollLeft,!0,!0),r.scrollToPos){var p=V2(s,Oe(c,r.scrollToPos.from),Oe(c,r.scrollToPos.to),r.scrollToPos.margin);B2(s,p)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var _=0;_<m.length;++_)m[_].lines.length||it(m[_],"hide");if(b)for(var k=0;k<b.length;++k)b[k].lines.length&&it(b[k],"unhide");u.wrapper.offsetHeight&&(c.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&it(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function sn(r,s){if(r.curOp)return s();Mo(r);try{return s()}finally{qo(r)}}function Dt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Mo(r);try{return s.apply(r,arguments)}finally{qo(r)}}}function Gt(r){return function(){if(this.curOp)return r.apply(this,arguments);Mo(this);try{return r.apply(this,arguments)}finally{qo(this)}}}function Nt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Mo(s);try{return r.apply(this,arguments)}finally{qo(s)}}}function Ps(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ge(Z2,r))}function Z2(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var u=+new Date+r.options.workTime,c=Ss(r,s.highlightFrontier),p=[];s.iter(c.line,Math.min(s.first+s.size,r.display.viewTo+500),function(m){if(c.line>=r.display.viewFrom){var b=m.styles,_=m.text.length>r.options.maxHighlightLength?Dr(s.mode,c.state):null,k=Gh(r,m,c,!0);_&&(c.state=_),m.styles=k.styles;var w=m.styleClasses,I=k.classes;I?m.styleClasses=I:w&&(m.styleClasses=null);for(var M=!b||b.length!=m.styles.length||w!=I&&(!w||!I||w.bgClass!=I.bgClass||w.textClass!=I.textClass),W=0;!M&&W<b.length;++W)M=b[W]!=m.styles[W];M&&p.push(c.line),m.stateAfter=c.save(),c.nextLine()}else m.text.length<=r.options.maxHighlightLength&&Wu(r,m.text,c),m.stateAfter=c.line%5==0?c.save():null,c.nextLine();if(+new Date>u)return Ps(r,r.options.workDelay),!0}),s.highlightFrontier=c.line,s.modeFrontier=Math.max(s.modeFrontier,c.line),p.length&&sn(r,function(){for(var m=0;m<p.length;m++)no(r,p[m],"text")})}}var wc=function(r,s,u){var c=r.display;this.viewport=s,this.visible=kc(c,r.doc,s),this.editorIsHidden=!c.wrapper.offsetWidth,this.wrapperHeight=c.wrapper.clientHeight,this.wrapperWidth=c.wrapper.clientWidth,this.oldDisplayWidth=No(r),this.force=u,this.dims=lf(r),this.events=[]};wc.prototype.signal=function(r,s){zt(r,s)&&this.events.push(arguments)},wc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)it.apply(null,this.events[r])};function X2(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=pr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=pr(r)+"px",s.scrollbarsClipped=!0)}function K2(r){if(r.hasFocus())return null;var s=pe(fe(r));if(!s||!te(r.display.lineDiv,s))return null;var u={activeElt:s};if(window.getSelection){var c=de(r).getSelection();c.anchorNode&&c.extend&&te(r.display.lineDiv,c.anchorNode)&&(u.anchorNode=c.anchorNode,u.anchorOffset=c.anchorOffset,u.focusNode=c.focusNode,u.focusOffset=c.focusOffset)}return u}function ek(r){if(!(!r||!r.activeElt||r.activeElt==pe(r.activeElt.ownerDocument))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&te(document.body,r.anchorNode)&&te(document.body,r.focusNode))){var s=r.activeElt.ownerDocument,u=s.defaultView.getSelection(),c=s.createRange();c.setEnd(r.anchorNode,r.anchorOffset),c.collapse(!1),u.removeAllRanges(),u.addRange(c),u.extend(r.focusNode,r.focusOffset)}}function yf(r,s){var u=r.display,c=r.doc;if(s.editorIsHidden)return ro(r),!1;if(!s.force&&s.visible.from>=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Dm(r)==0)return!1;Vm(r)&&(ro(r),s.dims=lf(r));var p=c.first+c.size,m=Math.max(s.visible.from-r.options.viewportMargin,c.first),b=Math.min(p,s.visible.to+r.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(c.first,u.viewFrom)),u.viewTo>b&&u.viewTo-b<20&&(b=Math.min(p,u.viewTo)),Or&&(m=Zu(r.doc,m),b=sm(r.doc,b));var _=m!=u.viewFrom||b!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;q2(r,m,b),u.viewOffset=Ir(we(r.doc,u.viewFrom)),r.display.mover.style.top=u.viewOffset+"px";var k=Dm(r);if(!_&&k==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var w=K2(r);return k>4&&(u.lineDiv.style.display="none"),tk(r,u.updateLineNumbers,s.dims),k>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ek(w),H(u.cursorDiv),H(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,_&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,Ps(r,400)),u.updateLineNumbers=null,!0}function Pm(r,s){for(var u=s.viewport,c=!0;;c=!1){if(!c||!r.options.lineWrapping||s.oldDisplayWidth==No(r)){if(u&&u.top!=null&&(u={top:Math.min(r.doc.height+tf(r.display)-nf(r),u.top)}),s.visible=kc(r.display,r.doc,u),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else c&&(s.visible=kc(r.display,r.doc,u));if(!yf(r,s))break;_c(r);var p=Ms(r);Fs(r),$i(r,p),_f(r,p),s.force=!1}s.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(s.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function bf(r,s){var u=new wc(r,s);if(yf(r,u)){_c(r),Pm(r,u);var c=Ms(r);Fs(r),$i(r,c),_f(r,c),u.finish()}}function tk(r,s,u){var c=r.display,p=r.options.lineNumbers,m=c.lineDiv,b=m.firstChild;function _(ne){var ce=ne.nextSibling;return v&&Y&&r.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var k=c.view,w=c.viewFrom,I=0;I<k.length;I++){var M=k[I];if(!M.hidden)if(!M.node||M.node.parentNode!=m){var W=S2(r,M,w,u);m.insertBefore(W,b)}else{for(;b!=M.node;)b=_(b);var z=p&&s!=null&&s<=w&&M.lineNumber;M.changes&&(De(M.changes,"gutter")>-1&&(z=!1),fm(r,M,w,u)),z&&(H(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(q(r.options,w)))),b=M.node.nextSibling}w+=M.size}for(;b;)b=_(b)}function Ef(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Tt(r,"gutterChanged",r)}function _f(r,s){r.display.sizer.style.minHeight=s.docHeight+"px",r.display.heightForcer.style.top=s.docHeight+"px",r.display.gutters.style.height=s.docHeight+r.display.barHeight+pr(r)+"px"}function Bm(r){var s=r.display,u=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var c=uf(s)-s.scroller.scrollLeft+r.doc.scrollLeft,p=s.gutters.offsetWidth,m=c+"px",b=0;b<u.length;b++)if(!u[b].hidden){r.options.fixedGutter&&(u[b].gutter&&(u[b].gutter.style.left=m),u[b].gutterBackground&&(u[b].gutterBackground.style.left=m));var _=u[b].alignable;if(_)for(var k=0;k<_.length;k++)_[k].style.left=m}r.options.fixedGutter&&(s.gutters.style.left=c+p+"px")}}function Vm(r){if(!r.options.lineNumbers)return!1;var s=r.doc,u=q(r.options,s.first+s.size-1),c=r.display;if(u.length!=c.lineNumChars){var p=c.measure.appendChild(x("div",[x("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=p.firstChild.offsetWidth,b=p.offsetWidth-m;return c.lineGutter.style.width="",c.lineNumInnerWidth=Math.max(m,c.lineGutter.offsetWidth-b)+1,c.lineNumWidth=c.lineNumInnerWidth+b,c.lineNumChars=c.lineNumInnerWidth?u.length:-1,c.lineGutter.style.width=c.lineNumWidth+"px",Ef(r.display),!0}return!1}function kf(r,s){for(var u=[],c=!1,p=0;p<r.length;p++){var m=r[p],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(s)c=!0;else continue;u.push({className:m,style:b})}return s&&!c&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function jm(r){var s=r.gutters,u=r.gutterSpecs;H(s),r.lineGutter=null;for(var c=0;c<u.length;++c){var p=u[c],m=p.className,b=p.style,_=s.appendChild(x("div",null,"CodeMirror-gutter "+m));b&&(_.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=_,_.style.width=(r.lineNumWidth||1)+"px")}s.style.display=u.length?"":"none",Ef(r)}function Bs(r){jm(r.display),Jt(r),Bm(r)}function nk(r,s,u,c){var p=this;this.input=u,p.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=j("div",null,"CodeMirror-code"),p.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=x("div",null,"CodeMirror-cursors"),p.measure=x("div",null,"CodeMirror-measure"),p.lineMeasure=x("div",null,"CodeMirror-measure"),p.lineSpace=j("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var m=j("div",[p.lineSpace],"CodeMirror-lines");p.mover=x("div",[m],null,"position: relative"),p.sizer=x("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=x("div",null,null,"position: absolute; height: "+xn+"px; width: 1px;"),p.gutters=x("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=x("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=x("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),g&&E>=105&&(p.wrapper.style.clipPath="inset(0px)"),p.wrapper.setAttribute("translate","no"),d&&h<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!v&&!(i&&V)&&(p.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(p.wrapper):r(p.wrapper)),p.viewFrom=p.viewTo=s.first,p.reportedViewFrom=p.reportedViewTo=s.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=kf(c.gutters,c.lineNumbers),jm(p),u.init(p)}var $c=0,Lr=null;d?Lr=-.53:i?Lr=15:g?Lr=-.7:S&&(Lr=-1/3);function Um(r){var s=r.wheelDeltaX,u=r.wheelDeltaY;return s==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(s=r.detail),u==null&&r.detail&&r.axis==r.VERTICAL_AXIS?u=r.detail:u==null&&(u=r.wheelDelta),{x:s,y:u}}function rk(r){var s=Um(r);return s.x*=Lr,s.y*=Lr,s}function zm(r,s){g&&E==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var u=Um(s),c=u.x,p=u.y,m=Lr;s.deltaMode===0&&(c=s.deltaX,p=s.deltaY,m=1);var b=r.display,_=b.scroller,k=_.scrollWidth>_.clientWidth,w=_.scrollHeight>_.clientHeight;if(c&&k||p&&w){if(p&&Y&&v){e:for(var I=s.target,M=b.view;I!=_;I=I.parentNode)for(var W=0;W<M.length;W++)if(M[W].node==I){r.display.currentWheelTarget=I;break e}}if(c&&!i&&!C&&m!=null){p&&w&&Rs(r,Math.max(0,_.scrollTop+p*m)),Lo(r,Math.max(0,_.scrollLeft+c*m)),(!p||p&&w)&&Bt(s),b.wheelStartX=null;return}if(p&&m!=null){var z=p*m,ne=r.doc.scrollTop,ce=ne+b.wrapper.clientHeight;z<0?ne=Math.max(0,ne+z-50):ce=Math.min(r.doc.height,ce+z+50),bf(r,{top:ne,bottom:ce})}$c<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=_.scrollLeft,b.wheelStartY=_.scrollTop,b.wheelDX=c,b.wheelDY=p,setTimeout(function(){if(b.wheelStartX!=null){var ue=_.scrollLeft-b.wheelStartX,me=_.scrollTop-b.wheelStartY,Ee=me&&b.wheelDY&&me/b.wheelDY||ue&&b.wheelDX&&ue/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ee&&(Lr=(Lr*$c+Ee)/($c+1),++$c)}},200)):(b.wheelDX+=c,b.wheelDY+=p))}}var dn=function(r,s){this.ranges=r,this.primIndex=s};dn.prototype.primary=function(){return this.ranges[this.primIndex]},dn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var u=this.ranges[s],c=r.ranges[s];if(!Ne(u.anchor,c.anchor)||!Ne(u.head,c.head))return!1}return!0},dn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new Ye(je(this.ranges[s].anchor),je(this.ranges[s].head));return new dn(r,this.primIndex)},dn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},dn.prototype.contains=function(r,s){s||(s=r);for(var u=0;u<this.ranges.length;u++){var c=this.ranges[u];if(ee(s,c.from())>=0&&ee(r,c.to())<=0)return u}return-1};var Ye=function(r,s){this.anchor=r,this.head=s};Ye.prototype.from=function(){return $t(this.anchor,this.head)},Ye.prototype.to=function(){return We(this.anchor,this.head)},Ye.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zn(r,s,u){var c=r&&r.options.selectionsMayTouch,p=s[u];s.sort(function(W,z){return ee(W.from(),z.from())}),u=De(s,p);for(var m=1;m<s.length;m++){var b=s[m],_=s[m-1],k=ee(_.to(),b.from());if(c&&!b.empty()?k>0:k>=0){var w=$t(_.from(),b.from()),I=We(_.to(),b.to()),M=_.empty()?b.from()==b.head:_.from()==_.head;m<=u&&--u,s.splice(--m,2,new Ye(M?I:w,M?w:I))}}return new dn(s,u)}function oo(r,s){return new dn([new Ye(r,s||r)],0)}function io(r){return r.text?B(r.from.line+r.text.length-1,ze(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Hm(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return io(s);var u=r.line+s.text.length-(s.to.line-s.from.line)-1,c=r.ch;return r.line==s.to.line&&(c+=io(s).ch-s.to.ch),B(u,c)}function xf(r,s){for(var u=[],c=0;c<r.sel.ranges.length;c++){var p=r.sel.ranges[c];u.push(new Ye(Hm(p.anchor,s),Hm(p.head,s)))}return zn(r.cm,u,r.sel.primIndex)}function Gm(r,s,u){return r.line==s.line?B(u.line,r.ch-s.ch+u.ch):B(u.line+(r.line-s.line),r.ch)}function ok(r,s,u){for(var c=[],p=B(r.first,0),m=p,b=0;b<s.length;b++){var _=s[b],k=Gm(_.from,p,m),w=Gm(io(_),p,m);if(p=_.to,m=w,u=="around"){var I=r.sel.ranges[b],M=ee(I.head,I.anchor)<0;c[b]=new Ye(M?w:k,M?k:w)}else c[b]=new Ye(k,k)}return new dn(c,r.sel.primIndex)}function wf(r){r.doc.mode=Tr(r.options,r.doc.modeOption),Vs(r)}function Vs(r){r.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,Ps(r,100),r.state.modeGen++,r.curOp&&Jt(r)}function Wm(r,s){return s.from.ch==0&&s.to.ch==0&&ze(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function $f(r,s,u,c){function p(Ee){return u?u[Ee]:null}function m(Ee,ve,xe){p2(Ee,ve,xe,c),Tt(Ee,"change",Ee,s)}function b(Ee,ve){for(var xe=[],Se=Ee;Se<ve;++Se)xe.push(new yi(w[Se],p(Se),c));return xe}var _=s.from,k=s.to,w=s.text,I=we(r,_.line),M=we(r,k.line),W=ze(w),z=p(w.length-1),ne=k.line-_.line;if(s.full)r.insert(0,b(0,w.length)),r.remove(w.length,r.size-w.length);else if(Wm(r,s)){var ce=b(0,w.length-1);m(M,M.text,z),ne&&r.remove(_.line,ne),ce.length&&r.insert(_.line,ce)}else if(I==M)if(w.length==1)m(I,I.text.slice(0,_.ch)+W+I.text.slice(k.ch),z);else{var ue=b(1,w.length-1);ue.push(new yi(W+I.text.slice(k.ch),z,c)),m(I,I.text.slice(0,_.ch)+w[0],p(0)),r.insert(_.line+1,ue)}else if(w.length==1)m(I,I.text.slice(0,_.ch)+w[0]+M.text.slice(k.ch),p(0)),r.remove(_.line+1,ne);else{m(I,I.text.slice(0,_.ch)+w[0],p(0)),m(M,W+M.text.slice(k.ch),z);var me=b(1,w.length-1);ne>1&&r.remove(_.line+1,ne-1),r.insert(_.line+1,me)}Tt(r,"change",r,s)}function so(r,s,u){function c(p,m,b){if(p.linked)for(var _=0;_<p.linked.length;++_){var k=p.linked[_];if(k.doc!=m){var w=b&&k.sharedHist;u&&!w||(s(k.doc,w),c(k.doc,p,w))}}}c(r,null,!0)}function Qm(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,ff(r),wf(r),Ym(r),r.options.direction=s.direction,r.options.lineWrapping||Ku(r),r.options.mode=s.modeOption,Jt(r)}function Ym(r){(r.doc.direction=="rtl"?$e:_e)(r.display.lineDiv,"CodeMirror-rtl")}function ik(r){sn(r,function(){Ym(r),Jt(r)})}function Cc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Cf(r,s){var u={from:je(s.from),to:io(s),text:Nr(r,s.from,s.to)};return Xm(r,u,s.from.line,s.to.line+1),so(r,function(c){return Xm(c,u,s.from.line,s.to.line+1)},!0),u}function Jm(r){for(;r.length;){var s=ze(r);if(s.ranges)r.pop();else break}}function sk(r,s){if(s)return Jm(r.done),ze(r.done);if(r.done.length&&!ze(r.done).ranges)return ze(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ze(r.done)}function Zm(r,s,u,c){var p=r.history;p.undone.length=0;var m=+new Date,b,_;if((p.lastOp==c||p.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&p.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=sk(p,p.lastOp==c)))_=ze(b.changes),ee(s.from,s.to)==0&&ee(s.from,_.to)==0?_.to=io(s):b.changes.push(Cf(r,s));else{var k=ze(p.done);for((!k||!k.ranges)&&Ac(r.sel,p.done),b={changes:[Cf(r,s)],generation:p.generation},p.done.push(b);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(u),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=m,p.lastOp=p.lastSelOp=c,p.lastOrigin=p.lastSelOrigin=s.origin,_||it(r,"historyAdded")}function ak(r,s,u,c){var p=s.charAt(0);return p=="*"||p=="+"&&u.ranges.length==c.ranges.length&&u.somethingSelected()==c.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function ck(r,s,u,c){var p=r.history,m=c&&c.origin;u==p.lastSelOp||m&&p.lastSelOrigin==m&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==m||ak(r,m,ze(p.done),s))?p.done[p.done.length-1]=s:Ac(s,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=m,p.lastSelOp=u,c&&c.clearRedo!==!1&&Jm(p.undone)}function Ac(r,s){var u=ze(s);u&&u.ranges&&u.equals(r)||s.push(r)}function Xm(r,s,u,c){var p=s["spans_"+r.id],m=0;r.iter(Math.max(r.first,u),Math.min(r.first+r.size,c),function(b){b.markedSpans&&((p||(p=s["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function lk(r){if(!r)return null;for(var s,u=0;u<r.length;++u)r[u].marker.explicitlyCleared?s||(s=r.slice(0,u)):s&&s.push(r[u]);return s?s.length?s:null:r}function uk(r,s){var u=s["spans_"+r.id];if(!u)return null;for(var c=[],p=0;p<s.text.length;++p)c.push(lk(u[p]));return c}function Km(r,s){var u=uk(r,s),c=Yu(r,s);if(!u)return c;if(!c)return u;for(var p=0;p<u.length;++p){var m=u[p],b=c[p];if(m&&b)e:for(var _=0;_<b.length;++_){for(var k=b[_],w=0;w<m.length;++w)if(m[w].marker==k.marker)continue e;m.push(k)}else b&&(u[p]=b)}return u}function Ci(r,s,u){for(var c=[],p=0;p<r.length;++p){var m=r[p];if(m.ranges){c.push(u?dn.prototype.deepCopy.call(m):m);continue}var b=m.changes,_=[];c.push({changes:_});for(var k=0;k<b.length;++k){var w=b[k],I=void 0;if(_.push({from:w.from,to:w.to,text:w.text}),s)for(var M in w)(I=M.match(/^spans_(\d+)$/))&&De(s,Number(I[1]))>-1&&(ze(_)[M]=w[M],delete w[M])}}return c}function Af(r,s,u,c){if(c){var p=r.anchor;if(u){var m=ee(s,p)<0;m!=ee(u,p)<0?(p=s,s=u):m!=ee(s,u)<0&&(s=u)}return new Ye(p,s)}else return new Ye(u||s,s)}function Sc(r,s,u,c,p){p==null&&(p=r.cm&&(r.cm.display.shift||r.extend)),Vt(r,new dn([Af(r.sel.primary(),s,u,p)],0),c)}function ev(r,s,u){for(var c=[],p=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)c[m]=Af(r.sel.ranges[m],s[m],null,p);var b=zn(r.cm,c,r.sel.primIndex);Vt(r,b,u)}function Sf(r,s,u,c){var p=r.sel.ranges.slice(0);p[s]=u,Vt(r,zn(r.cm,p,r.sel.primIndex),c)}function tv(r,s,u,c){Vt(r,oo(s,u),c)}function fk(r,s,u){var c={ranges:s.ranges,update:function(p){this.ranges=[];for(var m=0;m<p.length;m++)this.ranges[m]=new Ye(Oe(r,p[m].anchor),Oe(r,p[m].head))},origin:u&&u.origin};return it(r,"beforeSelectionChange",r,c),r.cm&&it(r.cm,"beforeSelectionChange",r.cm,c),c.ranges!=s.ranges?zn(r.cm,c.ranges,c.ranges.length-1):s}function nv(r,s,u){var c=r.history.done,p=ze(c);p&&p.ranges?(c[c.length-1]=s,Tc(r,s,u)):Vt(r,s,u)}function Vt(r,s,u){Tc(r,s,u),ck(r,r.sel,r.cm?r.cm.curOp.id:NaN,u)}function Tc(r,s,u){(zt(r,"beforeSelectionChange")||r.cm&&zt(r.cm,"beforeSelectionChange"))&&(s=fk(r,s,u));var c=u&&u.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);rv(r,iv(r,s,c,!0)),!(u&&u.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&wi(r.cm)}function rv(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,oc(r.cm)),Tt(r,"cursorActivity",r))}function ov(r){rv(r,iv(r,r.sel,null,!1))}function iv(r,s,u,c){for(var p,m=0;m<s.ranges.length;m++){var b=s.ranges[m],_=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],k=Dc(r,b.anchor,_&&_.anchor,u,c),w=b.head==b.anchor?k:Dc(r,b.head,_&&_.head,u,c);(p||k!=b.anchor||w!=b.head)&&(p||(p=s.ranges.slice(0,m)),p[m]=new Ye(k,w))}return p?zn(r.cm,p,s.primIndex):s}function Ai(r,s,u,c,p){var m=we(r,s.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var _=m.markedSpans[b],k=_.marker,w="selectLeft"in k?!k.selectLeft:k.inclusiveLeft,I="selectRight"in k?!k.selectRight:k.inclusiveRight;if((_.from==null||(w?_.from<=s.ch:_.from<s.ch))&&(_.to==null||(I?_.to>=s.ch:_.to>s.ch))){if(p&&(it(k,"beforeCursorEnter"),k.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!k.atomic)continue;if(u){var M=k.find(c<0?1:-1),W=void 0;if((c<0?I:w)&&(M=sv(r,M,-c,M&&M.line==s.line?m:null)),M&&M.line==s.line&&(W=ee(M,u))&&(c<0?W<0:W>0))return Ai(r,M,s,c,p)}var z=k.find(c<0?-1:1);return(c<0?w:I)&&(z=sv(r,z,c,z.line==s.line?m:null)),z?Ai(r,z,s,c,p):null}}return s}function Dc(r,s,u,c,p){var m=c||1,b=Ai(r,s,u,m,p)||!p&&Ai(r,s,u,m,!0)||Ai(r,s,u,-m,p)||!p&&Ai(r,s,u,-m,!0);return b||(r.cantEdit=!0,B(r.first,0))}function sv(r,s,u,c){return u<0&&s.ch==0?s.line>r.first?Oe(r,B(s.line-1)):null:u>0&&s.ch==(c||we(r,s.line)).text.length?s.line<r.first+r.size-1?B(s.line+1,0):null:new B(s.line,s.ch+u)}function av(r){r.setSelection(B(r.firstLine(),0),B(r.lastLine()),Be)}function cv(r,s,u){var c={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return c.canceled=!0}};return u&&(c.update=function(p,m,b,_){p&&(c.from=Oe(r,p)),m&&(c.to=Oe(r,m)),b&&(c.text=b),_!==void 0&&(c.origin=_)}),it(r,"beforeChange",r,c),r.cm&&it(r.cm,"beforeChange",r.cm,c),c.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:c.from,to:c.to,text:c.text,origin:c.origin}}function Si(r,s,u){if(r.cm){if(!r.cm.curOp)return Dt(r.cm,Si)(r,s,u);if(r.cm.state.suppressEdits)return}if(!((zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"))&&(s=cv(r,s,!0),!s))){var c=Kh&&!u&&c2(r,s.from,s.to);if(c)for(var p=c.length-1;p>=0;--p)lv(r,{from:c[p].from,to:c[p].to,text:p?[""]:s.text,origin:s.origin});else lv(r,s)}}function lv(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var u=xf(r,s);Zm(r,s,u,r.cm?r.cm.curOp.id:NaN),js(r,s,u,Yu(r,s));var c=[];so(r,function(p,m){!m&&De(c,p.history)==-1&&(dv(p.history,s),c.push(p.history)),js(p,s,null,Yu(p,s))})}}function Nc(r,s,u){var c=r.cm&&r.cm.state.suppressEdits;if(!(c&&!u)){for(var p=r.history,m,b=r.sel,_=s=="undo"?p.done:p.undone,k=s=="undo"?p.undone:p.done,w=0;w<_.length&&(m=_[w],!(u?m.ranges&&!m.equals(r.sel):!m.ranges));w++);if(w!=_.length){for(p.lastOrigin=p.lastSelOrigin=null;;)if(m=_.pop(),m.ranges){if(Ac(m,k),u&&!m.equals(r.sel)){Vt(r,m,{clearRedo:!1});return}b=m}else if(c){_.push(m);return}else break;var I=[];Ac(b,k),k.push({changes:I,generation:p.generation}),p.generation=m.generation||++p.maxGeneration;for(var M=zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"),W=function(ce){var ue=m.changes[ce];if(ue.origin=s,M&&!cv(r,ue,!1))return _.length=0,{};I.push(Cf(r,ue));var me=ce?xf(r,ue):ze(_);js(r,ue,me,Km(r,ue)),!ce&&r.cm&&r.cm.scrollIntoView({from:ue.from,to:io(ue)});var Ee=[];so(r,function(ve,xe){!xe&&De(Ee,ve.history)==-1&&(dv(ve.history,ue),Ee.push(ve.history)),js(ve,ue,null,Km(ve,ue))})},z=m.changes.length-1;z>=0;--z){var ne=W(z);if(ne)return ne.v}}}}function uv(r,s){if(s!=0&&(r.first+=s,r.sel=new dn(pi(r.sel.ranges,function(p){return new Ye(B(p.anchor.line+s,p.anchor.ch),B(p.head.line+s,p.head.ch))}),r.sel.primIndex),r.cm)){Jt(r.cm,r.first,r.first-s,s);for(var u=r.cm.display,c=u.viewFrom;c<u.viewTo;c++)no(r.cm,c,"gutter")}}function js(r,s,u,c){if(r.cm&&!r.cm.curOp)return Dt(r.cm,js)(r,s,u,c);if(s.to.line<r.first){uv(r,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>r.lastLine())){if(s.from.line<r.first){var p=s.text.length-1-(r.first-s.from.line);uv(r,p),s={from:B(r.first,0),to:B(s.to.line+p,s.to.ch),text:[ze(s.text)],origin:s.origin}}var m=r.lastLine();s.to.line>m&&(s={from:s.from,to:B(m,we(r,m).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Nr(r,s.from,s.to),u||(u=xf(r,s)),r.cm?pk(r.cm,s,c):$f(r,s,c),Tc(r,u,Be),r.cantEdit&&Dc(r,B(r.firstLine(),0))&&(r.cantEdit=!1)}}function pk(r,s,u){var c=r.doc,p=r.display,m=s.from,b=s.to,_=!1,k=m.line;r.options.lineWrapping||(k=Qe(jn(we(c,m.line))),c.iter(k,b.line+1,function(z){if(z==p.maxLine)return _=!0,!0})),c.sel.contains(s.from,s.to)>-1&&oc(r),$f(c,s,u,Tm(r)),r.options.lineWrapping||(c.iter(k,m.line+s.text.length,function(z){var ne=hc(z);ne>p.maxLineLength&&(p.maxLine=z,p.maxLineLength=ne,p.maxLineChanged=!0,_=!1)}),_&&(r.curOp.updateMaxLine=!0)),t2(c,m.line),Ps(r,400);var w=s.text.length-(b.line-m.line)-1;s.full?Jt(r):m.line==b.line&&s.text.length==1&&!Wm(r.doc,s)?no(r,m.line,"text"):Jt(r,m.line,b.line+1,w);var I=zt(r,"changes"),M=zt(r,"change");if(M||I){var W={from:m,to:b,text:s.text,removed:s.removed,origin:s.origin};M&&Tt(r,"change",r,W),I&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(W)}r.display.selForContextMenu=null}function Ti(r,s,u,c,p){var m;c||(c=u),ee(c,u)<0&&(m=[c,u],u=m[0],c=m[1]),typeof s=="string"&&(s=r.splitLines(s)),Si(r,{from:u,to:c,text:s,origin:p})}function fv(r,s,u,c){u<r.line?r.line+=c:s<r.line&&(r.line=s,r.ch=0)}function pv(r,s,u,c){for(var p=0;p<r.length;++p){var m=r[p],b=!0;if(m.ranges){m.copied||(m=r[p]=m.deepCopy(),m.copied=!0);for(var _=0;_<m.ranges.length;_++)fv(m.ranges[_].anchor,s,u,c),fv(m.ranges[_].head,s,u,c);continue}for(var k=0;k<m.changes.length;++k){var w=m.changes[k];if(u<w.from.line)w.from=B(w.from.line+c,w.from.ch),w.to=B(w.to.line+c,w.to.ch);else if(s<=w.to.line){b=!1;break}}b||(r.splice(0,p+1),p=0)}}function dv(r,s){var u=s.from.line,c=s.to.line,p=s.text.length-(c-u)-1;pv(r.done,u,c,p),pv(r.undone,u,c,p)}function Us(r,s,u,c){var p=s,m=s;return typeof s=="number"?m=we(r,pn(r,s)):p=Qe(s),p==null?null:(c(m,p)&&r.cm&&no(r.cm,p,u),m)}function zs(r){this.lines=r,this.parent=null;for(var s=0,u=0;u<r.length;++u)r[u].parent=this,s+=r[u].height;this.height=s}zs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,s){for(var u=r,c=r+s;u<c;++u){var p=this.lines[u];this.height-=p.height,d2(p),Tt(p,"delete")}this.lines.splice(r,s)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,s,u){this.height+=u,this.lines=this.lines.slice(0,r).concat(s).concat(this.lines.slice(r));for(var c=0;c<s.length;++c)s[c].parent=this},iterN:function(r,s,u){for(var c=r+s;r<c;++r)if(u(this.lines[r]))return!0}};function Hs(r){this.children=r;for(var s=0,u=0,c=0;c<r.length;++c){var p=r[c];s+=p.chunkSize(),u+=p.height,p.parent=this}this.size=s,this.height=u,this.parent=null}Hs.prototype={chunkSize:function(){return this.size},removeInner:function(r,s){this.size-=s;for(var u=0;u<this.children.length;++u){var c=this.children[u],p=c.chunkSize();if(r<p){var m=Math.min(s,p-r),b=c.height;if(c.removeInner(r,m),this.height-=b-c.height,p==m&&(this.children.splice(u--,1),c.parent=null),(s-=m)==0)break;r=0}else r-=p}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof zs))){var _=[];this.collapse(_),this.children=[new zs(_)],this.children[0].parent=this}},collapse:function(r){for(var s=0;s<this.children.length;++s)this.children[s].collapse(r)},insertInner:function(r,s,u){this.size+=s.length,this.height+=u;for(var c=0;c<this.children.length;++c){var p=this.children[c],m=p.chunkSize();if(r<=m){if(p.insertInner(r,s,u),p.lines&&p.lines.length>50){for(var b=p.lines.length%25+25,_=b;_<p.lines.length;){var k=new zs(p.lines.slice(_,_+=25));p.height-=k.height,this.children.splice(++c,0,k),k.parent=this}p.lines=p.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),u=new Hs(s);if(r.parent){r.size-=u.size,r.height-=u.height;var p=De(r.parent.children,r);r.parent.children.splice(p+1,0,u)}else{var c=new Hs(r.children);c.parent=r,r.children=[c,u],r=c}u.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,s,u){for(var c=0;c<this.children.length;++c){var p=this.children[c],m=p.chunkSize();if(r<m){var b=Math.min(s,m-r);if(p.iterN(r,b,u))return!0;if((s-=b)==0)break;r=0}else r-=m}}};var Gs=function(r,s,u){if(u)for(var c in u)u.hasOwnProperty(c)&&(this[c]=u[c]);this.doc=r,this.node=s};Gs.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,u=this.line,c=Qe(u);if(!(c==null||!s)){for(var p=0;p<s.length;++p)s[p]==this&&s.splice(p--,1);s.length||(u.widgets=null);var m=Os(this);Sn(u,Math.max(0,u.height-m)),r&&(sn(r,function(){hv(r,u,-m),no(r,c,"widget")}),Tt(r,"lineWidgetCleared",r,this,c))}},Gs.prototype.changed=function(){var r=this,s=this.height,u=this.doc.cm,c=this.line;this.height=null;var p=Os(this)-s;p&&(to(this.doc,c)||Sn(c,c.height+p),u&&sn(u,function(){u.curOp.forceUpdate=!0,hv(u,c,p),Tt(u,"lineWidgetChanged",u,r,Qe(c))}))},Ht(Gs);function hv(r,s,u){Ir(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&gf(r,u)}function dk(r,s,u,c){var p=new Gs(r,u,c),m=r.cm;return m&&p.noHScroll&&(m.display.alignWidgets=!0),Us(r,s,"widget",function(b){var _=b.widgets||(b.widgets=[]);if(p.insertAt==null?_.push(p):_.splice(Math.min(_.length,Math.max(0,p.insertAt)),0,p),p.line=b,m&&!to(r,b)){var k=Ir(b)<r.scrollTop;Sn(b,b.height+Os(p)),k&&gf(m,p.height),m.curOp.forceUpdate=!0}return!0}),m&&Tt(m,"lineWidgetAdded",m,p,typeof s=="number"?s:Qe(s)),p}var mv=0,ao=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++mv};ao.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Mo(r),zt(this,"clear")){var u=this.find();u&&Tt(this,"clear",u.from,u.to)}for(var c=null,p=null,m=0;m<this.lines.length;++m){var b=this.lines[m],_=Ts(b.markedSpans,this);r&&!this.collapsed?no(r,Qe(b),"text"):r&&(_.to!=null&&(p=Qe(b)),_.from!=null&&(c=Qe(b))),b.markedSpans=o2(b.markedSpans,_),_.from==null&&this.collapsed&&!to(this.doc,b)&&r&&Sn(b,_i(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var k=0;k<this.lines.length;++k){var w=jn(this.lines[k]),I=hc(w);I>r.display.maxLineLength&&(r.display.maxLine=w,r.display.maxLineLength=I,r.display.maxLineChanged=!0)}c!=null&&r&&this.collapsed&&Jt(r,c,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&ov(r.doc)),r&&Tt(r,"markerCleared",r,this,c,p),s&&qo(r),this.parent&&this.parent.clear()}},ao.prototype.find=function(r,s){r==null&&this.type=="bookmark"&&(r=1);for(var u,c,p=0;p<this.lines.length;++p){var m=this.lines[p],b=Ts(m.markedSpans,this);if(b.from!=null&&(u=B(s?m:Qe(m),b.from),r==-1))return u;if(b.to!=null&&(c=B(s?m:Qe(m),b.to),r==1))return c}return u&&{from:u,to:c}},ao.prototype.changed=function(){var r=this,s=this.find(-1,!0),u=this,c=this.doc.cm;!s||!c||sn(c,function(){var p=s.line,m=Qe(s.line),b=rf(c,m);if(b&&(_m(b),c.curOp.selectionChanged=c.curOp.forceUpdate=!0),c.curOp.updateMaxLine=!0,!to(u.doc,p)&&u.height!=null){var _=u.height;u.height=null;var k=Os(u)-_;k&&Sn(p,p.height+k)}Tt(c,"markerChanged",c,r)})},ao.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||De(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},ao.prototype.detachLine=function(r){if(this.lines.splice(De(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Ht(ao);function Di(r,s,u,c,p){if(c&&c.shared)return hk(r,s,u,c,p);if(r.cm&&!r.cm.curOp)return Dt(r.cm,Di)(r,s,u,c,p);var m=new ao(r,p),b=ee(s,u);if(c&&ye(c,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=j("span",[m.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(im(r,s.line,s,u,m)||s.line!=u.line&&im(r,u.line,s,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");r2()}m.addToHistory&&Zm(r,{from:s,to:u,origin:"markText"},r.sel,NaN);var _=s.line,k=r.cm,w;if(r.iter(_,u.line+1,function(M){k&&m.collapsed&&!k.options.lineWrapping&&jn(M)==k.display.maxLine&&(w=!0),m.collapsed&&_!=s.line&&Sn(M,0),i2(M,new uc(m,_==s.line?s.ch:null,_==u.line?u.ch:null),r.cm&&r.cm.curOp),++_}),m.collapsed&&r.iter(s.line,u.line+1,function(M){to(r,M)&&Sn(M,0)}),m.clearOnEnter&&be(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(n2(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++mv,m.atomic=!0),k){if(w&&(k.curOp.updateMaxLine=!0),m.collapsed)Jt(k,s.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var I=s.line;I<=u.line;I++)no(k,I,"text");m.atomic&&ov(k.doc),Tt(k,"markerAdded",k,m)}return m}var Ws=function(r,s){this.markers=r,this.primary=s;for(var u=0;u<r.length;++u)r[u].parent=this};Ws.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Tt(this,"clear")}},Ws.prototype.find=function(r,s){return this.primary.find(r,s)},Ht(Ws);function hk(r,s,u,c,p){c=ye(c),c.shared=!1;var m=[Di(r,s,u,c,p)],b=m[0],_=c.widgetNode;return so(r,function(k){_&&(c.widgetNode=_.cloneNode(!0)),m.push(Di(k,Oe(k,s),Oe(k,u),c,p));for(var w=0;w<k.linked.length;++w)if(k.linked[w].isParent)return;b=ze(m)}),new Ws(m,b)}function vv(r){return r.findMarks(B(r.first,0),r.clipPos(B(r.lastLine())),function(s){return s.parent})}function mk(r,s){for(var u=0;u<s.length;u++){var c=s[u],p=c.find(),m=r.clipPos(p.from),b=r.clipPos(p.to);if(ee(m,b)){var _=Di(r,m,b,c.primary,c.primary.type);c.markers.push(_),_.parent=c}}}function vk(r){for(var s=function(c){var p=r[c],m=[p.primary.doc];so(p.primary.doc,function(k){return m.push(k)});for(var b=0;b<p.markers.length;b++){var _=p.markers[b];De(m,_.doc)==-1&&(_.parent=null,p.markers.splice(b--,1))}},u=0;u<r.length;u++)s(u)}var gk=0,Zt=function(r,s,u,c,p){if(!(this instanceof Zt))return new Zt(r,s,u,c,p);u==null&&(u=0),Hs.call(this,[new zs([new yi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=B(u,0);this.sel=oo(m),this.history=new Cc(null),this.id=++gk,this.modeOption=s,this.lineSep=c,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),$f(this,{from:m,to:m,text:r}),Vt(this,oo(m),Be)};Zt.prototype=tc(Hs.prototype,{constructor:Zt,iter:function(r,s,u){u?this.iterN(r-this.first,s-r,u):this.iterN(this.first,this.first+this.size,r)},insert:function(r,s){for(var u=0,c=0;c<s.length;++c)u+=s[c].height;this.insertInner(r-this.first,s,u)},remove:function(r,s){this.removeInner(r-this.first,s)},getValue:function(r){var s=gi(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Nt(function(r){var s=B(this.first,0),u=this.first+this.size-1;Si(this,{from:s,to:B(u,we(this,u).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Ls(this.cm,0,0),Vt(this,oo(s),Be)}),replaceRange:function(r,s,u,c){s=Oe(this,s),u=u?Oe(this,u):s,Ti(this,r,s,u,c)},getRange:function(r,s,u){var c=Nr(this,Oe(this,r),Oe(this,s));return u===!1?c:u===""?c.join(""):c.join(u||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(A(this,r))return we(this,r)},getLineNumber:function(r){return Qe(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=we(this,r)),jn(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Oe(this,r)},getCursor:function(r){var s=this.sel.primary(),u;return r==null||r=="head"?u=s.head:r=="anchor"?u=s.anchor:r=="end"||r=="to"||r===!1?u=s.to():u=s.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Nt(function(r,s,u){tv(this,Oe(this,typeof r=="number"?B(r,s||0):r),null,u)}),setSelection:Nt(function(r,s,u){tv(this,Oe(this,r),Oe(this,s||r),u)}),extendSelection:Nt(function(r,s,u){Sc(this,Oe(this,r),s&&Oe(this,s),u)}),extendSelections:Nt(function(r,s){ev(this,Hh(this,r),s)}),extendSelectionsBy:Nt(function(r,s){var u=pi(this.sel.ranges,r);ev(this,Hh(this,u),s)}),setSelections:Nt(function(r,s,u){if(r.length){for(var c=[],p=0;p<r.length;p++)c[p]=new Ye(Oe(this,r[p].anchor),Oe(this,r[p].head||r[p].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),Vt(this,zn(this.cm,c,s),u)}}),addSelection:Nt(function(r,s,u){var c=this.sel.ranges.slice(0);c.push(new Ye(Oe(this,r),Oe(this,s||r))),Vt(this,zn(this.cm,c,c.length-1),u)}),getSelection:function(r){for(var s=this.sel.ranges,u,c=0;c<s.length;c++){var p=Nr(this,s[c].from(),s[c].to());u=u?u.concat(p):p}return r===!1?u:u.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],u=this.sel.ranges,c=0;c<u.length;c++){var p=Nr(this,u[c].from(),u[c].to());r!==!1&&(p=p.join(r||this.lineSeparator())),s[c]=p}return s},replaceSelection:function(r,s,u){for(var c=[],p=0;p<this.sel.ranges.length;p++)c[p]=r;this.replaceSelections(c,s,u||"+input")},replaceSelections:Nt(function(r,s,u){for(var c=[],p=this.sel,m=0;m<p.ranges.length;m++){var b=p.ranges[m];c[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:u}}for(var _=s&&s!="end"&&ok(this,c,s),k=c.length-1;k>=0;k--)Si(this,c[k]);_?nv(this,_):this.cm&&wi(this.cm)}),undo:Nt(function(){Nc(this,"undo")}),redo:Nt(function(){Nc(this,"redo")}),undoSelection:Nt(function(){Nc(this,"undo",!0)}),redoSelection:Nt(function(){Nc(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,s=0,u=0,c=0;c<r.done.length;c++)r.done[c].ranges||++s;for(var p=0;p<r.undone.length;p++)r.undone[p].ranges||++u;return{undo:s,redo:u}},clearHistory:function(){var r=this;this.history=new Cc(this.history),so(this,function(s){return s.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(r){var s=this.history=new Cc(this.history);s.done=Ci(r.done.slice(0),null,!0),s.undone=Ci(r.undone.slice(0),null,!0)},setGutterMarker:Nt(function(r,s,u){return Us(this,r,"gutter",function(c){var p=c.gutterMarkers||(c.gutterMarkers={});return p[s]=u,!u&&nc(p)&&(c.gutterMarkers=null),!0})}),clearGutter:Nt(function(r){var s=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[r]&&Us(s,u,"gutter",function(){return u.gutterMarkers[r]=null,nc(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(r){var s;if(typeof r=="number"){if(!A(this,r)||(s=r,r=we(this,r),!r))return null}else if(s=Qe(r),s==null)return null;return{line:s,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Nt(function(r,s,u){return Us(this,r,s=="gutter"?"gutter":"class",function(c){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!c[p])c[p]=u;else{if(re(u).test(c[p]))return!1;c[p]+=" "+u}return!0})}),removeLineClass:Nt(function(r,s,u){return Us(this,r,s=="gutter"?"gutter":"class",function(c){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",m=c[p];if(m)if(u==null)c[p]=null;else{var b=m.match(re(u));if(!b)return!1;var _=b.index+b[0].length;c[p]=m.slice(0,b.index)+(!b.index||_==m.length?"":" ")+m.slice(_)||null}else return!1;return!0})}),addLineWidget:Nt(function(r,s,u){return dk(this,r,s,u)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,u){return Di(this,Oe(this,r),Oe(this,s),u,u&&u.type||"range")},setBookmark:function(r,s){var u={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return r=Oe(this,r),Di(this,r,r,u,"bookmark")},findMarksAt:function(r){r=Oe(this,r);var s=[],u=we(this,r.line).markedSpans;if(u)for(var c=0;c<u.length;++c){var p=u[c];(p.from==null||p.from<=r.ch)&&(p.to==null||p.to>=r.ch)&&s.push(p.marker.parent||p.marker)}return s},findMarks:function(r,s,u){r=Oe(this,r),s=Oe(this,s);var c=[],p=r.line;return this.iter(r.line,s.line+1,function(m){var b=m.markedSpans;if(b)for(var _=0;_<b.length;_++){var k=b[_];!(k.to!=null&&p==r.line&&r.ch>=k.to||k.from==null&&p!=r.line||k.from!=null&&p==s.line&&k.from>=s.ch)&&(!u||u(k.marker))&&c.push(k.marker.parent||k.marker)}++p}),c},getAllMarks:function(){var r=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var c=0;c<u.length;++c)u[c].from!=null&&r.push(u[c].marker)}),r},posFromIndex:function(r){var s,u=this.first,c=this.lineSeparator().length;return this.iter(function(p){var m=p.text.length+c;if(m>r)return s=r,!0;r-=m,++u}),Oe(this,B(u,s))},indexFromPos:function(r){r=Oe(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,r.line,function(c){s+=c.text.length+u}),s},copy:function(r){var s=new Zt(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,r&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(r){r||(r={});var s=this.first,u=this.first+this.size;r.from!=null&&r.from>s&&(s=r.from),r.to!=null&&r.to<u&&(u=r.to);var c=new Zt(gi(this,s,u),r.mode||this.modeOption,s,this.lineSep,this.direction);return r.sharedHist&&(c.history=this.history),(this.linked||(this.linked=[])).push({doc:c,sharedHist:r.sharedHist}),c.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],mk(c,vv(this)),c},unlinkDoc:function(r){if(r instanceof ct&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var u=this.linked[s];if(u.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),vk(vv(this));break}}if(r.history==this.history){var c=[r.id];so(r,function(p){return c.push(p.id)},!0),r.history=new Cc(null),r.history.done=Ci(this.history.done,c),r.history.undone=Ci(this.history.undone,c)}},iterLinkedDocs:function(r){so(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):Cs(r)},lineSeparator:function(){return this.lineSep||`
297
+ `},setDirection:Nt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&ik(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var gv=0;function yk(r){var s=this;if(yv(s),!(pt(s,r)||Fr(s.display,r))){Bt(r),d&&(gv=+new Date);var u=Io(s,r,!0),c=r.dataTransfer.files;if(!(!u||s.isReadOnly()))if(c&&c.length&&window.FileReader&&window.File)for(var p=c.length,m=Array(p),b=0,_=function(){++b==p&&Dt(s,function(){u=Oe(s.doc,u);var z={from:u,to:u,text:s.doc.splitLines(m.filter(function(ne){return ne!=null}).join(s.doc.lineSeparator())),origin:"paste"};Si(s.doc,z),nv(s.doc,oo(Oe(s.doc,u),Oe(s.doc,io(z))))})()},k=function(z,ne){if(s.options.allowDropFileTypes&&De(s.options.allowDropFileTypes,z.type)==-1){_();return}var ce=new FileReader;ce.onerror=function(){return _()},ce.onload=function(){var ue=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){_();return}m[ne]=ue,_()},ce.readAsText(z)},w=0;w<c.length;w++)k(c[w],w);else{if(s.state.draggingText&&s.doc.sel.contains(u)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var I=r.dataTransfer.getData("Text");if(I){var M;if(s.state.draggingText&&!s.state.draggingText.copy&&(M=s.listSelections()),Tc(s.doc,oo(u,u)),M)for(var W=0;W<M.length;++W)Ti(s.doc,"",M[W].anchor,M[W].head,"drag");s.replaceSelection(I,"around","paste"),s.display.input.focus()}}catch{}}}}function bk(r,s){if(d&&(!r.state.draggingText||+new Date-gv<100)){Sr(s);return}if(!(pt(r,s)||Fr(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!S)){var u=x("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(u.width=u.height=1,r.display.wrapper.appendChild(u),u._top=u.offsetTop),s.dataTransfer.setDragImage(u,0,0),C&&u.parentNode.removeChild(u)}}function Ek(r,s){var u=Io(r,s);if(u){var c=document.createDocumentFragment();pf(r,u,c),r.display.dragCursor||(r.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),L(r.display.dragCursor,c)}}function yv(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function bv(r){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),u=[],c=0;c<s.length;c++){var p=s[c].CodeMirror;p&&u.push(p)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)r(u[m])})}}var Ev=!1;function _k(){Ev||(kk(),Ev=!0)}function kk(){var r;be(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,bv(xk)},100))}),be(window,"blur",function(){return bv(xi)})}function xk(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var co={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Qs=0;Qs<10;Qs++)co[Qs+48]=co[Qs+96]=String(Qs);for(var Oc=65;Oc<=90;Oc++)co[Oc]=String.fromCharCode(Oc);for(var Ys=1;Ys<=12;Ys++)co[Ys+111]=co[Ys+63235]="F"+Ys;var Rr={};Rr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rr.default=Y?Rr.macDefault:Rr.pcDefault;function wk(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var u,c,p,m,b=0;b<s.length-1;b++){var _=s[b];if(/^(cmd|meta|m)$/i.test(_))m=!0;else if(/^a(lt)?$/i.test(_))u=!0;else if(/^(c|ctrl|control)$/i.test(_))c=!0;else if(/^s(hift)?$/i.test(_))p=!0;else throw new Error("Unrecognized modifier name: "+_)}return u&&(r="Alt-"+r),c&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),p&&(r="Shift-"+r),r}function $k(r){var s={};for(var u in r)if(r.hasOwnProperty(u)){var c=r[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(c=="..."){delete r[u];continue}for(var p=pi(u.split(" "),wk),m=0;m<p.length;m++){var b=void 0,_=void 0;m==p.length-1?(_=p.join(" "),b=c):(_=p.slice(0,m+1).join(" "),b="...");var k=s[_];if(!k)s[_]=b;else if(k!=b)throw new Error("Inconsistent bindings for "+_)}delete r[u]}for(var w in s)r[w]=s[w];return r}function Ni(r,s,u,c){s=Ic(s);var p=s.call?s.call(r,c):s[r];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&u(p))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Ni(r,s.fallthrough,u,c);for(var m=0;m<s.fallthrough.length;m++){var b=Ni(r,s.fallthrough[m],u,c);if(b)return b}}}function _v(r){var s=typeof r=="string"?r:co[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function kv(r,s,u){var c=r;return s.altKey&&c!="Alt"&&(r="Alt-"+r),(G?s.metaKey:s.ctrlKey)&&c!="Ctrl"&&(r="Ctrl-"+r),(G?s.ctrlKey:s.metaKey)&&c!="Mod"&&(r="Cmd-"+r),!u&&s.shiftKey&&c!="Shift"&&(r="Shift-"+r),r}function xv(r,s){if(C&&r.keyCode==34&&r.char)return!1;var u=co[r.keyCode];return u==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(u=r.code),kv(u,r,s))}function Ic(r){return typeof r=="string"?Rr[r]:r}function Oi(r,s){for(var u=r.doc.sel.ranges,c=[],p=0;p<u.length;p++){for(var m=s(u[p]);c.length&&ee(m.from,ze(c).to)<=0;){var b=c.pop();if(ee(b.from,m.from)<0){m.from=b.from;break}}c.push(m)}sn(r,function(){for(var _=c.length-1;_>=0;_--)Ti(r.doc,"",c[_].from,c[_].to,"+delete");wi(r)})}function Tf(r,s,u){var c=sr(r.text,s+u,u);return c<0||c>r.text.length?null:c}function Df(r,s,u){var c=Tf(r,s.ch,u);return c==null?null:new B(s.line,c,u<0?"after":"before")}function Nf(r,s,u,c,p){if(r){s.doc.direction=="rtl"&&(p=-p);var m=Cn(u,s.doc.direction);if(m){var b=p<0?ze(m):m[0],_=p<0==(b.level==1),k=_?"after":"before",w;if(b.level>0||s.doc.direction=="rtl"){var I=Ei(s,u);w=p<0?u.text.length-1:0;var M=dr(s,I,w).top;w=ft(function(W){return dr(s,I,W).top==M},p<0==(b.level==1)?b.from:b.to-1,w),k=="before"&&(w=Tf(u,w,1))}else w=p<0?b.to:b.from;return new B(c,w,k)}}return new B(c,p<0?u.text.length:0,p<0?"before":"after")}function Ck(r,s,u,c){var p=Cn(s,r.doc.direction);if(!p)return Df(s,u,c);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=$n(p,u.ch,u.sticky),b=p[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(c>0?b.to>u.ch:b.from<u.ch))return Df(s,u,c);var _=function(me,Ee){return Tf(s,me instanceof B?me.ch:me,Ee)},k,w=function(me){return r.options.lineWrapping?(k=k||Ei(r,s),Sm(r,s,k,me)):{begin:0,end:s.text.length}},I=w(u.sticky=="before"?_(u,-1):u.ch);if(r.doc.direction=="rtl"||b.level==1){var M=b.level==1==c<0,W=_(u,M?1:-1);if(W!=null&&(M?W<=b.to&&W<=I.end:W>=b.from&&W>=I.begin)){var z=M?"before":"after";return new B(u.line,W,z)}}var ne=function(me,Ee,ve){for(var xe=function(rt,Ot){return Ot?new B(u.line,_(rt,1),"before"):new B(u.line,rt,"after")};me>=0&&me<p.length;me+=Ee){var Se=p[me],Ae=Ee>0==(Se.level!=1),Re=Ae?ve.begin:_(ve.end,-1);if(Se.from<=Re&&Re<Se.to||(Re=Ae?Se.from:_(Se.to,-1),ve.begin<=Re&&Re<ve.end))return xe(Re,Ae)}},ce=ne(m+c,c,I);if(ce)return ce;var ue=c>0?I.end:_(I.begin,-1);return ue!=null&&!(c>0&&ue==s.text.length)&&(ce=ne(c>0?0:p.length-1,c,w(ue)),ce)?ce:null}var Js={selectAll:av,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Be)},killLine:function(r){return Oi(r,function(s){if(s.empty()){var u=we(r.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line<r.lastLine()?{from:s.head,to:B(s.head.line+1,0)}:{from:s.head,to:B(s.head.line,u)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:Oe(r.doc,B(s.to().line+1,0))}})},delLineLeft:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,c=r.coordsChar({left:0,top:u},"div");return{from:c,to:s.from()}})},delWrappedLineRight:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,c=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div");return{from:s.from(),to:c}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(B(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(B(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return wv(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return $v(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return Ak(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div")},Jr)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:u},"div")},Jr)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5,c=r.coordsChar({left:0,top:u},"div");return c.ch<r.getLine(c.line).search(/\S/)?$v(r,s.head):c},Jr)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],u=r.listSelections(),c=r.options.tabSize,p=0;p<u.length;p++){var m=u[p].from(),b=he(r.getLine(m.line),m.ch,c);s.push(ir(c-b%c))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return sn(r,function(){for(var s=r.listSelections(),u=[],c=0;c<s.length;c++)if(s[c].empty()){var p=s[c].head,m=we(r.doc,p.line).text;if(m){if(p.ch==m.length&&(p=new B(p.line,p.ch-1)),p.ch>0)p=new B(p.line,p.ch+1),r.replaceRange(m.charAt(p.ch-1)+m.charAt(p.ch-2),B(p.line,p.ch-2),p,"+transpose");else if(p.line>r.doc.first){var b=we(r.doc,p.line-1).text;b&&(p=new B(p.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),B(p.line-1,b.length-1),p,"+transpose"))}}u.push(new Ye(p,p))}r.setSelections(u)})},newlineAndIndent:function(r){return sn(r,function(){for(var s=r.listSelections(),u=s.length-1;u>=0;u--)r.replaceRange(r.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=r.listSelections();for(var c=0;c<s.length;c++)r.indentLine(s[c].from().line,null,!0);wi(r)})},openLine:function(r){return r.replaceSelection(`
298
+ `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function wv(r,s){var u=we(r.doc,s),c=jn(u);return c!=u&&(s=Qe(c)),Nf(!0,r,c,s,1)}function Ak(r,s){var u=we(r.doc,s),c=u2(u);return c!=u&&(s=Qe(c)),Nf(!0,r,u,s,-1)}function $v(r,s){var u=wv(r,s.line),c=we(r.doc,u.line),p=Cn(c,r.doc.direction);if(!p||p[0].level==0){var m=Math.max(u.ch,c.text.search(/\S/)),b=s.line==u.line&&s.ch<=m&&s.ch;return B(u.line,b?0:m,u.sticky)}return u}function Fc(r,s,u){if(typeof s=="string"&&(s=Js[s],!s))return!1;r.display.input.ensurePolled();var c=r.display.shift,p=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),u&&(r.display.shift=!1),p=s(r)!=Ve}finally{r.display.shift=c,r.state.suppressEdits=!1}return p}function Sk(r,s,u){for(var c=0;c<r.state.keyMaps.length;c++){var p=Ni(s,r.state.keyMaps[c],u,r);if(p)return p}return r.options.extraKeys&&Ni(s,r.options.extraKeys,u,r)||Ni(s,r.options.keyMap,u,r)}var Tk=new ke;function Zs(r,s,u,c){var p=r.state.keySeq;if(p){if(_v(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:Tk.set(50,function(){r.state.keySeq==p&&(r.state.keySeq=null,r.display.input.reset())}),Cv(r,p+" "+s,u,c))return!0}return Cv(r,s,u,c)}function Cv(r,s,u,c){var p=Sk(r,s,c);return p=="multi"&&(r.state.keySeq=s),p=="handled"&&Tt(r,"keyHandled",r,s,u),(p=="handled"||p=="multi")&&(Bt(u),df(r)),!!p}function Av(r,s){var u=xv(s,!0);return u?s.shiftKey&&!r.state.keySeq?Zs(r,"Shift-"+u,s,function(c){return Fc(r,c,!0)})||Zs(r,u,s,function(c){if(typeof c=="string"?/^go[A-Z]/.test(c):c.motion)return Fc(r,c)}):Zs(r,u,s,function(c){return Fc(r,c)}):!1}function Dk(r,s,u){return Zs(r,"'"+u+"'",s,function(c){return Fc(r,c,!0)})}var Of=null;function Sv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=pe(fe(s)),!pt(s,r))){d&&h<11&&r.keyCode==27&&(r.returnValue=!1);var u=r.keyCode;s.display.shift=u==16||r.shiftKey;var c=Av(s,r);C&&(Of=c?u:null,!c&&u==88&&!cr&&(Y?r.metaKey:r.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!Y&&!c&&u==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&Nk(s)}}function Nk(r){var s=r.display.lineDiv;$e(s,"CodeMirror-crosshair");function u(c){(c.keyCode==18||!c.altKey)&&(_e(s,"CodeMirror-crosshair"),Pt(document,"keyup",u),Pt(document,"mouseover",u))}be(document,"keyup",u),be(document,"mouseover",u)}function Tv(r){r.keyCode==16&&(this.doc.sel.shift=!1),pt(this,r)}function Dv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(Fr(s.display,r)||pt(s,r)||r.ctrlKey&&!r.altKey||Y&&r.metaKey)){var u=r.keyCode,c=r.charCode;if(C&&u==Of){Of=null,Bt(r);return}if(!(C&&(!r.which||r.which<10)&&Av(s,r))){var p=String.fromCharCode(c??u);p!="\b"&&(Dk(s,r,p)||s.display.input.onKeyPress(r))}}}var Ok=400,If=function(r,s,u){this.time=r,this.pos=s,this.button=u};If.prototype.compare=function(r,s,u){return this.time+Ok>r&&ee(s,this.pos)==0&&u==this.button};var Xs,Ks;function Ik(r,s){var u=+new Date;return Ks&&Ks.compare(u,r,s)?(Xs=Ks=null,"triple"):Xs&&Xs.compare(u,r,s)?(Ks=new If(u,r,s),Xs=null,"double"):(Xs=new If(u,r,s),Ks=null,"single")}function Nv(r){var s=this,u=s.display;if(!(pt(s,r)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=r.shiftKey,Fr(u,r)){v||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ff(s,r)){var c=Io(s,r),p=$s(r),m=c?Ik(c,p):"single";de(s).focus(),p==1&&s.state.selectingText&&s.state.selectingText(r),!(c&&Fk(s,p,c,m,r))&&(p==1?c?Rk(s,c,m,r):Yt(r)==u.scroller&&Bt(r):p==2?(c&&Sc(s.doc,c),setTimeout(function(){return u.input.focus()},20)):p==3&&(Q?s.display.input.onContextMenu(r):hf(s)))}}}function Fk(r,s,u,c,p){var m="Click";return c=="double"?m="Double"+m:c=="triple"&&(m="Triple"+m),m=(s==1?"Left":s==2?"Middle":"Right")+m,Zs(r,kv(m,p),p,function(b){if(typeof b=="string"&&(b=Js[b]),!b)return!1;var _=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),_=b(r,u)!=Ve}finally{r.state.suppressEdits=!1}return _})}function Lk(r,s,u){var c=r.getOption("configureMouse"),p=c?c(r,s,u):{};if(p.unit==null){var m=P?u.shiftKey&&u.metaKey:u.altKey;p.unit=m?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(p.extend==null||r.doc.extend)&&(p.extend=r.doc.extend||u.shiftKey),p.addNew==null&&(p.addNew=Y?u.metaKey:u.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(Y?u.altKey:u.ctrlKey)),p}function Rk(r,s,u,c){d?setTimeout(ge(Om,r),0):r.curOp.focus=pe(fe(r));var p=Lk(r,u,c),m=r.doc.sel,b;r.options.dragDrop&&Hu&&!r.isReadOnly()&&u=="single"&&(b=m.contains(s))>-1&&(ee((b=m.ranges[b]).from(),s)<0||s.xRel>0)&&(ee(b.to(),s)>0||s.xRel<0)?Mk(r,c,s,p):qk(r,c,s,p)}function Mk(r,s,u,c){var p=r.display,m=!1,b=Dt(r,function(w){v&&(p.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:hf(r)),Pt(p.wrapper.ownerDocument,"mouseup",b),Pt(p.wrapper.ownerDocument,"mousemove",_),Pt(p.scroller,"dragstart",k),Pt(p.scroller,"drop",b),m||(Bt(w),c.addNew||Sc(r.doc,u,null,null,c.extend),v&&!S||d&&h==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),_=function(w){m=m||Math.abs(s.clientX-w.clientX)+Math.abs(s.clientY-w.clientY)>=10},k=function(){return m=!0};v&&(p.scroller.draggable=!0),r.state.draggingText=b,b.copy=!c.moveOnDrag,be(p.wrapper.ownerDocument,"mouseup",b),be(p.wrapper.ownerDocument,"mousemove",_),be(p.scroller,"dragstart",k),be(p.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function Ov(r,s,u){if(u=="char")return new Ye(s,s);if(u=="word")return r.findWordAt(s);if(u=="line")return new Ye(B(s.line,0),Oe(r.doc,B(s.line+1,0)));var c=u(r,s);return new Ye(c.from,c.to)}function qk(r,s,u,c){d&&hf(r);var p=r.display,m=r.doc;Bt(s);var b,_,k=m.sel,w=k.ranges;if(c.addNew&&!c.extend?(_=m.sel.contains(u),_>-1?b=w[_]:b=new Ye(u,u)):(b=m.sel.primary(),_=m.sel.primIndex),c.unit=="rectangle")c.addNew||(b=new Ye(u,u)),u=Io(r,s,!0,!0),_=-1;else{var I=Ov(r,u,c.unit);c.extend?b=Af(b,I.anchor,I.head,c.extend):b=I}c.addNew?_==-1?(_=w.length,Vt(m,zn(r,w.concat([b]),_),{scroll:!1,origin:"*mouse"})):w.length>1&&w[_].empty()&&c.unit=="char"&&!c.extend?(Vt(m,zn(r,w.slice(0,_).concat(w.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),k=m.sel):Sf(m,_,b,So):(_=0,Vt(m,new dn([b],0),So),k=m.sel);var M=u;function W(ve){if(ee(M,ve)!=0)if(M=ve,c.unit=="rectangle"){for(var xe=[],Se=r.options.tabSize,Ae=he(we(m,u.line).text,u.ch,Se),Re=he(we(m,ve.line).text,ve.ch,Se),rt=Math.min(Ae,Re),Ot=Math.max(Ae,Re),ut=Math.min(u.line,ve.line),an=Math.min(r.lastLine(),Math.max(u.line,ve.line));ut<=an;ut++){var Xt=we(m,ut).text,bt=or(Xt,rt,Se);rt==Ot?xe.push(new Ye(B(ut,bt),B(ut,bt))):Xt.length>bt&&xe.push(new Ye(B(ut,bt),B(ut,or(Xt,Ot,Se))))}xe.length||xe.push(new Ye(u,u)),Vt(m,zn(r,k.ranges.slice(0,_).concat(xe),_),{origin:"*mouse",scroll:!1}),r.scrollIntoView(ve)}else{var Kt=b,Mt=Ov(r,ve,c.unit),Ct=Kt.anchor,Et;ee(Mt.anchor,Ct)>0?(Et=Mt.head,Ct=$t(Kt.from(),Mt.anchor)):(Et=Mt.anchor,Ct=We(Kt.to(),Mt.head));var ht=k.ranges.slice(0);ht[_]=Pk(r,new Ye(Oe(m,Ct),Et)),Vt(m,zn(r,ht,_),So)}}var z=p.wrapper.getBoundingClientRect(),ne=0;function ce(ve){var xe=++ne,Se=Io(r,ve,!0,c.unit=="rectangle");if(Se)if(ee(Se,M)!=0){r.curOp.focus=pe(fe(r)),W(Se);var Ae=kc(p,m);(Se.line>=Ae.to||Se.line<Ae.from)&&setTimeout(Dt(r,function(){ne==xe&&ce(ve)}),150)}else{var Re=ve.clientY<z.top?-20:ve.clientY>z.bottom?20:0;Re&&setTimeout(Dt(r,function(){ne==xe&&(p.scroller.scrollTop+=Re,ce(ve))}),50)}}function ue(ve){r.state.selectingText=!1,ne=1/0,ve&&(Bt(ve),p.input.focus()),Pt(p.wrapper.ownerDocument,"mousemove",me),Pt(p.wrapper.ownerDocument,"mouseup",Ee),m.history.lastSelOrigin=null}var me=Dt(r,function(ve){ve.buttons===0||!$s(ve)?ue(ve):ce(ve)}),Ee=Dt(r,ue);r.state.selectingText=Ee,be(p.wrapper.ownerDocument,"mousemove",me),be(p.wrapper.ownerDocument,"mouseup",Ee)}function Pk(r,s){var u=s.anchor,c=s.head,p=we(r.doc,u.line);if(ee(u,c)==0&&u.sticky==c.sticky)return s;var m=Cn(p);if(!m)return s;var b=$n(m,u.ch,u.sticky),_=m[b];if(_.from!=u.ch&&_.to!=u.ch)return s;var k=b+(_.from==u.ch==(_.level!=1)?0:1);if(k==0||k==m.length)return s;var w;if(c.line!=u.line)w=(c.line-u.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var I=$n(m,c.ch,c.sticky),M=I-b||(c.ch-u.ch)*(_.level==1?-1:1);I==k-1||I==k?w=M<0:w=M>0}var W=m[k+(w?-1:0)],z=w==(W.level==1),ne=z?W.from:W.to,ce=z?"after":"before";return u.ch==ne&&u.sticky==ce?s:new Ye(new B(u.line,ne,ce),c)}function Iv(r,s,u,c){var p,m;if(s.touches)p=s.touches[0].clientX,m=s.touches[0].clientY;else try{p=s.clientX,m=s.clientY}catch{return!1}if(p>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;c&&Bt(s);var b=r.display,_=b.lineDiv.getBoundingClientRect();if(m>_.bottom||!zt(r,u))return ws(s);m-=_.top-b.viewOffset;for(var k=0;k<r.display.gutterSpecs.length;++k){var w=b.gutters.childNodes[k];if(w&&w.getBoundingClientRect().right>=p){var I=ur(r.doc,m),M=r.display.gutterSpecs[k];return it(r,u,r,I,M.className,s),ws(s)}}}function Ff(r,s){return Iv(r,s,"gutterClick",!0)}function Fv(r,s){Fr(r.display,s)||Bk(r,s)||pt(r,s,"contextmenu")||Q||r.display.input.onContextMenu(s)}function Bk(r,s){return zt(r,"gutterContextMenu")?Iv(r,s,"gutterContextMenu",!1):!1}function Lv(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Is(r)}var Ii={toString:function(){return"CodeMirror.Init"}},Rv={},Lc={};function Vk(r){var s=r.optionHandlers;function u(c,p,m,b){r.defaults[c]=p,m&&(s[c]=b?function(_,k,w){w!=Ii&&m(_,k,w)}:m)}r.defineOption=u,r.Init=Ii,u("value","",function(c,p){return c.setValue(p)},!0),u("mode",null,function(c,p){c.doc.modeOption=p,wf(c)},!0),u("indentUnit",2,wf,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(c){Vs(c),Is(c),Jt(c)},!0),u("lineSeparator",null,function(c,p){if(c.doc.lineSep=p,!!p){var m=[],b=c.doc.first;c.doc.iter(function(k){for(var w=0;;){var I=k.text.indexOf(p,w);if(I==-1)break;w=I+p.length,m.push(B(b,I))}b++});for(var _=m.length-1;_>=0;_--)Ti(c.doc,p,m[_],B(m[_].line,m[_].ch+p.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(c,p,m){c.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),m!=Ii&&c.refresh()}),u("specialCharPlaceholder",v2,function(c){return c.refresh()},!0),u("electricChars",!0),u("inputStyle",V?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(c,p){return c.getInputField().spellcheck=p},!0),u("autocorrect",!1,function(c,p){return c.getInputField().autocorrect=p},!0),u("autocapitalize",!1,function(c,p){return c.getInputField().autocapitalize=p},!0),u("rtlMoveVisually",!U),u("wholeLineUpdateBefore",!0),u("theme","default",function(c){Lv(c),Bs(c)},!0),u("keyMap","default",function(c,p,m){var b=Ic(p),_=m!=Ii&&Ic(m);_&&_.detach&&_.detach(c,b),b.attach&&b.attach(c,_||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Uk,!0),u("gutters",[],function(c,p){c.display.gutterSpecs=kf(p,c.options.lineNumbers),Bs(c)},!0),u("fixedGutter",!0,function(c,p){c.display.gutters.style.left=p?uf(c.display)+"px":"0",c.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(c){return $i(c)},!0),u("scrollbarStyle","native",function(c){qm(c),$i(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),u("lineNumbers",!1,function(c,p){c.display.gutterSpecs=kf(c.options.gutters,p),Bs(c)},!0),u("firstLineNumber",1,Bs,!0),u("lineNumberFormatter",function(c){return c},Bs,!0),u("showCursorWhenSelecting",!1,Fs,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(c,p){p=="nocursor"&&(xi(c),c.display.input.blur()),c.display.input.readOnlyChanged(p)}),u("screenReaderLabel",null,function(c,p){p=p===""?null:p,c.display.input.screenReaderLabelChanged(p)}),u("disableInput",!1,function(c,p){p||c.display.input.reset()},!0),u("dragDrop",!0,jk),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Fs,!0),u("singleCursorHeightPerLine",!0,Fs,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Vs,!0),u("addModeClass",!1,Vs,!0),u("pollInterval",100),u("undoDepth",200,function(c,p){return c.doc.history.undoDepth=p}),u("historyEventDelay",1250),u("viewportMargin",10,function(c){return c.refresh()},!0),u("maxHighlightLength",1e4,Vs,!0),u("moveInputWithCursor",!0,function(c,p){p||c.display.input.resetPosition()}),u("tabindex",null,function(c,p){return c.display.input.getField().tabIndex=p||""}),u("autofocus",null),u("direction","ltr",function(c,p){return c.doc.setDirection(p)},!0),u("phrases",null)}function jk(r,s,u){var c=u&&u!=Ii;if(!s!=!c){var p=r.display.dragFunctions,m=s?be:Pt;m(r.display.scroller,"dragstart",p.start),m(r.display.scroller,"dragenter",p.enter),m(r.display.scroller,"dragover",p.over),m(r.display.scroller,"dragleave",p.leave),m(r.display.scroller,"drop",p.drop)}}function Uk(r){r.options.lineWrapping?($e(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(_e(r.display.wrapper,"CodeMirror-wrap"),Ku(r)),ff(r),Jt(r),Is(r),setTimeout(function(){return $i(r)},100)}function ct(r,s){var u=this;if(!(this instanceof ct))return new ct(r,s);this.options=s=s?ye(s):{},ye(Rv,s,!1);var c=s.value;typeof c=="string"?c=new Zt(c,s.mode,null,s.lineSeparator,s.direction):s.mode&&(c.modeOption=s.mode),this.doc=c;var p=new ct.inputStyles[s.inputStyle](this),m=this.display=new nk(r,c,p,s);m.wrapper.CodeMirror=this,Lv(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qm(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ke,keySeq:null,specialChars:null},s.autofocus&&!V&&m.input.focus(),d&&h<11&&setTimeout(function(){return u.display.input.reset(!0)},20),zk(this),_k(),Mo(this),this.curOp.forceUpdate=!0,Qm(this,c),s.autofocus&&!V||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&mf(u)},20):xi(this);for(var b in Lc)Lc.hasOwnProperty(b)&&Lc[b](this,s[b],Ii);Vm(this),s.finishInit&&s.finishInit(this);for(var _=0;_<Lf.length;++_)Lf[_](this);qo(this),v&&s.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}ct.defaults=Rv,ct.optionHandlers=Lc;function zk(r){var s=r.display;be(s.scroller,"mousedown",Dt(r,Nv)),d&&h<11?be(s.scroller,"dblclick",Dt(r,function(k){if(!pt(r,k)){var w=Io(r,k);if(!(!w||Ff(r,k)||Fr(r.display,k))){Bt(k);var I=r.findWordAt(w);Sc(r.doc,I.anchor,I.head)}}})):be(s.scroller,"dblclick",function(k){return pt(r,k)||Bt(k)}),be(s.scroller,"contextmenu",function(k){return Fv(r,k)}),be(s.input.getField(),"contextmenu",function(k){s.scroller.contains(k.target)||Fv(r,k)});var u,c={end:0};function p(){s.activeTouch&&(u=setTimeout(function(){return s.activeTouch=null},1e3),c=s.activeTouch,c.end=+new Date)}function m(k){if(k.touches.length!=1)return!1;var w=k.touches[0];return w.radiusX<=1&&w.radiusY<=1}function b(k,w){if(w.left==null)return!0;var I=w.left-k.left,M=w.top-k.top;return I*I+M*M>20*20}be(s.scroller,"touchstart",function(k){if(!pt(r,k)&&!m(k)&&!Ff(r,k)){s.input.ensurePolled(),clearTimeout(u);var w=+new Date;s.activeTouch={start:w,moved:!1,prev:w-c.end<=300?c:null},k.touches.length==1&&(s.activeTouch.left=k.touches[0].pageX,s.activeTouch.top=k.touches[0].pageY)}}),be(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),be(s.scroller,"touchend",function(k){var w=s.activeTouch;if(w&&!Fr(s,k)&&w.left!=null&&!w.moved&&new Date-w.start<300){var I=r.coordsChar(s.activeTouch,"page"),M;!w.prev||b(w,w.prev)?M=new Ye(I,I):!w.prev.prev||b(w,w.prev.prev)?M=r.findWordAt(I):M=new Ye(B(I.line,0),Oe(r.doc,B(I.line+1,0))),r.setSelection(M.anchor,M.head),r.focus(),Bt(k)}p()}),be(s.scroller,"touchcancel",p),be(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Rs(r,s.scroller.scrollTop),Lo(r,s.scroller.scrollLeft,!0),it(r,"scroll",r))}),be(s.scroller,"mousewheel",function(k){return zm(r,k)}),be(s.scroller,"DOMMouseScroll",function(k){return zm(r,k)}),be(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(k){pt(r,k)||Sr(k)},over:function(k){pt(r,k)||(Ek(r,k),Sr(k))},start:function(k){return bk(r,k)},drop:Dt(r,yk),leave:function(k){pt(r,k)||yv(r)}};var _=s.input.getField();be(_,"keyup",function(k){return Tv.call(r,k)}),be(_,"keydown",Dt(r,Sv)),be(_,"keypress",Dt(r,Dv)),be(_,"focus",function(k){return mf(r,k)}),be(_,"blur",function(k){return xi(r,k)})}var Lf=[];ct.defineInitHook=function(r){return Lf.push(r)};function ea(r,s,u,c){var p=r.doc,m;u==null&&(u="add"),u=="smart"&&(p.mode.indent?m=Ss(r,s).state:u="prev");var b=r.options.tabSize,_=we(p,s),k=he(_.text,null,b);_.stateAfter&&(_.stateAfter=null);var w=_.text.match(/^\s*/)[0],I;if(!c&&!/\S/.test(_.text))I=0,u="not";else if(u=="smart"&&(I=p.mode.indent(m,_.text.slice(w.length),_.text),I==Ve||I>150)){if(!c)return;u="prev"}u=="prev"?s>p.first?I=he(we(p,s-1).text,null,b):I=0:u=="add"?I=k+r.options.indentUnit:u=="subtract"?I=k-r.options.indentUnit:typeof u=="number"&&(I=k+u),I=Math.max(0,I);var M="",W=0;if(r.options.indentWithTabs)for(var z=Math.floor(I/b);z;--z)W+=b,M+=" ";if(W<I&&(M+=ir(I-W)),M!=w)return Ti(p,M,B(s,0),B(s,w.length),"+input"),_.stateAfter=null,!0;for(var ne=0;ne<p.sel.ranges.length;ne++){var ce=p.sel.ranges[ne];if(ce.head.line==s&&ce.head.ch<w.length){var ue=B(s,w.length);Sf(p,ne,new Ye(ue,ue));break}}}var Hn=null;function Rc(r){Hn=r}function Rf(r,s,u,c,p){var m=r.doc;r.display.shift=!1,c||(c=m.sel);var b=+new Date-200,_=p=="paste"||r.state.pasteIncoming>b,k=Cs(s),w=null;if(_&&c.ranges.length>1)if(Hn&&Hn.text.join(`
299
299
  `)==s){if(c.ranges.length%Hn.text.length==0){w=[];for(var I=0;I<Hn.text.length;I++)w.push(m.splitLines(Hn.text[I]))}}else k.length==c.ranges.length&&r.options.pasteLinesPerSelection&&(w=pi(k,function(me){return[me]}));for(var M=r.curOp.updateInput,W=c.ranges.length-1;W>=0;W--){var z=c.ranges[W],ne=z.from(),ce=z.to();z.empty()&&(u&&u>0?ne=B(ne.line,ne.ch-u):r.state.overwrite&&!_?ce=B(ce.line,Math.min(we(m,ce.line).text.length,ce.ch+ze(k).length)):_&&Hn&&Hn.lineWise&&Hn.text.join(`
300
300
  `)==k.join(`
301
- `)&&(ne=ce=B(ne.line,0)));var ue={from:ne,to:ce,text:w?w[W%w.length]:k,origin:p||(_?"paste":r.state.cutIncoming>b?"cut":"+input")};Si(r.doc,ue),Tt(r,"inputRead",r,ue)}s&&!_&&qv(r,s),wi(r),r.curOp.updateInput<2&&(r.curOp.updateInput=M),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function Mv(r,s){var u=r.clipboardData&&r.clipboardData.getData("Text");if(u)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&sn(s,function(){return Rf(s,u,0,null,"paste")}),!0}function qv(r,s){if(!(!r.options.electricChars||!r.options.smartIndent))for(var u=r.doc.sel,c=u.ranges.length-1;c>=0;c--){var p=u.ranges[c];if(!(p.head.ch>100||c&&u.ranges[c-1].head.line==p.head.line)){var m=r.getModeAt(p.head),b=!1;if(m.electricChars){for(var _=0;_<m.electricChars.length;_++)if(s.indexOf(m.electricChars.charAt(_))>-1){b=ea(r,p.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(we(r.doc,p.head.line).text.slice(0,p.head.ch))&&(b=ea(r,p.head.line,"smart"));b&&Tt(r,"electricInput",r,p.head.line)}}}function Pv(r){for(var s=[],u=[],c=0;c<r.doc.sel.ranges.length;c++){var p=r.doc.sel.ranges[c].head.line,m={anchor:B(p,0),head:B(p+1,0)};u.push(m),s.push(r.getRange(m.anchor,m.head))}return{text:s,ranges:u}}function Mf(r,s,u,c){r.setAttribute("autocorrect",u?"on":"off"),r.setAttribute("autocapitalize",c?"on":"off"),r.setAttribute("spellcheck",!!s)}function Bv(){var r=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=x("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?r.style.width="1000px":r.setAttribute("wrap","off"),T&&(r.style.border="1px solid black"),s}function Hk(r){var s=r.optionHandlers,u=r.helpers={};r.prototype={constructor:r,focus:function(){de(this).focus(),this.display.input.focus()},setOption:function(c,p){var m=this.options,b=m[c];m[c]==p&&c!="mode"||(m[c]=p,s.hasOwnProperty(c)&&Dt(this,s[c])(this,p,b),it(this,"optionChange",this,c))},getOption:function(c){return this.options[c]},getDoc:function(){return this.doc},addKeyMap:function(c,p){this.state.keyMaps[p?"push":"unshift"](Ic(c))},removeKeyMap:function(c){for(var p=this.state.keyMaps,m=0;m<p.length;++m)if(p[m]==c||p[m].name==c)return p.splice(m,1),!0},addOverlay:Gt(function(c,p){var m=c.token?c:r.getMode(this.options,c);if(m.startState)throw new Error("Overlays may not be stateful.");ec(this.state.overlays,{mode:m,modeSpec:c,opaque:p&&p.opaque,priority:p&&p.priority||0},function(b){return b.priority}),this.state.modeGen++,Jt(this)}),removeOverlay:Gt(function(c){for(var p=this.state.overlays,m=0;m<p.length;++m){var b=p[m].modeSpec;if(b==c||typeof c=="string"&&b.name==c){p.splice(m,1),this.state.modeGen++,Jt(this);return}}}),indentLine:Gt(function(c,p,m){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),A(this.doc,c)&&ea(this,c,p,m)}),indentSelection:Gt(function(c){for(var p=this.doc.sel.ranges,m=-1,b=0;b<p.length;b++){var _=p[b];if(_.empty())_.head.line>m&&(ea(this,_.head.line,c,!0),m=_.head.line,b==this.doc.sel.primIndex&&wi(this));else{var k=_.from(),w=_.to(),I=Math.max(m,k.line);m=Math.min(this.lastLine(),w.line-(w.ch?0:1))+1;for(var M=I;M<m;++M)ea(this,M,c);var W=this.doc.sel.ranges;k.ch==0&&p.length==W.length&&W[b].from().ch>0&&Sf(this.doc,b,new Ye(k,W[b].to()),Be)}}}),getTokenAt:function(c,p){return Jh(this,c,p)},getLineTokens:function(c,p){return Jh(this,B(c),p,!0)},getTokenTypeAt:function(c){c=Oe(this.doc,c);var p=Wh(this,we(this.doc,c.line)),m=0,b=(p.length-1)/2,_=c.ch,k;if(_==0)k=p[2];else for(;;){var w=m+b>>1;if((w?p[w*2-1]:0)>=_)b=w;else if(p[w*2+1]<_)m=w+1;else{k=p[w*2+2];break}}var I=k?k.indexOf("overlay "):-1;return I<0?k:I==0?null:k.slice(0,I-1)},getModeAt:function(c){var p=this.doc.mode;return p.innerMode?r.innerMode(p,this.getTokenAt(c).state).mode:p},getHelper:function(c,p){return this.getHelpers(c,p)[0]},getHelpers:function(c,p){var m=[];if(!u.hasOwnProperty(p))return m;var b=u[p],_=this.getModeAt(c);if(typeof _[p]=="string")b[_[p]]&&m.push(b[_[p]]);else if(_[p])for(var k=0;k<_[p].length;k++){var w=b[_[p][k]];w&&m.push(w)}else _.helperType&&b[_.helperType]?m.push(b[_.helperType]):b[_.name]&&m.push(b[_.name]);for(var I=0;I<b._global.length;I++){var M=b._global[I];M.pred(_,this)&&De(m,M.val)==-1&&m.push(M.val)}return m},getStateAfter:function(c,p){var m=this.doc;return c=pn(m,c??m.first+m.size-1),Ss(this,c+1,p).state},cursorCoords:function(c,p){var m,b=this.doc.sel.primary();return c==null?m=b.head:typeof c=="object"?m=Oe(this.doc,c):m=c?b.from():b.to(),Un(this,m,p||"page")},charCoords:function(c,p){return yc(this,Oe(this.doc,c),p||"page")},coordsChar:function(c,p){return c=$m(this,c,p||"page"),af(this,c.left,c.top)},lineAtHeight:function(c,p){return c=$m(this,{top:c,left:0},p||"page").top,ur(this.doc,c+this.display.viewOffset)},heightAtLine:function(c,p,m){var b=!1,_;if(typeof c=="number"){var k=this.doc.first+this.doc.size-1;c<this.doc.first?c=this.doc.first:c>k&&(c=k,b=!0),_=we(this.doc,c)}else _=c;return gc(this,_,{top:0,left:0},p||"page",m||b).top+(b?this.doc.height-Ir(_):0)},defaultTextHeight:function(){return _i(this.display)},defaultCharWidth:function(){return ki(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,p,m,b,_){var k=this.display;c=Un(this,Oe(this.doc,c));var w=c.bottom,I=c.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),k.sizer.appendChild(p),b=="over")w=c.top;else if(b=="above"||b=="near"){var M=Math.max(k.wrapper.clientHeight,this.doc.height),W=Math.max(k.sizer.clientWidth,k.lineSpace.clientWidth);(b=="above"||c.bottom+p.offsetHeight>M)&&c.top>p.offsetHeight?w=c.top-p.offsetHeight:c.bottom+p.offsetHeight<=M&&(w=c.bottom),I+p.offsetWidth>W&&(I=W-p.offsetWidth)}p.style.top=w+"px",p.style.left=p.style.right="",_=="right"?(I=k.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(_=="left"?I=0:_=="middle"&&(I=(k.sizer.clientWidth-p.offsetWidth)/2),p.style.left=I+"px"),m&&j2(this,{left:I,top:w,right:I+p.offsetWidth,bottom:w+p.offsetHeight})},triggerOnKeyDown:Gt(Sv),triggerOnKeyPress:Gt(Dv),triggerOnKeyUp:Tv,triggerOnMouseDown:Gt(Nv),execCommand:function(c){if(Js.hasOwnProperty(c))return Js[c].call(null,this)},triggerElectric:Gt(function(c){qv(this,c)}),findPosH:function(c,p,m,b){var _=1;p<0&&(_=-1,p=-p);for(var k=Oe(this.doc,c),w=0;w<p&&(k=qf(this.doc,k,_,m,b),!k.hitSide);++w);return k},moveH:Gt(function(c,p){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?qf(m.doc,b.head,c,p,m.options.rtlMoveVisually):c<0?b.from():b.to()},Jr)}),deleteH:Gt(function(c,p){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):Oi(this,function(_){var k=qf(b,_.head,c,p,!1);return c<0?{from:k,to:_.head}:{from:_.head,to:k}})}),findPosV:function(c,p,m,b){var _=1,k=b;p<0&&(_=-1,p=-p);for(var w=Oe(this.doc,c),I=0;I<p;++I){var M=Un(this,w,"div");if(k==null?k=M.left:M.left=k,w=Vv(this,M,_,m),w.hitSide)break}return w},moveV:Gt(function(c,p){var m=this,b=this.doc,_=[],k=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(I){if(k)return c<0?I.from():I.to();var M=Un(m,I.head,"div");I.goalColumn!=null&&(M.left=I.goalColumn),_.push(M.left);var W=Vv(m,M,c,p);return p=="page"&&I==b.sel.primary()&&gf(m,yc(m,W,"div").top-M.top),W},Jr),_.length)for(var w=0;w<b.sel.ranges.length;w++)b.sel.ranges[w].goalColumn=_[w]}),findWordAt:function(c){var p=this.doc,m=we(p,c.line).text,b=c.ch,_=c.ch;if(m){var k=this.getHelper(c,"wordChars");(c.sticky=="before"||_==m.length)&&b?--b:++_;for(var w=m.charAt(b),I=di(w,k)?function(M){return di(M,k)}:/\s/.test(w)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!di(M)};b>0&&I(m.charAt(b-1));)--b;for(;_<m.length&&I(m.charAt(_));)++_}return new Ye(B(c.line,b),B(c.line,_))},toggleOverwrite:function(c){c!=null&&c==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),it(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe(fe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Gt(function(c,p){Fs(this,c,p)}),getScrollInfo:function(){var c=this.display.scroller;return{left:c.scrollLeft,top:c.scrollTop,height:c.scrollHeight-pr(this)-this.display.barHeight,width:c.scrollWidth-pr(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:No(this)}},scrollIntoView:Gt(function(c,p){c==null?(c={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof c=="number"?c={from:B(c,0),to:null}:c.from==null&&(c={from:c,to:null}),c.to||(c.to=c.from),c.margin=p||0,c.from.line!=null?U2(this,c):Lm(this,c.from,c.to,c.margin)}),setSize:Gt(function(c,p){var m=this,b=function(k){return typeof k=="number"||/^\d+$/.test(String(k))?k+"px":k};c!=null&&(this.display.wrapper.style.width=b(c)),p!=null&&(this.display.wrapper.style.height=b(p)),this.options.lineWrapping&&km(this);var _=this.display.viewFrom;this.doc.iter(_,this.display.viewTo,function(k){if(k.widgets){for(var w=0;w<k.widgets.length;w++)if(k.widgets[w].noHScroll){no(m,_,"widget");break}}++_}),this.curOp.forceUpdate=!0,it(this,"refresh",this)}),operation:function(c){return sn(this,c)},startOperation:function(){return Mo(this)},endOperation:function(){return qo(this)},refresh:Gt(function(){var c=this.display.cachedTextHeight;Jt(this),this.curOp.forceUpdate=!0,Is(this),Fs(this,this.doc.scrollLeft,this.doc.scrollTop),Ef(this.display),(c==null||Math.abs(c-_i(this.display))>.5||this.options.lineWrapping)&&ff(this),it(this,"refresh",this)}),swapDoc:Gt(function(c){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Qm(this,c),Is(this),this.display.input.reset(),Fs(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,p),p}),phrase:function(c){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,c)?p[c]:c},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ht(r),r.registerHelper=function(c,p,m){u.hasOwnProperty(c)||(u[c]=r[c]={_global:[]}),u[c][p]=m},r.registerGlobalHelper=function(c,p,m,b){r.registerHelper(c,p,b),u[c]._global.push({pred:m,val:b})}}function qf(r,s,u,c,p){var m=s,b=u,_=we(r,s.line),k=p&&r.direction=="rtl"?-u:u;function w(){var Ee=s.line+k;return Ee<r.first||Ee>=r.first+r.size?!1:(s=new B(Ee,s.ch,s.sticky),_=we(r,Ee))}function I(Ee){var ve;if(c=="codepoint"){var xe=_.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(xe))ve=null;else{var Se=u>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;ve=new B(s.line,Math.max(0,Math.min(_.text.length,s.ch+u*(Se?2:1))),-u)}}else p?ve=Ck(r.cm,_,s,u):ve=Df(_,s,u);if(ve==null)if(!Ee&&w())s=Nf(p,r.cm,_,s.line,k);else return!1;else s=ve;return!0}if(c=="char"||c=="codepoint")I();else if(c=="column")I(!0);else if(c=="word"||c=="group")for(var M=null,W=c=="group",z=r.cm&&r.cm.getHelper(s,"wordChars"),ne=!0;!(u<0&&!I(!ne));ne=!1){var ce=_.text.charAt(s.ch)||`
301
+ `)&&(ne=ce=B(ne.line,0)));var ue={from:ne,to:ce,text:w?w[W%w.length]:k,origin:p||(_?"paste":r.state.cutIncoming>b?"cut":"+input")};Si(r.doc,ue),Tt(r,"inputRead",r,ue)}s&&!_&&qv(r,s),wi(r),r.curOp.updateInput<2&&(r.curOp.updateInput=M),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function Mv(r,s){var u=r.clipboardData&&r.clipboardData.getData("Text");if(u)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&sn(s,function(){return Rf(s,u,0,null,"paste")}),!0}function qv(r,s){if(!(!r.options.electricChars||!r.options.smartIndent))for(var u=r.doc.sel,c=u.ranges.length-1;c>=0;c--){var p=u.ranges[c];if(!(p.head.ch>100||c&&u.ranges[c-1].head.line==p.head.line)){var m=r.getModeAt(p.head),b=!1;if(m.electricChars){for(var _=0;_<m.electricChars.length;_++)if(s.indexOf(m.electricChars.charAt(_))>-1){b=ea(r,p.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(we(r.doc,p.head.line).text.slice(0,p.head.ch))&&(b=ea(r,p.head.line,"smart"));b&&Tt(r,"electricInput",r,p.head.line)}}}function Pv(r){for(var s=[],u=[],c=0;c<r.doc.sel.ranges.length;c++){var p=r.doc.sel.ranges[c].head.line,m={anchor:B(p,0),head:B(p+1,0)};u.push(m),s.push(r.getRange(m.anchor,m.head))}return{text:s,ranges:u}}function Mf(r,s,u,c){r.setAttribute("autocorrect",u?"on":"off"),r.setAttribute("autocapitalize",c?"on":"off"),r.setAttribute("spellcheck",!!s)}function Bv(){var r=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=x("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?r.style.width="1000px":r.setAttribute("wrap","off"),T&&(r.style.border="1px solid black"),s}function Hk(r){var s=r.optionHandlers,u=r.helpers={};r.prototype={constructor:r,focus:function(){de(this).focus(),this.display.input.focus()},setOption:function(c,p){var m=this.options,b=m[c];m[c]==p&&c!="mode"||(m[c]=p,s.hasOwnProperty(c)&&Dt(this,s[c])(this,p,b),it(this,"optionChange",this,c))},getOption:function(c){return this.options[c]},getDoc:function(){return this.doc},addKeyMap:function(c,p){this.state.keyMaps[p?"push":"unshift"](Ic(c))},removeKeyMap:function(c){for(var p=this.state.keyMaps,m=0;m<p.length;++m)if(p[m]==c||p[m].name==c)return p.splice(m,1),!0},addOverlay:Gt(function(c,p){var m=c.token?c:r.getMode(this.options,c);if(m.startState)throw new Error("Overlays may not be stateful.");ec(this.state.overlays,{mode:m,modeSpec:c,opaque:p&&p.opaque,priority:p&&p.priority||0},function(b){return b.priority}),this.state.modeGen++,Jt(this)}),removeOverlay:Gt(function(c){for(var p=this.state.overlays,m=0;m<p.length;++m){var b=p[m].modeSpec;if(b==c||typeof c=="string"&&b.name==c){p.splice(m,1),this.state.modeGen++,Jt(this);return}}}),indentLine:Gt(function(c,p,m){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),A(this.doc,c)&&ea(this,c,p,m)}),indentSelection:Gt(function(c){for(var p=this.doc.sel.ranges,m=-1,b=0;b<p.length;b++){var _=p[b];if(_.empty())_.head.line>m&&(ea(this,_.head.line,c,!0),m=_.head.line,b==this.doc.sel.primIndex&&wi(this));else{var k=_.from(),w=_.to(),I=Math.max(m,k.line);m=Math.min(this.lastLine(),w.line-(w.ch?0:1))+1;for(var M=I;M<m;++M)ea(this,M,c);var W=this.doc.sel.ranges;k.ch==0&&p.length==W.length&&W[b].from().ch>0&&Sf(this.doc,b,new Ye(k,W[b].to()),Be)}}}),getTokenAt:function(c,p){return Jh(this,c,p)},getLineTokens:function(c,p){return Jh(this,B(c),p,!0)},getTokenTypeAt:function(c){c=Oe(this.doc,c);var p=Wh(this,we(this.doc,c.line)),m=0,b=(p.length-1)/2,_=c.ch,k;if(_==0)k=p[2];else for(;;){var w=m+b>>1;if((w?p[w*2-1]:0)>=_)b=w;else if(p[w*2+1]<_)m=w+1;else{k=p[w*2+2];break}}var I=k?k.indexOf("overlay "):-1;return I<0?k:I==0?null:k.slice(0,I-1)},getModeAt:function(c){var p=this.doc.mode;return p.innerMode?r.innerMode(p,this.getTokenAt(c).state).mode:p},getHelper:function(c,p){return this.getHelpers(c,p)[0]},getHelpers:function(c,p){var m=[];if(!u.hasOwnProperty(p))return m;var b=u[p],_=this.getModeAt(c);if(typeof _[p]=="string")b[_[p]]&&m.push(b[_[p]]);else if(_[p])for(var k=0;k<_[p].length;k++){var w=b[_[p][k]];w&&m.push(w)}else _.helperType&&b[_.helperType]?m.push(b[_.helperType]):b[_.name]&&m.push(b[_.name]);for(var I=0;I<b._global.length;I++){var M=b._global[I];M.pred(_,this)&&De(m,M.val)==-1&&m.push(M.val)}return m},getStateAfter:function(c,p){var m=this.doc;return c=pn(m,c??m.first+m.size-1),Ss(this,c+1,p).state},cursorCoords:function(c,p){var m,b=this.doc.sel.primary();return c==null?m=b.head:typeof c=="object"?m=Oe(this.doc,c):m=c?b.from():b.to(),Un(this,m,p||"page")},charCoords:function(c,p){return yc(this,Oe(this.doc,c),p||"page")},coordsChar:function(c,p){return c=$m(this,c,p||"page"),af(this,c.left,c.top)},lineAtHeight:function(c,p){return c=$m(this,{top:c,left:0},p||"page").top,ur(this.doc,c+this.display.viewOffset)},heightAtLine:function(c,p,m){var b=!1,_;if(typeof c=="number"){var k=this.doc.first+this.doc.size-1;c<this.doc.first?c=this.doc.first:c>k&&(c=k,b=!0),_=we(this.doc,c)}else _=c;return gc(this,_,{top:0,left:0},p||"page",m||b).top+(b?this.doc.height-Ir(_):0)},defaultTextHeight:function(){return _i(this.display)},defaultCharWidth:function(){return ki(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,p,m,b,_){var k=this.display;c=Un(this,Oe(this.doc,c));var w=c.bottom,I=c.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),k.sizer.appendChild(p),b=="over")w=c.top;else if(b=="above"||b=="near"){var M=Math.max(k.wrapper.clientHeight,this.doc.height),W=Math.max(k.sizer.clientWidth,k.lineSpace.clientWidth);(b=="above"||c.bottom+p.offsetHeight>M)&&c.top>p.offsetHeight?w=c.top-p.offsetHeight:c.bottom+p.offsetHeight<=M&&(w=c.bottom),I+p.offsetWidth>W&&(I=W-p.offsetWidth)}p.style.top=w+"px",p.style.left=p.style.right="",_=="right"?(I=k.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(_=="left"?I=0:_=="middle"&&(I=(k.sizer.clientWidth-p.offsetWidth)/2),p.style.left=I+"px"),m&&j2(this,{left:I,top:w,right:I+p.offsetWidth,bottom:w+p.offsetHeight})},triggerOnKeyDown:Gt(Sv),triggerOnKeyPress:Gt(Dv),triggerOnKeyUp:Tv,triggerOnMouseDown:Gt(Nv),execCommand:function(c){if(Js.hasOwnProperty(c))return Js[c].call(null,this)},triggerElectric:Gt(function(c){qv(this,c)}),findPosH:function(c,p,m,b){var _=1;p<0&&(_=-1,p=-p);for(var k=Oe(this.doc,c),w=0;w<p&&(k=qf(this.doc,k,_,m,b),!k.hitSide);++w);return k},moveH:Gt(function(c,p){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?qf(m.doc,b.head,c,p,m.options.rtlMoveVisually):c<0?b.from():b.to()},Jr)}),deleteH:Gt(function(c,p){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):Oi(this,function(_){var k=qf(b,_.head,c,p,!1);return c<0?{from:k,to:_.head}:{from:_.head,to:k}})}),findPosV:function(c,p,m,b){var _=1,k=b;p<0&&(_=-1,p=-p);for(var w=Oe(this.doc,c),I=0;I<p;++I){var M=Un(this,w,"div");if(k==null?k=M.left:M.left=k,w=Vv(this,M,_,m),w.hitSide)break}return w},moveV:Gt(function(c,p){var m=this,b=this.doc,_=[],k=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(I){if(k)return c<0?I.from():I.to();var M=Un(m,I.head,"div");I.goalColumn!=null&&(M.left=I.goalColumn),_.push(M.left);var W=Vv(m,M,c,p);return p=="page"&&I==b.sel.primary()&&gf(m,yc(m,W,"div").top-M.top),W},Jr),_.length)for(var w=0;w<b.sel.ranges.length;w++)b.sel.ranges[w].goalColumn=_[w]}),findWordAt:function(c){var p=this.doc,m=we(p,c.line).text,b=c.ch,_=c.ch;if(m){var k=this.getHelper(c,"wordChars");(c.sticky=="before"||_==m.length)&&b?--b:++_;for(var w=m.charAt(b),I=di(w,k)?function(M){return di(M,k)}:/\s/.test(w)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!di(M)};b>0&&I(m.charAt(b-1));)--b;for(;_<m.length&&I(m.charAt(_));)++_}return new Ye(B(c.line,b),B(c.line,_))},toggleOverwrite:function(c){c!=null&&c==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),it(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe(fe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Gt(function(c,p){Ls(this,c,p)}),getScrollInfo:function(){var c=this.display.scroller;return{left:c.scrollLeft,top:c.scrollTop,height:c.scrollHeight-pr(this)-this.display.barHeight,width:c.scrollWidth-pr(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:No(this)}},scrollIntoView:Gt(function(c,p){c==null?(c={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof c=="number"?c={from:B(c,0),to:null}:c.from==null&&(c={from:c,to:null}),c.to||(c.to=c.from),c.margin=p||0,c.from.line!=null?U2(this,c):Fm(this,c.from,c.to,c.margin)}),setSize:Gt(function(c,p){var m=this,b=function(k){return typeof k=="number"||/^\d+$/.test(String(k))?k+"px":k};c!=null&&(this.display.wrapper.style.width=b(c)),p!=null&&(this.display.wrapper.style.height=b(p)),this.options.lineWrapping&&km(this);var _=this.display.viewFrom;this.doc.iter(_,this.display.viewTo,function(k){if(k.widgets){for(var w=0;w<k.widgets.length;w++)if(k.widgets[w].noHScroll){no(m,_,"widget");break}}++_}),this.curOp.forceUpdate=!0,it(this,"refresh",this)}),operation:function(c){return sn(this,c)},startOperation:function(){return Mo(this)},endOperation:function(){return qo(this)},refresh:Gt(function(){var c=this.display.cachedTextHeight;Jt(this),this.curOp.forceUpdate=!0,Is(this),Ls(this,this.doc.scrollLeft,this.doc.scrollTop),Ef(this.display),(c==null||Math.abs(c-_i(this.display))>.5||this.options.lineWrapping)&&ff(this),it(this,"refresh",this)}),swapDoc:Gt(function(c){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Qm(this,c),Is(this),this.display.input.reset(),Ls(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,p),p}),phrase:function(c){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,c)?p[c]:c},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ht(r),r.registerHelper=function(c,p,m){u.hasOwnProperty(c)||(u[c]=r[c]={_global:[]}),u[c][p]=m},r.registerGlobalHelper=function(c,p,m,b){r.registerHelper(c,p,b),u[c]._global.push({pred:m,val:b})}}function qf(r,s,u,c,p){var m=s,b=u,_=we(r,s.line),k=p&&r.direction=="rtl"?-u:u;function w(){var Ee=s.line+k;return Ee<r.first||Ee>=r.first+r.size?!1:(s=new B(Ee,s.ch,s.sticky),_=we(r,Ee))}function I(Ee){var ve;if(c=="codepoint"){var xe=_.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(xe))ve=null;else{var Se=u>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;ve=new B(s.line,Math.max(0,Math.min(_.text.length,s.ch+u*(Se?2:1))),-u)}}else p?ve=Ck(r.cm,_,s,u):ve=Df(_,s,u);if(ve==null)if(!Ee&&w())s=Nf(p,r.cm,_,s.line,k);else return!1;else s=ve;return!0}if(c=="char"||c=="codepoint")I();else if(c=="column")I(!0);else if(c=="word"||c=="group")for(var M=null,W=c=="group",z=r.cm&&r.cm.getHelper(s,"wordChars"),ne=!0;!(u<0&&!I(!ne));ne=!1){var ce=_.text.charAt(s.ch)||`
302
302
  `,ue=di(ce,z)?"w":W&&ce==`
303
303
  `?"n":!W||/\s/.test(ce)?null:"p";if(W&&!ne&&!ue&&(ue="s"),M&&M!=ue){u<0&&(u=1,I(),s.sticky="after");break}if(ue&&(M=ue),u>0&&!I(!ne))break}var me=Dc(r,s,m,b,!0);return Ne(m,me)&&(me.hitSide=!0),me}function Vv(r,s,u,c){var p=r.doc,m=s.left,b;if(c=="page"){var _=Math.min(r.display.wrapper.clientHeight,de(r).innerHeight||p(r).documentElement.clientHeight),k=Math.max(_-.5*_i(r.display),3);b=(u>0?s.bottom:s.top)+u*k}else c=="line"&&(b=u>0?s.bottom+3:s.top-3);for(var w;w=af(r,m,b),!!w.outside;){if(u<0?b<=0:b>=p.height){w.hitSide=!0;break}b+=u*5}return w}var nt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nt.prototype.init=function(r){var s=this,u=this,c=u.cm,p=u.div=r.lineDiv;p.contentEditable=!0,Mf(p,c.options.spellcheck,c.options.autocorrect,c.options.autocapitalize);function m(_){for(var k=_.target;k;k=k.parentNode){if(k==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(k.className))break}return!1}be(p,"paste",function(_){!m(_)||pt(c,_)||Mv(_,c)||h<=11&&setTimeout(Dt(c,function(){return s.updateFromDOM()}),20)}),be(p,"compositionstart",function(_){s.composing={data:_.data,done:!1}}),be(p,"compositionupdate",function(_){s.composing||(s.composing={data:_.data,done:!1})}),be(p,"compositionend",function(_){s.composing&&(_.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),be(p,"touchstart",function(){return u.forceCompositionEnd()}),be(p,"input",function(){s.composing||s.readFromDOMSoon()});function b(_){if(!(!m(_)||pt(c,_))){if(c.somethingSelected())Rc({lineWise:!1,text:c.getSelections()}),_.type=="cut"&&c.replaceSelection("",null,"cut");else if(c.options.lineWiseCopyCut){var k=Pv(c);Rc({lineWise:!0,text:k.text}),_.type=="cut"&&c.operation(function(){c.setSelections(k.ranges,0,Be),c.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var w=Hn.text.join(`
304
304
  `);if(_.clipboardData.setData("Text",w),_.clipboardData.getData("Text")==w){_.preventDefault();return}}var I=Bv(),M=I.firstChild;Mf(M),c.display.lineSpace.insertBefore(I,c.display.lineSpace.firstChild),M.value=Hn.text.join(`
305
- `);var W=pe(p.ownerDocument);Z(M),setTimeout(function(){c.display.lineSpace.removeChild(I),W.focus(),W==p&&u.showPrimarySelection()},50)}}be(p,"copy",b),be(p,"cut",b)},nt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},nt.prototype.prepareSelection=function(){var r=Nm(this.cm,!1);return r.focus=pe(this.div.ownerDocument)==this.div,r},nt.prototype.showSelection=function(r,s){!r||!this.cm.display.view.length||((r.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(r))},nt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nt.prototype.showPrimarySelection=function(){var r=this.getSelection(),s=this.cm,u=s.doc.sel.primary(),c=u.from(),p=u.to();if(s.display.viewTo==s.display.viewFrom||c.line>=s.display.viewTo||p.line<s.display.viewFrom){r.removeAllRanges();return}var m=Mc(s,r.anchorNode,r.anchorOffset),b=Mc(s,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&ee($t(m,b),c)==0&&ee(We(m,b),p)==0)){var _=s.display.view,k=c.line>=s.display.viewFrom&&jv(s,c)||{node:_[0].measure.map[2],offset:0},w=p.line<s.display.viewTo&&jv(s,p);if(!w){var I=_[_.length-1].measure,M=I.maps?I.maps[I.maps.length-1]:I.map;w={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!k||!w){r.removeAllRanges();return}var W=r.rangeCount&&r.getRangeAt(0),z;try{z=J(k.node,k.offset,w.offset,w.node)}catch{}z&&(!i&&s.state.focused?(r.collapse(k.node,k.offset),z.collapsed||(r.removeAllRanges(),r.addRange(z))):(r.removeAllRanges(),r.addRange(z)),W&&r.anchorNode==null?r.addRange(W):i&&this.startGracePeriod()),this.rememberSelection()}},nt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},nt.prototype.showMultipleSelections=function(r){F(this.cm.display.cursorDiv,r.cursors),F(this.cm.display.selectionDiv,r.selection)},nt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},nt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var s=r.getRangeAt(0).commonAncestorContainer;return te(this.div,s)},nt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nt.prototype.blur=function(){this.div.blur()},nt.prototype.getField=function(){return this.div},nt.prototype.supportsTouch=function(){return!0},nt.prototype.receivedFocus=function(){var r=this,s=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):sn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function u(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},nt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(O&&g&&this.cm.display.gutterSpecs.length&&Gk(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Mc(s,r.anchorNode,r.anchorOffset),c=Mc(s,r.focusNode,r.focusOffset);u&&c&&sn(s,function(){Vt(s.doc,oo(u,c),Be),(u.bad||c.bad)&&(s.curOp.selectionChanged=!0)})}}},nt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,u=r.doc.sel.primary(),c=u.from(),p=u.to();if(c.ch==0&&c.line>r.firstLine()&&(c=B(c.line-1,we(r.doc,c.line-1).length)),p.ch==we(r.doc,p.line).text.length&&p.line<r.lastLine()&&(p=B(p.line+1,0)),c.line<s.viewFrom||p.line>s.viewTo-1)return!1;var m,b,_;c.line==s.viewFrom||(m=Lo(r,c.line))==0?(b=Qe(s.view[0].line),_=s.view[0].node):(b=Qe(s.view[m].line),_=s.view[m-1].node.nextSibling);var k=Lo(r,p.line),w,I;if(k==s.view.length-1?(w=s.viewTo-1,I=s.lineDiv.lastChild):(w=Qe(s.view[k+1].line)-1,I=s.view[k+1].node.previousSibling),!_)return!1;for(var M=r.doc.splitLines(Wk(r,_,I,b,w)),W=Nr(r.doc,B(b,0),B(w,we(r.doc,w).text.length));M.length>1&&W.length>1;)if(ze(M)==ze(W))M.pop(),W.pop(),w--;else if(M[0]==W[0])M.shift(),W.shift(),b++;else break;for(var z=0,ne=0,ce=M[0],ue=W[0],me=Math.min(ce.length,ue.length);z<me&&ce.charCodeAt(z)==ue.charCodeAt(z);)++z;for(var Ee=ze(M),ve=ze(W),xe=Math.min(Ee.length-(M.length==1?z:0),ve.length-(W.length==1?z:0));ne<xe&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)++ne;if(M.length==1&&W.length==1&&b==c.line)for(;z&&z>c.ch&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)z--,ne++;M[M.length-1]=Ee.slice(0,Ee.length-ne).replace(/^\u200b+/,""),M[0]=M[0].slice(z).replace(/\u200b+$/,"");var Se=B(b,z),Ae=B(w,W.length?ze(W).length-ne:0);if(M.length>1||M[0]||ee(Se,Ae))return Ti(r.doc,M,Se,Ae,"+input"),!0},nt.prototype.ensurePolled=function(){this.forceCompositionEnd()},nt.prototype.reset=function(){this.forceCompositionEnd()},nt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},nt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&sn(this.cm,function(){return Jt(r.cm)})},nt.prototype.setUneditable=function(r){r.contentEditable="false"},nt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Dt(this.cm,Rf)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},nt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},nt.prototype.onContextMenu=function(){},nt.prototype.resetPosition=function(){},nt.prototype.needsContentAttribute=!0;function jv(r,s){var u=rf(r,s.line);if(!u||u.hidden)return null;var c=we(r.doc,s.line),p=gm(u,c,s.line),m=Cn(c,r.doc.direction),b="left";if(m){var _=$n(m,s.ch);b=_%2?"right":"left"}var k=Em(p.map,s.ch,b);return k.offset=k.collapse=="right"?k.end:k.start,k}function Gk(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Li(r,s){return s&&(r.bad=!0),r}function Wk(r,s,u,c,p){var m="",b=!1,_=r.doc.lineSeparator(),k=!1;function w(z){return function(ne){return ne.id==z}}function I(){b&&(m+=_,k&&(m+=_),b=k=!1)}function M(z){z&&(I(),m+=z)}function W(z){if(z.nodeType==1){var ne=z.getAttribute("cm-text");if(ne){M(ne);return}var ce=z.getAttribute("cm-marker"),ue;if(ce){var me=r.findMarks(B(c,0),B(p+1,0),w(+ce));me.length&&(ue=me[0].find(0))&&M(Nr(r.doc,ue.from,ue.to).join(_));return}if(z.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(z.nodeName);if(!/^br$/i.test(z.nodeName)&&z.textContent.length==0)return;Ee&&I();for(var ve=0;ve<z.childNodes.length;ve++)W(z.childNodes[ve]);/^(pre|p)$/i.test(z.nodeName)&&(k=!0),Ee&&(b=!0)}else z.nodeType==3&&M(z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(s),s!=u;)s=s.nextSibling,k=!1;return m}function Mc(r,s,u){var c;if(s==r.display.lineDiv){if(c=r.display.lineDiv.childNodes[u],!c)return Li(r.clipPos(B(r.display.viewTo-1)),!0);s=null,u=0}else for(c=s;;c=c.parentNode){if(!c||c==r.display.lineDiv)return null;if(c.parentNode&&c.parentNode==r.display.lineDiv)break}for(var p=0;p<r.display.view.length;p++){var m=r.display.view[p];if(m.node==c)return Qk(m,s,u)}}function Qk(r,s,u){var c=r.text.firstChild,p=!1;if(!s||!te(c,s))return Li(B(Qe(r.line),0),!0);if(s==c&&(p=!0,s=c.childNodes[u],u=0,!s)){var m=r.rest?ze(r.rest):r.line;return Li(B(Qe(m),m.text.length),p)}var b=s.nodeType==3?s:null,_=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,u&&(u=b.nodeValue.length));_.parentNode!=c;)_=_.parentNode;var k=r.measure,w=k.maps;function I(ue,me,Ee){for(var ve=-1;ve<(w?w.length:0);ve++)for(var xe=ve<0?k.map:w[ve],Se=0;Se<xe.length;Se+=3){var Ae=xe[Se+2];if(Ae==ue||Ae==me){var Re=Qe(ve<0?r.line:r.rest[ve]),rt=xe[Se]+Ee;return(Ee<0||Ae!=ue)&&(rt=xe[Se+(Ee?1:0)]),B(Re,rt)}}}var M=I(b,_,u);if(M)return Li(M,p);for(var W=_.nextSibling,z=b?b.nodeValue.length-u:0;W;W=W.nextSibling){if(M=I(W,W.firstChild,0),M)return Li(B(M.line,M.ch-z),p);z+=W.textContent.length}for(var ne=_.previousSibling,ce=u;ne;ne=ne.previousSibling){if(M=I(ne,ne.firstChild,-1),M)return Li(B(M.line,M.ch+ce),p);ce+=ne.textContent.length}}var mt=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new ke,this.hasSelection=!1,this.composing=null,this.resetting=!1};mt.prototype.init=function(r){var s=this,u=this,c=this.cm;this.createField(r);var p=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),T&&(p.style.width="0px"),be(p,"input",function(){d&&h>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),be(p,"paste",function(b){pt(c,b)||Mv(b,c)||(c.state.pasteIncoming=+new Date,u.fastPoll())});function m(b){if(!pt(c,b)){if(c.somethingSelected())Rc({lineWise:!1,text:c.getSelections()});else if(c.options.lineWiseCopyCut){var _=Pv(c);Rc({lineWise:!0,text:_.text}),b.type=="cut"?c.setSelections(_.ranges,null,Be):(u.prevInput="",p.value=_.text.join(`
306
- `),Z(p))}else return;b.type=="cut"&&(c.state.cutIncoming=+new Date)}}be(p,"cut",m),be(p,"copy",m),be(r.scroller,"paste",function(b){if(!(Lr(r,b)||pt(c,b))){if(!p.dispatchEvent){c.state.pasteIncoming=+new Date,u.focus();return}var _=new Event("paste");_.clipboardData=b.clipboardData,p.dispatchEvent(_)}}),be(r.lineSpace,"selectstart",function(b){Lr(r,b)||Bt(b)}),be(p,"compositionstart",function(){var b=c.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:b,range:c.markText(b,c.getCursor("to"),{className:"CodeMirror-composing"})}}),be(p,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},mt.prototype.createField=function(r){this.wrapper=Bv(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Mf(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},mt.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var r=this.cm,s=r.display,u=r.doc,c=Nm(r);if(r.options.moveInputWithCursor){var p=Un(r,u.sel.primary().head,"div"),m=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,p.top+b.top-m.top)),c.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,p.left+b.left-m.left))}return c},mt.prototype.showSelection=function(r){var s=this.cm,u=s.display;F(u.cursorDiv,r.cursors),F(u.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},mt.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&Z(this.textarea),d&&h>=9&&(this.hasSelection=u)}else r||(this.prevInput=this.textarea.value="",d&&h>=9&&(this.hasSelection=null));this.resetting=!1}},mt.prototype.getField=function(){return this.textarea},mt.prototype.supportsTouch=function(){return!1},mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!V||pe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},mt.prototype.blur=function(){this.textarea.blur()},mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},mt.prototype.receivedFocus=function(){this.slowPoll()},mt.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},mt.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function u(){var c=s.poll();!c&&!r?(r=!0,s.polling.set(60,u)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,u)},mt.prototype.poll=function(){var r=this,s=this.cm,u=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Zr(u)&&!c&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var p=u.value;if(p==c&&!s.somethingSelected())return!1;if(d&&h>=9&&this.hasSelection===p||Y&&/[\uf700-\uf7ff]/.test(p))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var m=p.charCodeAt(0);if(m==8203&&!c&&(c="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,_=Math.min(c.length,p.length);b<_&&c.charCodeAt(b)==p.charCodeAt(b);)++b;return sn(s,function(){Rf(s,p.slice(b),c.length-b,null,r.composing?"*compose":null),p.length>1e3||p.indexOf(`
305
+ `);var W=pe(p.ownerDocument);Z(M),setTimeout(function(){c.display.lineSpace.removeChild(I),W.focus(),W==p&&u.showPrimarySelection()},50)}}be(p,"copy",b),be(p,"cut",b)},nt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},nt.prototype.prepareSelection=function(){var r=Nm(this.cm,!1);return r.focus=pe(this.div.ownerDocument)==this.div,r},nt.prototype.showSelection=function(r,s){!r||!this.cm.display.view.length||((r.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(r))},nt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nt.prototype.showPrimarySelection=function(){var r=this.getSelection(),s=this.cm,u=s.doc.sel.primary(),c=u.from(),p=u.to();if(s.display.viewTo==s.display.viewFrom||c.line>=s.display.viewTo||p.line<s.display.viewFrom){r.removeAllRanges();return}var m=Mc(s,r.anchorNode,r.anchorOffset),b=Mc(s,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&ee($t(m,b),c)==0&&ee(We(m,b),p)==0)){var _=s.display.view,k=c.line>=s.display.viewFrom&&jv(s,c)||{node:_[0].measure.map[2],offset:0},w=p.line<s.display.viewTo&&jv(s,p);if(!w){var I=_[_.length-1].measure,M=I.maps?I.maps[I.maps.length-1]:I.map;w={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!k||!w){r.removeAllRanges();return}var W=r.rangeCount&&r.getRangeAt(0),z;try{z=J(k.node,k.offset,w.offset,w.node)}catch{}z&&(!i&&s.state.focused?(r.collapse(k.node,k.offset),z.collapsed||(r.removeAllRanges(),r.addRange(z))):(r.removeAllRanges(),r.addRange(z)),W&&r.anchorNode==null?r.addRange(W):i&&this.startGracePeriod()),this.rememberSelection()}},nt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},nt.prototype.showMultipleSelections=function(r){L(this.cm.display.cursorDiv,r.cursors),L(this.cm.display.selectionDiv,r.selection)},nt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},nt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var s=r.getRangeAt(0).commonAncestorContainer;return te(this.div,s)},nt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nt.prototype.blur=function(){this.div.blur()},nt.prototype.getField=function(){return this.div},nt.prototype.supportsTouch=function(){return!0},nt.prototype.receivedFocus=function(){var r=this,s=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):sn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function u(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},nt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(O&&g&&this.cm.display.gutterSpecs.length&&Gk(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Mc(s,r.anchorNode,r.anchorOffset),c=Mc(s,r.focusNode,r.focusOffset);u&&c&&sn(s,function(){Vt(s.doc,oo(u,c),Be),(u.bad||c.bad)&&(s.curOp.selectionChanged=!0)})}}},nt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,u=r.doc.sel.primary(),c=u.from(),p=u.to();if(c.ch==0&&c.line>r.firstLine()&&(c=B(c.line-1,we(r.doc,c.line-1).length)),p.ch==we(r.doc,p.line).text.length&&p.line<r.lastLine()&&(p=B(p.line+1,0)),c.line<s.viewFrom||p.line>s.viewTo-1)return!1;var m,b,_;c.line==s.viewFrom||(m=Fo(r,c.line))==0?(b=Qe(s.view[0].line),_=s.view[0].node):(b=Qe(s.view[m].line),_=s.view[m-1].node.nextSibling);var k=Fo(r,p.line),w,I;if(k==s.view.length-1?(w=s.viewTo-1,I=s.lineDiv.lastChild):(w=Qe(s.view[k+1].line)-1,I=s.view[k+1].node.previousSibling),!_)return!1;for(var M=r.doc.splitLines(Wk(r,_,I,b,w)),W=Nr(r.doc,B(b,0),B(w,we(r.doc,w).text.length));M.length>1&&W.length>1;)if(ze(M)==ze(W))M.pop(),W.pop(),w--;else if(M[0]==W[0])M.shift(),W.shift(),b++;else break;for(var z=0,ne=0,ce=M[0],ue=W[0],me=Math.min(ce.length,ue.length);z<me&&ce.charCodeAt(z)==ue.charCodeAt(z);)++z;for(var Ee=ze(M),ve=ze(W),xe=Math.min(Ee.length-(M.length==1?z:0),ve.length-(W.length==1?z:0));ne<xe&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)++ne;if(M.length==1&&W.length==1&&b==c.line)for(;z&&z>c.ch&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)z--,ne++;M[M.length-1]=Ee.slice(0,Ee.length-ne).replace(/^\u200b+/,""),M[0]=M[0].slice(z).replace(/\u200b+$/,"");var Se=B(b,z),Ae=B(w,W.length?ze(W).length-ne:0);if(M.length>1||M[0]||ee(Se,Ae))return Ti(r.doc,M,Se,Ae,"+input"),!0},nt.prototype.ensurePolled=function(){this.forceCompositionEnd()},nt.prototype.reset=function(){this.forceCompositionEnd()},nt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},nt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&sn(this.cm,function(){return Jt(r.cm)})},nt.prototype.setUneditable=function(r){r.contentEditable="false"},nt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Dt(this.cm,Rf)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},nt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},nt.prototype.onContextMenu=function(){},nt.prototype.resetPosition=function(){},nt.prototype.needsContentAttribute=!0;function jv(r,s){var u=rf(r,s.line);if(!u||u.hidden)return null;var c=we(r.doc,s.line),p=gm(u,c,s.line),m=Cn(c,r.doc.direction),b="left";if(m){var _=$n(m,s.ch);b=_%2?"right":"left"}var k=Em(p.map,s.ch,b);return k.offset=k.collapse=="right"?k.end:k.start,k}function Gk(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Fi(r,s){return s&&(r.bad=!0),r}function Wk(r,s,u,c,p){var m="",b=!1,_=r.doc.lineSeparator(),k=!1;function w(z){return function(ne){return ne.id==z}}function I(){b&&(m+=_,k&&(m+=_),b=k=!1)}function M(z){z&&(I(),m+=z)}function W(z){if(z.nodeType==1){var ne=z.getAttribute("cm-text");if(ne){M(ne);return}var ce=z.getAttribute("cm-marker"),ue;if(ce){var me=r.findMarks(B(c,0),B(p+1,0),w(+ce));me.length&&(ue=me[0].find(0))&&M(Nr(r.doc,ue.from,ue.to).join(_));return}if(z.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(z.nodeName);if(!/^br$/i.test(z.nodeName)&&z.textContent.length==0)return;Ee&&I();for(var ve=0;ve<z.childNodes.length;ve++)W(z.childNodes[ve]);/^(pre|p)$/i.test(z.nodeName)&&(k=!0),Ee&&(b=!0)}else z.nodeType==3&&M(z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(s),s!=u;)s=s.nextSibling,k=!1;return m}function Mc(r,s,u){var c;if(s==r.display.lineDiv){if(c=r.display.lineDiv.childNodes[u],!c)return Fi(r.clipPos(B(r.display.viewTo-1)),!0);s=null,u=0}else for(c=s;;c=c.parentNode){if(!c||c==r.display.lineDiv)return null;if(c.parentNode&&c.parentNode==r.display.lineDiv)break}for(var p=0;p<r.display.view.length;p++){var m=r.display.view[p];if(m.node==c)return Qk(m,s,u)}}function Qk(r,s,u){var c=r.text.firstChild,p=!1;if(!s||!te(c,s))return Fi(B(Qe(r.line),0),!0);if(s==c&&(p=!0,s=c.childNodes[u],u=0,!s)){var m=r.rest?ze(r.rest):r.line;return Fi(B(Qe(m),m.text.length),p)}var b=s.nodeType==3?s:null,_=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,u&&(u=b.nodeValue.length));_.parentNode!=c;)_=_.parentNode;var k=r.measure,w=k.maps;function I(ue,me,Ee){for(var ve=-1;ve<(w?w.length:0);ve++)for(var xe=ve<0?k.map:w[ve],Se=0;Se<xe.length;Se+=3){var Ae=xe[Se+2];if(Ae==ue||Ae==me){var Re=Qe(ve<0?r.line:r.rest[ve]),rt=xe[Se]+Ee;return(Ee<0||Ae!=ue)&&(rt=xe[Se+(Ee?1:0)]),B(Re,rt)}}}var M=I(b,_,u);if(M)return Fi(M,p);for(var W=_.nextSibling,z=b?b.nodeValue.length-u:0;W;W=W.nextSibling){if(M=I(W,W.firstChild,0),M)return Fi(B(M.line,M.ch-z),p);z+=W.textContent.length}for(var ne=_.previousSibling,ce=u;ne;ne=ne.previousSibling){if(M=I(ne,ne.firstChild,-1),M)return Fi(B(M.line,M.ch+ce),p);ce+=ne.textContent.length}}var mt=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new ke,this.hasSelection=!1,this.composing=null,this.resetting=!1};mt.prototype.init=function(r){var s=this,u=this,c=this.cm;this.createField(r);var p=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),T&&(p.style.width="0px"),be(p,"input",function(){d&&h>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),be(p,"paste",function(b){pt(c,b)||Mv(b,c)||(c.state.pasteIncoming=+new Date,u.fastPoll())});function m(b){if(!pt(c,b)){if(c.somethingSelected())Rc({lineWise:!1,text:c.getSelections()});else if(c.options.lineWiseCopyCut){var _=Pv(c);Rc({lineWise:!0,text:_.text}),b.type=="cut"?c.setSelections(_.ranges,null,Be):(u.prevInput="",p.value=_.text.join(`
306
+ `),Z(p))}else return;b.type=="cut"&&(c.state.cutIncoming=+new Date)}}be(p,"cut",m),be(p,"copy",m),be(r.scroller,"paste",function(b){if(!(Fr(r,b)||pt(c,b))){if(!p.dispatchEvent){c.state.pasteIncoming=+new Date,u.focus();return}var _=new Event("paste");_.clipboardData=b.clipboardData,p.dispatchEvent(_)}}),be(r.lineSpace,"selectstart",function(b){Fr(r,b)||Bt(b)}),be(p,"compositionstart",function(){var b=c.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:b,range:c.markText(b,c.getCursor("to"),{className:"CodeMirror-composing"})}}),be(p,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},mt.prototype.createField=function(r){this.wrapper=Bv(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Mf(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},mt.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var r=this.cm,s=r.display,u=r.doc,c=Nm(r);if(r.options.moveInputWithCursor){var p=Un(r,u.sel.primary().head,"div"),m=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,p.top+b.top-m.top)),c.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,p.left+b.left-m.left))}return c},mt.prototype.showSelection=function(r){var s=this.cm,u=s.display;L(u.cursorDiv,r.cursors),L(u.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},mt.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&Z(this.textarea),d&&h>=9&&(this.hasSelection=u)}else r||(this.prevInput=this.textarea.value="",d&&h>=9&&(this.hasSelection=null));this.resetting=!1}},mt.prototype.getField=function(){return this.textarea},mt.prototype.supportsTouch=function(){return!1},mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!V||pe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},mt.prototype.blur=function(){this.textarea.blur()},mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},mt.prototype.receivedFocus=function(){this.slowPoll()},mt.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},mt.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function u(){var c=s.poll();!c&&!r?(r=!0,s.polling.set(60,u)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,u)},mt.prototype.poll=function(){var r=this,s=this.cm,u=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Zr(u)&&!c&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var p=u.value;if(p==c&&!s.somethingSelected())return!1;if(d&&h>=9&&this.hasSelection===p||Y&&/[\uf700-\uf7ff]/.test(p))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var m=p.charCodeAt(0);if(m==8203&&!c&&(c="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,_=Math.min(c.length,p.length);b<_&&c.charCodeAt(b)==p.charCodeAt(b);)++b;return sn(s,function(){Rf(s,p.slice(b),c.length-b,null,r.composing?"*compose":null),p.length>1e3||p.indexOf(`
307
307
  `)>-1?u.value=r.prevInput="":r.prevInput=p,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},mt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},mt.prototype.onKeyPress=function(){d&&h>=9&&(this.hasSelection=null),this.fastPoll()},mt.prototype.onContextMenu=function(r){var s=this,u=s.cm,c=u.display,p=s.textarea;s.contextMenuPending&&s.contextMenuPending();var m=Io(u,r),b=c.scroller.scrollTop;if(!m||C)return;var _=u.options.resetSelectionOnContextMenu;_&&u.doc.sel.contains(m)==-1&&Dt(u,Vt)(u.doc,oo(m),Be);var k=p.style.cssText,w=s.wrapper.style.cssText,I=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px;
308
308
  top: `+(r.clientY-I.top-5)+"px; left: "+(r.clientX-I.left-5)+`px;
309
309
  z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
310
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;v&&(M=p.ownerDocument.defaultView.scrollY),c.input.focus(),v&&p.ownerDocument.defaultView.scrollTo(null,M),c.input.reset(),u.somethingSelected()||(p.value=s.prevInput=" "),s.contextMenuPending=z,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll);function W(){if(p.selectionStart!=null){var ce=u.somethingSelected(),ue="​"+(ce?p.value:"");p.value="⇚",p.value=ue,s.prevInput=ce?"":"​",p.selectionStart=1,p.selectionEnd=ue.length,c.selForContextMenu=u.doc.sel}}function z(){if(s.contextMenuPending==z&&(s.contextMenuPending=!1,s.wrapper.style.cssText=w,p.style.cssText=k,d&&h<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=b),p.selectionStart!=null)){(!d||d&&h<9)&&W();var ce=0,ue=function(){c.selForContextMenu==u.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&s.prevInput=="​"?Dt(u,av)(u):ce++<10?c.detectingSelectAll=setTimeout(ue,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(ue,200)}}if(d&&h>=9&&W(),Q){Sr(r);var ne=function(){Pt(window,"mouseup",ne),setTimeout(z,20)};be(window,"mouseup",ne)}else setTimeout(z,50)},mt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},mt.prototype.setUneditable=function(){},mt.prototype.needsContentAttribute=!1;function Yk(r,s){if(s=s?ye(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var u=pe(r.ownerDocument);s.autofocus=u==r||r.getAttribute("autofocus")!=null&&u==document.body}function c(){r.value=_.getValue()}var p;if(r.form&&(be(r.form,"submit",c),!s.leaveSubmitMethodAlone)){var m=r.form;p=m.submit;try{var b=m.submit=function(){c(),m.submit=p,m.submit(),m.submit=b}}catch{}}s.finishInit=function(k){k.save=c,k.getTextArea=function(){return r},k.toTextArea=function(){k.toTextArea=isNaN,c(),r.parentNode.removeChild(k.getWrapperElement()),r.style.display="",r.form&&(Pt(r.form,"submit",c),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=p))}},r.style.display="none";var _=ct(function(k){return r.parentNode.insertBefore(k,r.nextSibling)},s);return _}function Jk(r){r.off=Pt,r.on=be,r.wheelEventPixels=rk,r.Doc=Zt,r.splitLines=Cs,r.countColumn=he,r.findColumn=or,r.isWordChar=_s,r.Pass=Ve,r.signal=it,r.Line=yi,r.changeEnd=io,r.scrollbarModel=Mm,r.Pos=B,r.cmpPos=ee,r.modes=Vn,r.mimeModes=Xr,r.resolveMode=on,r.getMode=Tr,r.modeExtensions=Kr,r.extendMode=cc,r.copyState=Dr,r.startState=As,r.innerMode=eo,r.commands=Js,r.keyMap=Rr,r.keyName=xv,r.isModifierKey=_v,r.lookupKey=Ni,r.normalizeKeyMap=$k,r.StringStream=dt,r.SharedTextMarker=Ws,r.TextMarker=ao,r.LineWidget=Gs,r.e_preventDefault=Bt,r.e_stopPropagation=Do,r.e_stop=Sr,r.addClass=$e,r.contains=te,r.rmClass=_e,r.keyNames=co}Vk(ct),Hk(ct);var Zk="iter insert remove copy getEditor constructor".split(" ");for(var qc in Zt.prototype)Zt.prototype.hasOwnProperty(qc)&&De(Zk,qc)<0&&(ct.prototype[qc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Zt.prototype[qc]));return Ht(Zt),ct.inputStyles={textarea:mt,contenteditable:nt},ct.defineMode=function(r){!ct.defaults.mode&&r!="null"&&(ct.defaults.mode=r),ac.apply(this,arguments)},ct.defineMIME=vi,ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),ct.defineMIME("text/plain","null"),ct.defineExtension=function(r,s){ct.prototype[r]=s},ct.defineDocExtension=function(r,s){Zt.prototype[r]=s},ct.fromTextArea=Yk,Jk(ct),ct.version="5.65.13",ct})}(mp)),mp.exports}var K6e=Fu();const eUe=Y1(K6e);var tUe=function(e,n){return e.find(function(o){return o.name===n})};function P_(t,e,n,o,i){n[t.name]=!0;for(var a=t.fragmentDependencies,l=0;l<a.length;l+=1){var f=a[l],d=tUe(o,f.name.value);if(d){if(n[d.name]){console.error("The operation graph has a cycle");continue}e[d.name]||P_(d,e,n,o,i)}}n[t.name]=!1,e[t.name]=!0,i.push(t)}function nUe(t){var e=[],n={},o={},i=!0,a=!1,l=void 0;try{for(var f=t[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;!n[h.name]&&!o[h.name]&&P_(h,n,o,t,e)}}catch(v){a=!0,l=v}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return e}var rUe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ta=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ru=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),oUe=function(){var t=B_(regeneratorRuntime.mark(function e(n){var o,i;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:n})});case 2:return o=l.sent,l.next=5,o.json();case 5:if(i=l.sent,i.sandbox_id){l.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return l.abrupt("return",{sandboxId:i.sandbox_id});case 11:case"end":return l.stop()}},e,this)}));return function(n){return t.apply(this,arguments)}}();function iUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function R1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function B_(t){return function(){var e=t.apply(this,arguments);return new Promise(function(n,o){function i(a,l){try{var f=e[a](l),d=f.value}catch(h){o(h);return}if(f.done)n(d);else return Promise.resolve(d).then(function(h){i("next",h)},function(h){i("throw",h)})}return i("next")})}}function sUe(t){var e=/[A-Z]/g;return t.charAt(0).toUpperCase()+t.slice(1).replace(e,"_$&").toUpperCase()}var aUe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},L.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),L.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),cUe=L.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},L.createElement("g",null,L.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),V_=function(e){var n=e.query,o=e.variables,i=uUe(n),a=[],l=!0,f=!1,d=void 0;try{for(var h=i[Symbol.iterator](),v;!(l=(v=h.next()).done);l=!0){var y=v.value;y.kind==="FragmentDefinition"&&a.push(y)}}catch(C){f=!0,d=C}finally{try{!l&&h.return&&h.return()}finally{if(f)throw d}}var g=i.map(function(C){return{query:Je(C),name:M1(C),displayName:pUe(C),type:C.operation||"fragment",variableName:sUe(M1(C)),variables:fUe(o,C),operationDefinition:C,fragmentDependencies:lUe(a,C)}}),E=nUe(g);return{operationDefinitions:i,fragmentDefinitions:a,rawOperationDataList:g,operationDataList:E}},lUe=function(e,n){var o=function(f){return e.find(function(d){return d.name.value===f})},i=function l(f){var d=f.selections,h=d.map(function(y){return y.kind==="FragmentSpread"?o(y.name.value):null}).filter(Boolean),v=d.reduce(function(y,g){return(g.kind==="Field"||g.kind==="SelectionNode"||g.kind==="InlineFragment")&&g.selectionSet!==void 0?y.concat(l(g.selectionSet)):y},[]);return h.concat(v)},a=n.selectionSet;return i(a)},el=[null,null];function uUe(t){if(el[0]===t&&el[1])return el[1];var e=[];try{var n=!0,o=!1,i=void 0;try{for(var a=Zn(t).definitions[Symbol.iterator](),l;!(n=(l=a.next()).done);n=!0){var f=l.value;(f.kind==="FragmentDefinition"||f.kind==="OperationDefinition")&&e.push(f)}}catch(d){o=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}}catch{}return el=[t,e],e}var fUe=function(e,n){return(n.variableDefinitions||[]).reduce(function(o,i){var a=i.variable.name.value;return e[a]&&(o[a]=e[a]),o},{})},M1=function(e){return e.name?e.name.value:e.operation},pUe=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},q1=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={visible:!1},i.handleOpen=function(h){h.preventDefault(),i.setState({visible:!0}),i._subscribe()},o),oi(i,a)}return Ru(e,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var o=this,i=this.state.visible;return L.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(l){return l.preventDefault()},ref:function(l){o._node=l},title:this.props.title},this.props.label,L.createElement("svg",{width:"14",height:"8"},L.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),L.createElement("ul",{className:"toolbar-menu-items"+(i?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(o){this._node!==o.target&&(o.preventDefault(),this.setState({visible:!1}),this._release())}}]),e}(ie.Component),dUe=function(t){qu(e,t);function e(){return Mu(this,e),oi(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ru(e,[{key:"componentDidMount",value:function(){this.editor=eUe(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(o){this.props.code!==o.code&&this.editor.setValue(this.props.code),this.props.mode!==o.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==o.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var o=this;return L.createElement("div",{ref:function(a){return o._node=a}})}}]),e}(L.PureComponent),hUe=function(t){qu(e,t);function e(){var n,o=this,i,a,l;Mu(this,e);for(var f=arguments.length,d=Array(f),h=0;h<f;h++)d[h]=arguments[h];return l=(i=(a=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(d))),a),a.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},a._activeSnippet=function(){return a.props.snippet||a.state.snippet||a.props.snippets[0]},a.setSnippet=function(v){a.props.onSelectSnippet&&a.props.onSelectSnippet(v),a.setState({snippet:v,codesandboxResult:null})},a.setLanguage=function(v){var y=a.props.snippets.find(function(g){return g.language===v});y&&a.setSnippet(y)},a.handleSetOptionValue=function(v,y,g){a.props.onSetOptionValue&&a.props.onSetOptionValue(v,y,g);var E=a.state.optionValuesBySnippet,C=E.get(v)||{};return E.set(v,ta({},C,R1({},y,g))),a.setState({optionValuesBySnippet:E})},a.getOptionValues=function(v){var y=v.options.reduce(function(g,E){return ta({},g,R1({},E.id,E.initial))},{});return ta({},y,a.state.optionValuesBySnippet.get(v)||{},a.props.optionValues)},a._generateCodesandbox=function(){var v=B_(regeneratorRuntime.mark(function y(g){var E,C,S;return regeneratorRuntime.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(a.setState({codesandboxResult:{type:"loading"}}),E=a._activeSnippet(),E){D.next=5;break}return a.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),D.abrupt("return");case 5:if(C=E.generateCodesandboxFiles,C){D.next=9;break}return a.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),D.abrupt("return");case 9:return D.prev=9,D.next=12,oUe(C(a._collectOptions(E,g,a.props.schema)));case 12:S=D.sent,a.setState({codesandboxResult:ta({type:"success"},S)}),a.props.onGenerateCodesandbox&&a.props.onGenerateCodesandbox(S),D.next=21;break;case 17:D.prev=17,D.t0=D.catch(9),console.error("Error generating codesandbox",D.t0),a.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return D.stop()}},y,o,[[9,17]])}));return function(y){return v.apply(this,arguments)}}(),a._collectOptions=function(v,y,g){var E=a.props,C=E.serverUrl,S=E.context,N=S===void 0?{}:S,D=E.headers,T=D===void 0?{}:D,O=a.getOptionValues(v);return{serverUrl:C,headers:T,context:N,operationDataList:y,options:O,schema:g}},i),oi(a,l)}return Ru(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.query,l=i.snippets,f=i.variables,d=f===void 0?{}:f,h=this.state,v=h.showCopiedTooltip,y=h.codesandboxResult,g=this._activeSnippet(),E=g.name,C=g.language,S=g.generate,N=V_({query:a,variables:d}),D=N.operationDefinitions;N.fragmentDefinitions,N.rawOperationDataList;var T=N.operationDataList,O=this.getOptionValues(g),V=D.length?S(this._collectOptions(g,T,this.props.schema)):null,Y=g.generateCodesandboxFiles,P=[].concat(iUe(new Set(l.map(function(U){return U.language})))).sort(function(U,K){return U.localeCompare(K)});return L.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},L.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},L.createElement("div",{style:{padding:"12px 7px 8px"}},L.createElement(q1,{label:C,title:"Language"},P.map(function(U){return L.createElement("li",{key:U,onClick:function(){return o.setLanguage(U)}},U)})),L.createElement(q1,{label:E,title:"Mode"},l.filter(function(U){return U.language===C}).map(function(U){return L.createElement("li",{key:U.name,onClick:function(){return o.setSnippet(U)}},U.name)}))),g.options.length>0?L.createElement("div",{style:{padding:"0px 11px 10px"}},L.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),g.options.map(function(U){return L.createElement("div",{key:U.id},L.createElement("input",{id:U.id,type:"checkbox",style:{position:"relative",top:-1},checked:O[U.id],onChange:function(){return o.handleSetOptionValue(g,U.id,!O[U.id])}}),L.createElement("label",{htmlFor:U.id,style:{paddingLeft:5}},U.label))})):L.createElement("div",{style:{minHeight:8}}),Y?L.createElement("div",{style:{padding:"0 7px 8px"}},L.createElement("button",{className:"toolbar-button",style:ta({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},V?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!V,onClick:function(){return o._generateCodesandbox(T)}},cUe," ",L.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),y?L.createElement("div",{style:{paddingLeft:5,paddingTop:5}},y.type==="loading"?"Loading...":y.type==="error"?"Error: "+y.error:L.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+y.sandboxId},"Visit CodeSandbox")):null):null),L.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){tx(V),o.setState({showCopiedTooltip:!0},function(){return setTimeout(function(){return o.setState({showCopiedTooltip:!1})},450)})}},L.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:v?"block":"none"},pointerEvents:"none"},"Copied!"),aUe),L.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},V?L.createElement(dUe,{code:V,mode:g.codeMirrorMode,theme:this.props.codeMirrorTheme}):L.createElement("div",null,"The query is invalid.",L.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),e}(ie.Component),mUe=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1},o),oi(i,a)}return Ru(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?L.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",L.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),e}(L.Component);function vUe(t){var e=t.query,n=t.serverUrl,o=t.variables,i=t.context,a=i===void 0?{}:i,l=t.headers,f=l===void 0?{}:l,d=t.hideCodeExporter,h=d===void 0?function(){}:d,v=t.snippets,y=t.snippet,g=t.codeMirrorTheme,E=t.onSelectSnippet,C=t.onSetOptionValue,S=t.optionValues,N=t.onGenerateCodesandbox,D=t.schema,T={};try{var O=JSON.parse(o);(typeof O>"u"?"undefined":rUe(O))==="object"&&(T=O)}catch{}return L.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},L.createElement("div",{className:"doc-explorer-title-bar"},L.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("div",{className:"docExplorerHide",onClick:h},"✕"))),L.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},v.length?L.createElement(mUe,null,L.createElement(hUe,{query:e,serverUrl:n,snippets:v,snippet:y,context:a,headers:f,variables:T,codeMirrorTheme:g,onSelectSnippet:E,onSetOptionValue:C,optionValues:S||{},onGenerateCodesandbox:N,schema:D})):L.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))}function xr(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Mh(t,e){return function(n){return t?"// "+e[n]:""}}function j_(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function gUe(t){return[].concat(j_(new Set(t)))}var yUe=["query","mutation","subscription"];function U_(t){return yUe.indexOf(t.name.trim())===-1}function Jo(t,e){var n=[].concat(j_(new Array(e+1))).join(" ");return t.split(`
310
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;v&&(M=p.ownerDocument.defaultView.scrollY),c.input.focus(),v&&p.ownerDocument.defaultView.scrollTo(null,M),c.input.reset(),u.somethingSelected()||(p.value=s.prevInput=" "),s.contextMenuPending=z,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll);function W(){if(p.selectionStart!=null){var ce=u.somethingSelected(),ue="​"+(ce?p.value:"");p.value="⇚",p.value=ue,s.prevInput=ce?"":"​",p.selectionStart=1,p.selectionEnd=ue.length,c.selForContextMenu=u.doc.sel}}function z(){if(s.contextMenuPending==z&&(s.contextMenuPending=!1,s.wrapper.style.cssText=w,p.style.cssText=k,d&&h<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=b),p.selectionStart!=null)){(!d||d&&h<9)&&W();var ce=0,ue=function(){c.selForContextMenu==u.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&s.prevInput=="​"?Dt(u,av)(u):ce++<10?c.detectingSelectAll=setTimeout(ue,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(ue,200)}}if(d&&h>=9&&W(),Q){Sr(r);var ne=function(){Pt(window,"mouseup",ne),setTimeout(z,20)};be(window,"mouseup",ne)}else setTimeout(z,50)},mt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},mt.prototype.setUneditable=function(){},mt.prototype.needsContentAttribute=!1;function Yk(r,s){if(s=s?ye(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var u=pe(r.ownerDocument);s.autofocus=u==r||r.getAttribute("autofocus")!=null&&u==document.body}function c(){r.value=_.getValue()}var p;if(r.form&&(be(r.form,"submit",c),!s.leaveSubmitMethodAlone)){var m=r.form;p=m.submit;try{var b=m.submit=function(){c(),m.submit=p,m.submit(),m.submit=b}}catch{}}s.finishInit=function(k){k.save=c,k.getTextArea=function(){return r},k.toTextArea=function(){k.toTextArea=isNaN,c(),r.parentNode.removeChild(k.getWrapperElement()),r.style.display="",r.form&&(Pt(r.form,"submit",c),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=p))}},r.style.display="none";var _=ct(function(k){return r.parentNode.insertBefore(k,r.nextSibling)},s);return _}function Jk(r){r.off=Pt,r.on=be,r.wheelEventPixels=rk,r.Doc=Zt,r.splitLines=Cs,r.countColumn=he,r.findColumn=or,r.isWordChar=_s,r.Pass=Ve,r.signal=it,r.Line=yi,r.changeEnd=io,r.scrollbarModel=Mm,r.Pos=B,r.cmpPos=ee,r.modes=Vn,r.mimeModes=Xr,r.resolveMode=on,r.getMode=Tr,r.modeExtensions=Kr,r.extendMode=cc,r.copyState=Dr,r.startState=As,r.innerMode=eo,r.commands=Js,r.keyMap=Rr,r.keyName=xv,r.isModifierKey=_v,r.lookupKey=Ni,r.normalizeKeyMap=$k,r.StringStream=dt,r.SharedTextMarker=Ws,r.TextMarker=ao,r.LineWidget=Gs,r.e_preventDefault=Bt,r.e_stopPropagation=Do,r.e_stop=Sr,r.addClass=$e,r.contains=te,r.rmClass=_e,r.keyNames=co}Vk(ct),Hk(ct);var Zk="iter insert remove copy getEditor constructor".split(" ");for(var qc in Zt.prototype)Zt.prototype.hasOwnProperty(qc)&&De(Zk,qc)<0&&(ct.prototype[qc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Zt.prototype[qc]));return Ht(Zt),ct.inputStyles={textarea:mt,contenteditable:nt},ct.defineMode=function(r){!ct.defaults.mode&&r!="null"&&(ct.defaults.mode=r),ac.apply(this,arguments)},ct.defineMIME=vi,ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),ct.defineMIME("text/plain","null"),ct.defineExtension=function(r,s){ct.prototype[r]=s},ct.defineDocExtension=function(r,s){Zt.prototype[r]=s},ct.fromTextArea=Yk,Jk(ct),ct.version="5.65.13",ct})}(mp)),mp.exports}var K6e=Lu();const eUe=Y1(K6e);var tUe=function(e,n){return e.find(function(o){return o.name===n})};function P_(t,e,n,o,i){n[t.name]=!0;for(var a=t.fragmentDependencies,l=0;l<a.length;l+=1){var f=a[l],d=tUe(o,f.name.value);if(d){if(n[d.name]){console.error("The operation graph has a cycle");continue}e[d.name]||P_(d,e,n,o,i)}}n[t.name]=!1,e[t.name]=!0,i.push(t)}function nUe(t){var e=[],n={},o={},i=!0,a=!1,l=void 0;try{for(var f=t[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;!n[h.name]&&!o[h.name]&&P_(h,n,o,t,e)}}catch(v){a=!0,l=v}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return e}var rUe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ta=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ru=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),oUe=function(){var t=B_(regeneratorRuntime.mark(function e(n){var o,i;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:n})});case 2:return o=l.sent,l.next=5,o.json();case 5:if(i=l.sent,i.sandbox_id){l.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return l.abrupt("return",{sandboxId:i.sandbox_id});case 11:case"end":return l.stop()}},e,this)}));return function(n){return t.apply(this,arguments)}}();function iUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function R1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function B_(t){return function(){var e=t.apply(this,arguments);return new Promise(function(n,o){function i(a,l){try{var f=e[a](l),d=f.value}catch(h){o(h);return}if(f.done)n(d);else return Promise.resolve(d).then(function(h){i("next",h)},function(h){i("throw",h)})}return i("next")})}}function sUe(t){var e=/[A-Z]/g;return t.charAt(0).toUpperCase()+t.slice(1).replace(e,"_$&").toUpperCase()}var aUe=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},F.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),F.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),cUe=F.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},F.createElement("g",null,F.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),V_=function(e){var n=e.query,o=e.variables,i=uUe(n),a=[],l=!0,f=!1,d=void 0;try{for(var h=i[Symbol.iterator](),v;!(l=(v=h.next()).done);l=!0){var y=v.value;y.kind==="FragmentDefinition"&&a.push(y)}}catch(C){f=!0,d=C}finally{try{!l&&h.return&&h.return()}finally{if(f)throw d}}var g=i.map(function(C){return{query:Je(C),name:M1(C),displayName:pUe(C),type:C.operation||"fragment",variableName:sUe(M1(C)),variables:fUe(o,C),operationDefinition:C,fragmentDependencies:lUe(a,C)}}),E=nUe(g);return{operationDefinitions:i,fragmentDefinitions:a,rawOperationDataList:g,operationDataList:E}},lUe=function(e,n){var o=function(f){return e.find(function(d){return d.name.value===f})},i=function l(f){var d=f.selections,h=d.map(function(y){return y.kind==="FragmentSpread"?o(y.name.value):null}).filter(Boolean),v=d.reduce(function(y,g){return(g.kind==="Field"||g.kind==="SelectionNode"||g.kind==="InlineFragment")&&g.selectionSet!==void 0?y.concat(l(g.selectionSet)):y},[]);return h.concat(v)},a=n.selectionSet;return i(a)},el=[null,null];function uUe(t){if(el[0]===t&&el[1])return el[1];var e=[];try{var n=!0,o=!1,i=void 0;try{for(var a=Zn(t).definitions[Symbol.iterator](),l;!(n=(l=a.next()).done);n=!0){var f=l.value;(f.kind==="FragmentDefinition"||f.kind==="OperationDefinition")&&e.push(f)}}catch(d){o=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}}catch{}return el=[t,e],e}var fUe=function(e,n){return(n.variableDefinitions||[]).reduce(function(o,i){var a=i.variable.name.value;return e[a]&&(o[a]=e[a]),o},{})},M1=function(e){return e.name?e.name.value:e.operation},pUe=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},q1=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={visible:!1},i.handleOpen=function(h){h.preventDefault(),i.setState({visible:!0}),i._subscribe()},o),oi(i,a)}return Ru(e,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var o=this,i=this.state.visible;return F.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(l){return l.preventDefault()},ref:function(l){o._node=l},title:this.props.title},this.props.label,F.createElement("svg",{width:"14",height:"8"},F.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),F.createElement("ul",{className:"toolbar-menu-items"+(i?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(o){this._node!==o.target&&(o.preventDefault(),this.setState({visible:!1}),this._release())}}]),e}(ie.Component),dUe=function(t){qu(e,t);function e(){return Mu(this,e),oi(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ru(e,[{key:"componentDidMount",value:function(){this.editor=eUe(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(o){this.props.code!==o.code&&this.editor.setValue(this.props.code),this.props.mode!==o.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==o.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var o=this;return F.createElement("div",{ref:function(a){return o._node=a}})}}]),e}(F.PureComponent),hUe=function(t){qu(e,t);function e(){var n,o=this,i,a,l;Mu(this,e);for(var f=arguments.length,d=Array(f),h=0;h<f;h++)d[h]=arguments[h];return l=(i=(a=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(d))),a),a.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},a._activeSnippet=function(){return a.props.snippet||a.state.snippet||a.props.snippets[0]},a.setSnippet=function(v){a.props.onSelectSnippet&&a.props.onSelectSnippet(v),a.setState({snippet:v,codesandboxResult:null})},a.setLanguage=function(v){var y=a.props.snippets.find(function(g){return g.language===v});y&&a.setSnippet(y)},a.handleSetOptionValue=function(v,y,g){a.props.onSetOptionValue&&a.props.onSetOptionValue(v,y,g);var E=a.state.optionValuesBySnippet,C=E.get(v)||{};return E.set(v,ta({},C,R1({},y,g))),a.setState({optionValuesBySnippet:E})},a.getOptionValues=function(v){var y=v.options.reduce(function(g,E){return ta({},g,R1({},E.id,E.initial))},{});return ta({},y,a.state.optionValuesBySnippet.get(v)||{},a.props.optionValues)},a._generateCodesandbox=function(){var v=B_(regeneratorRuntime.mark(function y(g){var E,C,S;return regeneratorRuntime.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(a.setState({codesandboxResult:{type:"loading"}}),E=a._activeSnippet(),E){D.next=5;break}return a.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),D.abrupt("return");case 5:if(C=E.generateCodesandboxFiles,C){D.next=9;break}return a.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),D.abrupt("return");case 9:return D.prev=9,D.next=12,oUe(C(a._collectOptions(E,g,a.props.schema)));case 12:S=D.sent,a.setState({codesandboxResult:ta({type:"success"},S)}),a.props.onGenerateCodesandbox&&a.props.onGenerateCodesandbox(S),D.next=21;break;case 17:D.prev=17,D.t0=D.catch(9),console.error("Error generating codesandbox",D.t0),a.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return D.stop()}},y,o,[[9,17]])}));return function(y){return v.apply(this,arguments)}}(),a._collectOptions=function(v,y,g){var E=a.props,C=E.serverUrl,S=E.context,N=S===void 0?{}:S,D=E.headers,T=D===void 0?{}:D,O=a.getOptionValues(v);return{serverUrl:C,headers:T,context:N,operationDataList:y,options:O,schema:g}},i),oi(a,l)}return Ru(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.query,l=i.snippets,f=i.variables,d=f===void 0?{}:f,h=this.state,v=h.showCopiedTooltip,y=h.codesandboxResult,g=this._activeSnippet(),E=g.name,C=g.language,S=g.generate,N=V_({query:a,variables:d}),D=N.operationDefinitions;N.fragmentDefinitions,N.rawOperationDataList;var T=N.operationDataList,O=this.getOptionValues(g),V=D.length?S(this._collectOptions(g,T,this.props.schema)):null,Y=g.generateCodesandboxFiles,P=[].concat(iUe(new Set(l.map(function(U){return U.language})))).sort(function(U,K){return U.localeCompare(K)});return F.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},F.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},F.createElement("div",{style:{padding:"12px 7px 8px"}},F.createElement(q1,{label:C,title:"Language"},P.map(function(U){return F.createElement("li",{key:U,onClick:function(){return o.setLanguage(U)}},U)})),F.createElement(q1,{label:E,title:"Mode"},l.filter(function(U){return U.language===C}).map(function(U){return F.createElement("li",{key:U.name,onClick:function(){return o.setSnippet(U)}},U.name)}))),g.options.length>0?F.createElement("div",{style:{padding:"0px 11px 10px"}},F.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),g.options.map(function(U){return F.createElement("div",{key:U.id},F.createElement("input",{id:U.id,type:"checkbox",style:{position:"relative",top:-1},checked:O[U.id],onChange:function(){return o.handleSetOptionValue(g,U.id,!O[U.id])}}),F.createElement("label",{htmlFor:U.id,style:{paddingLeft:5}},U.label))})):F.createElement("div",{style:{minHeight:8}}),Y?F.createElement("div",{style:{padding:"0 7px 8px"}},F.createElement("button",{className:"toolbar-button",style:ta({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},V?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!V,onClick:function(){return o._generateCodesandbox(T)}},cUe," ",F.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),y?F.createElement("div",{style:{paddingLeft:5,paddingTop:5}},y.type==="loading"?"Loading...":y.type==="error"?"Error: "+y.error:F.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+y.sandboxId},"Visit CodeSandbox")):null):null),F.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){tx(V),o.setState({showCopiedTooltip:!0},function(){return setTimeout(function(){return o.setState({showCopiedTooltip:!1})},450)})}},F.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:v?"block":"none"},pointerEvents:"none"},"Copied!"),aUe),F.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},V?F.createElement(dUe,{code:V,mode:g.codeMirrorMode,theme:this.props.codeMirrorTheme}):F.createElement("div",null,"The query is invalid.",F.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),e}(ie.Component),mUe=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1},o),oi(i,a)}return Ru(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?F.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",F.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),e}(F.Component);function vUe(t){var e=t.query,n=t.serverUrl,o=t.variables,i=t.context,a=i===void 0?{}:i,l=t.headers,f=l===void 0?{}:l,d=t.hideCodeExporter,h=d===void 0?function(){}:d,v=t.snippets,y=t.snippet,g=t.codeMirrorTheme,E=t.onSelectSnippet,C=t.onSetOptionValue,S=t.optionValues,N=t.onGenerateCodesandbox,D=t.schema,T={};try{var O=JSON.parse(o);(typeof O>"u"?"undefined":rUe(O))==="object"&&(T=O)}catch{}return F.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},F.createElement("div",{className:"doc-explorer-title-bar"},F.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),F.createElement("div",{className:"doc-explorer-rhs"},F.createElement("div",{className:"docExplorerHide",onClick:h},"✕"))),F.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},v.length?F.createElement(mUe,null,F.createElement(hUe,{query:e,serverUrl:n,snippets:v,snippet:y,context:a,headers:f,variables:T,codeMirrorTheme:g,onSelectSnippet:E,onSetOptionValue:C,optionValues:S||{},onGenerateCodesandbox:N,schema:D})):F.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))}function xr(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Mh(t,e){return function(n){return t?"// "+e[n]:""}}function j_(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function gUe(t){return[].concat(j_(new Set(t)))}var yUe=["query","mutation","subscription"];function U_(t){return yUe.indexOf(t.name.trim())===-1}function Jo(t,e){var n=[].concat(j_(new Array(e+1))).join(" ");return t.split(`
311
311
  `).map(function(o){return""+n+o}).join(`
312
312
  `)}function z_(t){return t.replace(/\n{2,}/g,`
313
313
 
314
- `)}var bUe={exports:{}};(function(t,e){(function(n){n(Fu())})(function(n){n.defineMode("javascript",function(o,i){var a=o.indentUnit,l=i.statementIndent,f=i.jsonld,d=i.json||f,h=i.trackScope!==!1,v=i.typescript,y=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function A($t){return{type:$t,style:"keyword"}}var q=A("keyword a"),B=A("keyword b"),ee=A("keyword c"),Ne=A("keyword d"),je=A("operator"),We={type:"atom",style:"atom"};return{if:A("if"),while:q,with:q,else:B,do:B,try:B,finally:B,return:Ne,break:Ne,continue:Ne,new:A("new"),delete:ee,void:ee,throw:ee,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:je,typeof:je,instanceof:je,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:A("this"),class:A("class"),super:A("atom"),yield:ee,export:A("export"),import:A("import"),extends:ee,await:ee}}(),E=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function S(A){for(var q=!1,B,ee=!1;(B=A.next())!=null;){if(!q){if(B=="/"&&!ee)return;B=="["?ee=!0:ee&&B=="]"&&(ee=!1)}q=!q&&B=="\\"}}var N,D;function T(A,q,B){return N=A,D=B,q}function O(A,q){var B=A.next();if(B=='"'||B=="'")return q.tokenize=V(B),q.tokenize(A,q);if(B=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(B=="."&&A.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(B))return T(B);if(B=="="&&A.eat(">"))return T("=>","operator");if(B=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(B))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(B=="/")return A.eat("*")?(q.tokenize=Y,Y(A,q)):A.eat("/")?(A.skipToEnd(),T("comment","comment")):ur(A,q,1)?(S(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(A.eat("="),T("operator","operator",A.current()));if(B=="`")return q.tokenize=P,P(A,q);if(B=="#"&&A.peek()=="!")return A.skipToEnd(),T("meta","meta");if(B=="#"&&A.eatWhile(y))return T("variable","property");if(B=="<"&&A.match("!--")||B=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),T("comment","comment");if(E.test(B))return(B!=">"||!q.lexical||q.lexical.type!=">")&&(A.eat("=")?(B=="!"||B=="=")&&A.eat("="):/[<>*+\-|&?]/.test(B)&&(A.eat(B),B==">"&&A.eat(B))),B=="?"&&A.eat(".")?T("."):T("operator","operator",A.current());if(y.test(B)){A.eatWhile(y);var ee=A.current();if(q.lastType!="."){if(g.propertyIsEnumerable(ee)){var Ne=g[ee];return T(Ne.type,Ne.style,ee)}if(ee=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ee)}return T("variable","variable",ee)}}function V(A){return function(q,B){var ee=!1,Ne;if(f&&q.peek()=="@"&&q.match(C))return B.tokenize=O,T("jsonld-keyword","meta");for(;(Ne=q.next())!=null&&!(Ne==A&&!ee);)ee=!ee&&Ne=="\\";return ee||(B.tokenize=O),T("string","string")}}function Y(A,q){for(var B=!1,ee;ee=A.next();){if(ee=="/"&&B){q.tokenize=O;break}B=ee=="*"}return T("comment","comment")}function P(A,q){for(var B=!1,ee;(ee=A.next())!=null;){if(!B&&(ee=="`"||ee=="$"&&A.eat("{"))){q.tokenize=O;break}B=!B&&ee=="\\"}return T("quasi","string-2",A.current())}var U="([{}])";function K(A,q){q.fatArrowAt&&(q.fatArrowAt=null);var B=A.string.indexOf("=>",A.start);if(!(B<0)){if(v){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,B));ee&&(B=ee.index)}for(var Ne=0,je=!1,We=B-1;We>=0;--We){var $t=A.string.charAt(We),pn=U.indexOf($t);if(pn>=0&&pn<3){if(!Ne){++We;break}if(--Ne==0){$t=="("&&(je=!0);break}}else if(pn>=3&&pn<6)++Ne;else if(y.test($t))je=!0;else if(/["'\/`]/.test($t))for(;;--We){if(We==0)return;var Oe=A.string.charAt(We-1);if(Oe==$t&&A.string.charAt(We-2)!="\\"){We--;break}}else if(je&&!Ne){++We;break}}je&&!Ne&&(q.fatArrowAt=We)}}var G={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Q(A,q,B,ee,Ne,je){this.indented=A,this.column=q,this.type=B,this.prev=Ne,this.info=je,ee!=null&&(this.align=ee)}function re(A,q){if(!h)return!1;for(var B=A.localVars;B;B=B.next)if(B.name==q)return!0;for(var ee=A.context;ee;ee=ee.prev)for(var B=ee.vars;B;B=B.next)if(B.name==q)return!0}function _e(A,q,B,ee,Ne){var je=A.cc;for(H.state=A,H.stream=Ne,H.marked=null,H.cc=je,H.style=q,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var We=je.length?je.pop():d?Ve:De;if(We(B,ee)){for(;je.length&&je[je.length-1].lex;)je.pop()();return H.marked?H.marked:B=="variable"&&re(A,ee)?"variable-2":q}}}var H={state:null,column:null,marked:null,cc:null};function F(){for(var A=arguments.length-1;A>=0;A--)H.cc.push(arguments[A])}function x(){return F.apply(null,arguments),!0}function j(A,q){for(var B=q;B;B=B.next)if(B.name==A)return!0;return!1}function J(A){var q=H.state;if(H.marked="def",!!h){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var B=te(A,q.context);if(B!=null){q.context=B;return}}else if(!j(A,q.localVars)){q.localVars=new Me(A,q.localVars);return}}i.globalVars&&!j(A,q.globalVars)&&(q.globalVars=new Me(A,q.globalVars))}}function te(A,q){if(q)if(q.block){var B=te(A,q.prev);return B?B==q.prev?q:new $e(B,q.vars,!0):null}else return j(A,q.vars)?q:new $e(q.prev,new Me(A,q.vars),!1);else return null}function pe(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function $e(A,q,B){this.prev=A,this.vars=q,this.block=B}function Me(A,q){this.name=A,this.next=q}var Z=new Me("this",new Me("arguments",null));function fe(){H.state.context=new $e(H.state.context,H.state.localVars,!1),H.state.localVars=Z}function de(){H.state.context=new $e(H.state.context,H.state.localVars,!0),H.state.localVars=null}fe.lex=de.lex=!0;function ge(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}ge.lex=!0;function ye(A,q){var B=function(){var ee=H.state,Ne=ee.indented;if(ee.lexical.type=="stat")Ne=ee.lexical.indented;else for(var je=ee.lexical;je&&je.type==")"&&je.align;je=je.prev)Ne=je.indented;ee.lexical=new Q(Ne,H.stream.column(),A,null,ee.lexical,q)};return B.lex=!0,B}function he(){var A=H.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}he.lex=!0;function ke(A){function q(B){return B==A?x():A==";"||B=="}"||B==")"||B=="]"?F():x(q)}return q}function De(A,q){return A=="var"?x(ye("vardef",q),Sr,ke(";"),he):A=="keyword a"?x(ye("form"),So,De,he):A=="keyword b"?x(ye("form"),De,he):A=="keyword d"?H.stream.match(/^\s*$/,!1)?x():x(ye("stat"),or,ke(";"),he):A=="debugger"?x(ke(";")):A=="{"?x(ye("}"),de,ar,he,ge):A==";"?x():A=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==he&&H.state.cc.pop()(),x(ye("form"),So,De,he,mi)):A=="function"?x(cr):A=="for"?x(ye("form"),de,ic,De,ge,he):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form",A=="class"?A:q),ac,he)):A=="variable"?v&&q=="declare"?(H.marked="keyword",x(De)):v&&(q=="module"||q=="enum"||q=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",q=="enum"?x(gi):q=="type"?x(sc,ke("operator"),be,ke(";")):x(ye("form"),Yt,ke("{"),ye("}"),ar,he,he)):v&&q=="namespace"?(H.marked="keyword",x(ye("form"),Ve,De,he)):v&&q=="abstract"?(H.marked="keyword",x(De)):x(ye("stat"),di):A=="switch"?x(ye("form"),So,ke("{"),ye("}","switch"),de,ar,he,he,ge):A=="case"?x(Ve,ke(":")):A=="default"?x(ke(":")):A=="catch"?x(ye("form"),fe,xn,De,he,ge):A=="export"?x(ye("stat"),Kr,he):A=="import"?x(ye("stat"),Dr,he):A=="async"?x(De):q=="@"?x(Ve,De):F(ye("stat"),Ve,ke(";"),he)}function xn(A){if(A=="(")return x(Vn,ke(")"))}function Ve(A,q){return Jr(A,q,!1)}function Be(A,q){return Jr(A,q,!0)}function So(A){return A!="("?F():x(ye(")"),or,ke(")"),he)}function Jr(A,q,B){if(H.state.fatArrowAt==H.stream.start){var ee=B?Es:ec;if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,ke("=>"),ee,ge);if(A=="variable")return F(fe,Yt,ke("=>"),ee,ge)}var Ne=B?ir:wn;return G.hasOwnProperty(A)?x(Ne):A=="function"?x(cr,Ne):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form"),Xr,he)):A=="keyword c"||A=="async"?x(B?Be:Ve):A=="("?x(ye(")"),or,ke(")"),he,Ne):A=="operator"||A=="spread"?x(B?Be:Ve):A=="["?x(ye("]"),Nr,he,Ne):A=="{"?To(hi,"}",null,Ne):A=="quasi"?F(ze,Ne):A=="new"?x(tc(B)):x()}function or(A){return A.match(/[;\}\)\],]/)?F():F(Ve)}function wn(A,q){return A==","?x(or):ir(A,q,!1)}function ir(A,q,B){var ee=B==!1?wn:ir,Ne=B==!1?Ve:Be;if(A=="=>")return x(fe,B?Es:ec,ge);if(A=="operator")return/\+\+|--/.test(q)||v&&q=="!"?x(ee):v&&q=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ye(">"),ft(be,">"),he,ee):q=="?"?x(Ve,ke(":"),Ne):x(Ne);if(A=="quasi")return F(ze,ee);if(A!=";"){if(A=="(")return To(Be,")","call",ee);if(A==".")return x(nc,ee);if(A=="[")return x(ye("]"),or,ke("]"),he,ee);if(v&&q=="as")return H.marked="keyword",x(be,ee);if(A=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),x(Ne)}}function ze(A,q){return A!="quasi"?F():q.slice(q.length-2)!="${"?x(ze):x(or,pi)}function pi(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(ze)}function ec(A){return K(H.stream,H.state),F(A=="{"?De:Ve)}function Es(A){return K(H.stream,H.state),F(A=="{"?De:Be)}function tc(A){return function(q){return q=="."?x(A?_s:Uu):q=="variable"&&v?x(Bt,A?ir:wn):F(A?Be:Ve)}}function Uu(A,q){if(q=="target")return H.marked="keyword",x(wn)}function _s(A,q){if(q=="target")return H.marked="keyword",x(ir)}function di(A){return A==":"?x(he,De):F(wn,ke(";"),he)}function nc(A){if(A=="variable")return H.marked="property",x()}function hi(A,q){if(A=="async")return H.marked="property",x(hi);if(A=="variable"||H.style=="keyword"){if(H.marked="property",q=="get"||q=="set")return x(ks);var B;return v&&H.state.fatArrowAt==H.stream.start&&(B=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+B[0].length),x(sr)}else{if(A=="number"||A=="string")return H.marked=f?"property":H.style+" property",x(sr);if(A=="jsonld-keyword")return x(sr);if(v&&pe(q))return H.marked="keyword",x(hi);if(A=="[")return x(Ve,$n,ke("]"),sr);if(A=="spread")return x(Be,sr);if(q=="*")return H.marked="keyword",x(hi);if(A==":")return F(sr)}}function ks(A){return A!="variable"?F(sr):(H.marked="property",x(cr))}function sr(A){if(A==":")return x(Be);if(A=="(")return F(cr)}function ft(A,q,B){function ee(Ne,je){if(B?B.indexOf(Ne)>-1:Ne==","){var We=H.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),x(function($t,pn){return $t==q||pn==q?F():F(A)},ee)}return Ne==q||je==q?x():B&&B.indexOf(";")>-1?F(A):x(ke(q))}return function(Ne,je){return Ne==q||je==q?x():F(A,ee)}}function To(A,q,B){for(var ee=3;ee<arguments.length;ee++)H.cc.push(arguments[ee]);return x(ye(q,B),ft(A,q),he)}function ar(A){return A=="}"?x():F(De,ar)}function $n(A,q){if(v){if(A==":")return x(be);if(q=="?")return x($n)}}function zu(A,q){if(v&&(A==":"||q=="in"))return x(be)}function Cn(A){if(v&&A==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?x(Ve,rc,be):x(be)}function rc(A,q){if(q=="is")return H.marked="keyword",x()}function be(A,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return H.marked="keyword",x(q=="typeof"?Be:be);if(A=="variable"||q=="void")return H.marked="type",x(Ht);if(q=="|"||q=="&")return x(be);if(A=="string"||A=="number"||A=="atom")return x(Ht);if(A=="[")return x(ye("]"),ft(be,"]",","),he,Ht);if(A=="{")return x(ye("}"),Pt,he,Ht);if(A=="(")return x(ft(zt,")"),xs,Ht);if(A=="<")return x(ft(be,">"),be);if(A=="quasi")return F(pt,Ht)}function xs(A){if(A=="=>")return x(be)}function Pt(A){return A.match(/[\}\)\]]/)?x():A==","||A==";"?x(Pt):F(it,Pt)}function it(A,q){if(A=="variable"||H.style=="keyword")return H.marked="property",x(it);if(q=="?"||A=="number"||A=="string")return x(it);if(A==":")return x(be);if(A=="[")return x(ke("variable"),zu,ke("]"),it);if(A=="(")return F(lr,it);if(!A.match(/[;\}\)\],]/))return x()}function pt(A,q){return A!="quasi"?F():q.slice(q.length-2)!="${"?x(pt):x(be,oc)}function oc(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(pt)}function zt(A,q){return A=="variable"&&H.stream.match(/^\s*[?:]/,!1)||q=="?"?x(zt):A==":"?x(be):A=="spread"?x(zt):F(be)}function Ht(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht);if(q=="|"||A=="."||q=="&")return x(be);if(A=="[")return x(be,ke("]"),Ht);if(q=="extends"||q=="implements")return H.marked="keyword",x(be);if(q=="?")return x(be,ke(":"),be)}function Bt(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht)}function Do(){return F(be,ws)}function ws(A,q){if(q=="=")return x(be)}function Sr(A,q){return q=="enum"?(H.marked="keyword",x(gi)):F(Yt,$n,An,Gu)}function Yt(A,q){if(v&&pe(q))return H.marked="keyword",x(Yt);if(A=="variable")return J(q),x();if(A=="spread")return x(Yt);if(A=="[")return To(Hu,"]");if(A=="{")return To($s,"}")}function $s(A,q){return A=="variable"&&!H.stream.match(/^\s*:/,!1)?(J(q),x(An)):(A=="variable"&&(H.marked="property"),A=="spread"?x(Yt):A=="}"?F():A=="["?x(Ve,ke("]"),ke(":"),$s):x(ke(":"),Yt,An))}function Hu(){return F(Yt,An)}function An(A,q){if(q=="=")return x(Be)}function Gu(A){if(A==",")return x(Sr)}function mi(A,q){if(A=="keyword b"&&q=="else")return x(ye("form","else"),De,he)}function ic(A,q){if(q=="await")return x(ic);if(A=="(")return x(ye(")"),Cs,he)}function Cs(A){return A=="var"?x(Sr,Zr):A=="variable"?x(Zr):F(Zr)}function Zr(A,q){return A==")"?x():A==";"?x(Zr):q=="in"||q=="of"?(H.marked="keyword",x(Ve,Zr)):F(Ve,Zr)}function cr(A,q){if(q=="*")return H.marked="keyword",x(cr);if(A=="variable")return J(q),x(cr);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,De,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,cr)}function lr(A,q){if(q=="*")return H.marked="keyword",x(lr);if(A=="variable")return J(q),x(lr);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,lr)}function sc(A,q){if(A=="keyword"||A=="variable")return H.marked="type",x(sc);if(q=="<")return x(ye(">"),ft(Do,">"),he)}function Vn(A,q){return q=="@"&&x(Ve,Vn),A=="spread"?x(Vn):v&&pe(q)?(H.marked="keyword",x(Vn)):v&&A=="this"?x($n,An):F(Yt,$n,An)}function Xr(A,q){return A=="variable"?ac(A,q):vi(A,q)}function ac(A,q){if(A=="variable")return J(q),x(vi)}function vi(A,q){if(q=="<")return x(ye(">"),ft(Do,">"),he,vi);if(q=="extends"||q=="implements"||v&&A==",")return q=="implements"&&(H.marked="keyword"),x(v?be:Ve,vi);if(A=="{")return x(ye("}"),on,he)}function on(A,q){if(A=="async"||A=="variable"&&(q=="static"||q=="get"||q=="set"||v&&pe(q))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",x(on);if(A=="variable"||H.style=="keyword")return H.marked="property",x(Tr,on);if(A=="number"||A=="string")return x(Tr,on);if(A=="[")return x(Ve,$n,ke("]"),Tr,on);if(q=="*")return H.marked="keyword",x(on);if(v&&A=="(")return F(lr,on);if(A==";"||A==",")return x(on);if(A=="}")return x();if(q=="@")return x(Ve,on)}function Tr(A,q){if(q=="!"||q=="?")return x(Tr);if(A==":")return x(be,An);if(q=="=")return x(Be);var B=H.state.lexical.prev,ee=B&&B.info=="interface";return F(ee?lr:cr)}function Kr(A,q){return q=="*"?(H.marked="keyword",x(we,ke(";"))):q=="default"?(H.marked="keyword",x(Ve,ke(";"))):A=="{"?x(ft(cc,"}"),we,ke(";")):F(De)}function cc(A,q){if(q=="as")return H.marked="keyword",x(ke("variable"));if(A=="variable")return F(Be,cc)}function Dr(A){return A=="string"?x():A=="("?F(Ve):A=="."?F(wn):F(eo,As,we)}function eo(A,q){return A=="{"?To(eo,"}"):(A=="variable"&&J(q),q=="*"&&(H.marked="keyword"),x(dt))}function As(A){if(A==",")return x(eo,As)}function dt(A,q){if(q=="as")return H.marked="keyword",x(eo)}function we(A,q){if(q=="from")return H.marked="keyword",x(Ve)}function Nr(A){return A=="]"?x():F(ft(Be,"]"))}function gi(){return F(ye("form"),Yt,ke("{"),ye("}"),ft(Sn,"}"),he,he)}function Sn(){return F(Yt,An)}function Qe(A,q){return A.lastType=="operator"||A.lastType==","||E.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function ur(A,q,B){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(B||0)))}return{startState:function(A){var q={tokenize:O,lastType:"sof",cc:[],lexical:new Q((A||0)-a,0,"block",!1),localVars:i.localVars,context:i.localVars&&new $e(null,null,!1),indented:A||0};return i.globalVars&&typeof i.globalVars=="object"&&(q.globalVars=i.globalVars),q},token:function(A,q){if(A.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=A.indentation(),K(A,q)),q.tokenize!=Y&&A.eatSpace())return null;var B=q.tokenize(A,q);return N=="comment"?B:(q.lastType=N=="operator"&&(D=="++"||D=="--")?"incdec":N,_e(q,B,N,D,A))},indent:function(A,q){if(A.tokenize==Y||A.tokenize==P)return n.Pass;if(A.tokenize!=O)return 0;var B=q&&q.charAt(0),ee=A.lexical,Ne;if(!/^\s*else\b/.test(q))for(var je=A.cc.length-1;je>=0;--je){var We=A.cc[je];if(We==he)ee=ee.prev;else if(We!=mi&&We!=ge)break}for(;(ee.type=="stat"||ee.type=="form")&&(B=="}"||(Ne=A.cc[A.cc.length-1])&&(Ne==wn||Ne==ir)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;l&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var $t=ee.type,pn=B==$t;return $t=="vardef"?ee.indented+(A.lastType=="operator"||A.lastType==","?ee.info.length+1:0):$t=="form"&&B=="{"?ee.indented:$t=="form"?ee.indented+a:$t=="stat"?ee.indented+(Qe(A,q)?l||a:0):ee.info=="switch"&&!pn&&i.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(pn?0:1):ee.indented+(pn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:f,jsonMode:d,expressionAllowed:ur,skipExpression:function(A){_e(A,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var EUe=bUe.exports,_Ue=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},H_=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),kUe=[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],xUe={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};function wUe(t){var e=t.map(function(n){return n.query}).join(`
314
+ `)}var bUe={exports:{}};(function(t,e){(function(n){n(Lu())})(function(n){n.defineMode("javascript",function(o,i){var a=o.indentUnit,l=i.statementIndent,f=i.jsonld,d=i.json||f,h=i.trackScope!==!1,v=i.typescript,y=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function A($t){return{type:$t,style:"keyword"}}var q=A("keyword a"),B=A("keyword b"),ee=A("keyword c"),Ne=A("keyword d"),je=A("operator"),We={type:"atom",style:"atom"};return{if:A("if"),while:q,with:q,else:B,do:B,try:B,finally:B,return:Ne,break:Ne,continue:Ne,new:A("new"),delete:ee,void:ee,throw:ee,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:je,typeof:je,instanceof:je,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:A("this"),class:A("class"),super:A("atom"),yield:ee,export:A("export"),import:A("import"),extends:ee,await:ee}}(),E=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function S(A){for(var q=!1,B,ee=!1;(B=A.next())!=null;){if(!q){if(B=="/"&&!ee)return;B=="["?ee=!0:ee&&B=="]"&&(ee=!1)}q=!q&&B=="\\"}}var N,D;function T(A,q,B){return N=A,D=B,q}function O(A,q){var B=A.next();if(B=='"'||B=="'")return q.tokenize=V(B),q.tokenize(A,q);if(B=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(B=="."&&A.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(B))return T(B);if(B=="="&&A.eat(">"))return T("=>","operator");if(B=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(B))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(B=="/")return A.eat("*")?(q.tokenize=Y,Y(A,q)):A.eat("/")?(A.skipToEnd(),T("comment","comment")):ur(A,q,1)?(S(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(A.eat("="),T("operator","operator",A.current()));if(B=="`")return q.tokenize=P,P(A,q);if(B=="#"&&A.peek()=="!")return A.skipToEnd(),T("meta","meta");if(B=="#"&&A.eatWhile(y))return T("variable","property");if(B=="<"&&A.match("!--")||B=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),T("comment","comment");if(E.test(B))return(B!=">"||!q.lexical||q.lexical.type!=">")&&(A.eat("=")?(B=="!"||B=="=")&&A.eat("="):/[<>*+\-|&?]/.test(B)&&(A.eat(B),B==">"&&A.eat(B))),B=="?"&&A.eat(".")?T("."):T("operator","operator",A.current());if(y.test(B)){A.eatWhile(y);var ee=A.current();if(q.lastType!="."){if(g.propertyIsEnumerable(ee)){var Ne=g[ee];return T(Ne.type,Ne.style,ee)}if(ee=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ee)}return T("variable","variable",ee)}}function V(A){return function(q,B){var ee=!1,Ne;if(f&&q.peek()=="@"&&q.match(C))return B.tokenize=O,T("jsonld-keyword","meta");for(;(Ne=q.next())!=null&&!(Ne==A&&!ee);)ee=!ee&&Ne=="\\";return ee||(B.tokenize=O),T("string","string")}}function Y(A,q){for(var B=!1,ee;ee=A.next();){if(ee=="/"&&B){q.tokenize=O;break}B=ee=="*"}return T("comment","comment")}function P(A,q){for(var B=!1,ee;(ee=A.next())!=null;){if(!B&&(ee=="`"||ee=="$"&&A.eat("{"))){q.tokenize=O;break}B=!B&&ee=="\\"}return T("quasi","string-2",A.current())}var U="([{}])";function K(A,q){q.fatArrowAt&&(q.fatArrowAt=null);var B=A.string.indexOf("=>",A.start);if(!(B<0)){if(v){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,B));ee&&(B=ee.index)}for(var Ne=0,je=!1,We=B-1;We>=0;--We){var $t=A.string.charAt(We),pn=U.indexOf($t);if(pn>=0&&pn<3){if(!Ne){++We;break}if(--Ne==0){$t=="("&&(je=!0);break}}else if(pn>=3&&pn<6)++Ne;else if(y.test($t))je=!0;else if(/["'\/`]/.test($t))for(;;--We){if(We==0)return;var Oe=A.string.charAt(We-1);if(Oe==$t&&A.string.charAt(We-2)!="\\"){We--;break}}else if(je&&!Ne){++We;break}}je&&!Ne&&(q.fatArrowAt=We)}}var G={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Q(A,q,B,ee,Ne,je){this.indented=A,this.column=q,this.type=B,this.prev=Ne,this.info=je,ee!=null&&(this.align=ee)}function re(A,q){if(!h)return!1;for(var B=A.localVars;B;B=B.next)if(B.name==q)return!0;for(var ee=A.context;ee;ee=ee.prev)for(var B=ee.vars;B;B=B.next)if(B.name==q)return!0}function _e(A,q,B,ee,Ne){var je=A.cc;for(H.state=A,H.stream=Ne,H.marked=null,H.cc=je,H.style=q,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var We=je.length?je.pop():d?Ve:De;if(We(B,ee)){for(;je.length&&je[je.length-1].lex;)je.pop()();return H.marked?H.marked:B=="variable"&&re(A,ee)?"variable-2":q}}}var H={state:null,column:null,marked:null,cc:null};function L(){for(var A=arguments.length-1;A>=0;A--)H.cc.push(arguments[A])}function x(){return L.apply(null,arguments),!0}function j(A,q){for(var B=q;B;B=B.next)if(B.name==A)return!0;return!1}function J(A){var q=H.state;if(H.marked="def",!!h){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var B=te(A,q.context);if(B!=null){q.context=B;return}}else if(!j(A,q.localVars)){q.localVars=new Me(A,q.localVars);return}}i.globalVars&&!j(A,q.globalVars)&&(q.globalVars=new Me(A,q.globalVars))}}function te(A,q){if(q)if(q.block){var B=te(A,q.prev);return B?B==q.prev?q:new $e(B,q.vars,!0):null}else return j(A,q.vars)?q:new $e(q.prev,new Me(A,q.vars),!1);else return null}function pe(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function $e(A,q,B){this.prev=A,this.vars=q,this.block=B}function Me(A,q){this.name=A,this.next=q}var Z=new Me("this",new Me("arguments",null));function fe(){H.state.context=new $e(H.state.context,H.state.localVars,!1),H.state.localVars=Z}function de(){H.state.context=new $e(H.state.context,H.state.localVars,!0),H.state.localVars=null}fe.lex=de.lex=!0;function ge(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}ge.lex=!0;function ye(A,q){var B=function(){var ee=H.state,Ne=ee.indented;if(ee.lexical.type=="stat")Ne=ee.lexical.indented;else for(var je=ee.lexical;je&&je.type==")"&&je.align;je=je.prev)Ne=je.indented;ee.lexical=new Q(Ne,H.stream.column(),A,null,ee.lexical,q)};return B.lex=!0,B}function he(){var A=H.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}he.lex=!0;function ke(A){function q(B){return B==A?x():A==";"||B=="}"||B==")"||B=="]"?L():x(q)}return q}function De(A,q){return A=="var"?x(ye("vardef",q),Sr,ke(";"),he):A=="keyword a"?x(ye("form"),So,De,he):A=="keyword b"?x(ye("form"),De,he):A=="keyword d"?H.stream.match(/^\s*$/,!1)?x():x(ye("stat"),or,ke(";"),he):A=="debugger"?x(ke(";")):A=="{"?x(ye("}"),de,ar,he,ge):A==";"?x():A=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==he&&H.state.cc.pop()(),x(ye("form"),So,De,he,mi)):A=="function"?x(cr):A=="for"?x(ye("form"),de,ic,De,ge,he):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form",A=="class"?A:q),ac,he)):A=="variable"?v&&q=="declare"?(H.marked="keyword",x(De)):v&&(q=="module"||q=="enum"||q=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",q=="enum"?x(gi):q=="type"?x(sc,ke("operator"),be,ke(";")):x(ye("form"),Yt,ke("{"),ye("}"),ar,he,he)):v&&q=="namespace"?(H.marked="keyword",x(ye("form"),Ve,De,he)):v&&q=="abstract"?(H.marked="keyword",x(De)):x(ye("stat"),di):A=="switch"?x(ye("form"),So,ke("{"),ye("}","switch"),de,ar,he,he,ge):A=="case"?x(Ve,ke(":")):A=="default"?x(ke(":")):A=="catch"?x(ye("form"),fe,xn,De,he,ge):A=="export"?x(ye("stat"),Kr,he):A=="import"?x(ye("stat"),Dr,he):A=="async"?x(De):q=="@"?x(Ve,De):L(ye("stat"),Ve,ke(";"),he)}function xn(A){if(A=="(")return x(Vn,ke(")"))}function Ve(A,q){return Jr(A,q,!1)}function Be(A,q){return Jr(A,q,!0)}function So(A){return A!="("?L():x(ye(")"),or,ke(")"),he)}function Jr(A,q,B){if(H.state.fatArrowAt==H.stream.start){var ee=B?Es:ec;if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,ke("=>"),ee,ge);if(A=="variable")return L(fe,Yt,ke("=>"),ee,ge)}var Ne=B?ir:wn;return G.hasOwnProperty(A)?x(Ne):A=="function"?x(cr,Ne):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form"),Xr,he)):A=="keyword c"||A=="async"?x(B?Be:Ve):A=="("?x(ye(")"),or,ke(")"),he,Ne):A=="operator"||A=="spread"?x(B?Be:Ve):A=="["?x(ye("]"),Nr,he,Ne):A=="{"?To(hi,"}",null,Ne):A=="quasi"?L(ze,Ne):A=="new"?x(tc(B)):x()}function or(A){return A.match(/[;\}\)\],]/)?L():L(Ve)}function wn(A,q){return A==","?x(or):ir(A,q,!1)}function ir(A,q,B){var ee=B==!1?wn:ir,Ne=B==!1?Ve:Be;if(A=="=>")return x(fe,B?Es:ec,ge);if(A=="operator")return/\+\+|--/.test(q)||v&&q=="!"?x(ee):v&&q=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ye(">"),ft(be,">"),he,ee):q=="?"?x(Ve,ke(":"),Ne):x(Ne);if(A=="quasi")return L(ze,ee);if(A!=";"){if(A=="(")return To(Be,")","call",ee);if(A==".")return x(nc,ee);if(A=="[")return x(ye("]"),or,ke("]"),he,ee);if(v&&q=="as")return H.marked="keyword",x(be,ee);if(A=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),x(Ne)}}function ze(A,q){return A!="quasi"?L():q.slice(q.length-2)!="${"?x(ze):x(or,pi)}function pi(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(ze)}function ec(A){return K(H.stream,H.state),L(A=="{"?De:Ve)}function Es(A){return K(H.stream,H.state),L(A=="{"?De:Be)}function tc(A){return function(q){return q=="."?x(A?_s:Uu):q=="variable"&&v?x(Bt,A?ir:wn):L(A?Be:Ve)}}function Uu(A,q){if(q=="target")return H.marked="keyword",x(wn)}function _s(A,q){if(q=="target")return H.marked="keyword",x(ir)}function di(A){return A==":"?x(he,De):L(wn,ke(";"),he)}function nc(A){if(A=="variable")return H.marked="property",x()}function hi(A,q){if(A=="async")return H.marked="property",x(hi);if(A=="variable"||H.style=="keyword"){if(H.marked="property",q=="get"||q=="set")return x(ks);var B;return v&&H.state.fatArrowAt==H.stream.start&&(B=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+B[0].length),x(sr)}else{if(A=="number"||A=="string")return H.marked=f?"property":H.style+" property",x(sr);if(A=="jsonld-keyword")return x(sr);if(v&&pe(q))return H.marked="keyword",x(hi);if(A=="[")return x(Ve,$n,ke("]"),sr);if(A=="spread")return x(Be,sr);if(q=="*")return H.marked="keyword",x(hi);if(A==":")return L(sr)}}function ks(A){return A!="variable"?L(sr):(H.marked="property",x(cr))}function sr(A){if(A==":")return x(Be);if(A=="(")return L(cr)}function ft(A,q,B){function ee(Ne,je){if(B?B.indexOf(Ne)>-1:Ne==","){var We=H.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),x(function($t,pn){return $t==q||pn==q?L():L(A)},ee)}return Ne==q||je==q?x():B&&B.indexOf(";")>-1?L(A):x(ke(q))}return function(Ne,je){return Ne==q||je==q?x():L(A,ee)}}function To(A,q,B){for(var ee=3;ee<arguments.length;ee++)H.cc.push(arguments[ee]);return x(ye(q,B),ft(A,q),he)}function ar(A){return A=="}"?x():L(De,ar)}function $n(A,q){if(v){if(A==":")return x(be);if(q=="?")return x($n)}}function zu(A,q){if(v&&(A==":"||q=="in"))return x(be)}function Cn(A){if(v&&A==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?x(Ve,rc,be):x(be)}function rc(A,q){if(q=="is")return H.marked="keyword",x()}function be(A,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return H.marked="keyword",x(q=="typeof"?Be:be);if(A=="variable"||q=="void")return H.marked="type",x(Ht);if(q=="|"||q=="&")return x(be);if(A=="string"||A=="number"||A=="atom")return x(Ht);if(A=="[")return x(ye("]"),ft(be,"]",","),he,Ht);if(A=="{")return x(ye("}"),Pt,he,Ht);if(A=="(")return x(ft(zt,")"),xs,Ht);if(A=="<")return x(ft(be,">"),be);if(A=="quasi")return L(pt,Ht)}function xs(A){if(A=="=>")return x(be)}function Pt(A){return A.match(/[\}\)\]]/)?x():A==","||A==";"?x(Pt):L(it,Pt)}function it(A,q){if(A=="variable"||H.style=="keyword")return H.marked="property",x(it);if(q=="?"||A=="number"||A=="string")return x(it);if(A==":")return x(be);if(A=="[")return x(ke("variable"),zu,ke("]"),it);if(A=="(")return L(lr,it);if(!A.match(/[;\}\)\],]/))return x()}function pt(A,q){return A!="quasi"?L():q.slice(q.length-2)!="${"?x(pt):x(be,oc)}function oc(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(pt)}function zt(A,q){return A=="variable"&&H.stream.match(/^\s*[?:]/,!1)||q=="?"?x(zt):A==":"?x(be):A=="spread"?x(zt):L(be)}function Ht(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht);if(q=="|"||A=="."||q=="&")return x(be);if(A=="[")return x(be,ke("]"),Ht);if(q=="extends"||q=="implements")return H.marked="keyword",x(be);if(q=="?")return x(be,ke(":"),be)}function Bt(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht)}function Do(){return L(be,ws)}function ws(A,q){if(q=="=")return x(be)}function Sr(A,q){return q=="enum"?(H.marked="keyword",x(gi)):L(Yt,$n,An,Gu)}function Yt(A,q){if(v&&pe(q))return H.marked="keyword",x(Yt);if(A=="variable")return J(q),x();if(A=="spread")return x(Yt);if(A=="[")return To(Hu,"]");if(A=="{")return To($s,"}")}function $s(A,q){return A=="variable"&&!H.stream.match(/^\s*:/,!1)?(J(q),x(An)):(A=="variable"&&(H.marked="property"),A=="spread"?x(Yt):A=="}"?L():A=="["?x(Ve,ke("]"),ke(":"),$s):x(ke(":"),Yt,An))}function Hu(){return L(Yt,An)}function An(A,q){if(q=="=")return x(Be)}function Gu(A){if(A==",")return x(Sr)}function mi(A,q){if(A=="keyword b"&&q=="else")return x(ye("form","else"),De,he)}function ic(A,q){if(q=="await")return x(ic);if(A=="(")return x(ye(")"),Cs,he)}function Cs(A){return A=="var"?x(Sr,Zr):A=="variable"?x(Zr):L(Zr)}function Zr(A,q){return A==")"?x():A==";"?x(Zr):q=="in"||q=="of"?(H.marked="keyword",x(Ve,Zr)):L(Ve,Zr)}function cr(A,q){if(q=="*")return H.marked="keyword",x(cr);if(A=="variable")return J(q),x(cr);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,De,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,cr)}function lr(A,q){if(q=="*")return H.marked="keyword",x(lr);if(A=="variable")return J(q),x(lr);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,lr)}function sc(A,q){if(A=="keyword"||A=="variable")return H.marked="type",x(sc);if(q=="<")return x(ye(">"),ft(Do,">"),he)}function Vn(A,q){return q=="@"&&x(Ve,Vn),A=="spread"?x(Vn):v&&pe(q)?(H.marked="keyword",x(Vn)):v&&A=="this"?x($n,An):L(Yt,$n,An)}function Xr(A,q){return A=="variable"?ac(A,q):vi(A,q)}function ac(A,q){if(A=="variable")return J(q),x(vi)}function vi(A,q){if(q=="<")return x(ye(">"),ft(Do,">"),he,vi);if(q=="extends"||q=="implements"||v&&A==",")return q=="implements"&&(H.marked="keyword"),x(v?be:Ve,vi);if(A=="{")return x(ye("}"),on,he)}function on(A,q){if(A=="async"||A=="variable"&&(q=="static"||q=="get"||q=="set"||v&&pe(q))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",x(on);if(A=="variable"||H.style=="keyword")return H.marked="property",x(Tr,on);if(A=="number"||A=="string")return x(Tr,on);if(A=="[")return x(Ve,$n,ke("]"),Tr,on);if(q=="*")return H.marked="keyword",x(on);if(v&&A=="(")return L(lr,on);if(A==";"||A==",")return x(on);if(A=="}")return x();if(q=="@")return x(Ve,on)}function Tr(A,q){if(q=="!"||q=="?")return x(Tr);if(A==":")return x(be,An);if(q=="=")return x(Be);var B=H.state.lexical.prev,ee=B&&B.info=="interface";return L(ee?lr:cr)}function Kr(A,q){return q=="*"?(H.marked="keyword",x(we,ke(";"))):q=="default"?(H.marked="keyword",x(Ve,ke(";"))):A=="{"?x(ft(cc,"}"),we,ke(";")):L(De)}function cc(A,q){if(q=="as")return H.marked="keyword",x(ke("variable"));if(A=="variable")return L(Be,cc)}function Dr(A){return A=="string"?x():A=="("?L(Ve):A=="."?L(wn):L(eo,As,we)}function eo(A,q){return A=="{"?To(eo,"}"):(A=="variable"&&J(q),q=="*"&&(H.marked="keyword"),x(dt))}function As(A){if(A==",")return x(eo,As)}function dt(A,q){if(q=="as")return H.marked="keyword",x(eo)}function we(A,q){if(q=="from")return H.marked="keyword",x(Ve)}function Nr(A){return A=="]"?x():L(ft(Be,"]"))}function gi(){return L(ye("form"),Yt,ke("{"),ye("}"),ft(Sn,"}"),he,he)}function Sn(){return L(Yt,An)}function Qe(A,q){return A.lastType=="operator"||A.lastType==","||E.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function ur(A,q,B){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(B||0)))}return{startState:function(A){var q={tokenize:O,lastType:"sof",cc:[],lexical:new Q((A||0)-a,0,"block",!1),localVars:i.localVars,context:i.localVars&&new $e(null,null,!1),indented:A||0};return i.globalVars&&typeof i.globalVars=="object"&&(q.globalVars=i.globalVars),q},token:function(A,q){if(A.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=A.indentation(),K(A,q)),q.tokenize!=Y&&A.eatSpace())return null;var B=q.tokenize(A,q);return N=="comment"?B:(q.lastType=N=="operator"&&(D=="++"||D=="--")?"incdec":N,_e(q,B,N,D,A))},indent:function(A,q){if(A.tokenize==Y||A.tokenize==P)return n.Pass;if(A.tokenize!=O)return 0;var B=q&&q.charAt(0),ee=A.lexical,Ne;if(!/^\s*else\b/.test(q))for(var je=A.cc.length-1;je>=0;--je){var We=A.cc[je];if(We==he)ee=ee.prev;else if(We!=mi&&We!=ge)break}for(;(ee.type=="stat"||ee.type=="form")&&(B=="}"||(Ne=A.cc[A.cc.length-1])&&(Ne==wn||Ne==ir)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;l&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var $t=ee.type,pn=B==$t;return $t=="vardef"?ee.indented+(A.lastType=="operator"||A.lastType==","?ee.info.length+1:0):$t=="form"&&B=="{"?ee.indented:$t=="form"?ee.indented+a:$t=="stat"?ee.indented+(Qe(A,q)?l||a:0):ee.info=="switch"&&!pn&&i.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(pn?0:1):ee.indented+(pn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:f,jsonMode:d,expressionAllowed:ur,skipExpression:function(A){_e(A,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var EUe=bUe.exports,_Ue=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},H_=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),kUe=[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],xUe={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};function wUe(t){var e=t.map(function(n){return n.query}).join(`
315
315
 
316
316
  `).trim();return"const operationsDoc = `\n"+Jo(e,2)+"\n`;"}var qh="fetchGraphQL";function fa(t){var e=t.type,n=e==="query"?"fetch":e==="mutation"?"execute":e==="subscription"?"subscribeTo":"",o=n+(n.length>0?xr(t.name):t.name);return o}function $Ue(t,e){return"function "+qh+`(operationsDoc, operationName, variables) {
317
317
  return fetch(
@@ -409,7 +409,7 @@ to your service.
409
409
 
410
410
  `+Y+`
411
411
 
412
- `+P;return z_(U.trim())}},P1={exports:{}},B1;function NUe(){return B1||(B1=1,function(t,e){(function(n){n(Fu())})(function(n){var o={autoSelfClosers:{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},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{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}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(a,l){var f=a.indentUnit,d={},h=l.htmlMode?o:i;for(var v in h)d[v]=h[v];for(var v in l)d[v]=l[v];var y,g;function E(x,j){function J($e){return j.tokenize=$e,$e(x,j)}var te=x.next();if(te=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?J(N("atom","]]>")):null:x.match("--")?J(N("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),J(D(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),j.tokenize=N("meta","?>"),"meta"):(y=x.eat("/")?"closeTag":"openTag",j.tokenize=C,"tag bracket");if(te=="&"){var pe;return x.eat("#")?x.eat("x")?pe=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):pe=x.eatWhile(/[\d]/)&&x.eat(";"):pe=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),pe?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function C(x,j){var J=x.next();if(J==">"||J=="/"&&x.eat(">"))return j.tokenize=E,y=J==">"?"endTag":"selfcloseTag","tag bracket";if(J=="=")return y="equals",null;if(J=="<"){j.tokenize=E,j.state=P,j.tagName=j.tagStart=null;var te=j.tokenize(x,j);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(J)?(j.tokenize=S(J),j.stringStartCol=x.column(),j.tokenize(x,j)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(x){var j=function(J,te){for(;!J.eol();)if(J.next()==x){te.tokenize=C;break}return"string"};return j.isInAttribute=!0,j}function N(x,j){return function(J,te){for(;!J.eol();){if(J.match(j)){te.tokenize=E;break}J.next()}return x}}function D(x){return function(j,J){for(var te;(te=j.next())!=null;){if(te=="<")return J.tokenize=D(x+1),J.tokenize(j,J);if(te==">")if(x==1){J.tokenize=E;break}else return J.tokenize=D(x-1),J.tokenize(j,J)}return"meta"}}function T(x){return x&&x.toLowerCase()}function O(x,j,J){this.prev=x.context,this.tagName=j||"",this.indent=x.indented,this.startOfLine=J,(d.doNotIndent.hasOwnProperty(j)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function V(x){x.context&&(x.context=x.context.prev)}function Y(x,j){for(var J;;){if(!x.context||(J=x.context.tagName,!d.contextGrabbers.hasOwnProperty(T(J))||!d.contextGrabbers[T(J)].hasOwnProperty(T(j))))return;V(x)}}function P(x,j,J){return x=="openTag"?(J.tagStart=j.column(),U):x=="closeTag"?K:P}function U(x,j,J){return x=="word"?(J.tagName=j.current(),g="tag",re):d.allowMissingTagName&&x=="endTag"?(g="tag bracket",re(x,j,J)):(g="error",U)}function K(x,j,J){if(x=="word"){var te=j.current();return J.context&&J.context.tagName!=te&&d.implicitlyClosed.hasOwnProperty(T(J.context.tagName))&&V(J),J.context&&J.context.tagName==te||d.matchClosing===!1?(g="tag",G):(g="tag error",Q)}else return d.allowMissingTagName&&x=="endTag"?(g="tag bracket",G(x,j,J)):(g="error",Q)}function G(x,j,J){return x!="endTag"?(g="error",G):(V(J),P)}function Q(x,j,J){return g="error",G(x,j,J)}function re(x,j,J){if(x=="word")return g="attribute",_e;if(x=="endTag"||x=="selfcloseTag"){var te=J.tagName,pe=J.tagStart;return J.tagName=J.tagStart=null,x=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(T(te))?Y(J,te):(Y(J,te),J.context=new O(J,te,pe==J.indented)),P}return g="error",re}function _e(x,j,J){return x=="equals"?H:(d.allowMissing||(g="error"),re(x,j,J))}function H(x,j,J){return x=="string"?F:x=="word"&&d.allowUnquoted?(g="string",re):(g="error",re(x,j,J))}function F(x,j,J){return x=="string"?F:re(x,j,J)}return{startState:function(x){var j={tokenize:E,state:P,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(j.baseIndent=x),j},token:function(x,j){if(!j.tagName&&x.sol()&&(j.indented=x.indentation()),x.eatSpace())return null;y=null;var J=j.tokenize(x,j);return(J||y)&&J!="comment"&&(g=null,j.state=j.state(y||J,x,j),g&&(J=g=="error"?J+" error":g)),J},indent:function(x,j,J){var te=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+f;if(te&&te.noIndent)return n.Pass;if(x.tokenize!=C&&x.tokenize!=E)return J?J.match(/^(\s*)/)[0].length:0;if(x.tagName)return d.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(j))return 0;var pe=j&&/^<(\/)?([\w_:\.-]*)/.exec(j);if(pe&&pe[1])for(;te;)if(te.tagName==pe[2]){te=te.prev;break}else if(d.implicitlyClosed.hasOwnProperty(T(te.tagName)))te=te.prev;else break;else if(pe)for(;te;){var $e=d.contextGrabbers[T(te.tagName)];if($e&&$e.hasOwnProperty(T(pe[2])))te=te.prev;else break}for(;te&&te.prev&&!te.startOfLine;)te=te.prev;return te?te.indent+f:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(x){x.state==H&&(x.state=re)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var j=[],J=x.context;J;J=J.prev)j.push(J.tagName);return j.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),P1.exports}(function(t,e){(function(n){n(Fu(),NUe(),EUe)})(function(n){function o(a,l,f,d){this.state=a,this.mode=l,this.depth=f,this.prev=d}function i(a){return new o(n.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&i(a.prev))}n.defineMode("jsx",function(a,l){var f=n.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=n.getMode(a,l&&l.base||"javascript");function h(E){var C=E.tagName;E.tagName=null;var S=f.indent(E,"","");return E.tagName=C,S}function v(E,C){return C.context.mode==f?y(E,C,C.context):g(E,C,C.context)}function y(E,C,S){if(S.depth==2)return E.match(/^.*?\*\//)?S.depth=1:E.skipToEnd(),"comment";if(E.peek()=="{"){f.skipAttribute(S.state);var N=h(S.state),D=S.state.context;if(D&&E.match(/^[^>]*>\s*$/,!1)){for(;D.prev&&!D.startOfLine;)D=D.prev;D.startOfLine?N-=a.indentUnit:S.prev.state.lexical&&(N=S.prev.state.lexical.indented)}else S.depth==1&&(N+=a.indentUnit);return C.context=new o(n.startState(d,N),d,0,C.context),null}if(S.depth==1){if(E.peek()=="<")return f.skipAttribute(S.state),C.context=new o(n.startState(f,h(S.state)),f,0,C.context),null;if(E.match("//"))return E.skipToEnd(),"comment";if(E.match("/*"))return S.depth=2,v(E,C)}var T=f.token(E,S.state),O=E.current(),V;return/\btag\b/.test(T)?/>$/.test(O)?S.state.context?S.depth=0:C.context=C.context.prev:/^</.test(O)&&(S.depth=1):!T&&(V=O.indexOf("{"))>-1&&E.backUp(O.length-V),T}function g(E,C,S){if(E.peek()=="<"&&d.expressionAllowed(E,S.state))return C.context=new o(n.startState(f,d.indent(S.state,"","")),f,0,C.context),d.skipExpression(S.state),null;var N=d.token(E,S.state);if(!N&&S.depth!=null){var D=E.current();D=="{"?S.depth++:D=="}"&&--S.depth==0&&(C.context=C.context.prev)}return N}return{startState:function(){return{context:new o(n.startState(d),d)}},copyState:function(E){return{context:i(E.context)}},token:v,indent:function(E,C,S){return E.context.mode.indent(E.context.state,C,S)},innerMode:function(E){return E.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var OUe=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),IUe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function LUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var FUe={setup:"This setup is only needed once per application"};function RUe(t){var e=t.name;return e.charAt(0).toUpperCase()+e.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}function Ta(t){var e=t.type;return RUe(t)+"_"+e.toUpperCase()}function Ph(t){var e=(t.operationDefinition.variableDefinitions||[]).map(function(l){return l.variable.name.value}),n=e.map(function(l){return'"'+l+'": '+l}).join(", "),o="{"+n+"}",i=e.map(function(l){return'"'+l+'": props.'+l}).join(", "),a="{"+i+"}";return{params:e,variables:o,props:a}}function V1(t){var e=t.type,n=e==="query"?"Query":e==="mutation"?"Mutation":e==="subscription"?"Subscription":"";return n.length>0?""+xr(t.name)+n:xr(t.name)}function MUe(t,e,n,o,i,a){var l=Ph(o),f=l.params,d=l.variables,h=o.name+"("+(f.length===0?"":""+d)+")",v="() => "+h;return`<Mutation
412
+ `+P;return z_(U.trim())}},P1={exports:{}},B1;function NUe(){return B1||(B1=1,function(t,e){(function(n){n(Lu())})(function(n){var o={autoSelfClosers:{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},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{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}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(a,l){var f=a.indentUnit,d={},h=l.htmlMode?o:i;for(var v in h)d[v]=h[v];for(var v in l)d[v]=l[v];var y,g;function E(x,j){function J($e){return j.tokenize=$e,$e(x,j)}var te=x.next();if(te=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?J(N("atom","]]>")):null:x.match("--")?J(N("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),J(D(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),j.tokenize=N("meta","?>"),"meta"):(y=x.eat("/")?"closeTag":"openTag",j.tokenize=C,"tag bracket");if(te=="&"){var pe;return x.eat("#")?x.eat("x")?pe=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):pe=x.eatWhile(/[\d]/)&&x.eat(";"):pe=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),pe?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function C(x,j){var J=x.next();if(J==">"||J=="/"&&x.eat(">"))return j.tokenize=E,y=J==">"?"endTag":"selfcloseTag","tag bracket";if(J=="=")return y="equals",null;if(J=="<"){j.tokenize=E,j.state=P,j.tagName=j.tagStart=null;var te=j.tokenize(x,j);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(J)?(j.tokenize=S(J),j.stringStartCol=x.column(),j.tokenize(x,j)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(x){var j=function(J,te){for(;!J.eol();)if(J.next()==x){te.tokenize=C;break}return"string"};return j.isInAttribute=!0,j}function N(x,j){return function(J,te){for(;!J.eol();){if(J.match(j)){te.tokenize=E;break}J.next()}return x}}function D(x){return function(j,J){for(var te;(te=j.next())!=null;){if(te=="<")return J.tokenize=D(x+1),J.tokenize(j,J);if(te==">")if(x==1){J.tokenize=E;break}else return J.tokenize=D(x-1),J.tokenize(j,J)}return"meta"}}function T(x){return x&&x.toLowerCase()}function O(x,j,J){this.prev=x.context,this.tagName=j||"",this.indent=x.indented,this.startOfLine=J,(d.doNotIndent.hasOwnProperty(j)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function V(x){x.context&&(x.context=x.context.prev)}function Y(x,j){for(var J;;){if(!x.context||(J=x.context.tagName,!d.contextGrabbers.hasOwnProperty(T(J))||!d.contextGrabbers[T(J)].hasOwnProperty(T(j))))return;V(x)}}function P(x,j,J){return x=="openTag"?(J.tagStart=j.column(),U):x=="closeTag"?K:P}function U(x,j,J){return x=="word"?(J.tagName=j.current(),g="tag",re):d.allowMissingTagName&&x=="endTag"?(g="tag bracket",re(x,j,J)):(g="error",U)}function K(x,j,J){if(x=="word"){var te=j.current();return J.context&&J.context.tagName!=te&&d.implicitlyClosed.hasOwnProperty(T(J.context.tagName))&&V(J),J.context&&J.context.tagName==te||d.matchClosing===!1?(g="tag",G):(g="tag error",Q)}else return d.allowMissingTagName&&x=="endTag"?(g="tag bracket",G(x,j,J)):(g="error",Q)}function G(x,j,J){return x!="endTag"?(g="error",G):(V(J),P)}function Q(x,j,J){return g="error",G(x,j,J)}function re(x,j,J){if(x=="word")return g="attribute",_e;if(x=="endTag"||x=="selfcloseTag"){var te=J.tagName,pe=J.tagStart;return J.tagName=J.tagStart=null,x=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(T(te))?Y(J,te):(Y(J,te),J.context=new O(J,te,pe==J.indented)),P}return g="error",re}function _e(x,j,J){return x=="equals"?H:(d.allowMissing||(g="error"),re(x,j,J))}function H(x,j,J){return x=="string"?L:x=="word"&&d.allowUnquoted?(g="string",re):(g="error",re(x,j,J))}function L(x,j,J){return x=="string"?L:re(x,j,J)}return{startState:function(x){var j={tokenize:E,state:P,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(j.baseIndent=x),j},token:function(x,j){if(!j.tagName&&x.sol()&&(j.indented=x.indentation()),x.eatSpace())return null;y=null;var J=j.tokenize(x,j);return(J||y)&&J!="comment"&&(g=null,j.state=j.state(y||J,x,j),g&&(J=g=="error"?J+" error":g)),J},indent:function(x,j,J){var te=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+f;if(te&&te.noIndent)return n.Pass;if(x.tokenize!=C&&x.tokenize!=E)return J?J.match(/^(\s*)/)[0].length:0;if(x.tagName)return d.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(j))return 0;var pe=j&&/^<(\/)?([\w_:\.-]*)/.exec(j);if(pe&&pe[1])for(;te;)if(te.tagName==pe[2]){te=te.prev;break}else if(d.implicitlyClosed.hasOwnProperty(T(te.tagName)))te=te.prev;else break;else if(pe)for(;te;){var $e=d.contextGrabbers[T(te.tagName)];if($e&&$e.hasOwnProperty(T(pe[2])))te=te.prev;else break}for(;te&&te.prev&&!te.startOfLine;)te=te.prev;return te?te.indent+f:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(x){x.state==H&&(x.state=re)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var j=[],J=x.context;J;J=J.prev)j.push(J.tagName);return j.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),P1.exports}(function(t,e){(function(n){n(Lu(),NUe(),EUe)})(function(n){function o(a,l,f,d){this.state=a,this.mode=l,this.depth=f,this.prev=d}function i(a){return new o(n.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&i(a.prev))}n.defineMode("jsx",function(a,l){var f=n.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=n.getMode(a,l&&l.base||"javascript");function h(E){var C=E.tagName;E.tagName=null;var S=f.indent(E,"","");return E.tagName=C,S}function v(E,C){return C.context.mode==f?y(E,C,C.context):g(E,C,C.context)}function y(E,C,S){if(S.depth==2)return E.match(/^.*?\*\//)?S.depth=1:E.skipToEnd(),"comment";if(E.peek()=="{"){f.skipAttribute(S.state);var N=h(S.state),D=S.state.context;if(D&&E.match(/^[^>]*>\s*$/,!1)){for(;D.prev&&!D.startOfLine;)D=D.prev;D.startOfLine?N-=a.indentUnit:S.prev.state.lexical&&(N=S.prev.state.lexical.indented)}else S.depth==1&&(N+=a.indentUnit);return C.context=new o(n.startState(d,N),d,0,C.context),null}if(S.depth==1){if(E.peek()=="<")return f.skipAttribute(S.state),C.context=new o(n.startState(f,h(S.state)),f,0,C.context),null;if(E.match("//"))return E.skipToEnd(),"comment";if(E.match("/*"))return S.depth=2,v(E,C)}var T=f.token(E,S.state),O=E.current(),V;return/\btag\b/.test(T)?/>$/.test(O)?S.state.context?S.depth=0:C.context=C.context.prev:/^</.test(O)&&(S.depth=1):!T&&(V=O.indexOf("{"))>-1&&E.backUp(O.length-V),T}function g(E,C,S){if(E.peek()=="<"&&d.expressionAllowed(E,S.state))return C.context=new o(n.startState(f,d.indent(S.state,"","")),f,0,C.context),d.skipExpression(S.state),null;var N=d.token(E,S.state);if(!N&&S.depth!=null){var D=E.current();D=="{"?S.depth++:D=="}"&&--S.depth==0&&(C.context=C.context.prev)}return N}return{startState:function(){return{context:new o(n.startState(d),d)}},copyState:function(E){return{context:i(E.context)}},token:v,indent:function(E,C,S){return E.context.mode.indent(E.context.state,C,S)},innerMode:function(E){return E.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var OUe=function(){function t(e,n){var o=[],i=!0,a=!1,l=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw l}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),IUe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function FUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var LUe={setup:"This setup is only needed once per application"};function RUe(t){var e=t.name;return e.charAt(0).toUpperCase()+e.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}function Ta(t){var e=t.type;return RUe(t)+"_"+e.toUpperCase()}function Ph(t){var e=(t.operationDefinition.variableDefinitions||[]).map(function(l){return l.variable.name.value}),n=e.map(function(l){return'"'+l+'": '+l}).join(", "),o="{"+n+"}",i=e.map(function(l){return'"'+l+'": props.'+l}).join(", "),a="{"+i+"}";return{params:e,variables:o,props:a}}function V1(t){var e=t.type,n=e==="query"?"Query":e==="mutation"?"Mutation":e==="subscription"?"Subscription":"";return n.length>0?""+xr(t.name)+n:xr(t.name)}function MUe(t,e,n,o,i,a){var l=Ph(o),f=l.params,d=l.variables,h=o.name+"("+(f.length===0?"":""+d)+")",v="() => "+h;return`<Mutation
413
413
  mutation={`+Ta(o)+"}"+(i==="{}"?"":`
414
414
  context={{ headers: `+i+` }}
415
415
  `)+`>
@@ -458,9 +458,9 @@ to your service.
458
458
  )
459
459
  }
460
460
  }}
461
- </Query>`},PUe={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var n=e.headers,o=e.options,i=e.serverUrl,a=Mh(!0,FUe),l=e.operationDataList.map(function(U,K){return U_(U)?U:IUe({},U,{name:("unnamed"+xr(U.type)+(K+1)).trim(),query:"# Consider giving this "+U.type+` a unique, descriptive
461
+ </Query>`},PUe={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var n=e.headers,o=e.options,i=e.serverUrl,a=Mh(!0,LUe),l=e.operationDataList.map(function(U,K){return U_(U)?U:IUe({},U,{name:("unnamed"+xr(U.type)+(K+1)).trim(),query:"# Consider giving this "+U.type+` a unique, descriptive
462
462
  # name in your application as a best practice
463
- `+U.type+" unnamed"+xr(U.type)+(K+1)+" "+U.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),f=o.reactNative?"View":"pre";JSON.stringify({},null,2);var d=[].concat(LUe(Object.keys(n||[]))).filter(function(U){return n[U]}).map(function(U){return'"'+U+'": "'+n[U]+'"'}).join(`,
463
+ `+U.type+" unnamed"+xr(U.type)+(K+1)+" "+U.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),f=o.reactNative?"View":"pre";JSON.stringify({},null,2);var d=[].concat(FUe(Object.keys(n||[]))).filter(function(U){return n[U]}).map(function(U){return'"'+U+'": "'+n[U]+'"'}).join(`,
464
464
  `),h="{"+d+"}",v=`/*
465
465
  Add these to your \`package.json\`:
466
466
  "apollo-boost": "^0.3.1",
@@ -713,7 +713,7 @@ to your service.
713
713
 
714
714
  `+Y+`
715
715
 
716
- ReactDOM.render(container, document.getElementById("root"));`;return(0,Bi.collapseExtraNewlines)(P.trim())}};Uh.default=bze;Object.defineProperty(Bh,"__esModule",{value:!0});var Eze=Vh,_ze=Z_(Eze),kze=Uh,xze=Z_(kze);function Z_(t){return t&&t.__esModule?t:{default:t}}Bh.default=[_ze.default,xze.default];const wze=ii(Vae),$ze=ii(nx),Cze=ii(rx);var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.graphQLFetcher=void 0;var Aze=Lh;const Sze=t=>{const e=(0,Aze.parse)(t.query);for(const n of e.definitions)if(n.kind==="OperationDefinition"&&n.operation==="subscription")return!0;return!1},Tze=(t,e)=>{let n=null;return o=>(t&&n!==null&&t.unsubscribe(n),t&&Sze(o)?{subscribe(i){i.next("Your subscription data will appear here after server publication!"),n=t.subscribe({query:o.query,variables:o.variables},(a,l)=>{a?i.error(a):i.next(l)})}}:e(o))};Vu.graphQLFetcher=Tze;Object.defineProperty(Z1,"__esModule",{value:!0});var Dze=Z1.default=ju,uo=ie,qr=fi(Q1),Nze=ax,Oze=fi(ox),Ize=fi(cx),Ho=fi(S6e),Lze=fi(Ka),Fze=fi(jUe),Rze=fi(Bh),U1=Lh,X_=wze,z1=$ze,tl=Cze,Mze=Vu,cn=J1,H1;const qze=["endpoint","title","enableCodeExporter","enableQueryComposer","enableHistory","extraCodeSnippets"];function fi(t){return t&&t.__esModule?t:{default:t}}function Pze(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function G1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function W1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G1(Object(n),!0).forEach(function(o){Bze(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Bze(t,e,n){return e=Vze(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vze(t){var e=jze(t,"string");return typeof e=="symbol"?e:String(e)}function jze(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uze(t,e){if(t==null)return{};var n=zze(t,e),o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)o=a[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function zze(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,a;for(a=0;a<o.length;a++)i=o[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Hze(){const{toggle:t}=(0,X_.useHistoryContext)();return(0,cn.jsx)(Ho.default.Button,{onClick:t,label:"History",title:"Show History"})}function Gze(){const t=(0,X_.usePrettifyEditors)();return(0,cn.jsx)(Ho.default.Button,{onClick:t,label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"})}function ju(t){const e=(0,tl.mergeProps)(t,ju,["style","persistentQuery","enableQueryComposer","enableCodeExporter","enableHistory"]),n=(0,z1.useLocation)(),o=(0,z1.useNavigate)(),i=(0,uo.useRef)(null),a=(0,uo.useRef)(null),[l,f]=(0,uo.useState)(null),[d,h]=(0,uo.useState)(e.defaultQuery||"{}"),[v,y]=(0,uo.useState)(e.enableQueryComposer),[g,E]=(0,uo.useState)(!1),C=H=>{const{pathname:F,search:x}=n,j=(0,tl.parseQuery)(x);j.query=H;const J="".concat(F,"?").concat((0,tl.stringifyQuery)(j));o(J)};(0,uo.useEffect)(()=>{if(e.persistentQuery){const H=(0,tl.parseQuery)(window.location.search);H.query?h(H.query):C(d)}},[]);const S=H=>{H!==d&&e.persistentQuery&&C(H),h(H)},N=()=>{y(!v)},D=()=>E(!g),T=()=>{a.current&&(a.current.close(),a.current=null);const{endpoint:H}=e;let F=H.replace(/https?:\/\//,"ws://");H.indexOf("https://")===0&&(F=F.replace("ws://","wss://")),a.current=new AbsintheSocketGraphiql.SubscriptionsClient(localStorage.getItem("websocket")||"".concat(F,"/socket"),{reconnect:!0,connectionParams:{}})},O=async H=>{const F=typeof e.extraHeaders=="function"?e.extraHeaders():e.extraHeaders||{};return(await(0,Oze.default)({method:"post",url:e.endpoint,data:H,headers:Object.assign({"Content-Type":"application/json"},F)})).data},V=H=>H.query.indexOf("subscription")>=0?(T(),(0,Mze.graphQLFetcher)(a.current,O)(H)):O(H);(0,uo.useEffect)(()=>{O({query:(0,U1.getIntrospectionQuery)()}).then(H=>{i.current&&f((0,U1.buildClientSchema)(H.data))})},[i.current]);const{endpoint:Y,title:P,enableCodeExporter:U,enableQueryComposer:K,enableHistory:G,extraCodeSnippets:Q}=e,re=Uze(e,qze),_e=[...Q,...Rze.default];return(0,cn.jsxs)(Wze,W1(W1({},re),{},{children:[(0,cn.jsx)(Ize.default,{url:"//cdn.jsdelivr.net/npm/@absinthe/socket-graphiql@0.2.1/compat/umd/index.js"}),K&&(0,cn.jsx)(Lze.default,{schema:l,query:d,onEdit:S,onRunOperation:H=>i.current.handleRunQuery(H),explorerIsOpen:v,onToggleExplorer:N,className:"graphiql-explorer"}),(0,cn.jsxs)(Ho.default,{ref:i,fetcher:V,schema:l,query:d,onEditQuery:S,children:[(0,cn.jsx)(Ho.default.Logo,{children:P}),(0,cn.jsxs)(Ho.default.Toolbar,{children:[(0,cn.jsx)(Gze,{}),G&&(0,cn.jsx)(Hze,{}),K&&(0,cn.jsx)(Ho.default.Button,{onClick:N,label:"Query Composer",title:"Toggle Query Composer"}),U&&(0,cn.jsx)(Ho.default.Button,{onClick:D,label:"Code Exporter",title:"Toggle Code Exporter"})]})]}),U&&g&&(0,cn.jsx)("div",{className:"graphiql-container graphiql-exporter-container",children:(0,cn.jsx)(Fze.default,{hideCodeExporter:D,snippets:_e,serverUrl:Y,query:d,codeMirrorTheme:"neo"})})]}))}ju.propTypes={endpoint:qr.default.string.isRequired,defaultQuery:qr.default.string,title:qr.default.string,persistentQuery:qr.default.bool,enableQueryComposer:qr.default.bool,enableCodeExporter:qr.default.bool,enableHistory:qr.default.bool,extraCodeSnippets:qr.default.array,extraHeaders:qr.default.any};ju.defaultProps={title:"Query",defaultQuery:"{}",persistentQuery:!1,enableQueryComposer:!0,enableCodeExporter:!1,enableHistory:!1,extraCodeSnippets:[],extraHeaders:{}};const Wze=(0,Nze.styled)("div")(H1||(H1=Pze([`
716
+ ReactDOM.render(container, document.getElementById("root"));`;return(0,Bi.collapseExtraNewlines)(P.trim())}};Uh.default=bze;Object.defineProperty(Bh,"__esModule",{value:!0});var Eze=Vh,_ze=Z_(Eze),kze=Uh,xze=Z_(kze);function Z_(t){return t&&t.__esModule?t:{default:t}}Bh.default=[_ze.default,xze.default];const wze=ii(Vae),$ze=ii(nx),Cze=ii(rx);var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.graphQLFetcher=void 0;var Aze=Fh;const Sze=t=>{const e=(0,Aze.parse)(t.query);for(const n of e.definitions)if(n.kind==="OperationDefinition"&&n.operation==="subscription")return!0;return!1},Tze=(t,e)=>{let n=null;return o=>(t&&n!==null&&t.unsubscribe(n),t&&Sze(o)?{subscribe(i){i.next("Your subscription data will appear here after server publication!"),n=t.subscribe({query:o.query,variables:o.variables},(a,l)=>{a?i.error(a):i.next(l)})}}:e(o))};Vu.graphQLFetcher=Tze;Object.defineProperty(Z1,"__esModule",{value:!0});var Dze=Z1.default=ju,uo=ie,qr=fi(Q1),Nze=ax,Oze=fi(ox),Ize=fi(cx),Ho=fi(S6e),Fze=fi(Ka),Lze=fi(jUe),Rze=fi(Bh),U1=Fh,X_=wze,z1=$ze,tl=Cze,Mze=Vu,cn=J1,H1;const qze=["endpoint","title","enableCodeExporter","enableQueryComposer","enableHistory","extraCodeSnippets"];function fi(t){return t&&t.__esModule?t:{default:t}}function Pze(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function G1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function W1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G1(Object(n),!0).forEach(function(o){Bze(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Bze(t,e,n){return e=Vze(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vze(t){var e=jze(t,"string");return typeof e=="symbol"?e:String(e)}function jze(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uze(t,e){if(t==null)return{};var n=zze(t,e),o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)o=a[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function zze(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,a;for(a=0;a<o.length;a++)i=o[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Hze(){const{toggle:t}=(0,X_.useHistoryContext)();return(0,cn.jsx)(Ho.default.Button,{onClick:t,label:"History",title:"Show History"})}function Gze(){const t=(0,X_.usePrettifyEditors)();return(0,cn.jsx)(Ho.default.Button,{onClick:t,label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"})}function ju(t){const e=(0,tl.mergeProps)(t,ju,["style","persistentQuery","enableQueryComposer","enableCodeExporter","enableHistory"]),n=(0,z1.useLocation)(),o=(0,z1.useNavigate)(),i=(0,uo.useRef)(null),a=(0,uo.useRef)(null),[l,f]=(0,uo.useState)(null),[d,h]=(0,uo.useState)(e.defaultQuery||"{}"),[v,y]=(0,uo.useState)(e.enableQueryComposer),[g,E]=(0,uo.useState)(!1),C=H=>{const{pathname:L,search:x}=n,j=(0,tl.parseQuery)(x);j.query=H;const J="".concat(L,"?").concat((0,tl.stringifyQuery)(j));o(J)};(0,uo.useEffect)(()=>{if(e.persistentQuery){const H=(0,tl.parseQuery)(window.location.search);H.query?h(H.query):C(d)}},[]);const S=H=>{H!==d&&e.persistentQuery&&C(H),h(H)},N=()=>{y(!v)},D=()=>E(!g),T=()=>{a.current&&(a.current.close(),a.current=null);const{endpoint:H}=e;let L=H.replace(/https?:\/\//,"ws://");H.indexOf("https://")===0&&(L=L.replace("ws://","wss://")),a.current=new AbsintheSocketGraphiql.SubscriptionsClient(localStorage.getItem("websocket")||"".concat(L,"/socket"),{reconnect:!0,connectionParams:{}})},O=async H=>{const L=typeof e.extraHeaders=="function"?e.extraHeaders():e.extraHeaders||{};return(await(0,Oze.default)({method:"post",url:e.endpoint,data:H,headers:Object.assign({"Content-Type":"application/json"},L)})).data},V=H=>H.query.indexOf("subscription")>=0?(T(),(0,Mze.graphQLFetcher)(a.current,O)(H)):O(H);(0,uo.useEffect)(()=>{O({query:(0,U1.getIntrospectionQuery)()}).then(H=>{i.current&&f((0,U1.buildClientSchema)(H.data))})},[i.current]);const{endpoint:Y,title:P,enableCodeExporter:U,enableQueryComposer:K,enableHistory:G,extraCodeSnippets:Q}=e,re=Uze(e,qze),_e=[...Q,...Rze.default];return(0,cn.jsxs)(Wze,W1(W1({},re),{},{children:[(0,cn.jsx)(Ize.default,{url:"//cdn.jsdelivr.net/npm/@absinthe/socket-graphiql@0.2.1/compat/umd/index.js"}),K&&(0,cn.jsx)(Fze.default,{schema:l,query:d,onEdit:S,onRunOperation:H=>i.current.handleRunQuery(H),explorerIsOpen:v,onToggleExplorer:N,className:"graphiql-explorer"}),(0,cn.jsxs)(Ho.default,{ref:i,fetcher:V,schema:l,query:d,onEditQuery:S,children:[(0,cn.jsx)(Ho.default.Logo,{children:P}),(0,cn.jsxs)(Ho.default.Toolbar,{children:[(0,cn.jsx)(Gze,{}),G&&(0,cn.jsx)(Hze,{}),K&&(0,cn.jsx)(Ho.default.Button,{onClick:N,label:"Query Composer",title:"Toggle Query Composer"}),U&&(0,cn.jsx)(Ho.default.Button,{onClick:D,label:"Code Exporter",title:"Toggle Code Exporter"})]})]}),U&&g&&(0,cn.jsx)("div",{className:"graphiql-container graphiql-exporter-container",children:(0,cn.jsx)(Lze.default,{hideCodeExporter:D,snippets:_e,serverUrl:Y,query:d,codeMirrorTheme:"neo"})})]}))}ju.propTypes={endpoint:qr.default.string.isRequired,defaultQuery:qr.default.string,title:qr.default.string,persistentQuery:qr.default.bool,enableQueryComposer:qr.default.bool,enableCodeExporter:qr.default.bool,enableHistory:qr.default.bool,extraCodeSnippets:qr.default.array,extraHeaders:qr.default.any};ju.defaultProps={title:"Query",defaultQuery:"{}",persistentQuery:!1,enableQueryComposer:!0,enableCodeExporter:!1,enableHistory:!1,extraCodeSnippets:[],extraHeaders:{}};const Wze=(0,Nze.styled)("div")(H1||(H1=Pze([`
717
717
  display: flex;
718
718
  flex-direction: row;
719
719
  flex: 1;
@@ -908,4 +908,4 @@ ReactDOM.render(container, document.getElementById("root"));`;return(0,Bi.collap
908
908
  pk
909
909
  }
910
910
  }
911
- }`,Yze=()=>{const t={},e=sx();return e&&(t.Authorization=`Bearer ${e}`),typeof window<"u"&&typeof window.location<"u"&&(t["x-real-hostname"]=window.location.hostname,t["x-real-port"]=window.location.port,t["x-real-protocol"]=window.location.protocol),t};function Jze(){const{t}=ie.useContext(ix);return J1.jsx(Dze,{defaultQuery:Qze,endpoint:`${window.env&&window.env.apiPrefix?window.env.apiPrefix:""}/api/gql`.replace(/\/+/g,"/").trim(),title:t("common.console"),enableHistory:!0,enableQueryComposer:!0,enableCodeExporter:!1,extraHeaders:Yze})}const i8e=Object.freeze(Object.defineProperty({__proto__:null,default:Jze},Symbol.toStringTag,{value:"Module"}));export{Ge as $,T0 as A,tb as B,qy as C,Te as D,k0 as E,J0 as F,yo as G,Z0 as H,oy as I,Y0 as J,R as K,n8e as L,Dd as M,h$ as N,Td as O,r8e as P,Fd as Q,o8e as R,ha as S,va as T,eb as U,P0 as V,Ld as W,Rd as X,qe as Y,_r as Z,Fe as _,ma as a,vt as a0,sl as a1,i8e as a2,vn as b,e8e as c,Ke as d,br as e,rw as f,Rt as g,Ep as h,Er as i,ln as j,at as k,Ie as l,Ji as m,Ln as n,Xi as o,Zn as p,ad as q,Ut as r,t8e as s,Je as t,oe as u,un as v,lb as w,sb as x,O0 as y,A0 as z};
911
+ }`,Yze=()=>{const t={},e=sx();return e&&(t.Authorization=`Bearer ${e}`),typeof window<"u"&&typeof window.location<"u"&&(t["x-real-hostname"]=window.location.hostname,t["x-real-port"]=window.location.port,t["x-real-protocol"]=window.location.protocol),t};function Jze(){const{t}=ie.useContext(ix);return J1.jsx(Dze,{defaultQuery:Qze,endpoint:`${window.env&&window.env.apiPrefix?window.env.apiPrefix:""}/api/gql`.replace(/\/+/g,"/").trim(),title:t("common.console"),enableHistory:!0,enableQueryComposer:!0,enableCodeExporter:!1,extraHeaders:Yze})}const i8e=Object.freeze(Object.defineProperty({__proto__:null,default:Jze},Symbol.toStringTag,{value:"Module"}));export{Ge as $,T0 as A,tb as B,qy as C,Te as D,k0 as E,J0 as F,yo as G,Z0 as H,oy as I,Y0 as J,R as K,n8e as L,Dd as M,h$ as N,Td as O,r8e as P,Ld as Q,o8e as R,ha as S,va as T,eb as U,P0 as V,Fd as W,Rd as X,qe as Y,_r as Z,Le as _,ma as a,vt as a0,sl as a1,i8e as a2,vn as b,e8e as c,Ke as d,br as e,rw as f,Rt as g,Ep as h,Er as i,ln as j,at as k,Ie as l,Ji as m,Fn as n,Xi as o,Zn as p,ad as q,Ut as r,t8e as s,Je as t,oe as u,un as v,lb as w,sb as x,O0 as y,A0 as z};