@sync-in/server 1.8.1 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (605) hide show
  1. package/CHANGELOG.md +57 -11
  2. package/environment/environment.dist.yaml +29 -26
  3. package/package.json +15 -15
  4. package/server/app.constants.js +9 -0
  5. package/server/app.constants.js.map +1 -1
  6. package/server/app.functions.js +42 -0
  7. package/server/app.functions.js.map +1 -0
  8. package/server/app.module.js +4 -0
  9. package/server/app.module.js.map +1 -1
  10. package/server/applications/admin/admin.module.js +6 -1
  11. package/server/applications/admin/admin.module.js.map +1 -1
  12. package/server/applications/{notifications/interfaces/user-mail-notification.js → admin/interfaces/check-update.interfaces.js} +1 -1
  13. package/server/applications/admin/interfaces/check-update.interfaces.js.map +1 -0
  14. package/server/applications/admin/services/admin-scheduler.service.js +53 -0
  15. package/server/applications/admin/services/admin-scheduler.service.js.map +1 -0
  16. package/server/applications/admin/services/admin.service.js +102 -0
  17. package/server/applications/admin/services/admin.service.js.map +1 -0
  18. package/server/applications/admin/services/admin.service.spec.js +46 -0
  19. package/server/applications/admin/services/admin.service.spec.js.map +1 -0
  20. package/server/applications/admin/utils/check-update.js +28 -0
  21. package/server/applications/admin/utils/check-update.js.map +1 -0
  22. package/server/applications/comments/services/comments-manager.service.js +1 -1
  23. package/server/applications/comments/services/comments-manager.service.js.map +1 -1
  24. package/server/applications/comments/services/comments-manager.service.spec.js +1 -1
  25. package/server/applications/comments/services/comments-manager.service.spec.js.map +1 -1
  26. package/server/applications/comments/services/comments-queries.service.js.map +1 -1
  27. package/server/applications/files/constants/cache.js +10 -1
  28. package/server/applications/files/constants/cache.js.map +1 -1
  29. package/server/applications/files/constants/only-office.js +0 -25
  30. package/server/applications/files/constants/only-office.js.map +1 -1
  31. package/server/applications/files/constants/operations.js +20 -3
  32. package/server/applications/files/constants/operations.js.map +1 -1
  33. package/server/applications/files/dto/file-operations.dto.js +7 -0
  34. package/server/applications/files/dto/file-operations.dto.js.map +1 -1
  35. package/server/applications/files/files-only-office.controller.js +3 -2
  36. package/server/applications/files/files-only-office.controller.js.map +1 -1
  37. package/server/applications/files/files-only-office.controller.spec.js +6 -5
  38. package/server/applications/files/files-only-office.controller.spec.js.map +1 -1
  39. package/server/applications/files/files.controller.js +88 -8
  40. package/server/applications/files/files.controller.js.map +1 -1
  41. package/server/applications/files/files.controller.spec.js +11 -4
  42. package/server/applications/files/files.controller.spec.js.map +1 -1
  43. package/server/applications/files/guards/files-only-office.guard.js +6 -0
  44. package/server/applications/files/guards/files-only-office.guard.js.map +1 -1
  45. package/server/applications/files/interfaces/file-db-props.interface.js.map +1 -1
  46. package/server/applications/files/interfaces/file-props.interface.js.map +1 -1
  47. package/server/applications/files/interfaces/only-office-config.interface.js.map +1 -1
  48. package/server/applications/files/services/files-content-manager.service.js +3 -3
  49. package/server/applications/files/services/files-content-manager.service.js.map +1 -1
  50. package/server/applications/files/services/files-lock-manager.service.js +61 -22
  51. package/server/applications/files/services/files-lock-manager.service.js.map +1 -1
  52. package/server/applications/files/services/files-manager.service.js +122 -24
  53. package/server/applications/files/services/files-manager.service.js.map +1 -1
  54. package/server/applications/files/services/files-manager.service.spec.js +15 -0
  55. package/server/applications/files/services/files-manager.service.spec.js.map +1 -1
  56. package/server/applications/files/services/files-methods.service.js +38 -8
  57. package/server/applications/files/services/files-methods.service.js.map +1 -1
  58. package/server/applications/files/services/files-only-office-manager.service.js +12 -12
  59. package/server/applications/files/services/files-only-office-manager.service.js.map +1 -1
  60. package/server/applications/files/services/files-parser.service.js +1 -1
  61. package/server/applications/files/services/files-parser.service.js.map +1 -1
  62. package/server/applications/files/services/files-queries.service.js +10 -0
  63. package/server/applications/files/services/files-queries.service.js.map +1 -1
  64. package/server/applications/files/utils/files.js +1 -1
  65. package/server/applications/files/utils/files.js.map +1 -1
  66. package/server/applications/files/utils/send-file.js +3 -2
  67. package/server/applications/files/utils/send-file.js.map +1 -1
  68. package/server/applications/links/services/links-queries.service.js +1 -1
  69. package/server/applications/links/services/links-queries.service.js.map +1 -1
  70. package/server/applications/notifications/constants/notifications.js +5 -1
  71. package/server/applications/notifications/constants/notifications.js.map +1 -1
  72. package/server/applications/notifications/i18n/de.js +8 -2
  73. package/server/applications/notifications/i18n/de.js.map +1 -1
  74. package/server/applications/notifications/i18n/es.js +8 -2
  75. package/server/applications/notifications/i18n/es.js.map +1 -1
  76. package/server/applications/notifications/i18n/fr.js +8 -2
  77. package/server/applications/notifications/i18n/fr.js.map +1 -1
  78. package/server/applications/notifications/i18n/hi.js +8 -2
  79. package/server/applications/notifications/i18n/hi.js.map +1 -1
  80. package/server/applications/notifications/i18n/it.js +8 -2
  81. package/server/applications/notifications/i18n/it.js.map +1 -1
  82. package/server/applications/notifications/i18n/ja.js +8 -2
  83. package/server/applications/notifications/i18n/ja.js.map +1 -1
  84. package/server/applications/notifications/i18n/ko.js +8 -2
  85. package/server/applications/notifications/i18n/ko.js.map +1 -1
  86. package/server/applications/notifications/i18n/pl.js +8 -2
  87. package/server/applications/notifications/i18n/pl.js.map +1 -1
  88. package/server/applications/notifications/i18n/pt.js +8 -2
  89. package/server/applications/notifications/i18n/pt.js.map +1 -1
  90. package/server/applications/notifications/i18n/pt_br.js +8 -2
  91. package/server/applications/notifications/i18n/pt_br.js.map +1 -1
  92. package/server/applications/notifications/i18n/ru.js +8 -2
  93. package/server/applications/notifications/i18n/ru.js.map +1 -1
  94. package/server/applications/notifications/i18n/tr.js +8 -2
  95. package/server/applications/notifications/i18n/tr.js.map +1 -1
  96. package/server/applications/notifications/i18n/zh.js +8 -2
  97. package/server/applications/notifications/i18n/zh.js.map +1 -1
  98. package/server/applications/notifications/interfaces/notification-properties.interface.js.map +1 -1
  99. package/server/applications/notifications/interfaces/user-mail-notification.interface.js +10 -0
  100. package/server/applications/notifications/interfaces/user-mail-notification.interface.js.map +1 -0
  101. package/server/applications/notifications/mails/models.js +38 -3
  102. package/server/applications/notifications/mails/models.js.map +1 -1
  103. package/server/applications/notifications/mails/templates.js +1 -1
  104. package/server/applications/notifications/mails/templates.js.map +1 -1
  105. package/server/applications/notifications/services/notifications-manager.service.js +8 -1
  106. package/server/applications/notifications/services/notifications-manager.service.js.map +1 -1
  107. package/server/applications/notifications/services/notifications-queries.service.js.map +1 -1
  108. package/server/applications/shares/services/shares-manager.service.js +17 -10
  109. package/server/applications/shares/services/shares-manager.service.js.map +1 -1
  110. package/server/applications/shares/services/shares-manager.service.spec.js +10 -3
  111. package/server/applications/shares/services/shares-manager.service.spec.js.map +1 -1
  112. package/server/applications/shares/services/shares-queries.service.js +11 -1
  113. package/server/applications/shares/services/shares-queries.service.js.map +1 -1
  114. package/server/applications/spaces/guards/space.guard.spec.js +2 -2
  115. package/server/applications/spaces/guards/space.guard.spec.js.map +1 -1
  116. package/server/applications/spaces/services/spaces-browser.service.js +31 -11
  117. package/server/applications/spaces/services/spaces-browser.service.js.map +1 -1
  118. package/server/applications/spaces/services/spaces-manager.service.js +2 -2
  119. package/server/applications/spaces/services/spaces-manager.service.js.map +1 -1
  120. package/server/applications/spaces/services/spaces-queries.service.js +6 -2
  121. package/server/applications/spaces/services/spaces-queries.service.js.map +1 -1
  122. package/server/applications/spaces/utils/permissions.js +2 -2
  123. package/server/applications/spaces/utils/permissions.js.map +1 -1
  124. package/server/applications/sync/services/sync-manager.service.js +1 -0
  125. package/server/applications/sync/services/sync-manager.service.js.map +1 -1
  126. package/server/applications/sync/services/sync-paths-manager.service.js +1 -1
  127. package/server/applications/sync/services/sync-paths-manager.service.js.map +1 -1
  128. package/server/applications/sync/services/sync-paths-manager.service.spec.js +1 -1
  129. package/server/applications/sync/services/sync-paths-manager.service.spec.js.map +1 -1
  130. package/server/applications/users/constants/user.js +1 -1
  131. package/server/applications/users/constants/user.js.map +1 -1
  132. package/server/applications/users/services/admin-users-queries.service.js +8 -0
  133. package/server/applications/users/services/admin-users-queries.service.js.map +1 -1
  134. package/server/applications/users/services/users-queries.service.js +67 -68
  135. package/server/applications/users/services/users-queries.service.js.map +1 -1
  136. package/server/applications/users/users.module.js +2 -1
  137. package/server/applications/users/users.module.js.map +1 -1
  138. package/server/applications/webdav/guards/webdav-protocol.guard.js +4 -4
  139. package/server/applications/webdav/guards/webdav-protocol.guard.js.map +1 -1
  140. package/server/applications/webdav/guards/webdav-protocol.guard.spec.js +6 -6
  141. package/server/applications/webdav/guards/webdav-protocol.guard.spec.js.map +1 -1
  142. package/server/applications/webdav/services/webdav-methods.service.js +3 -2
  143. package/server/applications/webdav/services/webdav-methods.service.js.map +1 -1
  144. package/server/applications/webdav/services/webdav-methods.service.spec.js +2 -2
  145. package/server/applications/webdav/services/webdav-methods.service.spec.js.map +1 -1
  146. package/server/authentication/constants/auth-ldap.js +2 -0
  147. package/server/authentication/constants/auth-ldap.js.map +1 -1
  148. package/server/authentication/services/auth-methods/auth-method-ldap.service.js +34 -21
  149. package/server/authentication/services/auth-methods/auth-method-ldap.service.js.map +1 -1
  150. package/server/common/functions.js +0 -8
  151. package/server/common/functions.js.map +1 -1
  152. package/server/common/image.js +1 -0
  153. package/server/common/image.js.map +1 -1
  154. package/server/common/shared.js +18 -1
  155. package/server/common/shared.js.map +1 -1
  156. package/server/infrastructure/context/services/context-manager.service.js +3 -0
  157. package/server/infrastructure/context/services/context-manager.service.js.map +1 -1
  158. package/server/infrastructure/websocket/adapters/cluster.adapter.js +4 -4
  159. package/server/infrastructure/websocket/adapters/cluster.adapter.js.map +1 -1
  160. package/static/3rdpartylicenses.txt +1393 -44
  161. package/static/assets/favicon.svg +2 -25
  162. package/static/assets/logo-dark.svg +2 -32
  163. package/static/assets/logo.svg +2 -32
  164. package/static/assets/mimes/application-sql.svg +29 -1
  165. package/static/assets/mimes/application-x-sql.svg +29 -0
  166. package/static/assets/mimes/image-bmp.svg +12 -0
  167. package/static/assets/pdfjs/build/pdf.mjs +4869 -4454
  168. package/static/assets/pdfjs/build/pdf.mjs.map +1 -1
  169. package/static/assets/pdfjs/build/pdf.sandbox.mjs +3 -3
  170. package/static/assets/pdfjs/build/pdf.sandbox.mjs.map +1 -1
  171. package/static/assets/pdfjs/build/pdf.worker.mjs +885 -596
  172. package/static/assets/pdfjs/build/pdf.worker.mjs.map +1 -1
  173. package/static/assets/pdfjs/version +1 -1
  174. package/static/assets/pdfjs/web/locale/be/viewer.ftl +40 -0
  175. package/static/assets/pdfjs/web/locale/bg/viewer.ftl +2 -0
  176. package/static/assets/pdfjs/web/locale/cs/viewer.ftl +41 -0
  177. package/static/assets/pdfjs/web/locale/cy/viewer.ftl +43 -0
  178. package/static/assets/pdfjs/web/locale/da/viewer.ftl +39 -0
  179. package/static/assets/pdfjs/web/locale/de/viewer.ftl +41 -0
  180. package/static/assets/pdfjs/web/locale/dsb/viewer.ftl +43 -0
  181. package/static/assets/pdfjs/web/locale/el/viewer.ftl +39 -0
  182. package/static/assets/pdfjs/web/locale/en-CA/viewer.ftl +35 -0
  183. package/static/assets/pdfjs/web/locale/en-GB/viewer.ftl +41 -0
  184. package/static/assets/pdfjs/web/locale/en-US/viewer.ftl +2 -2
  185. package/static/assets/pdfjs/web/locale/eo/viewer.ftl +39 -0
  186. package/static/assets/pdfjs/web/locale/es-AR/viewer.ftl +41 -0
  187. package/static/assets/pdfjs/web/locale/es-CL/viewer.ftl +39 -0
  188. package/static/assets/pdfjs/web/locale/es-ES/viewer.ftl +72 -0
  189. package/static/assets/pdfjs/web/locale/es-MX/viewer.ftl +120 -0
  190. package/static/assets/pdfjs/web/locale/eu/viewer.ftl +41 -0
  191. package/static/assets/pdfjs/web/locale/fi/viewer.ftl +41 -0
  192. package/static/assets/pdfjs/web/locale/fr/viewer.ftl +41 -0
  193. package/static/assets/pdfjs/web/locale/fur/viewer.ftl +77 -0
  194. package/static/assets/pdfjs/web/locale/fy-NL/viewer.ftl +41 -0
  195. package/static/assets/pdfjs/web/locale/gn/viewer.ftl +39 -0
  196. package/static/assets/pdfjs/web/locale/he/viewer.ftl +41 -0
  197. package/static/assets/pdfjs/web/locale/hsb/viewer.ftl +43 -0
  198. package/static/assets/pdfjs/web/locale/hu/viewer.ftl +41 -0
  199. package/static/assets/pdfjs/web/locale/hy-AM/viewer.ftl +1 -1
  200. package/static/assets/pdfjs/web/locale/ia/viewer.ftl +41 -0
  201. package/static/assets/pdfjs/web/locale/it/viewer.ftl +41 -0
  202. package/static/assets/pdfjs/web/locale/ja/viewer.ftl +32 -0
  203. package/static/assets/pdfjs/web/locale/ka/viewer.ftl +41 -0
  204. package/static/assets/pdfjs/web/locale/kab/viewer.ftl +73 -0
  205. package/static/assets/pdfjs/web/locale/kk/viewer.ftl +21 -0
  206. package/static/assets/pdfjs/web/locale/ko/viewer.ftl +38 -1
  207. package/static/assets/pdfjs/web/locale/nb-NO/viewer.ftl +39 -0
  208. package/static/assets/pdfjs/web/locale/nl/viewer.ftl +41 -0
  209. package/static/assets/pdfjs/web/locale/nn-NO/viewer.ftl +37 -0
  210. package/static/assets/pdfjs/web/locale/pa-IN/viewer.ftl +37 -0
  211. package/static/assets/pdfjs/web/locale/pl/viewer.ftl +39 -0
  212. package/static/assets/pdfjs/web/locale/pt-BR/viewer.ftl +39 -0
  213. package/static/assets/pdfjs/web/locale/rm/viewer.ftl +73 -0
  214. package/static/assets/pdfjs/web/locale/ro/viewer.ftl +41 -0
  215. package/static/assets/pdfjs/web/locale/ru/viewer.ftl +42 -0
  216. package/static/assets/pdfjs/web/locale/sc/viewer.ftl +6 -0
  217. package/static/assets/pdfjs/web/locale/sk/viewer.ftl +43 -0
  218. package/static/assets/pdfjs/web/locale/sl/viewer.ftl +42 -1
  219. package/static/assets/pdfjs/web/locale/sq/viewer.ftl +77 -0
  220. package/static/assets/pdfjs/web/locale/sv-SE/viewer.ftl +41 -0
  221. package/static/assets/pdfjs/web/locale/tg/viewer.ftl +39 -0
  222. package/static/assets/pdfjs/web/locale/th/viewer.ftl +35 -0
  223. package/static/assets/pdfjs/web/locale/tr/viewer.ftl +39 -0
  224. package/static/assets/pdfjs/web/locale/vi/viewer.ftl +42 -5
  225. package/static/assets/pdfjs/web/locale/zh-CN/viewer.ftl +35 -0
  226. package/static/assets/pdfjs/web/locale/zh-TW/viewer.ftl +37 -0
  227. package/static/assets/pdfjs/web/viewer.css +141 -110
  228. package/static/assets/pdfjs/web/viewer.html +7 -7
  229. package/static/assets/pdfjs/web/viewer.mjs +97 -14
  230. package/static/assets/pdfjs/web/viewer.mjs.map +1 -1
  231. package/static/chunk-22DWHRCL.js +1 -0
  232. package/static/chunk-23UUFZSR.js +1 -0
  233. package/static/chunk-25QTY2GI.js +1 -0
  234. package/static/chunk-2E7IJZLL.js +1 -0
  235. package/static/chunk-2FC5EKS5.js +1 -0
  236. package/static/chunk-2TB2INBF.js +1 -0
  237. package/static/chunk-32L7RG2G.js +1 -0
  238. package/static/chunk-3OHSTP3R.js +1 -0
  239. package/static/chunk-3WLBVJ2S.js +1 -0
  240. package/static/{chunk-MTVSJTIW.js → chunk-3YDYZLF7.js} +1 -1
  241. package/static/chunk-42L6C5MT.js +1 -0
  242. package/static/chunk-4AGQL5GV.js +1 -0
  243. package/static/chunk-4BPSQMI2.js +1 -0
  244. package/static/chunk-4FDRWZWT.js +1 -0
  245. package/static/chunk-4GCCF6PF.js +1 -0
  246. package/static/chunk-4ORP3SBY.js +1 -0
  247. package/static/chunk-4PZPHJ7L.js +1 -0
  248. package/static/chunk-4QBOHIC3.js +1 -0
  249. package/static/chunk-4YT6K5KY.js +1 -0
  250. package/static/chunk-556I6YIW.js +1 -0
  251. package/static/chunk-5DPIGJU4.js +1 -0
  252. package/static/chunk-5E3TYOL3.js +1 -0
  253. package/static/chunk-5IL7C45D.js +1 -0
  254. package/static/chunk-5KJXGMKR.js +1 -0
  255. package/static/chunk-5S6KPQRA.js +1 -0
  256. package/static/chunk-5SPGSHKL.js +1 -0
  257. package/static/chunk-5WCQBTXW.js +1 -0
  258. package/static/chunk-5XUIPWOH.js +1 -0
  259. package/static/chunk-62WT7PI3.js +1 -0
  260. package/static/chunk-6B3GGAV3.js +4 -0
  261. package/static/chunk-6F6OMQ5H.js +1 -0
  262. package/static/chunk-6I5BGQHT.js +1 -0
  263. package/static/chunk-6NEBGCAZ.js +1 -0
  264. package/static/chunk-6NOS45DG.js +1 -0
  265. package/static/chunk-6OKLPRCD.js +1 -0
  266. package/static/chunk-6VEJCG43.js +1 -0
  267. package/static/chunk-77SS36Z2.js +1 -0
  268. package/static/chunk-7AXEPO3G.js +1 -0
  269. package/static/chunk-7CKHC72R.js +1 -0
  270. package/static/chunk-7DUTYOJG.js +1 -0
  271. package/static/chunk-7HKFYRPF.js +1 -0
  272. package/static/chunk-7NZJZATZ.js +1 -0
  273. package/static/chunk-AADK5D2H.js +1 -0
  274. package/static/chunk-ACUF7IKP.js +1 -0
  275. package/static/chunk-AGREZPV4.js +1 -0
  276. package/static/chunk-ATBJWFA3.js +1 -0
  277. package/static/chunk-ATXLZN2B.js +1 -0
  278. package/static/chunk-AZ5TF5Y3.js +1 -0
  279. package/static/chunk-BBHYIURC.js +1 -0
  280. package/static/chunk-BHZEPHRI.js +13 -0
  281. package/static/chunk-BODMMLVB.js +7 -0
  282. package/static/chunk-BSB4VROD.js +2 -0
  283. package/static/chunk-BU4ZICZR.js +1 -0
  284. package/static/chunk-C3AAEQKW.js +1 -0
  285. package/static/chunk-CFTKW432.js +1 -0
  286. package/static/chunk-CNOVT6KU.js +1 -0
  287. package/static/chunk-D56H3XE2.js +1 -0
  288. package/static/chunk-DFOOSIIA.js +1 -0
  289. package/static/chunk-DHFQIFOF.js +1 -0
  290. package/static/{chunk-3GMLWAFZ.js → chunk-DIC2MVRI.js} +1 -1
  291. package/static/chunk-DJDRX53V.js +2 -0
  292. package/static/chunk-DKGXUMLT.js +1 -0
  293. package/static/chunk-DQ3GEMPM.js +1 -0
  294. package/static/chunk-DRHPEERW.js +2 -0
  295. package/static/chunk-DWYP6ZGG.js +1 -0
  296. package/static/chunk-EDJAISWO.js +13 -0
  297. package/static/chunk-EIYRBM4J.js +1 -0
  298. package/static/chunk-EL6QL4TP.js +1 -0
  299. package/static/chunk-ERDZ7IVF.js +1 -0
  300. package/static/chunk-EVQKKVUZ.js +1 -0
  301. package/static/chunk-F2XG7EWI.js +1 -0
  302. package/static/chunk-F672FY5I.js +1 -0
  303. package/static/chunk-F6V37MKG.js +1 -0
  304. package/static/chunk-FCGTI42I.js +1 -0
  305. package/static/chunk-FNOTGWRW.js +1 -0
  306. package/static/chunk-FQHOSSCO.js +1 -0
  307. package/static/chunk-GAGHHYLF.js +1 -0
  308. package/static/chunk-GNZPP2VO.js +1 -0
  309. package/static/{chunk-JPT5WEAT.js → chunk-GOJYWL2M.js} +1 -1
  310. package/static/chunk-GRLHFXGB.js +1 -0
  311. package/static/chunk-H6WOTGQ5.js +1 -0
  312. package/static/{chunk-CHJ64RJM.js → chunk-H6ZXFINQ.js} +1 -1
  313. package/static/chunk-HC7F57NA.js +1 -0
  314. package/static/chunk-HCSWO7BO.js +7 -0
  315. package/static/chunk-HHWXIK2M.js +7 -0
  316. package/static/chunk-HKRGIRKB.js +3 -0
  317. package/static/chunk-HMOB6XC5.js +1 -0
  318. package/static/chunk-HNMGPG72.js +1 -0
  319. package/static/chunk-HS4S6BV3.js +1 -0
  320. package/static/chunk-I2S3XPC5.js +3 -0
  321. package/static/chunk-IJ7K7ATQ.js +1 -0
  322. package/static/chunk-IOIBQGHN.js +562 -0
  323. package/static/chunk-ITVA26X2.js +2 -0
  324. package/static/chunk-J6YSFHLZ.js +1 -0
  325. package/static/chunk-JAEJ6IMV.js +1 -0
  326. package/static/chunk-JB5R6V33.js +1 -0
  327. package/static/chunk-JF6WIV6M.js +1 -0
  328. package/static/chunk-JGB4LLUT.js +1 -0
  329. package/static/chunk-JGXVTKLG.js +1 -0
  330. package/static/chunk-JMYAD7E2.js +1 -0
  331. package/static/chunk-JSE63Q5X.js +1 -0
  332. package/static/chunk-JVV3ZL6L.js +1 -0
  333. package/static/chunk-JWPXQOS3.js +5 -0
  334. package/static/chunk-JXZCNFW7.js +1 -0
  335. package/static/chunk-JY2I3HGL.js +1 -0
  336. package/static/chunk-K657XPXA.js +1 -0
  337. package/static/chunk-KAVP6UXH.js +1 -0
  338. package/static/{chunk-3R74L4UU.js → chunk-KDEEERWZ.js} +1 -1
  339. package/static/chunk-KLOUBIO4.js +1 -0
  340. package/static/chunk-KMF3ZRAO.js +1 -0
  341. package/static/chunk-KT3TWCST.js +1 -0
  342. package/static/chunk-L6SYG23T.js +1 -0
  343. package/static/{chunk-LNTUR3GU.js → chunk-LRDKG274.js} +1 -1
  344. package/static/chunk-LRQSPCYZ.js +1 -0
  345. package/static/chunk-LUSVISM6.js +1 -0
  346. package/static/{chunk-LVSNIS5P.js → chunk-LYZGJZNP.js} +1 -1
  347. package/static/chunk-LZKI5P5T.js +1 -0
  348. package/static/chunk-M4XL3JN5.js +6 -0
  349. package/static/{chunk-UNCPXHHT.js → chunk-MGWG7OD7.js} +1 -1
  350. package/static/chunk-MIA5YBOI.js +1 -0
  351. package/static/chunk-MKUUWY6Y.js +1 -0
  352. package/static/chunk-MR3U7TKQ.js +1 -0
  353. package/static/chunk-MYM43ENO.js +1 -0
  354. package/static/chunk-NAH4V2R6.js +2 -0
  355. package/static/chunk-NBBDVVUF.js +1 -0
  356. package/static/chunk-NKGKBQBX.js +1 -0
  357. package/static/chunk-NMF2ZFBE.js +1 -0
  358. package/static/chunk-NN4ONTOT.js +1 -0
  359. package/static/chunk-NOPACN4F.js +1 -0
  360. package/static/chunk-NYJPOP4L.js +1 -0
  361. package/static/chunk-OQRWXCLY.js +1 -0
  362. package/static/chunk-PCFH5HCI.js +2 -0
  363. package/static/chunk-PJF5XUTO.js +1 -0
  364. package/static/{chunk-FJE6BOFL.js → chunk-PSUAQBYM.js} +1 -1
  365. package/static/chunk-PTLYIUFW.js +1 -0
  366. package/static/chunk-PXRT4L57.js +1 -0
  367. package/static/chunk-PZGLDZZM.js +1 -0
  368. package/static/chunk-Q4VNZGFI.js +1 -0
  369. package/static/chunk-Q556XB3S.js +1 -0
  370. package/static/{chunk-PB4AIT7O.js → chunk-Q7IXRPOO.js} +1 -1
  371. package/static/chunk-Q7U2VPIS.js +1 -0
  372. package/static/chunk-QM6CQMEX.js +1 -0
  373. package/static/chunk-QMHUIHSR.js +1 -0
  374. package/static/chunk-QVFPHTOH.js +1 -0
  375. package/static/chunk-R4MI25E2.js +1 -0
  376. package/static/chunk-R7JRAR3P.js +1 -0
  377. package/static/chunk-R7PNKQU2.js +1 -0
  378. package/static/chunk-RCAORRB7.js +1 -0
  379. package/static/chunk-RDNTK4YH.js +1 -0
  380. package/static/{chunk-VJTXJ43D.js → chunk-RK2ONYTL.js} +1 -1
  381. package/static/chunk-RK7XRDNB.js +1 -0
  382. package/static/chunk-RO7SAOLK.js +1 -0
  383. package/static/chunk-RQUUINHV.js +1 -0
  384. package/static/chunk-RUN556VW.js +1 -0
  385. package/static/chunk-S2VBGI6Q.js +1 -0
  386. package/static/chunk-S7S5M3AZ.js +1 -0
  387. package/static/chunk-SBLNYV74.js +1 -0
  388. package/static/chunk-SIZCHHUA.js +1 -0
  389. package/static/chunk-SRBOO7AO.js +1 -0
  390. package/static/{chunk-PVDHBQRM.js → chunk-STA7NTYL.js} +1 -1
  391. package/static/chunk-T3YI3BSS.js +1 -0
  392. package/static/chunk-TAL3RTTQ.js +1 -0
  393. package/static/chunk-TGLJFALR.js +1 -0
  394. package/static/chunk-TJZKTNNS.js +1 -0
  395. package/static/chunk-U4RW6XG5.js +1 -0
  396. package/static/chunk-UJTFWZEC.js +1 -0
  397. package/static/chunk-UPGVU5LG.js +1 -0
  398. package/static/chunk-UQ6O3I6W.js +1 -0
  399. package/static/{chunk-5NMSIIQB.js → chunk-V43RGNXA.js} +1 -1
  400. package/static/chunk-V6FA5QY4.js +1 -0
  401. package/static/chunk-VK7XMFVE.js +1 -0
  402. package/static/chunk-VQJYCYWI.js +1 -0
  403. package/static/chunk-VWIRXLNE.js +1 -0
  404. package/static/chunk-VZMVGIVW.js +1 -0
  405. package/static/chunk-VZPCXSRG.js +2 -0
  406. package/static/chunk-WR3MA3L3.js +1 -0
  407. package/static/chunk-XCLK7NJL.js +1 -0
  408. package/static/{chunk-DSWEWLXJ.js → chunk-XCPDPB5G.js} +1 -1
  409. package/static/chunk-XEGHEUP5.js +1 -0
  410. package/static/chunk-XKEBQNQJ.js +1 -0
  411. package/static/chunk-XOF4UW3S.js +1 -0
  412. package/static/chunk-XQGPSNQB.js +1 -0
  413. package/static/{chunk-QO6BTONN.js → chunk-Y4MAPE2C.js} +1 -1
  414. package/static/chunk-Y5RLD72B.js +1 -0
  415. package/static/{chunk-DPUVSXRB.js → chunk-Y5XTRCFK.js} +1 -1
  416. package/static/chunk-Y63UUJGJ.js +1 -0
  417. package/static/chunk-YBNAC7QM.js +1 -0
  418. package/static/chunk-YCTCESL4.js +1 -0
  419. package/static/chunk-YMAN4LIU.js +1 -0
  420. package/static/chunk-YTDE6SXT.js +1 -0
  421. package/static/chunk-YZPIUJB3.js +1 -0
  422. package/static/chunk-ZCOWBVOT.js +1 -0
  423. package/static/chunk-ZHRYYMYE.js +1 -0
  424. package/static/chunk-ZNXTOQFG.js +1 -0
  425. package/static/{chunk-URHTCJ7G.js → chunk-ZQLBPLXI.js} +1 -1
  426. package/static/chunk-ZXXHFBGL.js +1 -0
  427. package/static/favicon.ico +0 -0
  428. package/static/index.html +2 -2
  429. package/static/main-56PZQ6TJ.js +11 -0
  430. package/static/styles-Q4OZOSSK.css +1 -0
  431. package/server/applications/notifications/interfaces/user-mail-notification.js.map +0 -1
  432. package/static/assets/codemirror/mode/apl/apl.js +0 -174
  433. package/static/assets/codemirror/mode/asciiarmor/asciiarmor.js +0 -74
  434. package/static/assets/codemirror/mode/asn.1/asn.1.js +0 -204
  435. package/static/assets/codemirror/mode/asterisk/asterisk.js +0 -220
  436. package/static/assets/codemirror/mode/brainfuck/brainfuck.js +0 -85
  437. package/static/assets/codemirror/mode/clike/clike.js +0 -942
  438. package/static/assets/codemirror/mode/clojure/clojure.js +0 -293
  439. package/static/assets/codemirror/mode/cmake/cmake.js +0 -97
  440. package/static/assets/codemirror/mode/cobol/cobol.js +0 -255
  441. package/static/assets/codemirror/mode/coffeescript/coffeescript.js +0 -359
  442. package/static/assets/codemirror/mode/commonlisp/commonlisp.js +0 -125
  443. package/static/assets/codemirror/mode/crystal/crystal.js +0 -433
  444. package/static/assets/codemirror/mode/css/css.js +0 -862
  445. package/static/assets/codemirror/mode/cypher/cypher.js +0 -152
  446. package/static/assets/codemirror/mode/d/d.js +0 -223
  447. package/static/assets/codemirror/mode/dart/dart.js +0 -168
  448. package/static/assets/codemirror/mode/diff/diff.js +0 -47
  449. package/static/assets/codemirror/mode/django/django.js +0 -356
  450. package/static/assets/codemirror/mode/dockerfile/dockerfile.js +0 -211
  451. package/static/assets/codemirror/mode/dtd/dtd.js +0 -142
  452. package/static/assets/codemirror/mode/dylan/dylan.js +0 -352
  453. package/static/assets/codemirror/mode/ebnf/ebnf.js +0 -195
  454. package/static/assets/codemirror/mode/ecl/ecl.js +0 -206
  455. package/static/assets/codemirror/mode/eiffel/eiffel.js +0 -160
  456. package/static/assets/codemirror/mode/elm/elm.js +0 -245
  457. package/static/assets/codemirror/mode/erlang/erlang.js +0 -619
  458. package/static/assets/codemirror/mode/factor/factor.js +0 -85
  459. package/static/assets/codemirror/mode/fcl/fcl.js +0 -173
  460. package/static/assets/codemirror/mode/forth/forth.js +0 -180
  461. package/static/assets/codemirror/mode/fortran/fortran.js +0 -188
  462. package/static/assets/codemirror/mode/gas/gas.js +0 -355
  463. package/static/assets/codemirror/mode/gfm/gfm.js +0 -129
  464. package/static/assets/codemirror/mode/gherkin/gherkin.js +0 -194
  465. package/static/assets/codemirror/mode/go/go.js +0 -187
  466. package/static/assets/codemirror/mode/groovy/groovy.js +0 -245
  467. package/static/assets/codemirror/mode/haml/haml.js +0 -161
  468. package/static/assets/codemirror/mode/handlebars/handlebars.js +0 -70
  469. package/static/assets/codemirror/mode/haskell/haskell.js +0 -268
  470. package/static/assets/codemirror/mode/haskell-literate/haskell-literate.js +0 -43
  471. package/static/assets/codemirror/mode/haxe/haxe.js +0 -515
  472. package/static/assets/codemirror/mode/htmlembedded/htmlembedded.js +0 -37
  473. package/static/assets/codemirror/mode/htmlmixed/htmlmixed.js +0 -153
  474. package/static/assets/codemirror/mode/http/http.js +0 -113
  475. package/static/assets/codemirror/mode/idl/idl.js +0 -290
  476. package/static/assets/codemirror/mode/javascript/javascript.js +0 -960
  477. package/static/assets/codemirror/mode/jinja2/jinja2.js +0 -193
  478. package/static/assets/codemirror/mode/jsx/jsx.js +0 -149
  479. package/static/assets/codemirror/mode/julia/julia.js +0 -390
  480. package/static/assets/codemirror/mode/livescript/livescript.js +0 -280
  481. package/static/assets/codemirror/mode/lua/lua.js +0 -160
  482. package/static/assets/codemirror/mode/markdown/markdown.js +0 -886
  483. package/static/assets/codemirror/mode/mathematica/mathematica.js +0 -176
  484. package/static/assets/codemirror/mode/mbox/mbox.js +0 -129
  485. package/static/assets/codemirror/mode/meta.js +0 -221
  486. package/static/assets/codemirror/mode/mirc/mirc.js +0 -193
  487. package/static/assets/codemirror/mode/mllike/mllike.js +0 -359
  488. package/static/assets/codemirror/mode/modelica/modelica.js +0 -245
  489. package/static/assets/codemirror/mode/mscgen/mscgen.js +0 -175
  490. package/static/assets/codemirror/mode/mumps/mumps.js +0 -148
  491. package/static/assets/codemirror/mode/nginx/nginx.js +0 -178
  492. package/static/assets/codemirror/mode/nsis/nsis.js +0 -95
  493. package/static/assets/codemirror/mode/ntriples/ntriples.js +0 -195
  494. package/static/assets/codemirror/mode/octave/octave.js +0 -139
  495. package/static/assets/codemirror/mode/oz/oz.js +0 -252
  496. package/static/assets/codemirror/mode/pascal/pascal.js +0 -136
  497. package/static/assets/codemirror/mode/pegjs/pegjs.js +0 -111
  498. package/static/assets/codemirror/mode/perl/perl.js +0 -836
  499. package/static/assets/codemirror/mode/php/php.js +0 -234
  500. package/static/assets/codemirror/mode/pig/pig.js +0 -178
  501. package/static/assets/codemirror/mode/powershell/powershell.js +0 -398
  502. package/static/assets/codemirror/mode/properties/properties.js +0 -78
  503. package/static/assets/codemirror/mode/protobuf/protobuf.js +0 -72
  504. package/static/assets/codemirror/mode/pug/pug.js +0 -591
  505. package/static/assets/codemirror/mode/puppet/puppet.js +0 -220
  506. package/static/assets/codemirror/mode/python/python.js +0 -402
  507. package/static/assets/codemirror/mode/q/q.js +0 -139
  508. package/static/assets/codemirror/mode/r/r.js +0 -190
  509. package/static/assets/codemirror/mode/rpm/changes/index.html +0 -66
  510. package/static/assets/codemirror/mode/rpm/rpm.js +0 -109
  511. package/static/assets/codemirror/mode/rst/rst.js +0 -557
  512. package/static/assets/codemirror/mode/ruby/ruby.js +0 -303
  513. package/static/assets/codemirror/mode/rust/rust.js +0 -72
  514. package/static/assets/codemirror/mode/sas/sas.js +0 -303
  515. package/static/assets/codemirror/mode/sass/sass.js +0 -459
  516. package/static/assets/codemirror/mode/scheme/scheme.js +0 -284
  517. package/static/assets/codemirror/mode/shell/shell.js +0 -168
  518. package/static/assets/codemirror/mode/sieve/sieve.js +0 -193
  519. package/static/assets/codemirror/mode/slim/slim.js +0 -575
  520. package/static/assets/codemirror/mode/smalltalk/smalltalk.js +0 -168
  521. package/static/assets/codemirror/mode/smarty/smarty.js +0 -225
  522. package/static/assets/codemirror/mode/solr/solr.js +0 -104
  523. package/static/assets/codemirror/mode/soy/soy.js +0 -665
  524. package/static/assets/codemirror/mode/sparql/sparql.js +0 -184
  525. package/static/assets/codemirror/mode/spreadsheet/spreadsheet.js +0 -112
  526. package/static/assets/codemirror/mode/sql/sql.js +0 -529
  527. package/static/assets/codemirror/mode/stex/stex.js +0 -264
  528. package/static/assets/codemirror/mode/stylus/stylus.js +0 -775
  529. package/static/assets/codemirror/mode/swift/swift.js +0 -221
  530. package/static/assets/codemirror/mode/tcl/tcl.js +0 -140
  531. package/static/assets/codemirror/mode/textile/textile.js +0 -469
  532. package/static/assets/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  533. package/static/assets/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -308
  534. package/static/assets/codemirror/mode/tiki/tiki.css +0 -26
  535. package/static/assets/codemirror/mode/tiki/tiki.js +0 -312
  536. package/static/assets/codemirror/mode/toml/toml.js +0 -88
  537. package/static/assets/codemirror/mode/tornado/tornado.js +0 -68
  538. package/static/assets/codemirror/mode/troff/troff.js +0 -84
  539. package/static/assets/codemirror/mode/ttcn/ttcn.js +0 -283
  540. package/static/assets/codemirror/mode/ttcn-cfg/ttcn-cfg.js +0 -214
  541. package/static/assets/codemirror/mode/turtle/turtle.js +0 -162
  542. package/static/assets/codemirror/mode/twig/twig.js +0 -141
  543. package/static/assets/codemirror/mode/vb/vb.js +0 -275
  544. package/static/assets/codemirror/mode/vbscript/vbscript.js +0 -350
  545. package/static/assets/codemirror/mode/velocity/velocity.js +0 -202
  546. package/static/assets/codemirror/mode/verilog/verilog.js +0 -781
  547. package/static/assets/codemirror/mode/vhdl/vhdl.js +0 -189
  548. package/static/assets/codemirror/mode/vue/vue.js +0 -77
  549. package/static/assets/codemirror/mode/wast/wast.js +0 -132
  550. package/static/assets/codemirror/mode/webidl/webidl.js +0 -195
  551. package/static/assets/codemirror/mode/xml/xml.js +0 -417
  552. package/static/assets/codemirror/mode/xquery/xquery.js +0 -448
  553. package/static/assets/codemirror/mode/yacas/yacas.js +0 -204
  554. package/static/assets/codemirror/mode/yaml/yaml.js +0 -120
  555. package/static/assets/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +0 -72
  556. package/static/assets/codemirror/mode/z80/z80.js +0 -116
  557. package/static/chunk-2KLC4T2Z.js +0 -1
  558. package/static/chunk-2VMSXRCB.js +0 -12
  559. package/static/chunk-3OHSRRKH.js +0 -4
  560. package/static/chunk-3R4WKOHQ.js +0 -1
  561. package/static/chunk-3XVM35O2.js +0 -1
  562. package/static/chunk-3YVRP3VM.js +0 -2
  563. package/static/chunk-5UKZLU5H.js +0 -1
  564. package/static/chunk-AF24EYXU.js +0 -1
  565. package/static/chunk-AKQVEHO6.js +0 -2
  566. package/static/chunk-BCVX464U.js +0 -2
  567. package/static/chunk-BQV4FRM6.js +0 -1
  568. package/static/chunk-CETH7UYS.js +0 -1
  569. package/static/chunk-DIT6W7VM.js +0 -562
  570. package/static/chunk-DKSEQTMX.js +0 -1
  571. package/static/chunk-FZ3JPGYZ.js +0 -1
  572. package/static/chunk-IQSKQXC3.js +0 -1
  573. package/static/chunk-ITUFI2BJ.js +0 -1
  574. package/static/chunk-LCTZJ537.js +0 -1
  575. package/static/chunk-LK2UCQJ6.js +0 -1
  576. package/static/chunk-LP5TBXEN.js +0 -7
  577. package/static/chunk-N3U6637P.js +0 -1
  578. package/static/chunk-NNV4OXSB.js +0 -1
  579. package/static/chunk-O6FYXVHI.js +0 -1
  580. package/static/chunk-OOGP4WSH.js +0 -2
  581. package/static/chunk-PCWDQPOM.js +0 -2
  582. package/static/chunk-PNR6M34W.js +0 -1
  583. package/static/chunk-Q5KM7LTX.js +0 -1
  584. package/static/chunk-QHC6ZPQ4.js +0 -1
  585. package/static/chunk-QMRBZHE4.js +0 -1
  586. package/static/chunk-QSJRY3TF.js +0 -1
  587. package/static/chunk-QUUIRSYT.js +0 -1
  588. package/static/chunk-RFH46UW3.js +0 -1
  589. package/static/chunk-RSXHRKM5.js +0 -1
  590. package/static/chunk-RV3VZJPZ.js +0 -1
  591. package/static/chunk-S7HNXVRB.js +0 -1
  592. package/static/chunk-SBZ572Q4.js +0 -2
  593. package/static/chunk-SJR5R3Y4.js +0 -1
  594. package/static/chunk-SLHTEGRU.js +0 -1
  595. package/static/chunk-SSFF27P2.js +0 -24
  596. package/static/chunk-V3LHHZYN.js +0 -1
  597. package/static/chunk-VQQKMY2C.js +0 -1
  598. package/static/chunk-WSSU2HXE.js +0 -1
  599. package/static/chunk-XDZGW64M.js +0 -3
  600. package/static/chunk-XTRDKGKG.js +0 -1
  601. package/static/chunk-YLWTEC3X.js +0 -1
  602. package/static/chunk-Z5J5F5SX.js +0 -1
  603. package/static/main-4H5BJY3J.js +0 -9
  604. package/static/scripts-WRDOQIU5.js +0 -24
  605. package/static/styles-2C2UNCNB.css +0 -1
@@ -1 +0,0 @@
1
- import"./chunk-N3U6637P.js";var i="Kimlik do\u011Frulama",r="Kullan\u0131c\u0131 ad\u0131",l="Parola",n="Onayla",o="\u0130ptal",t="Kapat",s="Filtre",d="Filtreler",u="ara",m="Ara",c="G\xF6r\xFCnt\xFCle",y="G\xF6rev yok",p="{{ nb }} g\xF6rev tamamland\u0131",k="{{ nb }} g\xF6rev tamamland\u0131",h="Toplam {{ nb }} g\xF6revden {{ nba }} g\xF6rev devam ediyor",b="Toplam {{ nb }} g\xF6revden {{ nba }} g\xF6rev devam ediyor",g="{{nb}} \xF6\u011Fe",z="{{nb}} i\u015Flem",f="{{ nb }} yeni mesaj",v="{{ nb }} yeni mesaj",S="{{ nb }} okunmam\u0131\u015F bildirim",w="{{ nb }} okunmam\u0131\u015F bildirim",A="Uygulama",T="uygulama",B="Bildirim",D="Bildirimler",K="Olay",P="Dosya",Y="Dosyalar",G="Ki\u015Fisel",E="Harici",M="Gruplar",_="Grup",C="grup",x="gruplar",U="G\xF6r\xFCn\xFCr",F="\xD6zel",L="Yal\u0131t\u0131lm\u0131\u015F",N="Ekle",R="Y\xF6netici",O="Y\xF6netim",H="Kullan\u0131c\u0131",I="kullan\u0131c\u0131",W="Kullan\u0131c\u0131lar",V="kullan\u0131c\u0131lar",q="hesap",j="Hesap",Q="E-posta",Z="Durum",J="Rol",X="IP",$="G\xF6r\xFCld\xFC",ee="Ba\u011Flant\u0131",ae="Ba\u011Flant\u0131lar",ie="Kullan\u0131labilir alan d\xFC\u015F\xFCk ( {{ nb }}% )",re="\xE7evrimi\xE7i",le="S\u0131n\u0131rs\u0131z",ne="\xFCye",oe="\xFCyeler",te="\xDCye",se="\xDCyeler",de="Y\xF6netici",ue="y\xF6netici",me="Y\xF6neticiler",ce="Olu\u015Ftur",ye="\u0130\xE7e aktar",pe="Yap\u0131land\u0131rma",ke="Uygulamalar",he="uygulamalar",be="Avatar",ge="G\xFCncelle",ze="Dil",fe="Ana sayfa",ve="Son kullan\u0131lanlar",Se="son",we="\xC7\xF6p kutusu",Ae="Payla\u015F\u0131mlar",Te="Payla\u015F",Be="payla\u015F\u0131mlar",De="payla\u015F\u0131ld\u0131",Ke="Ki\u015Fisel alana eri\u015Fim",Pe="Alanlara eri\u015Fim",Ye="Alan y\xF6netimi",Ge="Payla\u015F\u0131mlara eri\u015Fim",Ee="Payla\u015F\u0131m y\xF6netimi",Me="Misafir y\xF6netimi",_e="Ki\u015Fisel grup y\xF6netimi",Ce="Masa\xFCst\xFC uygulamas\u0131ndan eri\u015Fim",xe="Masa\xFCst\xFC uygulamas\u0131ndan e\u015Fitleme",Ue="WebDAV eri\u015Fimi",Fe="WebDAV",Le="Alan",Ne="Alanlar",Re="alanlar",Oe="sabitledi",He="sabitlemeyi kald\u0131rd\u0131",Ie="Konum",We="Sabitlenmi\u015F",Ve="Ayarlar",qe="Se\xE7enekler",je="Ad",Qe="\u0130ndir",Ze="Ta\u015F\u0131",Je="Kopyala",Xe="Yeniden adland\u0131r",$e="D\xFCzenle",ea="Kald\u0131r",aa="Pano",ia="Yenile",ra="Bo\u015Falt",la="Liste",na="G\xF6r\xFCnt\xFC",oa="<b>{{arg}}</b> \xE7\xF6p kutusuna ta\u015F\u0131ns\u0131n m\u0131?",ta="<b>{{arg}}</b> kal\u0131c\u0131 olarak silinsin mi?",sa="Bu <b>{{arg}} dosya</b> \xE7\xF6p kutusuna ta\u015F\u0131ns\u0131n m\u0131?",da="Bu <b>{{arg}} dosya</b> kal\u0131c\u0131 olarak silinsin mi?",ua="e\u015Fitleme",ma="E\u015Fitleme",ca="E\u015Fitlemeler",ya="E\u015Fitle",pa="E\u015Fitle",ka="E\u015Fitlendi",ha="S\u0131k\u0131\u015Ft\u0131r",ba="S\u0131k\u0131\u015Ft\u0131rmay\u0131 a\xE7",ga="Bilgi",za="Bilgiler",fa="Bilgiler",va="Boyut",Sa="De\u011Fi\u015Ftirildi",wa="de\u011Fi\u015Ftirildi",Aa="G\xF6revler",Ta="Metin",Ba="\xD6\u011Feler",Da="Yeni",Ka="Klas\xF6r",Pa="klas\xF6r",Ya="dosya",Ga="dosyalar",Ea="dizin",Ma="dizinler",_a="Toplam",Ca="se\xE7im yok",xa="{{ nb }} \xF6\u011Fe se\xE7ildi",Ua="{{ nb }} \xF6\u011Fe se\xE7ildi",Fa="\xF6\u011Fe",La="\xF6\u011Fe",Na="olu\u015Ftur",Ra="yaz",Oa="ta\u015F\u0131",Ha="sil",Ia="de\u011Fi\u015Ftir",Wa="payla\u015F\u0131m",Va="Ba\u011Flant\u0131",qa="ba\u011Flant\u0131",ja="Ba\u011Flant\u0131lar",Qa="ba\u011Flant\u0131lar",Za="Misafir",Ja="Misafirler",Xa="misafir",$a="misafirler",ei="S\xFCresi doldu",ai="s\xFCresi doldu",ii="yok",ri="\u0130zinler",li="Sahip",ni="Ben",oi="Payla\u015F\u0131lan",ti="Olu\u015Fturulma",si="Tarih",di="Yol",ui="aktif",mi="Aktif",ci="ask\u0131da",yi="T\xFCr",pi="A\xE7\u0131klama",ki="G\xF6r\xFCn\xFCrl\xFCk",hi="Bilinmiyor",bi="Sona erme",gi="Eri\u015Fim",zi="Eri\u015Fildi",fi="Yorum",vi="Yorumlar",Si="yorumlar",wi="yorum yapt\u0131",Ai="evet",Ti="hay\u0131r",Bi="\u0130stemci",Di="\u0130stemciler",Ki="kullan\u0131labilir",Pi="me\u015Fgul",Yi="yok",Gi="\xE7evrimd\u0131\u015F\u0131",Ei="G\xF6r\xFCnt\xFCle",Mi="\xE7\u0131k\u0131\u015F",_i="g\xFCn",Ci="g\xFCn",xi="Sil",Ui="Zamanlay\u0131c\u0131",Fi="paralel",Li="ard\u0131\u015F\u0131k",Ni="Aktar\u0131mlar",Ri="Sim\xFCle et",Oi="S\u0131f\u0131rla",Hi="G\xF6zat",Ii="\u0130\u015Flem",Wi="Eklendi",Vi="Kald\u0131r\u0131ld\u0131",qi="Kopyaland\u0131",ji="Ta\u015F\u0131nd\u0131",Qi="Filtrelendi",Zi="Hata",Ji="Sunucu",Xi="Y\xF6n",$i="\xC7ak\u0131\u015Fma",er="son",ar="Kaynak",ir="Hedef",rr="Mod",lr="Ard\u0131\u015F\u0131k olarak",nr="Paralel olarak",or="h\u0131zl\u0131",tr="g\xFCvenli",sr="etkin",dr="Etkinle\u015Ftir",ur="devre d\u0131\u015F\u0131",mr="Devre d\u0131\u015F\u0131 b\u0131rak",cr="saat",yr="dakika",pr="g\xFCn",kr="her ikisi",hr="asla",br="Sihirbaz",gr="\u0130leri",zr="Geri",fr="Bitti",vr="\u2192",Sr="Depo",wr="genel",Ar="yerel",Tr="uzak",Br="Web sitesi",Dr="Dok\xFCmantasyon",Kr="S\xFCr\xFCmler",Pr="G\xFCvenlik",Yr="Y\xF6net",Gr={"Sign-in to your account":"Hesab\u0131n\u0131za giri\u015F yap\u0131n","Wrong login or password":"Kullan\u0131c\u0131 ad\u0131 veya parola yanl\u0131\u015F","Authentication service error":"Kimlik do\u011Frulama hizmeti hatas\u0131","Account locked":"Hesap kilitlendi","Account is not allowed":"Hesaba izin verilmiyor","Account matching error":"Hesap e\u015Fle\u015Ftirme hatas\u0131",Authentication:i,"Sign in":"Giri\u015F yap",Login:r,Password:l,"Login or Email":"Kullan\u0131c\u0131 ad\u0131 veya E-posta","Login already used":"Bu kullan\u0131c\u0131 ad\u0131 zaten kullan\u0131l\u0131yor","You are already logged in":"Zaten giri\u015F yapt\u0131n\u0131z","Name already used":"Bu ad zaten kullan\u0131l\u0131yor","Token has expired":"Belirtecin s\xFCresi doldu",Confirm:n,Cancel:o,Close:t,"Server connection error":"Sunucu ba\u011Flant\u0131 hatas\u0131",Filter:s,Filters:d,search:u,Search:m,"Search for content":"\u0130\xE7erik ara","Search for files":"Dosya ara","Full-text search":"Tam metin arama","Full-text search is disabled":"Tam metin arama devre d\u0131\u015F\u0131","Type to search for users or groups to add":"Eklenecek kullan\u0131c\u0131 veya grubu aray\u0131n","Type to search for groups to add":"Eklenecek grubu aray\u0131n","Type to search for users to add":"Eklenecek kullan\u0131c\u0131y\u0131 aray\u0131n","Type to search for managers to add":"Eklenecek y\xF6neticiyi aray\u0131n","Member since":"\xDCyelik tarihi","Windows Manager":"Pencere Y\xF6neticisi","Mark as read":"Okundu olarak i\u015Faretle",See:c,no_task:y,one_task:p,nb_tasks:k,one_active_task:h,nb_active_tasks:b,nb_elements:g,nb_actions:z,one_message:f,nb_messages:v,one_notification:S,nb_notifications:w,Application:A,application:T,"application and email":"uygulama ve e-posta",Notification:B,Notifications:D,Event:K,File:P,Files:Y,"Personal files":"Ki\u015Fisel dosyalar","for personal files":"ki\u015Fisel dosyalar i\xE7in",Personal:G,External:E,"Share status":"Payla\u015F\u0131m durumu","Share description":"Payla\u015F\u0131m a\xE7\u0131klamas\u0131","No recent files":"Son dosya yok",Groups:M,Group:_,group:C,"New personal group":"Yeni ki\u015Fisel grup","Edit personal group":"Ki\u015Fisel grubu d\xFCzenle","personal group":"ki\u015Fisel grup","Personal group":"Ki\u015Fisel grup","Personal groups":"Ki\u015Fisel gruplar",groups:x,"Parent group":"\xDCst grup","Group updated":"Grup g\xFCncellendi","Group created":"Grup olu\u015Fturuldu","Group not found":"Grup bulunamad\u0131","Group error":"Grup hatas\u0131","Set as group manager":"Grup y\xF6neticisi yap","As a manager, the user will be able to manage the group and its members.":"Y\xF6netici, grubu ve \xFCyelerini y\xF6netebilir.","As a manager, the user will be able to manage group members but not group properties.":"Y\xF6netici, grup \xFCyelerini y\xF6netebilir ancak grup \xF6zelliklerini y\xF6netemez.",Visible:U,Private:F,Isolated:L,"Select the parent group":"\xDCst grubu se\xE7in","from the group":"gruptan","New group":"Yeni grup","Edit group":"Grubu d\xFCzenle","Leave group":"Gruptan ayr\u0131l","Delete group":"Grubu sil","Remove from group":"Gruptan kald\u0131r","Group must have at least one manager":"Grubun en az bir y\xF6neticisi olmal\u0131d\u0131r","The group was left":"Gruptan ayr\u0131ld\u0131n\u0131z","The group was not left":"Gruptan ayr\u0131lamad\u0131","will be left, you will no longer be a member of this group":"gruptan ayr\u0131lacaks\u0131n\u0131z; art\u0131k bu grubun \xFCyesi olmayacaks\u0131n\u0131z","All users can see this group.":"T\xFCm kullan\u0131c\u0131lar bu grubu g\xF6rebilir.","Users who are not members of this group cannot see it.":"Bu grubun \xFCyesi olmayanlar g\xF6remez.","The group is not visible, its members cannot see it and cannot see each other.":"Grup g\xF6r\xFCn\xFCr de\u011Fil; \xFCyeler grubu ve birbirlerini g\xF6remez.",Add:N,"Add members":"\xDCye ekle","See members":"\xDCyeleri g\xF6r\xFCnt\xFCle",Administrator:R,Administration:O,User:H,user:I,Users:W,users:V,"New user":"Yeni kullan\u0131c\u0131",account:q,Account:j,"Account status":"Hesap durumu",Email:Q,"Email already used":"Bu e-posta zaten kullan\u0131l\u0131yor","First name":"Ad","Last name":"Soyad","Full name":"Ad Soyad",Status:Z,Role:J,IP:X,"IP Addresses":"IP Adresleri",Seen:$,Connection:ee,Connections:ae,"Confirm deletion":"Silme onay\u0131","Confirm permanent deletion of data":"Verilerin kal\u0131c\u0131 silinmesini onayla","Space and data will be deleted in":"Alan ve veriler \u015Fu s\xFCre i\xE7inde silinecek","Space is disabled":"Alan devre d\u0131\u015F\u0131","Storage Space":"Depolama Alan\u0131","Storage Quota":"Depolama Kotas\u0131","Storage Usage":"Depolama Kullan\u0131m\u0131","Space status":"Alan durumu","Storage quota exceeded":"Depolama kotas\u0131 a\u015F\u0131ld\u0131","Storage quota will be exceeded":"Depolama kotas\u0131 a\u015F\u0131lacak","No more space available":"Bo\u015F alan kalmad\u0131",available_space_is_low:ie,online:re,"Online users":"\xC7evrimi\xE7i kullan\u0131c\u0131lar",Unlimited:le,member:ne,members:oe,Member:te,Members:se,Manager:de,manager:ue,Managers:me,"At least one manager is required":"En az bir y\xF6netici gerekir",Generate:ce,Import:ye,Configuration:pe,Applications:ke,applications:he,"Permissions inherited from groups":"Gruplardan devral\u0131nan izinler","Only the group will be deleted, the members will no longer be part of it.":"Yaln\u0131zca grup silinecek; \xFCyeler art\u0131k onun par\xE7as\u0131 olmayacak.",Avatar:be,Update:ge,"current password":"mevcut parola","new password":"yeni parola","Change me !":"Beni de\u011Fi\u015Ftir!","Current password missing !":"Mevcut parola eksik!","New password missing !":"Yeni parola eksik!","New password must have 8 characters minimum":"Yeni parola en az 8 karakter olmal\u0131d\u0131r","Current password does not match":"Mevcut parola e\u015Fle\u015Fmiyor","Password has been updated":"Parola g\xFCncellendi","Unable to update password":"Parola g\xFCncellenemedi","Bad password":"Hatal\u0131 parola","too many login attempts":"\xE7ok fazla giri\u015F denemesi",Language:ze,"Language updated":"Dil g\xFCncellendi","Unable to update language":"Dil g\xFCncellenemedi","Notification preference updated":"Bildirim tercihi g\xFCncellendi","Full-text search preference updated":"Tam metin arama tercihi g\xFCncellendi","Unable to update notification preference":"Bildirim tercihi g\xFCncellenemedi","Unable to update full-text search preference":"Tam metin arama tercihi g\xFCncellenemedi","Unable to open document":"Belge a\xE7\u0131lamad\u0131",Home:fe,Recents:ve,recents:Se,Trash:we,"trash bins":"\xE7\xF6p kutular\u0131",Shares:Ae,Share:Te,shares:Be,shared:De,personal_space:Ke,spaces_access:Pe,spaces_admin:Ye,shares_access:Ge,shares_admin:Ee,guests_admin:Me,personal_groups_admin:_e,desktop_app_access:Ce,desktop_app_sync:xe,webdav_access:Ue,"Create share":"Payla\u015F\u0131m olu\u015Ftur","Edit share":"Payla\u015F\u0131m\u0131 d\xFCzenle","Delete share":"Payla\u015F\u0131m\u0131 sil","Child shares":"Alt payla\u015F\u0131mlar",webdav:Fe,"Share is disabled":"Payla\u015F\u0131m devre d\u0131\u015F\u0131",Space:Le,Spaces:Ne,spaces:Re,"Space name":"Alan ad\u0131","New space":"Yeni alan","Create a new space":"Yeni alan olu\u015Ftur","Create space":"Alan olu\u015Ftur","Edit space":"Alan\u0131 d\xFCzenle","Delete space":"Alan\u0131 sil","Create a new share":"Yeni payla\u015F\u0131m olu\u015Ftur","Type to search for space to select":"Se\xE7ilecek alan\u0131 aray\u0131n","Anchor to a space":"Bir alana sabitle","Anchor files to a space":"Dosyalar\u0131 bir alana sabitle","You have been invited to join this space":"Bu alana kat\u0131lmaya davet edildiniz","You have been invited to join this share":"Bu payla\u015F\u0131ma kat\u0131lmaya davet edildiniz","Shared with others":"Ba\u015Fkalar\u0131yla payla\u015F\u0131lan","With others":"Ba\u015Fkalar\u0131yla","Shared with me":"Benimle payla\u015F\u0131lan","With me":"Benimle","Shared via links":"Ba\u011Flant\u0131yla payla\u015F\u0131lan","Via links":"Ba\u011Flant\u0131yla","Shared from":"Payla\u015Fan","share with you this":"\u015Funu sizinle payla\u015Ft\u0131","shared with you":"sizinle payla\u015Ft\u0131","no longer share with you":"art\u0131k sizinle payla\u015Fm\u0131yor","You now have access to the space":"Art\u0131k alana eri\u015Fiminiz var","You no longer have access to the space":"Art\u0131k alana eri\u015Fiminiz yok","This space has been permanently deleted":"Bu alan kal\u0131c\u0131 olarak silindi","You now have access to the share":"Art\u0131k payla\u015F\u0131ma eri\u015Fiminiz var","You no longer have access to the share":"Art\u0131k payla\u015F\u0131ma eri\u015Fiminiz yok","You are no longer a member of the parent share, your child share has been deleted":"\xDCst payla\u015F\u0131m\u0131n \xFCyesi olmad\u0131\u011F\u0131n\u0131z i\xE7in alt payla\u015F\u0131m\u0131n\u0131z silindi",anchored:Oe,unanchored:He,"Share not found":"Payla\u015F\u0131m bulunamad\u0131","Go to":"Git",Location:Ie,"Name and location are required":"Ad ve konum gereklidir","Parent location already exists in files":"\xDCst konum dosyalarda zaten mevcut","Check the location":"Konumu kontrol et","Location not found":"Konum bulunamad\u0131","Forbidden resource":"\u0130zin verilmeyen konum","Resource already exists":"\xD6\u011Fe zaten mevcut","The location does not exist":"Konum mevcut de\u011Fil","The location is not readable":"Konum okunam\u0131yor","The location is not writeable":"Konuma yaz\u0131lam\u0131yor","The location is a directory":"Konum bir dizin","The file is locked":"Dosya kilitli","This share is protected by a password":"Bu payla\u015F\u0131m parola ile korunuyor","You do not have share permission":"Payla\u015Fma izniniz yok","You can not share a space":"Bir alan\u0131 payla\u015Famazs\u0131n\u0131z","You can not remove an anchored file":"Sabitlenmi\u015F bir dosyay\u0131 kald\u0131ramazs\u0131n\u0131z","You are not allowed to write here":"Buraya yazma izniniz yok","You are not allowed to do this action":"Bu i\u015Flemi yapma izniniz yok","You can not move an anchored file":"Sabitlenmi\u015F bir dosyay\u0131 ta\u015F\u0131yamazs\u0131n\u0131z","You can not move a locked file":"Kilitli bir dosyay\u0131 ta\u015F\u0131yamazs\u0131n\u0131z",Anchored:We,"Anchored by":"Sabitleyen","Manage my anchored files":"Sabitlenmi\u015F dosyalar\u0131m\u0131 y\xF6net","You have no files anchored on this space":"Bu alana sabitlenmi\u015F dosyan\u0131z yok","An anchored file already has this name":"Ayn\u0131 adl\u0131 sabitlenmi\u015F bir dosya zaten var",Settings:Ve,Options:qe,Name:je,Download:Qe,"Download done":"\u0130ndirme tamamland\u0131","Download failed":"\u0130ndirme ba\u015Far\u0131s\u0131z","Upload done":"Y\xFCkleme tamamland\u0131","Upload failed":"Y\xFCkleme ba\u015Far\u0131s\u0131z","Copy/Move":"Kopyala/Ta\u015F\u0131",Move:Ze,"Move done":"Ta\u015F\u0131ma tamamland\u0131","Move failed":"Ta\u015F\u0131ma ba\u015Far\u0131s\u0131z","Deletion done":"Silme tamamland\u0131","Deletion failed":"Silme ba\u015Far\u0131s\u0131z","Creation failed":"Olu\u015Fturma ba\u015Far\u0131s\u0131z",Copy:Je,"Copy done":"Kopyalama tamamland\u0131","Copy failed":"Kopyalama ba\u015Far\u0131s\u0131z","Copy-Paste":"Kopyala-Yap\u0131\u015Ft\u0131r","Cut-Paste":"Kes-Yap\u0131\u015Ft\u0131r",Rename:Xe,Edit:$e,"Share inside":"\u0130\xE7eride payla\u015F","Share outside":"D\u0131\u015Far\u0131da payla\u015F",Remove:ea,Clipboard:aa,"Send to Clipboard":"Panoya g\xF6nder","will be removed":"kald\u0131r\u0131lacak",Refresh:ia,Empty:ra,List:la,Display:na,"Sort by":"S\u0131rala",trash_one_file:oa,delete_one_file:ta,trash_multiple_files:sa,delete_multiple_files:da,"Moving to trash":"\xC7\xF6p kutusuna ta\u015F\u0131n\u0131yor","Permanent deletion":"Kal\u0131c\u0131 silme","Would you like to empty the trash ?":"\xC7\xF6p kutusunu bo\u015Faltmak ister misiniz?","All items will be permanently deleted":"T\xFCm \xF6\u011Feler kal\u0131c\u0131 olarak silinecek","Actions will be performed in the current folder":"\u0130\u015Flemler mevcut klas\xF6rde ger\xE7ekle\u015Ftirilecek","The client will no longer have permission to access your account and will no longer be able to synchronize.":"\u0130stemcinin hesab\u0131n\u0131za eri\u015Fim izni olmayacak ve art\u0131k e\u015Fitleme yapamayacak.","The access expires":"Eri\u015Fim s\xFCresi doluyor","The access has expired":"Eri\u015Fim s\xFCresi doldu","Never expires":"S\xFCresiz",synchronization:ua,Synchronization:ma,Synchronizations:ca,Synchronize:ya,Sync:pa,"Stop synchronization":"E\u015Fitlemeyi durdur","Synchronize all":"T\xFCm\xFCn\xFC e\u015Fitle","Stop synchronizations":"E\u015Fitlemeleri durdur",Synced:ka,"Sync already exists":"E\u015Fitleme zaten mevcut","Sync was reset":"E\u015Fitleme s\u0131f\u0131rland\u0131","Sync deleted":"E\u015Fitleme silindi","This client":"Bu istemci","You are no longer synchronizing":"Art\u0131k e\u015Fitleme yapm\u0131yorsunuz",Compress:ha,Decompress:ba,"Compress and Download":"S\u0131k\u0131\u015Ft\u0131r ve indir","Compress and Save":"S\u0131k\u0131\u015Ft\u0131r ve kaydet","Enable compression":"S\u0131k\u0131\u015Ft\u0131rmay\u0131 etkinle\u015Ftir","Compression done":"S\u0131k\u0131\u015Ft\u0131rma tamamland\u0131","Compression failed":"S\u0131k\u0131\u015Ft\u0131rma ba\u015Far\u0131s\u0131z","Decompression done":"S\u0131k\u0131\u015Ft\u0131rma a\xE7ma tamamland\u0131","Decompression failed":"S\u0131k\u0131\u015Ft\u0131rma a\xE7ma ba\u015Far\u0131s\u0131z","(this may take longer)":"(bu i\u015Flem daha uzun s\xFCrebilir)","Save in the current directory":"Mevcut dizine kaydet","This name is already used":"Bu ad zaten kullan\u0131l\u0131yor",Information:ga,Informations:za,Infos:fa,Size:va,Modified:Sa,modified:wa,Tasks:Aa,"Download from URL":"URL'den indir","Upload files":"Dosya y\xFCkle","Upload folders":"Klas\xF6r y\xFCkle","Folder name":"Klas\xF6r ad\u0131","New folder":"Yeni klas\xF6r","Document name":"Belge ad\u0131","New document":"Yeni belge","File name":"Dosya ad\u0131","File permissions":"Dosya izinleri",Text:Ta,"Rich Text Format":"Zengin Metin Bi\xE7imi","Forbidden characters":"\u0130zin verilmeyen karakterler",Elements:Ba,"Malformed URL":"Hatal\u0131 URL",New:Da,Folder:Ka,folder:Pa,file:Ya,files:Ga,directory:Ea,directories:Ma,Total:_a,no_selection:Ca,one_selection:xa,nb_selections:Ua,"Archive name":"Ar\u015Fiv ad\u0131","Drag and drop your files here":"Dosyalar\u0131n\u0131z\u0131 buraya s\xFCr\xFCkleyip b\u0131rak\u0131n","The destination already exists":"Hedef zaten mevcut","This item is already selected":"Bu \xF6\u011Fe zaten se\xE7ili","Parent item is already selected":"\xDCst \xF6\u011Fe zaten se\xE7ili","This file contains binary data that can not be read":"Bu dosya okunamayan ikili veri i\xE7eriyor","Navigation Tree":"Gezinme A\u011Fac\u0131",item:Fa,items:La,create:Na,write:Ra,move:Oa,delete:Ha,modify:Ia,"Delete user":"Kullan\u0131c\u0131y\u0131 sil","Delete all user files":"Kullan\u0131c\u0131n\u0131n t\xFCm dosyalar\u0131n\u0131 sil",share:Wa,"Share name":"Payla\u015F\u0131m ad\u0131","New share":"Yeni payla\u015F\u0131m","New share link":"Yeni payla\u015F\u0131m ba\u011Flant\u0131s\u0131","New link":"Yeni ba\u011Flant\u0131","Edit children shares":"Alt payla\u015F\u0131mlar\u0131 d\xFCzenle",Link:Va,link:qa,Links:ja,links:Qa,"Link copied":"Ba\u011Flant\u0131 kopyaland\u0131","Link created":"Ba\u011Flant\u0131 olu\u015Fturuldu","Link deleted":"Ba\u011Flant\u0131 silindi","Link error":"Ba\u011Flant\u0131 hatas\u0131","Copy link":"Ba\u011Flant\u0131y\u0131 kopyala","Edit link":"Ba\u011Flant\u0131y\u0131 d\xFCzenle","Guest Link":"Misafir Ba\u011Flant\u0131s\u0131","Guest name":"Misafir ad\u0131","Guest email":"Misafir e-postas\u0131","Guest language":"Misafir dili",Guest:Za,Guests:Ja,guest:Xa,guests:$a,"New guest":"Yeni misafir","Edit guest":"Misafiri d\xFCzenle","Guest created":"Misafir olu\u015Fturuldu","Guest deleted":"Misafir silindi","Guest updated":"Misafir g\xFCncellendi","Guest error":"Misafir hatas\u0131","Add an external location":"Harici konum ekle","External location":"Harici konum","Select a file":"Dosya se\xE7","The link is expired":"Ba\u011Flant\u0131n\u0131n s\xFCresi doldu","The link is disabled":"Ba\u011Flant\u0131 devre d\u0131\u015F\u0131","The link was not found":"Ba\u011Flant\u0131 bulunamad\u0131",Expired:ei,expired:ai,none:ii,"The maximum number of access allowed to the link is exceeded":"Ba\u011Flant\u0131 i\xE7in izin verilen en fazla eri\u015Fim say\u0131s\u0131 a\u015F\u0131ld\u0131","Set a password":"Parola ayarla","Enter your password":"Parolan\u0131z\u0131 girin",Permissions:ri,"No permissions":"\u0130zin yok",Owner:li,Me:ni,Shared:oi,Created:ti,"Created & Modified":"Olu\u015Fturulma ve De\u011Fi\u015Ftirilme","Creation date":"Olu\u015Fturulma tarihi","Modification date":"De\u011Fi\u015Ftirilme tarihi","Deactivation date":"Devre d\u0131\u015F\u0131 b\u0131rakma tarihi",Date:si,Path:di,active:ui,Active:mi,suspended:ci,"Unable to rename user space":"Kullan\u0131c\u0131 alan\u0131 yeniden adland\u0131r\u0131lam\u0131yor","Unable to delete user space":"Kullan\u0131c\u0131 alan\u0131 silinemiyor","Unable to update user":"Kullan\u0131c\u0131 g\xFCncellenemiyor","Unable to update user groups":"Kullan\u0131c\u0131 gruplar\u0131 g\xFCncellenemiyor","User created":"Kullan\u0131c\u0131 olu\u015Fturuldu","User updated":"Kullan\u0131c\u0131 g\xFCncellendi","User not found":"Kullan\u0131c\u0131 bulunamad\u0131","Edit user":"Kullan\u0131c\u0131y\u0131 d\xFCzenle","Impersonate identity":"Kimli\u011Fine b\xFCr\xFCn",Type:yi,Description:pi,Visibility:ki,"Unknown error !":"Bilinmeyen hata!",Unknown:hi,Expiration:bi,"Limit access":"Eri\u015Fimi s\u0131n\u0131rla","Current access count":"Mevcut eri\u015Fim say\u0131s\u0131",Access:gi,Accessed:zi,"Last access":"Son eri\u015Fim","Last accesses":"Son eri\u015Fimler",Comment:fi,Comments:vi,comments:Si,commented:wi,"No recent comments":"Son yorum yok","Write a comment ...":"Yorum yaz\u0131n ...",yes:Ai,no:Ti,Client:Bi,Clients:Di,available:Ki,busy:Pi,absent:Yi,offline:Gi,View:Ei,"Session has expired":"Oturumun s\xFCresi doldu","Please sign in":"L\xFCtfen yeniden giri\u015F yap\u0131n",logout:Mi,days:_i,day:Ci,Delete:xi,Scheduler:Ui,async:Fi,seq:Li,Transfers:Ni,Simulate:Ri,Reset:Oi,Browse:Hi,Action:Ii,Added:Wi,Removed:Vi,Copied:qi,Moved:ji,Filtered:Qi,Error:Zi,Server:Ji,Direction:Xi,Conflict:$i,"Show filtered files":"Filtrelenen dosyalar\u0131 g\xF6ster",recent:er,Source:ar,Destination:ir,Mode:rr,Sequentially:lr,Asynchronously:nr,fast:or,secure:tr,enabled:sr,Enable:dr,disabled:ur,Disable:mr,scheduler_unit_hour:cr,scheduler_unit_minute:yr,scheduler_unit_day:pr,"You must have permission to modify the server folder to choose a different sync mode":"Farkl\u0131 bir e\u015Fitleme modu se\xE7mek i\xE7in sunucu klas\xF6r\xFCn\xFC de\u011Fi\u015Ftirme iznine sahip olmal\u0131s\u0131n\u0131z","upload only":"yaln\u0131zca y\xFCkle","download only":"yaln\u0131zca indir",both:kr,never:hr,"Clear events":"Olaylar\u0131 temizle","Events from":"\u015Euradan olaylar","All syncs":"T\xFCm e\u015Fitlemeler","All events":"T\xFCm olaylar","will be cleared":"temizlenecek","No differences":"Fark yok","Select a folder":"Klas\xF6r se\xE7","The files containing":"\u015Eunlar\u0131 i\xE7eren dosyalar","The files starting":"\u015Eunlarla ba\u015Flayan dosyalar","The files ending":"\u015Eunlarla biten dosyalar","Expert (Regexp)":"Uzman (Regexp)","click on the browse button":"g\xF6zat d\xFC\u011Fmesine t\u0131klay\u0131n","with a name or pattern":"ad veya desenle","with the extension ('.mp3', '.avi', '.mov' ...)":"uzant\u0131ya g\xF6re ('.mp3', '.avi', '.mov' ...)",Wizard:br,Next:gr,Previous:zr,Done:fr,"This wizard will help you synchronize a directory on your computer with a Sync-in directory.":"Bu sihirbaz, bilgisayar\u0131n\u0131zdaki bir dizini bir Sync-in diziniyle e\u015Fitlemenize yard\u0131mc\u0131 olur.","To begin, select a folder on your computer.":"Ba\u015Flamak i\xE7in bilgisayar\u0131n\u0131zda bir klas\xF6r se\xE7in.",'You can drag the folder into the area below or click on the "Select" button.':'Klas\xF6r\xFC a\u015Fa\u011F\u0131daki alana s\xFCr\xFCkleyebilir veya "Se\xE7" d\xFC\u011Fmesine t\u0131klayabilirsiniz.',"Drop folder here":"Klas\xF6r\xFC buraya b\u0131rak\u0131n","This directory is already synced":"Bu dizin zaten e\u015Fitlenmi\u015F","The parent directory is already synced":"\xDCst dizin zaten e\u015Fitlenmi\u015F","This folder already exists":"Bu klas\xF6r zaten mevcut","This file already exists":"Bu dosya zaten mevcut","This directory is not accessible":"Bu dizine eri\u015Filemiyor","This directory is read-only, you will not be able to modify it":"Bu dizin salt okunurdur, de\u011Fi\u015Ftiremezsiniz","Please select the server directory to sync, if it doesn't exist you can create it.":"L\xFCtfen e\u015Fitlenecek sunucu dizinini se\xE7in; yoksa olu\u015Fturabilirsiniz.","Double click to browse directories":"Dizinlere g\xF6z atmak i\xE7in \xE7ift t\u0131klay\u0131n","The data will be synchronized from":"Veriler \u015Furadan e\u015Fitlenecek","the client folder":"istemci klas\xF6r\xFC","the server folder":"sunucu klas\xF6r\xFC","(One-Way)":"(tek y\xF6nl\xFC)","(Two-Way)":"(\xE7ift y\xF6nl\xFC)",to:vr,"and from":"ve \u2190","All files created or modified in":"\u015Eurada olu\u015Fturulan veya de\u011Fi\u015Ftirilen t\xFCm dosyalar","will be ignored and deleted":"yok say\u0131lacak ve silinecek","In case of conflict,":"\xC7ak\u0131\u015Fma durumunda,","the most recent files will be kept":"en yeni dosyalar korunur","the client\u2019s files take precedence":"istemci dosyalar\u0131 \xF6nceliklidir","the server\u2019s files take precedence":"sunucu dosyalar\u0131 \xF6nceliklidir","the files in":"\u015Furadaki dosyalar","will be preferred":"tercih edilecektir","Loading...":"Y\xFCkleniyor...","No results":"Sonu\xE7 yok","Download ARM64 version":"ARM64 s\xFCr\xFCm\xFCn\xFC indir","Download Apple Silicon ARM64 version":"Apple Silicon ARM64 s\xFCr\xFCm\xFCn\xFC indir","Download tar.gz version":"tar.gz s\xFCr\xFCm\xFCn\xFC indir",Repository:Sr,public:wr,local:Ar,remote:Tr,"System requirements":"Sistem gereksinimleri","Feature not enabled":"\xD6zellik etkin de\u011Fil","Check the settings":"Ayarlar\u0131 kontrol edin",Website:Br,Documentation:Dr,Versions:Kr,Security:Pr,"Recovery code":"Kurtarma kodu","Use a recovery code":"Kurtarma kodu kullan","Authentication code":"Do\u011Frulama kodu","Secret copied":"Gizli anahtar kopyaland\u0131","Recovery codes copied":"Kurtarma kodlar\u0131 kopyaland\u0131","Invalid code":"Ge\xE7ersiz kod","Incorrect code or password":"Kod veya parola yanl\u0131\u015F","Application Passwords":"Uygulama Parolalar\u0131","Generate a new app password":"Yeni uygulama parolas\u0131 olu\u015Ftur","Generated password":"Olu\u015Fturulan parola","This password will only be shown once after it is generated":"Bu parola yaln\u0131zca olu\u015Fturulduktan sonra bir kez g\xF6sterilecektir","Password name":"Parola ad\u0131",Manage:Yr,"Manage app passwords":"Uygulama parolalar\u0131n\u0131 y\xF6net","Password Authentication":"Parola ile Kimlik Do\u011Frulama","Two-Factor Authentication":"\u0130ki A\u015Famal\u0131 Do\u011Frulama","Two-Factor Authentication is enabled":"\u0130ki a\u015Famal\u0131 do\u011Frulama etkin","Two-Factor Authentication is disabled":"\u0130ki a\u015Famal\u0131 do\u011Frulama devre d\u0131\u015F\u0131","Scan this QR code using your authenticator app.":"Kimlik do\u011Frulama uygulaman\u0131zla bu QR kodu taray\u0131n.","(Such as FreeOTP, Proton Authenticator etc.)":"(\xD6rne\u011Fin FreeOTP, Proton Authenticator vb.)","Or enter this secret manually":"Veya bu gizli anahtar\u0131 elle girin","Valid with your TOTP code":"TOTP kodunuzla do\u011Frulay\u0131n","The secret has expired":"Gizli anahtar\u0131n s\xFCresi doldu","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.":"Bu kodlar\u0131 g\xFCvenli bir yerde saklay\u0131n. \u0130ki a\u015Famal\u0131 do\u011Frulamaya eri\u015Fimi kaybetseniz bile hesab\u0131n\u0131za eri\u015Fmenizi sa\u011Flar.","These recovery codes are for one-time use only and will only be displayed here once.":"Bu kurtarma kodlar\u0131 tek kullan\u0131ml\u0131kt\u0131r ve burada yaln\u0131zca bir kez g\xF6r\xFCnt\xFClenir."};export{gi as Access,zi as Accessed,j as Account,Ii as Action,mi as Active,N as Add,Wi as Added,O as Administration,R as Administrator,We as Anchored,A as Application,ke as Applications,nr as Asynchronously,i as Authentication,be as Avatar,Hi as Browse,o as Cancel,Bi as Client,Di as Clients,aa as Clipboard,t as Close,fi as Comment,vi as Comments,ha as Compress,pe as Configuration,n as Confirm,$i as Conflict,ee as Connection,ae as Connections,qi as Copied,Je as Copy,ti as Created,si as Date,ba as Decompress,xi as Delete,pi as Description,ir as Destination,Xi as Direction,mr as Disable,na as Display,Dr as Documentation,fr as Done,Qe as Download,$e as Edit,Ba as Elements,Q as Email,ra as Empty,dr as Enable,Zi as Error,K as Event,bi as Expiration,ei as Expired,E as External,P as File,Y as Files,s as Filter,Qi as Filtered,d as Filters,Ka as Folder,ce as Generate,_ as Group,M as Groups,Za as Guest,Ja as Guests,fe as Home,X as IP,ye as Import,ga as Information,za as Informations,fa as Infos,L as Isolated,ze as Language,Va as Link,ja as Links,la as List,Ie as Location,r as Login,Yr as Manage,de as Manager,me as Managers,ni as Me,te as Member,se as Members,rr as Mode,Sa as Modified,Ze as Move,ji as Moved,je as Name,Da as New,gr as Next,B as Notification,D as Notifications,qe as Options,li as Owner,l as Password,di as Path,ri as Permissions,G as Personal,zr as Previous,F as Private,ve as Recents,ia as Refresh,ea as Remove,Vi as Removed,Xe as Rename,Sr as Repository,Oi as Reset,J as Role,Ui as Scheduler,m as Search,Pr as Security,c as See,$ as Seen,lr as Sequentially,Ji as Server,Ve as Settings,Te as Share,oi as Shared,Ae as Shares,Ri as Simulate,va as Size,ar as Source,Le as Space,Ne as Spaces,Z as Status,pa as Sync,ka as Synced,ma as Synchronization,ca as Synchronizations,ya as Synchronize,Aa as Tasks,Ta as Text,_a as Total,Ni as Transfers,we as Trash,yi as Type,hi as Unknown,le as Unlimited,ge as Update,H as User,W as Users,Kr as Versions,Ei as View,ki as Visibility,U as Visible,Br as Website,br as Wizard,Yi as absent,q as account,ui as active,Oe as anchored,T as application,he as applications,Fi as async,Ki as available,ie as available_space_is_low,kr as both,Pi as busy,wi as commented,Si as comments,Na as create,Ci as day,_i as days,Gr as default,Ha as delete,da as delete_multiple_files,ta as delete_one_file,Ce as desktop_app_access,xe as desktop_app_sync,Ma as directories,Ea as directory,ur as disabled,sr as enabled,ai as expired,or as fast,Ya as file,Ga as files,Pa as folder,C as group,x as groups,Xa as guest,$a as guests,Me as guests_admin,Fa as item,La as items,qa as link,Qa as links,Ar as local,Mi as logout,ue as manager,ne as member,oe as members,wa as modified,Ia as modify,Oa as move,z as nb_actions,b as nb_active_tasks,g as nb_elements,v as nb_messages,w as nb_notifications,Ua as nb_selections,k as nb_tasks,hr as never,Ti as no,Ca as no_selection,y as no_task,ii as none,Gi as offline,h as one_active_task,f as one_message,S as one_notification,xa as one_selection,p as one_task,re as online,_e as personal_groups_admin,Ke as personal_space,wr as public,er as recent,Se as recents,Tr as remote,pr as scheduler_unit_day,cr as scheduler_unit_hour,yr as scheduler_unit_minute,u as search,tr as secure,Li as seq,Wa as share,De as shared,Be as shares,Ge as shares_access,Ee as shares_admin,Re as spaces,Pe as spaces_access,Ye as spaces_admin,ci as suspended,ua as synchronization,vr as to,sa as trash_multiple_files,oa as trash_one_file,He as unanchored,I as user,V as users,Fe as webdav,Ue as webdav_access,Ra as write,Ai as yes};
@@ -1,24 +0,0 @@
1
- import{e as fu}from"./chunk-N3U6637P.js";var hu=fu((An,On)=>{(function(Y,mt){typeof An=="object"&&typeof On<"u"?On.exports=mt():typeof define=="function"&&define.amd?define(mt):(Y=Y||self,Y.CodeMirror=mt())})(An,function(){"use strict";var Y=navigator.userAgent,mt=navigator.platform,We=/gecko\/\d/i.test(Y),Wn=/MSIE \d/.test(Y),Hn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Y),Mr=/Edge\/(\d+)/.exec(Y),A=Wn||Hn||Mr,E=A&&(Wn?document.documentMode||6:+(Mr||Hn)[1]),ie=!Mr&&/WebKit\//.test(Y),Yo=ie&&/Qt\/\d+\.\d+/.test(Y),ze=!Mr&&/Chrome\/(\d+)/.exec(Y),Fn=ze&&+ze[1],Ce=/Opera\//.test(Y),Dr=/Apple Computer/.test(navigator.vendor),qo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Y),Zo=/PhantomJS/.test(Y),_t=Dr&&(/Mobile\/\w+/.test(Y)||navigator.maxTouchPoints>2),Nr=/Android/.test(Y),Xt=_t||Nr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Y),ye=_t||/Mac/.test(mt),Qo=/\bCrOS\b/.test(Y),Jo=/win/i.test(mt),$e=Ce&&Y.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(Ce=!1,ie=!0);var Pn=ye&&(Yo||Ce&&($e==null||$e<12.11)),pi=We||A&&E>=9;function bt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=bt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function xt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function me(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function rt(e,t){var i=e.className;bt(t).test(i)||(e.className+=(i?" ":"")+t)}function vi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!bt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Yt=function(e){e.select()};_t?Yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Yt=function(e){try{e.select()}catch{}});function qt(e){return e.display.wrapper.ownerDocument}function Ct(e){return it(e.display.wrapper)}function it(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ar(e){return qt(e).defaultView}function gi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function nt(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function be(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=gi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var En=50,Or={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},yi={origin:"*mouse"},Zt={origin:"+move"};function mi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Wr=[""];function bi(e){for(;Wr.length<=e;)Wr.push(W(Wr)+" ");return Wr[e]}function W(e){return e[e.length-1]}function Hr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function jo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function In(){}function Rn(e,t){var i;return Object.create?i=Object.create(e):(In.prototype=e,i=new In),t&&nt(t,i),i}var Vo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xi(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Vo.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&xi(e)?!0:t.test(e):xi(e)}function Bn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var $o=/[\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 Ci(e){return e.charCodeAt(0)>=768&&$o.test(e)}function zn(e,t,i){for(;(i<0?t>0:t<e.length)&&Ci(e.charAt(t));)t+=i;return t}function Qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function ea(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Jt=null;function jt(e,t,i){var r;Jt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Jt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Jt=n)}return r??Jt}var ta=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var R=void 0;for(R=P+1;R<d&&c[R]=="%";++R);for(var de=P&&c[P-1]=="!"||R<d&&c[R]=="1"?"1":"N",ue=P;ue<R;++ue)c[ue]=de;P=R-1}}for(var K=0,fe=h;K<d;++K){var $=c[K];fe=="L"&&$=="1"?c[K]="L":l.test($)&&(fe=$)}for(var X=0;X<d;++X)if(n.test(c[X])){var _=void 0;for(_=X+1;_<d&&n.test(c[_]);++_);for(var B=(X?c[X-1]:h)=="L",he=(_<d?c[_]:h)=="L",Ut=B==he?B?"L":"R":h,Ve=X;Ve<_;++Ve)c[Ve]=Ut;X=_-1}for(var re=[],Oe,V=0;V<d;)if(o.test(c[V])){var Dn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Dn,V))}else{var Be=V,gt=re.length,yt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=Be;le<V;)if(a.test(c[le])){Be<le&&(re.splice(gt,0,new s(1,Be,le)),gt+=yt);var Kt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(gt,0,new s(2,Kt,le)),gt+=yt,Be=le}else++le;Be<V&&re.splice(gt,0,new s(1,Be,V))}return f=="ltr"&&(re[0].level==1&&(Oe=u.match(/^\s+/))&&(re[0].from=Oe[0].length,re.unshift(new s(0,0,Oe[0].length))),W(re).level==1&&(Oe=u.match(/\s+$/))&&(W(re).to-=Oe[0].length,re.push(new s(0,d-Oe[0].length,d)))),f=="rtl"?re.reverse():re}})();function He(e,t){var i=e.order;return i==null&&(i=e.order=ta(e.text,t)),i}var Gn=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Gn).concat(i)}};function wi(e,t){return e._handlers&&e._handlers[t]||Gn}function ve(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=wi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),Si(t)||t.codemirrorIgnore}function Un(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function xe(e,t){return wi(e,t).length>0}function wt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Kn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Si(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Vt(e){oe(e),Kn(e)}function Li(e){return e.target||e.srcElement}function _n(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ra=(function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e})(),ki;function ia(e){if(ki==null){var t=k("span","\u200B");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ki=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=ki?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Ti;function na(e){if(Ti!=null)return Ti;var t=pe(e,document.createTextNode("A\u062EA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:Ti=r.right-i.right<3}var Mi=`
2
-
3
- b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
4
- `,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},la=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},oa=(function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Di=null;function aa(e){if(Di!=null)return Di;var t=pe(e,k("span","x")),i=t.getBoundingClientRect(),r=tt(t,0,1).getBoundingClientRect();return Di=Math.abs(i.left-r.left)>1}var Ni={},St={};function sa(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ni[e]=t}function ua(e,t){St[e]=t}function Pr(e){if(typeof e=="string"&&St.hasOwnProperty(e))e=St[e];else if(e&&typeof e.name=="string"&&St.hasOwnProperty(e.name)){var t=St[e.name];typeof t=="string"&&(t={name:t}),e=Rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ai(e,t){t=Pr(t);var i=Ni[t.name];if(!i)return Ai(e,"text/plain");var r=i(e,t);if(Lt.hasOwnProperty(t.name)){var n=Lt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Lt={};function fa(e,t){var i=Lt.hasOwnProperty(e)?Lt[e]:Lt[e]={};nt(t,i)}function lt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Oi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Xn(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},U.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},U.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=be(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},U.prototype.indentation=function(){return be(this.string,null,this.tabSize)-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},U.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(o){return i?o.toLowerCase():o},n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t<l){i=n;break}t-=l}return i.lines[t]}function ot(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(l){var o=l.text;n==i.line&&(o=o.slice(0,i.ch)),n==t.line&&(o=o.slice(t.ch)),r.push(o),++n}),r}function Wi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}function Me(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function H(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}function at(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],l=n.height;if(t<l){e=n;continue e}t-=l,i+=n.chunkSize()}return i}while(!e.lines);for(var o=0;o<e.lines.length;++o){var a=e.lines[o],s=a.height;if(t<s)break;t-=s}return i+o}function $t(e,t){return t>=e.first&&t<e.first+e.size}function Hi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function g(e,t,i){if(i===void 0&&(i=null),!(this instanceof g))return new g(e,t,i);this.line=e,this.ch=t,this.sticky=i}function M(e,t){return e.line-t.line||e.ch-t.ch}function Fi(e,t){return e.sticky==t.sticky&&M(e,t)==0}function Pi(e){return g(e.line,e.ch)}function Er(e,t){return M(e,t)<0?t:e}function Ir(e,t){return M(e,t)<0?e:t}function Yn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function D(e,t){if(t.line<e.first)return g(e.first,0);var i=e.first+e.size-1;return t.line>i?g(i,w(e,i).text.length):ha(t,w(e,t.line).text.length)}function ha(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function qn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=D(e,t[r]);return i}var Rr=function(e,t){this.state=e,this.lookAhead=t},De=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};De.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},De.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},De.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},De.fromSaved=function(e,t,i){return t instanceof Rr?new De(e,lt(e.mode,t.state),i,t.lookAhead):new De(e,lt(e.mode,t),i)},De.prototype.save=function(e){var t=e!==!1?lt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rr(t,this.maxLookAhead):t};function Zn(e,t,i,r){var n=[e.state.modeGen],l={};el(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,el(e,t.text,f.mode,i,function(c,p){for(var v=h;d<c;){var y=n[h];y>c&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;v<h;v+=2){var m=n[v+1];n[v+1]=(m?m+" ":"")+"overlay "+p}},l),i.state=o,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:l.bgClass||l.textClass?l:null}}function Qn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=er(e,H(t)),n=t.text.length>e.options.maxHighlightLength&&lt(e.doc.mode,r.state),l=Zn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function er(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new De(r,!0,t);var l=ca(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?De.fromSaved(r,o,l):new De(r,Xn(r.mode),l);return r.iter(l,t,function(s){Ei(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&u<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}function Ei(e,t,i,r){var n=e.doc.mode,l=new U(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&Jn(n,i.state);!l.eol();)Ii(n,l,i.state),l.start=l.pos}function Jn(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Oi(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ii(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=Oi(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var jn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Vn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=er(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=Ii(l,u,s.state),r&&f.push(new jn(u,o,lt(n.mode,s.state)));return r?f:new jn(u,o,s.state)}function $n(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function el(e,t,i,r,n,l,o){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,u=null,f=new U(t,e.options.tabSize,r),h,d=e.options.addModeClass&&[null];for(t==""&&$n(Jn(i,r.state),l);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,o&&Ei(e,t,r,f.pos),f.pos=t.length,h=null):h=$n(Ii(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;s<f.start;)s=Math.min(f.start,s+5e3),n(s,u);u=h}f.start=f.pos}for(;s<f.pos;){var p=Math.min(f.pos,s+5e3);n(p,u),s=p}}function ca(e,t,i){for(var r,n,l=e.doc,o=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>o;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Rr?u.lookAhead:0)<=l.modeFrontier))return a;var f=be(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function da(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Rr)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var tl=!1,Fe=!1;function pa(){tl=!0}function va(){Fe=!0}function Br(e,t,i){this.marker=e,this.from=t,this.to=i}function tr(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function ga(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function ya(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function ma(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);if(a||l.from==t&&o.type=="bookmark"&&(!i||!l.marker.insertLeft)){var s=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new Br(o,l.from,s?null:l.to))}}return r}function ba(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new Br(o,s?null:l.from-t,l.to==null?null:l.to-t))}}return r}function Ri(e,t){if(t.full)return null;var i=$t(e,t.from.line)&&w(e,t.from.line).markedSpans,r=$t(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,l=t.to.ch,o=M(t.from,t.to)==0,a=ma(i,n,o),s=ba(r,l,o),u=t.text.length==1,f=W(t.text).length+(u?n:0);if(a)for(var h=0;h<a.length;++h){var d=a[h];if(d.to==null){var c=tr(s,d.marker);c?u&&(d.to=c.to==null?null:c.to+f):d.to=n}}if(s)for(var p=0;p<s.length;++p){var v=s[p];if(v.to!=null&&(v.to+=f),v.from==null){var y=tr(a,v.marker);y||(v.from=f,u&&(a||(a=[])).push(v))}else v.from+=f,u&&(a||(a=[])).push(v)}a&&(a=rl(a)),s&&s!=a&&(s=rl(s));var m=[a];if(!u){var x=t.text.length-2,b;if(x>0&&a)for(var C=0;C<a.length;++C)a[C].to==null&&(b||(b=[])).push(new Br(a[C].marker,null,null));for(var L=0;L<x;++L)m.push(b);m.push(s)}return m}function rl(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function xa(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var p=0;p<c.markedSpans.length;++p){var v=c.markedSpans[p].marker;v.readOnly&&(!r||ee(r,v)==-1)&&(r||(r=[])).push(v)}}),!r)return null;for(var n=[{from:t,to:i}],l=0;l<r.length;++l)for(var o=r[l],a=o.find(0),s=0;s<n.length;++s){var u=n[s];if(!(M(u.to,a.from)<0||M(u.from,a.to)>0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function il(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function nl(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function zr(e){return e.inclusiveLeft?-1:0}function Gr(e){return e.inclusiveRight?1:0}function Bi(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),l=M(r.from,n.from)||zr(e)-zr(t);if(l)return-l;var o=M(r.to,n.to)||Gr(e)-Gr(t);return o||t.id-e.id}function ll(e,t){var i=Fe&&e.markedSpans,r;if(i)for(var n=void 0,l=0;l<i.length;++l)n=i[l],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Bi(r,n.marker)<0)&&(r=n.marker);return r}function ol(e){return ll(e,!0)}function Ur(e){return ll(e,!1)}function Ca(e,t){var i=Fe&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var l=i[n];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Bi(r,l.marker)<0)&&(r=l.marker)}return r}function al(e,t,i,r,n){var l=w(e,t),o=Fe&&l.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(s.marker.collapsed){var u=s.marker.find(0),f=M(u.from,i)||zr(s.marker)-zr(n),h=M(u.to,r)||Gr(s.marker)-Gr(n);if(!(f>=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function we(e){for(var t;t=ol(e);)e=t.find(-1,!0).line;return e}function wa(e){for(var t;t=Ur(e);)e=t.find(1,!0).line;return e}function Sa(e){for(var t,i;t=Ur(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function zi(e,t){var i=w(e,t),r=we(i);return i==r?t:H(r)}function sl(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!_e(e,i))return t;for(;r=Ur(i);)i=r.find(1,!0).line;return H(i)+1}function _e(e,t){var i=Fe&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Gi(e,t,r))return!0}}}function Gi(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Gi(e,r.line,tr(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,l=0;l<t.markedSpans.length;++l)if(n=t.markedSpans[l],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Gi(e,t,n))return!0}function Pe(e){e=we(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var l=i.parent;l;i=l,l=i.parent)for(var o=0;o<l.children.length;++o){var a=l.children[o];if(a==i)break;t+=a.height}return t}function Kr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=ol(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=Ur(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Ui(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=Kr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=Kr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var kt=function(e,t,i){this.text=e,nl(this,t),this.height=i?i(this):1};kt.prototype.lineNo=function(){return H(this)},wt(kt);function La(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),il(e),nl(e,i);var n=r?r(e):1;n!=e.height&&Me(e,n)}function ka(e){e.parent=null,il(e)}var Ta={},Ma={};function ul(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ma:Ta;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function fl(e,t){var i=xt("span",null,null,ie?"padding-right: .1px":null),r={pre:xt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Na,na(e.display.measure)&&(o=He(l,e.doc.direction))&&(r.addToken=Oa(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Wa(l,r,Qn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=vi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=vi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ia(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=vi(r.pre.className,r.textClass||"")),r}function Da(e){var t=k("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Na(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Aa(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",bi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==`
5
- `?(v=f.appendChild(k("span",d[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),A&&E<9?f.appendChild(k("span",[v])):f.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,i||r||n||u||l||o){var x=i||"";r&&(x+=r),n&&(x+=n);var b=k("span",[f],x,l);if(o)for(var C in o)o.hasOwnProperty(C)&&C!="style"&&C!="class"&&b.setAttribute(C,o[C]);return e.content.appendChild(b)}e.content.appendChild(f)}}function Aa(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;n<e.length;n++){var l=e.charAt(n);l==" "&&i&&(n==e.length-1||e.charCodeAt(n+1)==32)&&(l="\xA0"),r+=l,i=l==" "}return r}function Oa(e,t){return function(i,r,n,l,o,a,s){n=n?n+" cm-force-border":"cm-force-border";for(var u=i.pos,f=u+r.length;;){for(var h=void 0,d=0;d<t.length&&(h=t[d],!(h.to>u&&h.from<=u));d++);if(h.to>=f)return e(i,r,n,l,o,a,s);e(i,r.slice(0,h.to-u),n,l,null,a,s),l=null,r=r.slice(h.to-u),u=h.to}}}function hl(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Wa(e,t,i){var r=e.markedSpans,n=e.text,l=0;if(!r){for(var o=1;o<i.length;o+=2)t.addToken(t,n.slice(l,l=i[o]),ul(i[o+1],t.cm.options));return}for(var a=n.length,s=0,u=1,f="",h,d,c=0,p,v,y,m,x;;){if(c==s){p=v=y=d="",x=null,m=null,c=1/0;for(var b=[],C=void 0,L=0;L<r.length;++L){var S=r[L],N=S.marker;if(N.type=="bookmark"&&S.from==s&&N.widgetNode)b.push(N);else if(S.from<=s&&(S.to==null||S.to>s||N.collapsed&&S.to==s&&S.from==s)){if(S.to!=null&&S.to!=s&&c>S.to&&(c=S.to,v=""),N.className&&(p+=" "+N.className),N.css&&(d=(d?d+";":"")+N.css),N.startStyle&&S.from==s&&(y+=" "+N.startStyle),N.endStyle&&S.to==c&&(C||(C=[])).push(N.endStyle,S.to),N.title&&((x||(x={})).title=N.title),N.attributes)for(var P in N.attributes)(x||(x={}))[P]=N.attributes[P];N.collapsed&&(!m||Bi(m.marker,N)<0)&&(m=S)}else S.from>s&&c>S.from&&(c=S.from)}if(C)for(var j=0;j<C.length;j+=2)C[j+1]==c&&(v+=" "+C[j]);if(!m||m.from==s)for(var R=0;R<b.length;++R)hl(t,0,b[R]);if(m&&(m.from||0)==s){if(hl(t,(m.to==null?a+1:m.to)-s,m.marker,m.from==null),m.to==null)return;m.to==s&&(m=!1)}}if(s>=a)break;for(var de=Math.min(a,c);;){if(f){var ue=s+f.length;if(!m){var K=ue>de?f.slice(0,de-s):f;t.addToken(t,K,h?h+p:p,y,s+K.length==c?v:"",d,x)}if(ue>=de){f=f.slice(de-s),s=de;break}s=ue,y=""}f=n.slice(l,l=i[u++]),h=ul(i[u++],t.cm.options)}}}function cl(e,t,i){this.line=t,this.rest=Sa(t),this.size=this.rest?H(W(this.rest))-i+1:1,this.node=this.text=null,this.hidden=_e(e,t)}function _r(e,t,i){for(var r=[],n,l=t;l<i;l=n){var o=new cl(e.doc,w(e.doc,l),l);n=l+o.size,r.push(o)}return r}var Tt=null;function Ha(e){Tt?Tt.ops.push(e):e.ownsGroup=Tt={ops:[e],delayedCallbacks:[]}}function Fa(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var r=0;r<e.ops.length;r++){var n=e.ops[r];if(n.cursorActivityHandlers)for(;n.cursorActivityCalled<n.cursorActivityHandlers.length;)n.cursorActivityHandlers[n.cursorActivityCalled++].call(null,n.cm)}}while(i<t.length)}function Pa(e,t){var i=e.ownsGroup;if(i)try{Fa(i)}finally{Tt=null,t(i)}}var rr=null;function Z(e,t){var i=wi(e,t);if(i.length){var r=Array.prototype.slice.call(arguments,2),n;Tt?n=Tt.delayedCallbacks:rr?n=rr:(n=rr=[],setTimeout(Ea,0));for(var l=function(a){n.push(function(){return i[a].apply(null,r)})},o=0;o<i.length;++o)l(o)}}function Ea(){var e=rr;rr=null;for(var t=0;t<e.length;++t)e[t]()}function dl(e,t,i,r){for(var n=0;n<t.changes.length;n++){var l=t.changes[n];l=="text"?Ra(e,t):l=="gutter"?vl(e,t,i,r):l=="class"?Ki(e,t):l=="widget"&&Ba(e,t,r)}t.changes=null}function ir(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),A&&E<8&&(e.node.style.zIndex=2)),e.node}function Ia(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var r=ir(t);t.background=r.insertBefore(k("div",null,i),r.firstChild),e.display.input.setUneditable(t.background)}}function pl(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):fl(e,t)}function Ra(e,t){var i=t.text.className,r=pl(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Ki(e,t)):i&&(t.text.className=i)}function Ki(e,t){Ia(e,t),t.line.wrapClass?ir(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function vl(e,t,i,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var n=ir(t);t.gutterBackground=k("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),n.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var o=ir(t),a=t.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),o.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!l||!l["CodeMirror-linenumbers"])&&(t.lineNumber=a.appendChild(k("div",Hi(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,f=l.hasOwnProperty(u)&&l[u];f&&a.appendChild(k("div",[f],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function Ba(e,t,i){t.alignable&&(t.alignable=null);for(var r=bt("CodeMirror-linewidget"),n=t.node.firstChild,l=void 0;n;n=l)l=n.nextSibling,r.test(n.className)&&t.node.removeChild(n);gl(e,t,i)}function za(e,t,i,r){var n=pl(e,t);return t.text=t.node=n.pre,n.bgClass&&(t.bgClass=n.bgClass),n.textClass&&(t.textClass=n.textClass),Ki(e,t),vl(e,t,i,r),gl(e,t,r),t.node}function gl(e,t,i){if(yl(e,t.line,t,i,!0),t.rest)for(var r=0;r<t.rest.length;r++)yl(e,t.rest[r],t,i,!1)}function yl(e,t,i,r,n){if(t.widgets)for(var l=ir(i),o=0,a=t.widgets;o<a.length;++o){var s=a[o],u=k("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Ga(s,u,i,r),e.display.input.setUneditable(u),n&&s.above?l.insertBefore(u,i.gutter||i.text):l.appendChild(u),Z(s,"redraw")}}function Ga(e,t,i,r){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var n=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(n-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=n+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function nr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!Ue(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),pe(t.display.measure,k("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Ee(e,t){for(var i=Li(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Xr(e){return e.lineSpace.offsetTop}function _i(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ml(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=pe(e.measure,k("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function Ne(e){return En-e.display.nativeBarWidth}function st(e){return e.display.scroller.clientWidth-Ne(e)-e.display.barWidth}function Xi(e){return e.display.scroller.clientHeight-Ne(e)-e.display.barHeight}function Ua(e,t,i){var r=e.options.lineWrapping,n=r&&st(e);if(!t.measure.heights||r&&t.measure.width!=n){var l=t.measure.heights=[];if(r){t.measure.width=n;for(var o=t.text.firstChild.getClientRects(),a=0;a<o.length-1;a++){var s=o[a],u=o[a+1];Math.abs(s.bottom-u.bottom)>2&&l.push((s.bottom+u.top)/2-i.top)}}l.push(i.bottom-i.top)}}function bl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var n=0;n<e.rest.length;n++)if(H(e.rest[n])>i)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function Ka(e,t){t=we(t);var i=H(t),r=e.display.externalMeasured=new cl(e.doc,t,i);r.lineN=i;var n=r.built=fl(e,r);return r.text=n.pre,pe(e.display.lineMeasure,n.pre),r}function xl(e,t,i,r){return Ae(e,Mt(e,t),i,r)}function Yi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ht(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Mt(e,t){var i=H(t),r=Yi(e,i);r&&!r.text?r=null:r&&r.changes&&(dl(e,r,i,ji(e)),e.curOp.forceUpdate=!0),r||(r=Ka(e,t));var n=bl(r,t,i);return{line:t,view:r,rect:null,map:n.map,cache:n.cache,before:n.before,hasHeights:!1}}function Ae(e,t,i,r,n){t.before&&(i=-1);var l=i+(r||""),o;return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Ua(e,t.view,t.rect),t.hasHeights=!0),o=Xa(e,t,i,r),o.bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}}var Cl={left:0,right:0,top:0,bottom:0};function wl(e,t,i){for(var r,n,l,o,a,s,u=0;u<e.length;u+=3)if(a=e[u],s=e[u+1],t<a?(n=0,l=1,o="left"):t<s?(n=t-a,l=n+1):(u==e.length-3||t==s&&e[u+3]>t)&&(l=s-a,n=l-1,t>=s&&(o="right")),n!=null){if(r=e[u+2],a==s&&i==(r.insertLeft?"left":"right")&&(o=i),i=="left"&&n==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],o="left";if(i=="right"&&n==s-a)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],o="right";break}return{node:r,start:n,end:l,collapse:o,coverStart:a,coverEnd:s}}function _a(e,t){var i=Cl;if(t=="left")for(var r=0;r<e.length&&(i=e[r]).left==i.right;r++);else for(var n=e.length-1;n>=0&&(i=e[n]).left==i.right;n--);return i}function Xa(e,t,i,r){var n=wl(t.map,i,r),l=n.node,o=n.start,a=n.end,s=n.collapse,u;if(l.nodeType==3){for(var f=0;f<4;f++){for(;o&&Ci(t.line.text.charAt(n.coverStart+o));)--o;for(;n.coverStart+a<n.coverEnd&&Ci(t.line.text.charAt(n.coverStart+a));)++a;if(A&&E<9&&o==0&&a==n.coverEnd-n.coverStart?u=l.parentNode.getBoundingClientRect():u=_a(tt(l,o,a).getClientRects(),r),u.left||u.right||o==0)break;a=o,o=o-1,s="right"}A&&E<11&&(u=Ya(e.display.measure,u))}else{o>0&&(s=r="right");var h;e.options.lineWrapping&&(h=l.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=l.getBoundingClientRect()}if(A&&E<9&&!o&&(!u||!u.left&&!u.right)){var d=l.parentNode.getClientRects()[0];d?u={left:d.left,right:d.left+Nt(e.display),top:d.top,bottom:d.bottom}:u=Cl}for(var c=u.top-t.rect.top,p=u.bottom-t.rect.top,v=(c+p)/2,y=t.view.measure.heights,m=0;m<y.length-1&&!(v<y[m]);m++);var x=m?y[m-1]:0,b=y[m],C={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:x,bottom:b};return!u.left&&!u.right&&(C.bogus=!0),e.options.singleCursorHeightPerLine||(C.rtop=c,C.rbottom=p),C}function Ya(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!aa(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}}function Sl(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Ll(e){e.display.externalMeasure=null,Ge(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Sl(e.display.view[t])}function lr(e){Ll(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function kl(e){return ze&&Nr?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Tl(e){return ze&&Nr?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function qi(e){var t=we(e),i=t.widgets,r=0;if(i)for(var n=0;n<i.length;++n)i[n].above&&(r+=nr(i[n]));return r}function Yr(e,t,i,r,n){if(!n){var l=qi(t);i.top+=l,i.bottom+=l}if(r=="line")return i;r||(r="local");var o=Pe(t);if(r=="local"?o+=Xr(e.display):o-=e.display.viewOffset,r=="page"||r=="window"){var a=e.display.lineSpace.getBoundingClientRect();o+=a.top+(r=="window"?0:Tl(qt(e)));var s=a.left+(r=="window"?0:kl(qt(e)));i.left+=s,i.right+=s}return i.top+=o,i.bottom+=o,i}function Ml(e,t,i){if(i=="div")return t;var r=t.left,n=t.top;if(i=="page")r-=kl(qt(e)),n-=Tl(qt(e));else if(i=="local"||!i){var l=e.display.sizer.getBoundingClientRect();r+=l.left,n+=l.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:n-o.top}}function qr(e,t,i,r,n){return r||(r=w(e.doc,t.line)),Yr(e,r,xl(e,r,t.ch,n),i)}function Se(e,t,i,r,n,l){r=r||w(e.doc,t.line),n||(n=Mt(e,r));function o(p,v){var y=Ae(e,n,p,v?"right":"left",l);return v?y.left=y.right:y.right=y.left,Yr(e,r,y,i)}var a=He(r,e.doc.direction),s=t.ch,u=t.sticky;if(s>=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return o(u=="before"?s-1:s,u=="before");function f(p,v,y){var m=a[v],x=m.level==1;return o(y?p-1:p,x!=y)}var h=jt(a,s,u),d=Jt,c=f(s,h,u=="before");return d!=null&&(c.other=f(s,d,u!="before")),c}function Dl(e,t){var i=0;t=D(e.doc,t),e.options.lineWrapping||(i=Nt(e.display)*t.ch);var r=w(e.doc,t.line),n=Pe(r)+Xr(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Zi(e,t,i,r,n){var l=g(e,t,i);return l.xRel=n,r&&(l.outside=r),l}function Qi(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Zi(r.first,0,null,-1,-1);var n=at(r,i),l=r.first+r.size-1;if(n>l)return Zi(r.first+r.size-1,w(r,l).text.length,null,1,1);t<0&&(t=0);for(var o=w(r,n);;){var a=qa(e,o,n,t,i),s=Ca(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==n)return u;o=w(r,n=u.line)}}function Nl(e,t,i,r){r-=qi(t);var n=t.text.length,l=Qt(function(o){return Ae(e,i,o-1).bottom<=r},n,0);return n=Qt(function(o){return Ae(e,i,o).top>r},l,n),{begin:l,end:n}}function Al(e,t,i,r){i||(i=Mt(e,t));var n=Yr(e,t,Ae(e,i,r),"line").top;return Nl(e,t,i,n)}function Ji(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function qa(e,t,i,r,n){n-=Pe(t);var l=Mt(e,t),o=qi(t),a=0,s=t.text.length,u=!0,f=He(t,e.doc.direction);if(f){var h=(e.options.lineWrapping?Qa:Za)(e,t,i,l,f,r,n);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var d=null,c=null,p=Qt(function(L){var S=Ae(e,l,L);return S.top+=o,S.bottom+=o,Ji(S,r,n,!1)?(S.top<=n&&S.left<=r&&(d=L,c=S),!0):!1},a,s),v,y,m=!1;if(c){var x=r-c.left<c.right-r,b=x==u;p=d+(b?0:1),y=b?"after":"before",v=x?c.left:c.right}else{!u&&(p==s||p==a)&&p++,y=p==0?"after":p==t.text.length?"before":Ae(e,l,p-(u?1:0)).bottom+o<=n==u?"after":"before";var C=Se(e,g(i,p,y),"line",t,l);v=C.left,m=n<C.top?-1:n>=C.bottom?1:0}return p=zn(t.text,p,1),Zi(i,p,y,m,r-v)}function Za(e,t,i,r,n,l,o){var a=Qt(function(h){var d=n[h],c=d.level!=1;return Ji(Se(e,g(i,c?d.to:d.from,c?"before":"after"),"line",t,r),l,o,!0)},0,n.length-1),s=n[a];if(a>0){var u=s.level!=1,f=Se(e,g(i,u?s.from:s.to,u?"after":"before"),"line",t,r);Ji(f,l,o,!0)&&f.top>o&&(s=n[a-1])}return s}function Qa(e,t,i,r,n,l,o){var a=Nl(e,t,r,o),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var f=null,h=null,d=0;d<n.length;d++){var c=n[d];if(!(c.from>=u||c.to<=s)){var p=c.level!=1,v=Ae(e,r,p?Math.min(u,c.to)-1:Math.max(s,c.from)).right,y=v<l?l-v+1e9:v-l;(!f||h>y)&&(f=c,h=y)}}return f||(f=n[n.length-1]),f.from<s&&(f={from:s,to:f.to,level:f.level}),f.to>u&&(f={from:f.from,to:u,level:f.level}),f}var ut;function Dt(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ut==null){ut=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ut.appendChild(document.createTextNode("x")),ut.appendChild(k("br"));ut.appendChild(document.createTextNode("x"))}pe(e.measure,ut);var i=ut.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Ge(e.measure),i||1}function Nt(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),i=k("pre",[t],"CodeMirror-line-like");pe(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function ji(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,l=t.gutters.firstChild,o=0;l;l=l.nextSibling,++o){var a=e.display.gutterSpecs[o].className;i[a]=l.offsetLeft+l.clientLeft+n,r[a]=l.clientWidth}return{fixedPos:Vi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Vi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ol(e){var t=Dt(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Nt(e.display)-3);return function(n){if(_e(e.doc,n))return 0;var l=0;if(n.widgets)for(var o=0;o<n.widgets.length;o++)n.widgets[o].height&&(l+=n.widgets[o].height);return i?l+(Math.ceil(n.text.length/r)||1)*t:l+t}}function $i(e){var t=e.doc,i=Ol(e);t.iter(function(r){var n=i(r);n!=r.height&&Me(r,n)})}function ft(e,t,i,r){var n=e.display;if(!i&&Li(t).getAttribute("cm-not-content")=="true")return null;var l,o,a=n.lineSpace.getBoundingClientRect();try{l=t.clientX-a.left,o=t.clientY-a.top}catch{return null}var s=Qi(e,l,o),u;if(r&&s.xRel>0&&(u=w(e.doc,s.line).text).length==s.ch){var f=be(u,u.length,e.options.tabSize)-u.length;s=g(s.line,Math.max(0,Math.round((l-ml(e.display).left)/Nt(e.display))-f))}return s}function ht(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;r<i.length;r++)if(t-=i[r].size,t<0)return r}function ae(e,t,i,r){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),r||(r=0);var n=e.display;if(r&&i<n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>t)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Fe&&zi(e.doc,t)<n.viewTo&&Ye(e);else if(i<=n.viewFrom)Fe&&sl(e.doc,i+r)>n.viewFrom?Ye(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)Ye(e);else if(t<=n.viewFrom){var l=Zr(e,i,i+r,1);l?(n.view=n.view.slice(l.index),n.viewFrom=l.lineN,n.viewTo+=r):Ye(e)}else if(i>=n.viewTo){var o=Zr(e,t,t,-1);o?(n.view=n.view.slice(0,o.index),n.viewTo=o.lineN):Ye(e)}else{var a=Zr(e,t,t,-1),s=Zr(e,i,i+r,1);a&&s?(n.view=n.view.slice(0,a.index).concat(_r(e,a.lineN,s.lineN)).concat(n.view.slice(s.index)),n.viewTo+=r):Ye(e)}var u=n.externalMeasured;u&&(i<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(n.externalMeasured=null))}function Xe(e,t,i){e.curOp.viewChanged=!0;var r=e.display,n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var l=r.view[ht(e,t)];if(l.node!=null){var o=l.changes||(l.changes=[]);ee(o,i)==-1&&o.push(i)}}}function Ye(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zr(e,t,i,r){var n=ht(e,t),l,o=e.display.view;if(!Fe||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var a=e.display.viewFrom,s=0;s<n;s++)a+=o[s].size;if(a!=t){if(r>0){if(n==o.length-1)return null;l=a+o[n].size-t,n++}else l=a-t;t+=l,i+=l}for(;zi(e.doc,i)!=i;){if(n==(r<0?0:o.length-1))return null;i+=r*o[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function Ja(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=_r(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=_r(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ht(e,t))),r.viewFrom=t,r.viewTo<i?r.view=r.view.concat(_r(e,r.viewTo,i)):r.viewTo>i&&(r.view=r.view.slice(0,ht(e,i)))),r.viewTo=i}function Wl(e){for(var t=e.display.view,i=0,r=0;r<t.length;r++){var n=t[r];!n.hidden&&(!n.node||n.changes)&&++i}return i}function or(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Hl(e,t){t===void 0&&(t=!0);var i=e.doc,r={},n=r.cursors=document.createDocumentFragment(),l=r.selection=document.createDocumentFragment(),o=e.options.$customCursor;o&&(t=!0);for(var a=0;a<i.sel.ranges.length;a++)if(!(!t&&a==i.sel.primIndex)){var s=i.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var u=s.empty();if(o){var f=o(e,s);f&&en(e,f,n)}else(u||e.options.showCursorWhenSelecting)&&en(e,s.head,n);u||ja(e,s,l)}}return r}function en(e,t,i){var r=Se(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),n=i.appendChild(k("div","\xA0","CodeMirror-cursor"));if(n.style.left=r.left+"px",n.style.top=r.top+"px",n.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var l=qr(e,t,"div",null,null),o=l.right-l.left;n.style.width=(o>0?o:e.defaultCharWidth())+"px"}if(r.other){var a=i.appendChild(k("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Qr(e,t){return e.top-t.top||e.left-t.left}function ja(e,t,i){var r=e.display,n=e.doc,l=document.createDocumentFragment(),o=ml(e.display),a=o.left,s=Math.max(r.sizerWidth,st(e)-r.sizer.offsetLeft)-o.right,u=n.direction=="ltr";function f(b,C,L,S){C<0&&(C=0),C=Math.round(C),S=Math.round(S),l.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+b+`px;
6
- top: `+C+"px; width: "+(L??s-b)+`px;
7
- height: `+(S-C)+"px"))}function h(b,C,L){var S=w(n,b),N=S.text.length,P,j;function R(K,fe){return qr(e,g(b,K),"div",S,fe)}function de(K,fe,$){var X=Al(e,S,null,K),_=fe=="ltr"==($=="after")?"left":"right",B=$=="after"?X.begin:X.end-(/\s/.test(S.text.charAt(X.end-1))?2:1);return R(B,_)[_]}var ue=He(S,n.direction);return ea(ue,C||0,L??N,function(K,fe,$,X){var _=$=="ltr",B=R(K,_?"left":"right"),he=R(fe-1,_?"right":"left"),Ut=C==null&&K==0,Ve=L==null&&fe==N,re=X==0,Oe=!ue||X==ue.length-1;if(he.top-B.top<=3){var V=(u?Ut:Ve)&&re,Dn=(u?Ve:Ut)&&Oe,Be=V?a:(_?B:he).left,gt=Dn?s:(_?he:B).right;f(Be,B.top,gt-Be,B.bottom)}else{var yt,le,Kt,Nn;_?(yt=u&&Ut&&re?a:B.left,le=u?s:de(K,$,"before"),Kt=u?a:de(fe,$,"after"),Nn=u&&Ve&&Oe?s:he.right):(yt=u?de(K,$,"before"):a,le=!u&&Ut&&re?s:B.right,Kt=!u&&Ve&&Oe?a:he.left,Nn=u?de(fe,$,"after"):s),f(yt,B.top,le-yt,B.bottom),B.bottom<he.top&&f(a,B.bottom,null,he.top),f(Kt,he.top,Nn-Kt,he.bottom)}(!P||Qr(B,P)<0)&&(P=B),Qr(he,P)<0&&(P=he),(!j||Qr(B,j)<0)&&(j=B),Qr(he,j)<0&&(j=he)}),{start:P,end:j}}var d=t.from(),c=t.to();if(d.line==c.line)h(d.line,d.ch,c.ch);else{var p=w(n,d.line),v=w(n,c.line),y=we(p)==we(v),m=h(d.line,d.ch,y?p.text.length+1:null).end,x=h(c.line,y?0:null,c.ch).start;y&&(m.top<x.top-2?(f(m.right,m.top,null,m.bottom),f(a,x.top,x.left,x.bottom)):f(m.right,m.top,x.left-m.right,m.bottom)),m.bottom<x.top&&f(a,m.bottom,null,x.top)}i.appendChild(l)}function tn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||At(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Fl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||nn(e))}function rn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&At(e))},100)}function nn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(G(e,"focus",e,t),e.state.focused=!0,rt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),ie&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),tn(e))}function At(e,t){e.state.delayingBlurEvent||(e.state.focused&&(G(e,"blur",e,t),e.state.focused=!1,et(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jr(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,l=0,o=0;o<t.view.length;o++){var a=t.view[o],s=e.options.lineWrapping,u=void 0,f=0;if(!a.hidden){if(n+=a.line.height,A&&E<8){var h=a.node.offsetTop+a.node.offsetHeight;u=h-i,i=h}else{var d=a.node.getBoundingClientRect();u=d.bottom-d.top,!s&&a.text.firstChild&&(f=a.text.firstChild.getBoundingClientRect().right-d.left-1)}var c=a.line.height-u;if((c>.005||c<-.005)&&(n<r&&(l-=c),Me(a.line,u),Pl(a.line),a.rest))for(var p=0;p<a.rest.length;p++)Pl(a.rest[p]);if(f>e.display.sizerWidth){var v=Math.ceil(f/Nt(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function Pl(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],r=i.node.parentNode;r&&(i.height=r.offsetHeight)}}function jr(e,t,i){var r=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;r=Math.floor(r-Xr(e));var n=i&&i.bottom!=null?i.bottom:r+e.wrapper.clientHeight,l=at(t,r),o=at(t,n);if(i&&i.ensure){var a=i.ensure.from.line,s=i.ensure.to.line;a<l?(l=a,o=at(t,Pe(w(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=o&&(l=at(t,Pe(w(t,s))-e.wrapper.clientHeight),o=s)}return{from:l,to:Math.max(o,l+1)}}function Va(e,t){if(!q(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,l=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(n=!1),n!=null&&!Zo){var o=k("div","\u200B",null,`position: absolute;
8
- top: `+(t.top-i.viewOffset-Xr(e.display))+`px;
9
- height: `+(t.bottom-t.top+Ne(e)+i.barHeight)+`px;
10
- left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(n),e.display.lineSpace.removeChild(o)}}}function $a(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?g(t.line,t.ch+1,"before"):t,t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var o=!1,a=Se(e,t),s=!i||i==t?a:Se(e,i);n={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=ln(e,n),f=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(sr(e,u.scrollTop),Math.abs(e.doc.scrollTop-f)>1&&(o=!0)),u.scrollLeft!=null&&(ct(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return n}function es(e,t){var i=ln(e,t);i.scrollTop!=null&&sr(e,i.scrollTop),i.scrollLeft!=null&&ct(e,i.scrollLeft)}function ln(e,t){var i=e.display,r=Dt(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=Xi(e),o={};t.bottom-t.top>l&&(t.bottom=t.top+l);var a=e.doc.height+_i(i),s=t.top<r,u=t.bottom>a-r;if(t.top<n)o.scrollTop=s?0:t.top;else if(t.bottom>n+l){var f=Math.min(t.top,(u?a:t.bottom)-l);f!=n&&(o.scrollTop=f)}var h=e.options.fixedGutter?0:i.gutters.offsetWidth,d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-h,c=st(e)-i.gutters.offsetWidth,p=t.right-t.left>c;return p&&(t.right=t.left+c),t.left<10?o.scrollLeft=0:t.left<d?o.scrollLeft=Math.max(0,t.left+h-(p?0:10)):t.right>c+d-3&&(o.scrollLeft=t.right+(p?0:10)-c),o}function on(e,t){t!=null&&(Vr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ot(e){Vr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ar(e,t,i){(t!=null||i!=null)&&Vr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function ts(e,t){Vr(e),e.curOp.scrollToPos=t}function Vr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Dl(e,t.from),r=Dl(e,t.to);El(e,i,r,t.margin)}}function El(e,t,i,r){var n=ln(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ar(e,n.scrollLeft,n.scrollTop)}function sr(e,t){Math.abs(e.doc.scrollTop-t)<2||(We||sn(e,{top:t}),Il(e,t,!0),We&&sn(e),hr(e,100))}function Il(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ct(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Ul(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ur(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+_i(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+Ne(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var dt=function(e,t,i){this.cm=i;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),T(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),T(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&E<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};dt.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},dt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},dt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},dt.prototype.zeroWidthHack=function(){var e=ye&&!qo?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ke,this.disableVert=new Ke},dt.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},dt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fr=function(){};fr.prototype.update=function(){return{bottom:0,right:0}},fr.prototype.setScrollLeft=function(){},fr.prototype.setScrollTop=function(){},fr.prototype.clear=function(){};function Wt(e,t){t||(t=ur(e));var i=e.display.barWidth,r=e.display.barHeight;Rl(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),Rl(e,ur(e)),i=e.display.barWidth,r=e.display.barHeight}function Rl(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Bl={native:dt,null:fr};function zl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Bl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),T(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?ct(e,t):sr(e,t)},e),e.display.scrollbars.addClass&&rt(e.display.wrapper,e.display.scrollbars.addClass)}var rs=0;function pt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++rs,markArrays:null},Ha(e.curOp)}function vt(e){var t=e.curOp;t&&Pa(t,function(i){for(var r=0;r<i.ops.length;r++)i.ops[r].cm.curOp=null;is(i)})}function is(e){for(var t=e.ops,i=0;i<t.length;i++)ns(t[i]);for(var r=0;r<t.length;r++)ls(t[r]);for(var n=0;n<t.length;n++)os(t[n]);for(var l=0;l<t.length;l++)as(t[l]);for(var o=0;o<t.length;o++)ss(t[o])}function ns(e){var t=e.cm,i=t.display;fs(t),e.updateMaxLine&&Ui(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new $r(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ls(e){e.updatedDisplay=e.mustUpdate&&an(e.cm,e.update)}function os(e){var t=e.cm,i=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=ur(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=xl(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+Ne(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-st(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function as(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&ct(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==me(Ct(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wt(t,e.barMeasure),e.updatedDisplay&&fn(t,e.barMeasure),e.selectionChanged&&tn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Fl(e.cm)}function ss(e){var t=e.cm,i=t.display,r=t.doc;if(e.updatedDisplay&&Gl(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&Il(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ct(t,e.scrollLeft,!0,!0),e.scrollToPos){var n=$a(t,D(r,e.scrollToPos.from),D(r,e.scrollToPos.to),e.scrollToPos.margin);Va(t,n)}var l=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(l)for(var a=0;a<l.length;++a)l[a].lines.length||G(l[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&G(o[s],"unhide");i.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&G(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ce(e,t){if(e.curOp)return t();pt(e);try{return t()}finally{vt(e)}}function Q(e,t){return function(){if(e.curOp)return t.apply(e,arguments);pt(e);try{return t.apply(e,arguments)}finally{vt(e)}}}function ne(e){return function(){if(this.curOp)return e.apply(this,arguments);pt(this);try{return e.apply(this,arguments)}finally{vt(this)}}}function J(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);pt(t);try{return e.apply(this,arguments)}finally{vt(t)}}}function hr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,gi(us,e))}function us(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,r=er(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var o=l.styles,a=l.text.length>e.options.maxHighlightLength?lt(t.mode,r.state):null,s=Zn(e,l,r,!0);a&&(r.state=a),l.styles=s.styles;var u=l.styleClasses,f=s.classes;f?l.styleClasses=f:u&&(l.styleClasses=null);for(var h=!o||o.length!=l.styles.length||u!=f&&(!u||!f||u.bgClass!=f.bgClass||u.textClass!=f.textClass),d=0;!h&&d<o.length;++d)h=o[d]!=l.styles[d];h&&n.push(r.line),l.stateAfter=r.save(),r.nextLine()}else l.text.length<=e.options.maxHighlightLength&&Ei(e,l.text,r),l.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>i)return hr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&ce(e,function(){for(var l=0;l<n.length;l++)Xe(e,n[l],"text")})}}var $r=function(e,t,i){var r=e.display;this.viewport=t,this.visible=jr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=st(e),this.force=i,this.dims=ji(e),this.events=[]};$r.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},$r.prototype.finish=function(){for(var e=0;e<this.events.length;e++)G.apply(null,this.events[e])};function fs(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ne(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ne(e)+"px",t.scrollbarsClipped=!0)}function hs(e){if(e.hasFocus())return null;var t=me(Ct(e));if(!t||!Ue(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var r=Ar(e).getSelection();r.anchorNode&&r.extend&&Ue(e.display.lineDiv,r.anchorNode)&&(i.anchorNode=r.anchorNode,i.anchorOffset=r.anchorOffset,i.focusNode=r.focusNode,i.focusOffset=r.focusOffset)}return i}function cs(e){if(!(!e||!e.activeElt||e.activeElt==me(it(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&Ue(document.body,e.anchorNode)&&Ue(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,i=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),i.removeAllRanges(),i.addRange(r),i.extend(e.focusNode,e.focusOffset)}}function an(e,t){var i=e.display,r=e.doc;if(t.editorIsHidden)return Ye(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Wl(e)==0)return!1;Kl(e)&&(Ye(e),t.dims=ji(e));var n=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFrom<l&&l-i.viewFrom<20&&(l=Math.max(r.first,i.viewFrom)),i.viewTo>o&&i.viewTo-o<20&&(o=Math.min(n,i.viewTo)),Fe&&(l=zi(e.doc,l),o=sl(e.doc,o));var a=l!=i.viewFrom||o!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Ja(e,l,o),i.viewOffset=Pe(w(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var s=Wl(e);if(!a&&s==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var u=hs(e);return s>4&&(i.lineDiv.style.display="none"),ds(e,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,cs(u),Ge(i.cursorDiv),Ge(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,a&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,hr(e,400)),i.updateLineNumbers=null,!0}function Gl(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==st(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+_i(e.display)-Xi(e),i.top)}),t.visible=jr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=jr(e.display,e.doc,i));if(!an(e,t))break;Jr(e);var n=ur(e);or(e),Wt(e,n),fn(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function sn(e,t){var i=new $r(e,t);if(an(e,i)){Jr(e),Gl(e,i);var r=ur(e);or(e),Wt(e,r),fn(e,r),i.finish()}}function ds(e,t,i){var r=e.display,n=e.options.lineNumbers,l=r.lineDiv,o=l.firstChild;function a(p){var v=p.nextSibling;return ie&&ye&&e.display.currentWheelTarget==p?p.style.display="none":p.parentNode.removeChild(p),v}for(var s=r.view,u=r.viewFrom,f=0;f<s.length;f++){var h=s[f];if(!h.hidden)if(!h.node||h.node.parentNode!=l){var d=za(e,h,u,i);l.insertBefore(d,o)}else{for(;o!=h.node;)o=a(o);var c=n&&t!=null&&t<=u&&h.lineNumber;h.changes&&(ee(h.changes,"gutter")>-1&&(c=!1),dl(e,h,u,i)),c&&(Ge(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Hi(e.options,u)))),o=h.node.nextSibling}u+=h.size}for(;o;)o=a(o)}function un(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Z(e,"gutterChanged",e)}function fn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ne(e)+"px"}function Ul(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Vi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,l=r+"px",o=0;o<i.length;o++)if(!i[o].hidden){e.options.fixedGutter&&(i[o].gutter&&(i[o].gutter.style.left=l),i[o].gutterBackground&&(i[o].gutterBackground.style.left=l));var a=i[o].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=l}e.options.fixedGutter&&(t.gutters.style.left=r+n+"px")}}function Kl(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Hi(e.options,t.first+t.size-1),r=e.display;if(i.length!=r.lineNumChars){var n=r.measure.appendChild(k("div",[k("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=n.firstChild.offsetWidth,o=n.offsetWidth-l;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(l,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?i.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",un(e.display),!0}return!1}function hn(e,t){for(var i=[],r=!1,n=0;n<e.length;n++){var l=e[n],o=null;if(typeof l!="string"&&(o=l.style,l=l.className),l=="CodeMirror-linenumbers")if(t)r=!0;else continue;i.push({className:l,style:o})}return t&&!r&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function _l(e){var t=e.gutters,i=e.gutterSpecs;Ge(t),e.lineGutter=null;for(var r=0;r<i.length;++r){var n=i[r],l=n.className,o=n.style,a=t.appendChild(k("div",null,"CodeMirror-gutter "+l));o&&(a.style.cssText=o),l=="CodeMirror-linenumbers"&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",un(e)}function cr(e){_l(e.display),ae(e),Ul(e)}function ps(e,t,i,r){var n=this;this.input=i,n.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),n.scrollbarFiller.setAttribute("cm-not-content","true"),n.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),n.gutterFiller.setAttribute("cm-not-content","true"),n.lineDiv=xt("div",null,"CodeMirror-code"),n.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),n.cursorDiv=k("div",null,"CodeMirror-cursors"),n.measure=k("div",null,"CodeMirror-measure"),n.lineMeasure=k("div",null,"CodeMirror-measure"),n.lineSpace=xt("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none");var l=xt("div",[n.lineSpace],"CodeMirror-lines");n.mover=k("div",[l],null,"position: relative"),n.sizer=k("div",[n.mover],"CodeMirror-sizer"),n.sizerWidth=null,n.heightForcer=k("div",null,null,"position: absolute; height: "+En+"px; width: 1px;"),n.gutters=k("div",null,"CodeMirror-gutters"),n.lineGutter=null,n.scroller=k("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll"),n.scroller.setAttribute("tabIndex","-1"),n.wrapper=k("div",[n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror"),ze&&Fn===105&&(n.wrapper.style.clipPath="inset(0px)"),n.wrapper.setAttribute("translate","no"),A&&E<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),!ie&&!(We&&Xt)&&(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=hn(r.gutters,r.lineNumbers),_l(n),i.init(n)}var ei=0,Ie=null;A?Ie=-.53:We?Ie=15:ze?Ie=-.7:Dr&&(Ie=-1/3);function Xl(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function vs(e){var t=Xl(e);return t.x*=Ie,t.y*=Ie,t}function Yl(e,t){ze&&Fn==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Xl(t),r=i.x,n=i.y,l=Ie;t.deltaMode===0&&(r=t.deltaX,n=t.deltaY,l=1);var o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||n&&u){if(n&&ye&&ie){e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d<h.length;d++)if(h[d].node==f){e.display.currentWheelTarget=f;break e}}if(r&&!We&&!Ce&&l!=null){n&&u&&sr(e,Math.max(0,a.scrollTop+n*l)),ct(e,Math.max(0,a.scrollLeft+r*l)),(!n||n&&u)&&oe(t),o.wheelStartX=null;return}if(n&&l!=null){var c=n*l,p=e.doc.scrollTop,v=p+o.wrapper.clientHeight;c<0?p=Math.max(0,p+c-50):v=Math.min(e.doc.height,v+c+50),sn(e,{top:p,bottom:v})}ei<20&&t.deltaMode!==0&&(o.wheelStartX==null?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=n,setTimeout(function(){if(o.wheelStartX!=null){var y=a.scrollLeft-o.wheelStartX,m=a.scrollTop-o.wheelStartY,x=m&&o.wheelDY&&m/o.wheelDY||y&&o.wheelDX&&y/o.wheelDX;o.wheelStartX=o.wheelStartY=null,x&&(Ie=(Ie*ei+x)/(ei+1),++ei)}},200)):(o.wheelDX+=r,o.wheelDY+=n))}}var ge=function(e,t){this.ranges=e,this.primIndex=t};ge.prototype.primary=function(){return this.ranges[this.primIndex]},ge.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],r=e.ranges[t];if(!Fi(i.anchor,r.anchor)||!Fi(i.head,r.head))return!1}return!0},ge.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new O(Pi(this.ranges[t].anchor),Pi(this.ranges[t].head));return new ge(e,this.primIndex)},ge.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ge.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var r=this.ranges[i];if(M(t,r.from())>=0&&M(e,r.to())<=0)return i}return-1};var O=function(e,t){this.anchor=e,this.head=t};O.prototype.from=function(){return Ir(this.anchor,this.head)},O.prototype.to=function(){return Er(this.anchor,this.head)},O.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Le(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(d,c){return M(d.from(),c.from())}),i=ee(t,n);for(var l=1;l<t.length;l++){var o=t[l],a=t[l-1],s=M(a.to(),o.from());if(r&&!o.empty()?s>0:s>=0){var u=Ir(a.from(),o.from()),f=Er(a.to(),o.to()),h=a.empty()?o.from()==o.head:a.from()==a.head;l<=i&&--i,t.splice(--l,2,new O(h?f:u,h?u:f))}}return new ge(t,i)}function qe(e,t){return new ge([new O(e,t||e)],0)}function Ze(e){return e.text?g(e.from.line+e.text.length-1,W(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ql(e,t){if(M(e,t.from)<0)return e;if(M(e,t.to)<=0)return Ze(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ze(t).ch-t.to.ch),g(i,r)}function cn(e,t){for(var i=[],r=0;r<e.sel.ranges.length;r++){var n=e.sel.ranges[r];i.push(new O(ql(n.anchor,t),ql(n.head,t)))}return Le(e.cm,i,e.sel.primIndex)}function Zl(e,t,i){return e.line==t.line?g(i.line,e.ch-t.ch+i.ch):g(i.line+(e.line-t.line),e.ch)}function gs(e,t,i){for(var r=[],n=g(e.first,0),l=n,o=0;o<t.length;o++){var a=t[o],s=Zl(a.from,n,l),u=Zl(Ze(a),n,l);if(n=a.to,l=u,i=="around"){var f=e.sel.ranges[o],h=M(f.head,f.anchor)<0;r[o]=new O(h?u:s,h?s:u)}else r[o]=new O(s,s)}return new ge(r,e.sel.primIndex)}function dn(e){e.doc.mode=Ai(e.options,e.doc.modeOption),dr(e)}function dr(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,hr(e,100),e.state.modeGen++,e.curOp&&ae(e)}function Ql(e,t){return t.from.ch==0&&t.to.ch==0&&W(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function pn(e,t,i,r){function n(x){return i?i[x]:null}function l(x,b,C){La(x,b,C,r),Z(x,"change",x,t)}function o(x,b){for(var C=[],L=x;L<b;++L)C.push(new kt(u[L],n(L),r));return C}var a=t.from,s=t.to,u=t.text,f=w(e,a.line),h=w(e,s.line),d=W(u),c=n(u.length-1),p=s.line-a.line;if(t.full)e.insert(0,o(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ql(e,t)){var v=o(0,u.length-1);l(h,h.text,c),p&&e.remove(a.line,p),v.length&&e.insert(a.line,v)}else if(f==h)if(u.length==1)l(f,f.text.slice(0,a.ch)+d+f.text.slice(s.ch),c);else{var y=o(1,u.length-1);y.push(new kt(d+f.text.slice(s.ch),c,r)),l(f,f.text.slice(0,a.ch)+u[0],n(0)),e.insert(a.line+1,y)}else if(u.length==1)l(f,f.text.slice(0,a.ch)+u[0]+h.text.slice(s.ch),n(0)),e.remove(a.line+1,p);else{l(f,f.text.slice(0,a.ch)+u[0],n(0)),l(h,d+h.text.slice(s.ch),c);var m=o(1,u.length-1);p>1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}Z(e,"change",e,t)}function Qe(e,t,i){function r(n,l,o){if(n.linked)for(var a=0;a<n.linked.length;++a){var s=n.linked[a];if(s.doc!=l){var u=o&&s.sharedHist;i&&!u||(t(s.doc,u),r(s.doc,n,u))}}}r(e,null,!0)}function Jl(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,$i(e),dn(e),jl(e),e.options.direction=t.direction,e.options.lineWrapping||Ui(e),e.options.mode=t.modeOption,ae(e)}function jl(e){(e.doc.direction=="rtl"?rt:et)(e.display.lineDiv,"CodeMirror-rtl")}function ys(e){ce(e,function(){jl(e),ae(e)})}function ti(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function vn(e,t){var i={from:Pi(t.from),to:Ze(t),text:ot(e,t.from,t.to)};return eo(e,i,t.from.line,t.to.line+1),Qe(e,function(r){return eo(r,i,t.from.line,t.to.line+1)},!0),i}function Vl(e){for(;e.length;){var t=W(e);if(t.ranges)e.pop();else break}}function ms(e,t){if(t)return Vl(e.done),W(e.done);if(e.done.length&&!W(e.done).ranges)return W(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),W(e.done)}function $l(e,t,i,r){var n=e.history;n.undone.length=0;var l=+new Date,o,a;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=ms(n,n.lastOp==r)))a=W(o.changes),M(t.from,t.to)==0&&M(t.from,a.to)==0?a.to=Ze(t):o.changes.push(vn(e,t));else{var s=W(n.done);for((!s||!s.ranges)&&ri(e.sel,n.done),o={changes:[vn(e,t)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=l,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,a||G(e,"historyAdded")}function bs(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xs(e,t,i,r){var n=e.history,l=r&&r.origin;i==n.lastSelOp||l&&n.lastSelOrigin==l&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==l||bs(e,l,W(n.done),t))?n.done[n.done.length-1]=t:ri(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=l,n.lastSelOp=i,r&&r.clearRedo!==!1&&Vl(n.undone)}function ri(e,t){var i=W(t);i&&i.ranges&&i.equals(e)||t.push(e)}function eo(e,t,i,r){var n=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(o){o.markedSpans&&((n||(n=t["spans_"+e.id]={}))[l]=o.markedSpans),++l})}function Cs(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function ws(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var r=[],n=0;n<t.text.length;++n)r.push(Cs(i[n]));return r}function to(e,t){var i=ws(e,t),r=Ri(e,t);if(!i)return r;if(!r)return i;for(var n=0;n<i.length;++n){var l=i[n],o=r[n];if(l&&o)e:for(var a=0;a<o.length;++a){for(var s=o[a],u=0;u<l.length;++u)if(l[u].marker==s.marker)continue e;l.push(s)}else o&&(i[n]=o)}return i}function Ht(e,t,i){for(var r=[],n=0;n<e.length;++n){var l=e[n];if(l.ranges){r.push(i?ge.prototype.deepCopy.call(l):l);continue}var o=l.changes,a=[];r.push({changes:a});for(var s=0;s<o.length;++s){var u=o[s],f=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),t)for(var h in u)(f=h.match(/^spans_(\d+)$/))&&ee(t,Number(f[1]))>-1&&(W(a)[h]=u[h],delete u[h])}}return r}function gn(e,t,i,r){if(r){var n=e.anchor;if(i){var l=M(t,n)<0;l!=M(i,n)<0?(n=t,t=i):l!=M(t,i)<0&&(t=i)}return new O(n,t)}else return new O(i||t,t)}function ii(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),te(e,new ge([gn(e.sel.primary(),t,i,n)],0),r)}function ro(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),l=0;l<e.sel.ranges.length;l++)r[l]=gn(e.sel.ranges[l],t[l],null,n);var o=Le(e.cm,r,e.sel.primIndex);te(e,o,i)}function yn(e,t,i,r){var n=e.sel.ranges.slice(0);n[t]=i,te(e,Le(e.cm,n,e.sel.primIndex),r)}function io(e,t,i,r){te(e,qe(t,i),r)}function Ss(e,t,i){var r={ranges:t.ranges,update:function(n){this.ranges=[];for(var l=0;l<n.length;l++)this.ranges[l]=new O(D(e,n[l].anchor),D(e,n[l].head))},origin:i&&i.origin};return G(e,"beforeSelectionChange",e,r),e.cm&&G(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Le(e.cm,r.ranges,r.ranges.length-1):t}function no(e,t,i){var r=e.history.done,n=W(r);n&&n.ranges?(r[r.length-1]=t,ni(e,t,i)):te(e,t,i)}function te(e,t,i){ni(e,t,i),xs(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function ni(e,t,i){(xe(e,"beforeSelectionChange")||e.cm&&xe(e.cm,"beforeSelectionChange"))&&(t=Ss(e,t,i));var r=i&&i.bias||(M(t.primary().head,e.sel.primary().head)<0?-1:1);lo(e,ao(e,t,r,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ot(e.cm)}function lo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Un(e.cm)),Z(e,"cursorActivity",e))}function oo(e){lo(e,ao(e,e.sel,null,!1))}function ao(e,t,i,r){for(var n,l=0;l<t.ranges.length;l++){var o=t.ranges[l],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[l],s=li(e,o.anchor,a&&a.anchor,i,r),u=o.head==o.anchor?s:li(e,o.head,a&&a.head,i,r);(n||s!=o.anchor||u!=o.head)&&(n||(n=t.ranges.slice(0,l)),n[l]=new O(s,u))}return n?Le(e.cm,n,t.primIndex):t}function Ft(e,t,i,r,n){var l=w(e,t.line);if(l.markedSpans)for(var o=0;o<l.markedSpans.length;++o){var a=l.markedSpans[o],s=a.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,f="selectRight"in s?!s.selectRight:s.inclusiveRight;if((a.from==null||(u?a.from<=t.ch:a.from<t.ch))&&(a.to==null||(f?a.to>=t.ch:a.to>t.ch))){if(n&&(G(s,"beforeCursorEnter"),s.explicitlyCleared))if(l.markedSpans){--o;continue}else break;if(!s.atomic)continue;if(i){var h=s.find(r<0?1:-1),d=void 0;if((r<0?f:u)&&(h=so(e,h,-r,h&&h.line==t.line?l:null)),h&&h.line==t.line&&(d=M(h,i))&&(r<0?d<0:d>0))return Ft(e,h,t,r,n)}var c=s.find(r<0?-1:1);return(r<0?u:f)&&(c=so(e,c,r,c.line==t.line?l:null)),c?Ft(e,c,t,r,n):null}}return t}function li(e,t,i,r,n){var l=r||1,o=Ft(e,t,i,l,n)||!n&&Ft(e,t,i,l,!0)||Ft(e,t,i,-l,n)||!n&&Ft(e,t,i,-l,!0);return o||(e.cantEdit=!0,g(e.first,0))}function so(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?D(e,g(t.line-1)):null:i>0&&t.ch==(r||w(e,t.line)).text.length?t.line<e.first+e.size-1?g(t.line+1,0):null:new g(t.line,t.ch+i)}function uo(e){e.setSelection(g(e.firstLine(),0),g(e.lastLine()),Te)}function fo(e,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return i&&(r.update=function(n,l,o,a){n&&(r.from=D(e,n)),l&&(r.to=D(e,l)),o&&(r.text=o),a!==void 0&&(r.origin=a)}),G(e,"beforeChange",e,r),e.cm&&G(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Pt(e,t,i){if(e.cm){if(!e.cm.curOp)return Q(e.cm,Pt)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))&&(t=fo(e,t,!0),!t))){var r=tl&&!i&&xa(e,t.from,t.to);if(r)for(var n=r.length-1;n>=0;--n)ho(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else ho(e,t)}}function ho(e,t){if(!(t.text.length==1&&t.text[0]==""&&M(t.from,t.to)==0)){var i=cn(e,t);$l(e,t,i,e.cm?e.cm.curOp.id:NaN),pr(e,t,i,Ri(e,t));var r=[];Qe(e,function(n,l){!l&&ee(r,n.history)==-1&&(go(n.history,t),r.push(n.history)),pr(n,t,null,Ri(n,t))})}}function oi(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,l,o=e.sel,a=t=="undo"?n.done:n.undone,s=t=="undo"?n.undone:n.done,u=0;u<a.length&&(l=a[u],!(i?l.ranges&&!l.equals(e.sel):!l.ranges));u++);if(u!=a.length){for(n.lastOrigin=n.lastSelOrigin=null;;)if(l=a.pop(),l.ranges){if(ri(l,s),i&&!l.equals(e.sel)){te(e,l,{clearRedo:!1});return}o=l}else if(r){a.push(l);return}else break;var f=[];ri(o,s),s.push({changes:f,generation:n.generation}),n.generation=l.generation||++n.maxGeneration;for(var h=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),d=function(v){var y=l.changes[v];if(y.origin=t,h&&!fo(e,y,!1))return a.length=0,{};f.push(vn(e,y));var m=v?cn(e,y):W(a);pr(e,y,m,to(e,y)),!v&&e.cm&&e.cm.scrollIntoView({from:y.from,to:Ze(y)});var x=[];Qe(e,function(b,C){!C&&ee(x,b.history)==-1&&(go(b.history,y),x.push(b.history)),pr(b,y,null,to(b,y))})},c=l.changes.length-1;c>=0;--c){var p=d(c);if(p)return p.v}}}}function co(e,t){if(t!=0&&(e.first+=t,e.sel=new ge(Hr(e.sel.ranges,function(n){return new O(g(n.anchor.line+t,n.anchor.ch),g(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){ae(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;r<i.viewTo;r++)Xe(e.cm,r,"gutter")}}function pr(e,t,i,r){if(e.cm&&!e.cm.curOp)return Q(e.cm,pr)(e,t,i,r);if(t.to.line<e.first){co(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var n=t.text.length-1-(e.first-t.from.line);co(e,n),t={from:g(e.first,0),to:g(t.to.line+n,t.to.ch),text:[W(t.text)],origin:t.origin}}var l=e.lastLine();t.to.line>l&&(t={from:t.from,to:g(l,w(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ot(e,t.from,t.to),i||(i=cn(e,t)),e.cm?Ls(e.cm,t,r):pn(e,t,r),ni(e,i,Te),e.cantEdit&&li(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ls(e,t,i){var r=e.doc,n=e.display,l=t.from,o=t.to,a=!1,s=l.line;e.options.lineWrapping||(s=H(we(w(r,l.line))),r.iter(s,o.line+1,function(c){if(c==n.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Un(e),pn(r,t,i,Ol(e)),e.options.lineWrapping||(r.iter(s,l.line+t.text.length,function(c){var p=Kr(c);p>n.maxLineLength&&(n.maxLine=c,n.maxLineLength=p,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),da(r,l.line),hr(e,400);var u=t.text.length-(o.line-l.line)-1;t.full?ae(e):l.line==o.line&&t.text.length==1&&!Ql(e.doc,t)?Xe(e,l.line,"text"):ae(e,l.line,o.line+1,u);var f=xe(e,"changes"),h=xe(e,"change");if(h||f){var d={from:l,to:o,text:t.text,removed:t.removed,origin:t.origin};h&&Z(e,"change",e,d),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Et(e,t,i,r,n){var l;r||(r=i),M(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Pt(e,{from:i,to:r,text:t,origin:n})}function po(e,t,i,r){i<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,i,r){for(var n=0;n<e.length;++n){var l=e[n],o=!0;if(l.ranges){l.copied||(l=e[n]=l.deepCopy(),l.copied=!0);for(var a=0;a<l.ranges.length;a++)po(l.ranges[a].anchor,t,i,r),po(l.ranges[a].head,t,i,r);continue}for(var s=0;s<l.changes.length;++s){var u=l.changes[s];if(i<u.from.line)u.from=g(u.from.line+r,u.from.ch),u.to=g(u.to.line+r,u.to.ch);else if(t<=u.to.line){o=!1;break}}o||(e.splice(0,n+1),n=0)}}function go(e,t){var i=t.from.line,r=t.to.line,n=t.text.length-(r-i)-1;vo(e.done,i,r,n),vo(e.undone,i,r,n)}function vr(e,t,i,r){var n=t,l=t;return typeof t=="number"?l=w(e,Yn(e,t)):n=H(t),n==null?null:(r(l,n)&&e.cm&&Xe(e.cm,n,i),l)}function gr(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}gr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,r=e+t;i<r;++i){var n=this.lines[i];this.height-=n.height,ka(n),Z(n,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,i){for(var r=e+t;e<r;++e)if(i(this.lines[e]))return!0}};function yr(e){this.children=e;for(var t=0,i=0,r=0;r<e.length;++r){var n=e[r];t+=n.chunkSize(),i+=n.height,n.parent=this}this.size=t,this.height=i,this.parent=null}yr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var r=this.children[i],n=r.chunkSize();if(e<n){var l=Math.min(t,n-e),o=r.height;if(r.removeInner(e,l),this.height-=o-r.height,n==l&&(this.children.splice(i--,1),r.parent=null),(t-=l)==0)break;e=0}else e-=n}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof gr))){var a=[];this.collapse(a),this.children=[new gr(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var r=0;r<this.children.length;++r){var n=this.children[r],l=n.chunkSize();if(e<=l){if(n.insertInner(e,t,i),n.lines&&n.lines.length>50){for(var o=n.lines.length%25+25,a=o;a<n.lines.length;){var s=new gr(n.lines.slice(a,a+=25));n.height-=s.height,this.children.splice(++r,0,s),s.parent=this}n.lines=n.lines.slice(0,o),this.maybeSpill()}break}e-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new yr(t);if(e.parent){e.size-=i.size,e.height-=i.height;var n=ee(e.parent.children,e);e.parent.children.splice(n+1,0,i)}else{var r=new yr(e.children);r.parent=e,e.children=[r,i],e=r}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;r<this.children.length;++r){var n=this.children[r],l=n.chunkSize();if(e<l){var o=Math.min(t,l-e);if(n.iterN(e,o,i))return!0;if((t-=o)==0)break;e=0}else e-=l}}};var mr=function(e,t,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=e,this.node=t};mr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,r=H(i);if(!(r==null||!t)){for(var n=0;n<t.length;++n)t[n]==this&&t.splice(n--,1);t.length||(i.widgets=null);var l=nr(this);Me(i,Math.max(0,i.height-l)),e&&(ce(e,function(){yo(e,i,-l),Xe(e,r,"widget")}),Z(e,"lineWidgetCleared",e,this,r))}},mr.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,r=this.line;this.height=null;var n=nr(this)-t;n&&(_e(this.doc,r)||Me(r,r.height+n),i&&ce(i,function(){i.curOp.forceUpdate=!0,yo(i,r,n),Z(i,"lineWidgetChanged",i,e,H(r))}))},wt(mr);function yo(e,t,i){Pe(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&on(e,i)}function ks(e,t,i,r){var n=new mr(e,i,r),l=e.cm;return l&&n.noHScroll&&(l.display.alignWidgets=!0),vr(e,t,"widget",function(o){var a=o.widgets||(o.widgets=[]);if(n.insertAt==null?a.push(n):a.splice(Math.min(a.length,Math.max(0,n.insertAt)),0,n),n.line=o,l&&!_e(e,o)){var s=Pe(o)<e.scrollTop;Me(o,o.height+nr(n)),s&&on(l,n.height),l.curOp.forceUpdate=!0}return!0}),l&&Z(l,"lineWidgetAdded",l,n,typeof t=="number"?t:H(t)),n}var mo=0,Je=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++mo};Je.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&pt(e),xe(this,"clear")){var i=this.find();i&&Z(this,"clear",i.from,i.to)}for(var r=null,n=null,l=0;l<this.lines.length;++l){var o=this.lines[l],a=tr(o.markedSpans,this);e&&!this.collapsed?Xe(e,H(o),"text"):e&&(a.to!=null&&(n=H(o)),a.from!=null&&(r=H(o))),o.markedSpans=ga(o.markedSpans,a),a.from==null&&this.collapsed&&!_e(this.doc,o)&&e&&Me(o,Dt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=we(this.lines[s]),f=Kr(u);f>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=f,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&ae(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&Z(e,"markerCleared",e,this,r,n),t&&vt(e),this.parent&&this.parent.clear()}},Je.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n<this.lines.length;++n){var l=this.lines[n],o=tr(l.markedSpans,this);if(o.from!=null&&(i=g(t?l:H(l),o.from),e==-1))return i;if(o.to!=null&&(r=g(t?l:H(l),o.to),e==1))return r}return i&&{from:i,to:r}},Je.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,r=this.doc.cm;!t||!r||ce(r,function(){var n=t.line,l=H(t.line),o=Yi(r,l);if(o&&(Sl(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!_e(i.doc,n)&&i.height!=null){var a=i.height;i.height=null;var s=nr(i)-a;s&&Me(n,n.height+s)}Z(r,"markerChanged",r,e)})},Je.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ee(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Je.prototype.detachLine=function(e){if(this.lines.splice(ee(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},wt(Je);function It(e,t,i,r,n){if(r&&r.shared)return Ts(e,t,i,r,n);if(e.cm&&!e.cm.curOp)return Q(e.cm,It)(e,t,i,r,n);var l=new Je(e,n),o=M(t,i);if(r&&nt(r,l,!1),o>0||o==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=xt("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(al(e,t.line,t,i,l)||t.line!=i.line&&al(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");va()}l.addToHistory&&$l(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,i.line+1,function(h){s&&l.collapsed&&!s.options.lineWrapping&&we(h)==s.display.maxLine&&(u=!0),l.collapsed&&a!=t.line&&Me(h,0),ya(h,new Br(l,a==t.line?t.ch:null,a==i.line?i.ch:null),e.cm&&e.cm.curOp),++a}),l.collapsed&&e.iter(t.line,i.line+1,function(h){_e(e,h)&&Me(h,0)}),l.clearOnEnter&&T(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(pa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++mo,l.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),l.collapsed)ae(s,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var f=t.line;f<=i.line;f++)Xe(s,f,"text");l.atomic&&oo(s.doc),Z(s,"markerAdded",s,l)}return l}var br=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};br.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Z(this,"clear")}},br.prototype.find=function(e,t){return this.primary.find(e,t)},wt(br);function Ts(e,t,i,r,n){r=nt(r),r.shared=!1;var l=[It(e,t,i,r,n)],o=l[0],a=r.widgetNode;return Qe(e,function(s){a&&(r.widgetNode=a.cloneNode(!0)),l.push(It(s,D(s,t),D(s,i),r,n));for(var u=0;u<s.linked.length;++u)if(s.linked[u].isParent)return;o=W(l)}),new br(l,o)}function bo(e){return e.findMarks(g(e.first,0),e.clipPos(g(e.lastLine())),function(t){return t.parent})}function Ms(e,t){for(var i=0;i<t.length;i++){var r=t[i],n=r.find(),l=e.clipPos(n.from),o=e.clipPos(n.to);if(M(l,o)){var a=It(e,l,o,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}function Ds(e){for(var t=function(r){var n=e[r],l=[n.primary.doc];Qe(n.primary.doc,function(s){return l.push(s)});for(var o=0;o<n.markers.length;o++){var a=n.markers[o];ee(l,a.doc)==-1&&(a.parent=null,n.markers.splice(o--,1))}},i=0;i<e.length;i++)t(i)}var Ns=0,se=function(e,t,i,r,n){if(!(this instanceof se))return new se(e,t,i,r,n);i==null&&(i=0),yr.call(this,[new gr([new kt("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var l=g(i,0);this.sel=qe(l),this.history=new ti(null),this.id=++Ns,this.modeOption=t,this.lineSep=r,this.direction=n=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),pn(this,{from:l,to:l,text:e}),te(this,qe(l),Te)};se.prototype=Rn(yr.prototype,{constructor:se,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,r=0;r<t.length;++r)i+=t[r].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Wi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:J(function(e){var t=g(this.first,0),i=this.first+this.size-1;Pt(this,{from:t,to:g(i,w(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ar(this.cm,0,0),te(this,qe(t),Te)}),replaceRange:function(e,t,i,r){t=D(this,t),i=i?D(this,i):t,Et(this,e,t,i,r)},getRange:function(e,t,i){var r=ot(this,D(this,e),D(this,t));return i===!1?r:i===""?r.join(""):r.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if($t(this,e))return w(this,e)},getLineNumber:function(e){return H(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=w(this,e)),we(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return D(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:J(function(e,t,i){io(this,D(this,typeof e=="number"?g(e,t||0):e),null,i)}),setSelection:J(function(e,t,i){io(this,D(this,e),D(this,t||e),i)}),extendSelection:J(function(e,t,i){ii(this,D(this,e),t&&D(this,t),i)}),extendSelections:J(function(e,t){ro(this,qn(this,e),t)}),extendSelectionsBy:J(function(e,t){var i=Hr(this.sel.ranges,e);ro(this,qn(this,i),t)}),setSelections:J(function(e,t,i){if(e.length){for(var r=[],n=0;n<e.length;n++)r[n]=new O(D(this,e[n].anchor),D(this,e[n].head||e[n].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),te(this,Le(this.cm,r,t),i)}}),addSelection:J(function(e,t,i){var r=this.sel.ranges.slice(0);r.push(new O(D(this,e),D(this,t||e))),te(this,Le(this.cm,r,r.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,r=0;r<t.length;r++){var n=ot(this,t[r].from(),t[r].to());i=i?i.concat(n):n}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,r=0;r<i.length;r++){var n=ot(this,i[r].from(),i[r].to());e!==!1&&(n=n.join(e||this.lineSeparator())),t[r]=n}return t},replaceSelection:function(e,t,i){for(var r=[],n=0;n<this.sel.ranges.length;n++)r[n]=e;this.replaceSelections(r,t,i||"+input")},replaceSelections:J(function(e,t,i){for(var r=[],n=this.sel,l=0;l<n.ranges.length;l++){var o=n.ranges[l];r[l]={from:o.from(),to:o.to(),text:this.splitLines(e[l]),origin:i}}for(var a=t&&t!="end"&&gs(this,r,t),s=r.length-1;s>=0;s--)Pt(this,r[s]);a?no(this,a):this.cm&&Ot(this.cm)}),undo:J(function(){oi(this,"undo")}),redo:J(function(){oi(this,"redo")}),undoSelection:J(function(){oi(this,"undo",!0)}),redoSelection:J(function(){oi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var n=0;n<e.undone.length;n++)e.undone[n].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new ti(this.history),Qe(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ht(this.history.done),undone:Ht(this.history.undone)}},setHistory:function(e){var t=this.history=new ti(this.history);t.done=Ht(e.done.slice(0),null,!0),t.undone=Ht(e.undone.slice(0),null,!0)},setGutterMarker:J(function(e,t,i){return vr(this,e,"gutter",function(r){var n=r.gutterMarkers||(r.gutterMarkers={});return n[t]=i,!i&&Bn(n)&&(r.gutterMarkers=null),!0})}),clearGutter:J(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&vr(t,i,"gutter",function(){return i.gutterMarkers[e]=null,Bn(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!$t(this,e)||(t=e,e=w(this,e),!e))return null}else if(t=H(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:J(function(e,t,i){return vr(this,e,t=="gutter"?"gutter":"class",function(r){var n=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[n])r[n]=i;else{if(bt(i).test(r[n]))return!1;r[n]+=" "+i}return!0})}),removeLineClass:J(function(e,t,i){return vr(this,e,t=="gutter"?"gutter":"class",function(r){var n=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",l=r[n];if(l)if(i==null)r[n]=null;else{var o=l.match(bt(i));if(!o)return!1;var a=o.index+o[0].length;r[n]=l.slice(0,o.index)+(!o.index||a==l.length?"":" ")+l.slice(a)||null}else return!1;return!0})}),addLineWidget:J(function(e,t,i){return ks(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return It(this,D(this,e),D(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=D(this,e),It(this,e,e,i,"bookmark")},findMarksAt:function(e){e=D(this,e);var t=[],i=w(this,e.line).markedSpans;if(i)for(var r=0;r<i.length;++r){var n=i[r];(n.from==null||n.from<=e.ch)&&(n.to==null||n.to>=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=D(this,e),t=D(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(l){var o=l.markedSpans;if(o)for(var a=0;a<o.length;a++){var s=o[a];!(s.to!=null&&n==e.line&&e.ch>=s.to||s.from==null&&n!=e.line||s.from!=null&&n==t.line&&s.from>=t.ch)&&(!i||i(s.marker))&&r.push(s.marker.parent||s.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;r<i.length;++r)i[r].from!=null&&e.push(i[r].marker)}),e},posFromIndex:function(e){var t,i=this.first,r=this.lineSeparator().length;return this.iter(function(n){var l=n.text.length+r;if(l>e)return t=e,!0;e-=l,++i}),D(this,g(i,t))},indexFromPos:function(e){e=D(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+i}),t},copy:function(e){var t=new se(Wi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var r=new se(Wi(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ms(r,bo(this)),r},unlinkDoc:function(e){if(e instanceof I&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ds(bo(this));break}}if(e.history==this.history){var r=[e.id];Qe(e,function(n){return r.push(n.id)},!0),e.history=new ti(null),e.history.done=Ht(this.history.done,r),e.history.undone=Ht(this.history.undone,r)}},iterLinkedDocs:function(e){Qe(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Mi(e)},lineSeparator:function(){return this.lineSep||`
11
- `},setDirection:J(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&ys(this.cm))})}),se.prototype.eachLine=se.prototype.iter;var xo=0;function As(e){var t=this;if(Co(t),!(q(t,e)||Ee(t.display,e))){oe(e),A&&(xo=+new Date);var i=ft(t,e,!0),r=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var n=r.length,l=Array(n),o=0,a=function(){++o==n&&Q(t,function(){i=D(t.doc,i);var c={from:i,to:i,text:t.doc.splitLines(l.filter(function(p){return p!=null}).join(t.doc.lineSeparator())),origin:"paste"};Pt(t.doc,c),no(t.doc,qe(D(t.doc,i),D(t.doc,Ze(c))))})()},s=function(c,p){if(t.options.allowDropFileTypes&&ee(t.options.allowDropFileTypes,c.type)==-1){a();return}var v=new FileReader;v.onerror=function(){return a()},v.onload=function(){var y=v.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(y)){a();return}l[p]=y,a()},v.readAsText(c)},u=0;u<r.length;u++)s(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),ni(t.doc,qe(i,i)),h)for(var d=0;d<h.length;++d)Et(t.doc,"",h[d].anchor,h[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch{}}}}function Os(e,t){if(A&&(!e.state.draggingText||+new Date-xo<100)){Vt(t);return}if(!(q(e,t)||Ee(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Dr)){var i=k("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ce&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),Ce&&i.parentNode.removeChild(i)}}function Ws(e,t){var i=ft(e,t);if(i){var r=document.createDocumentFragment();en(e,i,r),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),pe(e.display.dragCursor,r)}}function Co(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function wo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],r=0;r<t.length;r++){var n=t[r].CodeMirror;n&&i.push(n)}i.length&&i[0].operation(function(){for(var l=0;l<i.length;l++)e(i[l])})}}var So=!1;function Hs(){So||(Fs(),So=!0)}function Fs(){var e;T(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,wo(Ps)},100))}),T(window,"blur",function(){return wo(At)})}function Ps(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var je={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"},xr=0;xr<10;xr++)je[xr+48]=je[xr+96]=String(xr);for(var ai=65;ai<=90;ai++)je[ai]=String.fromCharCode(ai);for(var Cr=1;Cr<=12;Cr++)je[Cr+111]=je[Cr+63235]="F"+Cr;var Re={};Re.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"},Re.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"},Re.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"},Re.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"]},Re.default=ye?Re.macDefault:Re.pcDefault;function Es(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,r,n,l,o=0;o<t.length-1;o++){var a=t[o];if(/^(cmd|meta|m)$/i.test(a))l=!0;else if(/^a(lt)?$/i.test(a))i=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else throw new Error("Unrecognized modifier name: "+a)}return i&&(e="Alt-"+e),r&&(e="Ctrl-"+e),l&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Is(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(r=="..."){delete e[i];continue}for(var n=Hr(i.split(" "),Es),l=0;l<n.length;l++){var o=void 0,a=void 0;l==n.length-1?(a=n.join(" "),o=r):(a=n.slice(0,l+1).join(" "),o="...");var s=t[a];if(!s)t[a]=o;else if(s!=o)throw new Error("Inconsistent bindings for "+a)}delete e[i]}for(var u in t)e[u]=t[u];return e}function Rt(e,t,i,r){t=si(t);var n=t.call?t.call(e,r):t[e];if(n===!1)return"nothing";if(n==="...")return"multi";if(n!=null&&i(n))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Rt(e,t.fallthrough,i,r);for(var l=0;l<t.fallthrough.length;l++){var o=Rt(e,t.fallthrough[l],i,r);if(o)return o}}}function Lo(e){var t=typeof e=="string"?e:je[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function ko(e,t,i){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(Pn?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(Pn?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function To(e,t){if(Ce&&e.keyCode==34&&e.char)return!1;var i=je[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),ko(i,e,t))}function si(e){return typeof e=="string"?Re[e]:e}function Bt(e,t){for(var i=e.doc.sel.ranges,r=[],n=0;n<i.length;n++){for(var l=t(i[n]);r.length&&M(l.from,W(r).to)<=0;){var o=r.pop();if(M(o.from,l.from)<0){l.from=o.from;break}}r.push(l)}ce(e,function(){for(var a=r.length-1;a>=0;a--)Et(e.doc,"",r[a].from,r[a].to,"+delete");Ot(e)})}function mn(e,t,i){var r=zn(e.text,t+i,i);return r<0||r>e.text.length?null:r}function bn(e,t,i){var r=mn(e,t.ch,i);return r==null?null:new g(t.line,r,i<0?"after":"before")}function xn(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var l=He(i,t.doc.direction);if(l){var o=n<0?W(l):l[0],a=n<0==(o.level==1),s=a?"after":"before",u;if(o.level>0||t.doc.direction=="rtl"){var f=Mt(t,i);u=n<0?i.text.length-1:0;var h=Ae(t,f,u).top;u=Qt(function(d){return Ae(t,f,d).top==h},n<0==(o.level==1)?o.from:o.to-1,u),s=="before"&&(u=mn(i,u,1))}else u=n<0?o.to:o.from;return new g(r,u,s)}}return new g(r,n<0?i.text.length:0,n<0?"before":"after")}function Rs(e,t,i,r){var n=He(t,e.doc.direction);if(!n)return bn(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=jt(n,i.ch,i.sticky),o=n[l];if(e.doc.direction=="ltr"&&o.level%2==0&&(r>0?o.to>i.ch:o.from<i.ch))return bn(t,i,r);var a=function(m,x){return mn(t,m instanceof g?m.ch:m,x)},s,u=function(m){return e.options.lineWrapping?(s=s||Mt(e,t),Al(e,t,s,m)):{begin:0,end:t.text.length}},f=u(i.sticky=="before"?a(i,-1):i.ch);if(e.doc.direction=="rtl"||o.level==1){var h=o.level==1==r<0,d=a(i,h?1:-1);if(d!=null&&(h?d<=o.to&&d<=f.end:d>=o.from&&d>=f.begin)){var c=h?"before":"after";return new g(i.line,d,c)}}var p=function(m,x,b){for(var C=function(P,j){return j?new g(i.line,a(P,1),"before"):new g(i.line,P,"after")};m>=0&&m<n.length;m+=x){var L=n[m],S=x>0==(L.level!=1),N=S?b.begin:a(b.end,-1);if(L.from<=N&&N<L.to||(N=S?L.from:a(L.to,-1),b.begin<=N&&N<b.end))return C(N,S)}},v=p(l+r,r,f);if(v)return v;var y=r>0?f.end:a(f.begin,-1);return y!=null&&!(r>0&&y==t.text.length)&&(v=p(r>0?0:n.length-1,r,u(y)),v)?v:null}var wr={selectAll:uo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Te)},killLine:function(e){return Bt(e,function(t){if(t.empty()){var i=w(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:g(t.head.line+1,0)}:{from:t.head,to:g(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Bt(e,function(t){return{from:g(t.from().line,0),to:D(e.doc,g(t.to().line+1,0))}})},delLineLeft:function(e){return Bt(e,function(t){return{from:g(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Bt(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Bt(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(g(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(g(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Mo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Do(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Bs(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Zt)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Zt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return r.ch<e.getLine(r.line).search(/\S/)?Do(e,t.head):r},Zt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),r=e.options.tabSize,n=0;n<i.length;n++){var l=i[n].from(),o=be(e.getLine(l.line),l.ch,r);t.push(bi(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ce(e,function(){for(var t=e.listSelections(),i=[],r=0;r<t.length;r++)if(t[r].empty()){var n=t[r].head,l=w(e.doc,n.line).text;if(l){if(n.ch==l.length&&(n=new g(n.line,n.ch-1)),n.ch>0)n=new g(n.line,n.ch+1),e.replaceRange(l.charAt(n.ch-1)+l.charAt(n.ch-2),g(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var o=w(e.doc,n.line-1).text;o&&(n=new g(n.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),g(n.line-1,o.length-1),n,"+transpose"))}}i.push(new O(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return ce(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Ot(e)})},openLine:function(e){return e.replaceSelection(`
12
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Mo(e,t){var i=w(e.doc,t),r=we(i);return r!=i&&(t=H(r)),xn(!0,e,r,t,1)}function Bs(e,t){var i=w(e.doc,t),r=wa(i);return r!=i&&(t=H(r)),xn(!0,e,i,t,-1)}function Do(e,t){var i=Mo(e,t.line),r=w(e.doc,i.line),n=He(r,e.doc.direction);if(!n||n[0].level==0){var l=Math.max(i.ch,r.text.search(/\S/)),o=t.line==i.line&&t.ch<=l&&t.ch;return g(i.line,o?0:l,i.sticky)}return i}function ui(e,t,i){if(typeof t=="string"&&(t=wr[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),n=t(e)!=Or}finally{e.display.shift=r,e.state.suppressEdits=!1}return n}function zs(e,t,i){for(var r=0;r<e.state.keyMaps.length;r++){var n=Rt(t,e.state.keyMaps[r],i,e);if(n)return n}return e.options.extraKeys&&Rt(t,e.options.extraKeys,i,e)||Rt(t,e.options.keyMap,i,e)}var Gs=new Ke;function Sr(e,t,i,r){var n=e.state.keySeq;if(n){if(Lo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Gs.set(50,function(){e.state.keySeq==n&&(e.state.keySeq=null,e.display.input.reset())}),No(e,n+" "+t,i,r))return!0}return No(e,t,i,r)}function No(e,t,i,r){var n=zs(e,t,r);return n=="multi"&&(e.state.keySeq=t),n=="handled"&&Z(e,"keyHandled",e,t,i),(n=="handled"||n=="multi")&&(oe(i),tn(e)),!!n}function Ao(e,t){var i=To(t,!0);return i?t.shiftKey&&!e.state.keySeq?Sr(e,"Shift-"+i,t,function(r){return ui(e,r,!0)})||Sr(e,i,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return ui(e,r)}):Sr(e,i,t,function(r){return ui(e,r)}):!1}function Us(e,t,i){return Sr(e,"'"+i+"'",t,function(r){return ui(e,r,!0)})}var Cn=null;function Oo(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=me(Ct(t)),!q(t,e))){A&&E<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var r=Ao(t,e);Ce&&(Cn=r?i:null,!r&&i==88&&!oa&&(ye?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),We&&!ye&&!r&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Ks(t)}}function Ks(e){var t=e.display.lineDiv;rt(t,"CodeMirror-crosshair");function i(r){(r.keyCode==18||!r.altKey)&&(et(t,"CodeMirror-crosshair"),ve(document,"keyup",i),ve(document,"mouseover",i))}T(document,"keyup",i),T(document,"mouseover",i)}function Wo(e){e.keyCode==16&&(this.doc.sel.shift=!1),q(this,e)}function Ho(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Ee(t.display,e)||q(t,e)||e.ctrlKey&&!e.altKey||ye&&e.metaKey)){var i=e.keyCode,r=e.charCode;if(Ce&&i==Cn){Cn=null,oe(e);return}if(!(Ce&&(!e.which||e.which<10)&&Ao(t,e))){var n=String.fromCharCode(r??i);n!="\b"&&(Us(t,e,n)||t.display.input.onKeyPress(e))}}}var _s=400,wn=function(e,t,i){this.time=e,this.pos=t,this.button=i};wn.prototype.compare=function(e,t,i){return this.time+_s>e&&M(t,this.pos)==0&&i==this.button};var Lr,kr;function Xs(e,t){var i=+new Date;return kr&&kr.compare(i,e,t)?(Lr=kr=null,"triple"):Lr&&Lr.compare(i,e,t)?(kr=new wn(i,e,t),Lr=null,"double"):(Lr=new wn(i,e,t),kr=null,"single")}function Fo(e){var t=this,i=t.display;if(!(q(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Ee(i,e)){ie||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!Sn(t,e)){var r=ft(t,e),n=_n(e),l=r?Xs(r,n):"single";Ar(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Ys(t,n,r,l,e))&&(n==1?r?Zs(t,r,l,e):Li(e)==i.scroller&&oe(e):n==2?(r&&ii(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(pi?t.display.input.onContextMenu(e):rn(t)))}}}function Ys(e,t,i,r,n){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,Sr(e,ko(l,n),n,function(o){if(typeof o=="string"&&(o=wr[o]),!o)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=o(e,i)!=Or}finally{e.state.suppressEdits=!1}return a})}function qs(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var l=Qo?i.shiftKey&&i.metaKey:i.altKey;n.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=ye?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(ye?i.altKey:i.ctrlKey)),n}function Zs(e,t,i,r){A?setTimeout(gi(Fl,e),0):e.curOp.focus=me(Ct(e));var n=qs(e,i,r),l=e.doc.sel,o;e.options.dragDrop&&ra&&!e.isReadOnly()&&i=="single"&&(o=l.contains(t))>-1&&(M((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(M(o.to(),t)>0||t.xRel<0)?Qs(e,r,t,n):Js(e,r,t,n)}function Qs(e,t,i,r){var n=e.display,l=!1,o=Q(e,function(u){ie&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:rn(e)),ve(n.wrapper.ownerDocument,"mouseup",o),ve(n.wrapper.ownerDocument,"mousemove",a),ve(n.scroller,"dragstart",s),ve(n.scroller,"drop",o),l||(oe(u),r.addNew||ii(e.doc,i,null,null,r.extend),ie&&!Dr||A&&E==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),a=function(u){l=l||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return l=!0};ie&&(n.scroller.draggable=!0),e.state.draggingText=o,o.copy=!r.moveOnDrag,T(n.wrapper.ownerDocument,"mouseup",o),T(n.wrapper.ownerDocument,"mousemove",a),T(n.scroller,"dragstart",s),T(n.scroller,"drop",o),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function Po(e,t,i){if(i=="char")return new O(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new O(g(t.line,0),D(e.doc,g(t.line+1,0)));var r=i(e,t);return new O(r.from,r.to)}function Js(e,t,i,r){A&&rn(e);var n=e.display,l=e.doc;oe(t);var o,a,s=l.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=l.sel.contains(i),a>-1?o=u[a]:o=new O(i,i)):(o=l.sel.primary(),a=l.sel.primIndex),r.unit=="rectangle")r.addNew||(o=new O(i,i)),i=ft(e,t,!0,!0),a=-1;else{var f=Po(e,i,r.unit);r.extend?o=gn(o,f.anchor,f.head,r.extend):o=f}r.addNew?a==-1?(a=u.length,te(l,Le(e,u.concat([o]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(te(l,Le(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=l.sel):yn(l,a,o,yi):(a=0,te(l,new ge([o],0),yi),s=l.sel);var h=i;function d(b){if(M(h,b)!=0)if(h=b,r.unit=="rectangle"){for(var C=[],L=e.options.tabSize,S=be(w(l,i.line).text,i.ch,L),N=be(w(l,b.line).text,b.ch,L),P=Math.min(S,N),j=Math.max(S,N),R=Math.min(i.line,b.line),de=Math.min(e.lastLine(),Math.max(i.line,b.line));R<=de;R++){var ue=w(l,R).text,K=mi(ue,P,L);P==j?C.push(new O(g(R,K),g(R,K))):ue.length>K&&C.push(new O(g(R,K),g(R,mi(ue,j,L))))}C.length||C.push(new O(i,i)),te(l,Le(e,s.ranges.slice(0,a).concat(C),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(b)}else{var fe=o,$=Po(e,b,r.unit),X=fe.anchor,_;M($.anchor,X)>0?(_=$.head,X=Ir(fe.from(),$.anchor)):(_=$.anchor,X=Er(fe.to(),$.head));var B=s.ranges.slice(0);B[a]=js(e,new O(D(l,X),_)),te(l,Le(e,B,a),yi)}}var c=n.wrapper.getBoundingClientRect(),p=0;function v(b){var C=++p,L=ft(e,b,!0,r.unit=="rectangle");if(L)if(M(L,h)!=0){e.curOp.focus=me(Ct(e)),d(L);var S=jr(n,l);(L.line>=S.to||L.line<S.from)&&setTimeout(Q(e,function(){p==C&&v(b)}),150)}else{var N=b.clientY<c.top?-20:b.clientY>c.bottom?20:0;N&&setTimeout(Q(e,function(){p==C&&(n.scroller.scrollTop+=N,v(b))}),50)}}function y(b){e.state.selectingText=!1,p=1/0,b&&(oe(b),n.input.focus()),ve(n.wrapper.ownerDocument,"mousemove",m),ve(n.wrapper.ownerDocument,"mouseup",x),l.history.lastSelOrigin=null}var m=Q(e,function(b){b.buttons===0||!_n(b)?y(b):v(b)}),x=Q(e,y);e.state.selectingText=x,T(n.wrapper.ownerDocument,"mousemove",m),T(n.wrapper.ownerDocument,"mouseup",x)}function js(e,t){var i=t.anchor,r=t.head,n=w(e.doc,i.line);if(M(i,r)==0&&i.sticky==r.sticky)return t;var l=He(n);if(!l)return t;var o=jt(l,i.ch,i.sticky),a=l[o];if(a.from!=i.ch&&a.to!=i.ch)return t;var s=o+(a.from==i.ch==(a.level!=1)?0:1);if(s==0||s==l.length)return t;var u;if(r.line!=i.line)u=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var f=jt(l,r.ch,r.sticky),h=f-o||(r.ch-i.ch)*(a.level==1?-1:1);f==s-1||f==s?u=h<0:u=h>0}var d=l[s+(u?-1:0)],c=u==(d.level==1),p=c?d.from:d.to,v=c?"after":"before";return i.ch==p&&i.sticky==v?t:new O(new g(i.line,p,v),r)}function Eo(e,t,i,r){var n,l;if(t.touches)n=t.touches[0].clientX,l=t.touches[0].clientY;else try{n=t.clientX,l=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&oe(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(l>a.bottom||!xe(e,i))return Si(t);l-=a.top-o.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=o.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=n){var f=at(e.doc,l),h=e.display.gutterSpecs[s];return G(e,i,e,f,h.className,t),Si(t)}}}function Sn(e,t){return Eo(e,t,"gutterClick",!0)}function Io(e,t){Ee(e.display,t)||Vs(e,t)||q(e,t,"contextmenu")||pi||e.display.input.onContextMenu(t)}function Vs(e,t){return xe(e,"gutterContextMenu")?Eo(e,t,"gutterContextMenu",!1):!1}function Ro(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lr(e)}var zt={toString:function(){return"CodeMirror.Init"}},Bo={},fi={};function $s(e){var t=e.optionHandlers;function i(r,n,l,o){e.defaults[r]=n,l&&(t[r]=o?function(a,s,u){u!=zt&&l(a,s,u)}:l)}e.defineOption=i,e.Init=zt,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,dn(r)},!0),i("indentUnit",2,dn,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){dr(r),lr(r),ae(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var l=[],o=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var f=s.text.indexOf(n,u);if(f==-1)break;u=f+n.length,l.push(g(o,f))}o++});for(var a=l.length-1;a>=0;a--)Et(r.doc,n,l[a],g(l[a].line,l[a].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,l){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),l!=zt&&r.refresh()}),i("specialCharPlaceholder",Da,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",Xt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!Jo),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Ro(r),cr(r)},!0),i("keyMap","default",function(r,n,l){var o=si(n),a=l!=zt&&si(l);a&&a.detach&&a.detach(r,o),o.attach&&o.attach(r,a||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,tu,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=hn(n,r.options.lineNumbers),cr(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?Vi(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Wt(r)},!0),i("scrollbarStyle","native",function(r){zl(r),Wt(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=hn(r.options.gutters,n),cr(r)},!0),i("firstLineNumber",1,cr,!0),i("lineNumberFormatter",function(r){return r},cr,!0),i("showCursorWhenSelecting",!1,or,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(At(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,eu),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,or,!0),i("singleCursorHeightPerLine",!0,or,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,dr,!0),i("addModeClass",!1,dr,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,dr,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function eu(e,t,i){var r=i&&i!=zt;if(!t!=!r){var n=e.display.dragFunctions,l=t?T:ve;l(e.display.scroller,"dragstart",n.start),l(e.display.scroller,"dragenter",n.enter),l(e.display.scroller,"dragover",n.over),l(e.display.scroller,"dragleave",n.leave),l(e.display.scroller,"drop",n.drop)}}function tu(e){e.options.lineWrapping?(rt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(et(e.display.wrapper,"CodeMirror-wrap"),Ui(e)),$i(e),ae(e),lr(e),setTimeout(function(){return Wt(e)},100)}function I(e,t){var i=this;if(!(this instanceof I))return new I(e,t);this.options=t=t?nt(t):{},nt(Bo,t,!1);var r=t.value;typeof r=="string"?r=new se(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new I.inputStyles[t.inputStyle](this),l=this.display=new ps(e,r,n,t);l.wrapper.CodeMirror=this,Ro(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),zl(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},t.autofocus&&!Xt&&l.input.focus(),A&&E<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ru(this),Hs(),pt(this),this.curOp.forceUpdate=!0,Jl(this,r),t.autofocus&&!Xt||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&nn(i)},20):At(this);for(var o in fi)fi.hasOwnProperty(o)&&fi[o](this,t[o],zt);Kl(this),t.finishInit&&t.finishInit(this);for(var a=0;a<Ln.length;++a)Ln[a](this);vt(this),ie&&t.lineWrapping&&getComputedStyle(l.lineDiv).textRendering=="optimizelegibility"&&(l.lineDiv.style.textRendering="auto")}I.defaults=Bo,I.optionHandlers=fi;function ru(e){var t=e.display;T(t.scroller,"mousedown",Q(e,Fo)),A&&E<11?T(t.scroller,"dblclick",Q(e,function(s){if(!q(e,s)){var u=ft(e,s);if(!(!u||Sn(e,s)||Ee(e.display,s))){oe(s);var f=e.findWordAt(u);ii(e.doc,f.anchor,f.head)}}})):T(t.scroller,"dblclick",function(s){return q(e,s)||oe(s)}),T(t.scroller,"contextmenu",function(s){return Io(e,s)}),T(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||Io(e,s)});var i,r={end:0};function n(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function l(s){if(s.touches.length!=1)return!1;var u=s.touches[0];return u.radiusX<=1&&u.radiusY<=1}function o(s,u){if(u.left==null)return!0;var f=u.left-s.left,h=u.top-s.top;return f*f+h*h>400}T(t.scroller,"touchstart",function(s){if(!q(e,s)&&!l(s)&&!Sn(e,s)){t.input.ensurePolled(),clearTimeout(i);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),T(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),T(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Ee(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var f=e.coordsChar(t.activeTouch,"page"),h;!u.prev||o(u,u.prev)?h=new O(f,f):!u.prev.prev||o(u,u.prev.prev)?h=e.findWordAt(f):h=new O(g(f.line,0),D(e.doc,g(f.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),oe(s)}n()}),T(t.scroller,"touchcancel",n),T(t.scroller,"scroll",function(){t.scroller.clientHeight&&(sr(e,t.scroller.scrollTop),ct(e,t.scroller.scrollLeft,!0),G(e,"scroll",e))}),T(t.scroller,"mousewheel",function(s){return Yl(e,s)}),T(t.scroller,"DOMMouseScroll",function(s){return Yl(e,s)}),T(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){q(e,s)||Vt(s)},over:function(s){q(e,s)||(Ws(e,s),Vt(s))},start:function(s){return Os(e,s)},drop:Q(e,As),leave:function(s){q(e,s)||Co(e)}};var a=t.input.getField();T(a,"keyup",function(s){return Wo.call(e,s)}),T(a,"keydown",Q(e,Oo)),T(a,"keypress",Q(e,Ho)),T(a,"focus",function(s){return nn(e,s)}),T(a,"blur",function(s){return At(e,s)})}var Ln=[];I.defineInitHook=function(e){return Ln.push(e)};function Tr(e,t,i,r){var n=e.doc,l;i==null&&(i="add"),i=="smart"&&(n.mode.indent?l=er(e,t).state:i="prev");var o=e.options.tabSize,a=w(n,t),s=be(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],f;if(!r&&!/\S/.test(a.text))f=0,i="not";else if(i=="smart"&&(f=n.mode.indent(l,a.text.slice(u.length),a.text),f==Or||f>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?f=be(w(n,t-1).text,null,o):f=0:i=="add"?f=s+e.options.indentUnit:i=="subtract"?f=s-e.options.indentUnit:typeof i=="number"&&(f=s+i),f=Math.max(0,f);var h="",d=0;if(e.options.indentWithTabs)for(var c=Math.floor(f/o);c;--c)d+=o,h+=" ";if(d<f&&(h+=bi(f-d)),h!=u)return Et(n,h,g(t,0),g(t,u.length),"+input"),a.stateAfter=null,!0;for(var p=0;p<n.sel.ranges.length;p++){var v=n.sel.ranges[p];if(v.head.line==t&&v.head.ch<u.length){var y=g(t,u.length);yn(n,p,new O(y,y));break}}}var ke=null;function hi(e){ke=e}function kn(e,t,i,r,n){var l=e.doc;e.display.shift=!1,r||(r=l.sel);var o=+new Date-200,a=n=="paste"||e.state.pasteIncoming>o,s=Mi(t),u=null;if(a&&r.ranges.length>1)if(ke&&ke.text.join(`
13
- `)==t){if(r.ranges.length%ke.text.length==0){u=[];for(var f=0;f<ke.text.length;f++)u.push(l.splitLines(ke.text[f]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Hr(s,function(m){return[m]}));for(var h=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var c=r.ranges[d],p=c.from(),v=c.to();c.empty()&&(i&&i>0?p=g(p.line,p.ch-i):e.state.overwrite&&!a?v=g(v.line,Math.min(w(l,v.line).text.length,v.ch+W(s).length)):a&&ke&&ke.lineWise&&ke.text.join(`
14
- `)==s.join(`
15
- `)&&(p=v=g(p.line,0)));var y={from:p,to:v,text:u?u[d%u.length]:s,origin:n||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Pt(e.doc,y),Z(e,"inputRead",e,y)}t&&!a&&Go(e,t),Ot(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zo(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&ce(t,function(){return kn(t,i,0,null,"paste")}),!0}function Go(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var l=e.getModeAt(n.head),o=!1;if(l.electricChars){for(var a=0;a<l.electricChars.length;a++)if(t.indexOf(l.electricChars.charAt(a))>-1){o=Tr(e,n.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(w(e.doc,n.head.line).text.slice(0,n.head.ch))&&(o=Tr(e,n.head.line,"smart"));o&&Z(e,"electricInput",e,n.head.line)}}}function Uo(e){for(var t=[],i=[],r=0;r<e.doc.sel.ranges.length;r++){var n=e.doc.sel.ranges[r].head.line,l={anchor:g(n,0),head:g(n+1,0)};i.push(l),t.push(e.getRange(l.anchor,l.head))}return{text:t,ranges:i}}function Tn(e,t,i,r){e.setAttribute("autocorrect",i?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ko(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ie?e.style.width="1000px":e.setAttribute("wrap","off"),_t&&(e.style.border="1px solid black"),t}function iu(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){Ar(this).focus(),this.display.input.focus()},setOption:function(r,n){var l=this.options,o=l[r];l[r]==n&&r!="mode"||(l[r]=n,t.hasOwnProperty(r)&&Q(this,t[r])(this,n,o),G(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,n){this.state.keyMaps[n?"push":"unshift"](si(r))},removeKeyMap:function(r){for(var n=this.state.keyMaps,l=0;l<n.length;++l)if(n[l]==r||n[l].name==r)return n.splice(l,1),!0},addOverlay:ne(function(r,n){var l=r.token?r:e.getMode(this.options,r);if(l.startState)throw new Error("Overlays may not be stateful.");jo(this.state.overlays,{mode:l,modeSpec:r,opaque:n&&n.opaque,priority:n&&n.priority||0},function(o){return o.priority}),this.state.modeGen++,ae(this)}),removeOverlay:ne(function(r){for(var n=this.state.overlays,l=0;l<n.length;++l){var o=n[l].modeSpec;if(o==r||typeof r=="string"&&o.name==r){n.splice(l,1),this.state.modeGen++,ae(this);return}}}),indentLine:ne(function(r,n,l){typeof n!="string"&&typeof n!="number"&&(n==null?n=this.options.smartIndent?"smart":"prev":n=n?"add":"subtract"),$t(this.doc,r)&&Tr(this,r,n,l)}),indentSelection:ne(function(r){for(var n=this.doc.sel.ranges,l=-1,o=0;o<n.length;o++){var a=n[o];if(a.empty())a.head.line>l&&(Tr(this,a.head.line,r,!0),l=a.head.line,o==this.doc.sel.primIndex&&Ot(this));else{var s=a.from(),u=a.to(),f=Math.max(l,s.line);l=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=f;h<l;++h)Tr(this,h,r);var d=this.doc.sel.ranges;s.ch==0&&n.length==d.length&&d[o].from().ch>0&&yn(this.doc,o,new O(s,d[o].to()),Te)}}}),getTokenAt:function(r,n){return Vn(this,r,n)},getLineTokens:function(r,n){return Vn(this,g(r),n,!0)},getTokenTypeAt:function(r){r=D(this.doc,r);var n=Qn(this,w(this.doc,r.line)),l=0,o=(n.length-1)/2,a=r.ch,s;if(a==0)s=n[2];else for(;;){var u=l+o>>1;if((u?n[u*2-1]:0)>=a)o=u;else if(n[u*2+1]<a)l=u+1;else{s=n[u*2+2];break}}var f=s?s.indexOf("overlay "):-1;return f<0?s:f==0?null:s.slice(0,f-1)},getModeAt:function(r){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(r).state).mode:n},getHelper:function(r,n){return this.getHelpers(r,n)[0]},getHelpers:function(r,n){var l=[];if(!i.hasOwnProperty(n))return l;var o=i[n],a=this.getModeAt(r);if(typeof a[n]=="string")o[a[n]]&&l.push(o[a[n]]);else if(a[n])for(var s=0;s<a[n].length;s++){var u=o[a[n][s]];u&&l.push(u)}else a.helperType&&o[a.helperType]?l.push(o[a.helperType]):o[a.name]&&l.push(o[a.name]);for(var f=0;f<o._global.length;f++){var h=o._global[f];h.pred(a,this)&&ee(l,h.val)==-1&&l.push(h.val)}return l},getStateAfter:function(r,n){var l=this.doc;return r=Yn(l,r??l.first+l.size-1),er(this,r+1,n).state},cursorCoords:function(r,n){var l,o=this.doc.sel.primary();return r==null?l=o.head:typeof r=="object"?l=D(this.doc,r):l=r?o.from():o.to(),Se(this,l,n||"page")},charCoords:function(r,n){return qr(this,D(this.doc,r),n||"page")},coordsChar:function(r,n){return r=Ml(this,r,n||"page"),Qi(this,r.left,r.top)},lineAtHeight:function(r,n){return r=Ml(this,{top:r,left:0},n||"page").top,at(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,n,l){var o=!1,a;if(typeof r=="number"){var s=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>s&&(r=s,o=!0),a=w(this.doc,r)}else a=r;return Yr(this,a,{top:0,left:0},n||"page",l||o).top+(o?this.doc.height-Pe(a):0)},defaultTextHeight:function(){return Dt(this.display)},defaultCharWidth:function(){return Nt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,l,o,a){var s=this.display;r=Se(this,D(this.doc,r));var u=r.bottom,f=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),s.sizer.appendChild(n),o=="over")u=r.top;else if(o=="above"||o=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),d=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(o=="above"||r.bottom+n.offsetHeight>h)&&r.top>n.offsetHeight?u=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=h&&(u=r.bottom),f+n.offsetWidth>d&&(f=d-n.offsetWidth)}n.style.top=u+"px",n.style.left=n.style.right="",a=="right"?(f=s.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(a=="left"?f=0:a=="middle"&&(f=(s.sizer.clientWidth-n.offsetWidth)/2),n.style.left=f+"px"),l&&es(this,{left:f,top:u,right:f+n.offsetWidth,bottom:u+n.offsetHeight})},triggerOnKeyDown:ne(Oo),triggerOnKeyPress:ne(Ho),triggerOnKeyUp:Wo,triggerOnMouseDown:ne(Fo),execCommand:function(r){if(wr.hasOwnProperty(r))return wr[r].call(null,this)},triggerElectric:ne(function(r){Go(this,r)}),findPosH:function(r,n,l,o){var a=1;n<0&&(a=-1,n=-n);for(var s=D(this.doc,r),u=0;u<n&&(s=Mn(this.doc,s,a,l,o),!s.hitSide);++u);return s},moveH:ne(function(r,n){var l=this;this.extendSelectionsBy(function(o){return l.display.shift||l.doc.extend||o.empty()?Mn(l.doc,o.head,r,n,l.options.rtlMoveVisually):r<0?o.from():o.to()},Zt)}),deleteH:ne(function(r,n){var l=this.doc.sel,o=this.doc;l.somethingSelected()?o.replaceSelection("",null,"+delete"):Bt(this,function(a){var s=Mn(o,a.head,r,n,!1);return r<0?{from:s,to:a.head}:{from:a.head,to:s}})}),findPosV:function(r,n,l,o){var a=1,s=o;n<0&&(a=-1,n=-n);for(var u=D(this.doc,r),f=0;f<n;++f){var h=Se(this,u,"div");if(s==null?s=h.left:h.left=s,u=_o(this,h,a,l),u.hitSide)break}return u},moveV:ne(function(r,n){var l=this,o=this.doc,a=[],s=!this.display.shift&&!o.extend&&o.sel.somethingSelected();if(o.extendSelectionsBy(function(f){if(s)return r<0?f.from():f.to();var h=Se(l,f.head,"div");f.goalColumn!=null&&(h.left=f.goalColumn),a.push(h.left);var d=_o(l,h,r,n);return n=="page"&&f==o.sel.primary()&&on(l,qr(l,d,"div").top-h.top),d},Zt),a.length)for(var u=0;u<o.sel.ranges.length;u++)o.sel.ranges[u].goalColumn=a[u]}),findWordAt:function(r){var n=this.doc,l=w(n,r.line).text,o=r.ch,a=r.ch;if(l){var s=this.getHelper(r,"wordChars");(r.sticky=="before"||a==l.length)&&o?--o:++a;for(var u=l.charAt(o),f=Fr(u,s)?function(h){return Fr(h,s)}:/\s/.test(u)?function(h){return/\s/.test(h)}:function(h){return!/\s/.test(h)&&!Fr(h)};o>0&&f(l.charAt(o-1));)--o;for(;a<l.length&&f(l.charAt(a));)++a}return new O(g(r.line,o),g(r.line,a))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?rt(this.display.cursorDiv,"CodeMirror-overwrite"):et(this.display.cursorDiv,"CodeMirror-overwrite"),G(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Ct(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ne(function(r,n){ar(this,r,n)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-Ne(this)-this.display.barHeight,width:r.scrollWidth-Ne(this)-this.display.barWidth,clientHeight:Xi(this),clientWidth:st(this)}},scrollIntoView:ne(function(r,n){r==null?(r={from:this.doc.sel.primary().head,to:null},n==null&&(n=this.options.cursorScrollMargin)):typeof r=="number"?r={from:g(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=n||0,r.from.line!=null?ts(this,r):El(this,r.from,r.to,r.margin)}),setSize:ne(function(r,n){var l=this,o=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};r!=null&&(this.display.wrapper.style.width=o(r)),n!=null&&(this.display.wrapper.style.height=o(n)),this.options.lineWrapping&&Ll(this);var a=this.display.viewFrom;this.doc.iter(a,this.display.viewTo,function(s){if(s.widgets){for(var u=0;u<s.widgets.length;u++)if(s.widgets[u].noHScroll){Xe(l,a,"widget");break}}++a}),this.curOp.forceUpdate=!0,G(this,"refresh",this)}),operation:function(r){return ce(this,r)},startOperation:function(){return pt(this)},endOperation:function(){return vt(this)},refresh:ne(function(){var r=this.display.cachedTextHeight;ae(this),this.curOp.forceUpdate=!0,lr(this),ar(this,this.doc.scrollLeft,this.doc.scrollTop),un(this.display),(r==null||Math.abs(r-Dt(this.display))>.5||this.options.lineWrapping)&&$i(this),G(this,"refresh",this)}),swapDoc:ne(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),Jl(this,r),lr(this),this.display.input.reset(),ar(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Z(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},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}},wt(e),e.registerHelper=function(r,n,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=l},e.registerGlobalHelper=function(r,n,l,o){e.registerHelper(r,n,o),i[r]._global.push({pred:l,val:o})}}function Mn(e,t,i,r,n){var l=t,o=i,a=w(e,t.line),s=n&&e.direction=="rtl"?-i:i;function u(){var x=t.line+s;return x<e.first||x>=e.first+e.size?!1:(t=new g(x,t.ch,t.sticky),a=w(e,x))}function f(x){var b;if(r=="codepoint"){var C=a.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(C))b=null;else{var L=i>0?C>=55296&&C<56320:C>=56320&&C<57343;b=new g(t.line,Math.max(0,Math.min(a.text.length,t.ch+i*(L?2:1))),-i)}}else n?b=Rs(e.cm,a,t,i):b=bn(a,t,i);if(b==null)if(!x&&u())t=xn(n,e.cm,a,t.line,s);else return!1;else t=b;return!0}if(r=="char"||r=="codepoint")f();else if(r=="column")f(!0);else if(r=="word"||r=="group")for(var h=null,d=r=="group",c=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(i<0&&!f(!p));p=!1){var v=a.text.charAt(t.ch)||`
16
- `,y=Fr(v,c)?"w":d&&v==`
17
- `?"n":!d||/\s/.test(v)?null:"p";if(d&&!p&&!y&&(y="s"),h&&h!=y){i<0&&(i=1,f(),t.sticky="after");break}if(y&&(h=y),i>0&&!f(!p))break}var m=li(e,t,l,o,!0);return Fi(l,m)&&(m.hitSide=!0),m}function _o(e,t,i,r){var n=e.doc,l=t.left,o;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Ar(e).innerHeight||n(e).documentElement.clientHeight),s=Math.max(a-.5*Dt(e.display),3);o=(i>0?t.bottom:t.top)+i*s}else r=="line"&&(o=i>0?t.bottom+3:t.top-3);for(var u;u=Qi(e,l,o),!!u.outside;){if(i<0?o<=0:o>=n.height){u.hitSide=!0;break}o+=i*5}return u}var F=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};F.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,Tn(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(a){for(var s=a.target;s;s=s.parentNode){if(s==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}T(n,"paste",function(a){!l(a)||q(r,a)||zo(a,r)||E<=11&&setTimeout(Q(r,function(){return t.updateFromDOM()}),20)}),T(n,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),T(n,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),T(n,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),T(n,"touchstart",function(){return i.forceCompositionEnd()}),T(n,"input",function(){t.composing||t.readFromDOMSoon()});function o(a){if(!(!l(a)||q(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=Uo(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Te),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=ke.text.join(`
18
- `);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var f=Ko(),h=f.firstChild;Tn(h),r.display.lineSpace.insertBefore(f,r.display.lineSpace.firstChild),h.value=ke.text.join(`
19
- `);var d=me(it(n));Yt(h),setTimeout(function(){r.display.lineSpace.removeChild(f),d.focus(),d==n&&i.showPrimarySelection()},50)}}T(n,"copy",o),T(n,"cut",o)},F.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},F.prototype.prepareSelection=function(){var e=Hl(this.cm,!1);return e.focus=me(it(this.div))==this.div,e},F.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},F.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},F.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line<t.display.viewFrom){e.removeAllRanges();return}var l=ci(t,e.anchorNode,e.anchorOffset),o=ci(t,e.focusNode,e.focusOffset);if(!(l&&!l.bad&&o&&!o.bad&&M(Ir(l,o),r)==0&&M(Er(l,o),n)==0)){var a=t.display.view,s=r.line>=t.display.viewFrom&&Xo(t,r)||{node:a[0].measure.map[2],offset:0},u=n.line<t.display.viewTo&&Xo(t,n);if(!u){var f=a[a.length-1].measure,h=f.maps?f.maps[f.maps.length-1]:f.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(!s||!u){e.removeAllRanges();return}var d=e.rangeCount&&e.getRangeAt(0),c;try{c=tt(s.node,s.offset,u.offset,u.node)}catch{}c&&(!We&&t.state.focused?(e.collapse(s.node,s.offset),c.collapsed||(e.removeAllRanges(),e.addRange(c))):(e.removeAllRanges(),e.addRange(c)),d&&e.anchorNode==null?e.addRange(d):We&&this.startGracePeriod()),this.rememberSelection()}},F.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},F.prototype.showMultipleSelections=function(e){pe(this.cm.display.cursorDiv,e.cursors),pe(this.cm.display.selectionDiv,e.selection)},F.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},F.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ue(this.div,t)},F.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(it(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},F.prototype.blur=function(){this.div.blur()},F.prototype.getField=function(){return this.div},F.prototype.supportsTouch=function(){return!0},F.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ce(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function i(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,i))}this.polling.set(this.cm.options.pollInterval,i)},F.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},F.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Nr&&ze&&this.cm.display.gutterSpecs.length&&nu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var i=ci(t,e.anchorNode,e.anchorOffset),r=ci(t,e.focusNode,e.focusOffset);i&&r&&ce(t,function(){te(t.doc,qe(i,r),Te),(i.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},F.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),r=i.from(),n=i.to();if(r.ch==0&&r.line>e.firstLine()&&(r=g(r.line-1,w(e.doc,r.line-1).length)),n.ch==w(e.doc,n.line).text.length&&n.line<e.lastLine()&&(n=g(n.line+1,0)),r.line<t.viewFrom||n.line>t.viewTo-1)return!1;var l,o,a;r.line==t.viewFrom||(l=ht(e,r.line))==0?(o=H(t.view[0].line),a=t.view[0].node):(o=H(t.view[l].line),a=t.view[l-1].node.nextSibling);var s=ht(e,n.line),u,f;if(s==t.view.length-1?(u=t.viewTo-1,f=t.lineDiv.lastChild):(u=H(t.view[s+1].line)-1,f=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(lu(e,a,f,o,u)),d=ot(e.doc,g(o,0),g(u,w(e.doc,u).text.length));h.length>1&&d.length>1;)if(W(h)==W(d))h.pop(),d.pop(),u--;else if(h[0]==d[0])h.shift(),d.shift(),o++;else break;for(var c=0,p=0,v=h[0],y=d[0],m=Math.min(v.length,y.length);c<m&&v.charCodeAt(c)==y.charCodeAt(c);)++c;for(var x=W(h),b=W(d),C=Math.min(x.length-(h.length==1?c:0),b.length-(d.length==1?c:0));p<C&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(h.length==1&&d.length==1&&o==r.line)for(;c&&c>r.ch&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)c--,p++;h[h.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(c).replace(/\u200b+$/,"");var L=g(o,c),S=g(u,d.length?W(d).length-p:0);if(h.length>1||h[0]||M(L,S))return Et(e.doc,h,L,S,"+input"),!0},F.prototype.ensurePolled=function(){this.forceCompositionEnd()},F.prototype.reset=function(){this.forceCompositionEnd()},F.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},F.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},F.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&ce(this.cm,function(){return ae(e.cm)})},F.prototype.setUneditable=function(e){e.contentEditable="false"},F.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Q(this.cm,kn)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},F.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},F.prototype.onContextMenu=function(){},F.prototype.resetPosition=function(){},F.prototype.needsContentAttribute=!0;function Xo(e,t){var i=Yi(e,t.line);if(!i||i.hidden)return null;var r=w(e.doc,t.line),n=bl(i,r,t.line),l=He(r,e.doc.direction),o="left";if(l){var a=jt(l,t.ch);o=a%2?"right":"left"}var s=wl(n.map,t.ch,o);return s.offset=s.collapse=="right"?s.end:s.start,s}function nu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Gt(e,t){return t&&(e.bad=!0),e}function lu(e,t,i,r,n){var l="",o=!1,a=e.doc.lineSeparator(),s=!1;function u(c){return function(p){return p.id==c}}function f(){o&&(l+=a,s&&(l+=a),o=s=!1)}function h(c){c&&(f(),l+=c)}function d(c){if(c.nodeType==1){var p=c.getAttribute("cm-text");if(p){h(p);return}var v=c.getAttribute("cm-marker"),y;if(v){var m=e.findMarks(g(r,0),g(n+1,0),u(+v));m.length&&(y=m[0].find(0))&&h(ot(e.doc,y.from,y.to).join(a));return}if(c.getAttribute("contenteditable")=="false")return;var x=/^(pre|div|p|li|table|br)$/i.test(c.nodeName);if(!/^br$/i.test(c.nodeName)&&c.textContent.length==0)return;x&&f();for(var b=0;b<c.childNodes.length;b++)d(c.childNodes[b]);/^(pre|p)$/i.test(c.nodeName)&&(s=!0),x&&(o=!0)}else c.nodeType==3&&h(c.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=i;)t=t.nextSibling,s=!1;return l}function ci(e,t,i){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[i],!r)return Gt(e.clipPos(g(e.display.viewTo-1)),!0);t=null,i=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var n=0;n<e.display.view.length;n++){var l=e.display.view[n];if(l.node==r)return ou(l,t,i)}}function ou(e,t,i){var r=e.text.firstChild,n=!1;if(!t||!Ue(r,t))return Gt(g(H(e.line),0),!0);if(t==r&&(n=!0,t=r.childNodes[i],i=0,!t)){var l=e.rest?W(e.rest):e.line;return Gt(g(H(l),l.text.length),n)}var o=t.nodeType==3?t:null,a=t;for(!o&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(o=t.firstChild,i&&(i=o.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var s=e.measure,u=s.maps;function f(y,m,x){for(var b=-1;b<(u?u.length:0);b++)for(var C=b<0?s.map:u[b],L=0;L<C.length;L+=3){var S=C[L+2];if(S==y||S==m){var N=H(b<0?e.line:e.rest[b]),P=C[L]+x;return(x<0||S!=y)&&(P=C[L+(x?1:0)]),g(N,P)}}}var h=f(o,a,i);if(h)return Gt(h,n);for(var d=a.nextSibling,c=o?o.nodeValue.length-i:0;d;d=d.nextSibling){if(h=f(d,d.firstChild,0),h)return Gt(g(h.line,h.ch-c),n);c+=d.textContent.length}for(var p=a.previousSibling,v=i;p;p=p.previousSibling){if(h=f(p,p.firstChild,-1),h)return Gt(g(h.line,h.ch+v),n);v+=p.textContent.length}}var z=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ke,this.hasSelection=!1,this.composing=null,this.resetting=!1};z.prototype.init=function(e){var t=this,i=this,r=this.cm;this.createField(e);var n=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),_t&&(n.style.width="0px"),T(n,"input",function(){A&&E>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),T(n,"paste",function(o){q(r,o)||zo(o,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function l(o){if(!q(r,o)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=Uo(r);hi({lineWise:!0,text:a.text}),o.type=="cut"?r.setSelections(a.ranges,null,Te):(i.prevInput="",n.value=a.text.join(`
20
- `),Yt(n))}else return;o.type=="cut"&&(r.state.cutIncoming=+new Date)}}T(n,"cut",l),T(n,"copy",l),T(e.scroller,"paste",function(o){if(!(Ee(e,o)||q(r,o))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var a=new Event("paste");a.clipboardData=o.clipboardData,n.dispatchEvent(a)}}),T(e.lineSpace,"selectstart",function(o){Ee(e,o)||oe(o)}),T(n,"compositionstart",function(){var o=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:o,range:r.markText(o,r.getCursor("to"),{className:"CodeMirror-composing"})}}),T(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},z.prototype.createField=function(e){this.wrapper=Ko(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Tn(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},z.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},z.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=Hl(e);if(e.options.moveInputWithCursor){var n=Se(e,i.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+o.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+o.left-l.left))}return r},z.prototype.showSelection=function(e){var t=this.cm,i=t.display;pe(i.cursorDiv,e.cursors),pe(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},z.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Yt(this.textarea),A&&E>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",A&&E>=9&&(this.hasSelection=null));this.resetting=!1}},z.prototype.getField=function(){return this.textarea},z.prototype.supportsTouch=function(){return!1},z.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Xt||me(it(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},z.prototype.blur=function(){this.textarea.blur()},z.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},z.prototype.receivedFocus=function(){this.slowPoll()},z.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},z.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},z.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||la(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(A&&E>=9&&this.hasSelection===n||ye&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=n.charCodeAt(0);if(l==8203&&!r&&(r="\u200B"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(r.length,n.length);o<a&&r.charCodeAt(o)==n.charCodeAt(o);)++o;return ce(t,function(){kn(t,n.slice(o),r.length-o,null,e.composing?"*compose":null),n.length>1e3||n.indexOf(`
21
- `)>-1?i.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},z.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},z.prototype.onKeyPress=function(){A&&E>=9&&(this.hasSelection=null),this.fastPoll()},z.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=ft(i,e),o=r.scroller.scrollTop;if(!l||Ce)return;var a=i.options.resetSelectionOnContextMenu;a&&i.doc.sel.contains(l)==-1&&Q(i,te)(i.doc,qe(l),Te);var s=n.style.cssText,u=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",n.style.cssText=`position: absolute; width: 30px; height: 30px;
22
- top: `+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+`px;
23
- z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`;
24
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;ie&&(h=n.ownerDocument.defaultView.scrollY),r.input.focus(),ie&&n.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=c,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function d(){if(n.selectionStart!=null){var v=i.somethingSelected(),y="\u200B"+(v?n.value:"");n.value="\u21DA",n.value=y,t.prevInput=v?"":"\u200B",n.selectionStart=1,n.selectionEnd=y.length,r.selForContextMenu=i.doc.sel}}function c(){if(t.contextMenuPending==c&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,n.style.cssText=s,A&&E<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=o),n.selectionStart!=null)){(!A||A&&E<9)&&d();var v=0,y=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="\u200B"?Q(i,uo)(i):v++<10?r.detectingSelectAll=setTimeout(y,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(y,200)}}if(A&&E>=9&&d(),pi){Vt(e);var p=function(){ve(window,"mouseup",p),setTimeout(c,20)};T(window,"mouseup",p)}else setTimeout(c,50)},z.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},z.prototype.setUneditable=function(){},z.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?nt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=me(it(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(T(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;n=l.submit;try{var o=l.submit=function(){r(),l.submit=n,l.submit(),l.submit=o}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var a=I(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function su(e){e.off=ve,e.on=T,e.wheelEventPixels=vs,e.Doc=se,e.splitLines=Mi,e.countColumn=be,e.findColumn=mi,e.isWordChar=xi,e.Pass=Or,e.signal=G,e.Line=kt,e.changeEnd=Ze,e.scrollbarModel=Bl,e.Pos=g,e.cmpPos=M,e.modes=Ni,e.mimeModes=St,e.resolveMode=Pr,e.getMode=Ai,e.modeExtensions=Lt,e.extendMode=fa,e.copyState=lt,e.startState=Xn,e.innerMode=Oi,e.commands=wr,e.keyMap=Re,e.keyName=To,e.isModifierKey=Lo,e.lookupKey=Rt,e.normalizeKeyMap=Is,e.StringStream=U,e.SharedTextMarker=br,e.TextMarker=Je,e.LineWidget=mr,e.e_preventDefault=oe,e.e_stopPropagation=Kn,e.e_stop=Vt,e.addClass=rt,e.contains=Ue,e.rmClass=et,e.keyNames=je}$s(I),iu(I);var uu="iter insert remove copy getEditor constructor".split(" ");for(var di in se.prototype)se.prototype.hasOwnProperty(di)&&ee(uu,di)<0&&(I.prototype[di]=(function(e){return function(){return e.apply(this.doc,arguments)}})(se.prototype[di]));return wt(se),I.inputStyles={textarea:z,contenteditable:F},I.defineMode=function(e){!I.defaults.mode&&e!="null"&&(I.defaults.mode=e),sa.apply(this,arguments)},I.defineMIME=ua,I.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),I.defineMIME("text/plain","null"),I.defineExtension=function(e,t){I.prototype[e]=t},I.defineDocExtension=function(e,t){se.prototype[e]=t},I.fromTextArea=au,su(I),I.version="5.65.20",I})});export default hu();